stdbool-tests: accomodate Haiku
[pspp] / ChangeLog
1 2011-01-19  Eric Blake  <eblake@redhat.com>
2
3         stdbool-tests: accomodate Haiku
4         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5
6         binary-io: fix O_TEXT on Haiku
7         * modules/binary-io (Depends-on): Add fcntl-h.
8         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9         than blindly undefining O_TEXT.
10         Reported by Scott McCreary.
11
12 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13
14         include_next: do not check for standard headers like stddef.h
15
16         I found this problem when modifying Emacs to use gnulib.
17         I noticed that it added HAVE_STDDEF_H to config.h, even though
18         gnulib always assumes <stddef.h> exists as per README and this
19         symbol is unnecessary.
20         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23         faster for headers like stddef.h that are known to exist.
24         (gl_CHECK_NEXT_HEADERS): Use it.
25         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26         rather than gl_CHECK_NEXT_HEADERS.
27         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
28         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
29
30 2011-01-18  Eric Blake  <eblake@redhat.com>
31
32         ansi-c++-opt: skip C++ dependency style if C++ is unused
33         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
34         tests when we know C++ compilation is not desired.
35         Reported by Scott McCreary.
36
37 2011-01-18  Bruno Haible  <bruno@clisp.org>
38
39         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
40         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
41         (main): Perform test also when getrlimit and setrlimit don't exist or
42         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
43         limiting the address space size using setrlimit, compare the address
44         space size before and after the the test.
45         * tests/test-dprintf-posix2.c: Likewise.
46         * tests/test-fprintf-posix3.sh: Update skip messages.
47         * tests/test-dprintf-posix2.sh: Likewise.
48         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
49         * modules/dprintf-posix-tests (Depends-on): Likewise.
50         Reported by Bruce Korb <bkorb@gnu.org> and
51         Gary V. Vaughan <gary@gnu.org>.
52
53 2011-01-18  Bruno Haible  <bruno@clisp.org>
54
55         get-rusage-as: Improvement for Cygwin.
56         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
57         areas that are merely reserved.
58
59 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60
61         strftime: remove dependencies on multibyte modules
62
63         strftime depended on mbrlen, mbsinit, and wchar, but these modules
64         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
65         only if __osf__ is defined, and I suspect OSF doesn't need these
66         other modules.  If my guess is wrong, we'll need to come up with a
67         variant of strftime that doesn't need the multibyte modules.
68
69         I discovered this problem when attempting modify Emacs to use the
70         strftime module.  With the previous gnulib, this caused Emacs to
71         need 31 new files, ranging from lib/config.charset to
72         m4/wint_t.m4.  This was overkill and I expect would be offputting
73         to the Emacs maintainers.  After this change, only 6 new files are
74         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
75         stdbool.m4, and tm_gmtoff.m4.
76
77         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
78         Suggested by Bruno Haible in
79         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
80         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
81         and do not check for wchar.h.
82         * modules/strftime (Files): Remove m4/mbstate_t.m4.
83         (Depends-on): Remove mbrlen, mbsinit, wchar.
84
85 2011-01-18  Bruno Haible  <bruno@clisp.org>
86
87         Tests for module 'get-rusage-as'.
88         * modules/get-rusage-as-tests: New file.
89         * tests/test-get-rusage-as.c: New file.
90
91         New module 'get-rusage-as'.
92         * modules/get-rusage-as: New file.
93         * lib/resource-ext.h: New file.
94         * lib/get-rusage-as.c: New file.
95
96 2011-01-17  Eric Blake  <eblake@redhat.com>
97
98         sigaction: relax license from LGPLv3+ to LGPLv2+
99         * modules/sigaction (License): Relax to LGPLv2+.
100
101 2011-01-14  Bruno Haible  <bruno@clisp.org>
102
103         filemode: Make function declarations usable in C++ mode.
104         * lib/filemode.h: Enclose function declarations in extern "C" block.
105         Reported by John W. Eaton <jwe@gnu.org>.
106
107 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
108
109         save-cwd: no longer include "xgetcwd.h"
110         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
111         This avoids a compilation failure in projects that use save-cwd
112         without also using the xgetcwd module.
113
114 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
115
116         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
117         This is so that a program like Emacs, which needs only dtoastr,
118         does not have to bother with distributing and compiling ftoastr
119         and ldtoastr.
120         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
121         * modules/dtoastr, modules/ldtoastr: New files.
122         * modules/ftoastr: Now works just for 'float'.
123         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
124         (Makefile.am): Remove ftoastr.h (not needed and no effect),
125         dtoastr.c, ldtoastr.c.
126
127 2011-01-11  Jim Meyering  <meyering@redhat.com>
128
129         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
130         There is no need to work around the lack of the fchdir function,
131         since gnulib can now provide a replacement when required.
132         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
133         * modules/save-cwd (Depends-on): Add fchdir.
134
135 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
136
137         openat, save-cwd: avoid xmalloc
138
139         This removes a direct (but undocumented) dependency of openat on
140         xalloc, along with an indirect dependency via save-cwd.  It also
141         removes a dependency of save-cwd on xgetcwd, and thereby
142         indirectly on xalloc.  This change causes the openat substitute
143         to fall back on save_cwd when memory is tight, and for save_cwd to
144         fail instead of dying when memory is tight, but that's good enough.
145
146         * lib/openat-proc.c: Include stdlib.h (for malloc), not
147         xalloc.h (for xmalloc).
148         (openat_proc_name): Use malloc, not xmalloc.
149         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
150         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
151
152         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
153         This avoids heap allocation for file names whose lengths are in
154         the range 512..1023, with the upper bound increasing to at most
155         4031 depending on the platform's PATH_MAX.  (We do not want
156         pathmax.h here as it might supply a non-constant PATH_MAX.)
157         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
158         Perhaps they should be moved to malloca.h?
159         (OPENAT_BUFFER_SIZE): Use them.
160
161 2011-01-10  Bruno Haible  <bruno@clisp.org>
162
163         doc: Update users.txt.
164         * users.txt: Add recutils.
165
166 2011-01-09  Karl Berry  <karl@gnu.org>
167
168         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
169
170         * doc/configmake.texi: New file.
171         * doc/gnulib.texi: Include it.
172         * modules/configmake: Move documentation from here.
173
174 2011-01-09  Bruno Haible  <bruno@clisp.org>
175
176         Update to Unicode 6.0.0.
177         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
178         (get_lbp): Update for Unicode 6.0.0.
179         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
180         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
181         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
182         U+11001, U+11038..U+11046. Remove U+06DE.
183         (uc_width): Fix bounds of planes.
184         * tests/uniwidth/test-uc_width2.sh: Same updates as in
185         lib/uniwidth/width.c.
186         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
187         trailing whitespace removed.
188         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
189         without comments, but with the original copyright notice.
190         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
191         * lib/unicase/ignorable.h: Likewise.
192         * lib/unicase/tocasefold.h: Likewise.
193         * lib/unicase/tolower.h: Likewise.
194         * lib/unicase/totitle.h: Likewise.
195         * lib/unicase/toupper.h: Likewise.
196         * lib/unictype/bidi_of.h: Likewise.
197         * lib/unictype/blocks.h: Likewise.
198         * lib/unictype/categ_C.h: Likewise.
199         * lib/unictype/categ_Cn.h: Likewise.
200         * lib/unictype/categ_L.h: Likewise.
201         * lib/unictype/categ_Ll.h: Likewise.
202         * lib/unictype/categ_Lm.h: Likewise.
203         * lib/unictype/categ_Lo.h: Likewise.
204         * lib/unictype/categ_Lu.h: Likewise.
205         * lib/unictype/categ_M.h: Likewise.
206         * lib/unictype/categ_Mc.h: Likewise.
207         * lib/unictype/categ_Me.h: Likewise.
208         * lib/unictype/categ_Mn.h: Likewise.
209         * lib/unictype/categ_N.h: Likewise.
210         * lib/unictype/categ_Nd.h: Likewise.
211         * lib/unictype/categ_No.h: Likewise.
212         * lib/unictype/categ_P.h: Likewise.
213         * lib/unictype/categ_Po.h: Likewise.
214         * lib/unictype/categ_S.h: Likewise.
215         * lib/unictype/categ_Sc.h: Likewise.
216         * lib/unictype/categ_Sk.h: Likewise.
217         * lib/unictype/categ_Sm.h: Likewise.
218         * lib/unictype/categ_So.h: Likewise.
219         * lib/unictype/categ_of.h: Likewise.
220         * lib/unictype/combining.h: Likewise.
221         * lib/unictype/ctype_alnum.h: Likewise.
222         * lib/unictype/ctype_alpha.h: Likewise.
223         * lib/unictype/ctype_graph.h: Likewise.
224         * lib/unictype/ctype_lower.h: Likewise.
225         * lib/unictype/ctype_print.h: Likewise.
226         * lib/unictype/ctype_punct.h: Likewise.
227         * lib/unictype/ctype_upper.h: Likewise.
228         * lib/unictype/decdigit.h: Likewise.
229         * lib/unictype/digit.h: Likewise.
230         * lib/unictype/numeric.h: Likewise.
231         * lib/unictype/pr_alphabetic.h: Likewise.
232         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
233         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
234         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
235         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
236         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
237         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
238         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
239         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
240         * lib/unictype/pr_case_ignorable.h: Likewise.
241         * lib/unictype/pr_cased.h: Likewise.
242         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
243         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
244         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
245         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
246         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
247         * lib/unictype/pr_combining.h: Likewise.
248         * lib/unictype/pr_composite.h: Likewise.
249         * lib/unictype/pr_currency_symbol.h: Likewise.
250         * lib/unictype/pr_decimal_digit.h: Likewise.
251         * lib/unictype/pr_deprecated.h: Likewise.
252         * lib/unictype/pr_format_control.h: Likewise.
253         * lib/unictype/pr_grapheme_base.h: Likewise.
254         * lib/unictype/pr_grapheme_extend.h: Likewise.
255         * lib/unictype/pr_grapheme_link.h: Likewise.
256         * lib/unictype/pr_id_continue.h: Likewise.
257         * lib/unictype/pr_id_start.h: Likewise.
258         * lib/unictype/pr_ideographic.h: Likewise.
259         * lib/unictype/pr_lowercase.h: Likewise.
260         * lib/unictype/pr_math.h: Likewise.
261         * lib/unictype/pr_numeric.h: Likewise.
262         * lib/unictype/pr_other_alphabetic.h: Likewise.
263         * lib/unictype/pr_other_id_continue.h: Likewise.
264         * lib/unictype/pr_other_math.h: Likewise.
265         * lib/unictype/pr_punctuation.h: Likewise.
266         * lib/unictype/pr_sentence_terminal.h: Likewise.
267         * lib/unictype/pr_terminal_punctuation.h: Likewise.
268         * lib/unictype/pr_unassigned_code_value.h: Likewise.
269         * lib/unictype/pr_unified_ideograph.h: Likewise.
270         * lib/unictype/pr_uppercase.h: Likewise.
271         * lib/unictype/pr_xid_continue.h: Likewise.
272         * lib/unictype/pr_xid_start.h: Likewise.
273         * lib/unictype/scripts.h: Likewise.
274         * lib/unictype/scripts_byname.gperf: Likewise.
275         * lib/unictype/sy_java_ident.h: Likewise.
276         * lib/unigbrk/gbrkprop.h: Likewise.
277         * lib/unilbrk/lbrkprop1.h: Likewise.
278         * lib/unilbrk/lbrkprop2.h: Likewise.
279         * lib/uninorm/decomposition-table2.h: Likewise.
280         * lib/uniwbrk/wbrkprop.h: Likewise.
281         * tests/unicase/test-cased.c: Likewise.
282         * tests/unicase/test-ignorable.c: Likewise.
283         * tests/unicase/test-uc_tolower.c: Likewise.
284         * tests/unicase/test-uc_totitle.c: Likewise.
285         * tests/unicase/test-uc_toupper.c: Likewise.
286         * tests/unictype/test-categ_C.c: Likewise.
287         * tests/unictype/test-categ_Cn.c: Likewise.
288         * tests/unictype/test-categ_L.c: Likewise.
289         * tests/unictype/test-categ_Ll.c: Likewise.
290         * tests/unictype/test-categ_Lm.c: Likewise.
291         * tests/unictype/test-categ_Lo.c: Likewise.
292         * tests/unictype/test-categ_Lu.c: Likewise.
293         * tests/unictype/test-categ_M.c: Likewise.
294         * tests/unictype/test-categ_Mc.c: Likewise.
295         * tests/unictype/test-categ_Me.c: Likewise.
296         * tests/unictype/test-categ_Mn.c: Likewise.
297         * tests/unictype/test-categ_N.c: Likewise.
298         * tests/unictype/test-categ_Nd.c: Likewise.
299         * tests/unictype/test-categ_No.c: Likewise.
300         * tests/unictype/test-categ_P.c: Likewise.
301         * tests/unictype/test-categ_Po.c: Likewise.
302         * tests/unictype/test-categ_S.c: Likewise.
303         * tests/unictype/test-categ_Sc.c: Likewise.
304         * tests/unictype/test-categ_Sk.c: Likewise.
305         * tests/unictype/test-categ_Sm.c: Likewise.
306         * tests/unictype/test-categ_So.c: Likewise.
307         * tests/unictype/test-ctype_alnum.c: Likewise.
308         * tests/unictype/test-ctype_alpha.c: Likewise.
309         * tests/unictype/test-ctype_graph.c: Likewise.
310         * tests/unictype/test-ctype_lower.c: Likewise.
311         * tests/unictype/test-ctype_print.c: Likewise.
312         * tests/unictype/test-ctype_punct.c: Likewise.
313         * tests/unictype/test-ctype_upper.c: Likewise.
314         * tests/unictype/test-decdigit.h: Likewise.
315         * tests/unictype/test-digit.h: Likewise.
316         * tests/unictype/test-numeric.h: Likewise.
317         * tests/unictype/test-pr_alphabetic.c: Likewise.
318         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
319         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
320         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
321         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
322         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
323         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
324         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
325         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
326         * tests/unictype/test-pr_case_ignorable.c: Likewise.
327         * tests/unictype/test-pr_cased.c: Likewise.
328         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
329         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
330         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
331         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
332         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
333         * tests/unictype/test-pr_combining.c: Likewise.
334         * tests/unictype/test-pr_composite.c: Likewise.
335         * tests/unictype/test-pr_currency_symbol.c: Likewise.
336         * tests/unictype/test-pr_decimal_digit.c: Likewise.
337         * tests/unictype/test-pr_deprecated.c: Likewise.
338         * tests/unictype/test-pr_format_control.c: Likewise.
339         * tests/unictype/test-pr_grapheme_base.c: Likewise.
340         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
341         * tests/unictype/test-pr_grapheme_link.c: Likewise.
342         * tests/unictype/test-pr_id_continue.c: Likewise.
343         * tests/unictype/test-pr_id_start.c: Likewise.
344         * tests/unictype/test-pr_ideographic.c: Likewise.
345         * tests/unictype/test-pr_lowercase.c: Likewise.
346         * tests/unictype/test-pr_math.c: Likewise.
347         * tests/unictype/test-pr_numeric.c: Likewise.
348         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
349         * tests/unictype/test-pr_other_id_continue.c: Likewise.
350         * tests/unictype/test-pr_other_math.c: Likewise.
351         * tests/unictype/test-pr_punctuation.c: Likewise.
352         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
353         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
354         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
355         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
356         * tests/unictype/test-pr_uppercase.c: Likewise.
357         * tests/unictype/test-pr_xid_continue.c: Likewise.
358         * tests/unictype/test-pr_xid_start.c: Likewise.
359         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
360         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
361         changes.
362         * lib/unictype/categ_Cc.h: Likewise.
363         * lib/unictype/categ_Cf.h: Likewise.
364         * lib/unictype/categ_Co.h: Likewise.
365         * lib/unictype/categ_Cs.h: Likewise.
366         * lib/unictype/categ_Lt.h: Likewise.
367         * lib/unictype/categ_Nl.h: Likewise.
368         * lib/unictype/categ_Pc.h: Likewise.
369         * lib/unictype/categ_Pd.h: Likewise.
370         * lib/unictype/categ_Pe.h: Likewise.
371         * lib/unictype/categ_Pf.h: Likewise.
372         * lib/unictype/categ_Pi.h: Likewise.
373         * lib/unictype/categ_Ps.h: Likewise.
374         * lib/unictype/categ_Z.h: Likewise.
375         * lib/unictype/categ_Zl.h: Likewise.
376         * lib/unictype/categ_Zp.h: Likewise.
377         * lib/unictype/categ_Zs.h: Likewise.
378         * lib/unictype/ctype_blank.h: Likewise.
379         * lib/unictype/ctype_cntrl.h: Likewise.
380         * lib/unictype/ctype_digit.h: Likewise.
381         * lib/unictype/ctype_space.h: Likewise.
382         * lib/unictype/ctype_xdigit.h: Likewise.
383         * lib/unictype/mirror.h: Likewise.
384         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
385         * lib/unictype/pr_bidi_block_separator.h: Likewise.
386         * lib/unictype/pr_bidi_common_separator.h: Likewise.
387         * lib/unictype/pr_bidi_control.h: Likewise.
388         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
389         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
390         * lib/unictype/pr_bidi_european_digit.h: Likewise.
391         * lib/unictype/pr_bidi_pdf.h: Likewise.
392         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
393         * lib/unictype/pr_bidi_whitespace.h: Likewise.
394         * lib/unictype/pr_dash.h: Likewise.
395         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
396         * lib/unictype/pr_diacritic.h: Likewise.
397         * lib/unictype/pr_extender.h: Likewise.
398         * lib/unictype/pr_hex_digit.h: Likewise.
399         * lib/unictype/pr_hyphen.h: Likewise.
400         * lib/unictype/pr_ids_binary_operator.h: Likewise.
401         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
402         * lib/unictype/pr_ignorable_control.h: Likewise.
403         * lib/unictype/pr_iso_control.h: Likewise.
404         * lib/unictype/pr_join_control.h: Likewise.
405         * lib/unictype/pr_left_of_pair.h: Likewise.
406         * lib/unictype/pr_line_separator.h: Likewise.
407         * lib/unictype/pr_logical_order_exception.h: Likewise.
408         * lib/unictype/pr_non_break.h: Likewise.
409         * lib/unictype/pr_not_a_character.h: Likewise.
410         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
411         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
412         * lib/unictype/pr_other_id_start.h: Likewise.
413         * lib/unictype/pr_other_lowercase.h: Likewise.
414         * lib/unictype/pr_other_uppercase.h: Likewise.
415         * lib/unictype/pr_paired_punctuation.h: Likewise.
416         * lib/unictype/pr_paragraph_separator.h: Likewise.
417         * lib/unictype/pr_pattern_syntax.h: Likewise.
418         * lib/unictype/pr_pattern_white_space.h: Likewise.
419         * lib/unictype/pr_private_use.h: Likewise.
420         * lib/unictype/pr_quotation_mark.h: Likewise.
421         * lib/unictype/pr_radical.h: Likewise.
422         * lib/unictype/pr_soft_dotted.h: Likewise.
423         * lib/unictype/pr_space.h: Likewise.
424         * lib/unictype/pr_titlecase.h: Likewise.
425         * lib/unictype/pr_variation_selector.h: Likewise.
426         * lib/unictype/pr_white_space.h: Likewise.
427         * lib/unictype/pr_zero_width.h: Likewise.
428         * lib/unictype/sy_c_ident.h: Likewise.
429         * lib/unictype/sy_c_whitespace.h: Likewise.
430         * lib/unictype/sy_java_whitespace.h: Likewise.
431         * lib/uninorm/composition-table.gperf: Likewise.
432         * lib/uninorm/decomposition-table1.h: Likewise.
433         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
434         LB8.
435         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
436         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
437         * modules/unictype/*: Bump version number of expected libunistring
438         version.
439
440 2011-01-09  Bruno Haible  <bruno@clisp.org>
441
442         Update to Unicode 5.2.0.
443         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
444         trailing whitespace removed.
445
446 2011-01-09  Bruno Haible  <bruno@clisp.org>
447
448         New Unicode character properties, from Unicode 5.2.0.
449         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
450         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
451         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
452         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
453         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
454         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
455         uc_is_property_cased, uc_is_property_case_ignorable,
456         uc_is_property_changes_when_lowercased,
457         uc_is_property_changes_when_uppercased,
458         uc_is_property_changes_when_titlecased,
459         uc_is_property_changes_when_casefolded,
460         uc_is_property_changes_when_casemapped): New declarations.
461         * lib/unictype/pr_byname.gperf: Add the new properties.
462         * modules/unictype/property-byname (Depends-on): Depend on the new
463         properties modules.
464         * modules/unictype/property-all (Depends-on): Likewise.
465         * MODULES.html.sh (Unicode string functions): Add
466         unictype/property-case-ignorable, unictype/property-cased,
467         unictype/property-changes-when-casefolded,
468         unictype/property-changes-when-casemapped,
469         unictype/property-changes-when-lowercased,
470         unictype/property-changes-when-titlecased,
471         unictype/property-changes-when-uppercased.
472
473         New module 'unictype/property-changes-when-casemapped'.
474         * modules/unictype/property-changes-when-casemapped: New file.
475         * lib/unictype/pr_changes_when_casemapped.c: New file.
476         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
477         generated by gen-uni-tables.
478         * modules/unictype/property-changes-when-casemapped-tests: New file.
479         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
480         automatically generated by gen-uni-tables.
481
482         New module 'unictype/property-changes-when-casefolded'.
483         * modules/unictype/property-changes-when-casefolded: New file.
484         * lib/unictype/pr_changes_when_casefolded.c: New file.
485         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
486         generated by gen-uni-tables.
487         * modules/unictype/property-changes-when-casefolded-tests: New file.
488         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
489         automatically generated by gen-uni-tables.
490
491         New module 'unictype/property-changes-when-titlecased'.
492         * modules/unictype/property-changes-when-titlecased: New file.
493         * lib/unictype/pr_changes_when_titlecased.c: New file.
494         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
495         generated by gen-uni-tables.
496         * modules/unictype/property-changes-when-titlecased-tests: New file.
497         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
498         automatically generated by gen-uni-tables.
499
500         New module 'unictype/property-changes-when-uppercased'.
501         * modules/unictype/property-changes-when-uppercased: New file.
502         * lib/unictype/pr_changes_when_uppercased.c: New file.
503         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
504         generated by gen-uni-tables.
505         * modules/unictype/property-changes-when-uppercased-tests: New file.
506         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
507         automatically generated by gen-uni-tables.
508
509         New module 'unictype/property-changes-when-lowercased'.
510         * modules/unictype/property-changes-when-lowercased: New file.
511         * lib/unictype/pr_changes_when_lowercased.c: New file.
512         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
513         generated by gen-uni-tables.
514         * modules/unictype/property-changes-when-lowercased-tests: New file.
515         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
516         automatically generated by gen-uni-tables.
517
518         New module 'unictype/property-case-ignorable'.
519         * modules/unictype/property-case-ignorable: New file.
520         * lib/unictype/pr_case_ignorable.c: New file.
521         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
522         by gen-uni-tables.
523         * modules/unictype/property-case-ignorable-tests: New file.
524         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
525         generated by gen-uni-tables.
526
527         New module 'unictype/property-cased'.
528         * modules/unictype/property-cased: New file.
529         * lib/unictype/pr_cased.c: New file.
530         * lib/unictype/pr_cased.h: New file, automatically generated by
531         gen-uni-tables.
532         * modules/unictype/property-cased-tests: New file.
533         * tests/unictype/test-pr_cased.c: New file, automatically generated by
534         gen-uni-tables.
535
536 2011-01-09  Bruno Haible  <bruno@clisp.org>
537
538         Update to Unicode 5.2.0.
539         * lib/gen-uni-tables.c (output_predicate, output_category,
540         output_combclass, output_bidi_category, output_decimal_digit_test,
541         output_decimal_digit, output_digit_test, output_digit,
542         output_numeric_test, output_numeric, output_mirror, output_scripts,
543         output_scripts_byname, output_blocks, output_ident_category): Fix
544         comment header.
545         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
546         get_wbp.
547         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
548         items.
549         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
550         Changes_When_Lowercased, Changes_When_Uppercased,
551         Changes_When_Titlecased, Changes_When_Casefolded,
552         Changes_When_Casemapped.
553         (is_property_alphabetic, is_property_default_ignorable_code_point):
554         Update for Unicode 5.2.0.
555         (is_property_cased, is_property_case_ignorable,
556         is_property_changes_when_lowercased,
557         is_property_changes_when_uppercased,
558         is_property_changes_when_titlecased,
559         is_property_changes_when_casefolded,
560         is_property_changes_when_casemapped): New functions.
561         (output_properties): Output also the properties cased, case_ignorable,
562         changes_when_lowercased, changes_when_uppercased,
563         changes_when_titlecased, changes_when_casefolded,
564         changes_when_casemapped.
565         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
566         Unicode TR#11 revision 17 -> 19.
567         (LBP_CP): New enumeration value.
568         (LBP_*): Adjust values accordingly.
569         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
570         TR#14 revision 22 -> 24.
571         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
572         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
573         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
574         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
575         is_WBP_MIDLETTER.
576         (output_composition_tables): Allow for 24 bits instead of 16 bits in
577         the code1 and code2 of each composition rule.
578         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
579         * lib/unicase/ignorable.h: Likewise.
580         * lib/unicase/tocasefold.h: Likewise.
581         * lib/unicase/tolower.h: Likewise.
582         * lib/unicase/totitle.h: Likewise.
583         * lib/unicase/toupper.h: Likewise.
584         * lib/unictype/bidi_of.h: Likewise.
585         * lib/unictype/blocks.h: Likewise.
586         * lib/unictype/categ_C.h: Likewise.
587         * lib/unictype/categ_Cf.h: Likewise.
588         * lib/unictype/categ_Cn.h: Likewise.
589         * lib/unictype/categ_L.h: Likewise.
590         * lib/unictype/categ_Ll.h: Likewise.
591         * lib/unictype/categ_Lm.h: Likewise.
592         * lib/unictype/categ_Lo.h: Likewise.
593         * lib/unictype/categ_Lu.h: Likewise.
594         * lib/unictype/categ_M.h: Likewise.
595         * lib/unictype/categ_Mc.h: Likewise.
596         * lib/unictype/categ_Mn.h: Likewise.
597         * lib/unictype/categ_N.h: Likewise.
598         * lib/unictype/categ_Nd.h: Likewise.
599         * lib/unictype/categ_Nl.h: Likewise.
600         * lib/unictype/categ_No.h: Likewise.
601         * lib/unictype/categ_P.h: Likewise.
602         * lib/unictype/categ_Pd.h: Likewise.
603         * lib/unictype/categ_Po.h: Likewise.
604         * lib/unictype/categ_S.h: Likewise.
605         * lib/unictype/categ_Sc.h: Likewise.
606         * lib/unictype/categ_So.h: Likewise.
607         * lib/unictype/categ_of.h: Likewise.
608         * lib/unictype/combining.h: Likewise.
609         * lib/unictype/ctype_alnum.h: Likewise.
610         * lib/unictype/ctype_alpha.h: Likewise.
611         * lib/unictype/ctype_graph.h: Likewise.
612         * lib/unictype/ctype_lower.h: Likewise.
613         * lib/unictype/ctype_print.h: Likewise.
614         * lib/unictype/ctype_punct.h: Likewise.
615         * lib/unictype/ctype_upper.h: Likewise.
616         * lib/unictype/decdigit.h: Likewise.
617         * lib/unictype/digit.h: Likewise.
618         * lib/unictype/numeric.h: Likewise.
619         * lib/unictype/pr_alphabetic.h: Likewise.
620         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
621         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
622         * lib/unictype/pr_bidi_european_digit.h: Likewise.
623         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
624         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
625         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
626         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
627         * lib/unictype/pr_combining.h: Likewise.
628         * lib/unictype/pr_composite.h: Likewise.
629         * lib/unictype/pr_currency_symbol.h: Likewise.
630         * lib/unictype/pr_dash.h: Likewise.
631         * lib/unictype/pr_decimal_digit.h: Likewise.
632         * lib/unictype/pr_deprecated.h: Likewise.
633         * lib/unictype/pr_diacritic.h: Likewise.
634         * lib/unictype/pr_extender.h: Likewise.
635         * lib/unictype/pr_grapheme_base.h: Likewise.
636         * lib/unictype/pr_grapheme_extend.h: Likewise.
637         * lib/unictype/pr_grapheme_link.h: Likewise.
638         * lib/unictype/pr_id_continue.h: Likewise.
639         * lib/unictype/pr_id_start.h: Likewise.
640         * lib/unictype/pr_ideographic.h: Likewise.
641         * lib/unictype/pr_ignorable_control.h: Likewise.
642         * lib/unictype/pr_logical_order_exception.h: Likewise.
643         * lib/unictype/pr_lowercase.h: Likewise.
644         * lib/unictype/pr_numeric.h: Likewise.
645         * lib/unictype/pr_other_alphabetic.h: Likewise.
646         * lib/unictype/pr_punctuation.h: Likewise.
647         * lib/unictype/pr_sentence_terminal.h: Likewise.
648         * lib/unictype/pr_terminal_punctuation.h: Likewise.
649         * lib/unictype/pr_unassigned_code_value.h: Likewise.
650         * lib/unictype/pr_unified_ideograph.h: Likewise.
651         * lib/unictype/pr_uppercase.h: Likewise.
652         * lib/unictype/pr_xid_continue.h: Likewise.
653         * lib/unictype/pr_xid_start.h: Likewise.
654         * lib/unictype/pr_zero_width.h: Likewise.
655         * lib/unictype/scripts.h: Likewise.
656         * lib/unictype/scripts_byname.gperf: Likewise.
657         * lib/unictype/sy_java_ident.h: Likewise.
658         * lib/unigbrk/gbrkprop.h: Likewise.
659         * lib/unilbrk/lbrkprop1.h: Likewise.
660         * lib/unilbrk/lbrkprop2.h: Likewise.
661         * lib/unilbrk/lbrktables.h: Likewise.
662         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
663         LBP_CP. Implement rule LB30.
664         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
665         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
666         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
667         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
668         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
669         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
670         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
671         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
672         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
673         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
674         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
675         bits instead of 16 bits in the code1 and code2 of each composition
676         rule.
677         (uc_composition): Update for Unicode 5.2.0.
678         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
679         * lib/uninorm/decomposition-table2.h: Likewise.
680         * lib/uniwbrk/wbrkprop.h: Likewise.
681         * tests/unicase/test-cased.c: Likewise.
682         * tests/unicase/test-ignorable.c: Likewise.
683         * tests/unicase/test-uc_tolower.c: Likewise.
684         * tests/unicase/test-uc_totitle.c: Likewise.
685         * tests/unicase/test-uc_toupper.c: Likewise.
686         * tests/unictype/test-categ_C.c: Likewise.
687         * tests/unictype/test-categ_Cf.c: Likewise.
688         * tests/unictype/test-categ_Cn.c: Likewise.
689         * tests/unictype/test-categ_L.c: Likewise.
690         * tests/unictype/test-categ_Ll.c: Likewise.
691         * tests/unictype/test-categ_Lm.c: Likewise.
692         * tests/unictype/test-categ_Lo.c: Likewise.
693         * tests/unictype/test-categ_Lu.c: Likewise.
694         * tests/unictype/test-categ_M.c: Likewise.
695         * tests/unictype/test-categ_Mc.c: Likewise.
696         * tests/unictype/test-categ_Mn.c: Likewise.
697         * tests/unictype/test-categ_N.c: Likewise.
698         * tests/unictype/test-categ_Nd.c: Likewise.
699         * tests/unictype/test-categ_Nl.c: Likewise.
700         * tests/unictype/test-categ_No.c: Likewise.
701         * tests/unictype/test-categ_P.c: Likewise.
702         * tests/unictype/test-categ_Pd.c: Likewise.
703         * tests/unictype/test-categ_Po.c: Likewise.
704         * tests/unictype/test-categ_S.c: Likewise.
705         * tests/unictype/test-categ_Sc.c: Likewise.
706         * tests/unictype/test-categ_So.c: Likewise.
707         * tests/unictype/test-ctype_alnum.c: Likewise.
708         * tests/unictype/test-ctype_alpha.c: Likewise.
709         * tests/unictype/test-ctype_graph.c: Likewise.
710         * tests/unictype/test-ctype_lower.c: Likewise.
711         * tests/unictype/test-ctype_print.c: Likewise.
712         * tests/unictype/test-ctype_punct.c: Likewise.
713         * tests/unictype/test-ctype_upper.c: Likewise.
714         * tests/unictype/test-decdigit.h: Likewise.
715         * tests/unictype/test-digit.h: Likewise.
716         * tests/unictype/test-numeric.h: Likewise.
717         * tests/unictype/test-pr_alphabetic.c: Likewise.
718         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
719         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
720         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
721         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
722         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
723         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
724         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
725         * tests/unictype/test-pr_combining.c: Likewise.
726         * tests/unictype/test-pr_composite.c: Likewise.
727         * tests/unictype/test-pr_currency_symbol.c: Likewise.
728         * tests/unictype/test-pr_dash.c: Likewise.
729         * tests/unictype/test-pr_decimal_digit.c: Likewise.
730         * tests/unictype/test-pr_deprecated.c: Likewise.
731         * tests/unictype/test-pr_diacritic.c: Likewise.
732         * tests/unictype/test-pr_extender.c: Likewise.
733         * tests/unictype/test-pr_grapheme_base.c: Likewise.
734         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
735         * tests/unictype/test-pr_grapheme_link.c: Likewise.
736         * tests/unictype/test-pr_id_continue.c: Likewise.
737         * tests/unictype/test-pr_id_start.c: Likewise.
738         * tests/unictype/test-pr_ideographic.c: Likewise.
739         * tests/unictype/test-pr_ignorable_control.c: Likewise.
740         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
741         * tests/unictype/test-pr_lowercase.c: Likewise.
742         * tests/unictype/test-pr_numeric.c: Likewise.
743         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
744         * tests/unictype/test-pr_punctuation.c: Likewise.
745         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
746         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
747         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
748         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
749         * tests/unictype/test-pr_uppercase.c: Likewise.
750         * tests/unictype/test-pr_xid_continue.c: Likewise.
751         * tests/unictype/test-pr_xid_start.c: Likewise.
752         * tests/unictype/test-pr_zero_width.c: Likewise.
753         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
754         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
755         changed behaviour: line breaking is now disallowed between a letter
756         or '=' and '('.
757         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
758         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
759         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
760         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
761         * tests/uniwidth/test-uc_width2.sh: Same updates as in
762         lib/uniwidth/width.c.
763         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
764         without comments, but with the original copyright notice.
765         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
766         changes.
767         * lib/unictype/categ_Cc.h: Likewise.
768         * lib/unictype/categ_Co.h: Likewise.
769         * lib/unictype/categ_Cs.h: Likewise.
770         * lib/unictype/categ_Lt.h: Likewise.
771         * lib/unictype/categ_Me.h: Likewise.
772         * lib/unictype/categ_Pc.h: Likewise.
773         * lib/unictype/categ_Pe.h: Likewise.
774         * lib/unictype/categ_Pf.h: Likewise.
775         * lib/unictype/categ_Pi.h: Likewise.
776         * lib/unictype/categ_Ps.h: Likewise.
777         * lib/unictype/categ_Sk.h: Likewise.
778         * lib/unictype/categ_Sm.h: Likewise.
779         * lib/unictype/categ_Z.h: Likewise.
780         * lib/unictype/categ_Zl.h: Likewise.
781         * lib/unictype/categ_Zp.h: Likewise.
782         * lib/unictype/categ_Zs.h: Likewise.
783         * lib/unictype/ctype_blank.h: Likewise.
784         * lib/unictype/ctype_cntrl.h: Likewise.
785         * lib/unictype/ctype_digit.h: Likewise.
786         * lib/unictype/ctype_space.h: Likewise.
787         * lib/unictype/ctype_xdigit.h: Likewise.
788         * lib/unictype/mirror.h: Likewise.
789         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
790         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
791         * lib/unictype/pr_bidi_block_separator.h: Likewise.
792         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
793         * lib/unictype/pr_bidi_common_separator.h: Likewise.
794         * lib/unictype/pr_bidi_control.h: Likewise.
795         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
796         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
797         * lib/unictype/pr_bidi_pdf.h: Likewise.
798         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
799         * lib/unictype/pr_bidi_whitespace.h: Likewise.
800         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
801         * lib/unictype/pr_format_control.h: Likewise.
802         * lib/unictype/pr_hex_digit.h: Likewise.
803         * lib/unictype/pr_hyphen.h: Likewise.
804         * lib/unictype/pr_ids_binary_operator.h: Likewise.
805         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
806         * lib/unictype/pr_iso_control.h: Likewise.
807         * lib/unictype/pr_join_control.h: Likewise.
808         * lib/unictype/pr_left_of_pair.h: Likewise.
809         * lib/unictype/pr_line_separator.h: Likewise.
810         * lib/unictype/pr_math.h: Likewise.
811         * lib/unictype/pr_non_break.h: Likewise.
812         * lib/unictype/pr_not_a_character.h: Likewise.
813         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
814         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
815         * lib/unictype/pr_other_id_continue.h: Likewise.
816         * lib/unictype/pr_other_id_start.h: Likewise.
817         * lib/unictype/pr_other_lowercase.h: Likewise.
818         * lib/unictype/pr_other_math.h: Likewise.
819         * lib/unictype/pr_other_uppercase.h: Likewise.
820         * lib/unictype/pr_paired_punctuation.h: Likewise.
821         * lib/unictype/pr_paragraph_separator.h: Likewise.
822         * lib/unictype/pr_pattern_syntax.h: Likewise.
823         * lib/unictype/pr_pattern_white_space.h: Likewise.
824         * lib/unictype/pr_private_use.h: Likewise.
825         * lib/unictype/pr_quotation_mark.h: Likewise.
826         * lib/unictype/pr_radical.h: Likewise.
827         * lib/unictype/pr_soft_dotted.h: Likewise.
828         * lib/unictype/pr_space.h: Likewise.
829         * lib/unictype/pr_titlecase.h: Likewise.
830         * lib/unictype/pr_variation_selector.h: Likewise.
831         * lib/unictype/pr_white_space.h: Likewise.
832         * lib/unictype/sy_c_ident.h: Likewise.
833         * lib/unictype/sy_c_whitespace.h: Likewise.
834         * lib/unictype/sy_java_whitespace.h: Likewise.
835         * modules/uni*/*: Bump version number of expected libunistring version.
836         Reported by Simon Josefsson.
837
838 2011-01-09  Karl Heuer  <kwzh@gnu.org>
839
840         useless-if-before-free: fix typo in --help and make the internal,
841         automatic version date update process work once again.
842         --help output contained a NUL character instead of the
843         backslash-zero that was intended.  Also, the "must lie within
844         the first 8 lines" line is on line 9, and hence not getting
845         automatically updated.
846         * build-aux/useless-if-before-free: Fix the former by adding a
847         backslash, and the latter by condensing the three lines of what-it-does
848         to a single line, leaving one line of slack for the future.
849
850 2011-01-09  Bruno Haible  <bruno@clisp.org>
851
852         uniwidth/width: Fix width of U+1D173..U+1D17A.
853         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
854         symbolic_width, output_width_property_test): New functions.
855         (main): Invoke output_nonspacing_property, output_width_property_test.
856         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
857         U+1D173..U+1D17A.
858         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
859         1.
860         * modules/uniwidth/*: Bump version number of expected libunistring
861         version.
862         * modules/unilbrk/*: Likewise.
863
864 2011-01-08  Bruno Haible  <bruno@clisp.org>
865
866         uninorm tests: Preserve copyright of Unicode data file.
867         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
868         Mention modifications.
869
870 2011-01-08  Bruno Haible  <bruno@clisp.org>
871
872         gen-uni-tables: Prepare for Unicode 5.2.0.
873         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
874         (debug_output_lbp, output_lbp): Update.
875
876 2011-01-08  Bruno Haible  <bruno@clisp.org>
877
878         unilbrk: Clarify gen-uni-tables.c code.
879         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
880         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
881         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
882
883 2011-01-07  Bruno Haible  <bruno@clisp.org>
884
885         strtod: Restore errno when successfully parsing Infinity or NaN.
886         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
887         restore the original errno.
888
889 2011-01-07  Bruno Haible  <bruno@clisp.org>
890
891         remove test: Avoid failure on HP-UX 11.
892         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
893
894 2011-01-07  Bruno Haible  <bruno@clisp.org>
895
896         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
897         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
898         error code.
899
900 2011-01-07  Pádraig Brady <P@draigBrady.com>
901
902         ignore-value: fixup comments, and add Eric Blake
903         as an author since he rewrote the macros.
904         * lib/ignore-value.h (ignore_value):  State that
905         we now support aggregates.  Also specify exactly
906         when the GCC warn_unused_result feature was added.
907
908 2011-01-06  Eric Blake  <eblake@redhat.com>
909
910         ignore-value: support aggregate types
911         * lib/ignore-value.h (ignore_value): Provide separate gcc
912         definition.
913         * modules/ignore-value-tests: New test module.
914         * tests/test-ignore-value.c: New test.
915
916         maint.mk: improve sc_prohibit_strcmp regex
917         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
918         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
919         definition of STRNEQ.
920
921         signal: work around Haiku issue with SIGBUS
922         * lib/siglist.h: Add comment.
923         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
924         strsignal's favoring of SIGSEGV.
925         * tests/test-signal.c (main): Avoid test failure.
926         * doc/posix-headers/signal.texi (signal.h): Document the issue.
927         Reported by Scott McCreary.
928
929         maint.mk: add pre-release check to ensure submodule commits are public
930         * top/maint.mk (public-submodule-commit): New rule.
931         (submodule-checks): New variable.
932         (alpha beta stable): Depend on the variable.
933
934 2011-01-05  Pádraig Brady <P@draigBrady.com>
935         and Jim Meyering  <meyering@redhat.com>
936
937         ignore-value: make ignore_value more generic; deprecate ignore_ptr
938         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
939         (ATTRIBUTE_DEPRECATED): Define.
940         (_ignore_case): New function.
941         (ignore_value): New macro, to replace the old function.
942         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
943         * modules/ignore-value (Depends-on): Add stdint.
944
945 2011-01-04  Eric Blake  <eblake@redhat.com>
946
947         doc: regenerate INSTALL
948         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
949         @firstparagraphindent support, now that autoconf dropped it.
950         (INSTALL_PRELUDE): Reinstate old macro.
951         * doc/install.texi: Resync from autoconf.
952         * doc/INSTALL: Reflect recent autoconf update.
953         * doc/INSTALL.ISO: Likewise.
954         * doc/INSTALL.UTF-8: Likewise.
955         Reported by Karl Berry.
956
957 2011-01-04  Bruce Korb  <address@hidden>
958
959         git-version-gen: avoid a sub-shell
960         * build-aux/git-version-gen: Redirect stderr in `...` via
961         "exec 2>...", rather than via an added sub-shell.
962
963 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
964
965         git-version-gen: use (...) rather than sh -c '...'
966         * build-aux/git-version-gen: Rather than hard-coding a shell's name
967         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
968
969 2011-01-03  Jim Meyering  <meyering@redhat.com>
970
971         git-version-gen: convert leading TABs to spaces
972         * build-aux/git-version-gen: Expand leading TABs.
973
974         git-version-gen: handle failed "git rev-list"
975         * build-aux/git-version-gen: Rather than leaking a "fatal" error
976         from git and proceeding as if it had succeeded but printed no SHA1
977         checksums, suppress the diagnostic and handle the failure.
978         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
979
980         git-version-gen: include command name in one more diagnostic
981         * build-aux/git-version-gen: When the required .tarball-version file
982         was missing or unreadable, you might see the diagnostic from "cat",
983         but no trace of the name of the invoking script.  Now, you still see
984         the diagnostic from cat, but also get one from "git-version-gen: ".
985         Inspired by a patch from Bruce Korb.
986
987         update-copyright: adjust test to match changed code
988         * tests/test-update-copyright.sh: Change test's expected output
989         to match new actual output.
990
991 2011-01-02  Bruno Haible  <bruno@clisp.org>
992
993         getlogin_r: Avoid test failure on HP-UX 11.
994         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
995         ERANGE when the second argument is zero.
996         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
997         portability problem.
998
999 2011-01-02  Bruce Korb  <bkorb@gnu.org>
1000
1001         * build-aux/update-copyright: doc Simon's changes
1002
1003 2011-01-02  Simon Josefsson  <simon@josefsson.org>
1004
1005         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
1006         environment variable.
1007
1008 2011-01-02  Bruno Haible  <bruno@clisp.org>
1009
1010         unigbrk: Avoid gcc warnings.
1011         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
1012         unused variable.
1013         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
1014         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
1015         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
1016         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
1017         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
1018         Change type of first argument to 'const char *'.
1019         (main): Remove unused variable.
1020         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
1021         type of first argument to 'const char *'.
1022         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
1023         Likewise.
1024         (main): Change type of variable 's'.
1025         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
1026         to 'int'.
1027
1028 2011-01-02  Bruno Haible  <bruno@clisp.org>
1029
1030         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
1031         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
1032         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
1033         bug.
1034         * lib/pwrite.c: Undo 2010-12-31 patch.
1035         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
1036
1037 2011-01-02  Bruno Haible  <bruno@clisp.org>
1038
1039         pread: Fix test whether it works.
1040         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
1041
1042 2011-01-02  Bruno Haible  <bruno@clisp.org>
1043
1044         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
1045         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
1046         ends in "6". Don't require a specific month name. Try also the locale
1047         names found on HP-UX 11 and Solaris 7.
1048
1049 2011-01-02  Bruno Haible  <bruno@clisp.org>
1050
1051         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
1052         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
1053         C linkage.
1054         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
1055
1056 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1057
1058         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
1059         for consistency, since the "cluster" term is not used elsewhere.
1060         * lib/unigbrk.in.h: Update name.
1061         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
1062         * lib/unigbrk/u16-grapheme-next.c: Update name.
1063         * lib/unigbrk/u16-grapheme-prev.c: Update name.
1064         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
1065         * lib/unigbrk/u32-grapheme-next.c: Update name.
1066         * lib/unigbrk/u32-grapheme-prev.c: Update name.
1067         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
1068         * lib/unigbrk/u8-grapheme-next.c: Update name.
1069         * lib/unigbrk/u8-grapheme-prev.c: Update name.
1070         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
1071         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
1072         Suggested by Bruno Haible.
1073
1074 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1075
1076         Remove module 'u8-grapheme-len' as too redundant with
1077         'u8-grapheme-next'.
1078         * modules/unigbrk/u8-grapheme-len: Delete file.
1079         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
1080         * lib/unigbrk.in.h: Remove prototype for deleted function.
1081         * lib/unigbrk/u8-grapheme-len.c: Delete file.
1082         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
1083
1084         Remove module 'u16-grapheme-len' as too redundant with
1085         'u16-grapheme-next'.
1086         * modules/unigbrk/u16-grapheme-len: Delete file.
1087         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
1088         * lib/unigbrk.in.h: Remove prototype for deleted function.
1089         * lib/unigbrk/u16-grapheme-len.c: Delete file.
1090         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
1091
1092         Remove module 'u32-grapheme-len' as too redundant with
1093         'u32-grapheme-next'.
1094         * modules/unigbrk/u32-grapheme-len: Delete file.
1095         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
1096         * lib/unigbrk.in.h: Remove prototype for deleted function.
1097         * lib/unigbrk/u32-grapheme-len.c: Delete file.
1098         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
1099
1100         Suggested by Bruno Haible.
1101
1102 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
1103
1104         * unigbrk.in.h: Fix typo: "ben" => "been".
1105         Reported by Bruno Haible.
1106
1107 2011-01-01  Jim Meyering  <meyering@redhat.com>
1108
1109         maint: update almost all copyright ranges to include 2011
1110         Run the new "make update-copyright" rule.
1111
1112 2011-01-01  Jim Meyering  <meyering@redhat.com>
1113
1114         maint: update-copyright: exempt doc/INSTALL*
1115         * Makefile (update-copyright): Also exclude doc/INSTALL*,
1116         since they are generated.  Suggested by Bruno Haible.
1117
1118 2011-01-01  Jim Meyering  <meyering@redhat.com>
1119
1120         maint: refine the update-copyright rule
1121         * Makefile (update-copyright): Also exclude any file that includes
1122         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
1123         code that merely generates the comment.
1124
1125 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1126
1127         New module 'u8-grapheme-len'.
1128         * modules/unigbrk/u8-grapheme-len: New file.
1129         * modules/unigbrk/u8-grapheme-len-tests: New file.
1130         * lib/unigbrk.in.h: Add prototype for new function.
1131         * lib/unigbrk/u8-grapheme-len.c: New file.
1132         * tests/unigbrk/test-u8-grapheme-len.c: New file.
1133
1134         New module 'u16-grapheme-len'.
1135         * modules/unigbrk/u16-grapheme-len: New file.
1136         * modules/unigbrk/u16-grapheme-len-tests: New file.
1137         * lib/unigbrk.in.h: Add prototype for new function.
1138         * lib/unigbrk/u16-grapheme-len.c: New file.
1139         * tests/unigbrk/test-u16-grapheme-len.c: New file.
1140
1141         New module 'u32-grapheme-len'.
1142         * modules/unigbrk/u32-grapheme-len: New file.
1143         * modules/unigbrk/u32-grapheme-len-tests: New file.
1144         * lib/unigbrk.in.h: Add prototype for new function.
1145         * lib/unigbrk/u32-grapheme-len.c: New file.
1146         * tests/unigbrk/test-u32-grapheme-len.c: New file.
1147
1148         New module 'u8-grapheme-next'.
1149         * modules/unigbrk/u8-grapheme-next: New file.
1150         * modules/unigbrk/u8-grapheme-next-tests: New file.
1151         * lib/unigbrk.in.h: Add prototype for new function.
1152         * lib/unigbrk/u8-grapheme-next.c: New file.
1153         * tests/unigbrk/test-u8-grapheme-next.c: New file.
1154
1155         New module 'u16-grapheme-next'.
1156         * modules/unigbrk/u16-grapheme-next: New file.
1157         * modules/unigbrk/u16-grapheme-next-tests: New file.
1158         * lib/unigbrk.in.h: Add prototype for new function.
1159         * lib/unigbrk/u16-grapheme-next.c: New file.
1160         * tests/unigbrk/test-u16-grapheme-next.c: New file.
1161
1162         New module 'u32-grapheme-next'.
1163         * modules/unigbrk/u32-grapheme-next: New file.
1164         * modules/unigbrk/u32-grapheme-next-tests: New file.
1165         * lib/unigbrk.in.h: Add prototype for new function.
1166         * lib/unigbrk/u32-grapheme-next.c: New file.
1167         * tests/unigbrk/test-u32-grapheme-next.c: New file.
1168
1169         New module 'u8-grapheme-prev'.
1170         * modules/unigbrk/u8-grapheme-prev: New file.
1171         * modules/unigbrk/u8-grapheme-prev-tests: New file.
1172         * lib/unigbrk.in.h: Add prototype for new function.
1173         * lib/unigbrk/u8-grapheme-prev.c: New file.
1174         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
1175
1176         New module 'u16-grapheme-prev'.
1177         * modules/unigbrk/u16-grapheme-prev: New file.
1178         * modules/unigbrk/u16-grapheme-prev-tests: New file.
1179         * lib/unigbrk.in.h: Add prototype for new function.
1180         * lib/unigbrk/u16-grapheme-prev.c: New file.
1181         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
1182
1183         New module 'u32-grapheme-prev'.
1184         * modules/unigbrk/u32-grapheme-prev: New file.
1185         * modules/unigbrk/u32-grapheme-prev-tests: New file.
1186         * lib/unigbrk.in.h: Add prototype for new function.
1187         * lib/unigbrk/u32-grapheme-prev.c: New file.
1188         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
1189
1190         New module 'u8-grapheme-breaks'.
1191         * modules/unigbrk/u8-grapheme-breaks: New file.
1192         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
1193         * lib/unigbrk.in.h: Add prototype for new function.
1194         * lib/unigbrk/u8-grapheme-breaks.c: New file.
1195         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
1196
1197         New module 'u16-grapheme-breaks'.
1198         * modules/unigbrk/u16-grapheme-breaks: New file.
1199         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
1200         * lib/unigbrk.in.h: Add prototype for new function.
1201         * lib/unigbrk/u16-grapheme-breaks.c: New file.
1202         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
1203
1204         New module 'u32-grapheme-breaks'.
1205         * modules/unigbrk/u32-grapheme-breaks: New file.
1206         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
1207         * lib/unigbrk.in.h: Add prototype for new function.
1208         * lib/unigbrk/u32-grapheme-breaks.c: New file.
1209         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
1210
1211         New module 'ulc-grapheme-breaks'.
1212         * modules/unigbrk/ulc-grapheme-breaks: New file.
1213         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
1214         * m4/locale-ar.m4: New file.
1215         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
1216         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
1217         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
1218
1219 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
1220
1221         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
1222         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
1223         modified how this file was generated before I initially submitted
1224         the module, but failed to regenerate it.  This meant that several
1225         of the level2 entries were wrong.
1226         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
1227         Remove the division-by-2 that is folded into the table now that
1228         gbrkprop.h has been regenerated properly.  Now -1 entries are
1229         handled correctly.
1230
1231         New module 'unigbrk/uc-gbrk-prop-tests'.
1232         * modules/unigbrk/uc-gbrk-prop-tests: New file.
1233         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
1234         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
1235         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
1236
1237 2011-01-01  Bruno Haible  <bruno@clisp.org>
1238
1239         Avoid use of hexadecimal escapes.
1240         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
1241         instead of hexadecimal escapes.
1242
1243 2011-01-01  Jim Meyering  <meyering@redhat.com>
1244
1245         maint: new rule to update copyright year ranges
1246         * Makefile (update-copyright): New rule.
1247
1248         maint: indent with TABs in Makefile
1249         * Makefile: Expand leading sequences of spaces to TABs
1250
1251         version-etc: update the copyright year it reports
1252         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
1253
1254 2010-12-31  Bruno Haible  <bruno@clisp.org>
1255
1256         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
1257         * lib/isfinite.c (zerof, zerod, zerol): New variables.
1258         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
1259         zero.
1260
1261 2010-12-31  Bruno Haible  <bruno@clisp.org>
1262
1263         pwrite: Work around HP-UX 11.11 bug.
1264         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
1265         works and set REPLACE_PWRITE if not.
1266         * lib/pwrite.c (pwrite): Add an implementation that uses the system
1267         function.
1268         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
1269
1270 2010-12-31  Bruno Haible  <bruno@clisp.org>
1271
1272         pread: Work around HP-UX 11 bugs.
1273         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
1274         and set REPLACE_PREAD if not.
1275         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
1276
1277 2010-12-31  Eric Blake  <eblake@redhat.com>
1278
1279         nl_langinfo: fix YESEXPR on Irix 6.5
1280         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
1281         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
1282         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
1283         it.
1284
1285 2010-12-31  Bruno Haible  <bruno@clisp.org>
1286
1287         iconv: Document HP-UX 11 bug.
1288         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
1289
1290 2010-12-31  Bruno Haible  <bruno@clisp.org>
1291
1292         ldexpl: Fix link error on HP-UX 11.
1293         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
1294         LDEXPL_LIBM, using $ISNANL_LIBM.
1295
1296 2010-12-31  Eric Blake  <eblake@redhat.com>
1297
1298         ftello: avoid compilation failure with SunStudio c89
1299         * lib/ftello.c (ftello): Use lseek, not llseek.
1300
1301         tests: avoid failing coreutils tests on cygwin
1302         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
1303         (create_exe_shims_): Return 0 when skipping.
1304
1305 2010-12-31  Bruno Haible  <bruno@clisp.org>
1306
1307         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
1308         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
1309
1310 2010-12-31  Bruno Haible  <bruno@clisp.org>
1311
1312         waitpid: Fix link error in C++ mode.
1313         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
1314
1315 2010-12-31  Bruno Haible  <bruno@clisp.org>
1316
1317         isnan: Use GCC built-ins when possible.
1318         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
1319         __builtin_isnan.
1320         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
1321         (isnan): Define using GCC built-ins for GCC >= 4.0.
1322
1323 2010-12-31  Bruno Haible  <bruno@clisp.org>
1324
1325         isnand: Fix mistake.
1326         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
1327         __builtin_isnand.
1328
1329 2010-12-31  Bruno Haible  <bruno@clisp.org>
1330
1331         open: Avoid C++ error on HP-UX 11.
1332         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
1333
1334 2010-12-31  Bruno Haible  <bruno@clisp.org>
1335
1336         time_r: Add missing declarations on HP-UX 11.
1337         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
1338         instead of HAVE_LOCALTIME_R.
1339         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
1340         HAVE_LOCALTIME_R always.
1341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
1342         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
1343         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
1344         HAVE_LOCALTIME_R.
1345         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
1346         * doc/posix-functions/localtime_r.texi: Likewise.
1347
1348 2010-12-29  Eric Blake  <eblake@redhat.com>
1349
1350         mountlist: tweak previous commit
1351         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
1352         Reported by Paul Eggert.
1353
1354         mountlist: fix local drive detection on cygwin
1355         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
1356         that works for cygwin.
1357
1358 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1359
1360         ftoastr, snprintf: ftoastr + snprintf module
1361         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
1362         since the snprintf module now should be good enough here.
1363         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
1364         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
1365         and gl_MODULE_INDICATOR([snprintf]), but the former enables
1366         GNULIB_SNPRINTF only for the test directory, and the latter
1367         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
1368         seems to suffice by itself.
1369
1370 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1371
1372         alloca: one step towards thread-safety
1373         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
1374         need for a static variable.  All callers changed.  This does not
1375         make the alloca replacement thread-safe, but it's one step.
1376
1377         tests: minor indenting change
1378         * tests/init.sh: Sync from coreutils housekeeping patch
1379         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
1380         to keep lines within 80 columns.
1381
1382 2010-12-28  Jim Meyering  <meyering@redhat.com>
1383
1384         regex: don't infloop on persistent failing calloc
1385         * lib/regexec.c (build_trtable): Return failure indication upon
1386         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
1387         In glibc, this was fixed for version 2.13:
1388         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
1389
1390 2010-12-28  Bruno Haible  <bruno@clisp.org>
1391             Paul Eggert <eggert@cs.ucla.edu>
1392
1393         linkat: Make implementation robust against system behaviour variations.
1394         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
1395         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
1396         way, and to -2 if it needs a generic runtime test.
1397         * lib/linkat.c (solaris_optimized_link_immediate,
1398         solaris_optimized_link_follow): New functions.
1399         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
1400         (check_same_link): Use it.
1401
1402 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
1403
1404         New module 'unigbrk/base'.
1405         * modules/unigbrk/base: New file.
1406         * lib/unigbrk.in.h: New file.
1407
1408         New module 'unigbrk/uc-gbrk-prop'.
1409         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
1410         * modules/unigbrk/uc-gbrk-prop: New file.
1411         * lib/unigbrk/gbrkprop.h: New file.
1412         * lib/unigbrk/uc-gbrk-prop.c: New file.
1413
1414         New module 'unigbrk/uc-is-grapheme-break'.
1415         * modules/unigbrk/uc-is-grapheme-break: New file.
1416         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
1417         * lib/unigbrk/uc-is-grapheme-break.c: New file.
1418         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
1419         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
1420         * tests/unigbrk/GraphemeBreakTest.txt: New file.
1421
1422         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
1423
1424 2010-12-27  Bruno Haible  <bruno@clisp.org>
1425
1426         linkat test: Avoid failure on Solaris 11 2010-11.
1427         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
1428
1429 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1430
1431         utimens: work around glibc rounding bug on more platforms
1432         * lib/utimens.c (fdutimens): Work around rounding bug even if
1433         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
1434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
1435
1436 2010-12-27  Bruno Haible  <bruno@clisp.org>
1437
1438         select tests: Improve comments.
1439         * tests/test-select.c (do_select): Add comments.
1440
1441 2010-12-27  Bruno Haible  <bruno@clisp.org>
1442
1443         select tests: Safer way of handling timeout.
1444         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
1445         at every invocation.
1446
1447 2010-12-27  Bruno Haible  <bruno@clisp.org>
1448
1449         select tests: Use 'bool' where appropriate.
1450         * tests/test-select.c (connect_to_socket): Change argument type to
1451         'bool'.
1452
1453 2010-12-27  Bruno Haible  <bruno@clisp.org>
1454
1455         select tests: Use existing modules.
1456         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
1457         (configure.ac): Don't test for unistd.h.
1458         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
1459         declared in <unistd.h>.
1460
1461 2010-12-27  Bruno Haible  <bruno@clisp.org>
1462
1463         mbrtowc: Work around a Solaris 7 bug.
1464         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
1465         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
1466         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
1467         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
1468         MBRTOWC_NULL_ARG1_BUG.
1469         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
1470         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
1471         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
1472         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
1473
1474 2010-12-27  Jim Meyering  <meyering@redhat.com>
1475
1476         read-file.c: tweak syntax
1477         * lib/read-file.c (fread_file): Remove space after "*" in function
1478         definitions.
1479
1480 2010-12-27  Bruno Haible  <bruno@clisp.org>
1481
1482         times test: Avoid gcc warnings on OSF/1.
1483         * tests/test-times.c (main): Cast printf arguments from clock_t to
1484         'long int'.
1485
1486 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1487
1488         utimens: work around glibc rounding bug on older Linux kernels
1489         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
1490         on Linux with a glibc whose utimes might not work, then work
1491         around a longstanding glibc bug involving rounding rather than
1492         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
1493         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1494
1495 2010-12-26  Bruno Haible  <bruno@clisp.org>
1496
1497         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
1498         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
1499         _GL_CXXALIAS_SYS.
1500         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1501
1502 2010-12-26  Bruno Haible  <bruno@clisp.org>
1503
1504         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
1505         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
1506         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1507         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
1508         looking for the declaration.
1509         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
1510         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
1511         problem.
1512         * doc/posix-functions/inet_pton.texi: Likewise.
1513
1514 2010-12-26  Bruno Haible  <bruno@clisp.org>
1515
1516         arpa_inet: Use the common idioms with C++ support.
1517         * lib/arpa_inet.in.h: Include c++defs.h.
1518         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
1519         support.
1520         * modules/arpa_inet (Depends-on): Add c++defs.
1521         (Makefile.am): Substitute the contents of c++defs.h.
1522         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
1523         * modules/arpa_inet-c++-tests: New file.
1524         * tests/test-arpa_inet-c++.cc: New file.
1525
1526 2010-12-25  Bruno Haible  <bruno@clisp.org>
1527
1528         Fix more C++ link errors on Solaris 8.
1529         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
1530         $(LIB_EACCESS).
1531         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
1532         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
1533         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
1534         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
1535         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
1536
1537 2010-12-25  Bruno Haible  <bruno@clisp.org>
1538
1539         printf-posix: Fix link error when a non-GCC compiler is used.
1540         * lib/stdio.in.h (printf): When not using GCC, override printf
1541         correctly.
1542         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1543
1544 2010-12-25  Bruno Haible  <bruno@clisp.org>
1545
1546         strerror_r-posix: Update doc.
1547         * doc/posix-functions/strerror_r.texi: Update doc about the return
1548         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
1549
1550 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1551
1552         utimens: simplify the logic of the previous change
1553         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
1554         This should not affect whether the test succeeds or fails.
1555
1556         utimens: configure better on hosts with NFS clock skew
1557         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
1558         uses the clock of the local host.  It might use the clock of the
1559         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
1560         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
1561
1562 2010-12-25  Bruno Haible  <bruno@clisp.org>
1563
1564         ptsname test: Avoid failure on Solaris.
1565         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
1566         open a pseudo-terminal; don't use BSD-style ptys.
1567         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
1568
1569 2010-12-25  Bruno Haible  <bruno@clisp.org>
1570
1571         ptsname: Avoid ERANGE failure on some systems.
1572         * lib/ptsname.c (buffer): Increase size.
1573
1574 2010-12-25  Bruno Haible  <bruno@clisp.org>
1575
1576         rename, renameat: Avoid test failures at NFS mounted locations.
1577         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
1578         so that subsequent mkdir calls succeed.
1579
1580 2010-12-25  Bruno Haible  <bruno@clisp.org>
1581
1582         iswblank: Fix C++ link error on Solaris 8.
1583         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
1584         _GL_FUNCDECL_SYS.
1585
1586 2010-12-25  Bruno Haible  <bruno@clisp.org>
1587
1588         unistd: Fix C++ link error on Solaris 8.
1589         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
1590
1591 2010-12-25  Bruno Haible  <bruno@clisp.org>
1592
1593         readlink doc: Mention an old glibc bug.
1594         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
1595
1596 2010-12-25  Bruno Haible  <bruno@clisp.org>
1597
1598         fcntl-h: Fix for use of C++ on glibc systems.
1599         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1600         also on glibc systems in C++ mode.
1601         Reported by Gary V. Vaughan <gary@gnu.org>.
1602
1603 2010-12-25  Bruno Haible  <bruno@clisp.org>
1604
1605         roundl-ieee: Make it work on OSF/1 5.1 with cc.
1606         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
1607
1608 2010-12-25  Bruno Haible  <bruno@clisp.org>
1609
1610         truncl-ieee: Make it work on OSF/1 5.1 with cc.
1611         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
1612         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
1613         test whether truncl works according to ISO C 99 with IEC 60559.
1614         * m4/truncl-ieee.m4: New file.
1615         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
1616         m4/signbit.m4.
1617         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
1618
1619 2010-12-25  Bruno Haible  <bruno@clisp.org>
1620
1621         ceill-ieee: Make it work on OSF/1 5.1 with cc.
1622         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
1623         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
1624         test whether ceill works according to ISO C 99 with IEC 60559.
1625         * m4/ceill-ieee.m4: New file.
1626         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
1627         m4/signbit.m4.
1628         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
1629
1630 2010-12-25  Bruno Haible  <bruno@clisp.org>
1631
1632         Ensure all prerequisites of <wchar.h> are included.
1633         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
1634         before <wchar.h>.
1635         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1636         gl_MBRLEN_NUL_RETVAL): Likewise.
1637         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1638         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
1639         AC_FUNC_MBRTOWC): Likewise.
1640         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1641         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1642         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1643         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1644         Likewise.
1645         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1646         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
1647         (gl_WCHAR_H): Improve comments.
1648         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1649
1650 2010-12-25  Bruno Haible  <bruno@clisp.org>
1651
1652         strtok_r: Fix C syntax error in autoconf macro.
1653         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
1654         characters in test program.
1655
1656 2010-12-24  Bruno Haible  <bruno@clisp.org>
1657
1658         ceil, trunc, round: Fix gcc warnings.
1659         * lib/ceil.c (MIN): Undefine before redefining.
1660         * lib/trunc.c (MIN): Likewise.
1661         * lib/round.c (MIN): Likewise.
1662         Include <math.h> first.
1663
1664 2010-12-24  Bruno Haible  <bruno@clisp.org>
1665
1666         select tests: Avoid failures on OSF/1 5.1.
1667         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
1668         failure of closing the last socket; it may fail with ECONNRESET.
1669
1670 2010-12-24  Eric Blake  <eblake@redhat.com>
1671
1672         stdint: avoid HP-UX 10.20 preprocessor bug
1673         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
1674         than #if.
1675         * tests/test-floor2.c (main): Likewise.
1676         Reported by Peter O'Gorman.
1677
1678         pipe: make obsoletion transition easier
1679         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
1680         * modules/pipe (Files): Include revived file.
1681         (Include): Drop reference, to mirror getdate's behavior.
1682
1683 2010-12-24  Bruno Haible  <bruno@clisp.org>
1684
1685         sys_socket: Hide mismatch of declarations on NonStop Kernel.
1686         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
1687         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
1688         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1689
1690 2010-12-24  Bruno Haible  <bruno@clisp.org>
1691
1692         gethostname: Ensure declaration on NonStop Kernel.
1693         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
1694         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1695
1696 2010-12-24  Bruno Haible  <bruno@clisp.org>
1697
1698         sys_select: Ensure all necessary types on NonStop Kernel.
1699         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
1700         include <sys/time.h>.
1701         * doc/posix-headers/sys_select.texi: Mention that it's missing on
1702         NonStop Kernel.
1703         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1704
1705 2010-12-24  Bruno Haible  <bruno@clisp.org>
1706
1707         sys_select: Remove unneeded include.
1708         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
1709         have <sys/select.h>.
1710
1711 2010-12-24  Bruno Haible  <bruno@clisp.org>
1712
1713         gethostname: Provide a fallback for HOST_NAME_MAX.
1714         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
1715         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
1716         instead.
1717         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1718
1719 2010-12-24  Bruno Haible  <bruno@clisp.org>
1720
1721         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
1722         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
1723         (SA_RESTART): Likewise.
1724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1725
1726 2010-12-24  Bruno Haible  <bruno@clisp.org>
1727
1728         signal: Define NSIG.
1729         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
1730         * tests/test-signal.c (nsig): New variable.
1731         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1732
1733 2010-12-24  Bruno Haible  <bruno@clisp.org>
1734
1735         rename, renameat: Avoid test failures on OSF/1 5.1.
1736         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
1737         alternative error codes.
1738         * tests/test-renameat.c (main): Likewise.
1739
1740 2010-12-24  Bruno Haible  <bruno@clisp.org>
1741
1742         *printf: Detect large precisions bug on Solaris 10/SPARC.
1743         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
1744         by Paul Eggert.
1745         * tests/test-snprintf-posix.h (test_function): Add this test code here
1746         too.
1747         * tests/test-sprintf-posix.h (test_function): Likewise.
1748         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1749         * tests/test-vasprintf-posix.c (test_function): Likewise.
1750         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
1751         around by gnulib.
1752         * doc/posix-functions/printf.texi: Likewise.
1753         * doc/posix-functions/snprintf.texi: Likewise.
1754         * doc/posix-functions/sprintf.texi: Likewise.
1755         * doc/posix-functions/vfprintf.texi: Likewise.
1756         * doc/posix-functions/vprintf.texi: Likewise.
1757         * doc/posix-functions/vsnprintf.texi: Likewise.
1758         * doc/posix-functions/vsprintf.texi: Likewise.
1759         * doc/posix-functions/dprintf.texi: Undo last commit.
1760         * doc/posix-functions/vdprintf.texi: Likewise.
1761
1762 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         tests: port test-fdutimensat.c to Solaris 8
1765         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
1766         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
1767         On Solaris 8, it fails with errno == ENOSYS, because there is no
1768         futimens (so it can't use the fd), and there is no lutimens (so it
1769         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
1770
1771         vsnprintf: make more consistent with snprintf; doc fixes
1772
1773         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
1774         the byte count return problem was promoted from the snprintf-posix
1775         to the snprintf module.
1776         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1777         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
1778         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
1779         * tests/test-snprintf.c (main): Check the byte count returned.
1780         * tests/test-vsnprintf.c (main): Likewise.
1781
1782 2010-12-23  Eric Blake  <eblake@redhat.com>
1783
1784         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
1785         * modules/sigpipe (License): Relax license.
1786
1787 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1788
1789         doc: document Solaris printf bug with large float precisions
1790         * doc/posix-functions/dprintf.texi (dprintf):
1791         * doc/posix-functions/fprintf.texi (fprintf):
1792         * doc/posix-functions/printf.texi (printf):
1793         * doc/posix-functions/snprintf.texi (snprintf):
1794         * doc/posix-functions/sprintf.texi (sprintf):
1795         * doc/posix-functions/vdprintf.texi (vdprintf):
1796         * doc/posix-functions/vfprintf.texi (vfprintf):
1797         * doc/posix-functions/vprintf.texi (vprintf):
1798         * doc/posix-functions/vsnprintf.texi (vsnprintf):
1799         * doc/posix-functions/vsprintf.texi (vsprintf):
1800         Mention that these functions mishandle large floating point
1801         precisions on Solaris 10.  The same bug is also present in Solaris
1802         8, and I assume earlier.  This causes "cd gnulib-tests; make
1803         check" to fail on Solaris 8 (and I assume, later) when building
1804         the latest coreutils, in test-vasprintf-posix's call to
1805         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
1806         the wide flavors (e.g., wprintf) so this patch just updates the
1807         documentation for the narrow ones.
1808
1809         test-posixtm.c: add two tests
1810         * tests/test-posixtm.c: Add two tests, to highlight the
1811         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
1812         around this bug; this is merely to document it.
1813
1814 2010-12-22  Bruno Haible  <bruno@clisp.org>
1815
1816         getlogin_r: Work around portability problem on OSF/1.
1817         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
1818         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
1819         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
1820         test for a truncated result.
1821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
1822         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
1823         * modules/getlogin_r (Depends-on): Add memchr.
1824         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
1825
1826 2010-12-22  Bruno Haible  <bruno@clisp.org>
1827
1828         ptsname: Avoid test failure on OSF/1 5.1.
1829         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
1830         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
1831         (same_slave): New function.
1832         (main): Use it to compare ptsname's result with the expected file name.
1833
1834 2010-12-22  Bruno Haible  <bruno@clisp.org>
1835
1836         Port extended stdio modules to HP NonStop Kernel.
1837         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
1838         macros.
1839         * lib/fbufmode.c: Update comments.
1840         * lib/fflush.c: Likewise.
1841         * lib/fpurge.c: Likewise.
1842         * lib/freadable.c: Likewise.
1843         * lib/freadahead.c: Likewise.
1844         * lib/freading.c: Likewise.
1845         * lib/freadptr.c: Likewise.
1846         * lib/freadseek.c: Likewise.
1847         * lib/fseeko.c: Likewise.
1848         * lib/fseterr.c: Likewise.
1849         * lib/fwritable.c: Likewise.
1850         * lib/fwriting.c: Likewise.
1851         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
1852
1853 2010-12-22  Bruno Haible  <bruno@clisp.org>
1854
1855         ttyname_r: Work around bug on OSF/1 5.1.
1856         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
1857         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
1858         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
1859         present.
1860         * lib/ttyname_r.c (ttyname_r): Update comments.
1861
1862 2010-12-22  Bruno Haible  <bruno@clisp.org>
1863
1864         round: Implement result sign according to IEEE 754.
1865         * lib/round.c (MIN, MINUS_ZERO): New macros.
1866         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
1867         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
1868         * tests/test-round-ieee.c (main): Likewise.
1869         * tests/test-roundl-ieee.c (main): Likewise.
1870
1871         trunc: Implement result sign according to IEEE 754.
1872         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
1873         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
1874         * tests/test-trunc2.c: Include minus-zero.h.
1875         (MINUS_ZERO): New macro.
1876         (trunc_reference): Keep in sync with lib/trunc.c.
1877         * tests/test-truncf2.c: Include minus-zero.h.
1878         (MINUS_ZERO): New macro.
1879         (truncf_reference): Keep in sync with lib/trunc.c.
1880         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
1881         * tests/test-trunc-ieee.c (main): Likewise.
1882         * tests/test-truncl-ieee.c (main): Likewise.
1883
1884         ceil: Implement result sign according to IEEE 754.
1885         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
1886         (FUNC): Return -0.0 for -1 < x < 0.
1887         * tests/test-ceil2.c: Include minus-zero.h.
1888         (MINUS_ZERO): New macro.
1889         (ceil_reference): Keep in sync with lib/ceil.c.
1890         * tests/test-ceilf2.c: Include minus-zero.h.
1891         (MINUS_ZERO): New macro.
1892         (ceilf_reference): Keep in sync with lib/ceil.c.
1893         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
1894         * tests/test-ceil-ieee.c (main): Likewise.
1895         * tests/test-ceill-ieee.c (main): Likewise.
1896
1897         floor: Implement result sign according to IEEE 754.
1898         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
1899         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
1900         * tests/test-floorf2.c (floorf_reference): Likewise.
1901         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
1902         * tests/test-floor-ieee.c (main): Likewise.
1903         * tests/test-floorl-ieee.c (main): Likewise.
1904
1905 2010-12-22  Bruno Haible  <bruno@clisp.org>
1906
1907         getaddrinfo: Update doc.
1908         * doc/posix-functions/gai_strerror.texi: Return type is also different
1909         on AIX and HP-UX.
1910
1911 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1912
1913         getaddrinfo, inet_ntop: Update doc for Solaris.
1914         * doc/posix-functions/gai_strerror.texi: Return type is also an
1915         issue on Solaris 9 and earlier.
1916         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
1917         on Solaris 10 and earlier.
1918
1919 2010-12-21  Bruno Haible  <bruno@clisp.org>
1920
1921         New module 'roundl-ieee'.
1922         * modules/roundl-ieee: New file.
1923         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
1924         test whether roundl works according to ISO C 99 with IEC 60559.
1925         * m4/roundl-ieee.m4: New file.
1926         * modules/roundl-ieee-tests: New file.
1927         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
1928         * tests/test-roundl.c (main): Remove signbit tests.
1929         * modules/roundl-tests (Depends-on): Remove signbit.
1930         * doc/posix-functions/roundl.texi: Mention the new module.
1931
1932 2010-12-21  Bruno Haible  <bruno@clisp.org>
1933
1934         New module 'truncl-ieee'.
1935         * modules/truncl-ieee: New file.
1936         * modules/truncl-ieee-tests: New file.
1937         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
1938         * tests/test-truncl.c (main): Remove signbit tests.
1939         * modules/truncl-tests (Depends-on): Remove signbit.
1940         * doc/posix-functions/truncl.texi: Mention the new module.
1941
1942 2010-12-21  Bruno Haible  <bruno@clisp.org>
1943
1944         New module 'ceill-ieee'.
1945         * modules/ceill-ieee: New file.
1946         * modules/ceill-ieee-tests: New file.
1947         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
1948         * tests/test-ceill.c (main): Remove signbit tests.
1949         * modules/ceill-tests (Depends-on): Remove signbit.
1950         * doc/posix-functions/ceill.texi: Mention the new module.
1951
1952 2010-12-21  Bruno Haible  <bruno@clisp.org>
1953
1954         New module 'floorl-ieee'.
1955         * modules/floorl-ieee: New file.
1956         * modules/floorl-ieee-tests: New file.
1957         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
1958         * tests/test-floorl.c (main): Remove signbit tests.
1959         * modules/floorl-tests (Depends-on): Remove signbit.
1960         * doc/posix-functions/floorl.texi: Mention the new module.
1961
1962 2010-12-21  Bruno Haible  <bruno@clisp.org>
1963
1964         New module 'round-ieee'.
1965         * modules/round-ieee: New file.
1966         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
1967         whether round works according to ISO C 99 with IEC 60559.
1968         * m4/round-ieee.m4: New file.
1969         * modules/round-ieee-tests: New file.
1970         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
1971         * tests/test-round1.c (main): Remove signbit tests.
1972         * modules/round-tests (Depends-on): Remove 'signbit'.
1973         * doc/posix-functions/round.texi: Mention the new module.
1974
1975 2010-12-21  Bruno Haible  <bruno@clisp.org>
1976
1977         New module 'trunc-ieee'.
1978         * modules/trunc-ieee: New file.
1979         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
1980         whether trunc works according to ISO C 99 with IEC 60559.
1981         * m4/trunc-ieee.m4: New file.
1982         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
1983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
1984         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
1985         * modules/trunc-ieee-tests: New file.
1986         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
1987         * tests/test-trunc1.c (main): Remove signbit tests.
1988         * modules/trunc-tests (Depends-on): Remove 'signbit'.
1989         * doc/posix-functions/trunc.texi: Mention the new module.
1990
1991 2010-12-21  Bruno Haible  <bruno@clisp.org>
1992
1993         New module 'ceil-ieee'.
1994         * modules/ceil-ieee: New file.
1995         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
1996         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
1997         ISO C 99 with IEC 60559.
1998         * m4/ceil-ieee.m4: New file.
1999         * modules/ceil (Files): Add lib/ceil.c.
2000         (Depends-on): Add 'float'.
2001         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2002         * lib/math.in.h (ceil): New declaration.
2003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
2004         REPLACE_CEIL.
2005         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
2006         * modules/ceil-ieee-tests: New file.
2007         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
2008         * tests/test-math-c++.cc: Check the signature of 'ceil'.
2009         * doc/posix-functions/ceil.texi: Mention the new module.
2010
2011 2010-12-21  Bruno Haible  <bruno@clisp.org>
2012
2013         New module 'floor-ieee'.
2014         * modules/floor-ieee: New file.
2015         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
2016         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
2017         ISO C 99 with IEC 60559.
2018         * m4/floor-ieee.m4: New file.
2019         * modules/floor (Files): Add lib/floor.c.
2020         (Depends-on): Add 'float'.
2021         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
2022         * lib/math.in.h (floor): New declaration.
2023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
2024         REPLACE_FLOOR.
2025         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
2026         * modules/floor-ieee-tests: New file.
2027         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
2028         * tests/test-math-c++.cc: Check the signature of 'floor'.
2029         * doc/posix-functions/floor.texi: Mention the new module.
2030
2031 2010-12-21  Bruno Haible  <bruno@clisp.org>
2032
2033         New module 'roundf-ieee'.
2034         * modules/roundf-ieee: New file.
2035         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
2036         test whether roundf works according to ISO C 99 with IEC 60559.
2037         * m4/roundf-ieee.m4: New file.
2038         * modules/roundf-ieee-tests: New file.
2039         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
2040         * tests/test-roundf1.c (main): Remove signbit tests.
2041         * modules/roundf-tests (Depends-on): Remove 'signbit'.
2042         * doc/posix-functions/roundf.texi: Mention the new module.
2043
2044 2010-12-21  Bruno Haible  <bruno@clisp.org>
2045
2046         New module 'truncf-ieee'.
2047         * modules/truncf-ieee: New file.
2048         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
2049         test whether truncf works according to ISO C 99 with IEC 60559.
2050         * m4/truncf-ieee.m4: New file.
2051         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
2052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
2053         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
2054         * modules/truncf-ieee-tests: New file.
2055         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
2056         * tests/test-truncf1.c (main): Remove signbit tests.
2057         * modules/truncf-tests (Depends-on): Remove 'signbit'.
2058         * doc/posix-functions/truncf.texi: Mention the new module.
2059
2060 2010-12-21  Bruno Haible  <bruno@clisp.org>
2061
2062         New module 'ceilf-ieee'.
2063         * modules/ceilf-ieee: New file.
2064         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
2065         test whether ceilf works according to ISO C 99 with IEC 60559.
2066         * m4/ceilf-ieee.m4: New file.
2067         * modules/ceilf-ieee-tests: New file.
2068         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
2069         * tests/test-ceilf1.c (main): Remove signbit tests.
2070         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
2071         * doc/posix-functions/ceilf.texi: Mention the new module.
2072
2073 2010-12-21  Bruno Haible  <bruno@clisp.org>
2074
2075         New module 'floorf-ieee'.
2076         * modules/floorf-ieee: New file.
2077         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
2078         test whether floorf works according to ISO C 99 with IEC 60559.
2079         * m4/floorf-ieee.m4: New file.
2080         * modules/floorf-ieee-tests: New file.
2081         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
2082         * tests/test-floorf1.c (main): Remove signbit tests.
2083         * modules/floorf-tests (Depends-on): Remove 'signbit'.
2084         * doc/posix-functions/floorf.texi: Mention the new module.
2085
2086 2010-12-21  Bruno Haible  <bruno@clisp.org>
2087
2088         Support for minus zero in autoconf macros.
2089         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
2090         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
2091         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
2092         * tests/minus-zero.h: Update comments.
2093
2094 2010-12-21  Bruno Haible  <bruno@clisp.org>
2095
2096         Tests for module 'ceil'.
2097         * modules/ceil-tests: New file.
2098         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
2099         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
2100
2101 2010-12-21  Bruno Haible  <bruno@clisp.org>
2102
2103         Tests for module 'floor'.
2104         * modules/floor-tests: New file.
2105         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
2106         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
2107
2108 2010-12-21  Bruno Haible  <bruno@clisp.org>
2109
2110         math: Fix indentation.
2111         * lib/math.in.h (floorf): Fix indentation.
2112
2113 2010-12-21  Bruno Haible  <bruno@clisp.org>
2114
2115         Fix cross-compilation guesses on Solaris.
2116         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
2117         not match "solaris2.10".
2118         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2119         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
2120         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
2121
2122 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2123
2124         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
2125         This fixes a problem observed with the latest coreutils snapshot
2126         that caused a test to fail on Solaris 8.  src/csplit.c's call
2127         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
2128         earlier, instead of returning the number of bytes that would have
2129         been generated; this causes csplit to incorrectly report memory
2130         exhaustion.
2131         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
2132         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
2133         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
2134         comments to match.
2135         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
2136         Fix typo in matching older versions of Solaris: "solaris2.10"
2137         is matched by the shell pattern "solaris2.[0-9]*".  This matters
2138         only for guessing while cross-compiling.
2139         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
2140
2141 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2142
2143         ftoastr: fix comment again
2144         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
2146         Also, simplify example a bit by using flags = 0.
2147
2148 2010-12-20  Bruno Haible  <bruno@clisp.org>
2149
2150         round*, trunc*: Update documentation regarding glibc.
2151         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
2152         * doc/posix-functions/round.texi: Likewise.
2153         * doc/posix-functions/roundl.texi: Likewise.
2154         * doc/posix-functions/truncf.texi: Likewise.
2155         * doc/posix-functions/trunc.texi: Likewise.
2156         * doc/posix-functions/truncl.texi: Likewise.
2157
2158 2010-12-20  Bruno Haible  <bruno@clisp.org>
2159
2160         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
2161         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
2162         * doc/posix-functions/round.texi: Likewise.
2163         * doc/posix-functions/roundl.texi: Likewise.
2164
2165 2010-12-20  Bruno Haible  <bruno@clisp.org>
2166
2167         ttyname_r: Add missing declaration on HP-UX 11.
2168         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
2169         HAVE_TTYNAME_R.
2170         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
2171         declared. Set HAVE_TTYNAME_R always.
2172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2173         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
2174         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
2175         HAVE_TTYNAME_R.
2176         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
2177
2178 2010-12-20  Bruno Haible  <bruno@clisp.org>
2179
2180         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
2181         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
2182         * doc/posix-functions/getlogin_r.texi: Likewise.
2183         * tests/test-getlogin.c: Include <errno.h>.
2184         (main): Avoid test failure on HP-UX 11.11.
2185         * tests/test-getlogin_r.c (main): Likewise.
2186
2187 2010-12-20  Bruno Haible  <bruno@clisp.org>
2188
2189         getlogin_r: Add missing declaration on HP-UX 11.
2190         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
2191         declared also when it exists as a function.
2192         * doc/posix-functions/getlogin_r.texi: Document this workaround.
2193
2194 2010-12-20  Bruno Haible  <bruno@clisp.org>
2195
2196         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
2197         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
2198         through wcrtomb.
2199
2200 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2201
2202         ftoastr: fix comment
2203         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
2204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
2205
2206 2010-12-19  Bruno Haible  <bruno@clisp.org>
2207
2208         isnan: Ensure it is a macro.
2209         * lib/math.in.h (isnan): Define as a macro if not already a macro.
2210         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
2211         Solaris.
2212
2213 2010-12-19  Bruno Haible  <bruno@clisp.org>
2214
2215         ldexpl test: Fix link error on OSF/1 5.1.
2216         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
2217
2218 2010-12-19  Bruno Haible  <bruno@clisp.org>
2219
2220         wctype: Make it work in C++ mode on OSF/1 5.1.
2221         * lib/wctype.in.h (iswblank): Declare but not define here.
2222         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
2223         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
2224         * modules/wctype (Files): Add lib/iswblank.c.
2225
2226 2010-12-19  Bruno Haible  <bruno@clisp.org>
2227
2228         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
2229         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
2230         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
2231
2232 2010-12-19  Bruno Haible  <bruno@clisp.org>
2233
2234         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
2235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
2236         _POSIX_PII_SOCKET.
2237         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
2238         * doc/posix-functions/recvfrom.texi: Likewise.
2239         * doc/posix-functions/send.texi: Likewise.
2240         * doc/posix-functions/sendto.texi: Likewise.
2241
2242 2010-12-19  Bruno Haible  <bruno@clisp.org>
2243
2244         tcgetsid: Add missing declaration on OSF/1 5.1.
2245         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
2246         HAVE_TCGETSID.
2247         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
2248         Don't set HAVE_TCGETSID.
2249         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
2250         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
2251         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
2252         HAVE_TCGETSID.
2253         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
2254
2255 2010-12-19  Bruno Haible  <bruno@clisp.org>
2256
2257         stdio: Fix problem with popen() declaration on OSF/1 5.1.
2258         * lib/stdio.in.h: During the include_next statement, let recursive
2259         includes of this file include only the system header file.
2260
2261 2010-12-19  Bruno Haible  <bruno@clisp.org>
2262
2263         iconv_open: Fix regression from 2010-12-04.
2264         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
2265         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
2266
2267 2010-12-19  Bruno Haible  <bruno@clisp.org>
2268
2269         stdbool test: Avoid a gcc warning.
2270         * tests/test-stdbool.c (main): Fail if e1 is false.
2271         Reported by Jim Meyering.
2272
2273 2010-12-19  Jim Meyering  <meyering@redhat.com>
2274
2275         setenv: restore to working order
2276         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
2277         mistakenly removed.
2278         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
2279         HAVE_SETENV.
2280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
2281         HAVE_SETENV.
2282
2283 2010-12-19  Bruno Haible  <bruno@clisp.org>
2284
2285         Document some different function declarations on OSF/1 5.1.
2286         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
2287         * doc/posix-functions/inet_ntop.texi: Likewise.
2288         * doc/posix-functions/gethostname.texi: Likewise.
2289         * lib/unistd.in.h (gethostname): Update comment.
2290
2291 2010-12-19  Bruno Haible  <bruno@clisp.org>
2292
2293         doc: Mention vasprintf-posix module.
2294         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
2295         the 'vasprintf-posix' module.
2296         * doc/glibc-functions/vasprintf.texi: Likewise.
2297
2298 2010-12-19  Bruno Haible  <bruno@clisp.org>
2299
2300         unsetenv: Add missing declaration on OSF/1 5.1.
2301         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
2302         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
2303         Don't set HAVE_UNSETENV. In the test program, set _BSD.
2304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
2305         not HAVE_UNSETENV.
2306         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
2307         HAVE_UNSETENV.
2308         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
2309
2310 2010-12-19  Bruno Haible  <bruno@clisp.org>
2311
2312         setenv: Add missing declaration on OSF/1 5.1.
2313         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
2314         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
2315         declared. Don't set HAVE_SETENV.
2316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
2317         not HAVE_SETENV.
2318         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
2319         HAVE_SETENV.
2320         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
2321
2322 2010-12-19  Bruno Haible  <bruno@clisp.org>
2323
2324         nl_langinfo tests: Avoid gcc warning.
2325         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
2326
2327 2010-12-19  Bruno Haible  <bruno@clisp.org>
2328
2329         mknod: Avoid error in C++ mode on OSF/1 with GCC.
2330         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
2331         _GL_CXXALIAS_SYS.
2332
2333 2010-12-19  Bruno Haible  <bruno@clisp.org>
2334
2335         stdbool: Relax test.
2336         * tests/test-stdbool.c (e): Don't require that casts from a variable's
2337         address to 'bool' work in static initializer, for compilers other than
2338         GCC.
2339
2340 2010-12-19  Bruno Haible  <bruno@clisp.org>
2341
2342         ftello: Add missing declaration on OSF/1 5.1.
2343         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
2344         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
2345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
2346         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
2347         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
2348
2349 2010-12-19  Bruno Haible  <bruno@clisp.org>
2350
2351         fseeko: Add missing declaration on OSF/1 5.1.
2352         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
2353         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
2354         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
2355         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
2356         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
2357
2358 2010-12-19  Bruno Haible  <bruno@clisp.org>
2359
2360         fchdir: Add missing declaration on OSF/1 5.1.
2361         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
2362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
2363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
2364         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
2365         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
2366
2367 2010-12-19  Bruno Haible  <bruno@clisp.org>
2368
2369         relocatable-prog-wrapper: Separate from relocatable-prog.
2370         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
2371         uninstall-relocwrapper rule here.
2372         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
2373         Reported by Ian Beckwith <ianb@erislabs.net>.
2374
2375 2010-12-19  Bruno Haible  <bruno@clisp.org>
2376
2377         unistr/u8-mbsnlen: Add missing dependency.
2378         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
2379         Reported by Ian Beckwith <ianb@erislabs.net>.
2380
2381 2010-12-19  Bruno Haible  <bruno@clisp.org>
2382
2383         iconv: Make it possible again to use this module without 'iconv-h'.
2384         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
2385         if it is not defined.
2386         Reported by Ian Beckwith <ianb@erislabs.net>.
2387
2388 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         acl: port to Solaris 8 when copying from tmpfs to ufs
2391         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
2392         error number.  Problem observed on Solaris 8 with latest
2393         coreutils, with "mv A B", where A is on a tmpfs file system and B
2394         is on a ufs file system.  This caused coreutils' mv/part-symlink
2395         test to fail.
2396
2397         tests: set fail=0 at start
2398         * tests/init.sh (setup_): Move fail=0 initialization here ...
2399         (mktempd_): ... from here, so that tests can rely on fail being
2400         set to 0 initially.  This fixes a problem in coreutils; see:
2401         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
2402
2403 2010-12-18  Bruno Haible  <bruno@clisp.org>
2404
2405         memmem-simple: Stylistic changes.
2406         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
2407         Fix preprocessor directive indentation.
2408
2409 2010-12-15  Pádraig Brady <P@draigBrady.com>
2410
2411         memmem, memmem-simple: reorganize and expand empty needle check
2412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
2413         functional checks to memmem-simple so that one has a fully functional
2414         memmem by using just this module.
2415         Restrict the performance only check to the memmem module.
2416         Also expand the empty needle check to ensure the correct
2417         pointer is returned, not just a non NULL pointer.
2418         * doc/glibc-functions/memmem.texi: Rearrange the portability
2419         documentation to correlate with the rearranged checks.
2420         Clarify exactly how the memmem and memmem-simple modules
2421         relate to each other.
2422
2423 2010-12-15  Pádraig Brady <P@draigBrady.com>
2424             Bruno Haible  <bruno@clisp.org>
2425
2426         Improve cross-compilation guesses for uClibc.
2427         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
2428         that uClibc does not have the glibc bug.
2429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2430         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
2431
2432 2010-12-14  Eric Blake  <eblake@redhat.com>
2433
2434         configmake: provide fallbacks for oldest supported autotools
2435         * m4/configmake.m4: New file.
2436         * modules/configmake (Files): Ship it.
2437         (configure.ac): Use it to guarantee fallbacks.
2438
2439 2010-12-13  Pádraig Brady <P@draigBrady.com>
2440
2441         read-file: Improve handling of large files
2442         * lib/read-file.c (fread_file): Minimize realloc()s
2443         for regular files, and better manage sizes around SIZE_MAX.
2444
2445 2010-12-13  Eric Blake  <eblake@redhat.com>
2446
2447         cloexec, fcntl: relax license
2448         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
2449         consent from all contributors.
2450         * modules/fcntl (License): Likewise.
2451
2452 2010-12-10  Bruno Haible  <bruno@clisp.org>
2453
2454         Tests for module 'pipe-posix'.
2455         * modules/pipe-posix-tests: New file.
2456         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
2457
2458 2010-12-10  Bruno Haible  <bruno@clisp.org>
2459
2460         pipe-posix: Make it work in C++ mode.
2461         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
2462         (pipe): Use common idiom, not a macro definition.
2463         * lib/pipe.c: New file.
2464         * m4/pipe.m4: New file.
2465         * modules/pipe-posix (Description): Enhance.
2466         (Files): Add lib/pipe.c, m4/pipe.m4.
2467         (configure.ac): Invoke gl_FUNC_PIPE.
2468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
2469         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
2470         * tests/test-unistd-c++.cc: Check the signature of pipe.
2471
2472 2010-12-10  Bruno Haible  <bruno@clisp.org>
2473
2474         Rename module 'pipe' to 'spawn-pipe'.
2475         * modules/spawn-pipe: New file, renamed from modules/pipe.
2476         (Files, configure.ac, Makefile.am): Update.
2477         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
2478         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
2479         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
2480         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
2481         "spawn-pipe.h" instead of "pipe.h".
2482         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
2483         to gl_SPAWN_PIPE.
2484         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
2485         (Files, Makefile.am): Update.
2486         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
2487         Update.
2488         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
2489         Include "spawn-pipe.h" instead of "pipe.h".
2490         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
2491         * lib/javacomp.c: Likewise.
2492         * lib/javaversion.c: Likewise.
2493         * lib/pipe-filter-gi.c: Likewise.
2494         * lib/pipe-filter-ii.c: Likewise.
2495         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
2496         * modules/javacomp (Depends-on): Likewise.
2497         * modules/javaversion (Depends-on): Likewise.
2498         * modules/pipe-filter-gi (Depends-on): Likewise.
2499         * modules/pipe-filter-ii (Depends-on): Likewise.
2500         * MODULES.html.sh (Executing programs): Update.
2501         * NEWS: Mention the change.
2502
2503 2010-12-10  Eric Blake  <eblake@redhat.com>
2504
2505         pipe-posix: new module
2506         * modules/pipe-posix: New file.
2507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
2508         (gl_UNISTD_H): Check for declaration.
2509         * modules/unistd (Makefile.am): Substitute it.
2510         * lib/unistd.in.h (pipe): Provide it for mingw.
2511         * doc/posix-functions/pipe.texi (pipe): Update documentation.
2512         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
2513
2514 2010-12-07  Bruno Haible  <bruno@clisp.org>
2515
2516         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
2517         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
2518         u8_strcmp_gnu.
2519         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
2520
2521 2010-12-06  Bruno Haible  <bruno@clisp.org>
2522
2523         Update internal documentation.
2524         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
2525
2526 2010-12-04  Bruno Haible  <bruno@clisp.org>
2527
2528         Put more information about failed tests into the test return codes.
2529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
2530         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
2531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2533         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2534         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2535         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2536         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2537         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
2538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
2540         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2541         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2542         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2543         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
2544         returns a bit mask.
2545         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2546         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
2547         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
2548         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2549         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2550         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
2553         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2555         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2556         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2557         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2559         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2560         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2561         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
2562         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
2563         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2564         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
2565         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2566         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2567         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2568         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
2569         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2570         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2571         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2572         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2573         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2574         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
2575         gl_PRINTF_PRECISION): Likewise.
2576         * m4/regex.m4 (gl_REGEX): Likewise.
2577         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2578         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2579         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
2580         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2582         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2584         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
2585         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2586         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2588         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2589         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2590         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2591         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2592         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2593         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2594         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2596         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
2597         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
2598         enumerated value.
2599         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
2600
2601 2010-12-04  Bruno Haible  <bruno@clisp.org>
2602
2603         Update for Solaris 11 2010-11.
2604         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
2605         Express, released in November 2010.
2606
2607 2010-12-04  Bruno Haible  <bruno@clisp.org>
2608
2609         nproc: Relax license.
2610         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
2611         and Paul Eggert.
2612         Requested by Ludovic Courtès <ludo@gnu.org>.
2613
2614 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
2615
2616         utimecmp: fine-grained src to nearby coarse-grained dest
2617
2618         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
2619         and the source is on a file system with higher-resolution time
2620         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
2621         not work, and the time stamps are close together, the algorithm to
2622         determine the exact resolution from the read-back mtime was buggy:
2623         it had a "!=" where it should have had an "==".  This bug has been
2624         in the code ever since it was introduced to gnulib.
2625         Problem reported by Dan Jacobson in
2626         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
2627
2628 2010-11-30  Bruno Haible  <bruno@clisp.org>
2629
2630         strerror_r-posix: Fix autoconf test.
2631         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
2632
2633 2010-11-28  Bruno Haible  <bruno@clisp.org>
2634             Paul Eggert  <eggert@cs.ucla.edu>
2635
2636         Tests for module 'getdomainname'.
2637         * modules/getdomainname-tests: New file.
2638         * tests/test-getdomainname.c: New file, based on
2639         tests/test-gethostname.c.
2640
2641 2010-11-28  Bruno Haible  <bruno@clisp.org>
2642             Paul Eggert  <eggert@cs.ucla.edu>
2643
2644         getdomainname: Use the system function when possible.
2645         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
2646         (getdomainname): Replace if needed. Provide the declaration if it is
2647         missing. Don't use _GL_CXXALIAS_SYS_CAST.
2648         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
2649         (getdomainname): When the system has getdomainname, call the system
2650         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
2651         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
2652         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
2653         found in libnsl. Look for the declaration also in <netdb.h>. Replace
2654         the function if its second argument is of type 'int' or if it is found
2655         in libnsl.
2656         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
2657         <sys/systeminfo.h> and sysinfo().
2658         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
2659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2660         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
2661         HAVE_GETDOMAINNAME.
2662         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
2663         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
2664         * doc/glibc-functions/getdomainname.texi: Document the problems with
2665         the getdomainname declaration.
2666
2667 2010-11-28  Bruno Haible  <bruno@clisp.org>
2668
2669         sys_socket: Ensure ss_family field on AIX.
2670         * lib/sys_socket.in.h (ss_family): New macro definition.
2671         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
2672         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
2673         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2674         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2675         * modules/sys_socket (Makefile.am): Substitute
2676         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
2677         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
2678
2679 2010-11-27  Bruno Haible  <bruno@clisp.org>
2680
2681         readline: Improve configure output.
2682         * m4/readline.m4 (gl_FUNC_READLINE): Make the
2683         "checking for readline..." result understandable.
2684
2685 2010-11-27  Bruno Haible  <bruno@clisp.org>
2686
2687         *printf-posix: Detect a bug on Solaris 10/x86.
2688         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
2689         for floating-point output.
2690         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
2691         directive.
2692         * tests/test-snprintf-posix.h (test_function): Likewise.
2693         * tests/test-sprintf-posix.h (test_function): Likewise.
2694         * tests/test-vasprintf-posix.c (test_function): Likewise.
2695         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
2696         * doc/posix-functions/printf.texi: Likewise.
2697         * doc/posix-functions/snprintf.texi: Likewise.
2698         * doc/posix-functions/sprintf.texi: Likewise.
2699         * doc/posix-functions/vfprintf.texi: Likewise.
2700         * doc/posix-functions/vprintf.texi: Likewise.
2701         * doc/posix-functions/vsnprintf.texi: Likewise.
2702         * doc/posix-functions/vsprintf.texi: Likewise.
2703         * doc/glibc-functions/obstack_printf.texi: Likewise.
2704         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2705
2706 2010-11-27  Bruno Haible  <bruno@clisp.org>
2707
2708         Fix link error when module libunistring-optional is in use.
2709         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
2710         * modules/striconveha-tests (Makefile.am): Likewise.
2711
2712 2010-11-27  Bruno Haible  <bruno@clisp.org>
2713
2714         regex: Mention link dependencies.
2715         * modules/regex (Link): New section.
2716         * modules/rpmatch (Link): Likewise.
2717         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
2718
2719 2010-11-27  Bruno Haible  <bruno@clisp.org>
2720
2721         ftoastr: Fix compilation error on Solaris.
2722         * lib/ftoastr.c: Include <config.h>.
2723
2724 2010-11-27  Bruno Haible  <bruno@clisp.org>
2725
2726         getloadavg: Update documentation.
2727         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
2728
2729 2010-11-27  Bruno Haible  <bruno@clisp.org>
2730
2731         sys_socket: Fix test whether the functions are declared.
2732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
2733         not <sys/select.h>.
2734
2735 2010-11-27  Bruno Haible  <bruno@clisp.org>
2736
2737         getpass: Make sure to get system declaration on some platforms.
2738         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
2739         gl_USE_SYSTEM_EXTENSIONS.
2740         * modules/getpass (Depends-on): Add extensions.
2741
2742 2010-11-26  Bruno Haible  <bruno@clisp.org>
2743
2744         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
2745         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
2746         'iconv' module is present.
2747         (ICONV_CONST): New macro.
2748         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
2749         ICONV_CONST.
2750         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
2751         set ICONV_CONST.
2752         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
2753         here.
2754         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
2755         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
2756         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
2757         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
2758         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
2759         present.
2760
2761 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2762
2763         ftoastr: comment fix
2764         * lib/ftoastr.c: "little" -> "little or no" in comment
2765
2766 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2767
2768         stdint: port to GCC 4.3 + OSX + Octave
2769         On this platform, stdint.h is buggy and defines int64_t to long
2770         long int.  The replacement defined it to long int, causing
2771         problems with C++ style name mangling.  Instead, trust the system
2772         definition if INT64_MAX is defined, and likewise for the unsigned
2773         variant.   Problem reported by Jarno Rajahalme in
2774         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
2775         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
2776         and don't mess with int64_t and INT64_MAX in this case.
2777         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
2778
2779 2010-11-24  Bruno Haible  <bruno@clisp.org>
2780
2781         doc: Corrections regarding MacOS X 10.4 and 10.5.
2782         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
2783         MacOS X.
2784         Reported by Simon Josefsson.
2785
2786 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
2787
2788         Uninstall ".bin" files installed by relocwrapper.
2789         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
2790         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
2791         unless it is already there.
2792
2793 2010-11-21  Bruno Haible  <bruno@clisp.org>
2794
2795         Update for NetBSD 5.0.
2796         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2797         NetBSD; the test fails on NetBSD 5.0.
2798         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2799         about NetBSD.
2800
2801 2010-11-21  Bruno Haible  <bruno@clisp.org>
2802
2803         Update for HP-UX 11.23 and HP-UX 11.31.
2804         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
2805         HP-UX.
2806
2807 2010-11-21  Bruno Haible  <bruno@clisp.org>
2808
2809         Update for MacOS X 10.5.
2810         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
2811         MacOS X; the test fails on MacOS X 10.5.8.
2812         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
2813         about MacOS X.
2814
2815 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
2816
2817         bootstrap: add bootstrap_sync option.
2818         See discussion at
2819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
2820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
2821         * build-aux/bootstrap: Accept --bootstrap-sync to update
2822         bootstrap if it is not identical to the local gnulib's
2823         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
2824         enable this by default.  Accept --no-bootstrap-sync to disable
2825         it.
2826
2827 2010-11-20  Bruno Haible  <bruno@clisp.org>
2828
2829         Ensure that <features.h> is included before __GLIBC__ is tested.
2830         * lib/printf-parse.h: Include <features.h>.
2831         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
2832         Reported by Mike Frysinger <vapier@gentoo.org>.
2833
2834         Ensure that <features.h> is included before __GLIBC__ is tested.
2835         * lib/wchar.in.h: Include <features.h>.
2836         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
2837         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
2838         Reported by Mike Frysinger <vapier@gentoo.org>.
2839
2840         Ensure that <features.h> is included before __GLIBC__ is tested.
2841         * lib/arpa_inet.in.h: Include <features.h>.
2842         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
2843         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
2844         Reported by Mike Frysinger <vapier@gentoo.org>.
2845
2846         Ensure that <features.h> is included before __GLIBC__ is tested.
2847         * build-aux/link-warning.h: Include <features.h>.
2848         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
2849         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
2850         Reported by Mike Frysinger <vapier@gentoo.org>.
2851
2852         Ensure that <features.h> is included before __GLIBC__ is tested.
2853         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
2854         Reported by Mike Frysinger <vapier@gentoo.org>.
2855
2856 2010-11-20  Bruno Haible  <bruno@clisp.org>
2857
2858         memmem: Fix autoconf test.
2859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
2860
2861 2010-11-20  Bruno Haible  <bruno@clisp.org>
2862
2863         Port to uClibc.
2864         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
2865         * lib/fcntl.in.h: Likewise.
2866         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
2867         * lib/mbrtowc.c (mbrtowc): Likewise.
2868         * lib/relocatable.c (find_shared_library_fullname): Likewise.
2869         * lib/strerror_r.c: Likewise.
2870         * lib/unistr/u8-strnlen.c: Likewise.
2871         * lib/vasnprintf.c (decimal_point_char): Likewise.
2872         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2873         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2875         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
2876         * tests/test-sigaction.c (handler, main): Likewise.
2877         * lib/freading.h: Treat uClibc like a non-glibc platform.
2878         * lib/freading.c: Likewise.
2879         * lib/gettext.h: Likewise.
2880         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
2881         Likewise.
2882         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
2883         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2884         * lib/propername.c (proper_name_utf8): Likewise.
2885         * lib/spawn.in.h: Likewise.
2886         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
2887         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
2888         mem_cd_iconveh_internal): Likewise.
2889         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
2890         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2891         strstr, strcasestr): Likewise.
2892         * lib/unicodeio.c (unicode_to_mb): Likewise.
2893         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
2894         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
2895         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
2896         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
2897         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
2898         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
2899         * lib/unistr/u8-stpncpy.c: Likewise.
2900         * lib/vasnprintf.c (VASNPRINTF): Likewise.
2901         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
2902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2903         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2904         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
2905         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
2906         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
2907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
2908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2909         Likewise.
2910         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2911         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2912         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2913         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2914         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2916         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2917         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
2918         * tests/test-getopt.h (OPTIND_MIN): Likewise.
2919         * tests/test-striconveha.c (main): Likewise.
2920         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2921         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
2922         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
2923         * doc/posix-functions/getline.texi: Likewise.
2924         Reported by Mike Frysinger <vapier@gentoo.org>.
2925
2926 2010-11-20  Bruno Haible  <bruno@clisp.org>
2927
2928         nproc: Fix condition.
2929         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
2930         HAVE_PTHREAD_AFFINITY_NP.
2931
2932 2010-11-20  Bruno Haible  <bruno@clisp.org>
2933
2934         Fix a comment.
2935         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
2936
2937 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         ftoastr: don't assume snprintf
2940         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
2941         Implement a subset of snprintf here, by using sprintf safely.
2942         * modules/ftoastr (Depends-on): Remove snprintf.
2943
2944 2010-11-19  Jim Meyering  <meyering@redhat.com>
2945
2946         test-rename.h: fix compilation failure
2947         * tests/test-rename.h (test_rename): Add omitted "}".
2948
2949 2010-11-17  Jim Meyering  <meyering@redhat.com>
2950
2951         maint.mk: add a URL discussing the no-@acronym policy
2952         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
2953
2954 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         ftoastr: depend on snprintf, improve comments
2957         * lib/ftoastr.c: Also mention Loitsch's draft.
2958         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
2959         needed in the current implementation, but it might simplify
2960         speeding up the code later.
2961         * modules/ftoastr: Depend on snprintf; this improves portability.
2962         Suggested by Bruno Haible in the same email.
2963
2964         ftoastr: port to hosts lacking strtof and strtold
2965         Problem reported by Bruno Haible in
2966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
2967         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
2968         environment and strtold (and presumably strtof) are not available.
2969         * modules/ftoastr (Files): Add m4/c-strtod.m4.
2970         (configure.ac): Require gl_C99_STRTOLD.
2971
2972 2010-11-18  Bruno Haible  <bruno@clisp.org>
2973
2974         c-strtold: Avoid link error on AIX 7.
2975         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
2976         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
2977         (gl_C_STRTOLD): Test whether strtold_l exists.
2978         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2979
2980 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         intprops: new macro INT_BITS_STRLEN_BOUND
2983         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
2984         ftoastr.h.  This exposes an internal of intprops.h that was formerly
2985         not exposed.  Also, it uses a slightly tighter bound than before;
2986         though this makes no practical difference, we might as well be as
2987         tight as we easily can.
2988
2989         ftoastr: new module, for lossless conversion of floats to short strings
2990         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
2991         * modules/ftoastr: New files.
2992
2993 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2994
2995         bootstrap: port to Solaris sed
2996         * build-aux/bootstrap (get_version): Port to Solaris sed.
2997         See Ralf Wildenhues's note in
2998         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
2999
3000 2010-11-14  Jim Meyering  <meyering@redhat.com>
3001
3002         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
3003         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
3004         and move definition closer to sole use.
3005
3006 2010-11-13  Jim Meyering  <meyering@redhat.com>
3007
3008         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
3009         Now we require at least autoconf-2.59, which means the work-around
3010         is no longer needed.
3011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
3012         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3013         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3014         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
3015         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3016
3017 2010-11-13  Bruno Haible  <bruno@clisp.org>
3018
3019         rename, renameat: Avoid test failures at NFS mounted locations.
3020         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
3021         functions.
3022         (test_rename): Use assert_nonexistent.
3023         * tests/test-rename.c: Include <dirent.h>.
3024         * tests/test-renameat.c: Likewise.
3025         Reported by Gary V. Vaughan <gary@gnu.org>.
3026
3027         rename, renameat: Document Linux bug with NFS
3028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
3029         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
3030         * doc/posix-functions/renameat.texi: Likewise.
3031         Suggested by Eric Blake.
3032
3033 2010-11-13  Bruno Haible  <bruno@clisp.org>
3034
3035         rename test: Add comments.
3036         * tests/test-rename.h (test_rename): Add structure and comments.
3037
3038 2010-11-13  Eric Blake  <eblake@redhat.com>
3039
3040         maintainer-makefile: cover a few more files
3041         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
3042         scripts generated within C files, for libvirt.
3043
3044 2010-11-13  Bruno Haible  <bruno@clisp.org>
3045
3046         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
3047         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
3048         character, return the number of bytes that belong together, not always
3049         1.
3050         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
3051         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
3052         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
3053         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
3054         number of bytes of an invalid character.
3055         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
3056         (main): Invoke it.
3057         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
3058         results.
3059         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
3060         malformed byte sequences.
3061         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
3062         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
3063         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
3064         Reported by Ben Pfaff and Paolo Bonzini.
3065
3066 2010-11-13  Bruno Haible  <bruno@clisp.org>
3067
3068         openat: Work around glibc bug with fchownat() and empty file names.
3069         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
3070         (gl_FUNC_FCHOWNAT): Invoke it.
3071         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
3072         * doc/posix-functions/fchownat.texi: Document the glibc bug.
3073         Reported by Gary V. Vaughan <gary@gnu.org>.
3074
3075 2010-11-13  Bruno Haible  <bruno@clisp.org>
3076
3077         openat: Ensure autoconf macro ordering.
3078         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
3079         gl_USE_SYSTEM_EXTENSIONS.
3080         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
3081
3082 2010-11-13  Bruno Haible  <bruno@clisp.org>
3083
3084         Update comments.
3085         * lib/unistr/u8-check.c: Update file name in comments.
3086         * lib/unistr/u8-mblen.c: Likewise.
3087         * lib/unistr/u8-prev.c: Likewise.
3088         * lib/unistr/u8-strmblen.c: Likewise.
3089         * lib/unistr/u8-strmbtouc.c: Likewise.
3090
3091 2010-11-13  Jim Meyering  <meyering@redhat.com>
3092
3093         tests: avoid test failure on Solaris 10 due to lack of PATH export
3094         * tests/test-update-copyright.sh: Don't forget to export PATH.
3095
3096         init.sh: ensure that IFS is defined, just in case...
3097         * tests/init.sh (setup_): Ensure that IFS is defined,
3098         so that saving and restoring it works as expected.  This
3099         appears to be useful at least for an old version of dash
3100         from a long time ago (RH 6).  See here for details:
3101         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
3102
3103         maint.mk: tighten "test a == b" check
3104         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
3105         test to files that contain something like #!/bin/sh.
3106         Without this, coreutils would get two false positives in
3107         the comments of C source files.
3108
3109 2010-11-12  Eric Blake  <eblake@redhat.com>
3110
3111         bootstrap: fix typo in previous attempt
3112         * build-aux/bootstrap (buildreq): Correct the grouping.
3113         Reported by Paul Eggert.
3114
3115         maintainer-makefile: prohibit test x == x
3116         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
3117         Based on a report by Matthias Bolte.
3118
3119         bootstrap: allow FreeBSD gzip
3120         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
3121         which has no '.' and goes to stderr.
3122         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
3123         Reported by Matthias Bolte.
3124
3125         maintainer-makefile: check for i18n setup
3126         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
3127         will likely work.
3128
3129 2010-11-12  Bruno Haible  <bruno@clisp.org>
3130
3131         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
3132         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
3133         * lib/nanosleep.c (nanosleep): Likewise.
3134
3135 2010-11-11  Bruno Haible  <bruno@clisp.org>
3136
3137         fcntl-h: Fix for use of C++ on glibc systems.
3138         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3139         also on glibc systems in C++ mode.
3140         Reported by Gary V. Vaughan <gary@gnu.org>.
3141
3142 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3143
3144         mknod: avoid false failure with dash
3145         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
3146
3147 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         unlink: Fix "is it should" typo in diagnostic.
3150         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
3151         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
3152
3153 2010-11-11  Bruno Haible  <bruno@clisp.org>
3154
3155         Tests for module 'strerror_r-posix'.
3156         * modules/strerror_r-posix-tests: New file.
3157         * tests/test-strerror_r.c: New file.
3158         * tests/test-string-c++.cc: Check the signature of strerror_r.
3159
3160         New module 'strerror_r-posix'.
3161         * lib/string.in.h (strerror_r): New declaration.
3162         * lib/strerror_r.c: New file.
3163         * m4/strerror_r.m4: New file.
3164         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
3165         of strerror_r.
3166         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
3167         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3168         * modules/strerror_r-posix: New file.
3169         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
3170         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
3171         * doc/posix-functions/strerror_r.texi: Mention the new module and the
3172         portability problems.
3173
3174 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
3175
3176         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
3177         line is also considered for output. Quoted function name in shell
3178         command, so temporary files for functions like MyClass::operator()
3179         are removed correctly without errors.
3180
3181 2010-11-09  Bruno Haible  <bruno@clisp.org>
3182
3183         * doc/posix-functions/strerror.texi: List more failing platforms.
3184
3185         * doc/posix-functions/strerror.texi: Add a comment.
3186
3187 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3188
3189         fdopendir: fix bug on MacOS X when low on file descriptors
3190
3191         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
3192         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
3193         All callers changed.
3194         (fdopendir): Invoke save_cwd at the top level, not after using
3195         multiple dup() calls to use up file descriptors.  Then retry
3196         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
3197         less than the maximum number of open file descriptors, because
3198         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
3199         on Mac OS X 10.6.4 for tar 1.24
3200         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
3201         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
3202         and for tar 1.25
3203         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
3204
3205 2010-11-07  Bruno Haible  <bruno@clisp.org>
3206
3207         vasnprintf: Support I flag on glibc systems.
3208         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
3209         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
3210         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
3211         snprintf function.
3212         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
3213         glibc systems.
3214         * tests/test-vasnprintf-posix3.c: New file.
3215         * modules/vasnprintf-posix-tests (Files): Add it.
3216         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
3217
3218 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3219
3220         [html] Fix copy/paste bug: Use unique name for compiler warnings.
3221         * MODULES.html.sh: For compiler warnings, use name
3222         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
3223
3224 2010-11-05  Eric Blake  <eblake@redhat.com>
3225
3226         ceil, floor: avoid spurious failure with icc
3227         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
3228         [denormals-as-zero] when optimizing without -mieee-fp option.
3229         * tests/test-floorf2.c (floorf_reference): Likewise.
3230         * tests/test-ceilf1.c (dummy): New function.
3231         (main): Use it to outsmart icc's optimization.
3232         * tests/test-floorf1.c (dummy, main): Likewise.
3233
3234         tests: require working signbit
3235         * modules/ceilf-tests (Depends-on): Add signbit.
3236         * modules/ceill-tests (Depends-on): Likewise.
3237         * modules/floorf-tests (Depends-on): Likewise.
3238         * modules/floorl-tests (Depends-on): Likewise.
3239         * modules/round-tests (Depends-on): Likewise.
3240         * modules/roundf-tests (Depends-on): Likewise.
3241         * modules/roundl-tests (Depends-on): Likewise.
3242         * modules/trunc-tests (Depends-on): Likewise.
3243         * modules/truncf-tests (Depends-on): Likewise.
3244         * modules/truncl-tests (Depends-on): Likewise.
3245
3246         strtod: work around icc bug
3247         * lib/strtod.c (minus_zero): Define to working value.
3248         (strtod): Use it to avoid icc bug.
3249
3250         copysign: enhance tests
3251         * modules/copysign-tests (Files): Add minus-zero.h.
3252         * tests/test-copysign.c (main): Also test zeros.
3253
3254 2010-11-04  Eric Blake  <eblake@redhat.com>
3255
3256         ceil, floor, round, trunc: enhance tests of -0
3257         * tests/test-ceilf1.c (main): Ensure correct sign of result.
3258         * tests/test-ceill.c (main): Likewise.
3259         * tests/test-floorf1.c (main): Likewise.
3260         * tests/test-floorl.c (main): Likewise.
3261         * tests/test-round1.c (main): Likewise.
3262         * tests/test-roundf1.c (main): Likewise.
3263         * tests/test-roundl.c (main): Likewise.
3264         * tests/test-trunc1.c (main): Likewise.
3265         * tests/test-truncf1.c (main): Likewise.
3266         * tests/test-truncl.c (main): Likewise.
3267
3268 2010-11-04  Eric Blake  <eblake@redhat.com>
3269
3270         frexp, tests: work around ICC bug with -zero
3271         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
3272         works with more compilers.
3273         * tests/minus-zero.h: New file.
3274         * modules/ceilf-tests (Files): Include it.
3275         * modules/ceill-tests (Files): Likewise.
3276         * modules/floorf-tests (Files): Likewise.
3277         * modules/floorl-tests (Files): Likewise.
3278         * modules/frexp-nolibm-tests (Files): Likewise.
3279         * modules/frexp-tests (Files): Likewise.
3280         * modules/frexpl-nolibm-tests (Files): Likewise.
3281         * modules/frexpl-tests (Files): Likewise.
3282         * modules/isnan-tests (Files): Likewise.
3283         * modules/isnand-nolibm-tests (Files): Likewise.
3284         * modules/isnand-tests (Files): Likewise.
3285         * modules/isnanf-nolibm-tests (Files): Likewise.
3286         * modules/isnanf-tests (Files): Likewise.
3287         * modules/isnanl-nolibm-tests (Files): Likewise.
3288         * modules/isnanl-tests (Files): Likewise.
3289         * modules/round-tests (Files): Likewise.
3290         * modules/roundf-tests (Files): Likewise.
3291         * modules/roundl-tests (Files): Likewise.
3292         * modules/ldexpl-tests (Files): Likewise.
3293         * modules/signbit-tests (Files): Likewise.
3294         * modules/snprintf-posix-tests (Files): Likewise.
3295         * modules/sprintf-posix-tests (Files): Likewise.
3296         * modules/strtod-tests (Files): Likewise.
3297         * modules/trunc-tests (Files): Likewise.
3298         * modules/truncf-tests (Files): Likewise.
3299         * modules/truncl-tests (Files): Likewise.
3300         * modules/vsnprintf-posix-tests (Files): Likewise.
3301         * modules/vsprintf-posix-tests (Files): Likewise.
3302         * modules/vasnprintf-posix-tests (Files): Likewise.
3303         * modules/vasprintf-posix-tests (Files): Likewise.
3304         * tests/test-ceilf1.c (main): Use it.
3305         * tests/test-ceill.c (main): Likewise.
3306         * tests/test-floorf1.c (main): Likewise.
3307         * tests/test-floorl.c (main): Likewise.
3308         * tests/test-frexp.c (main): Likewise.
3309         * tests/test-frexpl.c (main): Likewise.
3310         * tests/test-isnan.c (main): Likewise.
3311         * tests/test-isnand.h (main): Likewise.
3312         * tests/test-isnanf.h (main): Likewise.
3313         * tests/test-isnanl.h (main): Likewise.
3314         * tests/test-ldexpl.c (main): Likewise.
3315         * tests/test-round.c (main): Likewise.
3316         * tests/test-roundf.c (main): Likewise.
3317         * tests/test-roundl.c (main): Likewise.
3318         * tests/test-signbit.c (test_signbitf, test_signbitd)
3319         (test_signbitl): Likewise.
3320         * tests/test-snprintf-posix.h (test_function): Likewise.
3321         * tests/test-sprintf-posix.h (test_function): Likewise.
3322         * tests/test-strtod.c (main): Likewise.
3323         * tests/test-trunc1.c (main): Likewise.
3324         * tests/test-truncf1.c (main): Likewise.
3325         * tests/test-truncl.c (main): Likewise.
3326
3327         isnanl: work around icc bug
3328         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
3329
3330 2010-11-03  Eric Blake  <eblake@redhat.com>
3331
3332         tests: fix compiler warnings
3333         * tests/test-getopt.h (test_getopt): Fix condition.
3334         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3335         * tests/test-pipe2.c (main): Likewise.
3336         * tests/test-quotearg-simple.c (main): Avoid icc warning.
3337
3338         utimens: fix broken m4 test
3339         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
3340
3341 2010-10-28  Bruno Haible  <bruno@clisp.org>
3342
3343         posix_spawn*, getdtablesize: Relax license.
3344         * modules/posix_spawn (License): Change to LGPLv2+.
3345         * modules/posix_spawnp (License): Likewise.
3346         * modules/posix_spawn-internal (License): Likewise.
3347         * modules/posix_spawnattr_init (License): Likewise.
3348         * modules/posix_spawnattr_getflags (License): Likewise.
3349         * modules/posix_spawnattr_setflags (License): Likewise.
3350         * modules/posix_spawnattr_getpgroup (License): Likewise.
3351         * modules/posix_spawnattr_setpgroup (License): Likewise.
3352         * modules/posix_spawnattr_getschedparam (License): Likewise.
3353         * modules/posix_spawnattr_setschedparam (License): Likewise.
3354         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
3355         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
3356         * modules/posix_spawnattr_getsigdefault (License): Likewise.
3357         * modules/posix_spawnattr_setsigdefault (License): Likewise.
3358         * modules/posix_spawnattr_getsigmask (License): Likewise.
3359         * modules/posix_spawnattr_setsigmask (License): Likewise.
3360         * modules/posix_spawnattr_destroy (License): Likewise.
3361         * modules/posix_spawn_file_actions_init (License): Likewise.
3362         * modules/posix_spawn_file_actions_addclose (License): Likewise.
3363         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
3364         * modules/posix_spawn_file_actions_addopen (License): Likewise.
3365         * modules/posix_spawn_file_actions_destroy (License): Likewise.
3366         * modules/getdtablesize (License): Likewise.
3367         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
3368
3369 2010-10-26  Bruno Haible  <bruno@clisp.org>
3370
3371         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
3372         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
3373         Cygwin and mingw.
3374         Suggested by Eric Blake.
3375
3376 2010-10-26  Bruno Haible  <bruno@clisp.org>
3377
3378         stdio: Work around compilation error due to renameat() on Solaris 10.
3379         * lib/stdio.in.h: Include <unistd.h> on Solaris.
3380         * lib/renameat.c: Don't include <unistd.h> here.
3381         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
3382         Reported by Paul Eggert and Eric Blake.
3383
3384 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3385
3386         renameat: port to Solaris 10, which declares renameat in unistd.h
3387
3388         * lib/renameat.c: Include unistd.h before stdio.h, because
3389         Solaris 10 declares renameat in unistd.h.  Problem encountered
3390         when building GNU tar 1.24 on Solaris 10.
3391
3392 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3393
3394         fdopendir: fix C89 compilation
3395         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
3396         compilers.
3397
3398 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
3399
3400         inttostr: simplify by removing unnecessary redundancy
3401         * lib/anytostr.c: Don't include verify.h.
3402         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
3403         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
3404         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
3405         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
3406         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
3407         Likewise.
3408         * modules/inttostr (Depends-on): Remove 'verify'.
3409
3410 2010-10-23  Bruno Haible  <bruno@clisp.org>
3411
3412         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
3413         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
3414         Reported by Eric Blake.
3415
3416 2010-10-23  Bruno Haible  <bruno@clisp.org>
3417
3418         Tests: Fix LOCALE_JA on MirBSD 10.
3419         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
3420         to an UTF-8 locale.
3421         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
3422         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3423         Reported by Eric Blake.
3424
3425 2010-10-21  Bruno Haible  <bruno@clisp.org>
3426
3427         nl_langinfo test: Avoid test failure on NetBSD 5.
3428         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
3429         Reported by Eric Blake.
3430
3431 2010-10-21  Eric Blake  <eblake@redhat.com>
3432
3433         c-stack: work around libsigsegv 2.8 bug
3434         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
3435         overflow on at least PowerPC64.
3436
3437 2010-10-17  Bruno Haible  <bruno@clisp.org>
3438
3439         userspec: Drop redundant file.
3440         * modules/userspec (Files): Remove lib/inttostr.h.
3441
3442 2010-10-17  Bruno Haible  <bruno@clisp.org>
3443
3444         nl_langinfo tests: Silence some warnings.
3445         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
3446         Reported by Jim Meyering.
3447
3448 2010-10-17  Bruno Haible  <bruno@clisp.org>
3449
3450         Make use of GCC's attribute __alloc_size__.
3451         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
3452         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
3453         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
3454         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
3455         __alloc_size__.
3456         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
3457         Suggested by Jim Meyering.
3458
3459 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
3460
3461         bootstrap: anchor .gitignore entries.
3462         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
3463         with...
3464         (insert_vc_ignore): ... this new function, which prepends `/' to
3465         all .gitignore entries before passing them to
3466         insert_sorted_if_absent.
3467
3468 2010-10-16  Bruno Haible  <bruno@clisp.org>
3469
3470         nextafter: Fix configure check.
3471         * modules/nextafter (configure.ac): Correct expected prototype.
3472
3473 2010-10-16  Bruno Haible  <bruno@clisp.org>
3474
3475         termios: Update documentation.
3476         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
3477
3478 2010-10-16  Bruno Haible  <bruno@clisp.org>
3479
3480         tests: Make them compile with TinyCC.
3481         * tests/test-strstr.c (main): Remove parentheses around array
3482         initializer.
3483
3484 2010-10-15  Eric Blake  <eblake@redhat.com>
3485
3486         ignore-value: make header idempotent
3487         * lib/ignore-value.h: Add double-inclusion guards.
3488         Reported by Stefan Berger.
3489
3490 2010-10-15  Jim Meyering  <meyering@redhat.com>
3491
3492         GNUmakefile: handle "stable" target, not "major"
3493         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
3494         lists in maint.mk and announce-gen.  Without this, "make stable"
3495         would fail to ensure that $(VERSION) is up to date.
3496
3497 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
3498
3499         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
3500         & co.
3501
3502 2010-10-14  Bruno Haible  <bruno@clisp.org>
3503
3504         vasnprintf: Don't set errno to 0.
3505         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
3506         block that sets it to 0.
3507         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3508
3509 2010-10-14  Bruno Haible  <bruno@clisp.org>
3510
3511         socketlib: Fix.
3512         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
3513         gl_PREREQ_SYS_H_WINSOCK2.
3514         Reported by Ian Beckwith <ianb@erislabs.net>.
3515
3516 2010-10-13  Jim Meyering  <meyering@redhat.com>
3517
3518         test-select-stdin.c: avoid warn_unused_result warnings
3519         * tests/test-select-stdin.c: Include "macros.h".
3520         ASSERT that read and fflush succeed.
3521
3522 2010-10-13  Jim Meyering  <meyering@redhat.com>
3523
3524         git-version-gen: do require git-VC'd files in cwd
3525         * build-aux/git-version-gen: Reject a git version string
3526         if there are no commits associated with the current directory.
3527         This avoids an unlikely false-positive (unrelated dir whose parent
3528         repository also contains a tag matching v*), as pointed out
3529         by Giuseppe Scrivano in
3530         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
3531
3532 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3533
3534         argv-iter: omit nonconforming declaration
3535         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
3536         enum arg_iter_err declaration, which doesn't conform to C99.
3537         Solaris 10 cc warns about this.
3538
3539 2010-10-13  Eric Blake  <eblake@redhat.com>
3540
3541         termios: fix compilation on mingw
3542         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
3543         (gl_TERMIOS_H): Adjust it on mingw.
3544         * modules/termios (Makefile.am): Substitute new key.
3545         * lib/termios.in.h (includes): Make include_next conditional.
3546         * doc/posix-headers/termios.texi (termios.h): Update
3547         documentation.
3548         Reported by Daniel P. Berrange.
3549
3550 2010-10-13  Jim Meyering  <meyering@redhat.com>
3551
3552         git-version-gen: don't require that .git/ be in the current dir
3553         * build-aux/git-version-gen: Adjust this script so that it works
3554         when run from any working directory beneath the top-level .git/-
3555         containing directory.  Inspired by a patch from Giuseppe Scrivano,
3556         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
3557
3558         test-select: avoid warn_unused_result warnings
3559         * tests/test-select.c: Include "macros.h".
3560         ASSERT that each call to read, write, and pipe succeeds.
3561         While not technically required, also check each "close".
3562         * modules/select-tests (Files): Add tests/macros.h.
3563
3564         test-symlinkat: remove declaration of unused local
3565         * tests/test-symlinkat.c (main): Remove unused local, "buf".
3566
3567         test-inttostr: avoid shadowing warnings
3568         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
3569         and use malloc rather than the stack for the same reason as
3570         mentioned in the comment justifying the other allocation.
3571
3572 2010-10-11  Bruno Haible  <bruno@clisp.org>
3573
3574         stdlib: Allow multiple gnulib generated replacements to coexist.
3575         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
3576         Reported by Sam Steingold <sds@gnu.org>.
3577
3578 2010-10-11  Jim Meyering  <meyering@redhat.com>
3579
3580         fix a documentation typo
3581         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
3582
3583 2010-10-11  Eric Blake  <eblake@redhat.com>
3584
3585         futimens: work around Solaris 11 bug
3586         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
3587         * tests/test-futimens.h (test_futimens): Enhance, rather than
3588         weaken test.
3589         * doc/posix-functions/futimens.texi (futimens): Document the bug.
3590
3591 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3592
3593         Indentation.
3594         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
3595         higher-level operators more to the left.
3596
3597 2010-10-11  Jim Meyering  <meyering@redhat.com>
3598
3599         test-futimens: avoid unwarranted test failure on Solaris 5.11
3600         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
3601         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
3602         because it tries to dereference the NULL name argument.
3603
3604 2010-10-11  Bruno Haible  <bruno@clisp.org>
3605
3606         Indentation.
3607         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
3608         indentation.
3609
3610 2010-10-11  Jim Meyering  <meyering@redhat.com>
3611
3612         spawn.in.h: make indentation consistent with parentheses
3613         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
3614         Make indentation consistent with parentheses.
3615
3616 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
3617
3618         Fix mismatched parens in previous commit
3619         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
3620         parens.
3621
3622 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3623
3624         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
3625
3626         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
3627         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
3628         * lib/malloca.c: Include "verify.h".
3629         (verify1): Remove, replacing with a verify call.
3630         * lib/relocwrapper.c (verify1): Likewise.
3631         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
3632         Likewise.
3633         * modules/malloca (Depends-on): Add 'verify'.
3634         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
3635         * modules/vasnprintf (Depends-on): Add 'verify'.
3636         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3637         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3638         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3639         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3640         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3641         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3642         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3643
3644         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
3645
3646         Formerly the style was sometimes 2*X - 1, because the C standard
3647         was wrongly thought to disallow ?: in integral constant expressions.
3648         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
3649         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
3650         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3651         * lib/stdint.in.h (_verify_intmax_size): Likewise.
3652         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
3653         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
3654         verify that time_t cannot be floating.
3655
3656 2010-10-08  Eric Blake  <eblake@redhat.com>
3657
3658         time: enforce recent POSIX ruling that time_t is integral
3659         * lib/time.in.h (__time_t_must_be_integral): Detect any
3660         problematic systems, allowing the rest of gnulib to assume POSIX.
3661
3662 2010-10-08  Jim Meyering  <meyering@redhat.com>
3663
3664         fdopendir: fix a bug on systems lacking openat and /proc support
3665         OpenBSD 4.7 is one such system.  The most noticeable effect was
3666         failure of any application making nontrivial use of fts: rm, du,
3667         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
3668           ./rm: traversal failed: `a': Bad file descriptor
3669         Debugging that, you see that even though FD 6 was closed just
3670         prior to the opendir call in fd_clone_opendir, its resulting
3671         dir->dd_fd was 8, rather than the expected value of 6:
3672
3673         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
3674         93                close (fd);
3675         (gdb) n
3676         94                dir = fd_clone_opendir (dupfd);
3677         (gdb) n
3678         95                saved_errno = errno;
3679         (gdb) p dir->dd_fd
3680         $11 = 8
3681
3682         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
3683         The problem is that on OpenBSD, fd_clone_opendir has to resort
3684         to using the old-style save/restore CWD mechanism, due to its
3685         lack of openat/proc support, and *that* would steal the FD (6)
3686         that opendir was supposed to use.
3687
3688         The fix is to squirrel away the desired FD so that save_cwd uses a
3689         different one, and then free the dest FD right before calling opendir.
3690         That guarantees opendir will use the required file descriptor.
3691
3692         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
3693
3694 2010-10-08  Bruno Haible  <bruno@clisp.org>
3695
3696         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
3697         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
3698
3699 2010-10-08  Bruno Haible  <bruno@clisp.org>
3700
3701         nanosleep: Make replacement POSIX compliant.
3702         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
3703         is out of range.
3704         Reported by Jim Meyering.
3705
3706 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3707
3708         bootstrap: add hook for altering gnulib.mk, for Bison
3709         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
3710         the Bison bootstrapping process can rewrite file names and variables
3711         in this file before later parts of 'bootstrap' use the file.
3712         Bison wants to include lib/gnulib.mk from the top-level makefile,
3713         so it needs the file names in this file to be relative to the top
3714         level, not relative to lib; plus it needs variable names to be
3715         rewritten.
3716         (slurp): Use the new function.
3717
3718         bootstrap: reformat for readability
3719         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
3720
3721 2010-10-08  Eric Blake  <eblake@redhat.com>
3722
3723         docs: update cygwin progress
3724         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
3725         1.7.7.
3726         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
3727         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
3728         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
3729         * doc/posix-functions/carg.texi (carg): Likewise.
3730         * doc/posix-functions/cargf.texi (cargf): Likewise.
3731         * doc/posix-functions/casin.texi (casin): Likewise.
3732         * doc/posix-functions/casinf.texi (casinf): Likewise.
3733         * doc/posix-functions/casinh.texi (casinh): Likewise.
3734         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
3735         * doc/posix-functions/catan.texi (catan): Likewise.
3736         * doc/posix-functions/catanf.texi (catanf): Likewise.
3737         * doc/posix-functions/catanh.texi (catanh): Likewise.
3738         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
3739         * doc/posix-functions/ccos.texi (ccos): Likewise.
3740         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
3741         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
3742         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
3743         * doc/posix-functions/cexp.texi (cexp): Likewise.
3744         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
3745         * doc/posix-functions/cimag.texi (cimag): Likewise.
3746         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
3747         * doc/posix-functions/clog.texi (clog): Likewise.
3748         * doc/posix-functions/clogf.texi (clogf): Likewise.
3749         * doc/posix-functions/conj.texi (conj): Likewise.
3750         * doc/posix-functions/conjf.texi (conjf): Likewise.
3751         * doc/posix-functions/cpow.texi (cpow): Likewise.
3752         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
3753         * doc/posix-functions/cproj.texi (cproj): Likewise.
3754         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
3755         * doc/posix-functions/creal.texi (creal): Likewise.
3756         * doc/posix-functions/crealf.texi (crealf): Likewise.
3757         * doc/posix-functions/csin.texi (csin): Likewise.
3758         * doc/posix-functions/csinf.texi (csinf): Likewise.
3759         * doc/posix-functions/csinh.texi (csinh): Likewise.
3760         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
3761         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
3762         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
3763         * doc/posix-functions/ctan.texi (ctan): Likewise.
3764         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
3765         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
3766         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
3767         * doc/posix-headers/complex.texi (complex.h): Likewise.
3768
3769 2010-10-07  Jim Meyering  <meyering@redhat.com>
3770
3771         parse-datetime: avoid compilation failure on OpenBSD 4.7
3772         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
3773         This works around a compilation failure on OpenBSD 4.7:
3774         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
3775
3776 2010-10-07  Eric Blake  <eblake@redhat.com>
3777
3778         docs: update cygwin progress
3779         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
3780         1.7.6.
3781         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3782         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
3783         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
3784         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
3785         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
3786         Likewise.
3787         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
3788         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
3789         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
3790         Likewise.
3791         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
3792         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
3793         Likewise.
3794         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
3795         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
3796         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
3797         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
3798         Likewise.
3799         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
3800         Likewise.
3801         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
3802
3803         docs: update parse-datetime history
3804         * doc/parse-datetime.texi (Authors of parse_datetime): Better
3805         documentation of this function's history and alternatives.
3806
3807         cygwin: use more robust version check
3808         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
3809         exclude an eventual cygwin 1.9.1.
3810         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3812         (gl_FUNC_STRCASESTR): Likewise.
3813         Reported by Bruno Haible.
3814
3815 2010-10-06  Bruno Haible  <bruno@clisp.org>
3816
3817         string, sys_select: Avoid #including large headers unless necessary.
3818         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
3819         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
3820         OSF/1, BeOS, Haiku.
3821         Reported by Jim Meyering.
3822
3823 2010-10-05  Eric Blake  <eblake@redhat.com>
3824
3825         memmem, strstr, strcasestr: fix bug with long periodic needle
3826         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
3827         periodic needle having false positive.
3828         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
3829         and cygwin 1.7.7.
3830         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
3831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
3832         (gl_FUNC_STRCASESTR): Likewise.
3833         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
3834         * tests/test-memmem.c (main): Expose the bug.
3835         * tests/test-strcasestr.c (main): Likewise.
3836         * tests/test-strstr.c (main): Likewise.
3837         * tests/test-c-strcasestr.c (main): Likewise.
3838         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
3839         * doc/posix-functions/strstr.texi (strstr): Likewise.
3840         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3841         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
3842
3843 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3844
3845         parse-datetime: do some more renaming
3846         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
3847         parse_datetime, not get_date.  Mention the renaming.
3848         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
3849         in comments.
3850         * m4/bison.m4: Likewise.
3851
3852 2010-10-05  Eric Blake  <eblake@redhat.com>
3853
3854         parse-datetime: better name than get_date
3855         * NEWS: Reword the deprecation notice.
3856         * modules/get_date: Rename to modules/parse-datetime.
3857         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
3858         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
3859         * lib/get_date.y: Rename to lib/parse-datetime.y.
3860         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
3861         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
3862         * doc/getdate.texi: Provide fallback wrapper.
3863         * lib/getdate.h: Move guts, and wrap...
3864         * lib/parse-datetime.h: ...new file.
3865         * lib/parse-datetime.y (get_date): Rename...
3866         (parse_datetime): ...to this.
3867         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
3868         (gl_PARSE_DATETIME): ...to this.
3869         * doc/posix-functions/getdate.texi (get_date): Provide fallback
3870         documentation.
3871         * modules/getdate (Files): Provide fallback docs and header.
3872         (Notice, Depends-on): Update references.
3873         * tests/test-parse-datetime.c: Likewise.
3874         * DEPENDENCIES: Likewise.
3875         * MODULES.html.sh (Date and time <time.h>): Likewise.
3876         * doc/parse-datetime.texi (Date input formats)
3877         (Authors of parse_datetime): Likewise.
3878         * modules/parse-datetime (Files, configure.ac, Makefile.am)
3879         (Include): Likewise.
3880         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
3881         * gnulib-tool: Likewise.
3882         * m4/bison.m4 (gl_BISON): Likewise.
3883         Suggested by Bruno Haible.
3884
3885 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3886
3887         more ports to Solaris tr, which needs [] around ranges
3888         * gnulib-tool: Solaris tr needs [] around ranges.
3889         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3890         * tests/test-pipe-filter-gi1.c (main): Likewise.
3891         * tests/test-pipe-filter-ii1.c (main): Likewise.
3892
3893 2010-10-05  Eric Blake  <eblake@redhat.com>
3894
3895         bootstrap: fix Solaris regression
3896         * build-aux/bootstrap (check_versions): Solaris tr still needs []
3897         around ranges.
3898         Reported by Pádraig Brady.
3899
3900         bootstrap: work with pkg-config
3901         * build-aux/bootstrap (check_versions): Also transliterate - in
3902         prerequisite name.
3903         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
3904         prerequisites that were already found, to avoid confusion.
3905         Reported by Justin Clift.
3906
3907         faccessat: remove unused wrappers
3908         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
3909         presence of these wrappers dragged in -lgen on Solaris.
3910         Reported by Clemens Brogi; fix suggested by Paul Eggert.
3911
3912 2010-10-05  Jim Meyering  <meyering@redhat.com>
3913
3914         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
3915         * Makefile (sc_pragma_columns): New syntax-check rule.
3916
3917 2010-10-04  Bruno Haible  <bruno@clisp.org>
3918
3919         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
3920         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
3921         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
3922         Reported by Bruce Korb and Eric Blake.
3923
3924 2010-10-04  Bruno Haible  <bruno@clisp.org>
3925
3926         threadlib: Make option --with-libpth-prefix work.
3927         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
3928         use $LIBPTH, not just -lpth.
3929
3930 2010-10-04  Bruno Haible  <bruno@clisp.org>
3931
3932         Avoid line length limitation from HP NonStop system header files.
3933         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
3934         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
3935         * lib/ctype.in.h: Likewise.
3936         * lib/dirent.in.h: Likewise.
3937         * lib/errno.in.h: Likewise.
3938         * lib/fcntl.in.h: Likewise.
3939         * lib/float.in.h: Likewise.
3940         * lib/getopt.in.h: Likewise.
3941         * lib/iconv.in.h: Likewise.
3942         * lib/inttypes.in.h: Likewise.
3943         * lib/langinfo.in.h: Likewise.
3944         * lib/locale.in.h: Likewise.
3945         * lib/math.in.h: Likewise.
3946         * lib/netdb.in.h: Likewise.
3947         * lib/netinet_in.in.h: Likewise.
3948         * lib/poll.in.h: Likewise.
3949         * lib/pthread.in.h: Likewise.
3950         * lib/pty.in.h: Likewise.
3951         * lib/sched.in.h: Likewise.
3952         * lib/se-selinux.in.h: Likewise.
3953         * lib/search.in.h: Likewise.
3954         * lib/signal.in.h: Likewise.
3955         * lib/spawn.in.h: Likewise.
3956         * lib/stdarg.in.h: Likewise.
3957         * lib/stddef.in.h: Likewise.
3958         * lib/stdint.in.h: Likewise.
3959         * lib/stdio.in.h: Likewise.
3960         * lib/stdlib.in.h: Likewise.
3961         * lib/string.in.h: Likewise.
3962         * lib/strings.in.h: Likewise.
3963         * lib/sys_file.in.h: Likewise.
3964         * lib/sys_ioctl.in.h: Likewise.
3965         * lib/sys_select.in.h: Likewise.
3966         * lib/sys_socket.in.h: Likewise.
3967         * lib/sys_stat.in.h: Likewise.
3968         * lib/sys_time.in.h: Likewise.
3969         * lib/sys_times.in.h: Likewise.
3970         * lib/sys_utsname.in.h: Likewise.
3971         * lib/sys_wait.in.h: Likewise.
3972         * lib/sysexits.in.h: Likewise.
3973         * lib/termios.in.h: Likewise.
3974         * lib/time.in.h: Likewise.
3975         * lib/unistd.in.h: Likewise.
3976         * lib/wchar.in.h: Likewise.
3977         * lib/wctype.in.h: Likewise.
3978         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
3979         * modules/ctype (Makefile.am): Likewise.
3980         * modules/dirent (Makefile.am): Likewise.
3981         * modules/errno (Makefile.am): Likewise.
3982         * modules/fcntl-h (Makefile.am): Likewise.
3983         * modules/float (Makefile.am): Likewise.
3984         * modules/getopt-posix (Makefile.am): Likewise.
3985         * modules/iconv-h (Makefile.am): Likewise.
3986         * modules/inttypes (Makefile.am): Likewise.
3987         * modules/langinfo (Makefile.am): Likewise.
3988         * modules/locale (Makefile.am): Likewise.
3989         * modules/math (Makefile.am): Likewise.
3990         * modules/netdb (Makefile.am): Likewise.
3991         * modules/netinet_in (Makefile.am): Likewise.
3992         * modules/poll-h (Makefile.am): Likewise.
3993         * modules/pthread (Makefile.am): Likewise.
3994         * modules/pty (Makefile.am): Likewise.
3995         * modules/sched (Makefile.am): Likewise.
3996         * modules/search (Makefile.am): Likewise.
3997         * modules/selinux-h (Makefile.am): Likewise.
3998         * modules/signal (Makefile.am): Likewise.
3999         * modules/spawn (Makefile.am): Likewise.
4000         * modules/stdarg (Makefile.am): Likewise.
4001         * modules/stddef (Makefile.am): Likewise.
4002         * modules/stdint (Makefile.am): Likewise.
4003         * modules/stdio (Makefile.am): Likewise.
4004         * modules/stdlib (Makefile.am): Likewise.
4005         * modules/string (Makefile.am): Likewise.
4006         * modules/strings (Makefile.am): Likewise.
4007         * modules/sys_file (Makefile.am): Likewise.
4008         * modules/sys_ioctl (Makefile.am): Likewise.
4009         * modules/sys_select (Makefile.am): Likewise.
4010         * modules/sys_socket (Makefile.am): Likewise.
4011         * modules/sys_stat (Makefile.am): Likewise.
4012         * modules/sys_time (Makefile.am): Likewise.
4013         * modules/sys_times (Makefile.am): Likewise.
4014         * modules/sys_utsname (Makefile.am): Likewise.
4015         * modules/sys_wait (Makefile.am): Likewise.
4016         * modules/sysexits (Makefile.am): Likewise.
4017         * modules/termios (Makefile.am): Likewise.
4018         * modules/time (Makefile.am): Likewise.
4019         * modules/unistd (Makefile.am): Likewise.
4020         * modules/wchar (Makefile.am): Likewise.
4021         * modules/wctype (Makefile.am): Likewise.
4022
4023 2010-10-04  Bruno Haible  <bruno@clisp.org>
4024
4025         read-file tests: Avoid a test failure on NonStop Kernel.
4026         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
4027         a regular file.
4028         Reported by Joachim Schmitz <schmitz@hp.com>.
4029
4030 2010-10-03  Bruno Haible  <bruno@clisp.org>
4031
4032         gnulib-tool: Fixes for --create-testdir with --libtool.
4033         * gnulib-tool (func_get_automake_snippet): Don't augment
4034         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
4035         an executable.
4036         (func_create_testdir): Handle module 'alloca' like func_import.
4037         Reported by Bruce Korb <bruce.korb@gmail.com>.
4038
4039 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
4040
4041         Avoid some lines longer than 80 characters.
4042         * lib/stdint.in.h: Break long comment lines.
4043         * lib/math.in.h: Likewise.
4044         (_GL_NUM_UINT_WORDS): New macro, for readability.
4045         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
4046         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
4047         * lib/stdlib.in.h: Likewise.
4048         * lib/spawn.in.h: Likewise.
4049         * lib/sys_socket.in.h: Update an URL.
4050         * lib/sys_stat.in.h: Break long line.
4051
4052 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
4053
4054         Improve pmccabe2html.
4055         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
4056         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
4057         when the sources change. Remove the line in the HTML about "Used
4058         ranges" (which implied that there might be other unused ranges),
4059         rename "Resume" to "Summary" (easier to understand for more users).
4060         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
4061         styles, and some unnecessary blank lines.
4062
4063 2010-10-03  Bruno Haible  <bruno@clisp.org>
4064             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4065
4066         acl: Add support for ACLs on NonStop Kernel.
4067         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
4068         Check whether the function aclsort() exists.
4069         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
4070         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
4071         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4072         (acl_nontrivial [HAVE_ACLSORT]: New function.
4073         (file_has_acl): Implement for NonStop Kernel.
4074         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4075         (qset_acl): Implement for NonStop Kernel.
4076         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
4077         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
4078         (main): Implement for NonStop Kernel.
4079         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
4080         Kernel. Handle this flavor.
4081         * tests/test-set-mode-acl.sh: Likewise.
4082         * tests/test-copy-acl.sh: Likewise.
4083         * tests/test-copy-file.sh: Likewise.
4084
4085 2010-10-03  Bruno Haible  <bruno@clisp.org>
4086
4087         Info about ACLs on NonStop Kernel.
4088         * doc/acl-resources.txt: Add info about NonStop Kernel.
4089         References by Joachim Schmitz <schmitz@hp.com>.
4090
4091 2010-10-02  Bruno Haible  <bruno@clisp.org>
4092
4093         Define missing EDQUOT on NonStop Kernel.
4094         * lib/errno.in.h (EDQUOT): Assign a value if missing.
4095         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
4096         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
4097         missing.
4098         * doc/posix-headers/errno.texi: Mention the NSK bug.
4099         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
4100         Reported by Joachim Schmitz <schmitz@hp.com>.
4101
4102 2010-10-02  Bruno Haible  <bruno@clisp.org>
4103
4104         Update doc for POSIX:2008.
4105         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
4106         Update URL of POSIX specification.
4107
4108 2010-10-02  Bruno Haible  <bruno@clisp.org>
4109
4110         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
4111         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
4112         from gnulib, not from Automake.
4113
4114 2010-10-02  Bruno Haible  <bruno@clisp.org>
4115
4116         New module 'system-posix'.
4117         * modules/system-posix: New file.
4118         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
4119         module is present.
4120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4121         GNULIB_SYSTEM_POSIX.
4122         * modules/stdlib (Depends-on): Remove sys_wait.
4123         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
4124         * doc/posix-functions/system.texi: Mention the new module.
4125         * doc/posix-headers/stdlib.texi: Likewise.
4126         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
4127         define test_sys_wait_macros to a no-op.
4128         Reported by Sam Steingold <sds@gnu.org>.
4129
4130 2010-09-30  Bruno Haible  <bruno@clisp.org>
4131
4132         More renaming from 'getdate' to 'get_date'.
4133         * doc/get_date.texi: Renamed from doc/getdate.texi.
4134         * modules/get_date (Files): Update.
4135         * MODULES.html.sh (Date and time <time.h>): Update.
4136         * DEPENDENCIES: Update.
4137         * gnulib-tool: Update comment.
4138         * m4/bison.m4 (gl_BISON): Likewise.
4139         * m4/get_date.m4 (gl_GET_DATE): Likewise.
4140
4141 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
4142
4143         bootstrap: support ACLOCAL_FLAGS during aclocal
4144         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
4145         can add additional -I dir for third-party .m4 files.
4146
4147 2010-09-30  Eric Blake  <eblake@redhat.com>
4148
4149         bootstrap: use glibtoolize on MacOS
4150         * build-aux/bootstrap (check_versions): Convert libtool into
4151         libtoolize.
4152         (tool search): Move libtool check earlier, and look for
4153         glibtoolize for MacOS.
4154         (gnulib_tool_options): Auto-add --libtool when appropriate.
4155         Reported by Justin Clift.
4156
4157         poll: fix typo that broke test on MacOS
4158         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
4159         Reported by Justin Clift.
4160
4161         getdate: rename to get_date
4162         Note: getdate.h is not renamed, to minimize client impact.
4163         * modules/getdate: Mark obsolete.  Move old contents...
4164         * modules/get_date: ...to new module name.
4165         * modules/getdate-tests: Move...
4166         * modules/get_date-tests: ...here.
4167         * m4/getdate.m4: Move...
4168         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
4169         * lib/getdate.y: Move...
4170         * lib/get_date.y: ...here.
4171         * tests/test-getdate.c: Move...
4172         * tests/test-get_date.c: ...here.
4173         * doc/posix-functions/getdate.texi (getdate): Update name.
4174         * NEWS: Mention the change.
4175
4176 2010-09-29  Bruno Haible  <bruno@clisp.org>
4177
4178         Separate the module 'waitpid' from the module 'sys_wait'.
4179         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
4180         present.
4181         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
4182         gl_MODULE_INDICATOR_FOR_TESTS.
4183         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
4184         * modules/sys_wait (Depends-on): Remove waitpid.
4185         (Makefile.am): Substitute GNULIB_WAITPID.
4186         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
4187         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
4188         signature only if the 'waitpid' module is present.
4189         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
4190         * NEWS: Mention the change.
4191         * modules/grantpt (Depends-on): Add waitpid.
4192         * modules/wait-process (Depends-on): Likewise.
4193
4194 2010-09-29  Bruno Haible  <bruno@clisp.org>
4195
4196         More tests for module 'sys_wait'.
4197         * modules/sys_wait-c++-tests: New file.
4198         * tests/test-sys_wait-c++.cc: New file.
4199         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
4200         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4201
4202 2010-09-29  Bruno Haible  <bruno@clisp.org>
4203
4204         New module 'waitpid'.
4205         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
4206         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
4207         Don't include <process.h>.
4208         (waitpid): Declare only, using modern idiom.
4209         * m4/waitpid.m4: New file.
4210         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
4211         * modules/waitpid: New file.
4212         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
4213         (Makefile.am): Update.
4214         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4215
4216 2010-09-28  Bruno Haible  <bruno@clisp.org>
4217
4218         poll: Assume ANSI C.
4219         * lib/poll.c (poll): Use an ANSI C declaration.
4220
4221 2010-09-28  Bruno Haible  <bruno@clisp.org>
4222
4223         poll-h: Create poll.h on all platforms.
4224         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
4225         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
4226         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
4227         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
4228         (gl_REPLACE_POLL_H): Don't set POLL_H.
4229         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
4230         * modules/poll-h (Depends-on): Add include_next.
4231         (Makefile.am): Create poll.h unconditionally. Substitute also
4232         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
4233
4234 2010-09-28  Bruno Haible  <bruno@clisp.org>
4235
4236         Tests for module 'poll-h'.
4237         * modules/poll-h-c++-tests: New file.
4238         * tests/test-poll-h-c++.cc: New file.
4239
4240         Tests for module 'poll-h'.
4241         * modules/poll-h-tests: New file.
4242         * tests/test-poll-h.c: New file.
4243
4244 2010-09-28  Bruno Haible  <bruno@clisp.org>
4245
4246         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
4247         * modules/poll-h (Depends-on): Add 'extensions'.
4248
4249 2010-09-28  Bruno Haible  <bruno@clisp.org>
4250
4251         New module 'poll-h'.
4252         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
4253         (poll): Use modern idiom.
4254         * modules/poll-h: New file.
4255         * modules/poll (Files): Remove lib/poll.in.h.
4256         (Depends-on): Add poll-h.
4257         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
4258         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
4259         * m4/poll_h.m4: New file.
4260         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
4261         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
4262         and invoke gl_REPLACE_POLL_H.
4263         * lib/poll.c: Use common idiom.
4264         * tests/test-poll.c: Likewise.
4265         * doc/posix-headers/poll.texi: Mention the poll-h module.
4266         Suggested by Eric Blake.
4267
4268 2010-09-26  Bruno Haible  <bruno@clisp.org>
4269
4270         sys_wait: Implement WSTOPSIG.
4271         * lib/sys_wait.in.h (WSTOPSIG): New macro.
4272         Reported by Simon Josefsson.
4273
4274 2010-09-26  Simon Josefsson  <simon@josefsson.org>
4275
4276         stdlib, sys_wait: Avoid compilation error on mingw.
4277         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
4278
4279 2010-09-26  Bruno Haible  <bruno@clisp.org>
4280
4281         stdlib tests: Avoid code duplication.
4282         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
4283         * modules/sys_wait-tests (Files): Likewise.
4284         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
4285         * tests/test-stdlib.c: Include test-sys_wait.h.
4286         (main): Invoke test_sys_wait_macros.
4287         * tests/test-sys_wait.c: Include test-sys_wait.h.
4288         (main): Invoke test_sys_wait_macros.
4289
4290 2010-09-25  Simon Josefsson  <simon@josefsson.org>
4291
4292         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
4293         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
4294         sure Windows sockets are working before calling getaddrinfo.
4295         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
4296         * doc/gnulib.texi (Windows sockets): Fix typo.
4297
4298 2010-09-25  Bruno Haible  <bruno@clisp.org>
4299
4300         Tests for module 'regex-quote'.
4301         * modules/regex-quote-tests: New file.
4302         * tests/test-regex-quote.c: New file.
4303
4304         New module 'regex-quote'.
4305         * lib/regex-quote.h: New file.
4306         * lib/regex-quote.c: New file.
4307         * modules/regex-quote: New file.
4308         Suggested by Reuben Thomas <rrt@sc3d.org>.
4309
4310 2010-09-24  Bruno Haible  <bruno@clisp.org>
4311
4312         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
4313         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
4314
4315 2010-09-23  Bruno Haible  <bruno@clisp.org>
4316
4317         setenv: Relax license.
4318         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
4319         Blake.
4320         Requested by Eric Blake.
4321
4322 2010-09-22  Bruno Haible  <bruno@clisp.org>
4323
4324         termios: Relax license.
4325         * modules/termios (License): Change to LGPLv2+.
4326         Requested by Eric Blake.
4327
4328 2010-09-22  Bruno Haible  <bruno@clisp.org>
4329
4330         threadlib: Allow the package to change the default to 'no'.
4331         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
4332         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
4333         Reported by Paul Eggert.
4334
4335 2010-09-22  Pádraig Brady  <P@draigbrady.com>
4336             Bruno Haible  <bruno@clisp.org>
4337
4338         Fix endless loop in mbmemcasecoll.
4339         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
4340         byte.
4341         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
4342
4343 2010-09-22  Bruno Haible  <bruno@clisp.org>
4344
4345         Tests for module 'memcoll'.
4346         * modules/memcoll-tests: New file.
4347         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
4348
4349         memcoll, xmemcoll: Clarify size vs. length.
4350         * modules/memcoll.c (memcoll0): Clarify specification.
4351         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
4352         passed to collate_error.
4353
4354 2010-09-22  Bruno Haible  <bruno@clisp.org>
4355
4356         Tests for module 'memcasecmp'.
4357         * modules/memcasecmp-tests: New file.
4358         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
4359
4360 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
4361
4362         * lib/pthread.in.h: Add split double-inclusion guard, and include
4363         system <pthread.h> if there is one.  Use @@-style as in other
4364         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
4365         pthread.h doesn't.
4366         (pthread_mutexattr_destroy, pthread_mutexattr_init):
4367         (pthread_mutexattr_settype, pthread_mutex_trylock):
4368         New static inline functions, if there's no system <pthread.h>.
4369         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
4370         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
4371         Approximate with mutexes if the system lacks spinlocks, as in
4372         MacOS.
4373         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
4374         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
4375         @@-style.  Check for spinlocks separately.
4376         (gl_PTHREAD_DEFAULTS): New macro.
4377         * modules/pthread: Redo to use a more typical style for in.h files.
4378
4379 2010-09-21  Eric Blake  <eblake@redhat.com>
4380
4381         net_if: enhance tests
4382         * tests/test-net_if.c (main): Move signature checks earlier.
4383         Print failures to stderr.
4384         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
4385         Document the bug that we do not yet fix.
4386
4387 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4388
4389         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
4390         about gnulib, not GSS.
4391
4392 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
4393
4394         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
4395         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
4396         for Emacs.
4397         * build-aux/pmccabe2html: Make Makefile.am example code more
4398         cut-and-paste friendly.
4399
4400 2010-09-21  Simon Josefsson  <simon@josefsson.org>
4401
4402         * tests/test-net_if.c: New file.
4403         * modules/net_if-tests: New file.
4404
4405 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         pthread: add pthread_spin_destroy
4408         * lib/pthread.in.h (pthread_spin_destroy): New function.
4409
4410 2010-09-19  Bruno Haible  <bruno@clisp.org>
4411
4412         gnulib-tool: Fix --help output.
4413         * gnulib-tool (func_usage): Fix help message.
4414         Reported by Reuben Thomas <rrt@sc3d.org>.
4415
4416 2010-09-18  Jim Meyering  <meyering@redhat.com>
4417
4418         maint.mk: avoid unexpanded \n in two diagnostics
4419         * top/maint.mk (sc_prohibit_always_true_header_tests):
4420         Don't use a literal \n in a halt=... assignment.  It would not be
4421         expanded, and the two \n bytes would appear in the diagnostic output
4422         rather than the desired newline.  Use halt=$$(printf ... instead.
4423         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
4424
4425 2010-09-18  Bruno Haible  <bruno@clisp.org>
4426
4427         netinet_in: Doc tweak.
4428         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
4429         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4430
4431 2010-09-18  Jim Meyering  <meyering@redhat.com>
4432
4433         init.sh: correct an outdated comment
4434         * tests/init.sh (create_exe_shims_):  s/function/alias/
4435
4436         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
4437         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
4438         a file named "*.exe" is removed between the glob expansion and the
4439         processing of that oddly named file.
4440
4441 2010-09-17  Eric Blake  <eblake@redhat.com>
4442
4443         mirbsd: add some more support
4444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
4445         in BSD family.
4446         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
4447         devices as OpenBSD.
4448         * m4/host-os.m4 (mirbsd): Add MirBSD.
4449
4450         tests: fix unportable assumption on sys/wait.h
4451         * tests/test-sys_wait.c (main): Relax test.
4452         * tests/test-stdlib.c (main): Likewise.
4453
4454         init.sh: accomodate directory with no .exes
4455         * tests/init.sh: Accomodate directory containing only scripts.
4456
4457         tests: avoid compiler warning
4458         * tests/test-stdlib.c (main): Use the variable.
4459
4460         fdutimens, fdutimensat: update signature, again
4461         * lib/utimens.h (gl_futimens): Delete, and move signature...
4462         (fdutimens): ...here.
4463         (fdutimensat): Rearrange signature.
4464         (lutimensat): Rename variable for clarity.
4465         * lib/fdutimensat.c (fdutimensat): Update signature.
4466         * lib/utimens.c (fdutimens): Likewise.
4467         (gl_futimens): Delete.
4468         (utimens, lutimens): Update callers.
4469         * lib/futimens.c (futimens): Likewise.
4470         * tests/test-fdutimensat.c: Likewise.
4471         * tests/test-utimens.c: Likewise.
4472         * tests/test-futimens.h: Update comment.
4473         * NEWS: Mention this.
4474         Suggested by Paul Eggert.
4475
4476 2010-09-17  Bruno Haible  <bruno@clisp.org>
4477
4478         Take over the maintenance of some older macros from Autoconf.
4479         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
4480         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
4481         GNU Autoconf.
4482         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
4483         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
4484
4485 2010-09-17  Eric Blake  <eblake@redhat.com>
4486
4487         fdutimensat: drop atflag validation
4488         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
4489         with valid fd, to close a race scenario where futimens is
4490         unsupported and FILE was replaced by a symlink.
4491         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
4492         accordingly.
4493         Suggested by Paul Eggert.
4494
4495 2010-09-16  Bruno Haible  <bruno@clisp.org>
4496
4497         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
4498         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
4499
4500 2010-09-16  Bruno Haible  <bruno@clisp.org>
4501
4502         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
4503         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
4504         login_tty exists.
4505         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4506
4507 2010-09-16  Bruno Haible  <bruno@clisp.org>
4508
4509         login_tty: Make the replacement code work on BSD systems.
4510         * lib/login_tty.c: Include <sys/ioctl.h>.
4511         (login_tty): Use ioctl TIOCSCTTY when available.
4512         * modules/login_tty (Depends-on): Add sys_ioctl.
4513         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4514
4515 2010-09-16  Bruno Haible  <bruno@clisp.org>
4516
4517         login_tty: Stricter unit test.
4518         * modules/login_tty-tests (Depends-on): Add tcgetsid.
4519         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
4520         and tcgetsid() after login_tty.
4521         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4522
4523 2010-09-16  Bruno Haible  <bruno@clisp.org>
4524
4525         New module 'tcgetsid'.
4526         * lib/tcgetsid.c: New file.
4527         * m4/tcgetsid.m4: New file.
4528         * modules/tcgetsid: New file.
4529         * modules/termios (Depends-on): Add c++defs, warn-on-use.
4530         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
4531         GNULIB_TCGETSID, HAVE_TCGETSID.
4532         * lib/termios.in.h: Include <sys/types.h>.
4533         (tcgetsid): New declaration.
4534         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
4535         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
4536         * doc/posix-functions/tcgetsid.texi: Mention the new module.
4537         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
4538
4539 2010-09-16  Bruno Haible  <bruno@clisp.org>
4540
4541         Tests for module 'termios'.
4542         * modules/termios-c++-tests: New file.
4543         * modules/termios-tests: New file.
4544         * tests/test-termios-c++.cc: New file.
4545         * tests/test-termios.c: New file.
4546
4547         New module 'termios'.
4548         * modules/termios: New file.
4549         * lib/termios.in.h: New file.
4550         * m4/termios_h.m4: New file.
4551         * doc/posix-headers/termios.texi: Mention the new module.
4552
4553 2010-09-16  Eric Blake  <eblake@redhat.com>
4554
4555         fdutimensat: add an atflag parameter
4556         * lib/fdutimensat.c (fdutimensat): Add new parameter.
4557         * lib/utimens.h (fdutimensat): Update prototype.
4558         * tests/test-fdutimensat.c: Adjust test to match.
4559         * NEWS: Document the change.
4560         Suggested by Paul Eggert.
4561
4562 2010-09-16  Bruno Haible  <bruno@clisp.org>
4563
4564         Fix typos in comments.
4565         * lib/striconveh.h: Fix typo in comment.
4566         * lib/login_tty.c (login_tty): Likewise.
4567
4568 2010-09-15  Bruno Haible  <bruno@clisp.org>
4569
4570         stdlib: clarify MirBSD WEXITSTATUS bug
4571         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
4572         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4573
4574 2010-09-15  Eric Blake  <eblake@redhat.com>
4575
4576         stdlib: work around MirBSD WEXITSTATUS bug
4577         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
4578         * modules/stdlib (Depends-on): Add sys_wait.
4579         * tests/test-sys_wait.c (main): Enhance test.
4580         * tests/test-stdlib.c (main): Likewise.
4581         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
4582
4583         docs: mention MacOS issue with WEXITSTATUS(constant)
4584         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
4585         issue.
4586         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
4587
4588         strnlen: add tests
4589         * modules/strnlen-tests: New file.
4590         * tests/test-strnlen.c: Likewise.
4591
4592 2010-09-14  Bruno Haible  <bruno@clisp.org>
4593
4594         unistr/base: Avoid link errors when module 'libunistring' is also used.
4595         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
4596         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
4597         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
4598         Declare also when HAVE_LIBUNISTRING is set.
4599         Reported by Pádraig Brady <P@draigbrady.com>.
4600
4601 2010-09-14  Eric Blake  <eblake@redhat.com>
4602
4603         test-rawmemchr: make more robust
4604         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
4605         (Depends-on, configure.ac): Add needed prerequisites to use it.
4606         * modules/memchr-tests (Files, Depends-on, configure.ac):
4607         Likewise, to avoid implicit reliance on memchr module prereqs.
4608         * tests/test-memchr.c (main): Ensure proper masking.
4609         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
4610         reads.
4611
4612         memchr: detect glibc Alpha bug
4613         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
4614         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
4615         Alpha.
4616         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
4617         * tests/test-memchr.c (main): Enhance test.
4618         Reported by Nelson H. F. Beebe.
4619
4620 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4621
4622         fts, getcwd, glob: audit for dirfd returning -1
4623         * lib/fts.c (opendir): Remove #define; no longer used.
4624         (opendirat): New arg PDIR_FD.  All callers changed.
4625         (fts_build, _opendir2): Use new opendirat to avoid the need for
4626         dirfd, or for checking whether dirfd returns a negative value.
4627         Don't use opendir; always use openat followed by fdopendir.
4628         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
4629         it.
4630         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
4631         returns -1 here.
4632         * modules/fts (Depends-on): Remove dirfd.
4633         * modules/getcwd (Depends-on): Likewise.
4634
4635 2010-09-13  Eric Blake  <eblake@redhat.com>
4636
4637         float: fix broken MirBSD header
4638         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
4639         * doc/posix-headers/float.texi (float.h): Document it.
4640
4641 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4642
4643         fts: use O_NOFOLLOW to avoid race condition when opening a directory
4644         * lib/fts.c (opendirat): New arg extra_flags.
4645         (__opendir2): Use it to avoid following symlinks when opening
4646         a directory, if symlinks are not supposed to be followed.  See
4647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
4648
4649         fdopendir: preserve argument fd before returning
4650         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
4651         (fdopendir_with_dup, fd_clone_opendir): New static functions.
4652         (fdopendir): Use them, arranging for FD to be open to the same
4653         directory that it was when it started.  (It might be temporarily
4654         closed while fdopendir is running, so this not thread- or
4655         signal-safe.)  Be careful to do the right thing even when file
4656         descriptors are scarce and dup fails with errno == EMFILE.  See
4657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
4658
4659 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
4660
4661         regex: Pass the system regex if its only problem is 32-bit regoff_t.
4662         * NEWS: Document change.
4663         * m4/regex.m4: Disable test for regoff_t size.
4664
4665 2010-09-13  Jim Meyering  <meyering@redhat.com>
4666
4667         fts: don't operate on an invalid file descriptor after failed dup
4668         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
4669         negative file descriptor.
4670
4671 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4672
4673         savedir: add streamsavedir, deprecate fdsavedir
4674         * NEWS: Mention deprecation of fdsavedir.
4675         * lib/savedir.c (streamsavedir): New extern function, whose name
4676         ends in "savedir" to be consistent with the others.  This differs
4677         from savedirstream in that it doesn't close its argument.  The
4678         next version of GNU tar will use this instead of fdsavedir, to
4679         avoid some race conditions and conserve file descriptors.
4680         (savedirstream): Reimplement as a wrapper around streamsavedir.
4681         (fdsavedir): Add a comment deprecating this function.  As far as
4682         I know, only GNU tar used it, and GNU tar doesn't need it any more.
4683         * lib/savedir.h (streamsavedir): New decl.
4684         (fdsavedir): Add a comment deprecating this.
4685
4686 2010-09-10  Bruno Haible  <bruno@clisp.org>
4687
4688         langinfo: Fix last commit.
4689         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
4690         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
4691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4692
4693 2010-09-10  Bruno Haible  <bruno@clisp.org>
4694
4695         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
4696         * lib/progreloc.c (O_EXEC): Define fallback.
4697
4698 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4699
4700         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
4701         * NEWS: Document recent changes to fcntl-h.
4702         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
4703         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
4704         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
4705         Similarly for O_SEARCH; this last was already true, but not documented.
4706         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
4707         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
4708         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
4709         Likewise.
4710         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
4711         is zero, not whether it is defined.
4712         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
4713         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
4714         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
4715
4716 2010-09-10  Bruno Haible  <bruno@clisp.org>
4717
4718         langinfo, nl_langinfo: Fix for IRIX 5.3.
4719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
4720         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
4721         HAVE_LANGINFO_YESEXPR.
4722         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
4723         HAVE_LANGINFO_YESEXPR.
4724         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
4725         HAVE_LANGINFO_T_FMT_AMPM is 0.
4726         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
4727         HAVE_LANGINFO_YESEXPR is 0.
4728         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
4729         NOEXPR.
4730         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
4731         * doc/posix-functions/nl_langinfo.texi: Likewise.
4732         Reported by Eric Blake.
4733
4734 2010-09-10  Bruno Haible  <bruno@clisp.org>
4735
4736         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
4737         * doc/glibc-functions/login_tty.texi: Mention the include file problem
4738         on FreeBSD 8.0 and OpenBSD 4.6.
4739         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
4740         * m4/pty_h.m4 (gl_PTY_H): Likewise.
4741         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
4742         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
4743         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
4744         ac_includes_default.
4745         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
4746
4747 2010-09-09  Eric Blake  <eblake@redhat.com>
4748
4749         strsignal: work around NetBSD bug
4750         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
4751         * lib/string.in.h (includes): Likewise.
4752         * doc/posix-functions/strsignal.texi (strsignal): Document the
4753         bug.
4754         Reported by Nelson H. F. Beebe.
4755
4756         gnulib-tool: work with NetBSD /bin/sh
4757         * gnulib-tool (func_cache_var, func_cache_lookup_module)
4758         (func_get_description, func_get_comment, func_get_status)
4759         (func_get_notice, func_get_applicability, func_get_filelist)
4760         (func_get_dependencies, func_get_autoconf_early_snippet)
4761         (func_get_autoconf_snippet, func_get_automake_snippet)
4762         (func_get_include_directive, func_get_link_directive)
4763         (func_get_license, func_get_maintainer, func_import): Avoid
4764         shell syntax errors from parsing syntax extensions.
4765
4766 2010-09-09  Bruno Haible  <bruno@clisp.org>
4767
4768         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4769         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
4770         a reliable way to determine whether the 'alias' command works.
4771
4772 2010-09-08  Jim Meyering  <meyering@redhat.com>
4773
4774         init.sh: penalize a set-x-impaired shell; don't disqualify it
4775         * tests/init.sh: Too many shells corrupt application stderr when
4776         you set -x, so we can't afford to disqualify them, since at least
4777         on Irix-6.5, that would disqualify all bourne shells.
4778         Instead, use a two-pass approach.
4779         On the first pass, try to find a shell that meets the stricter
4780         condition that set -x does not corrupt stderr.
4781         If no shell meets the stricter condition, retest each candidate
4782         shell, but without that extra condition.  Finally, when
4783         VERBOSE=yes is requested and set -x might cause trouble, simply
4784         issue a warning and refrain from enabling debug output.
4785
4786 2010-09-08  Eric Blake  <eblake@redhat.com>
4787
4788         unsetenv: fix OpenBSD bug
4789         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
4790         * doc/posix-functions/unsetenv.texi (unsetenv): Update
4791         documentation.
4792         Reported by Jim Meyering.
4793
4794         strtod: work around IRIX 6.5 bug
4795         * lib/strtod.c (strtod): Reparse number on shorter string if
4796         exponent parse was invalid.
4797         * tests/test-strtod.c (main): Add check for "0x1p 2".
4798         Reported by Tom G. Christensen.
4799
4800         getopt: optimize previous patch
4801         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
4802         empty variable.  Speed up awk script.
4803         Reported by Paolo Bonzini.
4804
4805 2010-09-08  Jim Meyering  <meyering@redhat.com>
4806
4807         test.sh: disqualify shells for which set -x corrupts stderr
4808         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
4809         and OpenBSD 4.7.  They make it so with "set -x", environment settings
4810         appear in stderr output.  For example, this command:
4811             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
4812         prints "P=1" on those two systems:
4813
4814 2010-09-08  Bruno Haible  <bruno@clisp.org>
4815
4816         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
4817         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
4818         commands, because some shells ignore redirections when there is an
4819         error in the command lookup.
4820         Reported by Eric Blake.
4821
4822 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
4823
4824         * lib/regex.h: Fix a mention of `regex_compile' (should be
4825         `re_compile_pattern').
4826         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
4827         (re_set_registers): Correct name of parameter in comment.
4828
4829         * doc/regex.texi: Add documentation for missing syntax flags.
4830         Remove commented-out documentation of defunct syntax option
4831         RE_NO_EMPTY_ALTS.
4832         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
4833         Add documentation of re_set_registers.
4834         Document trick to re-use a pattern buffer by setting fastmap manually.
4835         Update documentation of struct re_pattern_buffer per public members.
4836         Uncomment documentation of equivalence class operators and
4837         collating symbol operators, since they are now implemented,
4838         Explain leftmost-longest matching in relation to alternatives.
4839         Tidy documentation of substring matching.
4840         Remove POSIX documentation, which is done better in
4841         glibc, and refer the reader there. Keep BSD API documentation, as
4842         that is not readily available elsewhere.
4843
4844 2010-09-07  Eric Blake  <eblake@redhat.com>
4845
4846         getopt: handle POSIXLY_CORRECT set but not exported
4847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
4848         export state of POSIXLY_CORRECT, due to bash set -o posix.
4849         Reported by Dustin J. Mitchell.
4850
4851 2010-09-05  Bruno Haible  <bruno@clisp.org>
4852
4853         gnulib-tool: Highlight the changed options.
4854         * gnulib-tool (func_usage): Display the --import, --add-import,
4855         --remove-import explanations in bold font.
4856
4857 2010-09-06  Karl Berry  <karl@gnu.org>
4858
4859         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
4860
4861 2010-09-05  Bruno Haible  <bruno@clisp.org>
4862
4863         uniwidth/width: Update comment.
4864         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
4865         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
4866
4867 2010-09-05  Bruno Haible  <bruno@clisp.org>
4868
4869         isinf, isnan: Relax license.
4870         * modules/isinf (License): Change from GPL to LGPL, with consent from
4871         Ben Pfaff.
4872         * modules/isnan (License): Likewise.
4873         Requested by Ludovic Courtès.
4874
4875 2010-09-04  Bruno Haible  <bruno@clisp.org>
4876
4877         gnulib-tool: Help migration from --import to --add-import or --update.
4878         * gnulib-tool: Emit a verbose error message when --import is used
4879         without any module name.
4880
4881 2010-09-04  Bruno Haible  <bruno@clisp.org>
4882
4883         Update doc about gnulib-tool.
4884         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
4885         'gnulib-tool --update' in more detail.
4886         Reported by Eric Blake.
4887
4888 2010-09-04  Bruno Haible  <bruno@clisp.org>
4889
4890         gnulib-tool: Change --import. New options --add/remove-import.
4891         * gnulib-tool: New options --add-import, --remove-import.
4892         (func_usage): Document them.
4893         (have_associative): Define always.
4894         (func_import): In import mode, don't merge the specified settings with
4895         the cached settings. Implement remove-import mode.
4896         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
4897         Explain when to use them versus --import.
4898         (Simple update): Use --add-import instead of --import.
4899         * NEWS: Mention the change.
4900
4901 2010-09-04  Bruno Haible  <bruno@clisp.org>
4902
4903         * doc/gnulib-tool.texi (Initial import): Update paragraph about
4904         separate gnulib.mk.
4905
4906 2010-09-04  Bruno Haible  <bruno@clisp.org>
4907
4908         gnulib-tool: Don't talk about CVS any more.
4909         * gnulib-tool (func_usage, func_import): Write "version control"
4910         instead of CVS.
4911
4912 2010-09-04  Jim Meyering  <meyering@redhat.com>
4913
4914         maint.mk: avoid obscure sc_copyright_check failure in coreutils
4915         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
4916         false positives (whose names may be ill-chosen) when searching
4917         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
4918         would cause a false-positive.
4919
4920         avoid coreutils "make distcheck" failure
4921         Coreutils tests with an absolute build directory name that contains
4922         a space.  Not quoting this directory name caused a failure.
4923         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
4924         * tests/test-vc-list-files-cvs.sh: Likewise.
4925
4926 2010-09-04  Bruno Haible  <bruno@clisp.org>
4927
4928         gnulib-tool: Avoid error when run in a package without Makefile.am.
4929         * gnulib-tool: When collecting the m4dirs in a package that does not
4930         have a Makefile.am, eliminate those directories that contain no
4931         gnulib-cache.m4. Fix expression that counts these directories.
4932
4933 2010-09-04  Bruno Haible  <bruno@clisp.org>
4934
4935         update-copyright test: Improve output when perl is missing or too old.
4936         * tests/test-update-copyright.sh: Move test of Perl version down after
4937         the test whether Perl exists. Provide an explanation relating Perl's
4938         error message to Automake's SKIP: message.
4939
4940 2010-09-04  Bruno Haible  <bruno@clisp.org>
4941
4942         Don't augment PATH in TESTS_ENVIRONMENT.
4943         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
4944         set abs_aux_dir instead of augmenting PATH.
4945         * modules/vc-list-files-tests (Makefile.am): Likewise.
4946         * tests/test-update-copyright.sh: Augment PATH here.
4947         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
4948         path_prepend_.
4949         * tests/test-vc-list-files-git.sh: Likewise.
4950
4951 2010-09-04  Jim Meyering  <meyering@redhat.com>
4952
4953         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
4954         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
4955
4956 2010-09-04  Bruno Haible  <bruno@clisp.org>
4957
4958         strdup: Fix compilation error in C++ mode.
4959         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
4960         the macro.
4961
4962 2010-09-04  Bruno Haible  <bruno@clisp.org>
4963
4964         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
4965         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
4966         macro into a function.
4967         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4968
4969 2010-09-04  Bruno Haible  <bruno@clisp.org>
4970
4971         Set PATH_SEPARATOR the same way autoconf does.
4972         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
4973         the value of PATH_SEPARATOR the same way autoconf-generated configure
4974         scripts do.
4975         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
4976         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
4977
4978 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4979
4980         Set PATH_SEPARATOR the same way autoconf does.
4981         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
4982         the same way autoconf-generated configure scripts do.
4983         * posix-modules: Likewise.
4984
4985 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
4986
4987         hash: fix safe_hasher const typo
4988         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
4989         const; otherwise, there is a type error later.
4990
4991 2010-09-02  Jim Meyering  <meyering@redhat.com>
4992
4993         test-update-copyright.sh: require perl 5.8.0
4994         * tests/test-update-copyright.sh: Require 5.8.0,
4995         which Tom G. Christensen has confirmed is adequate,
4996         while 5.6.1 is not.
4997
4998 2010-09-02  Eric Blake  <eblake@redhat.com>
4999
5000         tests: init.sh improvements for re-exec'ing with zsh
5001         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
5002         -vx through shell re-exec.
5003         Reported by Tom G. Christensen.
5004
5005         wctype: fix typo in previous commit
5006         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
5007         Reported by Ludovic Courtès.
5008
5009 2010-09-02  Jim Meyering  <meyering@redhat.com>
5010
5011         test-update-copyright.sh: skip test if Perl is too old
5012         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
5013         Reported by Tom G. Christensen.
5014
5015 2010-09-02  Bruno Haible  <bruno@clisp.org>
5016
5017         wctype: Avoid compilation error on IRIX 6.5.30.
5018         * lib/wctype.in.h (iswblank): Declare with a replacement if
5019         REPLACE_ISWBLANK is set.
5020         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
5021         declared. Set REPLACE_ISWBLANK.
5022         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
5023         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
5024         * doc/posix-headers/wctype.texi: Likewise.
5025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5026
5027 2010-09-01  Bruno Haible  <bruno@clisp.org>
5028
5029         New module 'socketlib'.
5030         * modules/socketlib: New file.
5031         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
5032         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
5033         * modules/sockets (Depends-on): Add socketlib.
5034         Suggested by Sam Steingold <sds@gnu.org>.
5035
5036 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5037
5038         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
5039
5040         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
5041         when one needs search access to a directory but not read access.
5042         On systems where it is available, it works in some cases where
5043         O_RDONLY does not, namely on directories that are searchable but
5044         not readable, and which need only to be searchable.  If O_SEARCH
5045         is not available, fall back to the traditional method of using
5046         O_RDONLY.
5047
5048         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
5049         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
5050         when opening a directory that needs only to be searchable.
5051         * lib/chdir-safer.c (chdir_no_follow): Likewise.
5052         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
5053         * lib/openat-proc.c (openat_proc_name): Likewise.
5054         * lib/openat.c (openat_needs_fchdir): Likewise.
5055         * lib/save-cwd.c (save_cwd): Likewise.
5056         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
5057
5058 2010-08-28  Bruno Haible  <bruno@clisp.org>
5059
5060         New module 'host-cpu-c-abi'.
5061         * modules/host-cpu-c-abi: New file.
5062         * m4/host-cpu-c-abi.m4: New file, based on part of
5063         clisp/src/m4/general.m4.
5064         Requested by Sam Steingold <sds@gnu.org>.
5065
5066 2010-08-31  Eric Blake  <eblake@redhat.com>
5067         and Jim Meyering  <meyering@redhat.com>
5068
5069         hash: factor, and guard against misbehaving hasher function
5070         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
5071         of table->hasher's return value.  Also protect against a hash value
5072         so large that adding it to table->bucket results in a NULL pointer.
5073         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
5074         Use it in place of open-coded check-and-abort.
5075
5076 2010-08-30  Bruno Haible  <bruno@clisp.org>
5077
5078         hash: silence spurious clang warning
5079         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
5080         Reported by Eric Blake.
5081
5082 2010-08-30  Eric Blake  <eblake@redhat.com>
5083
5084         strstr, memmem, strcasestr: avoid leaked shell message
5085         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
5086         FreeBSD.
5087         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5088         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
5089
5090         tests: silence clang warning
5091         * tests/test-malloca.c (do_allocation): Avoid dead store.
5092
5093 2010-08-29  Bruno Haible  <bruno@clisp.org>
5094
5095         gettext: Fix recent mistake.
5096         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
5097
5098 2010-08-29  Bruno Haible  <bruno@clisp.org>
5099
5100         selinux-h: Offer a --without-selinux option.
5101         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
5102         --without-selinux was specified, skip all tests and define
5103         HAVE_SELINUX_SELINUX_H to 0.
5104         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
5105         set LIB_SELINUX to empty.
5106         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
5107         gl_LIBSELINUX. If --without-selinux was specified, replace
5108         selinux/context.h.
5109         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
5110
5111 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5112             Bruno Haible  <bruno@clisp.org>
5113
5114         Make the module 'realloc-gnu' work again on AIX and OSF/1.
5115         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
5116         of HAVE_REALLOC.
5117         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
5118         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
5119         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
5120         * modules/realloc-gnu (configure.ac): Use 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 'calloc-gnu' work again on AIX and OSF/1.
5126         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
5127         HAVE_CALLOC.
5128         * lib/xmalloc.c: Update accordingly.
5129         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
5130         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
5131         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
5132
5133 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5134             Bruno Haible  <bruno@clisp.org>
5135
5136         Make the module 'malloc-gnu' work again on AIX and OSF/1.
5137         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
5138         HAVE_MALLOC.
5139         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
5140         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
5141         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
5142
5143 2010-08-29  Bruno Haible  <bruno@clisp.org>
5144
5145         Update modules list.
5146         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5147         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
5148         (String handling <string.h>): Add astrxfrm.
5149         (File system functions): Add readlinkat.
5150
5151 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5152
5153         Tests for module 'realloc-gnu'.
5154         * modules/realloc-gnu-tests: New file.
5155         * tests/test-realloc-gnu.c: New file.
5156
5157         Tests for module 'calloc-gnu'.
5158         * modules/calloc-gnu-tests: New file.
5159         * tests/test-calloc-gnu.c: New file.
5160
5161         Tests for module 'malloc-gnu'.
5162         * modules/malloc-gnu-tests: New file.
5163         * tests/test-malloc-gnu.c: New file.
5164
5165 2010-08-28  Bruno Haible  <bruno@clisp.org>
5166
5167         Rename module 'realloc' -> 'realloc-gnu'.
5168         * modules/realloc-gnu: New file, copied from modules/realloc.
5169         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
5170         obsolete.
5171         * modules/mgetgroups (Depends-on): Update.
5172         * doc/posix-functions/realloc.texi: Update.
5173         * NEWS: Mention the change.
5174
5175         Rename module 'calloc' -> 'calloc-gnu'.
5176         * modules/calloc-gnu: New file, copied from modules/calloc.
5177         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
5178         obsolete.
5179         * doc/posix-functions/calloc.texi: Update.
5180         * NEWS: Mention the change.
5181
5182         Rename module 'malloc' -> 'malloc-gnu'.
5183         * modules/malloc-gnu: New file, copied from modules/malloc.
5184         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
5185         obsolete.
5186         * modules/argp (Depends-on): Update.
5187         * modules/regex (Depends-on): Update.
5188         * doc/posix-functions/malloc.texi: Update.
5189         * NEWS: Mention the change.
5190
5191 2010-08-28  Eric Blake  <eblake@redhat.com>
5192
5193         pread, pwrite: add missing dependency
5194         * modules/pread (Depends-on): Add extensions.
5195         * modules/pwrite (Depends-on): Likewise.
5196
5197 2010-08-28  Bruno Haible  <bruno@clisp.org>
5198
5199         unistr/u*-strchr: Fix tests dependencies.
5200         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
5201         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
5202         Reported by Ian Beckwith <ianb@erislabs.net>.
5203
5204 2010-08-28  Bruno Haible  <bruno@clisp.org>
5205
5206         read-file: Don't occupy too much unused memory.
5207         * lib/read-file.c (fread_file): Shrink the buffer at the end.
5208
5209 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
5210             Eric Blake  <eblake@redhat.com>
5211             Bruno Haible  <bruno@clisp.org>
5212
5213         read-file: Avoid memory reallocations with regular files.
5214         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
5215         (fread_file): With regular files, use the remaining length as the
5216         initial buffer size.  Check against overflow.
5217         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
5218         sys_stat.
5219
5220 2010-08-28  Bruno Haible  <bruno@clisp.org>
5221
5222         ftello: Relax license.
5223         * modules/ftello (License): Relax to LGPLv2+.
5224         Reported by Eric Blake.
5225
5226 2010-08-28  Bruno Haible  <bruno@clisp.org>
5227
5228         Avoid relocwrapper link errors due to gnulib replacement functions.
5229         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
5230         function.
5231         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5232
5233 2010-08-28  Bruno Haible  <bruno@clisp.org>
5234
5235         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
5236         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
5237         defined.
5238         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
5239         Suggested by Eric Blake.
5240
5241 2010-08-28  Bruno Haible  <bruno@clisp.org>
5242
5243         sys_socket, netdb: Ensure socklen_t gets defined.
5244         * modules/sys_socket (Depends-on): Add socklen.
5245         * modules/netdb (Depends-on): Likewise.
5246         * modules/getaddrinfo (Depends-on): Remove socklen.
5247         * modules/getsockopt (Depends-on): Likewise.
5248         * modules/setsockopt (Depends-on): Likewise.
5249         * tests/test-sys_socket.c: Check that socklen_t is defined.
5250         * tests/test-netdb.c: Likewise.
5251         * m4/socklen.m4: Update comments.
5252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5253
5254 2010-08-27  Eric Blake  <eblake@redhat.com>
5255
5256         login_tty: add missing dependency
5257         * modules/login_tty (Depends-on): Add pty.
5258
5259 2010-08-26  Eric Blake  <eblake@redhat.com>
5260
5261         lib-symbol-versions: fix m4 quoting
5262         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
5263         format for AC_LINK_IFELSE.
5264
5265         glob: fix compile test
5266         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
5267
5268         btowc: fix missing file
5269         * modules/btowc (Files): Also ship locale-fr.m4.
5270
5271         lseek: fix link test
5272         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
5273         AC_LINK_IFELSE.
5274
5275         include_next: silence autoconf 2.68 warning
5276         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
5277         AC_COMPILE_IFELSE as special.
5278         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
5279         autoconf < 2.68.
5280
5281         acl: fix compilation test
5282         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
5283         AC_COMPILE_IFELSE.
5284
5285 2010-08-26  Bruno Haible  <bruno@clisp.org>
5286
5287         Modernize AC_TRY_RUN invocations.
5288         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5289         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
5290         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
5291         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
5292         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
5293         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5294         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
5295         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5296         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5297         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5298         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
5299         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
5300         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
5301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5302         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
5303         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5304         gl_MBRLEN_NUL_RETVAL): Likewise.
5305         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5306         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5307         Likewise.
5308         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5309         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
5310         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
5311         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
5312         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
5313         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
5314         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
5315         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5316         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
5317         Likewise.
5318         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
5319         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5320         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5321         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5322         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5323         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5324         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5325         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
5326         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5328
5329 2010-08-26  Bruno Haible  <bruno@clisp.org>
5330
5331         Modernize AC_TRY_LINK invocations.
5332         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
5333         AC_TRY_LINK.
5334         * m4/argp.m4 (gl_ARGP): Likewise.
5335         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5336         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5337         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5338         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5339         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5340         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
5341         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5342         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5343         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5344         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
5345         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5346         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
5347         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
5348         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5349         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
5350         * m4/hostent.m4 (gl_HOSTENT): Likewise.
5351         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
5352         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
5353         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
5354         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
5355         Likewise.
5356         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
5357         Likewise.
5358         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
5359         Likewise.
5360         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
5361         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
5362         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
5363         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5364         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5365         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5366         * m4/servent.m4 (gl_SERVENT): Likewise.
5367         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5368         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5369         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5370         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5371         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
5372         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5373         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5374         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5375         * modules/tsearch-tests (configure.ac): Likewise.
5376
5377 2010-08-26  Bruno Haible  <bruno@clisp.org>
5378
5379         Modernize AC_TRY_COMPILE invocations.
5380         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
5381         AC_TRY_COMPILE.
5382         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
5383         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
5384         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
5385         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5386         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
5387         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5388         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5389         * m4/lock.m4 (gl_LOCK): Likewise.
5390         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
5391         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5392         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
5393         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5394         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
5395         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
5396         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
5397         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
5398         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
5399         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
5400         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
5401         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5402         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
5403         extraneous semicolon.
5404
5405 2010-08-26  Jim Meyering  <meyering@redhat.com>
5406
5407         stat-time: relax license LGPL
5408         * modules/stat-time (License): Change from GPL to LGPL,
5409         with consent from all contributors, for use in libguile.
5410         Requested by Ludovic Courtès.
5411
5412 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
5413
5414         poll: return immediately on POLLHUP.
5415         * lib/poll.c (poll): Always set timeout before wait_timeout is
5416         computed.
5417
5418 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5419
5420         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
5421         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
5422         rmdir ("dir/.//"), unlinkat.
5423
5424 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5425
5426         stdbool: avoid spurious failure with modern xlc
5427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5428
5429 2010-08-24  Bruno Haible  <bruno@clisp.org>
5430
5431         getloadavg: simplify code
5432         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
5433         gl_have_func. Update comments.
5434
5435 2010-08-24  Eric Blake  <eblake@redhat.com>
5436
5437         getloadavg: don't define SVR4 on cygwin
5438         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
5439         only define SVR4 when -lkvm is required.
5440         Reported by Yaakov Selkowitz.
5441
5442 2010-08-24  Bruno Haible  <bruno@clisp.org>
5443
5444         priv-set: fix comment
5445         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
5446
5447 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5448
5449         priv-set: fix comments
5450         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
5451         to match code, as suggested by David Bartley in:
5452         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
5453
5454 2010-08-23  Eric Blake  <eblake@redhat.com>
5455
5456         stdbool: avoid rejecting clang
5457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
5458         * tests/test-stdbool.c: Enable more tests if using the system
5459         <stdbool.h> instead of the gnulib replacement.
5460         (main): Move xlc bug test to a runtime test for all compilers.
5461         Reported by Anders Kaseorg.
5462
5463         argz: fix shell quoting issue
5464         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
5465         Reported by Charles Wilson.
5466
5467 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
5468             Erik Faye-Lund <kusmabite@gmail.com>
5469
5470         poll, select: handle ERROR_BROKEN_PIPE.
5471         * lib/poll.c (win32_compute_revents): Return POLLHUP when
5472         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5473         * lib/select.c (win32_compute_revents): Do not mark a pipe
5474         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
5475
5476 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
5477
5478         fts: allow compilation with C++
5479         * lib/fts_.h: Specify extern "C" linkage with C++.
5480
5481 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5482
5483         Fix gnulib-tool sed script de-commentation for AIX sed.
5484         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
5485         sed.
5486
5487 2010-08-17  Eric Blake  <eblake@redhat.com>
5488
5489         test-stddef: test for (some) offsetof bugs
5490         * tests/test-stddef.c: Enhance test to ensure correct type of
5491         offsetof.
5492         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
5493         that we are not fixing at this time.
5494
5495 2010-08-15  Bruno Haible  <bruno@clisp.org>
5496
5497         stpncpy: Allow stpncpy to be defined as a macro.
5498         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
5499         if it's already correctly declared.
5500         * lib/string.in.h (stpncpy): Undefine before redefining.
5501         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
5502
5503 2010-08-14  Bruno Haible  <bruno@clisp.org>
5504
5505         Rename module 'memxfrm' to 'amemxfrm'.
5506         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
5507         (amemxfrm): Renamed from memxfrm.
5508         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
5509         (amemxfrm): Renamed from memxfrm.
5510         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
5511         * NEWS: Mention the change.
5512         * MODULES.html.sh (String handling <string.h>): Update.
5513         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
5514         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
5515         * lib/unicase/u16-casexfrm.c: Likewise.
5516         * lib/unicase/u32-casexfrm.c: Likewise.
5517         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
5518         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
5519         * lib/uninorm/u16-normxfrm.c: Likewise.
5520         * lib/uninorm/u32-normxfrm.c: Likewise.
5521         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
5522         memxfrm.
5523         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
5524         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
5525         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
5526         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
5527         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
5528         Suggested by Paul Eggert.
5529
5530 2010-08-14  Bruno Haible  <bruno@clisp.org>
5531
5532         Tests for module 'astrxfrm'.
5533         * modules/astrxfrm-tests: New file.
5534         * tests/test-astrxfrm.c: New file.
5535
5536         New module 'astrxfrm'.
5537         * lib/astrxfrm.h: New file.
5538         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
5539         * modules/astrxfrm: New file.
5540
5541 2010-08-14  Reuben Thomas <rrt@sc3d.org>
5542
5543         regex: Tweak doc.
5544         * doc/regex.texi (Overview): Don't mention regex.c.
5545         (GNU Regular Expression Compiling): Likewise.
5546         (Match-end-of-line Operator): Mention 'not_eol'.
5547
5548 2010-08-14  Brian Gough  <bjg@gnu.org>
5549             Bruno Haible  <bruno@clisp.org>
5550
5551         git-merge-changelog: add doc relating to use with bzr and hg.
5552         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
5553
5554 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
5555
5556         pthread: fix pthread.h creation for srcdir != builddir
5557         * modules/pthread (Makefile.am): Fix the rule to work also in a
5558         non-srcdir build.
5559
5560 2010-08-13  Karl Berry  <karl@gnu.org>
5561
5562         * doc/regex.texi (Predefined Syntaxes): @smallexample.
5563         * doc/posix-*/*: force line break before @url of POSIX
5564         specifications.
5565         Suggested by Werner Lemberg.
5566
5567 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5568
5569         strtod: fix const diagnostic
5570         * lib/strtod.c (strtod): Don't assign const char * to char *,
5571         as this elicits a warning from GCC when warnings are enabled.
5572
5573 2010-08-10  Pádraig Brady <P@draigbrady.com>
5574         and Eric Blake  <eblake@redhat.com>
5575
5576         copy-acl: ignore ENOTSUP on HP-UX
5577         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
5578         so that it is available for HP-UX.
5579         * lib/copy-acl.c (qcopy_acl): Use it.
5580         Reported by Patrick M. Callahan.
5581
5582 2010-08-10  Eric Blake  <eblake@redhat.com>
5583
5584         open, chown: relax license
5585         * modules/open (License): Change to LGPLv2+, with consent by all
5586         authors, for use in augeas.
5587         * modules/chown (License): Likewise.
5588         * modules/lchown (Likewise): Likewise.
5589         Requested by Adam Stokes.
5590
5591 2010-08-09  Karl Berry  <karl@gnu.org>
5592
5593         * build-aux/ar-lib: new file, import from Automake.
5594         * config/srclist.txt: autocheck for updates.
5595
5596 2010-08-09  Eric Blake  <eblake@redhat.com>
5597
5598         readlinkat: adjust client modules
5599         * modules/areadlinkat (Depends-on): Use readlinkat, not
5600         symlinkat.
5601         * modules/areadlinkat-with-size (Depends-on): Likewise.
5602
5603         mknod: be more vocal about danger of running tests as root
5604         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
5605         root, since that is just asking for problems.
5606         Suggested by Bruno Haible, based on a report by Rainer Tammer.
5607
5608         readlinkat: split into its own module
5609         * modules/symlinkat: Split readlinkat...
5610         * modules/readlinkat: ...into separate module.
5611         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
5612         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
5613         * lib/symlinkat.c (readlinkat): Move...
5614         * lib/readlinkat.c: ...into new file.
5615         * modules/symlinkat-tests: Split readlinkat test...
5616         * modules/readlinkat-tests: ...into separate module.
5617         * tests/test-symlinkat.c: Split...
5618         * tests/test-readlinkat.c: ...into new file.
5619         * NEWS: Document the split.
5620         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5621         * lib/unistd.in.h (readlinkat): Likewise.
5622         Suggested by Bruno Haible.
5623
5624 2010-08-08  Bruno Haible  <bruno@clisp.org>
5625
5626         memxfrm: Speed up.
5627         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
5628         that usually only one call to strxfrm is necessary for each string
5629         part.
5630         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5631
5632 2010-08-07  Karl Berry  <karl@gnu.org>
5633
5634         * doc/posix-headers/limits.texi,
5635         * doc/posix-functions/malloc.texi,
5636         * doc/posix-functions/strsignal.texi: missing @item.
5637         * doc/ld-version-script.texi: spurious leading i.
5638         * doc/regex.texi (Interval Operators): no commas inside @var.
5639
5640 2010-08-01  Bruno Haible  <bruno@clisp.org>
5641
5642         Integrate the regex documentation.
5643         * doc/gnulib.texi: Define 'cn' index.
5644         (Regular expressions): New a chapter that includes regex.texi and
5645         regexprops-generic.texi.
5646         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
5647         syntax.
5648
5649         Whitespace cleanup.
5650         * doc/regex.texi: Remove trailing spaces.
5651
5652         Add regex documentation.
5653         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
5654         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
5655         Written by Kathy A. Hargreaves and Karl Berry.
5656
5657 2010-08-01  Bruno Haible  <bruno@clisp.org>
5658
5659         link: Update documentation.
5660         * doc/posix-functions/link.texi: Update regarding Solaris.
5661
5662 2010-07-31  Bruno Haible  <bruno@clisp.org>
5663
5664         Update modules list.
5665         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
5666         (String handling <string.h>): Add memcmp2, memxfrm.
5667         (Container data structures): Add xlist, xsublist, xoset.
5668         (Core language properties): Add alignof, unused-parameter.
5669         (Process control, Numeric conversion functions <stdlib.h>): Renamed
5670         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
5671         (Unibyte characters <ctype.h>): New section.
5672         (String handling <string.h>): New section.
5673         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
5674         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
5675         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
5676         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
5677         tan, tanh, tanl, y0, y1, yn.
5678         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
5679         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
5680         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
5681         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
5682         unlockpt, vdprintf, vdprintf-posix.
5683         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
5684         (File system functions): Add concat-filename, sys_file, sys_ioctl,
5685         xconcat-filename.
5686         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
5687         getdtablesize, pipe2, pipe2-safer.
5688         (Security): New section.
5689         (Networking functions): Add accept4.
5690         (Signal handling): Add sigpipe.
5691         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
5692         mbmemcasecoll.
5693         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
5694         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
5695         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
5696         pipe-filter-ii.
5697         (Misc): Add argp-version-etc, login_tty, parse-duration.
5698
5699 2010-07-31  Bruno Haible  <bruno@clisp.org>
5700
5701         Improve doc in MODULES.html.
5702         * modules/linkat (Description): Add the word "function".
5703         * modules/mkfifo (Description): Likewise.
5704         * modules/mknod (Description): Likewise.
5705         * modules/remove (Description): Likewise.
5706         * modules/renameat (Description): Likewise.
5707         * modules/stat (Description): Likewise.
5708         * modules/symlink (Description): Likewise.
5709         * modules/unlink (Description): Likewise.
5710
5711 2010-07-31  Bruno Haible  <bruno@clisp.org>
5712
5713         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
5714         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
5715         option --enable/disable-c++ instead of --enable/disable-cxx.
5716         * NEWS: Mention the change.
5717
5718 2010-07-31  Bruno Haible  <bruno@clisp.org>
5719
5720         readlink, areadlink: Relax test a bit.
5721         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
5722         alternative to ENOTDIR.
5723         * tests/test-areadlink.h (test_areadlink): Likewise.
5724         Reported by Rainer Tammer.
5725
5726 2010-07-31  Bruno Haible  <bruno@clisp.org>
5727
5728         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
5729         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
5730         character, perform the search using U_STRCHR.
5731         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
5732         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
5733         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
5734         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
5735         Suggested by Paolo Bonzini.
5736
5737 2010-07-31  Bruno Haible  <bruno@clisp.org>
5738
5739         unistr/u*-strstr: Fix dependencies.
5740         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
5741         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
5742         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
5743
5744 2010-07-31  Bruno Haible  <bruno@clisp.org>
5745
5746         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
5747         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
5748         the beginning of the loop.
5749         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
5750         cases in 'switch' statement.
5751
5752         unistr/u8-strchr: Fix several bugs.
5753         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
5754         the string. When not found, return NULL, not a pointer near the end.
5755
5756         More tests for unistr/u8-strchr.
5757         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
5758         that the function does not read past the first occurrence of the byte
5759         being searched.
5760         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
5761         * tests/unistr/test-u16-strchr.c (main): New function.
5762         * tests/unistr/test-u32-strchr.c (main): New function.
5763
5764 2010-07-31  Bruno Haible  <bruno@clisp.org>
5765
5766         posix-modules: Ignore backup files of documentation files.
5767         * posix-modules: grep only through files named *.texi.
5768
5769 2010-07-31  Bruno Haible  <bruno@clisp.org>
5770
5771         symlinkat: Fix documentation.
5772         * doc/posix-functions/readlinkat.texi: Fix module name.
5773
5774 2010-07-31  Bruno Haible  <bruno@clisp.org>
5775
5776         fchownat: Replace also when chown has the trailing slash bug.
5777         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
5778         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
5779         introduced on 2010-04-10.
5780         Reported by Rainer Tammer.
5781
5782 2010-07-31  Bruno Haible  <bruno@clisp.org>
5783
5784         linkat: Work around AIX 7.1 bug.
5785         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
5786         whether linkat handles trailing slash correctly. If not, replace linkat
5787         and define LINKAT_TRAILING_SLASH_BUG.
5788         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
5789         check whether (fd1,file1) points to a directory if file1 or file2 ends
5790         in a slash. Code taken from lib/link.c.
5791         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
5792         Reported by Rainer Tammer.
5793
5794 2010-07-31  Bruno Haible  <bruno@clisp.org>
5795
5796         Correctly determine whether pow is available in libc on AIX 7 with xlc.
5797         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
5798         This disables an xlc optimization that was causing wrong test results.
5799         Reported by Rainer Tammer.
5800
5801 2010-07-31  Bruno Haible  <bruno@clisp.org>
5802
5803         iconv: Work around AIX 6.1..7.1 bug.
5804         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
5805         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
5806         cross-compiling, guess no on all versions of AIX.
5807         Reported by Rainer Tammer.
5808
5809 2010-07-31  Bruno Haible  <bruno@clisp.org>
5810
5811         readlink: Relax test a bit.
5812         * tests/test-readlink.h (test_readlink): Allow different errno value
5813         when readlink is called with a file name that ends in / and refers to
5814         a file.
5815         Suggested by Eric Blake.
5816         Reported by Rainer Tammer.
5817
5818 2010-07-31  Bruno Haible  <bruno@clisp.org>
5819
5820         copysign: Does not require -lm on glibc systems.
5821         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
5822         gl_COMMON_DOUBLE_MATHFUNC.
5823         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
5824
5825 2010-07-31  Bruno Haible  <bruno@clisp.org>
5826
5827         duplocale: Work around AIX 7.1 bug.
5828         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
5829         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
5830         * lib/duplocale.c (rpl_duplocale): Update comment.
5831         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
5832         Reported by Rainer Tammer.
5833
5834 2010-07-30  Bruno Haible  <bruno@clisp.org>
5835
5836         dirfd: Avoid link error on AIX 7.1.
5837         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
5838         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
5839         exist, set REPLACE_DIRFD.
5840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
5841         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
5842         * doc/posix-functions/dirfd.texi: Update.
5843         Reported by Rainer Tammer.
5844
5845 2010-07-30  Eric Blake  <eblake@redhat.com>
5846
5847         strtod: next round of AIX fixes
5848         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
5849         exponent.
5850         * tests/test-strtod.c (main): Enhance tests.
5851         * doc/posix-functions/strtod.texi (strtod): Document next bug.
5852         Reported by Rainer Tammer.
5853
5854         futimens: fix configure check
5855         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
5856         Reported by Bruno Haible.
5857
5858 2010-07-30  Bruno Haible  <bruno@clisp.org>
5859
5860         getline: Update regarding AIX.
5861         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
5862         Reported by Rainer Tammer.
5863
5864 2010-07-30  Bruno Haible  <bruno@clisp.org>
5865
5866         wcwidth: Drop replacement on AIX 7.
5867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
5868         AIX 7.
5869         Reported by Rainer Tammer.
5870
5871 2010-07-30  Bruno Haible  <bruno@clisp.org>
5872
5873         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
5874         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
5875         a 'char *'.
5876         Reported by Rainer Tammer.
5877
5878 2010-07-30  Bruno Haible  <bruno@clisp.org>
5879
5880         unlink: Update regarding AIX.
5881         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
5882         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
5883         Reported by Rainer Tammer.
5884
5885 2010-07-30  Bruno Haible  <bruno@clisp.org>
5886
5887         symlink: Update regarding AIX.
5888         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
5889         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
5890         Reported by Rainer Tammer.
5891
5892 2010-07-30  Bruno Haible  <bruno@clisp.org>
5893
5894         strndup: Update regarding AIX.
5895         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
5896         AIX 7.
5897         Reported by Rainer Tammer.
5898
5899 2010-07-30  Bruno Haible  <bruno@clisp.org>
5900
5901         stat: Update regarding AIX.
5902         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
5903         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
5904         Reported by Rainer Tammer.
5905
5906 2010-07-30  Bruno Haible  <bruno@clisp.org>
5907
5908         truncl: Fix autoconf test.
5909         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
5910         whether truncl works.
5911         Reported by Rainer Tammer.
5912
5913 2010-07-30  Bruno Haible  <bruno@clisp.org>
5914
5915         round: Update regarding AIX.
5916         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5917         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
5918         Reported by Rainer Tammer.
5919
5920 2010-07-30  Bruno Haible  <bruno@clisp.org>
5921
5922         rename: Update regarding AIX.
5923         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
5924         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
5925         Reported by Rainer Tammer.
5926
5927 2010-07-30  Bruno Haible  <bruno@clisp.org>
5928
5929         printf.m4: Update regarding AIX.
5930         * m4/printf.m4: Update comments regarding AIX.
5931         Reported by Rainer Tammer.
5932
5933 2010-07-30  Bruno Haible  <bruno@clisp.org>
5934
5935         iconv: Update regarding AIX.
5936         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
5937         AIX 7.
5938         Reported by Rainer Tammer.
5939
5940 2010-07-30  Bruno Haible  <bruno@clisp.org>
5941
5942         getopt: Update regarding AIX.
5943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
5944         no on AIX.
5945         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
5946         Reported by Rainer Tammer.
5947
5948 2010-07-30  Bruno Haible  <bruno@clisp.org>
5949
5950         ldexpl; Update regarding AIX.
5951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
5952         on AIX 7.
5953         Reported by Rainer Tammer.
5954
5955 2010-07-30  Bruno Haible  <bruno@clisp.org>
5956
5957         frexpl: Update regarding AIX.
5958         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5959         on AIX 7.
5960         Reported by Rainer Tammer.
5961
5962 2010-07-30  Bruno Haible  <bruno@clisp.org>
5963
5964         open, fopen: Update regarding AIX.
5965         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
5966         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
5967         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
5968         * doc/posix-functions/fopen.texi: Likewise.
5969         Reported by Rainer Tammer.
5970
5971 2010-07-30  Bruno Haible  <bruno@clisp.org>
5972
5973         chown: Update doc regarding AIX.
5974         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
5975         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
5976         Reported by Rainer Tammer.
5977
5978 2010-07-30  Eric Blake  <eblake@redhat.com>
5979
5980         strtod: fix bug in replacement function on AIX
5981         * lib/strtod.c (strtod): Special case broken "0x" parse in
5982         underlying strtod.
5983         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
5984         * doc/posix-functions/strtod.texi (strtod): Likewise.
5985         Reported by Rainer Tammer.
5986
5987 2010-07-30  Bruno Haible  <bruno@clisp.org>
5988
5989         mbrlen: Fix cross-compilation guess for AIX.
5990         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
5991         guess. Leftover from 2008-12-22.
5992
5993 2010-07-30  Bruno Haible  <bruno@clisp.org>
5994
5995         mbrtowc: Fix cross-compilation guess for AIX.
5996         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
5997         guess. Leftover from 2008-12-21.
5998
5999 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
6000
6001         init.sh: work around trap limitation of some shells
6002         * tests/init.sh (setup_): Move exit trap outside of shell function.
6003
6004 2010-07-29  Eric Blake  <eblake@redhat.com>
6005
6006         strtod: aid debugging
6007         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
6008         understanding why strtod is rejected.
6009
6010 2010-07-28  Bruno Haible  <bruno@clisp.org>
6011
6012         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
6013         * lib/unistr/u8-chr.c: Include <string.h>.
6014         * tests/unistr/test-u8-chr.c: Likewise.
6015         * tests/unistr/test-u16-chr.c: Likewise.
6016         * tests/unistr/test-u32-chr.c: Likewise.
6017         * tests/unistr/test-u8-strchr.c: Likewise.
6018         * tests/unistr/test-u16-strchr.c: Likewise.
6019         * tests/unistr/test-u32-strchr.c: Likewise.
6020         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
6021         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
6022         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
6023         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
6024
6025 2010-07-28  Bruno Haible  <bruno@clisp.org>
6026
6027         Use spaces for indentation, not tabs.
6028         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6029
6030 2010-07-27  Bruno Haible  <bruno@clisp.org>
6031
6032         mbspcasecmp: Fix function specification.
6033         * lib/string.in.h (mbspcasecmp): Fix specification comment.
6034         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
6035         Reported by Eric Blake <eblake@redhat.com>.
6036
6037 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
6038
6039         timespec: use cast and not conditional, as truncation isn't possible
6040         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
6041         instead of a conditional.  Comment about the situation in more detail.
6042         This undoes most of the 2009-10-29 patch.
6043
6044 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
6045
6046         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
6047         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
6048         * lib/unistr/u8-strchr.c: Likewise.
6049         * modules/unistr/u8-chr: Depend on memchr.
6050
6051         unistr/u*-strchr: add tests
6052         * modules/unistr/u8-strchr-tests: New file.
6053         * modules/unistr/u16-strchr-tests: New file.
6054         * modules/unistr/u32-strchr-tests: New file.
6055         * tests/unistr/test-strchr.h: New file.
6056         * tests/unistr/test-u8-strchr.c: New file.
6057         * tests/unistr/test-u16-strchr.c: New file.
6058         * tests/unistr/test-u32-strchr.c: New file.
6059
6060         unistr/u*-chr: test multibyte sequences more
6061         * tests/unistr/test-chr.h: Do complete testing of the characters in the
6062         test vector.
6063         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
6064         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
6065         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
6066
6067         unistr/u*-chr: test multibyte sequences
6068         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
6069
6070         unistr/u*-chr: prepare for multibyte tests
6071         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
6072         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
6073         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
6074         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
6075         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
6076         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
6077
6078 2010-07-18  Bruno Haible  <bruno@clisp.org>
6079
6080         unistr/u8-strchr: Optimize non-ASCII argument case.
6081         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
6082         because the first byte often matches anyway.
6083         Reported by Pádraig Brady <P@draigbrady.com>.
6084
6085 2010-07-15  Karl Berry  <karl@gnu.org>
6086
6087         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
6088
6089 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
6090
6091         getcwd: on Solaris, work better if ancestors are inaccessible
6092         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
6093         buffer and size, try again with a large buffer.  This works better
6094         on Solaris, since its getcwd succeeds even if the path to the root
6095         is inaccessible, and this is helpful in common cases such as .zfs
6096         hidden directories.  Problem reported by J Chapman Flack in
6097         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
6098         Use system getcwd if it's declared, not merely if it's partly
6099         working; use the partly-working test only to avoid needless effort
6100         if the system getcwd fails.
6101         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
6102         comment that was already obsolete and is now even more obsolete.
6103         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
6104         now might call strdup.
6105
6106 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
6107
6108         pthread: Add enough so that coreutils/src/sort.c compiles.
6109         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
6110         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6111         gnulib. Include <sched.h> and <time.h>, as per POSIX.
6112         Include <sys/types.h>, in case it defines pthread_t.
6113         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
6114         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
6115         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
6116         (pthread_rwlockattr_t, pthread_spinlock_t):
6117         New typedefs, if HAVE_PTHREAD_T is not defined.
6118         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
6119         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
6120         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
6121         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
6122         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
6123         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
6124         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
6125         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
6126         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
6127         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
6128         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
6129         New macros.
6130         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
6131         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
6132         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
6133         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
6134         (pthread_spin_unlock): New dummy functions.
6135         (pthread_create): Return EAGAIN; don't set errno.
6136         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
6137         require AC_C_INLINE.
6138         * modules/pthread (Depends-on): Add sched, time.
6139         (pthread.h): Use AM_V_GEN.
6140
6141 2010-07-13  Bruno Haible  <bruno@clisp.org>
6142
6143         striconveh: Don't malloc memory if the result buffer is sufficient.
6144         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
6145         buffer if its size is sufficient.
6146         Reported by Ludovic Courtès <ludo@gnu.org>.
6147
6148 2010-07-13  Bruno Haible  <bruno@clisp.org>
6149
6150         strtod: Add safety check.
6151         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
6152
6153 2010-07-12  Bruno Haible  <bruno@clisp.org>
6154
6155         Unify tests that set gl_cv_func_ldexpl_no_libm.
6156         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
6157         gl_FUNC_LDEXPL.
6158         (gl_FUNC_LDEXPL): Invoke it.
6159         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6160
6161 2010-07-12  Bruno Haible  <bruno@clisp.org>
6162
6163         Unify tests that set gl_cv_func_ldexp_no_libm.
6164         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
6165         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
6166         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
6167         (configure.ac): Simply invoke gl_FUNC_LDEXP.
6168         * modules/strtod (Files): Add m4/ldexp.m4.
6169
6170 2010-07-12  Bruno Haible  <bruno@clisp.org>
6171
6172         Unify tests that set gl_cv_func_frexpl_no_libm.
6173         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
6174         gl_FUNC_FREXPL_NO_LIBM.
6175         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
6176         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6177
6178 2010-07-12  Bruno Haible  <bruno@clisp.org>
6179
6180         Unify tests that set gl_cv_func_frexp_no_libm.
6181         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
6182         gl_FUNC_FREXP_NO_LIBM.
6183         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
6184         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6185
6186 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6187
6188         memcoll: clarify sizes versus lengths, document better, and tweak perf
6189         * lib/memcoll.c (strcoll_loop, memcoll0):
6190         Improve quality of descriptive comments.  Name variables
6191         consistently as to whether they are lengths (which do not include
6192         terminating null) versus sizes (which do).
6193         * lib/xmemcoll.c (xmemcoll0): Likewise.
6194         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
6195         returned when s1size == 0; this is easier to compile and saves
6196         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
6197
6198 2010-07-12  Bruno Haible  <bruno@clisp.org>
6199
6200         Tests for module '_Exit'.
6201         * modules/_Exit-tests: New file.
6202         * tests/test-_Exit.sh: New file.
6203         * tests/test-_Exit.c: New file.
6204
6205         New module '_Exit'.
6206         * lib/stdlib.in.h (__attribute__): New macro.
6207         (_Exit): New declaration.
6208         * lib/_Exit.c: New file.
6209         * m4/_Exit.m4: New file.
6210         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
6211         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
6212         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
6213         * modules/_Exit: New file.
6214         * tests/test-stdlib-c++.cc (_Exit): Check signature.
6215         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
6216
6217 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
6218
6219         strtod: make it more-accurate typically, and don't require libm
6220         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
6221         Include limits.h.  Don't include string.h.
6222         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
6223         (locale_isspace): New function, so that no casts are needed to
6224         check whether *s is a space.
6225         (ldexp): Provide an unused dummy if not available.
6226         (scale_radix_exp, parse_number, underlying_strtod): New functions.
6227         (strtod): Use them.  This implementation prefers to use the
6228         underlying strtod if available, falling back on our own code
6229         only to fix known bugs.  This is more likely to produce an
6230         accurate result.  Also, it avoids the use of libm functions.
6231         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
6232         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
6233         was absent, but it caused a test failure with coreutils.
6234         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
6235         with libm.
6236         * modules/strtod (Makefile.am, Link): libm is no longer needed.
6237         * modules/strtod-tests (Makefile.am): Likewise.
6238
6239 2010-07-11  Pádraig Brady  <P@draigBrady.com>
6240             Bruno Haible  <bruno@clisp.org>
6241
6242         unistr/u8-strchr: Optimize ASCII argument case.
6243         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
6244
6245 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6246
6247         (x)memcoll: minor tweaks
6248         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
6249         is after the type that it qualifies.
6250         (memcoll0): Likewise.
6251         * lib/memcoll.h (memcoll0): Likewise.
6252         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
6253         * lib/xmemcoll.h (xmemcoll0): Likewise.
6254         * lib/memcoll.c (memcoll0): Correct the comment.  This function
6255         differs from memcoll in that the NUL byte is part of the argument.
6256         Omit the abort-checks, as performance is a real issue here.  Plus,
6257         the checks were wrong anyway (an off-by-one error).  Omit local
6258         variable 'diff', as it's a bit clearer that way.
6259         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
6260         no longer needed.
6261
6262 2010-07-08  Chen Guo <chenguo4@yahoo.com>
6263
6264         (x)memcoll: speedup when input is known to be NUL delimited
6265         * lib/memcoll.c: Include stdlib.
6266         (memcoll0) New function.
6267         (strcoll_loop) New function, refactored for use in both memcoll
6268         and memcoll0.
6269         * lib/memcoll.h: Add prototype for memcoll0.
6270         * lib/xmemcoll.c: (xmemcoll0) New function.
6271         (collate_error) New function, refactored for use in both xmemcoll
6272         and xmemcoll0.
6273         * lib/xmemcoll.h: Add prototype for xmemcoll0.
6274         * m4/memcoll.m4: add inline invocation.
6275
6276 2010-07-06  Pádraig Brady  <P@draigBrady.com>
6277
6278         * build-aux/bootstrap: Remove any local translations
6279         from the translation project synchronization directory,
6280         so that local only translations are not distributed.
6281
6282 2010-07-04  Bruno Haible  <bruno@clisp.org>
6283
6284         fsusage: Clarify which code applies to which platforms.
6285         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
6286         platform.
6287         * lib/fsusage.c (get_fs_usage): Likewise.
6288
6289 2010-07-04  Bruno Haible  <bruno@clisp.org>
6290
6291         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
6292         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
6293         Reported by Martin Lambers <marlam@marlam.de>.
6294
6295 2010-07-04  Jim Meyering  <meyering@redhat.com>
6296
6297         hash: once again explicitly disallow insertion of NULL
6298         * lib/hash.c (hash_insert0): Reinstate just-removed test:
6299         inserting a NULL pointer cannot work with these functions.
6300         Add a comment with details.
6301         This reverts part of the 2010-07-01 commit, 5bef1a35
6302         "hash: extend module to deal with non-pointer keys".
6303
6304 2010-07-01  Bruno Haible  <bruno@clisp.org>
6305
6306         stdbool: Update doc.
6307         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
6308         Info from Christian Weisgerber <naddy@mips.inka.de>.
6309
6310 2010-07-01  Jim Meyering  <meyering@redhat.com>
6311
6312         hash: extend module to deal with non-pointer keys
6313         * lib/hash.c (hash_insert0): New interface, much like hash_insert
6314         but that allows insertion of non-pointer entries.
6315         Do not disallow an ENTRY value of NULL.
6316         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
6317         * lib/hash.h (hash_insert0): Declare.
6318
6319 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
6320
6321         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
6322         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
6323         not present (i.e. with autoconf 2.59 and when using gettextize, not
6324         gnulib), require AC_GNU_SOURCE instead.
6325
6326 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
6327
6328         idpriv-drop: Fix tests.
6329         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
6330         not to the test-idpriv-droptemp program.
6331
6332 2010-06-29  Bruno Haible  <bruno@clisp.org>
6333
6334         string: Fix syntax error with g++ 2.96.
6335         * lib/string.in.h (__pure__): Remove definition.
6336         (_GL_ATTRIBUTE_PURE): New macro.
6337         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
6338         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
6339         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6340
6341 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
6342
6343         unitypes: Fix bug introduced on 2010-05-18.
6344         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
6345
6346 2010-06-22  Eric Blake  <eblake@redhat.com>
6347
6348         memmem: slight optimization
6349         * lib/str-two-way.h (critical_factorization): Update comments.
6350         Reduce work during factorization phase.
6351         Reported by Carlos Bueno <carlos@bueno.org>.
6352
6353 2010-06-21  Bruno Haible  <bruno@clisp.org>
6354
6355         Fix HAVE_CALLOC_POSIX misnomer.
6356         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
6357         !HAVE_CALLOC_POSIX.
6358         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
6359         HAVE_CALLOC_POSIX.
6360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
6361         instead of HAVE_CALLOC_POSIX.
6362         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
6363         HAVE_CALLOC_POSIX.
6364
6365         Use modern idiom for calloc() replacement.
6366         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
6367         AC_FUNC_CALLOC.
6368         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
6369         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
6370         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6371         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
6372         (gl_REPLACE_CALLOC): New macro.
6373
6374 2010-06-21  Bruno Haible  <bruno@clisp.org>
6375
6376         Fix HAVE_REALLOC_POSIX misnomer.
6377         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
6378         !HAVE_REALLOC_POSIX.
6379         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
6380         HAVE_REALLOC_POSIX.
6381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
6382         instead of HAVE_REALLOC_POSIX.
6383         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
6384         HAVE_REALLOC_POSIX.
6385
6386         Use modern idiom for realloc() replacement.
6387         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
6388         AC_FUNC_REALLOC.
6389         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
6390         Autoconf's AC_FUNC_REALLOC.
6391         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6392         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
6393         (gl_REPLACE_REALLOC): New macro.
6394         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6395
6396 2010-06-21  Bruno Haible  <bruno@clisp.org>
6397
6398         Fix HAVE_MALLOC_POSIX misnomer.
6399         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
6400         !HAVE_MALLOC_POSIX.
6401         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
6402         HAVE_MALLOC_POSIX.
6403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
6404         instead of HAVE_MALLOC_POSIX.
6405         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
6406         HAVE_MALLOC_POSIX.
6407
6408         Use modern idiom for malloc() replacement.
6409         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
6410         AC_FUNC_MALLOC.
6411         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
6412         Autoconf's AC_FUNC_MALLOC.
6413         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
6414         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
6415         (gl_REPLACE_MALLOC): New macro.
6416         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
6417
6418 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
6419
6420         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
6421         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
6422         This macro takes 3 arguments, not 4.
6423
6424 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
6425
6426         ipv6: fix detection under mingw
6427         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
6428         in6_addr.
6429
6430 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
6431
6432         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
6433         that strtod() works when cross-compiling to a glibc version known
6434         to work.
6435
6436 2010-06-15  Bruno Haible  <bruno@clisp.org>
6437
6438         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
6439
6440 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
6441
6442         select: Correct timeout.
6443         * lib/select.c (rpl_select): Compute wait_timeout correctly.
6444
6445 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6446
6447         git-version-gen: init shell var to avoid env var influence
6448         * build-aux/git-version-gen (v): Init shell var to empty.
6449
6450 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
6451
6452         priv-set: Don't assume that priv.h exists merely because getppriv does.
6453         See Jan Andersen's bug report about AIX 5L in
6454         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
6455         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
6456         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
6457         * lib/priv-set.h: Likewise.
6458         * tests/test-priv-set.c: Likewise.
6459
6460 2010-06-13  Bruno Haible  <bruno@clisp.org>
6461
6462         relocatable: Make it easier to test whether to install wrappers.
6463         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
6464         RELOCATABLE_VIA_WRAPPER.
6465
6466 2010-06-13  Bruno Haible  <bruno@clisp.org>
6467
6468         gnulib-tool: Display specified modules and dependencies differently.
6469         * gnulib-tool (func_show_module_list): New function.
6470         (func_import, func_create_testdir): Invoke it.
6471         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
6472
6473 2010-06-13  Bruno Haible  <bruno@clisp.org>
6474
6475         gnulib-tool: Align code of func_import and func_create_testdir.
6476         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
6477         specified_modules.
6478
6479 2010-06-12  Jim Meyering  <meyering@redhat.com>
6480
6481         test-inttostr: avoid spurious failure on Solaris 9
6482         * tests/test-inttostr.c (main): Skip the test when snprintf fails
6483         to accept "%ju".  Reported by Bruno Haible.
6484
6485 2010-06-11  Jim Meyering  <meyering@redhat.com>
6486
6487         test-sys_socket: mark variables as used more readably
6488         * tests/test-sys_socket.c (main): Mark otherwise unused variables
6489         as "used" explicitly via (void) statement casts.  This is more
6490         readable than using them in an artificial return expression.
6491         Suggestion from Bruno Haible.
6492
6493 2010-06-11  Bruno Haible  <bruno@clisp.org>
6494
6495         Avoid some more warnings from "gcc -Wwrite-strings".
6496         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
6497         to 'const char *'.
6498         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
6499         * tests/test-c-strcasestr.c (main): Likewise.
6500         * tests/test-mbscasestr1.c (main): Likewise.
6501         * tests/test-mbscasestr2.c (main): Likewise.
6502         * tests/test-memmem.c (main): Likewise.
6503         * tests/test-strstr.c (main): Likewise.
6504         * tests/test-strcasestr.c (main): Likewise.
6505
6506 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6507
6508         init.sh: change framework_failure_ to fail with status 99, not 1
6509         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
6510         automake's parallel-tests rule that this is an unexpected failure,
6511         even if the test is listed in XFAIL_TESTS.
6512
6513 2010-06-11  Jim Meyering  <meyering@redhat.com>
6514
6515         test-inttostr: avoid warnings about 4-6KB literal strings
6516         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
6517         Include "macros.h", for its definition of ASSERT.
6518         (CK): s/assert/ASSERT/
6519         * modules/inttostr-tests (Files): Add macros.h.
6520
6521         init.sh: don't use $ME_ or skip_ before they are defined
6522         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
6523         their first uses.  Also hoist their companions: warn_, fail_,
6524         framework_failure_, $stderr_fileno.  Prompted by a patch from
6525         Stefano Lattarini.
6526
6527         test-sys_socket: avoid set-but-not-used warnings from gcc
6528         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
6529         avoid warning about set-but-not-used variables.
6530
6531         test-xvasprintf: avoid 'const' discard warnings
6532         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
6533         "const" when assigning from literal strings.
6534         (test_xasprintf): Add "void" in function argument list to placate
6535         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
6536
6537         tests: avoid compilation warnings in argmatch and exclude tests...
6538         in packages that define ARGMATCH_DIE_DECL, like coreutils.
6539         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
6540         Since it always exits, declare with the "noreturn" attribute.
6541         * tests/test-argmatch.c: Likewise.
6542
6543         tests: avoid 'const' discard warnings in mbsstr tests
6544         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
6545         * tests/test-mbsstr2.c (main): Likewise.
6546
6547         test-verify: avoid warning from gcc's -Wmissing-declarations
6548         * tests/test-verify.c (function): Declare to be static.
6549
6550         test-inttostr.c: include <string.h> for use of strcmp
6551         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
6552
6553         test-linkat: avoid failed assertion on "other" architectures
6554         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
6555         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
6556         sparc: https://bugs.launchpad.net/bugs/591968
6557
6558 2010-06-11  Jim Meyering  <meyering@redhat.com>
6559
6560         printf.m4: avoid autoconf's "Expanded Before Required" warning
6561         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
6562         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
6563         autoconf warning.
6564
6565 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
6566
6567         Replacement header templates are now named with ".in", not "_".
6568         * doc/gnulib-intro.texi: Correct.
6569
6570 2010-06-10  Jim Meyering  <meyering@redhat.com>
6571
6572         inttostr-tests: depend on snprintf, not snprintf-posix
6573         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
6574         snprintf-posix, to avoid this aclocal failure:
6575           missing file gnulib-tests/vasnprintf.c
6576           configure.ac:45: error: expected source file, required through \
6577           AC_LIBSOURCES, not found
6578
6579 2010-06-10  Jim Meyering  <meyering@redhat.com>
6580
6581         inttostr: add a new function, inttostr, and tests
6582         The namesake function was not available.  The existence of the
6583         template file, inttostr.c makes its addition nontrivial.
6584         * lib/anytostr.c: Rename from inttostr.c.
6585         (anytostr): Rename from inttostr.
6586         * lib/inttostr.c: New file.
6587         * modules/inttostr (Files): Add anytostr.c.
6588         (Makefile.am): Set lib_SOURCES instead of ...
6589         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
6590         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
6591         * lib/offtostr.c: Likewise.
6592         * lib/uinttostr.c: Likewise.
6593         * lib/umaxtostr.c: Likewise.
6594         * modules/inttostr-tests: New file.
6595         * tests/test-inttostr.c: New file.  Test these functions.
6596
6597 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
6598             Bruno Haible  <bruno@clisp.org>
6599
6600         Add "Extending Gnulib" chapter to manual.
6601         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
6602         chapter.
6603         (Extending Gnulib): New chapter.
6604         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
6605         chapter.
6606
6607 2010-06-09  Bruno Haible  <bruno@clisp.org>
6608
6609         Avoid relocwrapper link errors due to gnulib replacement functions.
6610         * lib/areadlink.c: Use the system's malloc, realloc functions.
6611         (areadlink): Set errno to ENOMEM explicitly.
6612         * modules/areadlink (Depends-on): Remove malloc-posix.
6613         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6614
6615 2010-06-09  Bruno Haible  <bruno@clisp.org>
6616
6617         Avoid relocwrapper link errors due to gnulib replacement functions.
6618         * lib/canonicalize-lgpl.c: Use the system's malloc function.
6619         * lib/malloca.c: Likewise.
6620         * lib/relocatable.c: Likewise.
6621         * lib/progreloc.c: Use the system's malloc, sprintf functions.
6622         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
6623         * lib/setenv.c: Use the system's malloc, realloc functions.
6624         * lib/strerror.c: Use the system's sprintf function.
6625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6626
6627 2010-06-04  Bruno Haible  <bruno@clisp.org>
6628
6629         Prefer documented low-level autoconf macro names.
6630         * m4/lib-link.m4: Use m4_translit instead of translit.
6631         * m4/environ.m4: Likewise.
6632         * m4/mathfunc.m4: Likewise.
6633         * m4/onceonly.m4: Likewise.
6634         * m4/stdint.m4: Likewise.
6635         Suggested by Eric Blake.
6636
6637 2010-06-04  Martin Lambers  <marlam@marlam.de>
6638             Bruno Haible  <bruno@clisp.org>
6639
6640         havelib: Allow library names with '+' characters.
6641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6642         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
6643
6644 2010-06-09  Bruno Haible  <bruno@clisp.org>
6645
6646         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
6647         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
6648         realloc failed.
6649
6650 2010-06-08  Peter Simons  <simons@cryp.to>
6651
6652         maint.mk: make the news-check rule more configurable
6653         * top/maint.mk (news-check-lines-spec) New variable.
6654         (news-check): Use "sed -n 1,10p" in place of "head".
6655
6656 2010-06-07  Jim Meyering  <meyering@redhat.com>
6657
6658         do-release-commit-and-tag: fix typo in --help
6659         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
6660
6661         regex: avoid new dead-code warning with gcc-4.6.0
6662         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
6663         if-block containing a while-loop.  It's been unused for at least
6664         5 years.
6665
6666 2010-06-05  Bruno Haible  <bruno@clisp.org>
6667
6668         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
6669         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
6670
6671 2010-06-04  Bruno Haible  <bruno@clisp.org>
6672
6673         Update to GNU gettext 0.18.1.
6674         * modules/gettext (configure.ac): Require gettext infrastructure from
6675         version 0.18.1.
6676
6677 2010-06-03  Bruno Haible  <bruno@clisp.org>
6678
6679         Don't use AC_LIBOBJ with file names in subdirectories.
6680         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
6681         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
6682         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
6683         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
6684         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
6685         gl_LIBUNISTRING_LIBSOURCE.
6686         (Makefile.am): Augment lib_SOURCES here, conditionally.
6687         * NEWS: Drop requirement for Automake option 'subdir-objects'.
6688
6689 2010-06-03  Bruno Haible  <bruno@clisp.org>
6690
6691         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
6692         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
6693         expansion does not end with a newline.
6694         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
6695         unnecessary newline.
6696
6697 2010-06-03  Bruno Haible  <bruno@clisp.org>
6698
6699         Reduce dependencies.
6700         * tests/test-quotearg.h: New file, extracted from
6701         tests/test-quotearg.c.
6702         * tests/test-quotearg-simple.c: New file, extracted from
6703         tests/test-quotearg.c.
6704         * tests/test-quotearg.c: Don't include <ctype.h>.
6705         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
6706         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
6707         use_quote_double_quotes, use_quotearg_colon): Moved to
6708         tests/test-quotearg.h.
6709         (results_g, flag_results, custom_quotes, custom_results): Moved
6710         to tests/test-quotearg-simple.c.
6711         (main): Moved the part that does not depend on gettext to
6712         tests/test-quotearg-simple.c. Return 77 if the test cannot be
6713         performed.
6714         * modules/quotearg-simple: New file.
6715         * modules/quotearg-simple-tests: New file.
6716         * modules/quotearg (Depends-on): Add quotearg-simple.
6717         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
6718         (Files): Add tests/test-quotearg.h.
6719         Reported by Paolo Bonzini.
6720
6721 2010-06-03  Bruno Haible  <bruno@clisp.org>
6722
6723         Reduce dependencies.
6724         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
6725
6726 2010-06-03  Bruno Haible  <bruno@clisp.org>
6727
6728         time: Undefine more broken macros.
6729         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
6730         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
6731         Reported by Eric Blake.
6732
6733 2010-06-03  Bruno Haible  <bruno@clisp.org>
6734
6735         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
6736         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
6737         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
6738         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
6739         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
6740         Reported by Ludovic Courtès <ludo@gnu.org>.
6741
6742 2010-06-02  Eric Blake  <eblake@redhat.com>
6743
6744         time: work with mingw + pthreads-win32 library
6745         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
6746         if timespec is defined only in pthread.h.
6747         * modules/time (Makefile.am): Substitute it.
6748         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
6749         <pthread.h>, when needed.
6750         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
6751         from the library.
6752
6753 2010-05-31  Bruno Haible  <bruno@clisp.org>
6754
6755         Avoid expanding two macros in the wrong order.
6756         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
6757         gl_LIBUNISTRING if it is defined.
6758         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
6759         autoconf >= 2.64.
6760         Reported by Ludovic Courtès <ludo@gnu.org>.
6761
6762 2010-05-27  Jim Meyering  <meyering@redhat.com>
6763
6764         maint.mk: also prohibit "#undef" of always-defined symbols
6765         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
6766         Allow more than one space before the symbol name.
6767         (sc_prohibit_always-defined_macros): Use grep's -E, now that
6768         the regexp uses alternation.
6769
6770 2010-05-26  Eric Blake  <eblake@redhat.com>
6771
6772         maint.mk: avoid echo -e
6773         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
6774         Convert all uses of echo -* to printf.
6775         Reported by Matthias Bolte.
6776
6777 2010-05-25  Bruno Haible  <bruno@clisp.org>
6778
6779         Update to GNU gettext 0.18, part 2.
6780         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
6781         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
6782
6783 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6784
6785         Add missing include in test-pwrite.c.
6786         * tests/test-pwrite.c: Include string.h, for strcmp.
6787
6788 2010-05-24  Bruno Haible  <bruno@clisp.org>
6789
6790         * NEWS: Mention requirement for Automake option 'subdir-objects'.
6791
6792 2010-05-24  Bruno Haible  <bruno@clisp.org>
6793
6794         Don't use conversion with transliteration in u{8,16,32}_strcoll.
6795         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
6796         iconveh_error argument.
6797         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
6798         U_STRCONV_TO_LOCALE.
6799         * lib/unistr/u16-strcoll.c: Likewise.
6800         * lib/unistr/u32-strcoll.c: Likewise.
6801         * modules/unistr/u8-strcoll (Depends-on): Add
6802         uniconv/u8-strconv-to-enc, localcharset. Remove
6803         uniconv/u8-strconv-to-locale.
6804         (configure.ac): Bump version number.
6805         * modules/unistr/u16-strcoll (Depends-on): Add
6806         uniconv/u16-strconv-to-enc, localcharset. Remove
6807         uniconv/u16-strconv-to-locale.
6808         (configure.ac): Bump version number.
6809         * modules/unistr/u32-strcoll (Depends-on): Add
6810         uniconv/u32-strconv-to-enc, localcharset. Remove
6811         uniconv/u32-strconv-to-locale.
6812         (configure.ac): Bump version number.
6813
6814 2010-05-24  Bruno Haible  <bruno@clisp.org>
6815
6816         Avoid a test failure on NetBSD 5.0.
6817         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
6818         an iconv() bug.
6819
6820 2010-05-24  Bruno Haible  <bruno@clisp.org>
6821
6822         Adjust #include directive style.
6823         * modules/regex (Includes): Recommend to write <regex.h>.
6824
6825 2010-05-24  Bruno Haible  <bruno@clisp.org>
6826
6827         regex: Don't require alloca.
6828         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
6829         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
6830         only inside if (0).
6831
6832 2010-05-23  Jim Meyering  <meyering@redhat.com>
6833
6834         test-renameat.c: include <sys/stat.h>
6835         * tests/test-renameat.c: Include <sys/stat.h>; required for
6836         definition of S_IS* macros.
6837
6838 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
6839
6840         Update maintainer documentation for 'relocatable-prog' module.
6841         * doc/relocatable-maint.texi: Update.
6842         Comments by Bruno Haible.
6843
6844 2010-05-23  Bruno Haible  <bruno@clisp.org>
6845
6846         git-merge-changelog: Enable --split-merged-entry by default.
6847         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
6848         (usage): Don't mention this option any more.
6849         Reported by Ralf Wildenhues.
6850
6851 2010-05-23  Jim Meyering  <meyering@redhat.com>
6852
6853         test-pwrite: do not leave behind a test file named "out"
6854         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
6855         The trivial-looking use of init.sh is really necessary.
6856         It ensures that the temporary file, "out", is created in
6857         a temporary directory, and removed upon termination.
6858         * tests/test-pwrite.sh: Re-add file.
6859         * modules/pwrite-tests: Reference it.
6860
6861 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6862
6863         Fix output redirection buglet in init.sh.
6864         * tests/init.sh: Fix redirection of stderr.
6865
6866 2010-05-20  Simon Josefsson  <simon@josefsson.org>
6867
6868         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
6869
6870 2010-05-17  Simon Josefsson  <simon@josefsson.org>
6871
6872         * modules/valgrind-tests: New file.
6873         * m4/valgrind-tests.m4: New file.
6874         * doc/valgrind-tests.texi: New file.
6875         * doc/gnulib.texi (Running self-tests under valgrind): New
6876         section.
6877
6878 2010-05-19  Bruno Haible  <bruno@clisp.org>
6879
6880         Clean up dead code in recent commit.
6881         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
6882         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
6883         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
6884         Suggested by Paolo Bonzini.
6885
6886 2010-05-19  Bruno Haible  <bruno@clisp.org>
6887
6888         Avoid valgrind error reports from libunistring.
6889         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
6890         * modules/libunistring (Files): Add it.
6891         * modules/libunistring-optional (Files): Likewise.
6892
6893 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
6894             Bruno Haible  <bruno@clisp.org>
6895
6896         New module 'libunistring-optional'.
6897         * modules/libunistring-optional: New file.
6898         * m4/libunistring-base.m4: New file.
6899         * m4/libunistring-optional.m4: New file.
6900         * lib/unicase.in.h: Renamed from lib/unicase.h.
6901         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
6902         * lib/unictype.in.h: Renamed from lib/unictype.h.
6903         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
6904         * lib/uniname.in.h: Renamed from lib/uniname.h.
6905         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
6906         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
6907         * lib/unistr.in.h: Renamed from lib/unistr.h.
6908         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
6909         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
6910         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
6911         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
6912         gl_LIBUNISTRING. If the library was found, determine the installed
6913         version and set LIBUNISTRING_VERSION.
6914         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
6915         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
6916         handle a configuration option --with-included-libunistring.
6917         * modules/libunistring (Files): Add m4/absolute-header.m4.
6918         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
6919         Add m4/libunistring-base.m4.
6920         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6921         (Makefile.am): Build unicase.h from unicase.in.h.
6922         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
6923         Add m4/libunistring-base.m4.
6924         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6925         (Makefile.am): Build uniconv.h from uniconv.in.h.
6926         * modules/unictype/base (Files): Use unictype.in.h instead of
6927         unictype.h. Add m4/libunistring-base.m4.
6928         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6929         (Makefile.am): Build unictype.h from unictype.in.h.
6930         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
6931         Add m4/libunistring-base.m4.
6932         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6933         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
6934         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
6935         Add m4/libunistring-base.m4.
6936         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6937         (Makefile.am): Build uniname.h from uniname.in.h.
6938         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
6939         Add m4/libunistring-base.m4.
6940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6941         (Makefile.am): Build uninorm.h from uninorm.in.h.
6942         * modules/unistdio/base (Files): Use unistdio.in.h instead of
6943         unistdio.h. Add m4/libunistring-base.m4.
6944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6945         (Makefile.am): Build unistdio.h from unistdio.in.h.
6946         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
6947         Add m4/libunistring-base.m4.
6948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6949         (Makefile.am): Build unistr.h from unistr.in.h.
6950         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
6951         Add m4/libunistring-base.m4.
6952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6953         (Makefile.am): Build unitypes.h from unitypes.in.h.
6954         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
6955         Add m4/libunistring-base.m4.
6956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6957         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
6958         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
6959         uniwidth.h. Add m4/libunistring-base.m4.
6960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
6961         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
6962         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
6963         instead of augmenting lib_SOURCES.
6964         * modules/unicase/empty-suffix-context: Likewise.
6965         * modules/unicase/locale-language: Likewise.
6966         * modules/unicase/tolower: Likewise.
6967         * modules/unicase/totitle: Likewise.
6968         * modules/unicase/toupper: Likewise.
6969         * modules/unicase/u8-casecmp: Likewise.
6970         * modules/unicase/u8-casecoll: Likewise.
6971         * modules/unicase/u8-casefold: Likewise.
6972         * modules/unicase/u8-casexfrm: Likewise.
6973         * modules/unicase/u8-ct-casefold: Likewise.
6974         * modules/unicase/u8-ct-tolower: Likewise.
6975         * modules/unicase/u8-ct-totitle: Likewise.
6976         * modules/unicase/u8-ct-toupper: Likewise.
6977         * modules/unicase/u8-is-cased: Likewise.
6978         * modules/unicase/u8-is-casefolded: Likewise.
6979         * modules/unicase/u8-is-lowercase: Likewise.
6980         * modules/unicase/u8-is-titlecase: Likewise.
6981         * modules/unicase/u8-is-uppercase: Likewise.
6982         * modules/unicase/u8-prefix-context: Likewise.
6983         * modules/unicase/u8-suffix-context: Likewise.
6984         * modules/unicase/u8-tolower: Likewise.
6985         * modules/unicase/u8-totitle: Likewise.
6986         * modules/unicase/u8-toupper: Likewise.
6987         * modules/unicase/u16-casecmp: Likewise.
6988         * modules/unicase/u16-casecoll: Likewise.
6989         * modules/unicase/u16-casefold: Likewise.
6990         * modules/unicase/u16-casexfrm: Likewise.
6991         * modules/unicase/u16-ct-casefold: Likewise.
6992         * modules/unicase/u16-ct-tolower: Likewise.
6993         * modules/unicase/u16-ct-totitle: Likewise.
6994         * modules/unicase/u16-ct-toupper: Likewise.
6995         * modules/unicase/u16-is-cased: Likewise.
6996         * modules/unicase/u16-is-casefolded: Likewise.
6997         * modules/unicase/u16-is-lowercase: Likewise.
6998         * modules/unicase/u16-is-titlecase: Likewise.
6999         * modules/unicase/u16-is-uppercase: Likewise.
7000         * modules/unicase/u16-prefix-context: Likewise.
7001         * modules/unicase/u16-suffix-context: Likewise.
7002         * modules/unicase/u16-tolower: Likewise.
7003         * modules/unicase/u16-totitle: Likewise.
7004         * modules/unicase/u16-toupper: Likewise.
7005         * modules/unicase/u32-casecmp: Likewise.
7006         * modules/unicase/u32-casecoll: Likewise.
7007         * modules/unicase/u32-casefold: Likewise.
7008         * modules/unicase/u32-casexfrm: Likewise.
7009         * modules/unicase/u32-ct-casefold: Likewise.
7010         * modules/unicase/u32-ct-tolower: Likewise.
7011         * modules/unicase/u32-ct-totitle: Likewise.
7012         * modules/unicase/u32-ct-toupper: Likewise.
7013         * modules/unicase/u32-is-cased: Likewise.
7014         * modules/unicase/u32-is-casefolded: Likewise.
7015         * modules/unicase/u32-is-lowercase: Likewise.
7016         * modules/unicase/u32-is-titlecase: Likewise.
7017         * modules/unicase/u32-is-uppercase: Likewise.
7018         * modules/unicase/u32-prefix-context: Likewise.
7019         * modules/unicase/u32-suffix-context: Likewise.
7020         * modules/unicase/u32-tolower: Likewise.
7021         * modules/unicase/u32-totitle: Likewise.
7022         * modules/unicase/u32-toupper: Likewise.
7023         * modules/unicase/ulc-casecmp: Likewise.
7024         * modules/unicase/ulc-casecoll: Likewise.
7025         * modules/unicase/ulc-casexfrm: Likewise.
7026         * modules/uniconv/u8-conv-from-enc: Likewise.
7027         * modules/uniconv/u8-conv-to-enc: Likewise.
7028         * modules/uniconv/u8-strconv-from-enc: Likewise.
7029         * modules/uniconv/u8-strconv-from-locale: Likewise.
7030         * modules/uniconv/u8-strconv-to-enc: Likewise.
7031         * modules/uniconv/u8-strconv-to-locale: Likewise.
7032         * modules/uniconv/u16-conv-from-enc: Likewise.
7033         * modules/uniconv/u16-conv-to-enc: Likewise.
7034         * modules/uniconv/u16-strconv-from-enc: Likewise.
7035         * modules/uniconv/u16-strconv-from-locale: Likewise.
7036         * modules/uniconv/u16-strconv-to-enc: Likewise.
7037         * modules/uniconv/u16-strconv-to-locale: Likewise.
7038         * modules/uniconv/u32-conv-from-enc: Likewise.
7039         * modules/uniconv/u32-conv-to-enc: Likewise.
7040         * modules/uniconv/u32-strconv-from-enc: Likewise.
7041         * modules/uniconv/u32-strconv-from-locale: Likewise.
7042         * modules/uniconv/u32-strconv-to-enc: Likewise.
7043         * modules/uniconv/u32-strconv-to-locale: Likewise.
7044         * modules/unictype/bidicategory-byname: Likewise.
7045         * modules/unictype/bidicategory-name: Likewise.
7046         * modules/unictype/bidicategory-of: Likewise.
7047         * modules/unictype/bidicategory-test: Likewise.
7048         * modules/unictype/block-list: Likewise.
7049         * modules/unictype/block-test: Likewise.
7050         * modules/unictype/category-C: Likewise.
7051         * modules/unictype/category-Cc: Likewise.
7052         * modules/unictype/category-Cf: Likewise.
7053         * modules/unictype/category-Cn: Likewise.
7054         * modules/unictype/category-Co: Likewise.
7055         * modules/unictype/category-Cs: Likewise.
7056         * modules/unictype/category-L: Likewise.
7057         * modules/unictype/category-Ll: Likewise.
7058         * modules/unictype/category-Lm: Likewise.
7059         * modules/unictype/category-Lo: Likewise.
7060         * modules/unictype/category-Lt: Likewise.
7061         * modules/unictype/category-Lu: Likewise.
7062         * modules/unictype/category-M: Likewise.
7063         * modules/unictype/category-Mc: Likewise.
7064         * modules/unictype/category-Me: Likewise.
7065         * modules/unictype/category-Mn: Likewise.
7066         * modules/unictype/category-N: Likewise.
7067         * modules/unictype/category-Nd: Likewise.
7068         * modules/unictype/category-Nl: Likewise.
7069         * modules/unictype/category-No: Likewise.
7070         * modules/unictype/category-P: Likewise.
7071         * modules/unictype/category-Pc: Likewise.
7072         * modules/unictype/category-Pd: Likewise.
7073         * modules/unictype/category-Pe: Likewise.
7074         * modules/unictype/category-Pf: Likewise.
7075         * modules/unictype/category-Pi: Likewise.
7076         * modules/unictype/category-Po: Likewise.
7077         * modules/unictype/category-Ps: Likewise.
7078         * modules/unictype/category-S: Likewise.
7079         * modules/unictype/category-Sc: Likewise.
7080         * modules/unictype/category-Sk: Likewise.
7081         * modules/unictype/category-Sm: Likewise.
7082         * modules/unictype/category-So: Likewise.
7083         * modules/unictype/category-Z: Likewise.
7084         * modules/unictype/category-Zl: Likewise.
7085         * modules/unictype/category-Zp: Likewise.
7086         * modules/unictype/category-Zs: Likewise.
7087         * modules/unictype/category-and: Likewise.
7088         * modules/unictype/category-and-not: Likewise.
7089         * modules/unictype/category-byname: Likewise.
7090         * modules/unictype/category-name: Likewise.
7091         * modules/unictype/category-none: Likewise.
7092         * modules/unictype/category-of: Likewise.
7093         * modules/unictype/category-or: Likewise.
7094         * modules/unictype/category-test: Likewise.
7095         * modules/unictype/combining-class: Likewise.
7096         * modules/unictype/ctype-alnum: Likewise.
7097         * modules/unictype/ctype-alpha: Likewise.
7098         * modules/unictype/ctype-blank: Likewise.
7099         * modules/unictype/ctype-cntrl: Likewise.
7100         * modules/unictype/ctype-digit: Likewise.
7101         * modules/unictype/ctype-graph: Likewise.
7102         * modules/unictype/ctype-lower: Likewise.
7103         * modules/unictype/ctype-print: Likewise.
7104         * modules/unictype/ctype-punct: Likewise.
7105         * modules/unictype/ctype-space: Likewise.
7106         * modules/unictype/ctype-upper: Likewise.
7107         * modules/unictype/ctype-xdigit: Likewise.
7108         * modules/unictype/decimal-digit: Likewise.
7109         * modules/unictype/digit: Likewise.
7110         * modules/unictype/mirror: Likewise.
7111         * modules/unictype/numeric: Likewise.
7112         * modules/unictype/property-alphabetic: Likewise.
7113         * modules/unictype/property-ascii-hex-digit: Likewise.
7114         * modules/unictype/property-bidi-arabic-digit: Likewise.
7115         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
7116         * modules/unictype/property-bidi-block-separator: Likewise.
7117         * modules/unictype/property-bidi-boundary-neutral: Likewise.
7118         * modules/unictype/property-bidi-common-separator: Likewise.
7119         * modules/unictype/property-bidi-control: Likewise.
7120         * modules/unictype/property-bidi-embedding-or-override: Likewise.
7121         * modules/unictype/property-bidi-eur-num-separator: Likewise.
7122         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
7123         * modules/unictype/property-bidi-european-digit: Likewise.
7124         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
7125         * modules/unictype/property-bidi-left-to-right: Likewise.
7126         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
7127         * modules/unictype/property-bidi-other-neutral: Likewise.
7128         * modules/unictype/property-bidi-pdf: Likewise.
7129         * modules/unictype/property-bidi-segment-separator: Likewise.
7130         * modules/unictype/property-bidi-whitespace: Likewise.
7131         * modules/unictype/property-byname: Likewise.
7132         * modules/unictype/property-combining: Likewise.
7133         * modules/unictype/property-composite: Likewise.
7134         * modules/unictype/property-currency-symbol: Likewise.
7135         * modules/unictype/property-dash: Likewise.
7136         * modules/unictype/property-decimal-digit: Likewise.
7137         * modules/unictype/property-default-ignorable-code-point: Likewise.
7138         * modules/unictype/property-deprecated: Likewise.
7139         * modules/unictype/property-diacritic: Likewise.
7140         * modules/unictype/property-extender: Likewise.
7141         * modules/unictype/property-format-control: Likewise.
7142         * modules/unictype/property-grapheme-base: Likewise.
7143         * modules/unictype/property-grapheme-extend: Likewise.
7144         * modules/unictype/property-grapheme-link: Likewise.
7145         * modules/unictype/property-hex-digit: Likewise.
7146         * modules/unictype/property-hyphen: Likewise.
7147         * modules/unictype/property-id-continue: Likewise.
7148         * modules/unictype/property-id-start: Likewise.
7149         * modules/unictype/property-ideographic: Likewise.
7150         * modules/unictype/property-ids-binary-operator: Likewise.
7151         * modules/unictype/property-ids-trinary-operator: Likewise.
7152         * modules/unictype/property-ignorable-control: Likewise.
7153         * modules/unictype/property-iso-control: Likewise.
7154         * modules/unictype/property-join-control: Likewise.
7155         * modules/unictype/property-left-of-pair: Likewise.
7156         * modules/unictype/property-line-separator: Likewise.
7157         * modules/unictype/property-logical-order-exception: Likewise.
7158         * modules/unictype/property-lowercase: Likewise.
7159         * modules/unictype/property-math: Likewise.
7160         * modules/unictype/property-non-break: Likewise.
7161         * modules/unictype/property-not-a-character: Likewise.
7162         * modules/unictype/property-numeric: Likewise.
7163         * modules/unictype/property-other-alphabetic: Likewise.
7164         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
7165         * modules/unictype/property-other-grapheme-extend: Likewise.
7166         * modules/unictype/property-other-id-continue: Likewise.
7167         * modules/unictype/property-other-id-start: Likewise.
7168         * modules/unictype/property-other-lowercase: Likewise.
7169         * modules/unictype/property-other-math: Likewise.
7170         * modules/unictype/property-other-uppercase: Likewise.
7171         * modules/unictype/property-paired-punctuation: Likewise.
7172         * modules/unictype/property-paragraph-separator: Likewise.
7173         * modules/unictype/property-pattern-syntax: Likewise.
7174         * modules/unictype/property-pattern-white-space: Likewise.
7175         * modules/unictype/property-private-use: Likewise.
7176         * modules/unictype/property-punctuation: Likewise.
7177         * modules/unictype/property-quotation-mark: Likewise.
7178         * modules/unictype/property-radical: Likewise.
7179         * modules/unictype/property-sentence-terminal: Likewise.
7180         * modules/unictype/property-soft-dotted: Likewise.
7181         * modules/unictype/property-space: Likewise.
7182         * modules/unictype/property-terminal-punctuation: Likewise.
7183         * modules/unictype/property-test: Likewise.
7184         * modules/unictype/property-titlecase: Likewise.
7185         * modules/unictype/property-unassigned-code-value: Likewise.
7186         * modules/unictype/property-unified-ideograph: Likewise.
7187         * modules/unictype/property-uppercase: Likewise.
7188         * modules/unictype/property-variation-selector: Likewise.
7189         * modules/unictype/property-white-space: Likewise.
7190         * modules/unictype/property-xid-continue: Likewise.
7191         * modules/unictype/property-xid-start: Likewise.
7192         * modules/unictype/property-zero-width: Likewise.
7193         * modules/unictype/scripts: Likewise.
7194         * modules/unictype/syntax-c-ident: Likewise.
7195         * modules/unictype/syntax-c-whitespace: Likewise.
7196         * modules/unictype/syntax-java-ident: Likewise.
7197         * modules/unictype/syntax-java-whitespace: Likewise.
7198         * modules/unilbrk/u8-possible-linebreaks: Likewise.
7199         * modules/unilbrk/u8-width-linebreaks: Likewise.
7200         * modules/unilbrk/u16-possible-linebreaks: Likewise.
7201         * modules/unilbrk/u16-width-linebreaks: Likewise.
7202         * modules/unilbrk/u32-possible-linebreaks: Likewise.
7203         * modules/unilbrk/u32-width-linebreaks: Likewise.
7204         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
7205         * modules/unilbrk/ulc-width-linebreaks: Likewise.
7206         * modules/uniname/uniname: Likewise.
7207         * modules/uninorm/canonical-decomposition: Likewise.
7208         * modules/uninorm/composition: Likewise.
7209         * modules/uninorm/decomposing-form: Likewise.
7210         * modules/uninorm/decomposition: Likewise.
7211         * modules/uninorm/filter: Likewise.
7212         * modules/uninorm/nfc: Likewise.
7213         * modules/uninorm/nfd: Likewise.
7214         * modules/uninorm/nfkc: Likewise.
7215         * modules/uninorm/nfkd: Likewise.
7216         * modules/uninorm/u8-normalize: Likewise.
7217         * modules/uninorm/u8-normcmp: Likewise.
7218         * modules/uninorm/u8-normcoll: Likewise.
7219         * modules/uninorm/u8-normxfrm: Likewise.
7220         * modules/uninorm/u16-normalize: Likewise.
7221         * modules/uninorm/u16-normcmp: Likewise.
7222         * modules/uninorm/u16-normcoll: Likewise.
7223         * modules/uninorm/u16-normxfrm: Likewise.
7224         * modules/uninorm/u32-normalize: Likewise.
7225         * modules/uninorm/u32-normcmp: Likewise.
7226         * modules/uninorm/u32-normcoll: Likewise.
7227         * modules/uninorm/u32-normxfrm: Likewise.
7228         * modules/unistdio/u8-asnprintf: Likewise.
7229         * modules/unistdio/u8-asprintf: Likewise.
7230         * modules/unistdio/u8-snprintf: Likewise.
7231         * modules/unistdio/u8-sprintf: Likewise.
7232         * modules/unistdio/u8-u8-asnprintf: Likewise.
7233         * modules/unistdio/u8-u8-asprintf: Likewise.
7234         * modules/unistdio/u8-u8-snprintf: Likewise.
7235         * modules/unistdio/u8-u8-sprintf: Likewise.
7236         * modules/unistdio/u8-u8-vasnprintf: Likewise.
7237         * modules/unistdio/u8-u8-vasprintf: Likewise.
7238         * modules/unistdio/u8-u8-vsnprintf: Likewise.
7239         * modules/unistdio/u8-u8-vsprintf: Likewise.
7240         * modules/unistdio/u8-vasnprintf: Likewise.
7241         * modules/unistdio/u8-vasprintf: Likewise.
7242         * modules/unistdio/u8-vsnprintf: Likewise.
7243         * modules/unistdio/u8-vsprintf: Likewise.
7244         * modules/unistdio/u16-asnprintf: Likewise.
7245         * modules/unistdio/u16-asprintf: Likewise.
7246         * modules/unistdio/u16-snprintf: Likewise.
7247         * modules/unistdio/u16-sprintf: Likewise.
7248         * modules/unistdio/u16-u16-asnprintf: Likewise.
7249         * modules/unistdio/u16-u16-asprintf: Likewise.
7250         * modules/unistdio/u16-u16-snprintf: Likewise.
7251         * modules/unistdio/u16-u16-sprintf: Likewise.
7252         * modules/unistdio/u16-u16-vasnprintf: Likewise.
7253         * modules/unistdio/u16-u16-vasprintf: Likewise.
7254         * modules/unistdio/u16-u16-vsnprintf: Likewise.
7255         * modules/unistdio/u16-u16-vsprintf: Likewise.
7256         * modules/unistdio/u16-vasnprintf: Likewise.
7257         * modules/unistdio/u16-vasprintf: Likewise.
7258         * modules/unistdio/u16-vsnprintf: Likewise.
7259         * modules/unistdio/u16-vsprintf: Likewise.
7260         * modules/unistdio/u32-asnprintf: Likewise.
7261         * modules/unistdio/u32-asprintf: Likewise.
7262         * modules/unistdio/u32-snprintf: Likewise.
7263         * modules/unistdio/u32-sprintf: Likewise.
7264         * modules/unistdio/u32-u32-asnprintf: Likewise.
7265         * modules/unistdio/u32-u32-asprintf: Likewise.
7266         * modules/unistdio/u32-u32-snprintf: Likewise.
7267         * modules/unistdio/u32-u32-sprintf: Likewise.
7268         * modules/unistdio/u32-u32-vasnprintf: Likewise.
7269         * modules/unistdio/u32-u32-vasprintf: Likewise.
7270         * modules/unistdio/u32-u32-vsnprintf: Likewise.
7271         * modules/unistdio/u32-u32-vsprintf: Likewise.
7272         * modules/unistdio/u32-vasnprintf: Likewise.
7273         * modules/unistdio/u32-vasprintf: Likewise.
7274         * modules/unistdio/u32-vsnprintf: Likewise.
7275         * modules/unistdio/u32-vsprintf: Likewise.
7276         * modules/unistdio/ulc-asnprintf: Likewise.
7277         * modules/unistdio/ulc-asprintf: Likewise.
7278         * modules/unistdio/ulc-fprintf: Likewise.
7279         * modules/unistdio/ulc-snprintf: Likewise.
7280         * modules/unistdio/ulc-sprintf: Likewise.
7281         * modules/unistdio/ulc-vasnprintf: Likewise.
7282         * modules/unistdio/ulc-vasprintf: Likewise.
7283         * modules/unistdio/ulc-vfprintf: Likewise.
7284         * modules/unistdio/ulc-vsnprintf: Likewise.
7285         * modules/unistdio/ulc-vsprintf: Likewise.
7286         * modules/unistr/u8-check: Likewise.
7287         * modules/unistr/u8-chr: Likewise.
7288         * modules/unistr/u8-cmp: Likewise.
7289         * modules/unistr/u8-cmp2: Likewise.
7290         * modules/unistr/u8-cpy: Likewise.
7291         * modules/unistr/u8-cpy-alloc: Likewise.
7292         * modules/unistr/u8-endswith: Likewise.
7293         * modules/unistr/u8-mblen: Likewise.
7294         * modules/unistr/u8-mbsnlen: Likewise.
7295         * modules/unistr/u8-mbtouc: Likewise.
7296         * modules/unistr/u8-mbtouc-unsafe: Likewise.
7297         * modules/unistr/u8-mbtoucr: Likewise.
7298         * modules/unistr/u8-move: Likewise.
7299         * modules/unistr/u8-next: Likewise.
7300         * modules/unistr/u8-prev: Likewise.
7301         * modules/unistr/u8-set: Likewise.
7302         * modules/unistr/u8-startswith: Likewise.
7303         * modules/unistr/u8-stpcpy: Likewise.
7304         * modules/unistr/u8-stpncpy: Likewise.
7305         * modules/unistr/u8-strcat: Likewise.
7306         * modules/unistr/u8-strchr: Likewise.
7307         * modules/unistr/u8-strcmp: Likewise.
7308         * modules/unistr/u8-strcoll: Likewise.
7309         * modules/unistr/u8-strcpy: Likewise.
7310         * modules/unistr/u8-strcspn: Likewise.
7311         * modules/unistr/u8-strdup: Likewise.
7312         * modules/unistr/u8-strlen: Likewise.
7313         * modules/unistr/u8-strmblen: Likewise.
7314         * modules/unistr/u8-strmbtouc: Likewise.
7315         * modules/unistr/u8-strncat: Likewise.
7316         * modules/unistr/u8-strncmp: Likewise.
7317         * modules/unistr/u8-strncpy: Likewise.
7318         * modules/unistr/u8-strnlen: Likewise.
7319         * modules/unistr/u8-strpbrk: Likewise.
7320         * modules/unistr/u8-strrchr: Likewise.
7321         * modules/unistr/u8-strspn: Likewise.
7322         * modules/unistr/u8-strstr: Likewise.
7323         * modules/unistr/u8-strtok: Likewise.
7324         * modules/unistr/u8-to-u16: Likewise.
7325         * modules/unistr/u8-to-u32: Likewise.
7326         * modules/unistr/u8-uctomb: Likewise.
7327         * modules/unistr/u16-check: Likewise.
7328         * modules/unistr/u16-chr: Likewise.
7329         * modules/unistr/u16-cmp: Likewise.
7330         * modules/unistr/u16-cmp2: Likewise.
7331         * modules/unistr/u16-cpy: Likewise.
7332         * modules/unistr/u16-cpy-alloc: Likewise.
7333         * modules/unistr/u16-endswith: Likewise.
7334         * modules/unistr/u16-mblen: Likewise.
7335         * modules/unistr/u16-mbsnlen: Likewise.
7336         * modules/unistr/u16-mbtouc: Likewise.
7337         * modules/unistr/u16-mbtouc-unsafe: Likewise.
7338         * modules/unistr/u16-mbtoucr: Likewise.
7339         * modules/unistr/u16-move: Likewise.
7340         * modules/unistr/u16-next: Likewise.
7341         * modules/unistr/u16-prev: Likewise.
7342         * modules/unistr/u16-set: Likewise.
7343         * modules/unistr/u16-startswith: Likewise.
7344         * modules/unistr/u16-stpcpy: Likewise.
7345         * modules/unistr/u16-stpncpy: Likewise.
7346         * modules/unistr/u16-strcat: Likewise.
7347         * modules/unistr/u16-strchr: Likewise.
7348         * modules/unistr/u16-strcmp: Likewise.
7349         * modules/unistr/u16-strcoll: Likewise.
7350         * modules/unistr/u16-strcpy: Likewise.
7351         * modules/unistr/u16-strcspn: Likewise.
7352         * modules/unistr/u16-strdup: Likewise.
7353         * modules/unistr/u16-strlen: Likewise.
7354         * modules/unistr/u16-strmblen: Likewise.
7355         * modules/unistr/u16-strmbtouc: Likewise.
7356         * modules/unistr/u16-strncat: Likewise.
7357         * modules/unistr/u16-strncmp: Likewise.
7358         * modules/unistr/u16-strncpy: Likewise.
7359         * modules/unistr/u16-strnlen: Likewise.
7360         * modules/unistr/u16-strpbrk: Likewise.
7361         * modules/unistr/u16-strrchr: Likewise.
7362         * modules/unistr/u16-strspn: Likewise.
7363         * modules/unistr/u16-strstr: Likewise.
7364         * modules/unistr/u16-strtok: Likewise.
7365         * modules/unistr/u16-to-u32: Likewise.
7366         * modules/unistr/u16-to-u8: Likewise.
7367         * modules/unistr/u16-uctomb: Likewise.
7368         * modules/unistr/u32-check: Likewise.
7369         * modules/unistr/u32-chr: Likewise.
7370         * modules/unistr/u32-cmp: Likewise.
7371         * modules/unistr/u32-cmp2: Likewise.
7372         * modules/unistr/u32-cpy: Likewise.
7373         * modules/unistr/u32-cpy-alloc: Likewise.
7374         * modules/unistr/u32-endswith: Likewise.
7375         * modules/unistr/u32-mblen: Likewise.
7376         * modules/unistr/u32-mbsnlen: Likewise.
7377         * modules/unistr/u32-mbtouc: Likewise.
7378         * modules/unistr/u32-mbtouc-unsafe: Likewise.
7379         * modules/unistr/u32-mbtoucr: Likewise.
7380         * modules/unistr/u32-move: Likewise.
7381         * modules/unistr/u32-next: Likewise.
7382         * modules/unistr/u32-prev: Likewise.
7383         * modules/unistr/u32-set: Likewise.
7384         * modules/unistr/u32-startswith: Likewise.
7385         * modules/unistr/u32-stpcpy: Likewise.
7386         * modules/unistr/u32-stpncpy: Likewise.
7387         * modules/unistr/u32-strcat: Likewise.
7388         * modules/unistr/u32-strchr: Likewise.
7389         * modules/unistr/u32-strcmp: Likewise.
7390         * modules/unistr/u32-strcoll: Likewise.
7391         * modules/unistr/u32-strcpy: Likewise.
7392         * modules/unistr/u32-strcspn: Likewise.
7393         * modules/unistr/u32-strdup: Likewise.
7394         * modules/unistr/u32-strlen: Likewise.
7395         * modules/unistr/u32-strmblen: Likewise.
7396         * modules/unistr/u32-strmbtouc: Likewise.
7397         * modules/unistr/u32-strncat: Likewise.
7398         * modules/unistr/u32-strncmp: Likewise.
7399         * modules/unistr/u32-strncpy: Likewise.
7400         * modules/unistr/u32-strnlen: Likewise.
7401         * modules/unistr/u32-strpbrk: Likewise.
7402         * modules/unistr/u32-strrchr: Likewise.
7403         * modules/unistr/u32-strspn: Likewise.
7404         * modules/unistr/u32-strstr: Likewise.
7405         * modules/unistr/u32-strtok: Likewise.
7406         * modules/unistr/u32-to-u16: Likewise.
7407         * modules/unistr/u32-to-u8: Likewise.
7408         * modules/unistr/u32-uctomb: Likewise.
7409         * modules/uniwbrk/u8-wordbreaks: Likewise.
7410         * modules/uniwbrk/u16-wordbreaks: Likewise.
7411         * modules/uniwbrk/u32-wordbreaks: Likewise.
7412         * modules/uniwbrk/ulc-wordbreaks: Likewise.
7413         * modules/uniwbrk/wordbreak-property: Likewise.
7414         * modules/uniwidth/u8-strwidth: Likewise.
7415         * modules/uniwidth/u8-width: Likewise.
7416         * modules/uniwidth/u16-strwidth: Likewise.
7417         * modules/uniwidth/u16-width: Likewise.
7418         * modules/uniwidth/u32-strwidth: Likewise.
7419         * modules/uniwidth/u32-width: Likewise.
7420         * modules/uniwidth/width: Likewise.
7421         * modules/unicase/cased-tests (Makefile.am): Link all test programs
7422         with $(LIBUNISTRING).
7423         * modules/unicase/ignorable-tests: Likewise.
7424         * modules/unicase/locale-language-tests: Likewise.
7425         * modules/unicase/tolower-tests: Likewise.
7426         * modules/unicase/totitle-tests: Likewise.
7427         * modules/unicase/toupper-tests: Likewise.
7428         * modules/unicase/u8-casecmp-tests: Likewise.
7429         * modules/unicase/u8-casecoll-tests: Likewise.
7430         * modules/unicase/u8-casefold-tests: Likewise.
7431         * modules/unicase/u8-is-cased-tests: Likewise.
7432         * modules/unicase/u8-is-casefolded-tests: Likewise.
7433         * modules/unicase/u8-is-lowercase-tests: Likewise.
7434         * modules/unicase/u8-is-titlecase-tests: Likewise.
7435         * modules/unicase/u8-is-uppercase-tests: Likewise.
7436         * modules/unicase/u8-tolower-tests: Likewise.
7437         * modules/unicase/u8-totitle-tests: Likewise.
7438         * modules/unicase/u8-toupper-tests: Likewise.
7439         * modules/unicase/u16-casecmp-tests: Likewise.
7440         * modules/unicase/u16-casecoll-tests: Likewise.
7441         * modules/unicase/u16-casefold-tests: Likewise.
7442         * modules/unicase/u16-is-cased-tests: Likewise.
7443         * modules/unicase/u16-is-casefolded-tests: Likewise.
7444         * modules/unicase/u16-is-lowercase-tests: Likewise.
7445         * modules/unicase/u16-is-titlecase-tests: Likewise.
7446         * modules/unicase/u16-is-uppercase-tests: Likewise.
7447         * modules/unicase/u16-tolower-tests: Likewise.
7448         * modules/unicase/u16-totitle-tests: Likewise.
7449         * modules/unicase/u16-toupper-tests: Likewise.
7450         * modules/unicase/u32-casecmp-tests: Likewise.
7451         * modules/unicase/u32-casecoll-tests: Likewise.
7452         * modules/unicase/u32-casefold-tests: Likewise.
7453         * modules/unicase/u32-is-cased-tests: Likewise.
7454         * modules/unicase/u32-is-casefolded-tests: Likewise.
7455         * modules/unicase/u32-is-lowercase-tests: Likewise.
7456         * modules/unicase/u32-is-titlecase-tests: Likewise.
7457         * modules/unicase/u32-is-uppercase-tests: Likewise.
7458         * modules/unicase/u32-tolower-tests: Likewise.
7459         * modules/unicase/u32-totitle-tests: Likewise.
7460         * modules/unicase/u32-toupper-tests: Likewise.
7461         * modules/unicase/ulc-casecmp-tests: Likewise.
7462         * modules/unicase/ulc-casecoll-tests: Likewise.
7463         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
7464         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
7465         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
7466         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
7467         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
7468         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
7469         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
7470         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
7471         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
7472         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
7473         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
7474         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
7475         * modules/unictype/bidicategory-byname-tests: Likewise.
7476         * modules/unictype/bidicategory-name-tests: Likewise.
7477         * modules/unictype/bidicategory-of-tests: Likewise.
7478         * modules/unictype/bidicategory-test-tests: Likewise.
7479         * modules/unictype/block-list-tests: Likewise.
7480         * modules/unictype/block-of-tests: Likewise.
7481         * modules/unictype/block-test-tests: Likewise.
7482         * modules/unictype/category-C-tests: Likewise.
7483         * modules/unictype/category-Cc-tests: Likewise.
7484         * modules/unictype/category-Cf-tests: Likewise.
7485         * modules/unictype/category-Cn-tests: Likewise.
7486         * modules/unictype/category-Co-tests: Likewise.
7487         * modules/unictype/category-Cs-tests: Likewise.
7488         * modules/unictype/category-L-tests: Likewise.
7489         * modules/unictype/category-Ll-tests: Likewise.
7490         * modules/unictype/category-Lm-tests: Likewise.
7491         * modules/unictype/category-Lo-tests: Likewise.
7492         * modules/unictype/category-Lt-tests: Likewise.
7493         * modules/unictype/category-Lu-tests: Likewise.
7494         * modules/unictype/category-M-tests: Likewise.
7495         * modules/unictype/category-Mc-tests: Likewise.
7496         * modules/unictype/category-Me-tests: Likewise.
7497         * modules/unictype/category-Mn-tests: Likewise.
7498         * modules/unictype/category-N-tests: Likewise.
7499         * modules/unictype/category-Nd-tests: Likewise.
7500         * modules/unictype/category-Nl-tests: Likewise.
7501         * modules/unictype/category-No-tests: Likewise.
7502         * modules/unictype/category-P-tests: Likewise.
7503         * modules/unictype/category-Pc-tests: Likewise.
7504         * modules/unictype/category-Pd-tests: Likewise.
7505         * modules/unictype/category-Pe-tests: Likewise.
7506         * modules/unictype/category-Pf-tests: Likewise.
7507         * modules/unictype/category-Pi-tests: Likewise.
7508         * modules/unictype/category-Po-tests: Likewise.
7509         * modules/unictype/category-Ps-tests: Likewise.
7510         * modules/unictype/category-S-tests: Likewise.
7511         * modules/unictype/category-Sc-tests: Likewise.
7512         * modules/unictype/category-Sk-tests: Likewise.
7513         * modules/unictype/category-Sm-tests: Likewise.
7514         * modules/unictype/category-So-tests: Likewise.
7515         * modules/unictype/category-Z-tests: Likewise.
7516         * modules/unictype/category-Zl-tests: Likewise.
7517         * modules/unictype/category-Zp-tests: Likewise.
7518         * modules/unictype/category-Zs-tests: Likewise.
7519         * modules/unictype/category-and-not-tests: Likewise.
7520         * modules/unictype/category-and-tests: Likewise.
7521         * modules/unictype/category-byname-tests: Likewise.
7522         * modules/unictype/category-name-tests: Likewise.
7523         * modules/unictype/category-none-tests: Likewise.
7524         * modules/unictype/category-of-tests: Likewise.
7525         * modules/unictype/category-or-tests: Likewise.
7526         * modules/unictype/category-test-withtable-tests: Likewise.
7527         * modules/unictype/combining-class-tests: Likewise.
7528         * modules/unictype/ctype-alnum-tests: Likewise.
7529         * modules/unictype/ctype-alpha-tests: Likewise.
7530         * modules/unictype/ctype-blank-tests: Likewise.
7531         * modules/unictype/ctype-cntrl-tests: Likewise.
7532         * modules/unictype/ctype-digit-tests: Likewise.
7533         * modules/unictype/ctype-graph-tests: Likewise.
7534         * modules/unictype/ctype-lower-tests: Likewise.
7535         * modules/unictype/ctype-print-tests: Likewise.
7536         * modules/unictype/ctype-punct-tests: Likewise.
7537         * modules/unictype/ctype-space-tests: Likewise.
7538         * modules/unictype/ctype-upper-tests: Likewise.
7539         * modules/unictype/ctype-xdigit-tests: Likewise.
7540         * modules/unictype/decimal-digit-tests: Likewise.
7541         * modules/unictype/digit-tests: Likewise.
7542         * modules/unictype/mirror-tests: Likewise.
7543         * modules/unictype/numeric-tests: Likewise.
7544         * modules/unictype/property-alphabetic-tests: Likewise.
7545         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
7546         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
7547         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
7548         * modules/unictype/property-bidi-block-separator-tests: Likewise.
7549         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
7550         * modules/unictype/property-bidi-common-separator-tests: Likewise.
7551         * modules/unictype/property-bidi-control-tests: Likewise.
7552         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
7553         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
7554         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
7555         * modules/unictype/property-bidi-european-digit-tests: Likewise.
7556         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
7557         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
7558         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
7559         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
7560         * modules/unictype/property-bidi-pdf-tests: Likewise.
7561         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
7562         * modules/unictype/property-bidi-whitespace-tests: Likewise.
7563         * modules/unictype/property-byname-tests: Likewise.
7564         * modules/unictype/property-combining-tests: Likewise.
7565         * modules/unictype/property-composite-tests: Likewise.
7566         * modules/unictype/property-currency-symbol-tests: Likewise.
7567         * modules/unictype/property-dash-tests: Likewise.
7568         * modules/unictype/property-decimal-digit-tests: Likewise.
7569         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
7570         * modules/unictype/property-deprecated-tests: Likewise.
7571         * modules/unictype/property-diacritic-tests: Likewise.
7572         * modules/unictype/property-extender-tests: Likewise.
7573         * modules/unictype/property-format-control-tests: Likewise.
7574         * modules/unictype/property-grapheme-base-tests: Likewise.
7575         * modules/unictype/property-grapheme-extend-tests: Likewise.
7576         * modules/unictype/property-grapheme-link-tests: Likewise.
7577         * modules/unictype/property-hex-digit-tests: Likewise.
7578         * modules/unictype/property-hyphen-tests: Likewise.
7579         * modules/unictype/property-id-continue-tests: Likewise.
7580         * modules/unictype/property-id-start-tests: Likewise.
7581         * modules/unictype/property-ideographic-tests: Likewise.
7582         * modules/unictype/property-ids-binary-operator-tests: Likewise.
7583         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
7584         * modules/unictype/property-ignorable-control-tests: Likewise.
7585         * modules/unictype/property-iso-control-tests: Likewise.
7586         * modules/unictype/property-join-control-tests: Likewise.
7587         * modules/unictype/property-left-of-pair-tests: Likewise.
7588         * modules/unictype/property-line-separator-tests: Likewise.
7589         * modules/unictype/property-logical-order-exception-tests: Likewise.
7590         * modules/unictype/property-lowercase-tests: Likewise.
7591         * modules/unictype/property-math-tests: Likewise.
7592         * modules/unictype/property-non-break-tests: Likewise.
7593         * modules/unictype/property-not-a-character-tests: Likewise.
7594         * modules/unictype/property-numeric-tests: Likewise.
7595         * modules/unictype/property-other-alphabetic-tests: Likewise.
7596         * modules/unictype/property-other-default-ignorable-code-point-tests:
7597         Likewise.
7598         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
7599         * modules/unictype/property-other-id-continue-tests: Likewise.
7600         * modules/unictype/property-other-id-start-tests: Likewise.
7601         * modules/unictype/property-other-lowercase-tests: Likewise.
7602         * modules/unictype/property-other-math-tests: Likewise.
7603         * modules/unictype/property-other-uppercase-tests: Likewise.
7604         * modules/unictype/property-paired-punctuation-tests: Likewise.
7605         * modules/unictype/property-paragraph-separator-tests: Likewise.
7606         * modules/unictype/property-pattern-syntax-tests: Likewise.
7607         * modules/unictype/property-pattern-white-space-tests: Likewise.
7608         * modules/unictype/property-private-use-tests: Likewise.
7609         * modules/unictype/property-punctuation-tests: Likewise.
7610         * modules/unictype/property-quotation-mark-tests: Likewise.
7611         * modules/unictype/property-radical-tests: Likewise.
7612         * modules/unictype/property-sentence-terminal-tests: Likewise.
7613         * modules/unictype/property-soft-dotted-tests: Likewise.
7614         * modules/unictype/property-space-tests: Likewise.
7615         * modules/unictype/property-terminal-punctuation-tests: Likewise.
7616         * modules/unictype/property-test-tests: Likewise.
7617         * modules/unictype/property-titlecase-tests: Likewise.
7618         * modules/unictype/property-unassigned-code-value-tests: Likewise.
7619         * modules/unictype/property-unified-ideograph-tests: Likewise.
7620         * modules/unictype/property-uppercase-tests: Likewise.
7621         * modules/unictype/property-variation-selector-tests: Likewise.
7622         * modules/unictype/property-white-space-tests: Likewise.
7623         * modules/unictype/property-xid-continue-tests: Likewise.
7624         * modules/unictype/property-xid-start-tests: Likewise.
7625         * modules/unictype/property-zero-width-tests: Likewise.
7626         * modules/unictype/scripts-tests: Likewise.
7627         * modules/unictype/syntax-c-ident-tests: Likewise.
7628         * modules/unictype/syntax-c-whitespace-tests: Likewise.
7629         * modules/unictype/syntax-java-ident-tests: Likewise.
7630         * modules/unictype/syntax-java-whitespace-tests: Likewise.
7631         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
7632         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
7633         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
7634         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
7635         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
7636         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
7637         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
7638         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
7639         * modules/uniname/uniname-tests: Likewise.
7640         * modules/uninorm/canonical-decomposition-tests: Likewise.
7641         * modules/uninorm/compat-decomposition-tests: Likewise.
7642         * modules/uninorm/composition-tests: Likewise.
7643         * modules/uninorm/decomposing-form-tests: Likewise.
7644         * modules/uninorm/decomposition-tests: Likewise.
7645         * modules/uninorm/filter-tests: Likewise.
7646         * modules/uninorm/nfc-tests: Likewise.
7647         * modules/uninorm/nfd-tests: Likewise.
7648         * modules/uninorm/nfkc-tests: Likewise.
7649         * modules/uninorm/nfkd-tests: Likewise.
7650         * modules/uninorm/u8-normcmp-tests: Likewise.
7651         * modules/uninorm/u8-normcoll-tests: Likewise.
7652         * modules/uninorm/u16-normcmp-tests: Likewise.
7653         * modules/uninorm/u16-normcoll-tests: Likewise.
7654         * modules/uninorm/u32-normcmp-tests: Likewise.
7655         * modules/uninorm/u32-normcoll-tests: Likewise.
7656         * modules/unistdio/u8-asnprintf-tests: Likewise.
7657         * modules/unistdio/u8-vasnprintf-tests: Likewise.
7658         * modules/unistdio/u8-vasprintf-tests: Likewise.
7659         * modules/unistdio/u8-vsnprintf-tests: Likewise.
7660         * modules/unistdio/u8-vsprintf-tests: Likewise.
7661         * modules/unistdio/u16-asnprintf-tests: Likewise.
7662         * modules/unistdio/u16-vasnprintf-tests: Likewise.
7663         * modules/unistdio/u16-vasprintf-tests: Likewise.
7664         * modules/unistdio/u16-vsnprintf-tests: Likewise.
7665         * modules/unistdio/u16-vsprintf-tests: Likewise.
7666         * modules/unistdio/u32-asnprintf-tests: Likewise.
7667         * modules/unistdio/u32-vasnprintf-tests: Likewise.
7668         * modules/unistdio/u32-vasprintf-tests: Likewise.
7669         * modules/unistdio/u32-vsnprintf-tests: Likewise.
7670         * modules/unistdio/u32-vsprintf-tests: Likewise.
7671         * modules/unistdio/ulc-asnprintf-tests: Likewise.
7672         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
7673         * modules/unistdio/ulc-vasprintf-tests: Likewise.
7674         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
7675         * modules/unistdio/ulc-vsprintf-tests: Likewise.
7676         * modules/unistr/u8-check-tests: Likewise.
7677         * modules/unistr/u8-chr-tests: Likewise.
7678         * modules/unistr/u8-cmp-tests: Likewise.
7679         * modules/unistr/u8-cmp2-tests: Likewise.
7680         * modules/unistr/u8-cpy-alloc-tests: Likewise.
7681         * modules/unistr/u8-cpy-tests: Likewise.
7682         * modules/unistr/u8-mblen-tests: Likewise.
7683         * modules/unistr/u8-mbsnlen-tests: Likewise.
7684         * modules/unistr/u8-mbtouc-tests: Likewise.
7685         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
7686         * modules/unistr/u8-mbtoucr-tests: Likewise.
7687         * modules/unistr/u8-move-tests: Likewise.
7688         * modules/unistr/u8-next-tests: Likewise.
7689         * modules/unistr/u8-prev-tests: Likewise.
7690         * modules/unistr/u8-set-tests: Likewise.
7691         * modules/unistr/u8-stpcpy-tests: Likewise.
7692         * modules/unistr/u8-stpncpy-tests: Likewise.
7693         * modules/unistr/u8-strcat-tests: Likewise.
7694         * modules/unistr/u8-strcmp-tests: Likewise.
7695         * modules/unistr/u8-strcoll-tests: Likewise.
7696         * modules/unistr/u8-strcpy-tests: Likewise.
7697         * modules/unistr/u8-strdup-tests: Likewise.
7698         * modules/unistr/u8-strlen-tests: Likewise.
7699         * modules/unistr/u8-strmblen-tests: Likewise.
7700         * modules/unistr/u8-strmbtouc-tests: Likewise.
7701         * modules/unistr/u8-strncat-tests: Likewise.
7702         * modules/unistr/u8-strncmp-tests: Likewise.
7703         * modules/unistr/u8-strncpy-tests: Likewise.
7704         * modules/unistr/u8-strnlen-tests: Likewise.
7705         * modules/unistr/u8-to-u16-tests: Likewise.
7706         * modules/unistr/u8-to-u32-tests: Likewise.
7707         * modules/unistr/u8-uctomb-tests: Likewise.
7708         * modules/unistr/u16-check-tests: Likewise.
7709         * modules/unistr/u16-chr-tests: Likewise.
7710         * modules/unistr/u16-cmp-tests: Likewise.
7711         * modules/unistr/u16-cmp2-tests: Likewise.
7712         * modules/unistr/u16-cpy-alloc-tests: Likewise.
7713         * modules/unistr/u16-cpy-tests: Likewise.
7714         * modules/unistr/u16-mblen-tests: Likewise.
7715         * modules/unistr/u16-mbsnlen-tests: Likewise.
7716         * modules/unistr/u16-mbtouc-tests: Likewise.
7717         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
7718         * modules/unistr/u16-mbtoucr-tests: Likewise.
7719         * modules/unistr/u16-move-tests: Likewise.
7720         * modules/unistr/u16-next-tests: Likewise.
7721         * modules/unistr/u16-prev-tests: Likewise.
7722         * modules/unistr/u16-set-tests: Likewise.
7723         * modules/unistr/u16-stpcpy-tests: Likewise.
7724         * modules/unistr/u16-stpncpy-tests: Likewise.
7725         * modules/unistr/u16-strcat-tests: Likewise.
7726         * modules/unistr/u16-strcmp-tests: Likewise.
7727         * modules/unistr/u16-strcoll-tests: Likewise.
7728         * modules/unistr/u16-strcpy-tests: Likewise.
7729         * modules/unistr/u16-strdup-tests: Likewise.
7730         * modules/unistr/u16-strlen-tests: Likewise.
7731         * modules/unistr/u16-strmblen-tests: Likewise.
7732         * modules/unistr/u16-strmbtouc-tests: Likewise.
7733         * modules/unistr/u16-strncat-tests: Likewise.
7734         * modules/unistr/u16-strncmp-tests: Likewise.
7735         * modules/unistr/u16-strncpy-tests: Likewise.
7736         * modules/unistr/u16-strnlen-tests: Likewise.
7737         * modules/unistr/u16-to-u32-tests: Likewise.
7738         * modules/unistr/u16-to-u8-tests: Likewise.
7739         * modules/unistr/u16-uctomb-tests: Likewise.
7740         * modules/unistr/u32-check-tests: Likewise.
7741         * modules/unistr/u32-chr-tests: Likewise.
7742         * modules/unistr/u32-cmp-tests: Likewise.
7743         * modules/unistr/u32-cmp2-tests: Likewise.
7744         * modules/unistr/u32-cpy-alloc-tests: Likewise.
7745         * modules/unistr/u32-cpy-tests: Likewise.
7746         * modules/unistr/u32-mblen-tests: Likewise.
7747         * modules/unistr/u32-mbsnlen-tests: Likewise.
7748         * modules/unistr/u32-mbtouc-tests: Likewise.
7749         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
7750         * modules/unistr/u32-mbtoucr-tests: Likewise.
7751         * modules/unistr/u32-move-tests: Likewise.
7752         * modules/unistr/u32-next-tests: Likewise.
7753         * modules/unistr/u32-prev-tests: Likewise.
7754         * modules/unistr/u32-set-tests: Likewise.
7755         * modules/unistr/u32-stpcpy-tests: Likewise.
7756         * modules/unistr/u32-stpncpy-tests: Likewise.
7757         * modules/unistr/u32-strcat-tests: Likewise.
7758         * modules/unistr/u32-strcmp-tests: Likewise.
7759         * modules/unistr/u32-strcoll-tests: Likewise.
7760         * modules/unistr/u32-strcpy-tests: Likewise.
7761         * modules/unistr/u32-strdup-tests: Likewise.
7762         * modules/unistr/u32-strlen-tests: Likewise.
7763         * modules/unistr/u32-strmblen-tests: Likewise.
7764         * modules/unistr/u32-strmbtouc-tests: Likewise.
7765         * modules/unistr/u32-strncat-tests: Likewise.
7766         * modules/unistr/u32-strncmp-tests: Likewise.
7767         * modules/unistr/u32-strncpy-tests: Likewise.
7768         * modules/unistr/u32-strnlen-tests: Likewise.
7769         * modules/unistr/u32-to-u16-tests: Likewise.
7770         * modules/unistr/u32-to-u8-tests: Likewise.
7771         * modules/unistr/u32-uctomb-tests: Likewise.
7772         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
7773         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
7774         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
7775         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
7776         * modules/uniwidth/u8-strwidth-tests: Likewise.
7777         * modules/uniwidth/u8-width-tests: Likewise.
7778         * modules/uniwidth/u16-strwidth-tests: Likewise.
7779         * modules/uniwidth/u16-width-tests: Likewise.
7780         * modules/uniwidth/u32-strwidth-tests: Likewise.
7781         * modules/uniwidth/u32-width-tests: Likewise.
7782         * modules/uniwidth/width-tests: Likewise.
7783
7784 2010-05-18  Richard Jones  <rjones@redhat.com>
7785
7786         doc: users.txt: list hivex
7787         * users.txt: Add hivex.
7788
7789 2010-05-18  Richard Jones  <rjones@redhat.com>
7790
7791         doc: users.txt: list febootstrap
7792         * users.txt: Add febootstrap.
7793
7794 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
7795
7796         bootstrap: fix an error when gnulib is not used as a git submodule
7797         * build-aux/bootstrap (gnulib_path): If its length is zero then
7798         assign "gnulib" to it.
7799         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
7800
7801 2010-05-16  Bruno Haible  <bruno@clisp.org>
7802
7803         Avoid autoconf warnings about AM_ICONV.
7804         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
7805         2.64.
7806
7807 2010-05-16  Bruno Haible  <bruno@clisp.org>
7808
7809         absolute-header: Make the macro usable in more situations.
7810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
7811         from gl_ABSOLUTE_HEADER.
7812         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
7813
7814 2010-05-16  James Youngman  <jay@gnu.org>
7815
7816         doc: update users.txt
7817         * users.txt: Add CSSC.
7818
7819 2010-05-16  Jim Meyering  <meyering@redhat.com>
7820
7821         init.sh: fix an error in the previous change; add more comments
7822         * tests/init.sh: Compare exit code in loop against 9, not 2.
7823         Patch by Bruno Haible.
7824         Make the two tests more similar by adding an empty "then" clause.
7825         Add comments.
7826
7827         init.sh: avoid unnecessary shell re-exec
7828         * tests/init.sh: Improve the re-exec-required check to first test the
7829         current shell.  If it passes the test, do not search for a shell that
7830         does pass, and do not re-exec.  This test is particularly contorted to
7831         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
7832         of $(...) evokes a syntax error and causes immediate shell exit with
7833         status 2.  Bruno Haible reported that the re-exec made it impossible
7834         to single-step through any init.sh-using script.
7835
7836 2010-05-16  Bruno Haible  <bruno@clisp.org>
7837
7838         Fix collision between gnulib's and libintl's printf replacements.
7839         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
7840         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
7841         (printf): When using GNU C, map the __printf__ function to rpl_printf
7842         via __asm__. When not using GNU C, define rpl_printf instead of
7843         __printf__.
7844         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
7845         commit.
7846         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
7847         commit.
7848         * m4/asm-underscore.m4: New file.
7849         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
7850         * modules/stdio (Files): Add m4/asm-underscore.m4.
7851         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
7852         Reported by Ben Pfaff.
7853
7854 2010-05-16  Bruno Haible  <bruno@clisp.org>
7855
7856         verify: Avoid skipping the test on openSUSE 11.0.
7857         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
7858
7859 2010-05-13  Bruno Haible  <bruno@clisp.org>
7860
7861         Avoid useless warnings from G++.
7862         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
7863         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
7864         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7865
7866 2010-05-11  Jim Meyering  <meyering@redhat.com>
7867
7868         maint.mk: tweak preceding change
7869         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
7870         regexps tighter by anchoring at EOL, and make the new group "shy"
7871         for slightly decreased overhead.
7872
7873 2010-05-11  Eric Blake  <eblake@redhat.com>
7874
7875         maint.mk: gnulib doesn't guarantee NSIG
7876         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
7877
7878 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7879
7880         test-pwrite.c: Remove unused variable declaration.
7881         * tests/test-pwrite.c (main): Remove read_buf declaration.
7882
7883         Remove useless test-pwrite.sh file.
7884         * tests/test-pwrite.sh: Delete file.
7885         * modules/pwrite-tests: Remove references.
7886         Reported by Bruno Haible.
7887
7888 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
7889
7890         init.sh: fix a typo
7891         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
7892
7893 2010-05-10  Jim Meyering  <meyering@redhat.com>
7894
7895         maint.mk: avoid using a temporary file in the always-defined-macros check
7896         * top/maint.mk (.re-defmac): Remove rule.
7897         (gl_trap_): Remove definition.
7898         (sc_prohibit_always-defined_macros): Rewrite not to create and
7899         depend on a temporary file.  Instead, depend on GNU grep's ability
7900         to read a list of regular expressions from stdin when given "-f -".
7901
7902 2010-05-09  Bruno Haible  <bruno@clisp.org>
7903
7904         Update to GNU gettext 0.18, part 1.
7905         * m4/gettext.m4: Update to GNU gettext 0.18.
7906         * m4/intl.m4: Likewise.
7907         * m4/po.m4: Likewise.
7908         * modules/gettext (Files): Add m4/fcntl-o.m4.
7909         (configure.ac): Require gettext infrastructure from version 0.18.
7910
7911 2010-05-09  Jim Meyering  <meyering@redhat.com>
7912
7913         init.sh: enable MALLOC_PERTURB_
7914         * tests/init.sh: Enable glibc's malloc-perturbing option.
7915
7916         maint.mk: improve sc_cross_check_PATH_usage_in_tests
7917         With my recent change in init.sh from the two-line form:
7918             -#   : ${srcdir=.}
7919             -#   . "$srcdir/init.sh"; path_prepend_ .
7920             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
7921         I noticed that using the one-line form would cause this test
7922         to fail with a false-positive, or to stop working altogether,
7923         depending on whether help-version changed or all the tests did.
7924         * top/maint.mk (_hv_regex): Remove this definition.
7925         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
7926         (_hv_regex_strong): Use a stronger regex to check for conformance.
7927         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
7928         Give a separate diagnostic for lack of conforming use.
7929
7930         maint.mk: prohibit definition of symbols defined by gnulib
7931         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
7932         definition of symbols defined by gnulib.
7933
7934 2010-05-09  Bruno Haible  <bruno@clisp.org>
7935
7936         acl: Avoid test failure on Cygwin-hosted mingw.
7937         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
7938
7939 2010-05-09  Bruno Haible  <bruno@clisp.org>
7940
7941         error: Use system's fcntl function.
7942         * lib/error.c (fcntl): Undefine.
7943
7944 2010-05-09  Jim Meyering  <meyering@redhat.com>
7945
7946         verify: adjust formatting to be more consistent
7947         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
7948         argument-list '('s, and after one comma.
7949
7950 2010-05-09  Bruno Haible  <bruno@clisp.org>
7951
7952         error: More reliable output on mingw.
7953         * lib/error.c: Include <windows.h>.
7954         (is_open): New function.
7955         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
7956         defined.
7957
7958 2010-05-09  Bruno Haible  <bruno@clisp.org>
7959
7960         vasnprintf: Fix syntax errors in libintl build on mingw.
7961         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
7962         pad_ourselves and prec_ourselves after use.
7963
7964 2010-05-08  Bruno Haible  <bruno@clisp.org>
7965
7966         * lib/config.charset: Update comments for Cygwin 1.7.
7967         * lib/localcharset.c: Likewise.
7968
7969 2010-05-07  Jim Meyering  <meyering@redhat.com>
7970
7971         init.sh: improve comments
7972         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
7973         . "${srcdir=.}/init.sh"; path_prepend_ .
7974         Add a note about path_prepend_ and the alternative of using
7975         TESTS_ENVIRONMENT.
7976
7977 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7978
7979         exclude: Unescape hashed patterns in wildcard mode.
7980         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
7981         to the hash list.
7982         * tests/test-exclude8.sh: New test case.
7983         * modules/exclude-tests: Add new test.
7984
7985 2010-05-05  Eric Blake  <eblake@redhat.com>
7986
7987         verify: automate tests
7988         * modules/verify-tests: New module.
7989         * tests/test-verify.sh: New file.
7990         * tests/test-verify.c: Guard each negative test with a unique id.
7991         Also avoid warning about unused left hand of comma expressions.
7992
7993 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7994
7995         Further improvements to verify.h, suggested by Eric Blake.
7996         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
7997         the GL_* versions, to avoid collision with OpenGL.
7998         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
7999         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
8000         than testing merely whether it's defined.
8001
8002         Modify verify.h to pacify gcc -Wredundant_decls.
8003         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
8004         These use the prefix "GL_" since they're likely to be useful elsewhere.
8005         We may need to break them out into a different .h file.
8006         (__COUNTER__): Define to 0 if the compiler doesn't support it.
8007         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
8008         of verify_function__.
8009
8010 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8011
8012         Tests for module pwrite.
8013         * modules/pwrite-tests: New file.
8014         * tests/test-pwrite.sh: New file.
8015         * tests/test-pwrite.c: New file.
8016
8017         New module pwrite.
8018         * lib/unistd.in.h (pwrite): New declaration.
8019         * lib/pwrite.c: New file, from glibc with modifications.
8020         * m4/pwrite.m4: New file.
8021         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
8022         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
8023         REPLACE_PWRITE.
8024         * modules/pwrite: New file.
8025         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
8026         REPLACE_PWRITE.
8027         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
8028         * doc/posix-functions/pwrite.texi: Mention the new module.
8029
8030 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
8031
8032         pread: Update documentation.
8033         * doc/posix-functions/pread.texi: Mention the 'pread' module.
8034
8035 2010-05-04  Eric Blake  <eblake@redhat.com>
8036
8037         docs: update cygwin progress
8038         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
8039         this bug.
8040         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
8041         Added in cygwin 1.7.2.
8042         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
8043         Likewise.
8044         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
8045         Likewise.
8046         * doc/glibc-functions/dup3.texi (dup3): Likewise.
8047         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8048         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8049         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
8050         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
8051         Mention nproc module.
8052         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
8053         bug in cygwin 1.7.5 addition.
8054         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
8055         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
8056         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
8057         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
8058         1.7.5.
8059         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
8060         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
8061         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
8062         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
8063         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
8064         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
8065         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
8066         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
8067         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
8068         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
8069         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
8070         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
8071         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
8072         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
8073         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
8074         Likewise.
8075         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
8076         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
8077         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
8078         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
8079         Likewise.
8080         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
8081         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
8082         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
8083         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
8084         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
8085         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
8086         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
8087         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
8088         Likewise.
8089         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
8090         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
8091         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
8092         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
8093         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
8094         Likewise.
8095         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
8096         Likewise.
8097         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
8098         Likewise.
8099         * doc/glibc-functions/xdrrec_endofrecord.texi
8100         (xdrrec_endofrecord): Likewise.
8101         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
8102         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
8103         Likewise.
8104         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
8105         Likewise.
8106
8107 2010-05-04  Jim Meyering  <meyering@redhat.com>
8108
8109         gendocs.sh: make its "-s FILE" option more useful
8110         * build-aux/gendocs.sh: When honoring the -s FILE option, update
8111         $PACKAGE to reflect the probably-different basename of "FILE".
8112
8113 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
8114
8115         bootstrap: don't ignore download_po_files failure
8116         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
8117         failure.
8118
8119 2010-05-03  Jim Meyering  <meyering@redhat.com>
8120
8121         maint.mk: allow to pass options to gendocs.sh
8122         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
8123         (gendocs_options_): New overridable variable.
8124
8125         gnu-web-doc-update: don't ignore configure or build failure
8126         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
8127
8128         announce-gen: backslash-escape '@'s in --help output
8129         * build-aux/announce-gen: Fix syntax errors.
8130
8131         maint.mk, announce-gen: allow project-specific announcement mail headers
8132         * top/maint.mk (translation_project_): Define default.
8133         (announcement_Cc_, announcement_mail_headers_): Likewise.
8134         (announcement): Invoke announce-gen with new --mail-headers option.
8135         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
8136
8137         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
8138         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
8139         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
8140         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
8141         line in the "err2" output file when running "make check" in verbose
8142         mode (i.e., with set -x enabled).
8143
8144 2010-05-03  Bruno Haible  <bruno@clisp.org>
8145
8146         wctob: Fix for weird platforms.
8147         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
8148         argument value.
8149
8150 2010-05-03  Jim Meyering  <meyering@redhat.com>
8151
8152         maint.mk: prohibit unwarranted use of <strings.h>
8153         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
8154         strings.h in a file that does not also use strcasecmp, strncasecmp,
8155         ffs or ffsll.
8156
8157         maint.mk: remove obsolete comments
8158         * top/maint.mk: Remove stale, commented-out rules.
8159
8160 2010-05-02  Bruno Haible  <bruno@clisp.org>
8161
8162         wcwidth: Declare also when it's aliased.
8163         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
8164         macro.
8165
8166 2010-05-02  Bruno Haible  <bruno@clisp.org>
8167
8168         Fix regression from 2010-04-25.
8169         * gnulib-tool (func_modules_transitive_closure): Check the status of
8170         all modules, not only of the tests that are of the form foo-tests where
8171         foo is a module.
8172
8173 2010-05-02  Bruno Haible  <bruno@clisp.org>
8174
8175         wctob: Work around nasty Cygwin 1.7.2 bug.
8176         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
8177         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
8178
8179 2010-05-01  Bruno Haible  <bruno@clisp.org>
8180
8181         fpurge: Sharper test.
8182         * tests/test-fpurge.c (main): Add one more ftell check.
8183         * modules/fpurge-tests (Depends-on): Add ftell.
8184         Suggested by Eric Blake.
8185
8186 2010-05-01  Bruno Haible  <bruno@clisp.org>
8187
8188         ftello: Another test.
8189         * tests/test-ftello3.c: New file.
8190         * modules/ftello-tests (Files): Add it.
8191         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8192         MOSTLYCLEANFILES.
8193
8194         ftell: Another test.
8195         * tests/test-ftell3.c: New file.
8196         * modules/ftell-tests (Files): Add it.
8197         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
8198         MOSTLYCLEANFILES.
8199
8200 2010-05-01  Bruno Haible  <bruno@clisp.org>
8201
8202         ftell, ftello: Work around Solaris bug.
8203         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
8204         * lib/ftello.c: Include stdio-impl.h.
8205         (ftello): On Solaris, when _IOWRT is set, compute the result without
8206         looking at _IOREAD.
8207         * modules/ftello (Files): Add lib/stdio-impl.h.
8208         * doc/posix-functions/ftell.texi: Mention Solaris bug.
8209         * doc/posix-functions/ftello.texi: Likewise.
8210         Reported by Eric Blake.
8211
8212 2010-05-01  Bruno Haible  <bruno@clisp.org>
8213
8214         freading: Adapt to special meaning of _IOREAD flag on Solaris.
8215         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
8216         the _IOWRT flag is also set.
8217
8218 2010-05-01  Bruno Haible  <bruno@clisp.org>
8219
8220         Fix doc about a HP-UX stdio bug.
8221         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
8222         * doc/posix-functions/ftello.texi: Likewise.
8223
8224 2010-05-01  Bruno Haible  <bruno@clisp.org>
8225
8226         lseek test: Fix failure on Solaris.
8227         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
8228         output.
8229
8230 2010-04-30  Jim Meyering  <meyering@redhat.com>
8231
8232         bootstrap: don't ignore failure to generate po*/Makevars
8233         * build-aux/bootstrap (with_gettext): Don't ignore failure
8234         to create po/Makevars or runtime-po/Makevars.
8235
8236 2010-04-29  Eric Blake  <eblake@redhat.com>
8237
8238         headers: relax license to LGPLv2+
8239         * modules/fcntl-h (License): Relax license.
8240         * modules/getopt-posix (License): Likewise.
8241         * modules/locale (License): Likewise.
8242         * modules/math (License): Likewise.
8243         * modules/pty (License): Likewise.
8244         * modules/sched (License): Likewise.
8245         * modules/search (License): Likewise.
8246         * modules/spawn (License): Likewise.
8247         * modules/stdarg (License): Likewise.
8248         * modules/sysexits (License): Likewise.
8249
8250 2010-04-29  Jim Meyering  <meyering@redhat.com>
8251
8252         inttypes: relax license to LGPLv2+
8253         * modules/inttypes (License): Relax license.
8254
8255 2010-04-29  Simon Josefsson  <simon@josefsson.org>
8256
8257         * top/maint.mk (indent): Run twice to produce idempotent results.
8258
8259 2010-04-28  Bruno Haible  <bruno@clisp.org>
8260
8261         getdate: Generate getdate.c in the source directory.
8262         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
8263         MOSTLYCLEANFILES.
8264         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
8265
8266 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
8267
8268         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
8269         is not declared as a const *; avoid warnings in that case.
8270
8271 2010-04-28  Eric Blake  <eblake@redhat.com>
8272
8273         canonicalize-lgpl: avoid compiler warning
8274         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
8275         declaration' / 'extraneous semicolon' warning with some compilers.
8276         Reported by Andreas Gruenbacher.
8277
8278 2010-04-28  Jim Meyering  <meyering@redhat.com>
8279
8280         init.sh: ensure a more reliable exit status when exiting via trap
8281         * tests/init.sh (setup_): Don't rely on $? in signal handler.
8282         Inspired by patches from Dmitry V. Levin.
8283         Also trap on signal 3 (SIGQUIT).
8284
8285 2010-04-27  Bruno Haible  <bruno@clisp.org>
8286
8287         Update doc about utimes().
8288         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
8289         'utimens' module.
8290         Reported by Andreas Gruenbacher <agruen@suse.de>.
8291
8292 2010-04-27  Eric Blake  <eblake@redhat.com>
8293
8294         full-read, full-write: relax license
8295         * modules/full-read (License): Drop to LGPLv2+.
8296         * modules/full-write (License): Likewise.
8297         * modules/safe-read (License): Likewise.
8298         * modules/safe-write (License): Likewise.
8299
8300         pthread: mention library for linking
8301         * modules/pthread (Link): Mention $(LIB_PTHREAD).
8302
8303 2010-04-27  Jim Meyering  <meyering@redhat.com>
8304
8305         maint.mk: fix a bug introduced in last change
8306         * top/maint.mk (gl_assured_headers_): Now that all names are on
8307         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
8308         is not anchored to end of word, it should be adequate.
8309
8310         maint.mk: avoid side-effect in latest syntax-check
8311         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
8312         to run commands via $(shell...), and hence to incur cost only when
8313         the new rule is actually run.
8314
8315         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
8316         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
8317         and use that to create a regexp used to detect all #if HAVE_..._H uses.
8318         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
8319         (gl_assured_headers_, az_, AZ_): Define.
8320         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
8321
8322 2010-04-26  Jim Meyering  <jim@meyering.net>
8323             Bruno Haible  <bruno@clisp.org>
8324
8325         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
8326         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
8327         Prompted by an exchange with Gilles Espinasse.
8328
8329 2010-04-26  Jim Meyering  <meyering@redhat.com>
8330
8331         git-version-gen: aesthetic tweak
8332         * build-aux/git-version-gen: Use "$nl" rather than a literal,
8333         so that the command remains on a single line.
8334
8335 2010-04-26  Eric Blake  <eblake@redhat.com>
8336
8337         git-version-gen: allow use on EBCDIC hosts
8338         * build-aux/git-version-gen (dirty): Use literal rather than tying
8339         ourselves to ascii.
8340         Reported by Steve Goetze.
8341
8342 2010-04-25  Bruno Haible  <bruno@clisp.org>
8343
8344         netdb: Add support for GNULIB_POSIXCHECK.
8345         * lib/netdb.in.h: Include warn-on-use.h.
8346         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
8347         functions are used when GNULIB_POSIXCHECK is defined and the
8348         getaddrinfo module is not in use.
8349         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
8350         freeaddrinfo, gai_strerror, getnameinfo are declared.
8351         * modules/netdb (Depends-on): Add warn-on-use.
8352         (Makefile.am): Include warn-on-use.h in netdb.h.
8353
8354 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
8355
8356         build: avoid "make check" failure without .git/ directory
8357         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
8358         there is no .git/ directory.
8359
8360 2010-04-25  Bruno Haible  <bruno@clisp.org>
8361
8362         ptsname: Fix misuse of ttyname_r.
8363         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
8364         of errno.
8365
8366 2010-04-25  Bruno Haible  <bruno@clisp.org>
8367
8368         ttyname_r: Make it work on Solaris 10.
8369         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
8370         if the system function has the POSIX declaration. Test whether the
8371         function fails if the buffer is less than 128 bytes large.
8372         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
8373         system's ttyname_r function. Provide a reasonably large buffer.
8374         * modules/ttyname_r (Depends-on): Add extensions.
8375         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
8376
8377 2010-04-25  Bruno Haible  <bruno@clisp.org>
8378
8379         Use the 'extensions' module for some more functions on Solaris.
8380         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
8381         module.
8382         * doc/posix-functions/ctime_r.texi: Likewise.
8383         * doc/posix-functions/getgrgid_r.texi: Likewise.
8384         * doc/posix-functions/getgrnam_r.texi: Likewise.
8385         * doc/posix-functions/getpwnam_r.texi: Likewise.
8386         * doc/posix-functions/getpwuid_r.texi: Likewise.
8387         * doc/posix-functions/readdir_r.texi: Likewise.
8388         * doc/posix-functions/sigwait.texi: Likewise.
8389         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
8390         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
8391
8392 2010-04-25  Bruno Haible  <bruno@clisp.org>
8393
8394         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
8395         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
8396         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
8397         * lib/ttyname_r.c: Include <limits.h>.
8398         (ttyname_r): Define using the system's ttyname_r function, if it exists
8399         and not on Solaris.
8400         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
8401         set.
8402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
8403         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
8404         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
8405         Reported by Simon Josefsson.
8406
8407 2010-04-25  Bruno Haible  <bruno@clisp.org>
8408
8409         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
8410         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
8411         * doc/posix-functions/ctime_r.texi: Likewise.
8412         * doc/posix-functions/getgrgid_r.texi: Likewise.
8413         * doc/posix-functions/getgrnam_r.texi: Likewise.
8414         * doc/posix-functions/getlogin_r.texi: Likewise.
8415         * doc/posix-functions/getpwnam_r.texi: Likewise.
8416         * doc/posix-functions/getpwuid_r.texi: Likewise.
8417         * doc/posix-functions/readdir_r.texi: Likewise.
8418         * doc/posix-functions/sigwait.texi: Likewise.
8419         * doc/posix-functions/ttyname_r.texi: Likewise.
8420         Reported by Simon Josefsson.
8421
8422 2010-04-25  Bruno Haible  <bruno@clisp.org>
8423
8424         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
8425         * gnulib-tool (func_usage): Document that --with-*-tests options apply
8426         also to --create-testdir.
8427         (func_acceptable): Don't consider the status of *-tests modules here.
8428         (func_modules_transitive_closure): Consider it here, before including a
8429         test module.
8430         (func_import, func_create_testdir): Set inc_all_direct_tests,
8431         inc_all_indirect_tests.
8432         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
8433         --create-testdir and --create-megatestdir.
8434
8435 2010-04-25  Bruno Haible  <bruno@clisp.org>
8436
8437         gnulib-tool: Add --without-*-tests options.
8438         * gnulib-tool (func_usage): Document the --without-*-tests options.
8439         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
8440         excl_unportable_tests): New variables.
8441         Fail if they are specified with --import or --update.
8442         (func_acceptable): Respect the excl_*_tests variables.
8443         (func_import): Set the excl_*_tests variables to empty.
8444
8445 2010-04-25  Simon Josefsson  <simon@josefsson.org>
8446             Bruno Haible  <bruno@clisp.org>
8447
8448         Work around a MacOS X 10.4 bug with openpty.
8449         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
8450         * tests/test-openpty.c (main): Close the master side explicitly.
8451
8452 2010-04-25  Bruno Haible  <bruno@clisp.org>
8453
8454         strnlen: Fix a C++ test error on MacOS X and Solaris.
8455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
8456         the function is not declared.
8457         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
8458         Simon Josefsson.
8459
8460 2010-04-24  Bruno Haible  <bruno@clisp.org>
8461
8462         Avoid a gcc warning.
8463         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
8464         of correct type for %08lx directive.
8465         Reported by Eric Blake.
8466
8467 2010-04-24  Bruno Haible  <bruno@clisp.org>
8468
8469         vasnprintf: Correct errno value in case of out-of-memory.
8470         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
8471         or sprintf. Use the errno value from SNPRINTF or sprintf.
8472         Reported by Ian Beckwith <ianb@erislabs.net>.
8473
8474 2010-04-24  Bruno Haible  <bruno@clisp.org>
8475
8476         ansi-c++-opt: Find correct compiler when cross-compiling.
8477         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
8478         AC_CHECK_PROGS.
8479         Reported by Simon Josefsson.
8480
8481 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
8482
8483         vc-list-files: Add support for subversion
8484         * build-aux/vc-list-files: Use "svn list" to generate the list of
8485         files controlled by subversion.
8486
8487 2010-04-23  Jim Meyering  <meyering@redhat.com>
8488
8489         vc-list-files tests: convert to use init.sh
8490         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
8491         path_prepend_.
8492         Use Exit, not exit.
8493         Use skip_ rather than open coding it.
8494         Remove trap set-up and compare definitions.
8495         * tests/test-vc-list-files-git.sh: Likewise.
8496         * modules/vc-list-files-tests (Files): Add tests/init.sh.
8497
8498 2010-04-22  Simon Josefsson  <simon@josefsson.org>
8499
8500         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
8501         backup files.
8502
8503 2010-04-21  Simon Josefsson  <simon@josefsson.org>
8504
8505         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
8506
8507 2010-04-20  Eric Blake  <eblake@redhat.com>
8508
8509         tests: be robust to ignored SIGPIPE
8510         * tests/test-select-in.sh: Consume all output.
8511         * tests/test-lseek.sh: Check correct exit status, while avoiding
8512         EPIPE.
8513
8514 2010-04-20  Simon Josefsson  <simon@josefsson.org>
8515             Bruno Haible  <bruno@clisp.org>
8516
8517         visibility: Don't use -fvisibility if it leads to a warning.
8518         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
8519         yes, don't pretend that visibility works if it leads to a warning.
8520         Reported by Mike Gran <spk121@yahoo.com>.
8521
8522 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
8523
8524         * build-aux/bootstrap: Use "git -h" for testing for supported options
8525         instead of "git --help".  The short-form option only shows a summary,
8526         and doesn't layout the full man page.  Grep for the full option name
8527         in the summary, too.
8528
8529 2010-04-19  Bruno Haible  <bruno@clisp.org>
8530
8531         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
8532         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
8533         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
8534         mention of RELOCATABLE_STRIP.
8535         Reported by Sylvain Beucler <beuc@beuc.net>.
8536
8537 2010-04-19  Bruno Haible  <bruno@clisp.org>
8538
8539         * lib/diffseq.h: Fix typo in comment.
8540         Reported by Eric Blake.
8541
8542 2010-04-19  Bruno Haible  <bruno@clisp.org>
8543
8544         ioctl: Move autoconf macro to a .m4 file.
8545         * m4/ioctl.m4: New file, extracted from modules/ioctl.
8546         * modules/ioctl (Files): Add it.
8547         (configure.ac): Simply invoke gl_FUNC_IOCTL.
8548         Reported by Ian Beckwith <ianb@erislabs.net>.
8549
8550 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
8551             Bruno Haible  <bruno@clisp.org>
8552
8553         diffseq: Accommodate use-case with abstract arrays.
8554         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
8555         is not defined.
8556         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
8557         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
8558
8559 2010-04-18  Bruno Haible  <bruno@clisp.org>
8560
8561         * doc/posix-headers/stdbool.texi: More precise wording.
8562
8563 2010-04-17  Jim Meyering  <meyering@redhat.com>
8564
8565         maint.mk: use gnu-style indentation in an embedded perl script
8566         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
8567         Rename variable: s/two/last_two_bytes/
8568
8569 2010-04-16  Eric Blake  <eblake@redhat.com>
8570
8571         test-stdbool: skip test that fails with Solaris CC
8572         * tests/test-stdbool.c (f): Skip test that causes compilation
8573         error under buggy C++ compiler.
8574         * lib/stdbool.in.h: Document the limitation.
8575         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8576
8577         setenv: allow compilation with C++
8578         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
8579         register keyword.
8580
8581         stdint: allow test to pass with C++
8582         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
8583
8584         getopt: allow compilation with C++
8585         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
8586         struct.
8587         * lib/getopt.c (_getopt_internal_r): Use correct type.
8588         Reported by Dagobert Michelson, via Joel E. Denny.
8589
8590 2010-04-16  Bruno Haible  <bruno@clisp.org>
8591
8592         Override netdb.h always.
8593         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
8594         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
8595         Reported by Ludovic Courtès <ludo@gnu.org>.
8596
8597 2010-04-15  Bruno Haible  <bruno@clisp.org>
8598
8599         openpty: Fix mistake from 2010-03-21.
8600         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
8601         Reported by Simon Josefsson.
8602
8603 2010-04-15  Eric Blake  <eblake@redhat.com>
8604
8605         test-forkpty: fix expected signature
8606         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
8607         Reported by Simon Josefsson.
8608
8609 2010-04-15  Jim Meyering  <meyering@redhat.com>
8610
8611         maint.mk: texinfo_suffix_re_: correct the default regexp
8612         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
8613
8614         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
8615         make it configurable via texinfo_suffix_re_.
8616
8617 2010-04-14  Eric Blake  <eblake@redhat.com>
8618
8619         strtok_r: relax license to LGPLv2+
8620         * modules/strtok_r (License): Relax license.
8621         Reported by Matthias Bolte.
8622
8623 2010-04-14  Simon Josefsson  <simon@josefsson.org>
8624
8625         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
8626         version 1.4.4 by default instead of requiring the libgcrypt
8627         version used during build.  This makes it possible to use the
8628         application with older but still binary compatible libgcrypt
8629         versions.
8630
8631 2010-04-13  Eric Blake  <eblake@redhat.com>
8632
8633         getopt-gnu: match recent glibc fixes and posix ruling
8634         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
8635         '+' handling, when requesting extensions.
8636         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
8637         'W;' handling.
8638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
8639         * doc/posix-functions/getopt.texi (getopt): Document this.
8640         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8641         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8642         Likewise.
8643
8644         getopt: merge bug fixes from glibc
8645         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
8646         diagnostics.  Honor '+:' correctly.  Reject ';'.
8647
8648         getopt-posix: detect MacOS bug
8649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
8650         optind when missing a required argument.
8651         * doc/posix-functions/getopt.texi (getopt): Document the bug.
8652         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8653         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8654         Likewise.
8655
8656         getopt-posix: avoid spurious failure on Solaris
8657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
8658         an indicator that setting optind=1 is sufficient for reset.
8659
8660         getopt-posix: avoid spurious failure on FreeBSD
8661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
8662         in POSIX mode, since the m4 test uses it.
8663
8664         gnulib-tool: silence warning on BSD sh
8665         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
8666
8667 2010-04-13  Jim Meyering  <meyering@redhat.com>
8668
8669         doc: users.txt: GNU patch now uses gnulib
8670         * users.txt: Add patch.
8671
8672 2010-04-12  Jim Meyering  <meyering@redhat.com>
8673
8674         maint.mk: generate more concise timing data for syntax-check rules
8675         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
8676         " done" from each line that reports a syntax-check test duration.
8677
8678 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
8679
8680         git-version-gen: use "git update-index..." rather than "git status"
8681         * build-aux/git-version-gen: Use git update-index --refresh, not
8682         "git status".  With some versions of git, "git status" would fail
8683         to update the index and result in an unwarranted "-dirty" suffix.
8684
8685 2010-04-11  Jim Meyering  <meyering@redhat.com>
8686
8687         openat: correct formatting (no semantic change)
8688         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
8689         Suggested by Bruno Haible.
8690
8691 2010-04-11  Bruno Haible  <bruno@clisp.org>
8692
8693         Stricter declaration checking in testdirs.
8694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8695         If for_tests is true, augment AM_CPPFLAGS to define
8696         GNULIB_STRICT_CHECKING.
8697         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8698         GNULIB_STRICT_CHECKING is defined, verify that the function is
8699         declared.
8700
8701 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
8702             Bruno Haible  <bruno@clisp.org>
8703
8704         libunistring: Improve configure output.
8705         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
8706         Don't say "consider installing GNU libunistring" when checking again
8707         with libiconv.
8708
8709 2010-04-11  Bruno Haible  <bruno@clisp.org>
8710
8711         libunistring: Correct value of $LTLIBUNISTRING.
8712         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
8713         correct the value of $LTLIBUNISTRING.
8714
8715 2010-04-11  Bruno Haible  <bruno@clisp.org>
8716
8717         havelib: Add static libraries to LIBS in the right order.
8718         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
8719         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
8720
8721 2010-04-11  Bruno Haible  <bruno@clisp.org>
8722
8723         libunistring: Detect libunistring also when it depends on libiconv.
8724         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
8725         the second AC_LIB_HAVE_LINKFLAGS invocation.
8726
8727 2010-04-11  James Youngman  <jay@gnu.org>
8728
8729         close-stream: declare local scalars to be "const"
8730         * lib/close-stream.c (close_stream): Make boolean variables const
8731         to document the fact that we set but do not change them.
8732
8733 2010-04-11  Bruno Haible  <bruno@clisp.org>
8734
8735         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
8736
8737 2010-04-11  Jim Meyering  <meyering@redhat.com>
8738
8739         maint.mk: don't include dist-check.mk
8740         * top/maint.mk: Remove bogus include directive.
8741
8742         maint.mk: improve empty-line-at-EOF check
8743         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
8744         solution, rather than tail+Perl-based one.  The latter would read
8745         a few kilobytes from the end of each file, and did not handle empty
8746         files properly.
8747
8748         maint.mk: print the elapsed time for each syntax-check rule
8749         * top/maint.mk (sc_m_rules_): Save start time in a file.
8750         (sc_z_rules_): New rules: remove temp file and print elapsed time.
8751         (local-check): Interpose the .z rules
8752
8753 2010-04-11  Jim Meyering  <meyering@redhat.com>
8754
8755         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
8756         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
8757         empty file with one that ends in an empty line.
8758
8759 2010-04-10  Bruno Haible  <bruno@clisp.org>
8760
8761         mkdir: Make it work on mingw64.
8762         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
8763         * lib/mkdir.c: Update comment.
8764         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
8765
8766 2010-04-10  Bruno Haible  <bruno@clisp.org>
8767
8768         Don't override improved macro from newer autoconf.
8769         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
8770         autoconf >= 2.62.
8771         Reported by Joel E. Denny <jdenny@clemson.edu>.
8772
8773 2010-04-10  Jim Meyering  <meyering@redhat.com>
8774
8775         maint.mk: new syntax-check rule: prohibit empty lines at end of file
8776         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
8777
8778         maint.mk: correct a diagnostic
8779         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
8780         in diagnostic; now use $prohibit.
8781
8782 2010-04-10  Bruno Haible  <address@hidden>
8783
8784         fchownat: Fix a C++ test error on Solaris 8.
8785         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
8786         the function does not exist.
8787
8788 2010-04-10  Bruno Haible  <bruno@clisp.org>
8789
8790         vasnprintf: Add more tests.
8791         * tests/test-vasnprintf-posix.c: Include <errno.h>.
8792         (test_function): Test converting an invalid wide string.
8793
8794         vasnprintf: Correct handling of unconvertible wide string arguments.
8795         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
8796         VASNPRINTF.
8797         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
8798         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
8799         smaller than the expected maximum need for the directive. Set errno to
8800         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
8801         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
8802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
8803         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
8804         * modules/vasnprintf (Files): Add m4/printf.m4.
8805         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8806
8807 2010-04-10  Bruno Haible  <bruno@clisp.org>
8808
8809         vasnprintf: Fix crash in %ls directive.
8810         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
8811         string is passed as argument to %ls, with no precision and no width.
8812         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8813
8814 2010-04-10  Bruno Haible  <bruno@clisp.org>
8815
8816         vasnprintf: Fix multiple test failures on mingw.
8817         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
8818         _snprintf, or snwprintf, not _snwprintf.
8819
8820 2010-04-10  Bruno Haible  <bruno@clisp.org>
8821
8822         write: Fix a C++ test error on mingw.
8823         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
8824
8825 2010-04-10  Bruno Haible  <bruno@clisp.org>
8826
8827         vasnprintf test: Reduce code duplication.
8828         * tests/test-vasnprintf.c (test_function): New function, extracted from
8829         test_vasnprintf.
8830         (test_vasnprintf, test_asnprintf): Invoke it.
8831
8832 2010-04-10  Bruno Haible  <bruno@clisp.org>
8833
8834         strnlen: Fix warning in C++ mode on MacOS X.
8835         * lib/string.in.h (strnlen): Use the modern idiom.
8836         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
8837         defining strnlen as a macro already in <config.h>.
8838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8839         REPLACE_STRNLEN.
8840         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
8841         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8842
8843 2010-04-08  James Youngman  <jay@gnu.org>
8844
8845         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
8846         the example.
8847
8848 2010-04-09  Jim Meyering  <meyering@redhat.com>
8849
8850         maint.mk: print better diagnostic when there is no $(_hv_file)
8851         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
8852         announce that when $(_hv_file) (aka help-version) does not exist.
8853
8854         init.sh: run tr in the "C" locale to avoid multibyte interpretation
8855         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
8856         not try to interpret its random input bytes.  Jarno Rajahalme reported
8857         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
8858         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
8859         (mktempd_): Likewise, just in case.
8860
8861         ftruncate: add two years to projected module removal date: 2012
8862         * m4/ftruncate.m4: Adjust comments.
8863
8864         ftruncate: mark module as obsolete; even MinGW provides it, now
8865         * modules/ftruncate (Status): Obsolete.
8866         (Notice): Say that.
8867         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
8868         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8869
8870 2010-04-08  Bruno Haible  <bruno@clisp.org>
8871
8872         Fix side effects from tests-related modules.
8873         * modules/dprintf-posix (Comment): New section.
8874         * modules/fprintf-posix (Comment): Likewise.
8875         * modules/obstack-printf-posix (Comment): Likewise.
8876         * modules/printf-posix (Comment): Likewise.
8877         * modules/snprintf-posix (Comment): Likewise.
8878         * modules/sprintf-posix (Comment): Likewise.
8879         * modules/vasnprintf-posix (Comment): Likewise.
8880         * modules/vasprintf-posix (Comment): Likewise.
8881         * modules/vdprintf-posix (Comment): Likewise.
8882         * modules/vfprintf-posix (Comment): Likewise.
8883         * modules/vprintf-posix (Comment): Likewise.
8884         * modules/vsnprintf-posix (Comment): Likewise.
8885         * modules/vsprintf-posix (Comment): Likewise.
8886         * modules/xprintf-posix (Comment): Likewise.
8887         * modules/xvasprintf-posix (Comment): Likewise.
8888         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
8889         * modules/floorf-tests (Depends-on): Likewise.
8890         * modules/round-tests (Depends-on): Likewise.
8891         * modules/roundf-tests (Depends-on): Likewise.
8892         * modules/trunc-tests (Depends-on): Likewise.
8893         * modules/truncf-tests (Depends-on): Likewise.
8894         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
8895         'fprintf-posix' module is not present.
8896         * tests/test-floorf2.c (check): Likewise.
8897         * tests/test-trunc2.c (check): Likewise.
8898         * tests/test-truncf2.c (check): Likewise.
8899         * tests/test-round2.c (equal): Likewise.
8900         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
8901
8902 2010-04-07  Karl Berry  <karl@gnu.org>
8903
8904         * config/srclist.txt,
8905         * config/srclistvars.sh,
8906         * config/srclist-update: doc fixes.
8907
8908 2010-04-07  Jim Meyering  <meyering@redhat.com>
8909
8910         maint.mk: add a PATH crosschecking syntax-check rule
8911         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
8912         Useful if you use a test like the one in help-version (coreutils,
8913         diffutils, grep, gzip) that ensures $(VERSION) matches what is
8914         printed by prog --version.
8915
8916 2010-04-06  Bruno Haible  <bruno@clisp.org>
8917
8918         Fix link error on mingw.
8919         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
8920         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
8921
8922 2010-04-06  Bruno Haible  <bruno@clisp.org>
8923
8924         Assume rmdir exists.
8925         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
8926
8927 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
8928
8929         doc: update users.txt
8930         * users.txt: Add gcal.
8931
8932 2010-04-06  Jim Meyering  <meyering@redhat.com>
8933
8934         init.sh: simply unset TMPDIR rather than risking env -i
8935         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
8936         although it probably works fine on all Unix-based systems, some
8937         systems (Cygwin?) cannot tolerate a totally cleared environment.
8938         Suggestion from Eric Blake.
8939
8940 2010-04-06  Jim Meyering  <meyering@redhat.com>
8941
8942         init.sh: portability fix: use env's POSIX-specified -i option not -u
8943         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
8944         than unportable env -u.  Solaris 5.11's env lacks support for -u.
8945
8946 2010-04-05  Bruno Haible  <bruno@clisp.org>
8947
8948         btowc: Work around Cygwin 1.7.2 bug.
8949         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
8950         does not map NUL to 0.
8951         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
8952
8953 2010-04-05  Bruno Haible  <bruno@clisp.org>
8954
8955         Make the multithread modules work on Cygwin 1.7.2.
8956         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
8957         imported symbols can be declared weak, so that it returns "no" on
8958         Cygwin 1.7.2.
8959
8960 2010-04-05  Bruno Haible  <bruno@clisp.org>
8961
8962         Use the module 'strncat'.
8963         * modules/unistr/u8-strncat (Depends-on): Add strncat.
8964
8965         Tests for module 'strncat'.
8966         * modules/strncat-tests: New file.
8967         * tests/test-strncat.c: New file.
8968
8969         New module 'strncat'.
8970         * lib/string.in.h (strncat): New declaration.
8971         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
8972         * m4/strncat.m4: New file, based on m4/memchr.m4.
8973         * modules/strncat: New file.
8974         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
8975         is declared.
8976         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
8977         REPLACE_STRNCAT.
8978         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
8979         REPLACE_STRNCAT.
8980         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
8981         module.
8982         * tests/test-string-c++.cc: Check signature of strncat.
8983
8984 2010-04-05  Jim Meyering  <meyering@redhat.com>
8985
8986         xstrtoumax-tests: convert to use init.sh
8987         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
8988         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8989         Use Exit, not exit.
8990         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8991
8992         xstrtoimax-tests: convert to use init.sh
8993         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
8994         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8995         Use Exit, not exit.
8996         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8997
8998 2010-04-05  Bruno Haible  <bruno@clisp.org>
8999
9000         sys_socket: Avoid #define replacements in C++ mode.
9001         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
9002         warning to the function if possible, rather than #defining the symbol
9003         to a dysfunctional alias.
9004
9005 2010-04-05  Bruno Haible  <bruno@clisp.org>
9006
9007         fseeko: Fix C++ test error on mingw.
9008         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
9009         gl_FUNC_FSEEKO.
9010         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
9011         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
9012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
9013         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
9014
9015 2010-04-05  Bruno Haible  <bruno@clisp.org>
9016
9017         duplocale: Improve test output.
9018         * tests/test-duplocale.c (main): Print reason for skipped test.
9019
9020 2010-04-05  Bruno Haible  <bruno@clisp.org>
9021
9022         Assume rmdir exists.
9023         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
9024         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
9025
9026 2010-04-05  Bruno Haible  <bruno@clisp.org>
9027
9028         Fix link error on Solaris 8 with cc.
9029         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
9030
9031 2010-04-05  Bruno Haible  <bruno@clisp.org>
9032
9033         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9034         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
9035
9036 2010-04-05  Bruno Haible  <bruno@clisp.org>
9037
9038         vasprintf: Update documentation.
9039         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
9040
9041 2010-04-05  Bruno Haible  <bruno@clisp.org>
9042
9043         ptsname: Improve test.
9044         * tests/test-ptsname.c (main): Also try the various master names of BSD
9045         systems.
9046
9047 2010-04-05  Bruno Haible  <bruno@clisp.org>
9048
9049         memchr: Avoid a possible C++ test error.
9050         * lib/string.in.h (memchr): Provide declaration if function is missing.
9051         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
9052         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
9053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
9054         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
9055
9056 2010-04-05  Bruno Haible  <bruno@clisp.org>
9057
9058         strtok_r: Improve idiom.
9059         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
9060         AC_LIBOBJ is used.
9061
9062 2010-04-05  Bruno Haible  <bruno@clisp.org>
9063
9064         strdup: Improve idiom.
9065         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
9066         AC_LIBOBJ is used.
9067         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
9068         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
9069         when AC_LIBOBJ is used.
9070
9071 2010-04-05  Bruno Haible  <bruno@clisp.org>
9072
9073         mbsinit, mbrtowc, wcrtomb: Improve idioms.
9074         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
9075         don't set REPLACE_MBSINIT to 1.
9076         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
9077         don't set REPLACE_MBRTOWC to 1.
9078         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
9079         exist, don't set REPLACE_MBSRTOWCS to 1.
9080         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
9081         exist, don't set REPLACE_MBSNRTOWCS to 1.
9082         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
9083         don't set REPLACE_WCRTOMB to 1.
9084         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
9085         exist, don't set REPLACE_WCSRTOMBS to 1.
9086         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
9087         exist, don't set REPLACE_WCSNRTOMBS to 1.
9088
9089 2010-04-05  Bruno Haible  <bruno@clisp.org>
9090
9091         ldexpl: Improve idiom.
9092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
9093         make sure to set HAVE_DECL_LDEXPL to 0.
9094
9095 2010-04-05  Jim Meyering  <meyering@redhat.com>
9096
9097         xstrtol-tests: convert to use init.sh
9098         * modules/xstrtol-tests (Files): Add tests/init.sh.
9099         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9100         Use Exit, not exit.
9101         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9102
9103         atexit-tests: convert to use init.sh
9104         * modules/atexit-tests (Files): Add tests/init.sh.
9105         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
9106         Use Exit, not exit.
9107         Remove uses of $EXEEXT and "./" to run a program in the current dir.
9108
9109         init.sh: fix typo
9110         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
9111
9112         init.sh: make it easier for a test script to write to the tty, ...
9113         when using automake's parallel-tests mode.
9114         * tests/init.sh (stderr_fileno_): Define overridable variable.
9115         (warn_): New function, to use it.
9116         (fail_, skip_, framework_failure_): Use warn_.
9117
9118 2010-04-04  Bruno Haible  <bruno@clisp.org>
9119
9120         btowc: Avoid warning.
9121         * lib/btowc.c: Include <stdlib.h>.
9122         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
9123
9124 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9125             Bruno Haible  <bruno@clisp.org>
9126
9127         wchar: Port to NetBSD 1.5.
9128         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
9129         * lib/wctype.in.h (WEOF): Likewise.
9130
9131 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
9132             Bruno Haible  <bruno@clisp.org>
9133
9134         Port extended stdio to NetBSD 1.5.
9135         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
9136         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
9137         older.
9138
9139 2010-04-04  Bruno Haible  <bruno@clisp.org>
9140
9141         string: Remove unused substitution.
9142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9143         HAVE_DECL_STRERROR.
9144         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
9145
9146 2010-04-04  Bruno Haible  <bruno@clisp.org>
9147
9148         strtod: Avoid a possible C++ test error.
9149         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
9150         set REPLACE_STRTOD.
9151
9152 2010-04-04  Bruno Haible  <bruno@clisp.org>
9153
9154         strerror: Update documentation.
9155         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
9156
9157 2010-04-04  Bruno Haible  <bruno@clisp.org>
9158
9159         stdio: Fix some C++ test errors on Solaris 8 with GCC.
9160         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
9161         _GL_CXXALIAS_SYS_CAST.
9162
9163 2010-04-04  Bruno Haible  <bruno@clisp.org>
9164
9165         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
9166         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
9167         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
9168         REPLACE_FREXPL to 1.
9169         * doc/posix-functions/frexpl.texi: Update documentation.
9170
9171 2010-04-04  Bruno Haible  <bruno@clisp.org>
9172
9173         math: Fix some C++ test errors on Solaris 8 and Cygwin.
9174         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
9175
9176 2010-04-04  Bruno Haible  <bruno@clisp.org>
9177
9178         Implement nanosleep for native Windows.
9179         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
9180
9181 2010-04-04  Bruno Haible  <bruno@clisp.org>
9182
9183         math: Fix some C++ test errors on Solaris 8.
9184         * lib/math.in.h (truncf, trunc): Use simpler idiom.
9185
9186 2010-04-04  Bruno Haible  <bruno@clisp.org>
9187
9188         math: Fix some C++ test errors on Cygwin.
9189         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
9190         truncl): Provide declaration if the system does not have it.
9191         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
9192         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
9193         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
9194         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
9195         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
9196         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
9197         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
9198         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
9199         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
9200         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
9201         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
9202         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
9203         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
9204         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
9205         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
9206         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
9207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
9208         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9209         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9210         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
9211         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
9212         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
9213
9214 2010-04-04  Bruno Haible  <bruno@clisp.org>
9215
9216         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
9217         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9218         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9219         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9220         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9221         * m4/isinf.m4 (gl_ISINF): Likewise.
9222         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9223
9224 2010-04-04  Bruno Haible  <bruno@clisp.org>
9225
9226         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
9227         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9228
9229 2010-04-04  Bruno Haible  <bruno@clisp.org>
9230
9231         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
9232         * modules/tmpfile (configure.ac): Update.
9233
9234         tmpfile: Fix C++ test error on mingw.
9235         * lib/stdio.in.h (tmpfile): New declaration.
9236         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
9237         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
9238         * modules/tmpfile (Depends-on): Add stdio.
9239         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9240         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
9241         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
9242         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
9243         REPLACE_TMPFILE.
9244         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
9245
9246 2010-04-04  Bruno Haible  <bruno@clisp.org>
9247
9248         ioctl: Fix C++ test error on mingw.
9249         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
9250         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
9251         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
9252
9253 2010-04-03  Bruno Haible  <bruno@clisp.org>
9254
9255         wcwidth: Fix C++ test error on mingw.
9256         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
9257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
9258         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
9259
9260 2010-04-03  Bruno Haible  <bruno@clisp.org>
9261
9262         nanosleep: Fix C++ test error on mingw.
9263         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
9264         * lib/time.in.h (nanosleep): Use modern idiom.
9265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
9266         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
9267         REPLACE_NANOSLEEP to 1.
9268         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
9269         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
9270
9271 2010-04-03  Bruno Haible  <bruno@clisp.org>
9272
9273         strptime: Fix C++ test error on mingw.
9274         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
9275         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
9276         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
9277         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
9278         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
9279         not REPLACE_STRPTIME.
9280         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
9281         REPLACE_STRPTIME.
9282
9283 2010-04-03  Bruno Haible  <bruno@clisp.org>
9284
9285         timegm: Fix C++ test error on mingw.
9286         * lib/time.in.h (timegm): Use modern idiom.
9287         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
9288         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
9289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
9290         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
9291
9292 2010-04-03  Bruno Haible  <bruno@clisp.org>
9293
9294         timegm: Assume declaration if function exists.
9295         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
9296         if it exists. Don't clobber ac_cv_func_timegm.
9297
9298 2010-04-03  Bruno Haible  <bruno@clisp.org>
9299
9300         time_r: Fix C++ test error on mingw.
9301         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
9302         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
9303         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
9304         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
9305         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
9306
9307 2010-04-03  Bruno Haible  <bruno@clisp.org>
9308
9309         time_r: Minor updates.
9310         * modules/time_r (Description): Mention the provided functions.
9311         * lib/time_r.c: Don't include <string.h>.
9312         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
9313         * doc/posix-functions/localtime_r.texi: Likewise.
9314
9315 2010-04-03  Bruno Haible  <bruno@clisp.org>
9316
9317         time: Fix regression introduced on 2010-03-08.
9318         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
9319         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
9320
9321 2010-04-03  Jim Meyering  <meyering@redhat.com>
9322
9323         maint.mk: don't silently disable project-specific syntax-check rules
9324         * top/maint.mk (_prohibit_regexp): Define, to help people realize
9325         that they need to convert their project-specific syntax-check rules
9326         to use the new _sc_search_regexp.
9327
9328 2010-04-03  Bruno Haible  <bruno@clisp.org>
9329
9330         fchdir: Fix regression introduced on 2010-03-08.
9331         * lib/unistd.in.h (fchdir): Fix declaration.
9332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
9333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
9334         REPLACE_FCHDIR.
9335         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
9336         REPLACE_FCHDIR.
9337
9338 2010-04-03  Bruno Haible  <bruno@clisp.org>
9339
9340         getpagesize: Fix C++ test error on mingw.
9341         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
9342         system does not declare the function.
9343         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
9344         declared.
9345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9346         HAVE_DECL_GETPAGESIZE.
9347         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
9348
9349 2010-04-03  Bruno Haible  <bruno@clisp.org>
9350
9351         stdio: Make C++ tests work on mingw.
9352         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
9353         does not declare the function.
9354
9355 2010-04-03  Bruno Haible  <bruno@clisp.org>
9356
9357         ftello: Fix C++ test error on mingw.
9358         * lib/stdio.in.h (ftello): Use modern idiom.
9359         * lib/ftello.c (ftello): Renamed from rpl_ftello.
9360         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
9361         is missing and that it needs to be replaced.
9362         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
9363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
9364         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
9365
9366 2010-04-03  Bruno Haible  <bruno@clisp.org>
9367
9368         fseeko: Fix C++ test error on mingw.
9369         * lib/stdio.in.h (fseeko): Use modern idiom.
9370         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
9371         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
9372         is missing and that it needs to be replaced.
9373         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
9375         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
9376
9377 2010-04-03  Bruno Haible  <bruno@clisp.org>
9378
9379         mkstemp: Fix C++ test error on mingw.
9380         * lib/stdlib.in.h (mkstemp): Use modern idiom.
9381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
9382         function is missing and that it needs to be replaced.
9383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
9384         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
9385
9386 2010-04-03  Bruno Haible  <bruno@clisp.org>
9387
9388         stpncpy: Fix C++ test error on mingw.
9389         * lib/string.in.h (stpncpy): Use modern idiom.
9390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
9391         function is missing and that it needs to be replaced.
9392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9393         REPLACE_STPNCPY.
9394         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
9395
9396 2010-04-03  Bruno Haible  <bruno@clisp.org>
9397
9398         sys_stat: Fix C++ test error on mingw.
9399         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
9400         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
9401
9402 2010-04-03  Bruno Haible  <bruno@clisp.org>
9403
9404         pty: Update doc.
9405         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
9406
9407 2010-04-03  Bruno Haible  <bruno@clisp.org>
9408
9409         unistd: Fix C++ test error on mingw.
9410         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
9411
9412 2010-04-03  Bruno Haible  <bruno@clisp.org>
9413
9414         Update doc regarding mingw.
9415         * doc/glibc-functions/openpty.texi: Update regarding mingw.
9416         * doc/glibc-functions/login_tty.texi: Likewise.
9417         * doc/glibc-functions/forkpty.texi: Likewise.
9418
9419 2010-04-03  Bruno Haible  <bruno@clisp.org>
9420
9421         stdlib: Avoid compilation failure of c-strtold on mingw.
9422         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
9423
9424 2010-04-03  Bruno Haible  <bruno@clisp.org>
9425
9426         locale: Make C++ tests work on Cygwin and mingw.
9427         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
9428         cannot provide the function.
9429         Reported by Simon Josefsson.
9430
9431 2010-04-03  Bruno Haible  <bruno@clisp.org>
9432
9433         localename: Port to MacOS X 10.6.
9434         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
9435         memory layout of the locales in MacOS X 10.6 as well.
9436         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
9437
9438 2010-04-02  Bruno Haible  <bruno@clisp.org>
9439
9440         gnulib-tool: Ensure that long-running tests are executed last.
9441         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
9442         running tests after the one for the other tests.
9443
9444 2010-04-02  Bruno Haible  <bruno@clisp.org>
9445
9446         gnulib-tool: Ensure the tests in the main directory are executed first.
9447         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
9448         start with the current directory.
9449
9450 2010-04-02  Bruno Haible  <bruno@clisp.org>
9451
9452         Tests for module 'havelib', moved here from GNU gettext.
9453         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
9454         modifications.
9455         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
9456         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
9457         with modifications.
9458         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
9459         modifications.
9460         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
9461         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
9462         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
9463         with modifications.
9464         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
9465         with modifications.
9466         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
9467         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
9468         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
9469         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
9470         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
9471         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
9472         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
9473         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
9474         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
9475         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
9476         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
9477         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
9478         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
9479         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
9480         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
9481         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
9482         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
9483         with modifications.
9484         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
9485         with modifications.
9486         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
9487         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
9488         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
9489         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
9490         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
9491         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
9492         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
9493         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
9494         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
9495         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
9496         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
9497         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
9498         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
9499         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
9500         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
9501         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
9502         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
9503         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
9504         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
9505         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
9506         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
9507         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
9508         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
9509         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
9510         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
9511         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
9512         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
9513         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
9514         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
9515         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
9516         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
9517         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
9518         * tests/havelib/rpathx/rpathx.c: New file, from
9519         gettext/autoconf-lib-link.
9520         * tests/havelib/rpathx/Makefile.am: New file, from
9521         gettext/autoconf-lib-link.
9522         * tests/havelib/rpathx/configure.ac: New file, from
9523         gettext/autoconf-lib-link with modifications.
9524         * tests/havelib/rpathy/rpathy.c: New file, from
9525         gettext/autoconf-lib-link.
9526         * tests/havelib/rpathy/Makefile.am: New file, from
9527         gettext/autoconf-lib-link.
9528         * tests/havelib/rpathy/configure.ac: New file, from
9529         gettext/autoconf-lib-link with modifications.
9530         * tests/havelib/rpathz/rpathz.c: New file, from
9531         gettext/autoconf-lib-link.
9532         * tests/havelib/rpathz/Makefile.am: New file, from
9533         gettext/autoconf-lib-link.
9534         * tests/havelib/rpathz/configure.ac: New file, from
9535         gettext/autoconf-lib-link with modifications.
9536         * tests/havelib/rpathlx/usex.c: New file, from
9537         gettext/autoconf-lib-link.
9538         * tests/havelib/rpathlx/Makefile.am: New file, from
9539         gettext/autoconf-lib-link.
9540         * tests/havelib/rpathlx/configure.ac: New file, from
9541         gettext/autoconf-lib-link with modifications.
9542         * tests/havelib/rpathly/usey.c: New file, from
9543         gettext/autoconf-lib-link.
9544         * tests/havelib/rpathly/Makefile.am: New file, from
9545         gettext/autoconf-lib-link.
9546         * tests/havelib/rpathly/configure.ac: New file, from
9547         gettext/autoconf-lib-link with modifications.
9548         * tests/havelib/rpathlz/usez.c: New file, from
9549         gettext/autoconf-lib-link.
9550         * tests/havelib/rpathlz/Makefile.am: New file, from
9551         gettext/autoconf-lib-link.
9552         * tests/havelib/rpathlz/configure.ac: New file, from
9553         gettext/autoconf-lib-link with modifications.
9554         * tests/havelib/rpathlyx/usey.c: New file, from
9555         gettext/autoconf-lib-link.
9556         * tests/havelib/rpathlyx/Makefile.am: New file, from
9557         gettext/autoconf-lib-link.
9558         * tests/havelib/rpathlyx/configure.ac: New file, from
9559         gettext/autoconf-lib-link with modifications.
9560         * tests/havelib/rpathlzyx/usez.c: New file, from
9561         gettext/autoconf-lib-link.
9562         * tests/havelib/rpathlzyx/Makefile.am: New file, from
9563         gettext/autoconf-lib-link.
9564         * tests/havelib/rpathlzyx/configure.ac: New file, from
9565         gettext/autoconf-lib-link with modifications.
9566         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
9567         with modifications.
9568
9569 2010-04-02  Bruno Haible  <bruno@clisp.org>
9570
9571         gnulib-tool: Create distributed built sources also for the tests.
9572         * gnulib-tool (func_create_testdir): Also generate distributed built
9573         sources in the tests directory.
9574
9575 2010-04-02  Bruno Haible  <bruno@clisp.org>
9576
9577         gnulib-tool: Obey user's environment variables.
9578         * gnulib-tool (func_create_testdir): When creating built sources,
9579         respect the environment variables for autoconf, automake, etc. given by
9580         the user.
9581
9582 2010-04-02  Bruno Haible  <bruno@clisp.org>
9583
9584         gnulib-tool: Provide the value of --m4-base to modules.
9585         * gnulib-tool (func_import, func_create_testdir): Emit a definition
9586         of gl_m4_base.
9587
9588 2010-04-02  Eric Blake  <eblake@redhat.com>
9589
9590         maint.mk: fix some fallout
9591         * NEWS: Document the incompatible change, and its effect on cfg.mk.
9592         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
9593
9594 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9595
9596         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
9597         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
9598         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
9599         (sc_cast_of_x_alloc_return_value): Likewise.
9600         (sc_cast_of_alloca_return_value): Likewise.
9601         (sc_space_tab): Likewise.
9602         (sc_prohibit_atoi_atof): Likewise.
9603         (sc_prohibit_magic_number_exit): Likewise.
9604         (sc_error_exit_success): Likewise.
9605         (sc_file_system): Likewise.
9606         (sc_prohibit_have_config_h): Likewise.
9607         (sc_require_config_h): Likewise.
9608         (sc_prohibit_HAVE_MBRTOWC): Likewise.
9609         (sc_obsolete_symbols): Likewise.
9610         (sc_changelog): Likewise.
9611         (sc_program_name): Likewise.
9612         (sc_the_the): Likewise.
9613         (sc_trailing_blank): Likewise.
9614         (sc_two_space_separator_in_usage): Likewise.
9615         (sc_useless_cpp_parens): Likewise.
9616         (sc_GPL_version): Likewise.
9617         (sc_GFDL_version): Likewise.
9618         (sc_texinfo_acronym): Likewise.
9619         (sc_prohibit_cvs_keyword): Likewise.
9620         (sc_prohibit_stat_st_blocks): Likewise.
9621         (sc_prohibit_S_IS_definition): Likewise.
9622         (sc_redundant_const): Likewise.
9623         (sc_makefile_TAB_only_indentation): Likewise.
9624         (sc_m4_quote_check): Likewise.
9625         (sc_makefile_path_separator_check): Likewise.
9626         (sc_copyright_check): Likewise.
9627         (sc_Wundef_boolean): Likewise.
9628         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9629
9630         maint.mk: match 0 or more whitespace-before-function-call '('
9631         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
9632         that have zero or two-and-more spaces between the function name
9633         and the open parenthesis.
9634         (sc_error_message_warn_fatal): Likewise.
9635         (sc_error_message_uppercase): Likewise.
9636         (sc_error_message_period): Likewise.
9637
9638 2010-03-31  Eric Blake  <eblake@redhat.com>
9639
9640         maint.mk: check for [ as well as test
9641         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
9642         Based on a libvirt report by Matthias Bolte.
9643
9644         gnumakefile: don't squelch _version output
9645         * top/GNUmakefile (_version): Create one-shot dependency rather
9646         than using $(shell) when version must be regenerated.
9647         (_autoreconf): Run verbosely, by default.
9648
9649         sys_time: avoid compiler warnings
9650         * lib/sys_time.in.h (includes): Ensure gcc pragma is
9651         unconditional, fixing regression from 2010-03-29.
9652         Reported by Simon Josefsson.
9653
9654 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
9655
9656         maint.mk: s/_header_without_use/_sc_header_without_use/
9657         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
9658         (sc_prohibit_assert_without_use): Use the new name.
9659         (sc_prohibit_close_stream_without_use): Likewise.
9660         (sc_prohibit_getopt_without_use): Likewise.
9661         (sc_prohibit_quotearg_without_use): Likewise.
9662         (sc_prohibit_quote_without_use): Likewise.
9663         (sc_prohibit_long_options_without_use): Likewise.
9664         (sc_prohibit_inttostr_without_use): Likewise.
9665         (sc_prohibit_ignore_value_without_use): Likewise.
9666         (sc_prohibit_error_without_use): Likewise.
9667         (sc_prohibit_xalloc_without_use): Likewise.
9668         (sc_prohibit_hash_without_use): Likewise.
9669         (sc_prohibit_hash_pjw_without_use): Likewise.
9670         (sc_prohibit_safe_read_without_use): Likewise.
9671         (sc_prohibit_argmatch_without_use): Likewise.
9672         (sc_prohibit_canonicalize_without_use): Likewise.
9673         (sc_prohibit_root_dev_ino_without_use): Likewise.
9674         (sc_prohibit_openat_without_use): Likewise.
9675         (sc_prohibit_c_ctype_without_use): Likewise.
9676         (sc_prohibit_signal_without_use): Likewise.
9677         (sc_prohibit_intprops_without_use): Likewise.
9678
9679 2010-03-30  Eric Blake  <eblake@redhat.com>
9680
9681         maint: improve module indicators
9682         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
9683         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
9684         columns, and avoid extra macro expansion.
9685
9686         fdopendir: work around FreeBSD bug
9687         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9688         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
9689         * modules/dirent (Makefile.am): Substitute it.
9690         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
9691         declaration.
9692         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
9693         fix.
9694         Reported by Christian Weisgerber <naddy@mips.inka.de>.
9695
9696 2010-03-29  Bruno Haible  <bruno@clisp.org>
9697
9698         Emit #pragma system_header after the inclusion guard, not before.
9699         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
9700         guard that spans the entire file, not before. This enables an
9701         optimization in GCC's preprocessor.
9702         * lib/ctype.in.h: Likewise.
9703         * lib/dirent.in.h: Likewise.
9704         * lib/errno.in.h: Likewise.
9705         * lib/float.in.h: Likewise.
9706         * lib/getopt.in.h: Likewise.
9707         * lib/iconv.in.h: Likewise.
9708         * lib/langinfo.in.h: Likewise.
9709         * lib/locale.in.h: Likewise.
9710         * lib/math.in.h: Likewise.
9711         * lib/netdb.in.h: Likewise.
9712         * lib/netinet_in.in.h: Likewise.
9713         * lib/pty.in.h: Likewise.
9714         * lib/sched.in.h: Likewise.
9715         * lib/se-selinux.in.h: Likewise.
9716         * lib/search.in.h: Likewise.
9717         * lib/spawn.in.h: Likewise.
9718         * lib/stdarg.in.h: Likewise.
9719         * lib/stdint.in.h: Likewise.
9720         * lib/string.in.h: Likewise.
9721         * lib/strings.in.h: Likewise.
9722         * lib/sys_file.in.h: Likewise.
9723         * lib/sys_ioctl.in.h: Likewise.
9724         * lib/sys_time.in.h: Likewise.
9725         * lib/sys_times.in.h: Likewise.
9726         * lib/sys_utsname.in.h: Likewise.
9727         * lib/sys_wait.in.h: Likewise.
9728         * lib/sysexits.in.h: Likewise.
9729         * lib/wctype.in.h: Likewise.
9730
9731 2010-03-28  James Youngman  <jay@gnu.org>
9732
9733         save-cwd: don't leak a file descriptor when the caller execs.
9734         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
9735         saved file descriptor.
9736         * modules/save-cwd (Depends-on): Depend on cloexec.
9737
9738 2010-03-29  Bruno Haible  <bruno@clisp.org>
9739
9740         Remove vestiges of fts-lgpl module.
9741         * lib/fts_.h: Assume GNULIB_FTS is 1.
9742         * lib/fts.c: Likewise.
9743         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9744
9745 2010-03-28  Bruno Haible  <bruno@clisp.org>
9746
9747         Fix definition of tests witness macro.
9748         * gnulib-tool (func_import): Fix definition of witness macro.
9749
9750 2010-03-28  Bruno Haible  <bruno@clisp.org>
9751
9752         Fix ioctl's protoype on glibc systems.
9753         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
9754         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
9755         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
9756         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
9757         signature. If not, arrange to replace the ioctl function.
9758         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
9759         REPLACE_IOCTL.
9760         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
9761         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
9762         Reported by Ludovic Courtès <ludo@gnu.org>.
9763
9764 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
9765
9766         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
9767         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
9768         made it so grep -r --include=GLOB* ... did not work.
9769
9770 2010-03-26  Jim Meyering  <meyering@redhat.com>
9771             Eric Blake  <eblake@redhat.com>
9772
9773         maint.mk: prohibit use of test's -o and -a operators
9774         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
9775
9776 2010-03-28  Bruno Haible  <bruno@clisp.org>
9777
9778         Remove unused GNULIB_XYZ macro definitions.
9779         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
9780         invocation.
9781
9782 2010-03-28  Bruno Haible  <bruno@clisp.org>
9783
9784         Mark privileged tests modules.
9785         * modules/idpriv-drop-tests (Status): New section.
9786         * modules/idpriv-droptemp-tests (Status): New section.
9787
9788 2010-03-28  Bruno Haible  <bruno@clisp.org>
9789
9790         Split C++ tests into separate tests modules.
9791         * modules/dirent-c++-tests: New file, extracted from
9792         modules/dirent-tests.
9793         * modules/dirent-tests: Depend on it.
9794         * modules/fcntl-h-c++-tests: New file, extracted from
9795         modules/fcntl-h-tests.
9796         * modules/fcntl-h-tests: Depend on it.
9797         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
9798         * modules/glob-tests: Depend on it.
9799         * modules/iconv-h-c++-tests: New file, extracted from
9800         modules/iconv-h-tests.
9801         * modules/iconv-h-tests: Depend on it.
9802         * modules/langinfo-c++-tests: New file, extracted from
9803         modules/langinfo-tests.
9804         * modules/langinfo-tests: Depend on it.
9805         * modules/locale-c++-tests: New file, extracted from
9806         modules/locale-tests.
9807         * modules/locale-tests: Depend on it.
9808         * modules/math-c++-tests: New file, extracted from modules/math-tests.
9809         * modules/math-tests: Depend on it.
9810         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
9811         * modules/pty-tests: Depend on it.
9812         * modules/search-c++-tests: New file, extracted from
9813         modules/search-tests.
9814         * modules/search-tests: Depend on it.
9815         * modules/signal-c++-tests: New file, extracted from
9816         modules/signal-tests.
9817         * modules/signal-tests: Depend on it.
9818         * modules/spawn-c++-tests: New file, extracted from
9819         modules/spawn-tests.
9820         * modules/spawn-tests: Depend on it.
9821         * modules/stdio-c++-tests: New file, extracted from
9822         modules/stdio-tests.
9823         * modules/stdio-tests: Depend on it.
9824         * modules/stdlib-c++-tests: New file, extracted from
9825         modules/stdlib-tests.
9826         * modules/stdlib-tests: Depend on it.
9827         * modules/string-c++-tests: New file, extracted from
9828         modules/string-tests.
9829         * modules/string-tests: Depend on it.
9830         * modules/sys_ioctl-c++-tests: New file, extracted from
9831         modules/sys_ioctl-tests.
9832         * modules/sys_ioctl-tests: Depend on it.
9833         * modules/sys_select-c++-tests: New file, extracted from
9834         modules/sys_select-tests.
9835         * modules/sys_select-tests: Depend on it.
9836         * modules/sys_socket-c++-tests: New file, extracted from
9837         modules/sys_socket-tests.
9838         * modules/sys_socket-tests: Depend on it.
9839         * modules/sys_stat-c++-tests: New file, extracted from
9840         modules/sys_stat-tests.
9841         * modules/sys_stat-tests: Depend on it.
9842         * modules/sys_time-c++-tests: New file, extracted from
9843         modules/sys_time-tests.
9844         * modules/sys_time-tests: Depend on it.
9845         * modules/time-c++-tests: New file, extracted from modules/time-tests.
9846         * modules/time-tests: Depend on it.
9847         * modules/unistd-c++-tests: New file, extracted from
9848         modules/unistd-tests.
9849         * modules/unistd-tests: Depend on it.
9850         * modules/wchar-c++-tests: New file, extracted from
9851         modules/wchar-tests.
9852         * modules/wchar-tests: Depend on it.
9853         * modules/wctype-c++-tests: New file, extracted from
9854         modules/wctype-tests.
9855         * modules/wctype-tests: Depend on it.
9856         Reported by Simon Josefsson.
9857
9858 2010-03-28  Bruno Haible  <bruno@clisp.org>
9859
9860         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
9861         * gnulib-tool (func_exists_module): New function, extracted from
9862         func_verify_module.
9863         (func_verify_module): Use it.
9864         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
9865         'foo' only if 'foo' exists.
9866         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
9867         module.
9868
9869 2010-03-28  Bruno Haible  <bruno@clisp.org>
9870
9871         gnulib-tool: Add support for special categories of tests.
9872         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
9873         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
9874         (func_usage): Document them.
9875         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
9876         inc_unportable_tests, inc_all_tests): New variables.
9877         (func_acceptable): Consider these variables.
9878         (func_modules_transitive_closure): Make it work when the 'Status' field
9879         consists of multiple words.
9880         (func_import): Store and restore the values of inc_cxx_tests,
9881         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
9882         inc_all_tests in gnulib-comp.m4.
9883         (func_create_testdir): Set inc_all_tests to true.
9884         * doc/gnulib.texi (Extra tests modules): New section.
9885         Suggested by Jim Meyering.
9886
9887 2010-03-28  Bruno Haible  <bruno@clisp.org>
9888
9889         ansi-c++-opt: Allow turning off the C++ build by default.
9890         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
9891         gl_CXX_CHOICE_DEFAULT_NO is defined.
9892         Requested by Eric Blake.
9893
9894 2010-03-28  Bruno Haible  <bruno@clisp.org>
9895
9896         unistd: Avoid #define replacements in C++ mode.
9897         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9898         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9899         setsockopt, shutdown, select): In C++, attach a warning to the function
9900         if possible, rather than #defining the symbol to a dysfunctional alias.
9901         Reported by John W. Eaton <jwe@gnu.org>.
9902
9903 2010-03-28  Bruno Haible  <bruno@clisp.org>
9904
9905         Fix link errors on mingw.
9906         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
9907         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
9908         $(LIBSOCKET).
9909         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
9910         $(LIBSOCKET).
9911
9912 2010-03-28  Bruno Haible  <bruno@clisp.org>
9913             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9914
9915         lib-ignore: Determine different options for different compilers.
9916         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
9917         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
9918         Add comments.
9919         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
9920         * NEWS: Mention the change.
9921
9922 2010-03-27  Bruno Haible  <bruno@clisp.org>
9923
9924         Remove unused GNULIB_XYZ macro definitions.
9925         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
9926         * modules/fseek (configure.ac): Likewise.
9927         * modules/ioctl (configure.ac): Likewise.
9928         * modules/open (configure.ac): Likewise.
9929         * modules/stdlib-safer (configure.ac): Likewise.
9930
9931 2010-03-27  Bruno Haible  <bruno@clisp.org>
9932
9933         Add a remark about certain modules.
9934         * modules/malloc (Comment): New section.
9935         * modules/realloc (Comment): Likewise.
9936         * modules/sigpipe (Comment): Likewise.
9937
9938 2010-03-27  Bruno Haible  <bruno@clisp.org>
9939
9940         Resolve conflict between the two kinds of module indicators.
9941         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
9942         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
9943         * modules/canonicalize (configure.ac): Invoke
9944         gl_MODULE_INDICATOR_FOR_TESTS.
9945         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
9946         GNULIB_XYZ.
9947         * tests/test-dirent-c++.cc: Likewise.
9948         * tests/test-dirent-safer.c: Likewise.
9949         * tests/test-dup2.c: Likewise.
9950         * tests/test-fchdir.c: Likewise.
9951         * tests/test-fcntl-h-c++.cc: Likewise.
9952         * tests/test-getopt.c: Likewise.
9953         * tests/test-getopt.h: Likewise.
9954         * tests/test-langinfo-c++.cc: Likewise.
9955         * tests/test-locale-c++.cc: Likewise.
9956         * tests/test-math-c++.cc: Likewise.
9957         * tests/test-pty-c++.cc: Likewise.
9958         * tests/test-search-c++.cc: Likewise.
9959         * tests/test-signal-c++.cc: Likewise.
9960         * tests/test-spawn-c++.cc: Likewise.
9961         * tests/test-stdio-c++.cc: Likewise.
9962         * tests/test-stdlib-c++.cc: Likewise.
9963         * tests/test-string-c++.cc: Likewise.
9964         * tests/test-sys_ioctl-c++.cc: Likewise.
9965         * tests/test-sys_select-c++.cc: Likewise.
9966         * tests/test-sys_socket-c++.cc: Likewise.
9967         * tests/test-sys_stat-c++.cc: Likewise.
9968         * tests/test-sys_time-c++.cc: Likewise.
9969         * tests/test-time-c++.cc: Likewise.
9970         * tests/test-unistd-c++.cc: Likewise.
9971         * tests/test-wchar-c++.cc: Likewise.
9972         * tests/uninorm/test-u8-nfc.c: Likewise.
9973         * tests/uninorm/test-u8-nfd.c: Likewise.
9974         * tests/uninorm/test-u8-nfkc.c: Likewise.
9975         * tests/uninorm/test-u8-nfkd.c: Likewise.
9976         * tests/uninorm/test-u16-nfc.c: Likewise.
9977         * tests/uninorm/test-u16-nfd.c: Likewise.
9978         * tests/uninorm/test-u16-nfkc.c: Likewise.
9979         * tests/uninorm/test-u16-nfkd.c: Likewise.
9980         * tests/uninorm/test-u32-nfc.c: Likewise.
9981         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9982         * tests/uninorm/test-u32-nfd.c: Likewise.
9983         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9984         * tests/uninorm/test-u32-nfkc.c: Likewise.
9985         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9986         * tests/uninorm/test-u32-nfkd.c: Likewise.
9987         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9988         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9989
9990 2010-03-27  Bruno Haible  <bruno@clisp.org>
9991
9992         Distinguish two kinds of module indicators.
9993         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
9994         gl_MODULE_INDICATOR.
9995         (gl_MODULE_INDICATOR): New macro.
9996         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9997         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
9998         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9999         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10000         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10001         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10002         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10003         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10004         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10005         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10006         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10007         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10008         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10010         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10012         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10013         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10014         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10015         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10016         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10017         * modules/cloexec (configure.ac): Likewise.
10018         * modules/getopt-gnu (configure.ac): Likewise.
10019         * modules/uninorm/u8-normalize (configure.ac): Likewise.
10020         * modules/uninorm/u16-normalize (configure.ac): Likewise.
10021         * modules/uninorm/u32-normalize (configure.ac): Likewise.
10022         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
10023
10024 2010-03-27  Bruno Haible  <bruno@clisp.org>
10025
10026         New module description field 'Comment'.
10027         * gnulib-tool: New option --extract-comment.
10028         (func_usage): Document it.
10029         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
10030         (func_get_comment): New function.
10031         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
10032
10033 2010-03-27  Bruno Haible  <bruno@clisp.org>
10034
10035         Addendum to 2010-02-07 commit.
10036         * gnulib-tool (func_usage): Document --extract-applicability option.
10037
10038 2010-03-27  Bruno Haible  <bruno@clisp.org>
10039
10040         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
10041         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
10042         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
10043         rather than link errors.
10044
10045 2010-03-27  Bruno Haible  <bruno@clisp.org>
10046
10047         Avoid side effects from tests-related modules on the compilation of lib.
10048         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
10049         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
10050         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
10051         parameter. Emit into AM_CPPFLAGS a definition of the designated C
10052         macro.
10053         (func_import): Define a witness macro. Assign it a value that depends
10054         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
10055         tests-related modules.
10056         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
10057         Reported by Jim Meyering.
10058
10059 2010-03-27  Bruno Haible  <bruno@clisp.org>
10060
10061         Factorize common .m4 code.
10062         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
10063         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
10064         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
10065         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
10066         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
10067         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
10068         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
10069         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
10070         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
10071         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
10072         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
10073         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
10074         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
10075         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
10076         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
10077         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
10078         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
10079         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
10080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
10081         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
10082         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
10083         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
10084         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
10085         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
10086         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
10087         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
10088         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
10089         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
10090         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
10091         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
10092         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
10093         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
10094
10095 2010-03-27  Bruno Haible  <bruno@clisp.org>
10096
10097         Fix a compilation error on Cygwin with g++ >= 4.3.
10098         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
10099         if it is undefined or if we alias it to chmod.
10100         (lstat): Don't warn about the use of this function if it is undefined
10101         or if we alias it to stat.
10102         Reported by Simon Josefsson.
10103
10104 2010-03-27  Bruno Haible  <bruno@clisp.org>
10105
10106         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
10107         * modules/getlogin (configure.ac): Update.
10108
10109         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
10110         * modules/getlogin_r (configure.ac): Update.
10111
10112         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
10113         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
10114         * modules/inet_ntop (configure.ac): Update.
10115
10116         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
10117         * modules/inet_pton (configure.ac): Update.
10118
10119         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
10120         * modules/mbslen (configure.ac): Update.
10121
10122         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
10123         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
10124         * modules/forkpty (configure.ac): Update.
10125         * modules/openpty (configure.ac): Update.
10126
10127 2010-03-26  Simon Josefsson  <simon@josefsson.org>
10128
10129         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
10130         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
10131
10132 2010-03-25  Eric Blake  <eblake@redhat.com>
10133
10134         maint: use pragma consistently across replacement headers
10135         * lib/ctype.in.h (system_header): Hoist for consistent placement.
10136         * lib/dirent.in.h (system_header): Likewise.
10137         * lib/errno.in.h (system_header): Likewise.
10138         * lib/float.in.h (system_header): Likewise.
10139         * lib/getopt.in.h (system_header): Likewise.
10140         * lib/iconv.in.h (system_header): Likewise.
10141         * lib/inttypes.in.h (system_header): Likewise.
10142         * lib/langinfo.in.h (system_header): Likewise.
10143         * lib/locale.in.h (system_header): Likewise.
10144         * lib/math.in.h (system_header): Likewise.
10145         * lib/netdb.in.h (system_header): Likewise.
10146         * lib/netinet_in.in.h (system_header): Likewise.
10147         * lib/pty.in.h (system_header): Likewise.
10148         * lib/sched.in.h (system_header): Likewise.
10149         * lib/se-selinux.in.h (system_header): Likewise.
10150         * lib/search.in.h (system_header): Likewise.
10151         * lib/spawn.in.h (system_header): Likewise.
10152         * lib/stdarg.in.h (system_header): Likewise.
10153         * lib/stdint.in.h (system_header): Likewise.
10154         * lib/string.in.h (system_header): Likewise.
10155         * lib/strings.in.h (system_header): Likewise.
10156         * lib/sys_file.in.h (system_header): Likewise.
10157         * lib/sys_ioctl.in.h (system_header): Likewise.
10158         * lib/sys_socket.in.h (system_header): Likewise.
10159         * lib/sys_times.in.h (system_header): Likewise.
10160         * lib/sys_utsname.in.h (system_header): Likewise.
10161         * lib/sys_wait.in.h (system_header): Likewise.
10162         * lib/sysexits.in.h (system_header): Likewise.
10163         * lib/unistd.in.h (system_header): Likewise.
10164         * lib/wctype.in.h (system_header): Likewise.
10165
10166         arpa/inet: fix mingw compilation warning
10167         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
10168         Reported by Matthew Bolte.
10169
10170 2010-03-25  Bruno Haible  <bruno@clisp.org>
10171
10172         Avoid collision between gnulib wrapper and libintl wrapper.
10173         * lib/printf.c (printf): Don't define if a printf wrapper is already
10174         defined in intl/printf.c.
10175         Reported by Michel Boaventura <michel@michelboaventura.com>.
10176
10177 2010-03-25  Bruno Haible  <bruno@clisp.org>
10178
10179         Use ANSI C.
10180         * lib/readutmp.h (getutent): Provide ANSI C prototype.
10181
10182 2010-03-25  Bruno Haible  <bruno@clisp.org>
10183
10184         Minor formatting changes.
10185         * lib/acosl.c: Insert space before function argument list.
10186         * lib/argz.c: Likewise.
10187         * lib/asinl.c: Likewise.
10188         * lib/expl.c: Likewise.
10189         * lib/gen-uni-tables.c: Likewise.
10190         * lib/gettext.h: Likewise.
10191         * lib/glthread/lock.h: Likewise.
10192         * lib/tanl.c: Likewise.
10193         * lib/uniname/uniname.c: Likewise.
10194         * tests/test-idpriv-drop.c: Likewise.
10195         * tests/test-idpriv-droptemp.c: Likewise.
10196         * tests/test-lock.c: Likewise.
10197         * tests/test-tls.c: Likewise.
10198         * lib/argp-help.c: Insert space before function-like macro argument
10199         list.
10200         * lib/memcmp.c: Likewise.
10201         * tests/test-base64.c: Likewise.
10202         * lib/localename.c: Insert space before sizeof's argument list.
10203         * lib/safe-alloc.h: Likewise.
10204         * lib/file-set.h: Insert space before macro argument list.
10205         * tests/test-argp.c: Likewise.
10206         * lib/argp-namefrob.h: Insert space before function parameter list.
10207         * lib/getaddrinfo.c: Likewise.
10208         * lib/netdb.in.h: Likewise.
10209         * lib/parse-duration.h: Likewise.
10210         * lib/parse-duration.c: Likewise.
10211         * lib/poll.c: Likewise.
10212         * lib/select.c: Likewise.
10213         * lib/trim.h: Likewise.
10214         * tests/test-usleep.c: Likewise.
10215         * lib/ldexpl.c: Insert space before function parameter list and before
10216         function argument list.
10217         * lib/logl.c: Likewise.
10218         * lib/sqrtl.c: Likewise.
10219         * lib/trim.c: Likewise.
10220         * lib/cosl.c: Use GNU style indentation. Insert space before function
10221         argument list.
10222         * lib/sinl.c: Likewise.
10223         * lib/tsearch.c: Insert space after 'for'.
10224         Reported by Jim Meyering.
10225
10226 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
10227
10228         * maint.mk (sc_Wundef_boolean): Check for the presence of the
10229         config header before grepping, as it's not present before
10230         autoreconf/configure are run.  Reported by Simon Josefsson.
10231
10232 2010-03-23  Bruno Haible  <bruno@clisp.org>
10233
10234         pt_chown: Make it work with automake < 1.11.
10235         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
10236         Reported by Simon Josefsson.
10237
10238 2010-03-23  Bruno Haible  <bruno@clisp.org>
10239
10240         pt_chown: Don't depend on GPLed modules.
10241         * lib/pt_chown.c: Don't include idpriv.h.
10242         (main): Don't drop privileges.
10243         * modules/pt_chown (Depends-on): Remove idpriv-drop.
10244         Reported by Simon Josefsson.
10245
10246 2010-03-24  Simon Josefsson  <simon@josefsson.org>
10247
10248         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
10249         suggestions from karl@freefriends.org (Karl Berry).
10250
10251 2010-03-22  Eric Blake  <eblake@redhat.com>
10252
10253         gethostname: further tweaks
10254         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
10255         are overriding gethostname.
10256         Suggested by Bruno Haible.
10257
10258 2010-03-21  Bruno Haible  <bruno@clisp.org>
10259
10260         Fix comments.
10261         * lib/forkpty.c (rpl_forkpty): Fix comment.
10262         * lib/openpty.c (rpl_openpty): Likewise.
10263         Reported by Eric Blake.
10264
10265 2010-03-22  Eric Blake  <eblake@redhat.com>
10266
10267         gethostname: fix build on mingw
10268         * lib/unistd.in.h (includes): Work around fact that mingw
10269         <winsock2.h> re-includes <unistd.h>, by avoiding any
10270         redeclarations if we are being included by <winsock2.h>.
10271         Reported by Matthias Bolte.
10272
10273 2010-03-21  Bruno Haible  <bruno@clisp.org>
10274
10275         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10276         * lib/forkpty.c (forkpty): New replacement function, from glibc with
10277         modifications.
10278         * lib/pty.in.h (forkpty): Update declaration. Add comments.
10279         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
10280         provide the replacement.
10281         * modules/forkpty (Depends-on): Add openpty, login_tty.
10282         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
10283         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
10284         * doc/glibc-functions/forkpty.texi: More supported platforms.
10285         * config/srclist.txt: Add forkpty.c (commented).
10286
10287 2010-03-21  Bruno Haible  <bruno@clisp.org>
10288
10289         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
10290         (Makefile.am): Verify that PTY_LIB is defined.
10291
10292         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
10293
10294 2010-03-21  Bruno Haible  <bruno@clisp.org>
10295
10296         Tests for module 'login_tty'.
10297         * modules/login_tty-tests: New file.
10298         * tests/test-login_tty.c: New file.
10299
10300         New module 'login_tty'.
10301         * lib/login_tty.c: New file.
10302         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
10303         * modules/login_tty: New file.
10304         * doc/glibc-functions/login_tty.texi: Mention the new module.
10305
10306 2010-03-21  Bruno Haible  <bruno@clisp.org>
10307
10308         login_tty: Documentation.
10309         * doc/glibc-functions/login_tty.texi: New file.
10310         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
10311
10312 2010-03-21  Bruno Haible  <bruno@clisp.org>
10313
10314         pty: Consistent macro naming.
10315         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
10316         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
10317         * modules/pty (configure.ac): Update.
10318
10319 2010-03-21  Bruno Haible  <bruno@clisp.org>
10320
10321         Tests for openpty: Make stricter.
10322         * tests/test-openpty.c (main): Add test of canonical processing and
10323         erase.
10324         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
10325
10326         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
10327         * lib/openpty.c (openpty): New replacement function.
10328         * lib/pty.in.h: Include <termios.h>.
10329         (openpty): Update declaration. Add comments.
10330         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
10331         is not declared, arrange to provide the replacement. Check for _getpty
10332         and posix_openpt.
10333         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
10334         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
10335         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
10336         * modules/pty-tests (test_pty_c___LDADD): New variable.
10337         * doc/glibc-functions/openpty.texi: More supported platforms.
10338
10339 2010-03-21  Bruno Haible  <bruno@clisp.org>
10340
10341         setenv: Tweaks.
10342         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
10343         the test program.
10344         * doc/posix-functions/setenv.texi: Update platforms list.
10345
10346 2010-03-21  Bruno Haible  <bruno@clisp.org>
10347
10348         New module 'unlockpt'.
10349         * lib/unlockpt.c: New file, from glibc with modifications.
10350         * m4/unlockpt.m4: New file.
10351         * modules/unlockpt: New file.
10352         * lib/stdlib.in.h (unlockpt): New declaration.
10353         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
10354         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
10355         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
10356         HAVE_UNLOCKPT.
10357         * doc/posix-functions/unlockpt.texi: Mention the new module.
10358         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
10359         * config/srclist.txt: Add unlockpt.c (commented).
10360
10361 2010-03-21  Jim Meyering  <meyering@redhat.com>
10362
10363         maint.mk: prohibit inclusion of "intprops.h" without use
10364         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
10365
10366 2010-03-21  Bruno Haible  <bruno@clisp.org>
10367
10368         New module 'grantpt'.
10369         * lib/grantpt.c: New file, from glibc with modifications.
10370         * m4/grantpt.m4: New file.
10371         * modules/grantpt: New file.
10372         * lib/stdlib.in.h (grantpt): New declaration.
10373         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
10374         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
10375         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
10376         HAVE_GRANTPT.
10377         * doc/posix-functions/grantpt.texi: Mention the new module.
10378         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
10379         * config/srclist.txt: Add grantpt.c (commented).
10380
10381 2010-03-21  Bruno Haible  <bruno@clisp.org>
10382
10383         New module 'pt_chown'.
10384         * lib/pt_chown.c: New file, from glibc with modifications.
10385         * lib/pty-private.h: New file, from glibc with modifications.
10386         * modules/pt_chown: New file.
10387         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
10388
10389 2010-03-21  Bruno Haible  <bruno@clisp.org>
10390
10391         Tests for module 'ptsname'.
10392         * modules/ptsname-tests: New file.
10393         * tests/test-ptsname.c: New file.
10394
10395         New module 'ptsname'.
10396         * lib/ptsname.c: New file, from glibc with modifications.
10397         * m4/ptsname.m4: New file.
10398         * modules/ptsname: New file.
10399         * lib/stdlib.in.h (ptsname): New declaration.
10400         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
10401         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
10402         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
10403         HAVE_PTSNAME.
10404         * doc/posix-functions/ptsname.texi: Mention the new module.
10405         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
10406         * config/srclist.txt: Add ptsname.c (commented).
10407
10408 2010-03-21  Bruno Haible  <bruno@clisp.org>
10409
10410         Tests for module 'ttyname_r'.
10411         * modules/ttyname_r-tests: New file.
10412         * tests/test-ttyname_r.c: New file.
10413
10414         New module 'ttyname_r'.
10415         * lib/ttyname_r.c: New file.
10416         * m4/ttyname_r.m4: New file.
10417         * modules/ttyname_r: New file.
10418         * lib/unistd.in.h (ttyname_r): New declaration.
10419         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
10420         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
10421         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
10422         HAVE_TTYNAME_R.
10423         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
10424         * doc/posix-functions/ttyname_r.texi: Mention the new module.
10425
10426 2010-03-20  Bruno Haible  <bruno@clisp.org>
10427
10428         signal: Undefine macro definitions in C++ mode.
10429         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
10430         sigfillset): Undefine macro definitions from the system header in C++
10431         mode.
10432         Reported by John W. Eaton <jwe@gnu.org>.
10433
10434 2010-03-20  Bruno Haible  <bruno@clisp.org>
10435
10436         Ensure no #include statements inside extern "C" { ... }.
10437         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
10438         contain #include statements.
10439         * lib/time.in.h: Likewise.
10440
10441 2010-03-20  Bruno Haible  <bruno@clisp.org>
10442
10443         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
10444         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
10445         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
10446         Reported by John W. Eaton <jwe@gnu.org>.
10447
10448 2010-03-20  Bruno Haible  <bruno@clisp.org>
10449
10450         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
10451         Reported by Jim Meyering.
10452
10453 2010-03-20  Bruno Haible  <bruno@clisp.org>
10454
10455         pipe: Set errno upon failure.
10456         * lib/pipe.h: Specify that when -1 is returned, errno is set.
10457         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
10458         errno value in error message.
10459
10460 2010-03-20  Bruno Haible  <bruno@clisp.org>
10461             Jim Meyering  <meyering@redhat.com>
10462
10463         lchown: Avoid "unused variable" warning.
10464         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
10465
10466 2010-03-20  Bruno Haible  <bruno@clisp.org>
10467
10468         Work around unlink() bug on MacOS X 10.5.6.
10469         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
10470         attempting to unlink a parent directory.
10471         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
10472         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
10473         activate for the replacement function.
10474         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
10475
10476 2010-03-20  Bruno Haible  <bruno@clisp.org>
10477
10478         Fix link errors on Solaris 8.
10479         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
10480         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
10481
10482 2010-03-19  Jim Meyering  <meyering@redhat.com>
10483
10484         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
10485         The _LIBC implementation of build_range_exp correctly honors the
10486         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
10487         However, the non-_LIBC implementation would ignore that syntax-bit
10488         flag and return REG_ERANGE unconditionally.
10489         This change makes it honor that flag.
10490         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
10491         Make two pointer parameters "const".
10492         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
10493         (parse_bracket_exp): Update caller.
10494
10495         regex.m4: correct the reversed range endpoint ([b-a]) test
10496         * m4/regex.m4: When requiring that [b-a] evoke failure,
10497         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
10498         test pass once again for x86-based systems.
10499
10500 2010-03-19  Bruno Haible  <bruno@clisp.org>
10501
10502         scandir: Fix link error on Solaris 8.
10503         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
10504         macros.
10505
10506 2010-03-19  Bruno Haible  <bruno@clisp.org>
10507
10508         getusershell: Fix documentation.
10509         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
10510         module.
10511         * doc/glibc-functions/setusershell.texi: Likewise.
10512
10513         getusershell: Provide declaration, missing on Solaris 9.
10514         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
10515         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
10516         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
10517         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
10518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10519         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
10520         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
10521         HAVE_GETUSERSHELL.
10522         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
10523
10524 2010-03-19  Bruno Haible  <bruno@clisp.org>
10525
10526         wctype: Provide iswblank function.
10527         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
10528         exists and is fine.
10529         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
10530         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
10531         * tests/test-wctype.c (main): Re-enable the iswblank tests.
10532         * doc/posix-functions/iswblank.texi: Update.
10533
10534 2010-03-19  Bruno Haible  <bruno@clisp.org>
10535
10536         Tests of module 'pty' in C++ mode.
10537         * modules/pty-tests: New file.
10538         * tests/test-pty-c++.cc: New file.
10539         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10540
10541 2010-03-19  Eric Blake  <eblake@redhat.com>
10542
10543         logb: fix documentation
10544         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
10545         1.5 declaration bug.
10546
10547         forkpty, openpty: prefer glibc's const-safe prototype
10548         * lib/forkpty.c (rpl_forkpty): New file.
10549         * lib/openpty.c (rpl_openpty): Likewise.
10550         * modules/forkpty (Files): Distribute it.
10551         * modules/openpty (Files): Likewise.
10552         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
10553         check...
10554         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
10555         replacement for for non-const BSD signature.
10556         * modules/pty (Makefile.am): Substitute witnesses.
10557         * lib/pty.in.h (forkpty, openpty): Declare replacements.
10558         * tests/test-forkpty.c: Update signature check.
10559         * tests/test-openpty.c: Likewise.
10560         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
10561         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10562
10563         forkpty, openpty: split functions into new modules
10564         * modules/pty (Makefile.am): Substitute new witnesses.
10565         (Libraries): Move library detection...
10566         * modules/forkpty: ...into new module.
10567         * modules/openpty: Another new module.
10568         * modules/pty-tests: Rename and split...
10569         * modules/forkpty-tests: ...to this...
10570         * modules/openpty-tests: ...and this.
10571         * tests/test-pty.c: Rename and split...
10572         * tests/test-forkpty.c: ...to this...
10573         * tests/test-openpty.c: ...and this.
10574         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
10575         (gl_PTY): Split library searching...
10576         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
10577         (gl_FORKPTY, gl_OPENPTY): New macros.
10578         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
10579         * NEWS: Mention the split.
10580         * MODULES.html.sh (Misc): Document the modules.
10581         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
10582         * doc/glibc-functions/openpty.texi (openpty): Likewise.
10583
10584         pty: improve replacement header
10585         * lib/pty.in.h: New file.
10586         * modules/pty (Files): Ship it.
10587         (Makefile.am): Always build replacement.
10588         * m4/pty.m4: Rename...
10589         * m4/pty_h.m4: ...to this.
10590         (gl_PTY): Modernize setting of witness macros; update check of
10591         forkpty to take proper advantage of cache.
10592         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
10593
10594         getopt: avoid compiler warning
10595         * lib/getopt.c (attribute_hidden): Remove unused macro.
10596
10597 2010-03-18  Bruno Haible  <bruno@clisp.org>
10598
10599         Fix link errors on Solaris 8.
10600         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
10601         * modules/search-tests (test_search_c___LDADD): Likewise.
10602         * modules/signal-tests (test_signal_c___LDADD): Likewise.
10603         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
10604         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
10605         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
10606         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
10607         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
10608         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
10609
10610 2010-03-18  Bruno Haible  <bruno@clisp.org>
10611
10612         Fix bug introduced on 2010-03-14.
10613         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
10614         (gl_SPAWN_H): Require it.
10615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
10616         Reported by Simon Josefsson.
10617
10618 2010-03-18  Bruno Haible  <bruno@clisp.org>
10619
10620         Fix typo introduced on 2009-12-31.
10621         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
10622         posix_spawn_file_actions_adddup2.
10623
10624 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
10625         and Eric Blake  <eblake@redhat.com>
10626
10627         test-vc-list-files-git: make more robust
10628         * tests/test-vc-list-files-git.sh: Unset problematic environment
10629         variables.  Chain commands together.
10630
10631 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
10632
10633         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
10634         `AC_CHECK_DECL' invocation.
10635
10636 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
10637
10638         * lib/inttostr.c (inttostr): Make sure the invocation of verify
10639         appears before executable statements. Suggested by Petr Sumbera
10640         <Petr.Sumbera@Sun.COM>.
10641
10642 2010-03-14  Bruno Haible  <bruno@clisp.org>
10643
10644         * tests/test-flock.c (test_exclusive): Comment out a test that causes
10645         portability problems. Instead use a simpler test.
10646         (main): Check that invalid arguments are rejected only on Linux.
10647
10648 2010-03-14  Bruno Haible  <bruno@clisp.org>
10649
10650         Fix bug introduced on 2009-12-31.
10651         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10652         gl_PREREQ_SYS_H_WINSOCK2 always.
10653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
10654         SYS_SOCKET_H variable.
10655         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
10656         Update comments.
10657         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
10658         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10659         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10661         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10662
10663 2010-03-14  Bruno Haible  <bruno@clisp.org>
10664
10665         Fix values returned by sinl, cosl.
10666         * lib/trigl.h: Add specification comments.
10667         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
10668         that combines the values from the precomputed table with the values of
10669         the Chebyshev polynomials.
10670
10671 2010-03-14  Bruno Haible  <bruno@clisp.org>
10672
10673         Fix compilation error when modules 'posix_spawn[p]' are not used.
10674         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
10675         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
10676
10677 2010-03-14  Bruno Haible  <bruno@clisp.org>
10678
10679         Fix compilation error on mingw when module 'time_r' is not used.
10680         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
10681         is 1.
10682         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
10683         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
10684         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
10685         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
10686
10687 2010-03-14  Bruno Haible  <bruno@clisp.org>
10688
10689         Fix compilation error with Sun C.
10690         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
10691         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
10692         instead of GCC specific ULONG_LONG_MAX.
10693         * lib/xstrtoll.c: Likewise.
10694         * lib/xstrtoull.c: Likewise.
10695
10696 2010-03-13  Bruno Haible  <bruno@clisp.org>
10697
10698         Allow the user to disable C++ code and tests.
10699         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
10700         (gl_PROG_ANSI_CXX): Require it.
10701
10702 2010-03-13  Bruno Haible  <bruno@clisp.org>
10703
10704         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
10705         cases.
10706
10707 2010-03-13  Bruno Haible  <bruno@clisp.org>
10708
10709         Test that gnulib does not break the standard C++ headers.
10710         * tests/test-locale-c++2.cc: New file.
10711         * modules/locale-tests (Files): Add it.
10712         (Makefile.am): Compile it for test-locale-c++.
10713         * tests/test-math-c++2.cc: New file.
10714         * modules/math-tests (Files): Add it.
10715         (Makefile.am): Compile it for test-math-c++.
10716         * tests/test-signal-c++2.cc: New file.
10717         * modules/signal-tests (Files): Add it.
10718         (Makefile.am): Compile it for test-signal-c++.
10719         * tests/test-stdio-c++2.cc: New file.
10720         * modules/stdio-tests (Files): Add it.
10721         (Makefile.am): Compile it for test-stdio-c++.
10722         * tests/test-stdlib-c++2.cc: New file.
10723         * modules/stdlib-tests (Files): Add it.
10724         (Makefile.am): Compile it for test-stdlib-c++.
10725         * tests/test-string-c++2.cc: New file.
10726         * modules/string-tests (Files): Add it.
10727         (Makefile.am): Compile it for test-string-c++.
10728         * tests/test-time-c++2.cc: New file.
10729         * modules/time-tests (Files): Add it.
10730         (Makefile.am): Compile it for test-time-c++.
10731         Reported by John W. Eaton <jwe@gnu.org>.
10732
10733 2010-03-13  Bruno Haible  <bruno@clisp.org>
10734
10735         * gnulib-tool (func_usage): Clarify which options are available for
10736         --create-testdir and --create-megatestdir.
10737
10738 2010-03-13  Bruno Haible  <bruno@clisp.org>
10739
10740         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
10741         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
10742         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
10743         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10744         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
10745         when appropriate.
10746         Reported by Jim Meyering.
10747
10748 2010-03-12  Simon Josefsson  <simon@josefsson.org>
10749
10750         * gnulib-tool (func_import): Explain origin of code.
10751
10752 2010-03-12  Bruno Haible  <bruno@clisp.org>
10753
10754         Fix problem with automake's definition of CXXLINK.
10755         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
10756         Reported by Simon Josefsson and Ludovic Courtès.
10757
10758 2010-03-12  Bruno Haible  <bruno@clisp.org>
10759
10760         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
10761         stable releases.
10762
10763 2010-03-11  Bruno Haible  <bruno@clisp.org>
10764
10765         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
10766         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
10767         whether the system provides one variant or multiple variants of the
10768         function.
10769         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
10770         C++ compilers.
10771         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
10772         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
10773         Reported by Jim Meyering.
10774
10775 2010-03-09  Simon Josefsson  <simon@josefsson.org>
10776
10777         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
10778
10779 2010-03-08  Bruno Haible  <bruno@clisp.org>
10780
10781         gnulib-tool: Add support for --libtool in --create-testdir.
10782         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
10783         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
10784
10785 2010-03-08  Eric Blake  <eblake@redhat.com>
10786
10787         gnulib-tool.texi: mention possibility of git submodule
10788         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
10789         submodules.
10790         * doc/.gitignore: Ignore another generated file.
10791
10792 2010-03-08  Karl Berry  <karl@gnu.org>
10793
10794         * doc/gnulib-tool.texi (VCS Issues): Mention third option
10795         of committing gnulib files while skipping others.
10796
10797 2010-03-07  Bruno Haible  <bruno@clisp.org>
10798
10799         Tests of module 'wctype' in C++ mode.
10800         * tests/test-wctype-c++.cc: New file.
10801         * modules/wctype-tests (Files): Add it and tests/signature.h.
10802         (Depends-on): Add ansi-c++-opt.
10803         (Makefile.am): Arrange to compile and run test-wctype-c++.
10804
10805         Tests of module 'wchar' in C++ mode.
10806         * tests/test-wchar-c++.cc: New file.
10807         * modules/wchar-tests (Files): Add it and tests/signature.h.
10808         (Depends-on): Add ansi-c++-opt.
10809         (Makefile.am): Arrange to compile and run test-wchar-c++.
10810         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
10811         gl_MODULE_INDICATOR.
10812
10813         Tests of module 'unistd' in C++ mode.
10814         * tests/test-unistd-c++.cc: New file.
10815         * modules/unistd-tests (Files): Add it and tests/signature.h.
10816         (Depends-on): Add ansi-c++-opt.
10817         (Makefile.am): Arrange to compile and run test-unistd-c++.
10818         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
10819         gl_MODULE_INDICATOR.
10820
10821         Tests of module 'time' in C++ mode.
10822         * tests/test-time-c++.cc: New file.
10823         * modules/time-tests (Files): Add it and tests/signature.h.
10824         (Depends-on): Add ansi-c++-opt.
10825         (Makefile.am): Arrange to compile and run test-time-c++.
10826         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10827
10828         Tests of module 'sys_time' in C++ mode.
10829         * tests/test-sys_time-c++.cc: New file.
10830         * modules/sys_time-tests (Files): Add it and tests/signature.h.
10831         (Depends-on): Add ansi-c++-opt.
10832         (Makefile.am): Arrange to compile and run test-sys_time-c++.
10833         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
10834         gl_MODULE_INDICATOR.
10835
10836         Tests of module 'sys_stat' in C++ mode.
10837         * tests/test-sys_stat-c++.cc: New file.
10838         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
10839         (Depends-on): Add ansi-c++-opt.
10840         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
10841         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
10842         gl_MODULE_INDICATOR.
10843
10844         Tests of module 'sys_socket' in C++ mode.
10845         * tests/test-sys_socket-c++.cc: New file.
10846         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
10847         (Depends-on): Add ansi-c++-opt.
10848         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
10849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
10850         gl_MODULE_INDICATOR.
10851
10852         Tests of module 'sys_select' in C++ mode.
10853         * tests/test-sys_select-c++.cc: New file.
10854         * modules/sys_select-tests (Files): Add it and tests/signature.h.
10855         (Depends-on): Add ansi-c++-opt.
10856         (Makefile.am): Arrange to compile and run test-sys_select-c++.
10857         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
10858         gl_MODULE_INDICATOR.
10859
10860         Tests of module 'sys_ioctl' in C++ mode.
10861         * tests/test-sys_ioctl-c++.cc: New file.
10862         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
10863         (Depends-on): Add ansi-c++-opt.
10864         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
10865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
10866         gl_MODULE_INDICATOR.
10867
10868         Tests of module 'string' in C++ mode.
10869         * tests/test-string-c++.cc: New file.
10870         * modules/string-tests (Files): Add it and tests/signature.h.
10871         (Depends-on): Add ansi-c++-opt.
10872         (Makefile.am): Arrange to compile and run test-string-c++.
10873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
10874         gl_MODULE_INDICATOR.
10875
10876         Tests of module 'stdlib' in C++ mode.
10877         * tests/test-stdlib-c++.cc: New file.
10878         * modules/stdlib-tests (Files): Add it and tests/signature.h.
10879         (Depends-on): Add ansi-c++-opt.
10880         (Makefile.am): Arrange to compile and run test-stdlib-c++.
10881         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
10882         gl_MODULE_INDICATOR.
10883
10884         Tests of module 'stdio' in C++ mode.
10885         * tests/test-stdio-c++.cc: New file.
10886         * modules/stdio-tests (Files): Add it and tests/signature.h.
10887         (Depends-on): Add ansi-c++-opt.
10888         (Makefile.am): Arrange to compile and run test-stdio-c++.
10889         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
10890         gl_MODULE_INDICATOR.
10891
10892         Tests of module 'spawn' in C++ mode.
10893         * tests/test-spawn-c++.cc: New file.
10894         * modules/spawn-tests (Files): Add it and tests/signature.h.
10895         (Depends-on): Add ansi-c++-opt.
10896         (Makefile.am): Arrange to compile and run test-spawn-c++.
10897         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
10898         gl_MODULE_INDICATOR.
10899
10900         Tests of module 'signal' in C++ mode.
10901         * tests/test-signal-c++.cc: New file.
10902         * modules/signal-tests (Files): Add it and tests/signature.h.
10903         (Depends-on): Add ansi-c++-opt.
10904         (Makefile.am): Arrange to compile and run test-signal-c++.
10905         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
10906         gl_MODULE_INDICATOR.
10907
10908         Tests of module 'search' in C++ mode.
10909         * tests/test-search-c++.cc: New file.
10910         * modules/search-tests (Files): Add it and tests/signature.h.
10911         (Depends-on): Add ansi-c++-opt.
10912         (Makefile.am): Arrange to compile and run test-search-c++.
10913         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
10914         gl_MODULE_INDICATOR.
10915
10916         Tests of module 'math' in C++ mode.
10917         * tests/test-math-c++.cc: New file.
10918         * modules/math-tests (Files): Add it and tests/signature.h.
10919         (Depends-on): Add ansi-c++-opt.
10920         (Makefile.am): Arrange to compile and run test-math-c++.
10921         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
10922
10923         Tests of module 'locale' in C++ mode.
10924         * tests/test-locale-c++.cc: New file.
10925         * modules/locale-tests (Files): Add it and tests/signature.h.
10926         (Depends-on): Add ansi-c++-opt.
10927         (Makefile.am): Arrange to compile and run test-locale-c++.
10928         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
10929         gl_MODULE_INDICATOR.
10930
10931         Tests of module 'langinfo' in C++ mode.
10932         * tests/test-langinfo-c++.cc: New file.
10933         * modules/langinfo-tests (Files): Add it and tests/signature.h.
10934         (Depends-on): Add ansi-c++-opt.
10935         (Makefile.am): Arrange to compile and run test-langinfo-c++.
10936         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
10937         gl_MODULE_INDICATOR.
10938
10939         Tests of module 'iconv-h' in C++ mode.
10940         * tests/test-iconv-h-c++.cc: New file.
10941         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
10942         (Depends-on): Add ansi-c++-opt.
10943         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
10944
10945         Tests of module 'glob' in C++ mode.
10946         * tests/test-glob-c++.cc: New file.
10947         * modules/glob-tests (Files): Add it.
10948         (Depends-on): Add ansi-c++-opt.
10949         (Makefile.am): Arrange to compile and run test-glob-c++.
10950
10951         Tests of module 'fcntl-h' in C++ mode.
10952         * tests/test-fcntl-h-c++.cc: New file.
10953         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
10954         (Depends-on): Add ansi-c++-opt.
10955         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
10956         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
10957         gl_MODULE_INDICATOR.
10958
10959         Tests of module 'dirent' in C++ mode.
10960         * tests/test-dirent-c++.cc: New file.
10961         * modules/dirent-tests (Files): Add it and tests/signature.h.
10962         (Depends-on): Add ansi-c++-opt.
10963         (Makefile.am): Arrange to compile and run test-dirent-c++.
10964         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
10965         gl_MODULE_INDICATOR.
10966
10967         New module 'ansi-c++-opt'.
10968         * modules/ansi-c++-opt: New file.
10969         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
10970
10971         Document C++ namespace mode.
10972         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
10973
10974         wctype: Avoid #define replacements in C++ mode.
10975         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
10976         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
10977         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
10978         In C++, define a namespaced alias symbol.
10979         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
10980         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
10981         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
10982         rule.
10983
10984         wchar: Avoid #define replacements in C++ mode.
10985         * lib/wchar.in.h: Include c++defs.h.
10986         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
10987         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
10988         symbol.
10989         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
10990         * modules/wchar (Depends-on): Add c++defs.
10991         (Makefile.am): Update wchar.h rule.
10992
10993         unistd: Avoid #define replacements in C++ mode.
10994         * lib/unistd.in.h: Include c++defs.h.
10995         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
10996         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
10997         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
10998         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
10999         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
11000         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
11001         symbol.
11002         (environ): Update.
11003         * modules/unistd (Depends-on): Add c++defs.
11004         (Makefile.am): Update unistd.h rule.
11005
11006         time: Avoid #define replacements in C++ mode.
11007         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
11008         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
11009         define a namespaced alias symbol.
11010         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
11011         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
11012         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
11013         * modules/time (Depends-on): Add c++defs, warn-on-use.
11014         (Makefile.am): Update time.h rule.
11015         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
11016         * modules/nanosleep (configure.ac): Likewise.
11017         * modules/strptime (configure.ac): Likewise.
11018         * modules/timegm (configure.ac): Likewise.
11019
11020         sys_time: Avoid #define replacements in C++ mode.
11021         * lib/sys_time.in.h: Include c++defs.h.
11022         (gettimeofday): In C++, define a namespaced alias symbol.
11023         * modules/sys_time (Depends-on): Add c++defs.
11024         (Makefile.am): Update sys/time.h rule.
11025
11026         sys_stat: Avoid #define replacements in C++ mode.
11027         * lib/sys_stat.in.h: Include c++defs.h.
11028         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
11029         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
11030         namespaced alias symbol.
11031         In C++, define a namespaced alias symbol.
11032         * modules/sys_stat (Depends-on): Add c++defs.
11033         (Makefile.am): Update sys/stat.h rule.
11034
11035         sys_socket: Avoid #define replacements in C++ mode.
11036         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
11037         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
11038         definitions also when the system has a <sys/socket.h>.
11039         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11040         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
11041         In C++, define a namespaced alias symbol.
11042         * modules/sys_socket (Depends-on): Add c++defs.
11043         (Makefile.am): Update sys/socket.h rule.
11044
11045         sys_select: Avoid #define replacements in C++ mode.
11046         * lib/sys_select.in.h: Include c++defs.h. Enable the function
11047         definitions also when the system has a <sys/select.h>.
11048         (select): In C++, define a namespaced alias symbol.
11049         * modules/sys_select (Depends-on): Add c++defs.
11050         (Makefile.am): Update sys/select.h rule.
11051
11052         sys_ioctl: Avoid #define replacements in C++ mode.
11053         * lib/sys_ioctl.in.h: Include c++defs.h.
11054         (ioctl): In C++, define a namespaced alias symbol.
11055         * modules/sys_ioctl (Depends-on): Add c++defs.
11056         (Makefile.am): Update sys/ioctl.h rule.
11057
11058         string: Avoid #define replacements in C++ mode.
11059         * lib/string.in.h: Include c++defs.h.
11060         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
11061         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
11062         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
11063         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
11064         strsignal, strverscmp): In C++, define a namespaced alias symbol.
11065         * modules/string (Depends-on): Add c++defs.
11066         (Makefile.am): Update string.h rule.
11067
11068         stdlib: Avoid #define replacements in C++ mode.
11069         * lib/stdlib.in.h: Include c++defs.h.
11070         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
11071         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
11072         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
11073         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
11074         symbol.
11075         * modules/stdlib (Depends-on): Add c++defs.
11076         (Makefile.am): Update stdlib.h rule.
11077
11078         stdio: Avoid #define replacements in C++ mode.
11079         * lib/stdio.in.h: Include c++defs.h.
11080         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
11081         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
11082         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
11083         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
11084         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
11085         namespaced alias symbol.
11086         * modules/stdio (Depends-on): Add c++defs.
11087         (Makefile.am): Update stdio.h rule.
11088
11089         spawn: Avoid #define replacements in C++ mode.
11090         * lib/spawn.in.h: Include c++defs.h.
11091         (posix_spawn, posix_spawnp, posix_spawnattr_init,
11092         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
11093         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
11094         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
11095         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
11096         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
11097         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11098         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
11099         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
11100         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11101         In C++, define a namespaced alias symbol.
11102         * modules/spawn (Depends-on): Add c++defs.
11103         (Makefile.am): Update spawn.h rule.
11104
11105         signal: Avoid #define replacements in C++ mode.
11106         * lib/signal.in.h: Include c++defs.h.
11107         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
11108         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
11109         namespaced alias symbol.
11110         * modules/signal (Depends-on): Add c++defs.
11111         (Makefile.am): Update signal.h rule.
11112
11113         search: Avoid #define replacements in C++ mode.
11114         * lib/search.in.h: Include c++defs.h.
11115         (_gl_search_compar_fn, _gl_search_action_fn): New types.
11116         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
11117         symbol.
11118         * modules/search (Depends-on): Add c++defs.
11119         (Makefile.am): Update search.h rule.
11120
11121         math: Avoid #define replacements in C++ mode.
11122         * lib/math.in.h: Include c++defs.h.
11123         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
11124         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
11125         trunc, truncl): In C++, define a namespaced alias symbol.
11126         * modules/math (Depends-on): Add c++defs.
11127         (Makefile.am): Update math.h rule.
11128
11129         locale: Avoid #define replacements in C++ mode.
11130         * lib/locale.in.h: Include c++defs.h.
11131         (duplocale): In C++, define a namespaced alias symbol.
11132         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
11133         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
11134         * modules/locale (Depends-on): Add c++defs.
11135         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
11136
11137         langinfo: Avoid #define replacements in C++ mode.
11138         * lib/langinfo.in.h: Include c++defs.h.
11139         (nl_langinfo): In C++, define a namespaced alias symbol.
11140         * modules/langinfo (Depends-on): Add c++defs.
11141         (Makefile.am): Update langinfo.h rule.
11142
11143         iconv-h: Avoid #define replacements in C++ mode.
11144         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
11145         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
11146         symbol.
11147         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11148         whenever iconv is present.
11149         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
11150         (Makefile.am): Update iconv.h rule.
11151
11152         glob: Avoid #define replacements in C++ mode.
11153         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
11154         (_gl_glob_errfunc_fn): New type.
11155         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
11156         symbol.
11157         * modules/glob (Depends-on): Add c++defs, warn-on-use.
11158         (Makefile.am): Update glob.h rule.
11159
11160         fcntl-h: Avoid #define replacements in C++ mode.
11161         * lib/fcntl.in.h: Include c++defs.h.
11162         (fcntl, open, openat): In C++, define a namespaced alias symbol.
11163         * modules/fcntl-h (Depends-on): Add c++defs.
11164         (Makefile.am): Update fcntl.h rule.
11165
11166         dirent: Avoid #define replacements in C++ mode.
11167         * lib/dirent.in.h: Include c++defs.h.
11168         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
11169         namespaced alias symbol.
11170         (dirfd): Update declaration.
11171         * modules/dirent (Depends-on): Add c++defs.
11172         (Makefile.am): Update dirent.h rule.
11173
11174         ctype: Make it usable in C++ code.
11175         * lib/ctype.in.h: Include c++defs.h.
11176         (isblank): Declare as extern "C".
11177         * modules/ctype (Depends-on): Add c++defs.
11178         (Makefile.am): Update ctype.h rule.
11179
11180         New module 'c++defs'.
11181         * modules/c++defs: New file.
11182         * build-aux/c++defs.h: New file.
11183         Reported by John W. Eaton <jwe@gnu.org>.
11184
11185 2010-03-07  Bruno Haible  <bruno@clisp.org>
11186
11187         logb: Provide missing declaration for Cygwin.
11188         * lib/math.in.h (logb): New declaration.
11189         * m4/logb.m4: New file.
11190         * modules/logb (Files): Add m4/logb.m4.
11191         (Depends-on): Add math.
11192         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
11193         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
11194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
11195         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
11196         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
11197
11198 2010-03-07  Bruno Haible  <bruno@clisp.org>
11199
11200         Fix test-cond link error.
11201         * tests/test-cond.c: Include <stdio.h>.
11202
11203 2010-03-07  Bruno Haible  <bruno@clisp.org>
11204
11205         Fix test-dirent-safer link error.
11206         * modules/dirent-safer-tests (Makefile.am): Define
11207         test_dirent_safer_LDADD.
11208
11209 2010-03-07  Bruno Haible  <bruno@clisp.org>
11210
11211         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
11212         among default module list.
11213
11214 2010-03-07  Bruno Haible  <bruno@clisp.org>
11215
11216         Fix link error on platforms with GNU libiconv.
11217         * modules/unistr/u8-strcoll-tests (Makefile): Define
11218         test_u8_strcoll_LDADD.
11219         * modules/unistr/u16-strcoll-tests (Makefile): Define
11220         test_u16_strcoll_LDADD.
11221         * modules/unistr/u32-strcoll-tests (Makefile): Define
11222         test_u32_strcoll_LDADD.
11223
11224 2010-03-07  Bruno Haible  <bruno@clisp.org>
11225
11226         Use POSIX declarations for socket functions.
11227         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
11228         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
11229         rpl_sendto): Change declaration to match POSIX.
11230         * lib/connect.c (rpl_connect): Likewise.
11231         * lib/accept.c (rpl_accept): Likewise.
11232         * lib/bind.c (rpl_bind): Likewise.
11233         * lib/getpeername.c (rpl_getpeername): Likewise.
11234         * lib/getsockname.c (rpl_getsockname): Likewise.
11235         * lib/recv.c (rpl_recv): Likewise.
11236         * lib/send.c (rpl_send): Likewise.
11237         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11238         * lib/sendto.c (rpl_sendto): Likewise.
11239
11240 2010-03-06  Bruno Haible  <bruno@clisp.org>
11241
11242         Clarify access, euidaccess, faccessat.
11243         * doc/posix-functions/faccessat.texi: Mention security problem under
11244         "Other problems", not "Portability problems".
11245         * doc/posix-functions/access.texi: Likewise. Mention a related security
11246         problem.
11247         * doc/glibc-functions/euidaccess.texi: Mention security problems.
11248         * lib/euidaccess.c: Add comments about platforms.
11249         * lib/unistd.in.h (access, euidaccess): Add warnings.
11250
11251 2010-03-07  Bruno Haible  <bruno@clisp.org>
11252
11253         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
11254         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
11255         (POSIX_SPAWN_SETSCHEDULER): Likewise.
11256         (POSIX_SPAWN_USEVFORK): Define in a way that works when
11257         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11258         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
11259         declare when POSIX_SPAWN_SETSCHEDULER is zero.
11260         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
11261         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
11262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
11263         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
11264         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
11265         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
11266         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
11267         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
11268         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
11269         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
11270         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
11271         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
11272         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
11273         Likewise.
11274         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
11275         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
11276         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
11277         Likewise.
11278         * tests/test-spawn.c (main): Make it work when
11279         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
11280
11281 2010-03-07  Bruno Haible  <bruno@clisp.org>
11282
11283         Fix incorrect Makefile.am generation in German locale.
11284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11285         Execute sed command with character range in C locale.
11286
11287 2010-03-06  Bruno Haible  <bruno@clisp.org>
11288
11289         Tests for module 'iconv-h'.
11290         * modules/iconv-h-tests: New file.
11291         * tests/test-iconv-h.c: New file.
11292
11293         New module 'iconv-h'.
11294         * modules/iconv-h: New file.
11295         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
11296         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
11297         (configure.ac): Remove gl_ICONV_H.
11298         (Makefile.am): Remove rule for iconv.h.
11299
11300 2010-03-06  Bruno Haible  <bruno@clisp.org>
11301
11302         More consistent naming of *.m4 files.
11303         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
11304         * modules/wctype (Files): Update.
11305
11306         More consistent naming of *.m4 files.
11307         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
11308         * modules/wchar (Files): Update.
11309
11310 2010-03-06  Jim Meyering  <meyering@redhat.com>
11311
11312         euidaccess: relax license to LGPLv2+
11313         * modules/euidaccess (License): Relax to LGPLv2+.
11314
11315 2010-03-06  Bruno Haible  <bruno@clisp.org>
11316
11317         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
11318         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
11319         (Makefile.am): Augment lib_SOURCES instead.
11320
11321 2010-03-04  Jim Meyering  <meyering@redhat.com>
11322
11323         utime: remove obsolete module
11324         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
11325         unnecessary for years, and has been marked as obsolete for 10 months.
11326         * modules/utime: Remove file.
11327         * lib/utime.c: Remove file.
11328         * m4/utime.m4: Remove file.
11329         * m4/utimes-null.m4: Remove file.
11330         * doc/posix-functions/utime.texi (utime): Remove reference to
11331         the module.  Move the sole "fixed by gnulib" item into the
11332         "problems not fixed by Gnulib" list.
11333         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
11334
11335 2010-03-05  Simon Josefsson  <simon@josefsson.org>
11336
11337         * modules/exit (License): Relax license to LGPLv2+.
11338         (Status): Mark as obsolete.
11339         * NEWS: Mention deprecated 'exit' module.
11340         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
11341         of now obsolete 'exit'.
11342
11343 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11344
11345         fts-lgpl: remove unused module
11346         * modules/fts-lgpl: Remove.
11347         * MODULES.html.sh (func_all_modules): Adjust.
11348         * check-module (find_included_lib_files): Adjust.
11349         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
11350
11351 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
11352
11353         copy-acl: enhance Solaris ACL error handling
11354         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
11355         * lib/set-mode-acl.c (qset_acl): Likewise.
11356
11357 2010-03-02  Bruno Haible  <bruno@clisp.org>
11358
11359         spawn: Don't override the system defined values on FreeBSD 8.
11360         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
11361         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
11362         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
11363         if HAVE_POSIX_SPAWN is 1.
11364         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
11365
11366 2010-03-01  Bruno Haible  <bruno@clisp.org>
11367
11368         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
11369         regarding Automake.
11370
11371 2010-02-25  Bruno Haible  <bruno@clisp.org>
11372
11373         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
11374         * gnulib-tool: Define 'echo' as a function only before the ksh alias
11375         setting, not afterwards.
11376         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11377
11378 2010-02-24  Eric Blake  <eblake@redhat.com>
11379
11380         bootstrap, git-version-gen: use timestamp
11381         * build-aux/git-version-gen (scriptversion): Force UTC.
11382         * build-aux/bootstrap (scriptversion): New variable.
11383
11384         bootstrap: allow older git
11385         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
11386         older than 1.6.4.  Requested by the libvirt project.
11387
11388 2010-02-23  Eric Blake  <eblake@redhat.com>
11389
11390         warn-on-use: work with old autoconf
11391         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
11392         AS_VAR semantics of autoconf 2.60.
11393         Reported by Bruno Haible.
11394
11395         bootstrap: improve some comments
11396         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
11397         clarification comments.
11398
11399         gettimeofday: provide correct function
11400         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
11401         when replacement is declared, otherwise provide gettimeofday.
11402         Reported by Michael Goffioul.
11403
11404 2010-02-23  Jim Meyering  <meyering@redhat.com>
11405
11406         lib-ignore: relax license to "unlimited", not LGPLv2+
11407         * modules/lib-ignore (License): Relax to "unlimited".
11408
11409 2010-02-23  Jim Meyering  <meyering@redhat.com>
11410
11411         lib-ignore: relax license to LGPLv2+
11412         * modules/lib-ignore (License): Relax to LGPLv2+.
11413
11414 2010-02-22  Eric Blake  <eblake@redhat.com>
11415
11416         lseek: avoid bash 3.2 broken pipe bug
11417         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
11418         warning from bash 3.2.
11419         Reported by Ben Pfaff, with analysis from Bruno Haible.
11420
11421         bootstrap: support non-FSF copyright holder
11422         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
11423         bootstrap.conf override of COPYRIGHT_HOLDER.
11424         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
11425
11426         bootstrap: interoperate with gettext 0.14.1
11427         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
11428
11429         bootstrap: allow for alternate submodule location
11430         * build-aux/bootstrap (gnulib_path): New variable; use instead of
11431         hardcoding submodule location.
11432         (gnulib_mk): Allow direct use of Makefile.am.
11433
11434         bootstrap: use GNULIB_SRCDIR to reduce disk usage
11435         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
11436         rather than reconfiguring where the submodule points.
11437
11438         gettimeofday: restore support for platforms that lack function
11439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
11440         replacement if function is missing.
11441         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
11442         * modules/sys_time (Makefile.am): Substitute it.
11443         * lib/sys_time.in.h (gettimeofday): Check it.
11444         Reported by Michael Goffioul.
11445
11446 2010-02-21  Bruno Haible  <bruno@clisp.org>
11447
11448         * lib/stdio.in.h (obstack_printf): Fix typo.
11449
11450 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
11451
11452         vc-list-files: use bzr ls's -R option
11453         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
11454         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
11455
11456 2010-02-21  Jim Meyering  <meyering@redhat.com>
11457
11458         init.sh: fix EXEEXT shims to work also for names like test-prog
11459         * tests/init.sh: Re-exec a better shell, when needed.
11460         If the current shell lacks support for posix $(...), an init.sh-using
11461         test will now try to find a shell that supports that.  If EXEEXT is
11462         nonempty, we also require support for hyphen-in-alias-name and shell
11463         substitutions like ${var#glob}.  Failure to find such a shell results
11464         in a skipped test.
11465
11466 2010-02-21  Bruno Haible  <bruno@clisp.org>
11467
11468         Really work around around "broken pipe" error message from bash 3.2.
11469         * gnulib-tool (func_reset_sigpipe): Remove function.
11470         (echo): In bash 3.2, define to a function that uses printf.
11471         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
11472
11473 2010-02-20  Bruno Haible  <bruno@clisp.org>
11474
11475         Restore support for automake 1.9.6 with autoconf 2.61.
11476         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
11477         Reported by James Youngman <jay@gnu.org>.
11478
11479 2010-02-20  Bruno Haible  <bruno@clisp.org>
11480
11481         Improve *printf warning condition.
11482         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
11483         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
11484         and the function is overridden due to SIGPIPE emulation.
11485
11486 2010-02-20  Bruno Haible  <bruno@clisp.org>
11487
11488         * lib/stdio.in.h: Tweak comments.
11489
11490 2010-02-19  Bruno Haible  <bruno@clisp.org>
11491
11492         Make it easier to find modules. New gnulib-tool option '--find'.
11493         * gnulib-tool: New option --find.
11494         (func_usage): Document it.
11495         (func_sanitize_modulelist): New function, extracted from
11496         func_all_modules.
11497         (func_all_modules): Invoke it.
11498         * doc/gnulib-tool.texi (Which modules?): New node.
11499
11500 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
11501
11502         * lib/sys_select.in.h: Provide select replacement even if
11503         sys/select.h exists on a system, for Interix.
11504
11505 2010-02-18  Jim Meyering  <meyering@redhat.com>
11506
11507         init.sh: don't use $(...) just yet
11508         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
11509         to accommodate e.g., Solaris' /bin/sh.
11510
11511 2010-02-17  Bruno Haible  <bruno@clisp.org>
11512
11513         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
11514         Reported by Ludovic Courtès <ludo@gnu.org>.
11515
11516 2010-02-16  Simon Josefsson  <simon@josefsson.org>
11517
11518         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
11519         linking with -lintl.
11520
11521 2010-02-17  Simon Josefsson  <simon@josefsson.org>
11522
11523         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
11524         if not provided by the system's netdb.h.  Reported by
11525         ludo@gnu.org (Ludovic Courtès).
11526
11527 2010-02-15  Jim Meyering  <meyering@redhat.com>
11528
11529         init.sh: improve portability and efficiency
11530         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
11531         "dummy" in a for loop.
11532         Use '!', not '^' to select the complement of a character set used
11533         in a "case" statement.
11534         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
11535         Suggestions from Eric Blake.
11536
11537         init.sh: automatically accommodate programs with the .exe suffix
11538         Automatically arrange for an invocation of "prog" to execute the
11539         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
11540         may use the simpler "prog", yet still work when built on a system
11541         that requires specifying the added suffix.
11542         Do this by constructing a function named "prog" that invokes
11543         "prog.exe" for each .exe file in selected directories.
11544         * tests/init.sh (find_exe_basenames_): New function.
11545         (create_exe_shim_functions_): New function.
11546         (path_prepend_): Use it.
11547
11548         maint.mk: mark syntax-check sc_*.m rules as .PHONY
11549         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
11550         "make -t syntax-check" doesn't create a ton of sc_*.m files.
11551
11552 2010-02-14  Jim Meyering  <meyering@redhat.com>
11553
11554         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
11555         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
11556         (sc_prohibit_hash_pjw_without_use): New rule.
11557
11558         maint.mk: allow the default upload destination dir to be overridden
11559         * top/maint.mk (upload_dest_dir_): Define with a default that
11560         preserves the status quo.
11561         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
11562         Reported by Peter Simons.
11563
11564         maint.mk: prohibit inclusion of "hash.h" without_use
11565         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
11566
11567 2010-02-10  Jim Meyering  <meyering@redhat.com>
11568
11569         maint.mk: prohibit inclusion of "ignore-value.h" without_use
11570         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
11571
11572 2010-02-09  Eric Blake  <ebb9@byu.net>
11573         and Bruno Haible  <bruno@clisp.org>
11574
11575         obstack-printf-posix: ensure declaration
11576         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
11577         extracted from gl_FUNC_OBSTACK_PRINTF.
11578         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
11579         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11580         Likewise.
11581         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
11582         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
11583         0.
11584
11585 2010-02-08  Bruno Haible  <bruno@clisp.org>
11586
11587         gnulib-tool: Fix typo in 2010-02-07 commit.
11588         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
11589         Reported by Eric Blake.
11590
11591 2010-02-07  Bruno Haible  <bruno@clisp.org>
11592
11593         gnulib-tool: Fix up caching patches.
11594         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
11595         option --no-cache. Use associative arrays when supported by the shell.
11596         (sed_comments): New variable.
11597         (modcache): Renamed from do_cache.
11598         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
11599         abbreviate unnecessarily.
11600         (have_associative): New variable.
11601         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
11602         way also for ksh and zsh.
11603         (func_init_sed_convert_to_cache_statements): New function, extracted
11604         from func_cache_lookup_module. Add support for associative arrays.
11605         Don't set the c_MODULE_cached variable here. Ignore all lines before
11606         the first field header. Remove only the final newline, not all trailing
11607         newlines. Support empty fields correctly. Limit the use of 'eval' to
11608         assignments.
11609         (func_get_description, func_get_status, func_get_notice,
11610         func_get_applicability, func_get_filelist, func_get_dependencies,
11611         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
11612         func_get_automake_snippet, func_get_include_directive,
11613         func_get_link_directive, func_get_license, func_get_maintainer):
11614         Update documentation. List the unoptimized code first. Add support for
11615         associative arrays. Limit the use of 'eval' to assignments.
11616         (func_get_applicability): Undo stylistic pessimisations.
11617         (func_get_automake_snippet, func_get_include_directive): Reduce code
11618         duplication.
11619         (func_modules_transitive_closure, func_modules_add_dummy,
11620         func_modules_notice, func_modules_to_filelist, func_add_file,
11621         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
11622         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
11623         func_create_testdir, func_create_megatestdir): Update documentation.
11624
11625 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11626
11627         * gnulib-tool (func_cache_lookup_module): Store the module name
11628         belonging to the cache variable; error out if two different
11629         module names map to the same cache variable name.
11630
11631 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11632
11633         gnulib-tool: Make caching optional.
11634         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
11635         Update matching short versions of --no-changelog.
11636         (func_usage): Update.
11637         (sed_extract_cache_prog): Renamed from ...
11638         (sed_extract_prog): ... this; revert to old extraction script.
11639         (func_get_description, func_get_status)
11640         (func_get_notice, func_get_applicability, func_get_filelist)
11641         (func_get_dependencies, func_get_autoconf_early_snippet)
11642         (func_get_autoconf_snippet, func_get_automake_snippet)
11643         (func_get_include_directive, func_get_link_directive)
11644         (func_get_license, func_get_maintainer): If $do_cache is false,
11645         use old, non-caching extraction scripts.
11646         Suggestion by Bruno Haible.
11647
11648 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11649
11650         gnulib-tool: cache module metainformation.
11651         * gnulib-tool (sed_extract_prog): Match newline before each
11652         header, and rewrite header to a shell variable suffix.
11653         (func_cache_var, func_cache_lookup_module): New functions,
11654         to turn a module name into a cache variable prefix, and to
11655         look up and cache module metainformation.
11656         (func_get_description, func_get_status)
11657         (func_get_notice, func_get_applicability, func_get_filelist)
11658         (func_get_dependencies, func_get_autoconf_early_snippet)
11659         (func_get_autoconf_snippet, func_get_automake_snippet)
11660         (func_get_include_directive, func_get_link_directive)
11661         (func_get_license, func_get_maintainer): Use
11662         func_cache_lookup_module.
11663
11664 2010-02-07  Bruno Haible  <bruno@clisp.org>
11665
11666         fnctl: Fix missing dependency.
11667         * modules/fcntl (Depends-on): Add getdtablesize.
11668         Reported by John W. Eaton <jwe@gnu.org>.
11669
11670 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11671
11672         Argp: fix recognition of short alias options.
11673
11674         * lib/argp-parse.c (convert_options): Fix improper use of
11675         `|' between character values.
11676         * tests/test-argp.c (group1_option): New alias option
11677         --read (-r).
11678         (group1_parser): Special handling for 'r'.
11679         (test15): New test case.
11680         (test_fun): Add test15.
11681         * tests/test-argp-2.sh: Update expected --help and --usage
11682         outputs.
11683
11684 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
11685
11686         * tests/test-argp.c: Fix indentation.
11687
11688 2010-02-04  Eric Blake  <ebb9@byu.net>
11689
11690         gettimeofday: expose type of second argument
11691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
11692         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
11693         * tests/test-gettimeofday.c: Use it to silence warning.
11694         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
11695         the issue.
11696
11697 2010-02-03  Jim Meyering  <meyering@redhat.com>
11698
11699         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
11700         * lib/regcomp.c (TYPE_SIGNED): Define.
11701         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
11702
11703         regcomp.c: avoid a new -Wshadow warning
11704         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
11705
11706 2010-02-01  Jim Meyering  <meyering@redhat.com>
11707
11708         removing useless parentheses in cpp #define directives
11709         For motivation, see commit c0221df4, "define STREQ(a,b)
11710         consistently, removing useless parentheses"
11711         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
11712         * lib/mountlist.c (MNT_IGNORE): Likewise.
11713         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
11714
11715 2010-02-01  Eric Blake  <ebb9@byu.net>
11716
11717         sys_time: use link-warning
11718         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
11719         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
11720         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
11721         * modules/sys_time (Depends-on): Add warn-on-use.
11722         (Makefile.am): Always build replacement.
11723         (configure.ac): Update substitutions.
11724         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
11725         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
11726         bother with SYS_TIME_H.
11727         * modules/gettimeofday (configure.ac): Declare indicator.
11728         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
11729         in use.
11730
11731         closein-tests: silence compiler warning
11732         * tests/test-closein.c (main): Ignore fread result.
11733         * modules/closein-tests (Depends-on): Add ignore-value.
11734
11735         tests: silence warning about system return
11736         * tests/test-areadlink-with-size.c (main): Ignore system result.
11737         * tests/test-areadlink.c (main): Likewise.
11738         * tests/test-areadlinkat-with-size.c (main): Likewise.
11739         * tests/test-areadlinkat.c (main): Likewise.
11740         * tests/test-canonicalize-lgpl.c (main): Likewise.
11741         * tests/test-canonicalize.c (main): Likewise.
11742         * tests/test-chown.c (main): Likewise.
11743         * tests/test-fchownat.c (main): Likewise.
11744         * tests/test-fdutimensat.c (main): Likewise.
11745         * tests/test-fstatat.c (main): Likewise.
11746         * tests/test-futimens.c (main): Likewise.
11747         * tests/test-lchown.c (main): Likewise.
11748         * tests/test-link.c (main): Likewise.
11749         * tests/test-linkat.c (main): Likewise.
11750         * tests/test-lstat.c (main): Likewise.
11751         * tests/test-mkdir.c (main): Likewise.
11752         * tests/test-mkdirat.c (main): Likewise.
11753         * tests/test-mkfifo.c (main): Likewise.
11754         * tests/test-mkfifoat.c (main): Likewise.
11755         * tests/test-mknod.c (main): Likewise.
11756         * tests/test-readlink.c (main): Likewise.
11757         * tests/test-remove.c (main): Likewise.
11758         * tests/test-rename.c (main): Likewise.
11759         * tests/test-renameat.c (main): Likewise.
11760         * tests/test-rmdir.c (main): Likewise.
11761         * tests/test-symlink.c (main): Likewise.
11762         * tests/test-symlinkat.c (main): Likewise.
11763         * tests/test-unlink.c (main): Likewise.
11764         * tests/test-unlinkat.c (main): Likewise.
11765         * tests/test-utimens.c (main): Likewise.
11766         * tests/test-utimensat.c (main): Likewise.
11767         * modules/areadlink-tests (Depends-on): Add ignore-value.
11768         * modules/areadlink-with-size-tests (Depends-on): Likewise.
11769         * modules/areadlinkat-tests (Depends-on): Likewise.
11770         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
11771         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11772         * modules/canonicalize-tests (Depends-on): Likewise.
11773         * modules/chown-tests (Depends-on): Likewise.
11774         * modules/fdutimensat-tests (Depends-on): Likewise.
11775         * modules/futimens-tests (Depends-on): Likewise.
11776         * modules/lchown-tests (Depends-on): Likewise.
11777         * modules/link-tests (Depends-on): Likewise.
11778         * modules/linkat-tests (Depends-on): Likewise.
11779         * modules/lstat-tests (Depends-on): Likewise.
11780         * modules/mkdir-tests (Depends-on): Likewise.
11781         * modules/mkfifo-tests (Depends-on): Likewise.
11782         * modules/mkfifoat-tests (Depends-on): Likewise.
11783         * modules/mknod-tests (Depends-on): Likewise.
11784         * modules/openat-tests (Depends-on): Likewise.
11785         * modules/readlink-tests (Depends-on): Likewise.
11786         * modules/remove-tests (Depends-on): Likewise.
11787         * modules/rename-tests (Depends-on): Likewise.
11788         * modules/renameat-tests (Depends-on): Likewise.
11789         * modules/rmdir-tests (Depends-on): Likewise.
11790         * modules/symlink-tests (Depends-on): Likewise.
11791         * modules/symlinkat-tests (Depends-on): Likewise.
11792         * modules/unlink-tests (Depends-on): Likewise.
11793         * modules/utimens-tests (Depends-on): Likewise.
11794         * modules/utimensat-tests (Depends-on): Likewise.
11795
11796 2010-01-31  Bruno Haible  <bruno@clisp.org>
11797
11798         Perform the same test for many <math.h> functions.
11799         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
11800         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
11801         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
11802         of gl_MATHFUNC.
11803         * modules/acos (configure.ac): Likewise.
11804         * modules/asin (configure.ac): Likewise.
11805         * modules/atan (configure.ac): Likewise.
11806         * modules/atan2 (configure.ac): Likewise.
11807         * modules/cbrt (configure.ac): Likewise.
11808         * modules/copysign (configure.ac): Likewise.
11809         * modules/cos (configure.ac): Likewise.
11810         * modules/cosh (configure.ac): Likewise.
11811         * modules/erf (configure.ac): Likewise.
11812         * modules/erfc (configure.ac): Likewise.
11813         * modules/exp (configure.ac): Likewise.
11814         * modules/fmod (configure.ac): Likewise.
11815         * modules/hypot (configure.ac): Likewise.
11816         * modules/j0 (configure.ac): Likewise.
11817         * modules/j1 (configure.ac): Likewise.
11818         * modules/jn (configure.ac): Likewise.
11819         * modules/lgamma (configure.ac): Likewise.
11820         * modules/log (configure.ac): Likewise.
11821         * modules/log10 (configure.ac): Likewise.
11822         * modules/log1p (configure.ac): Likewise.
11823         * modules/pow (configure.ac): Likewise.
11824         * modules/remainder (configure.ac): Likewise.
11825         * modules/sin (configure.ac): Likewise.
11826         * modules/sinh (configure.ac): Likewise.
11827         * modules/tan (configure.ac): Likewise.
11828         * modules/tanh (configure.ac): Likewise.
11829         * modules/y0 (configure.ac): Likewise.
11830         * modules/y1 (configure.ac): Likewise.
11831         * modules/yn (configure.ac): Likewise.
11832         Suggested by Paolo Bonzini.
11833
11834 2010-01-31  Bruno Haible  <bruno@clisp.org>
11835
11836         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
11837
11838 2010-01-31  Bruno Haible  <bruno@clisp.org>
11839
11840         Work around getdelim() bug on FreeBSD 8.0.
11841         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
11842         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
11843         not work.
11844         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
11845         is 1.
11846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
11847         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
11848         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
11849         a non-zero size.
11850         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
11851
11852 2010-01-31  Bruno Haible  <bruno@clisp.org>
11853
11854         Work around getline() bug on FreeBSD 8.0.
11855         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
11856         and a non-zero size.
11857         * tests/test-getline.c (main): Likewise.
11858         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
11859         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
11860
11861 2010-01-28  Eric Blake  <ebb9@byu.net>
11862
11863         regex: fix build failure
11864         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
11865         platforms.
11866
11867 2010-01-28  Jim Meyering  <meyering@redhat.com>
11868
11869         regex: do not ignore memory allocation failure
11870         * lib/regex_internal.c (create_cd_newstate): Detect
11871         re_node_set_init_copy failure.   Extracted from glibc commit
11872         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11873
11874         regex: sync more white-space changes from libc
11875         * lib/regex_internal.c: White-space only changes.
11876         * lib/regexec.c: Likewise.
11877
11878         regex: add many uses of __attribute_warn_unused_result__
11879         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
11880         * lib/regexec.c: Likewise.
11881         Extracted from a messy glibc commit.
11882
11883         regcomp.c: spelling and merge-artifact from glibc
11884         * lib/regcomp.c: Merge remainder of glibc's
11885         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11886
11887         regcomp.c: sync white-space changes from glibc
11888         * lib/regcomp.c: Merge to accommodate white space
11889         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
11890
11891         regcomp.c: do not ignore internal return values
11892         * lib/regcomp.c: Do not ignore internal return values.
11893         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
11894         but without its white-space changes and spelling fixes.
11895
11896         regex_internal.h: define __attribute_warn_unused_result__
11897         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
11898
11899         maint: add a syntax-check rule to check for vulnerable Makefile.in
11900         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
11901
11902 2010-01-27  Jim Meyering  <meyering@redhat.com>
11903
11904         ncftpput-ftp: clean up spaces
11905         * build-aux/ncftpput-ftp: Make Copyright line consistent.
11906         Remove trailing blanks.
11907
11908 2010-01-27  Simon Josefsson  <simon@josefsson.org>
11909
11910         * build-aux/git-version-gen: Fix copyright statement.
11911         * build-aux/gnupload: Likewise.
11912         * tests/test-arcfour.c: Likewise.
11913         * tests/test-arctwo.c: Likewise.
11914         * tests/test-count-one-bits.c: Likewise.
11915         * tests/test-crc.c: Likewise.
11916         * tests/test-des.c: Likewise.
11917         * tests/test-gc-arcfour.c: Likewise.
11918         * tests/test-gc-arctwo.c: Likewise.
11919         * tests/test-gc-des.c: Likewise.
11920         * tests/test-gc-hmac-md5.c: Likewise.
11921         * tests/test-gc-hmac-sha1.c: Likewise.
11922         * tests/test-gc-md2.c: Likewise.
11923         * tests/test-gc-md4.c: Likewise.
11924         * tests/test-gc-md5.c: Likewise.
11925         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11926         * tests/test-gc-rijndael.c: Likewise.
11927         * tests/test-gc-sha1.c: Likewise.
11928         * tests/test-gc.c: Likewise.
11929         * tests/test-gethostname.c: Likewise.
11930         * tests/test-gettimeofday.c: Likewise.
11931         * tests/test-hash.c: Likewise.
11932         * tests/test-hmac-md5.c: Likewise.
11933         * tests/test-hmac-sha1.c: Likewise.
11934         * tests/test-md2.c: Likewise.
11935         * tests/test-md4.c: Likewise.
11936         * tests/test-md5.c: Likewise.
11937         * tests/test-memchr.c: Likewise.
11938         * tests/test-memchr2.c: Likewise.
11939         * tests/test-memcmp.c: Likewise.
11940         * tests/test-memmem.c: Likewise.
11941         * tests/test-memrchr.c: Likewise.
11942         * tests/test-rawmemchr.c: Likewise.
11943         * tests/test-read-file.c: Likewise.
11944         * tests/test-rijndael.c: Likewise.
11945         * tests/test-sockets.c: Likewise.
11946         * tests/test-strchrnul.c: Likewise.
11947         * tests/test-strstr.c: Likewise.
11948         * tests/test-strtod.c: Likewise.
11949         * build-aux/ncftpput-ftp: Likewise.
11950
11951 2010-01-26  Eric Blake  <ebb9@byu.net>
11952
11953         ignore-value: update recommended header name
11954         * modules/ignore-value (Include): Only use <> for headers that
11955         exist in glibc.
11956
11957 2010-01-26  Jim Meyering  <meyering@redhat.com>
11958
11959         test-userspec.c: avoid compiler warnings
11960         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
11961         and "initialization discards qualifiers..." warnings.
11962         Put the first "uid" in its own scope, and make char* members "const".
11963
11964 2010-01-25  Bruno Haible  <bruno@clisp.org>
11965
11966         gnulib-tool: Make warning diagnostics consistent.
11967         * gnulib-tool (func_warning): New function.
11968         Use it everywhere where gnulib-tool produces output to stderr and it is
11969         not a fatal error.
11970
11971 2010-01-25  Bruno Haible  <bruno@clisp.org>
11972
11973         Fix test dependencies.
11974         * modules/xstrtol-tests (Depends-on): Add inttypes.
11975         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
11976
11977 2010-01-25 Pádraig Brady <P@draigBrady.com>
11978
11979         syntax-check: detect incorrect boolean macro values in config.h
11980         * modules/maintainer-makefile (configure.ac): Parameterize the location
11981         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
11982         The logic is from Eric Blake and the location indicated by Jim Meyering.
11983         Note the more natural CONFIG_HEADER name is prohibited by automake
11984         for backwards compatibility reasons.
11985         * top/maint.mk (sc_Wundef_boolean): New rule.
11986
11987 2010-01-25  Jim Meyering  <meyering@redhat.com>
11988
11989         bootstrap: detect MacOS 10.6's shasum, too
11990         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
11991         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
11992
11993 2010-01-23  Jim Meyering  <meyering@redhat.com>
11994
11995         xstrtoll: new module
11996         * modules/xstrtoll: New file.
11997         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
11998         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
11999         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
12000         ./configure fails if you use this module and lack "long long".
12001         * modules/xstrtoll-tests: New module.
12002         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
12003         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
12004         new init.sh-based test framework.
12005
12006 2010-01-24  Bruno Haible  <bruno@clisp.org>
12007
12008         Tests for module 'yn'.
12009         * modules/yn-tests: New file.
12010         * tests/test-yn.c: New file.
12011
12012         Tests for module 'y1'.
12013         * modules/y1-tests: New file.
12014         * tests/test-y1.c: New file.
12015
12016         Tests for module 'y0'.
12017         * modules/y0-tests: New file.
12018         * tests/test-y0.c: New file.
12019
12020         Tests for module 'tanh'.
12021         * modules/tanh-tests: New file.
12022         * tests/test-tanh.c: New file.
12023
12024         Tests for module 'tan'.
12025         * modules/tan-tests: New file.
12026         * tests/test-tan.c: New file.
12027
12028         Tests for module 'sqrt'.
12029         * modules/sqrt-tests: New file.
12030         * tests/test-sqrt.c: New file.
12031
12032         Tests for module 'sinh'.
12033         * modules/sinh-tests: New file.
12034         * tests/test-sinh.c: New file.
12035
12036         Tests for module 'sin'.
12037         * modules/sin-tests: New file.
12038         * tests/test-sin.c: New file.
12039
12040         Tests for module 'rint'.
12041         * modules/rint-tests: New file.
12042         * tests/test-rint.c: New file.
12043
12044         Tests for module 'remainder'.
12045         * modules/remainder-tests: New file.
12046         * tests/test-remainder.c: New file.
12047
12048         Tests for module 'pow'.
12049         * modules/pow-tests: New file.
12050         * tests/test-pow.c: New file.
12051
12052         Tests for module 'nextafter'.
12053         * modules/nextafter-tests: New file.
12054         * tests/test-nextafter.c: New file.
12055
12056         Tests for module 'modf'.
12057         * modules/modf-tests: New file.
12058         * tests/test-modf.c: New file.
12059
12060         Tests for module 'logb'.
12061         * modules/logb-tests: New file.
12062         * tests/test-logb.c: New file.
12063
12064         Tests for module 'log1p'.
12065         * modules/log1p-tests: New file.
12066         * tests/test-log1p.c: New file.
12067
12068         Tests for module 'log10'.
12069         * modules/log10-tests: New file.
12070         * tests/test-log10.c: New file.
12071
12072         Tests for module 'log'.
12073         * modules/log-tests: New file.
12074         * tests/test-log.c: New file.
12075
12076         Tests for module 'lgamma'.
12077         * modules/lgamma-tests: New file.
12078         * tests/test-lgamma.c: New file.
12079
12080         Tests for module 'ldexp'.
12081         * modules/ldexp-tests: New file.
12082         * tests/test-ldexp.c: New file.
12083
12084         Tests for module 'jn'.
12085         * modules/jn-tests: New file.
12086         * tests/test-jn.c: New file.
12087
12088         Tests for module 'j1'.
12089         * modules/j1-tests: New file.
12090         * tests/test-j1.c: New file.
12091
12092         Tests for module 'j0'.
12093         * modules/j0-tests: New file.
12094         * tests/test-j0.c: New file.
12095
12096         Tests for module 'hypot'.
12097         * modules/hypot-tests: New file.
12098         * tests/test-hypot.c: New file.
12099
12100         Tests for module 'fmod'.
12101         * modules/fmod-tests: New file.
12102         * tests/test-fmod.c: New file.
12103
12104         Tests for module 'fabs'.
12105         * modules/fabs-tests: New file.
12106         * tests/test-fabs.c: New file.
12107
12108         Tests for module 'exp'.
12109         * modules/exp-tests: New file.
12110         * tests/test-exp.c: New file.
12111
12112         Tests for module 'erfc'.
12113         * modules/erfc-tests: New file.
12114         * tests/test-erfc.c: New file.
12115
12116         Tests for module 'erf'.
12117         * modules/erf-tests: New file.
12118         * tests/test-erf.c: New file.
12119
12120         Tests for module 'cosh'.
12121         * modules/cosh-tests: New file.
12122         * tests/test-cosh.c: New file.
12123
12124         Tests for module 'cos'.
12125         * modules/cos-tests: New file.
12126         * tests/test-cos.c: New file.
12127
12128         Tests for module 'copysign'.
12129         * modules/copysign-tests: New file.
12130         * tests/test-copysign.c: New file.
12131
12132         Tests for module 'cbrt'.
12133         * modules/cbrt-tests: New file.
12134         * tests/test-cbrt.c: New file.
12135
12136         Tests for module 'atan2'.
12137         * modules/atan2-tests: New file.
12138         * tests/test-atan2.c: New file.
12139
12140         Tests for module 'atan'.
12141         * modules/atan-tests: New file.
12142         * tests/test-atan.c: New file.
12143
12144         Tests for module 'asin'.
12145         * modules/asin-tests: New file.
12146         * tests/test-asin.c: New file.
12147
12148         Tests for module 'acos'.
12149         * modules/acos-tests: New file.
12150         * tests/test-acos.c: New file.
12151
12152 2010-01-24  Bruno Haible  <bruno@clisp.org>
12153
12154         Fix tests for common <math.h> functions.
12155         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
12156         code snippet that references the function pointer, rather than merely
12157         calling the function. Substitute the FUNC_LIBM variable.
12158         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
12159         * modules/acos (configure.ac): Likewise.
12160         * modules/asin (configure.ac): Likewise.
12161         * modules/atan (configure.ac): Likewise.
12162         * modules/atan2 (configure.ac): Likewise.
12163         * modules/cbrt (configure.ac): Likewise.
12164         * modules/copysign (configure.ac): Likewise.
12165         * modules/cos (configure.ac): Likewise.
12166         * modules/cosh (configure.ac): Likewise.
12167         * modules/erf (configure.ac): Likewise.
12168         * modules/erfc (configure.ac): Likewise.
12169         * modules/exp (configure.ac): Likewise.
12170         * modules/fabs (configure.ac): Likewise.
12171         * modules/fmod (configure.ac): Likewise.
12172         * modules/hypot (configure.ac): Likewise.
12173         * modules/j0 (configure.ac): Likewise.
12174         * modules/j1 (configure.ac): Likewise.
12175         * modules/jn (configure.ac): Likewise.
12176         * modules/ldexp (configure.ac): Likewise.
12177         * modules/lgamma (configure.ac): Likewise.
12178         * modules/log (configure.ac): Likewise.
12179         * modules/log10 (configure.ac): Likewise.
12180         * modules/log1p (configure.ac): Likewise.
12181         * modules/logb (configure.ac): Likewise.
12182         * modules/modf (configure.ac): Likewise.
12183         * modules/nextafter (configure.ac): Likewise.
12184         * modules/pow (configure.ac): Likewise.
12185         * modules/remainder (configure.ac): Likewise.
12186         * modules/rint (configure.ac): Likewise.
12187         * modules/sin (configure.ac): Likewise.
12188         * modules/sinh (configure.ac): Likewise.
12189         * modules/tan (configure.ac): Likewise.
12190         * modules/tanh (configure.ac): Likewise.
12191         * modules/y0 (configure.ac): Likewise.
12192         * modules/y1 (configure.ac): Likewise.
12193         * modules/yn (configure.ac): Likewise.
12194
12195 2010-01-24  Bruno Haible  <bruno@clisp.org>
12196
12197         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
12198         * tests/test-acosl.c (x): New variable.
12199         (main): Store argument in x and fetch it from x.
12200         * tests/test-asinl.c (x): New variable.
12201         (main): Store argument in x and fetch it from x.
12202         * tests/test-atanl.c (x): New variable.
12203         (main): Store argument in x and fetch it from x.
12204         * tests/test-cosl.c (x): New variable.
12205         (main): Store argument in x and fetch it from x.
12206         * tests/test-expl.c (x): New variable.
12207         (main): Store argument in x and fetch it from x.
12208         * tests/test-logl.c (x): New variable.
12209         (main): Store argument in x and fetch it from x.
12210         * tests/test-sinl.c (x): New variable.
12211         (main): Store argument in x and fetch it from x.
12212         * tests/test-sqrtl.c (x): New variable.
12213         (main): Store argument in x and fetch it from x.
12214         * tests/test-tanl.c (x): New variable.
12215         (main): Store argument in x and fetch it from x.
12216
12217 2010-01-24  Bruno Haible  <bruno@clisp.org>
12218
12219         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
12220         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
12221         assignments to the initial TESTS_ENVIRONMENT.
12222         * doc/gnulib.texi (Unit test modules): Document it.
12223         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
12224         TESTS_ENVIRONMENT.
12225         * modules/btowc-tests (Makefile.am): Likewise.
12226         * modules/c-stack-tests (Makefile.am): Likewise.
12227         * modules/c-strcase-tests (Makefile.am): Likewise.
12228         * modules/copy-file-tests (Makefile.am): Likewise.
12229         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12230         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12231         * modules/mbrtowc-tests (Makefile.am): Likewise.
12232         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12233         * modules/mbscasestr-tests (Makefile.am): Likewise.
12234         * modules/mbschr-tests (Makefile.am): Likewise.
12235         * modules/mbscspn-tests (Makefile.am): Likewise.
12236         * modules/mbsinit-tests (Makefile.am): Likewise.
12237         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12238         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12239         * modules/mbspbrk-tests (Makefile.am): Likewise.
12240         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12241         * modules/mbsrchr-tests (Makefile.am): Likewise.
12242         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12243         * modules/mbsspn-tests (Makefile.am): Likewise.
12244         * modules/mbsstr-tests (Makefile.am): Likewise.
12245         * modules/nl_langinfo-tests (Makefile.am): Likewise.
12246         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
12247         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12248         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12249         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12250         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12251         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
12252         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12253         * modules/wcrtomb-tests (Makefile.am): Likewise.
12254         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
12255         * modules/wcsrtombs-tests (Makefile.am): Likewise.
12256         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
12257         assignments from TESTS_ENVIRONMENT.
12258         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
12259         augmentation.
12260         * modules/argp-version-etc-tests (Makefile.am): Likewise.
12261         * modules/atexit-tests (Makefile.am): Likewise.
12262         * modules/binary-io-tests (Makefile.am): Likewise.
12263         * modules/closein-tests (Makefile.am): Likewise.
12264         * modules/dprintf-posix-tests (Makefile.am): Likewise.
12265         * modules/exclude-tests (Makefile.am): Likewise.
12266         * modules/fflush-tests (Makefile.am): Likewise.
12267         * modules/fpending-tests (Makefile.am): Likewise.
12268         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12269         * modules/freadahead-tests (Makefile.am): Likewise.
12270         * modules/freadptr-tests (Makefile.am): Likewise.
12271         * modules/freadseek-tests (Makefile.am): Likewise.
12272         * modules/fseek-tests (Makefile.am): Likewise.
12273         * modules/fseeko-tests (Makefile.am): Likewise.
12274         * modules/ftell-tests (Makefile.am): Likewise.
12275         * modules/ftello-tests (Makefile.am): Likewise.
12276         * modules/idpriv-drop-tests (Makefile.am): Likewise.
12277         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
12278         * modules/lseek-tests (Makefile.am): Likewise.
12279         * modules/parse-duration-tests (Makefile.am): Likewise.
12280         * modules/perror-tests (Makefile.am): Likewise.
12281         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
12282         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
12283         * modules/pipe-tests (Makefile.am): Likewise.
12284         * modules/pread-tests (Makefile.am): Likewise.
12285         * modules/printf-posix-tests (Makefile.am): Likewise.
12286         * modules/select-tests (Makefile.am): Likewise.
12287         * modules/sigpipe-tests (Makefile.am): Likewise.
12288         * modules/tsearch-tests (Makefile.am): Likewise.
12289         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
12290         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
12291         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12292         * modules/uniwidth/width-tests (Makefile.am): Likewise.
12293         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
12294         * modules/version-etc-tests (Makefile.am): Likewise.
12295         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12296         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12297         * modules/xalloc-die-tests (Makefile.am): Likewise.
12298         * modules/xprintf-posix-tests (Makefile.am): Likewise.
12299         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12300         * modules/xstrtol-tests (Makefile.am): Likewise.
12301         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12302         * modules/yesno-tests (Makefile.am): Likewise.
12303         Suggested by Jim Meyering.
12304
12305 2010-01-24  Bruno Haible  <bruno@clisp.org>
12306
12307         More documentation.
12308         * doc/gnulib.texi (Writing modules): New chapter.
12309         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
12310         the new chapter.
12311
12312 2010-01-24  Jim Meyering  <meyering@redhat.com>
12313
12314         maint.mk: do not prepend "./" after filtering
12315         * top/maint.mk (_prepend_srcdir_prefix): New variable
12316         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
12317         "./" when $(srcdir) is ".".
12318
12319         define STREQ(a,b) consistently, removing useless parentheses
12320         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
12321         since the only risk is that "a" or "b" contains an unparenthesized
12322         comma, but if either did that, STREQ would have 3 or more arguments.
12323         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
12324         * lib/fts.c (STREQ): Remove unnecessary parentheses.
12325         * lib/hash-triple.c (STREQ): Likewise.
12326         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
12327         * lib/getugroups.c (STREQ): Likewise.
12328
12329 2010-01-23  Jim Meyering  <meyering@redhat.com>
12330
12331         maint.mk: fix syntax-check in a non-srcdir build directory
12332         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
12333         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
12334
12335 2010-01-22  Jim Meyering  <meyering@redhat.com>
12336
12337         userspec: add unit tests
12338         * tests/test-userspec.c: New file.
12339         * modules/userspec-tests: Likewise.
12340
12341 2010-01-21  Jim Meyering  <meyering@redhat.com>
12342
12343         maint.mk: handle source file names containing "." robustly
12344         * top/maint.mk (_dot_escaped_srcdir): Define.
12345         (VC_LIST): Use it in LHS of sed substitution.
12346
12347 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
12348
12349         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
12350         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
12351         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
12352         from a non-srcdir build.
12353
12354 2010-01-20  Eric Blake  <ebb9@byu.net>
12355
12356         warn-on-use: use instead of link-warning
12357         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
12358         * modules/unistd (Depends-on, Makefile.am): Likewise.
12359         * modules/arpa_inet (Depends-on): Replace link-warning with
12360         warn-on-use.
12361         (Makefile.am): Update rules accordingly.
12362         * modules/ctype (Depends-on, Makefile.am): Likewise.
12363         * modules/dirent (Depends-on, Makefile.am): Likewise.
12364         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
12365         * modules/inttypes (Depends-on, Makefile.am): Likewise.
12366         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12367         * modules/locale (Depends-on, Makefile.am): Likewise.
12368         * modules/math (Depends-on, Makefile.am): Likewise.
12369         * modules/search (Depends-on, Makefile.am): Likewise.
12370         * modules/signal (Depends-on, Makefile.am): Likewise.
12371         * modules/spawn (Depends-on, Makefile.am): Likewise.
12372         * modules/stdlib (Depends-on, Makefile.am): Likewise.
12373         * modules/string (Depends-on, Makefile.am): Likewise.
12374         * modules/strings (Depends-on, Makefile.am): Likewise.
12375         * modules/sys_file (Depends-on, Makefile.am): Likewise.
12376         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
12377         * modules/sys_select (Depends-on, Makefile.am): Likewise.
12378         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
12379         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
12380         * modules/sys_times (Depends-on, Makefile.am): Likewise.
12381         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12382         * modules/wchar (Depends-on, Makefile.am): Likewise.
12383         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
12384         should be poisoned.
12385         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
12386         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
12387         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
12388         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12389         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12390         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12391         * m4/math_h.m4 (gl_MATH_H): Likewise.
12392         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12393         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12394         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12395         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
12396         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
12397         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
12398         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12399         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
12400         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12402         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12403         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12404         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12405         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12406         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12407         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12408         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
12409         GL_LINK_WARNING.
12410         * lib/ctype.in.h: Likewise.
12411         * lib/dirent.in.h: Likewise.
12412         * lib/fcntl.in.h: Likewise.
12413         * lib/inttypes.in.h: Likewise.
12414         * lib/langinfo.in.h: Likewise.
12415         * lib/locale.in.h: Likewise.
12416         * lib/math.in.h: Likewise.
12417         * lib/search.in.h: Likewise.
12418         * lib/signal.in.h: Likewise.
12419         * lib/spawn.in.h: Likewise.
12420         * lib/stdio.in.h: Likewise.
12421         * lib/stdlib.in.h: Likewise.
12422         * lib/string.in.h: Likewise.
12423         * lib/strings.in.h: Likewise.
12424         * lib/sys_file.in.h: Likewise.
12425         * lib/sys_ioctl.in.h: Likewise.
12426         * lib/sys_select.in.h: Likewise.
12427         * lib/sys_socket.in.h: Likewise.
12428         * lib/sys_stat.in.h: Likewise.
12429         * lib/sys_times.in.h: Likewise.
12430         * lib/sys_utsname.in.h: Likewise.
12431         * lib/unistd.in.h: Likewise.
12432         * lib/wchar.in.h: Likewise.
12433
12434 2010-01-20  Bruno Haible  <bruno@clisp.org>
12435
12436         Avoid duplicate -lm.
12437         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
12438         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
12439         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
12440         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
12441         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
12442         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
12443         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
12444         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
12445         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
12446         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
12447         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
12448         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12449         Reported by Paolo Bonzini.
12450
12451 2010-01-19  Bruno Haible  <bruno@clisp.org>
12452
12453         langinfo, nl_langinfo: Relicense under LGPLv2+.
12454         * modules/langinfo (License): Change to LGPLv2+.
12455         * modules/nl_langinfo (License): Likewise.
12456         Patch by David Lutterkort <lutter@redhat.com>.
12457
12458 2010-01-19  Bruno Haible  <bruno@clisp.org>
12459
12460         Avoid compilation error with cc on OSF/1 5.1.
12461         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
12462         statement, not before.
12463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12464
12465 2010-01-18  Bruno Haible  <bruno@clisp.org>
12466
12467         Avoid a link error due to the __printf__ symbol.
12468         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
12469         and 2.6.x.
12470         (__format__, __printf__): Remove definitions.
12471         * lib/argp-fmtstream.h: Likewise.
12472         * lib/argp.h: Likewise.
12473         * lib/error.h: Likewise.
12474         * lib/vasnprintf.h: Likewise.
12475         * lib/xprintf.h: Likewise.
12476         * lib/xvasprintf.h: Likewise.
12477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12478
12479 2010-01-18  Bruno Haible  <bruno@clisp.org>
12480
12481         Tests for module 'tanl'.
12482         * modules/tanl-tests: New file.
12483         * tests/test-tanl.c: New file.
12484
12485         Tests for module 'sqrtl'.
12486         * modules/sqrtl-tests: New file.
12487         * tests/test-sqrtl.c: New file.
12488
12489         Tests for module 'sinl'.
12490         * modules/sinl-tests: New file.
12491         * tests/test-sinl.c: New file.
12492
12493         Tests for module 'logl'.
12494         * modules/logl-tests: New file.
12495         * tests/test-logl.c: New file.
12496
12497         Tests for module 'expl'.
12498         * modules/expl-tests: New file.
12499         * tests/test-expl.c: New file.
12500
12501         Tests for module 'cosl'.
12502         * modules/cosl-tests: New file.
12503         * tests/test-cosl.c: New file.
12504
12505         Tests for module 'atanl'.
12506         * modules/atanl-tests: New file.
12507         * tests/test-atanl.c: New file.
12508
12509         Tests for module 'asinl'.
12510         * modules/asinl-tests: New file.
12511         * tests/test-asinl.c: New file.
12512
12513         Tests for module 'acosl'.
12514         * modules/acosl-tests: New file.
12515         * tests/test-acosl.c: New file.
12516
12517         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12518         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
12519         tanl): Use the standard gnulib idiom.
12520         * lib/cosl.c: Don't include trigl.c and sincosl.c.
12521         * lib/sinl.c: Likewise.
12522         * lib/tanl.c: Don't include trigl.c.
12523         (kernel_tanl): Make static.
12524         * lib/sincosl.c: Include trigl.h first.
12525         * lib/trigl.c: Likewise.
12526         * m4/acosl.m4: New file.
12527         * m4/asinl.m4: New file.
12528         * m4/atanl.m4: New file.
12529         * m4/cosl.m4: New file.
12530         * m4/expl.m4: New file.
12531         * m4/logl.m4: New file.
12532         * m4/sinl.m4: New file.
12533         * m4/sqrtl.m4: New file.
12534         * m4/tanl.m4: New file.
12535         * m4/mathl.m4: Remove file.
12536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
12537         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
12538         Don't initialize GNULIB_MATHL.
12539         * modules/acosl: New file.
12540         * modules/asinl: New file.
12541         * modules/atanl: New file.
12542         * modules/cosl: New file.
12543         * modules/expl: New file.
12544         * modules/logl: New file.
12545         * modules/sinl: New file.
12546         * modules/sqrtl: New file.
12547         * modules/tanl: New file.
12548         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
12549         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
12550         substitute GNULIB_MATHL.
12551         * modules/mathl: Rewritten.
12552         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
12553         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
12554         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
12555         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
12556         * doc/posix-functions/expl.texi: Mention the 'expl' module.
12557         * doc/posix-functions/logl.texi: Mention the 'logl' module.
12558         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
12559         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
12560         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
12561
12562 2010-01-18  Bruno Haible  <bruno@clisp.org>
12563
12564         sqrt: Make gl_FUNC_SQRT requirable.
12565         * m4/sqrt.m4: New file.
12566         * modules/sqrt (Files): Add it.
12567         (configure.ac): Invoke gl_FUNC_SQRT.
12568
12569 2010-01-18  Bruno Haible  <bruno@clisp.org>
12570
12571         New modules for common <math.h> functions.
12572         * m4/mathfunc.m4: New file.
12573         * modules/acos: New file.
12574         * modules/asin: New file.
12575         * modules/atan: New file.
12576         * modules/atan2: New file.
12577         * modules/cbrt: New file.
12578         * modules/copysign: New file.
12579         * modules/cos: New file.
12580         * modules/cosh: New file.
12581         * modules/erf: New file.
12582         * modules/erfc: New file.
12583         * modules/exp: New file.
12584         * modules/fabs: New file.
12585         * modules/fmod: New file.
12586         * modules/hypot: New file.
12587         * modules/j0: New file.
12588         * modules/j1: New file.
12589         * modules/jn: New file.
12590         * modules/ldexp: New file.
12591         * modules/lgamma: New file.
12592         * modules/log: New file.
12593         * modules/log10: New file.
12594         * modules/log1p: New file.
12595         * modules/logb: New file.
12596         * modules/modf: New file.
12597         * modules/nextafter: New file.
12598         * modules/pow: New file.
12599         * modules/remainder: New file.
12600         * modules/rint: New file.
12601         * modules/sin: New file.
12602         * modules/sinh: New file.
12603         * modules/sqrt: New file.
12604         * modules/tan: New file.
12605         * modules/tanh: New file.
12606         * modules/y0: New file.
12607         * modules/y1: New file.
12608         * modules/yn: New file.
12609         * doc/posix-functions/acos.texi: Mention the 'acos' module.
12610         * doc/posix-functions/asin.texi: Mention the 'asin' module.
12611         * doc/posix-functions/atan.texi: Mention the 'atan' module.
12612         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
12613         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
12614         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
12615         * doc/posix-functions/cos.texi: Mention the 'cos' module.
12616         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
12617         * doc/posix-functions/erf.texi: Mention the 'erf' module.
12618         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
12619         * doc/posix-functions/exp.texi: Mention the 'exp' module.
12620         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
12621         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
12622         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
12623         * doc/posix-functions/j0.texi: Mention the 'j0' module.
12624         * doc/posix-functions/j1.texi: Mention the 'j1' module.
12625         * doc/posix-functions/jn.texi: Mention the 'jn' module.
12626         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
12627         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
12628         * doc/posix-functions/log.texi: Mention the 'log' module.
12629         * doc/posix-functions/log10.texi: Mention the 'log10' module.
12630         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
12631         * doc/posix-functions/logb.texi: Mention the 'logb' module.
12632         * doc/posix-functions/modf.texi: Mention the 'modf' module.
12633         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
12634         * doc/posix-functions/pow.texi: Mention the 'pow' module.
12635         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
12636         * doc/posix-functions/rint.texi: Mention the 'rint' module.
12637         * doc/posix-functions/sin.texi: Mention the 'sin' module.
12638         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
12639         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
12640         * doc/posix-functions/tan.texi: Mention the 'tan' module.
12641         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
12642         * doc/posix-functions/y0.texi: Mention the 'y0' module.
12643         * doc/posix-functions/y1.texi: Mention the 'y1' module.
12644         * doc/posix-functions/yn.texi: Mention the 'yn' module.
12645
12646 2010-01-18  Jim Meyering  <meyering@redhat.com>
12647
12648         ignore-value: relax license to LGPLv2+
12649         * modules/ignore-value (License): Relax to LGPLv2+.
12650
12651         getdate: don't leak when TZ contains two or more '"'s
12652         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
12653         double quote in TZ after the first one.
12654
12655         readtokens: do not leak internal token_lengths buffer
12656         * lib/readtokens.c (readtokens): Free the local, lengths,
12657         when the supplied "token_lengths" parameter is NULL.
12658
12659 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12660
12661         Fix a couple of missing LIBTHREAD link failures on AIX.
12662         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
12663         $(LIBTHREAD).
12664         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
12665
12666         Link test-poll against INET_PTON_LIB.
12667         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
12668         for inet_pton on Solaris 10.
12669
12670 2010-01-17  Bruno Haible  <bruno@clisp.org>
12671
12672         unistdio/*-sprintf: Fix typo in module description.
12673         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
12674         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
12675         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
12676         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
12677         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
12678         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
12679         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
12680         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12681
12682 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12683
12684         gnulib-tool: fix filelist for AIX, HP-UX ksh.
12685         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
12686         variables in shell case patterns, for AIX and HP-UX ksh.
12687
12688         Split large sed scripts, for HP-UX sed.
12689         * modules/stdio: Split sed scripts around 50 sed commands,
12690         to avoid HP-UX limit of 99 commands, in the near future.
12691         * modules/string: Likewise.
12692         * modules/unistd: Likewise.
12693
12694         gnulib-tool: avoid writing in the current directory.
12695         * gnulib-tool (func_emit_lib_Makefile_am)
12696         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
12697         not in the current directory, so concurrent gnulib-tool
12698         instances do not interfere.
12699
12700 2010-01-16  Jim Meyering  <meyering@redhat.com>
12701
12702         doc: update users.txt
12703         * users.txt: Add grep.
12704         (diffutils, gzip): Update URLs.
12705
12706 2010-01-12  Bruno Haible  <bruno@clisp.org>
12707
12708         posix_spawn: Avoid test failure on Cygwin.
12709         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
12710         characters.
12711         Reported by Simon Josefsson.
12712
12713 2010-01-12  Bruno Haible  <bruno@clisp.org>
12714
12715         * tests/test-cond.c (main): When skipping the test, show the reason.
12716
12717 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12718
12719         * lib/striconv.c (str_cd_iconv): Avoid if before free.
12720
12721 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12722
12723         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
12724         VC_LIST_ALWAYS_EXCLUDE_REGEX.
12725
12726 2010-01-12  Eric Blake  <ebb9@byu.net>
12727
12728         build: guarantee AS_VAR_IF
12729         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
12730         (gl_AS_VAR_IF): Move...
12731         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
12732         Reported by Simon Josefsson.
12733
12734 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12735
12736         * lib/stdio.in.h: Fix typo.
12737
12738 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12739
12740         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
12741         libgpg-error.
12742
12743 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12744
12745         * tests/test-xalloc-die.sh: Use $EXEEXT.
12746
12747 2010-01-12  Simon Josefsson  <simon@josefsson.org>
12748             Bruno Haible  <bruno@clisp.org>
12749
12750         getlogin, getlogin_r: Avoid test failure.
12751         * tests/test-getlogin.c: Include <stdio.h>.
12752         (main): Skip the test when the function fails because stdin is not a
12753         tty.
12754         * tests/test-getlogin_r.c: Include <stdio.h>.
12755         (main): Skip the test when the function fails because stdin is not a
12756         tty.
12757
12758 2010-01-11  Eric Blake  <ebb9@byu.net>
12759
12760         tests: avoid more large file warnings
12761         * tests/test-fflush.c: Avoid warning about ftell use.
12762         * tests/test-fseek.c: Avoid warning about fseek use.
12763
12764 2010-01-10  Bruno Haible  <bruno@clisp.org>
12765
12766         nproc: Work better on Linux when /proc and /sys are not mounted.
12767         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
12768         as lower bound when, on glibc/Linux systems,
12769         sysconf (_SC_NPROCESSORS_CONF) returns 1.
12770         Suggested by Pádraig Brady <P@draigbrady.com>.
12771         Reported by Dmitry V. Levin <ldv@altlinux.org>.
12772
12773         nproc: Refactor.
12774         * lib/nproc.c (num_processors_via_affinity_mask): New function,
12775         extracted from num_processors.
12776         (num_processors): Call it.
12777
12778 2010-01-11  Jim Meyering  <meyering@redhat.com>
12779
12780         utimecmp: avoid new warning from upcoming gcc-4.5.0
12781         * lib/utimecmp.c (BILLION): Define using #define rather than an
12782         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
12783
12784 2010-01-11  Eric Blake  <ebb9@byu.net>
12785
12786         math: add portability warnings for classification macros
12787         * modules/math (Depends-on): Add warn-on-use.
12788         (Makefile.am): Provide new substitutions.
12789         * m4/math_h.m4 (gl_MATH_H): Require inline.
12790         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
12791         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
12792         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
12793         implement warnings.
12794
12795         unistd: warn on use of environ without module
12796         * modules/unistd (Depends-on): Add warn-on-use.
12797         (Makefile.am): Provide new substitutions.
12798         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
12799         * lib/unistd.in.h (environ): Wrap with a warning helper function.
12800
12801         stdio: warn on suspicious uses
12802         * modules/stdio (Depends-on): Add warn-on-use.
12803         (Makefile.am): Provide new substitutions.
12804         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
12805         fseeko.
12806         * lib/stdio.in.h (gets): Always warn on use.
12807         (fseek, ftell): Adjust when warnings are issued, and honor
12808         _GL_NO_LARGE_FILES as a way to silence the warning.
12809         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
12810         any warning about large file offsets.
12811         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
12812         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
12813         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
12814         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
12815         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
12816         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
12817         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
12818         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
12819
12820         warn-on-use: new module
12821         * modules/warn-on-use: New file.
12822         * build-aux/warn-on-use.h: Likewise.
12823         * m4/warn-on-use.m4: Likewise.
12824         * MODULES.html.sh (Support for building): Mention it.
12825
12826 2010-01-10  Bruno Haible  <bruno@clisp.org>
12827
12828         Tests for module 'unistr/u32-strdup'.
12829         * modules/unistr/u32-strdup-tests: New file.
12830         * tests/unistr/test-u32-strdup.c: New file.
12831
12832         Tests for module 'unistr/u16-strdup'.
12833         * modules/unistr/u16-strdup-tests: New file.
12834         * tests/unistr/test-u16-strdup.c: New file.
12835
12836         Tests for module 'unistr/u8-strdup'.
12837         * modules/unistr/u8-strdup-tests: New file.
12838         * tests/unistr/test-u8-strdup.c: New file.
12839         * tests/unistr/test-strdup.h: New file.
12840
12841         Tests for module 'unistr/u32-strncmp'.
12842         * modules/unistr/u32-strncmp-tests: New file.
12843         * tests/unistr/test-u32-strncmp.c: New file.
12844
12845         Tests for module 'unistr/u16-strncmp'.
12846         * modules/unistr/u16-strncmp-tests: New file.
12847         * tests/unistr/test-u16-strncmp.c: New file.
12848
12849         Tests for module 'unistr/u8-strncmp'.
12850         * modules/unistr/u8-strncmp-tests: New file.
12851         * tests/unistr/test-u8-strncmp.c: New file.
12852         * tests/unistr/test-strncmp.h: New file.
12853
12854         Tests for module 'unistr/u32-strcoll'.
12855         * modules/unistr/u32-strcoll-tests: New file.
12856         * tests/unistr/test-u32-strcoll.c: New file.
12857
12858         Tests for module 'unistr/u16-strcoll'.
12859         * modules/unistr/u16-strcoll-tests: New file.
12860         * tests/unistr/test-u16-strcoll.c: New file.
12861
12862         Tests for module 'unistr/u8-strcoll'.
12863         * modules/unistr/u8-strcoll-tests: New file.
12864         * tests/unistr/test-u8-strcoll.c: New file.
12865
12866         Tests for module 'unistr/u32-strcmp'.
12867         * modules/unistr/u32-strcmp-tests: New file.
12868         * tests/unistr/test-u32-strcmp.c: New file.
12869         * tests/unistr/test-u32-strcmp.h: New file.
12870
12871         Tests for module 'unistr/u16-strcmp'.
12872         * modules/unistr/u16-strcmp-tests: New file.
12873         * tests/unistr/test-u16-strcmp.c: New file.
12874         * tests/unistr/test-u16-strcmp.h: New file.
12875
12876         Tests for module 'unistr/u8-strcmp'.
12877         * modules/unistr/u8-strcmp-tests: New file.
12878         * tests/unistr/test-u8-strcmp.c: New file.
12879         * tests/unistr/test-u8-strcmp.h: New file.
12880         * tests/unistr/test-strcmp.h: New file.
12881
12882         Tests for module 'unistr/u32-strncat'.
12883         * modules/unistr/u32-strncat-tests: New file.
12884         * tests/unistr/test-u32-strncat.c: New file.
12885
12886         Tests for module 'unistr/u16-strncat'.
12887         * modules/unistr/u16-strncat-tests: New file.
12888         * tests/unistr/test-u16-strncat.c: New file.
12889
12890         Tests for module 'unistr/u8-strncat'.
12891         * modules/unistr/u8-strncat-tests: New file.
12892         * tests/unistr/test-u8-strncat.c: New file.
12893         * tests/unistr/test-strncat.h: New file.
12894
12895         Tests for module 'unistr/u32-strcat'.
12896         * modules/unistr/u32-strcat-tests: New file.
12897         * tests/unistr/test-u32-strcat.c: New file.
12898
12899         Tests for module 'unistr/u16-strcat'.
12900         * modules/unistr/u16-strcat-tests: New file.
12901         * tests/unistr/test-u16-strcat.c: New file.
12902
12903         Tests for module 'unistr/u8-strcat'.
12904         * modules/unistr/u8-strcat-tests: New file.
12905         * tests/unistr/test-u8-strcat.c: New file.
12906         * tests/unistr/test-strcat.h: New file.
12907
12908         Tests for module 'unistr/u32-stpncpy'.
12909         * modules/unistr/u32-stpncpy-tests: New file.
12910         * tests/unistr/test-u32-stpncpy.c: New file.
12911
12912         Tests for module 'unistr/u16-stpncpy'.
12913         * modules/unistr/u16-stpncpy-tests: New file.
12914         * tests/unistr/test-u16-stpncpy.c: New file.
12915
12916         Tests for module 'unistr/u8-stpncpy'.
12917         * modules/unistr/u8-stpncpy-tests: New file.
12918         * tests/unistr/test-u8-stpncpy.c: New file.
12919         * tests/unistr/test-stpncpy.h: New file.
12920
12921         Tests for module 'unistr/u32-strncpy'.
12922         * modules/unistr/u32-strncpy-tests: New file.
12923         * tests/unistr/test-u32-strncpy.c: New file.
12924
12925         Tests for module 'unistr/u16-strncpy'.
12926         * modules/unistr/u16-strncpy-tests: New file.
12927         * tests/unistr/test-u16-strncpy.c: New file.
12928
12929         Tests for module 'unistr/u8-strncpy'.
12930         * modules/unistr/u8-strncpy-tests: New file.
12931         * tests/unistr/test-u8-strncpy.c: New file.
12932         * tests/unistr/test-strncpy.h: New file.
12933
12934         Tests for module 'unistr/u32-stpcpy'.
12935         * modules/unistr/u32-stpcpy-tests: New file.
12936         * tests/unistr/test-u32-stpcpy.c: New file.
12937
12938         Tests for module 'unistr/u16-stpcpy'.
12939         * modules/unistr/u16-stpcpy-tests: New file.
12940         * tests/unistr/test-u16-stpcpy.c: New file.
12941
12942         Tests for module 'unistr/u8-stpcpy'.
12943         * modules/unistr/u8-stpcpy-tests: New file.
12944         * tests/unistr/test-u8-stpcpy.c: New file.
12945         * tests/unistr/test-stpcpy.h: New file.
12946
12947         Tests for module 'unistr/u32-strcpy'.
12948         * modules/unistr/u32-strcpy-tests: New file.
12949         * tests/unistr/test-u32-strcpy.c: New file.
12950
12951         Tests for module 'unistr/u16-strcpy'.
12952         * modules/unistr/u16-strcpy-tests: New file.
12953         * tests/unistr/test-u16-strcpy.c: New file.
12954
12955         Tests for module 'unistr/u8-strcpy'.
12956         * modules/unistr/u8-strcpy-tests: New file.
12957         * tests/unistr/test-u8-strcpy.c: New file.
12958         * tests/unistr/test-strcpy.h: New file.
12959
12960         Tests for module 'unistr/u32-strnlen'.
12961         * modules/unistr/u32-strnlen-tests: New file.
12962         * tests/unistr/test-u32-strnlen.c: New file.
12963
12964         Tests for module 'unistr/u16-strnlen'.
12965         * modules/unistr/u16-strnlen-tests: New file.
12966         * tests/unistr/test-u16-strnlen.c: New file.
12967
12968         Tests for module 'unistr/u8-strnlen'.
12969         * modules/unistr/u8-strnlen-tests: New file.
12970         * tests/unistr/test-u8-strnlen.c: New file.
12971         * tests/unistr/test-strnlen.h: New file.
12972
12973         Tests for module 'unistr/u32-strlen'.
12974         * modules/unistr/u32-strlen-tests: New file.
12975         * tests/unistr/test-u32-strlen.c: New file.
12976
12977         Tests for module 'unistr/u16-strlen'.
12978         * modules/unistr/u16-strlen-tests: New file.
12979         * tests/unistr/test-u16-strlen.c: New file.
12980
12981         Tests for module 'unistr/u8-strlen'.
12982         * modules/unistr/u8-strlen-tests: New file.
12983         * tests/unistr/test-u8-strlen.c: New file.
12984
12985         Tests for module 'unistr/u32-prev'.
12986         * modules/unistr/u32-prev-tests: New file.
12987         * tests/unistr/test-u32-prev.c: New file.
12988
12989         Tests for module 'unistr/u16-prev'.
12990         * modules/unistr/u16-prev-tests: New file.
12991         * tests/unistr/test-u16-prev.c: New file.
12992
12993         Tests for module 'unistr/u8-prev'.
12994         * modules/unistr/u8-prev-tests: New file.
12995         * tests/unistr/test-u8-prev.c: New file.
12996
12997         Tests for module 'unistr/u32-next'.
12998         * modules/unistr/u32-next-tests: New file.
12999         * tests/unistr/test-u32-next.c: New file.
13000
13001         Tests for module 'unistr/u16-next'.
13002         * modules/unistr/u16-next-tests: New file.
13003         * tests/unistr/test-u16-next.c: New file.
13004
13005         Tests for module 'unistr/u8-next'.
13006         * modules/unistr/u8-next-tests: New file.
13007         * tests/unistr/test-u8-next.c: New file.
13008
13009         Tests for module 'unistr/u32-strmbtouc'.
13010         * modules/unistr/u32-strmbtouc-tests: New file.
13011         * tests/unistr/test-u32-strmbtouc.c: New file.
13012
13013         Tests for module 'unistr/u16-strmbtouc'.
13014         * modules/unistr/u16-strmbtouc-tests: New file.
13015         * tests/unistr/test-u16-strmbtouc.c: New file.
13016
13017         Tests for module 'unistr/u8-strmbtouc'.
13018         * modules/unistr/u8-strmbtouc-tests: New file.
13019         * tests/unistr/test-u8-strmbtouc.c: New file.
13020
13021         Tests for module 'unistr/u32-strmblen'.
13022         * modules/unistr/u32-strmblen-tests: New file.
13023         * tests/unistr/test-u32-strmblen.c: New file.
13024
13025         Tests for module 'unistr/u16-strmblen'.
13026         * modules/unistr/u16-strmblen-tests: New file.
13027         * tests/unistr/test-u16-strmblen.c: New file.
13028
13029         Tests for module 'unistr/u8-strmblen'.
13030         * modules/unistr/u8-strmblen-tests: New file.
13031         * tests/unistr/test-u8-strmblen.c: New file.
13032
13033         Tests for module 'unistr/u32-cpy-alloc'.
13034         * modules/unistr/u32-cpy-alloc-tests: New file.
13035         * tests/unistr/test-u32-cpy-alloc.c: New file.
13036
13037         Tests for module 'unistr/u16-cpy-alloc'.
13038         * modules/unistr/u16-cpy-alloc-tests: New file.
13039         * tests/unistr/test-u16-cpy-alloc.c: New file.
13040
13041         Tests for module 'unistr/u8-cpy-alloc'.
13042         * modules/unistr/u8-cpy-alloc-tests: New file.
13043         * tests/unistr/test-u8-cpy-alloc.c: New file.
13044         * tests/unistr/test-cpy-alloc.h: New file.
13045
13046         Tests for module 'unistr/u32-mbsnlen'.
13047         * modules/unistr/u32-mbsnlen-tests: New file.
13048         * tests/unistr/test-u32-mbsnlen.c: New file.
13049
13050         Tests for module 'unistr/u16-mbsnlen'.
13051         * modules/unistr/u16-mbsnlen-tests: New file.
13052         * tests/unistr/test-u16-mbsnlen.c: New file.
13053
13054         Tests for module 'unistr/u8-mbsnlen'.
13055         * modules/unistr/u8-mbsnlen-tests: New file.
13056         * tests/unistr/test-u8-mbsnlen.c: New file.
13057
13058         Tests for module 'unistr/u32-chr'.
13059         * modules/unistr/u32-chr-tests: New file.
13060         * tests/unistr/test-u32-chr.c: New file.
13061
13062         Tests for module 'unistr/u16-chr'.
13063         * modules/unistr/u16-chr-tests: New file.
13064         * tests/unistr/test-u16-chr.c: New file.
13065
13066         Tests for module 'unistr/u8-chr'.
13067         * modules/unistr/u8-chr-tests: New file.
13068         * tests/unistr/test-u8-chr.c: New file.
13069         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
13070
13071         Tests for module 'unistr/u32-cmp2'.
13072         * modules/unistr/u32-cmp2-tests: New file.
13073         * tests/unistr/test-u32-cmp2.c: New file.
13074
13075         Tests for module 'unistr/u16-cmp2'.
13076         * modules/unistr/u16-cmp2-tests: New file.
13077         * tests/unistr/test-u16-cmp2.c: New file.
13078
13079         Tests for module 'unistr/u8-cmp2'.
13080         * modules/unistr/u8-cmp2-tests: New file.
13081         * tests/unistr/test-u8-cmp2.c: New file.
13082         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
13083
13084         Tests for module 'unistr/u32-cmp'.
13085         * modules/unistr/u32-cmp-tests: New file.
13086         * tests/unistr/test-u32-cmp.c: New file.
13087
13088         Tests for module 'unistr/u16-cmp'.
13089         * modules/unistr/u16-cmp-tests: New file.
13090         * tests/unistr/test-u16-cmp.c: New file.
13091
13092         Tests for module 'unistr/u8-cmp'.
13093         * modules/unistr/u8-cmp-tests: New file.
13094         * tests/unistr/test-u8-cmp.c: New file.
13095         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
13096
13097         Tests for module 'unistr/u32-set'.
13098         * modules/unistr/u32-set-tests: New file.
13099         * tests/unistr/test-u32-set.c: New file.
13100
13101         Tests for module 'unistr/u16-set'.
13102         * modules/unistr/u16-set-tests: New file.
13103         * tests/unistr/test-u16-set.c: New file.
13104
13105         Tests for module 'unistr/u8-set'.
13106         * modules/unistr/u8-set-tests: New file.
13107         * tests/unistr/test-u8-set.c: New file.
13108         * tests/unistr/test-set.h: New file.
13109
13110         Tests for module 'unistr/u32-move'.
13111         * modules/unistr/u32-move-tests: New file.
13112         * tests/unistr/test-u32-move.c: New file.
13113
13114         Tests for module 'unistr/u16-move'.
13115         * modules/unistr/u16-move-tests: New file.
13116         * tests/unistr/test-u16-move.c: New file.
13117
13118         Tests for module 'unistr/u8-move'.
13119         * modules/unistr/u8-move-tests: New file.
13120         * tests/unistr/test-u8-move.c: New file.
13121         * tests/unistr/test-move.h: New file.
13122
13123         Tests for module 'unistr/u32-cpy'.
13124         * modules/unistr/u32-cpy-tests: New file.
13125         * tests/unistr/test-u32-cpy.c: New file.
13126
13127         Tests for module 'unistr/u16-cpy'.
13128         * modules/unistr/u16-cpy-tests: New file.
13129         * tests/unistr/test-u16-cpy.c: New file.
13130
13131         Tests for module 'unistr/u8-cpy'.
13132         * modules/unistr/u8-cpy-tests: New file.
13133         * tests/unistr/test-u8-cpy.c: New file.
13134         * tests/unistr/test-cpy.h: New file.
13135
13136 2010-01-09  Bruno Haible  <bruno@clisp.org>
13137
13138         Tests for module 'unistr/u32-uctomb'.
13139         * modules/unistr/u32-uctomb-tests: New file.
13140         * tests/unistr/test-u32-uctomb.c: New file.
13141
13142         Tests for module 'unistr/u16-uctomb'.
13143         * modules/unistr/u16-uctomb-tests: New file.
13144         * tests/unistr/test-u16-uctomb.c: New file.
13145
13146         Tests for module 'unistr/u8-uctomb'.
13147         * modules/unistr/u8-uctomb-tests: New file.
13148         * tests/unistr/test-u8-uctomb.c: New file.
13149
13150         Tests for module 'unistr/u32-mbtoucr'.
13151         * modules/unistr/u32-mbtoucr-tests: New file.
13152         * tests/unistr/test-u32-mbtoucr.c: New file.
13153
13154         Tests for module 'unistr/u16-mbtoucr'.
13155         * modules/unistr/u16-mbtoucr-tests: New file.
13156         * tests/unistr/test-u16-mbtoucr.c: New file.
13157
13158         Tests for module 'unistr/u8-mbtoucr'.
13159         * modules/unistr/u8-mbtoucr-tests: New file.
13160         * tests/unistr/test-u8-mbtoucr.c: New file.
13161
13162         Tests for module 'unistr/u32-mbtouc'.
13163         * modules/unistr/u32-mbtouc-tests: New file.
13164         * tests/unistr/test-u32-mbtouc.c: New file.
13165
13166         Tests for module 'unistr/u16-mbtouc'.
13167         * modules/unistr/u16-mbtouc-tests: New file.
13168         * tests/unistr/test-u16-mbtouc.c: New file.
13169
13170         Tests for module 'unistr/u8-mbtouc'.
13171         * modules/unistr/u8-mbtouc-tests: New file.
13172         * tests/unistr/test-u8-mbtouc.c: New file.
13173
13174         Tests for module 'unistr/u32-mbtouc-unsafe'.
13175         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
13176         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
13177         * tests/unistr/test-u32-mbtouc.h: New file.
13178
13179         Tests for module 'unistr/u16-mbtouc-unsafe'.
13180         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
13181         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
13182         * tests/unistr/test-u16-mbtouc.h: New file.
13183
13184         Tests for module 'unistr/u8-mbtouc-unsafe'.
13185         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
13186         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
13187         * tests/unistr/test-u8-mbtouc.h: New file.
13188
13189         Tests for module 'unistr/u32-mblen'.
13190         * modules/unistr/u32-mblen-tests: New file.
13191         * tests/unistr/test-u32-mblen.c: New file.
13192
13193         Tests for module 'unistr/u16-mblen'.
13194         * modules/unistr/u16-mblen-tests: New file.
13195         * tests/unistr/test-u16-mblen.c: New file.
13196
13197         Tests for module 'unistr/u8-mblen'.
13198         * modules/unistr/u8-mblen-tests: New file.
13199         * tests/unistr/test-u8-mblen.c: New file.
13200
13201         Tests for module 'unistr/u32-to-u16'.
13202         * modules/unistr/u32-to-u16-tests: New file.
13203         * tests/unistr/test-u32-to-u16.c: New file.
13204
13205         Tests for module 'unistr/u32-to-u8'.
13206         * modules/unistr/u32-to-u8-tests: New file.
13207         * tests/unistr/test-u32-to-u8.c: New file.
13208
13209         Tests for module 'unistr/u16-to-u32'.
13210         * modules/unistr/u16-to-u32-tests: New file.
13211         * tests/unistr/test-u16-to-u32.c: New file.
13212
13213         Tests for module 'unistr/u16-to-u8'.
13214         * modules/unistr/u16-to-u8-tests: New file.
13215         * tests/unistr/test-u16-to-u8.c: New file.
13216
13217         Tests for module 'unistr/u8-to-u32'.
13218         * modules/unistr/u8-to-u32-tests: New file.
13219         * tests/unistr/test-u8-to-u32.c: New file.
13220
13221         Tests for module 'unistr/u8-to-u16'.
13222         * modules/unistr/u8-to-u16-tests: New file.
13223         * tests/unistr/test-u8-to-u16.c: New file.
13224
13225         Tests for module 'unistr/u32-check'.
13226         * modules/unistr/u32-check-tests: New file.
13227         * tests/unistr/test-u32-check.c: New file.
13228
13229         Tests for module 'unistr/u16-check'.
13230         * modules/unistr/u16-check-tests: New file.
13231         * tests/unistr/test-u16-check.c: New file.
13232
13233         Tests for module 'unistr/u8-check'.
13234         * modules/unistr/u8-check-tests: New file.
13235         * tests/unistr/test-u8-check.c: New file.
13236
13237         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
13238         (category_equals): New function.
13239         (main): Add more tests.
13240         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
13241
13242         * tests/unictype/test-bidi_byname.c (main): Add more tests.
13243
13244 2010-01-10  Bruno Haible  <bruno@clisp.org>
13245
13246         unistr/u*-strcoll: Try harder to distinguish different strings.
13247         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
13248         compare s1 and s2 to see if they are different.
13249
13250 2010-01-10  Bruno Haible  <bruno@clisp.org>
13251
13252         unistr/u*-stpncpy: Fix the return value.
13253         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
13254         description of the return value consistent with stpncpy in glibc.
13255         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
13256         written non-NUL unit.
13257
13258 2010-01-10  Bruno Haible  <bruno@clisp.org>
13259
13260         unistr/u*-next: Add missing dependencies.
13261         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
13262         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
13263         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
13264
13265 2010-01-10  Bruno Haible  <bruno@clisp.org>
13266
13267         unistr/u8-mbsnlen: Fix return value for incomplete character.
13268         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
13269         u8_mblen.
13270         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
13271         Remove unistr/u8-mblen.
13272         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
13273         u16_mblen.
13274         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
13275         Remove unistr/u16-mblen.
13276
13277 2010-01-10  Bruno Haible  <bruno@clisp.org>
13278
13279         wchar: Fix compilation error when <wchar.h> is used from coreutils.
13280         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
13281         Reported by Brian Gough <bjg@gnu.org> and
13282         Chris Clayton <chris2553@googlemail.com> via
13283         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
13284
13285 2010-01-09  Bruno Haible  <bruno@clisp.org>
13286
13287         unistr/u16-to-u32: Reject invalid input.
13288         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
13289         u16_mbtouc.
13290         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
13291         Remove unistr/u16-mbtouc.
13292
13293         unistr/u16-to-u8: Reject invalid input.
13294         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
13295         u16_mbtouc.
13296         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
13297         Remove unistr/u16-mbtouc.
13298
13299         unistr/u8-to-u32: Reject invalid input.
13300         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
13301         u8_mbtouc.
13302         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
13303         Remove unistr/u8-mbtouc.
13304
13305         unistr/u8-to-u16: Reject invalid input.
13306         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
13307         u8_mbtouc.
13308         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
13309         Remove unistr/u8-mbtouc.
13310
13311 2010-01-09  Bruno Haible  <bruno@clisp.org>
13312
13313         Tests for module 'getlogin'.
13314         * modules/getlogin-tests: New file.
13315         * tests/test-getlogin.c: New file.
13316
13317         New module 'getlogin'.
13318         * lib/unistd.in.h (getlogin): New declaration.
13319         * lib/getlogin.c: New file.
13320         * m4/getlogin.m4: New file.
13321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
13322         HAVE_GETLOGIN.
13323         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
13324         HAVE_GETLOGIN.
13325         * modules/getlogin: New file.
13326         * doc/posix-functions/getlogin.texi: Mention the new module.
13327         Reported by John W. Eaton <jwe@gnu.org>.
13328
13329 2010-01-09  Bruno Haible  <bruno@clisp.org>
13330
13331         getlogin_r: Support for native Windows.
13332         * lib/getlogin_r.c: Include <windows.h>
13333         (getlogin_r): Implement for native Windows.
13334         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
13335         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
13336         via John W. Eaton <jwe@gnu.org>.
13337
13338 2010-01-09  Bruno Haible  <bruno@clisp.org>
13339
13340         getlogin_r: Small fixes.
13341         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
13342         succeeds.
13343         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
13344         before testing whether getlogin_r is declared. No need to set
13345         HAVE_DECL_GETLOGIN_R to 1.
13346         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
13347
13348 2010-01-09  Bruno Haible  <bruno@clisp.org>
13349
13350         * lib/unistd.in.h (getlogin_r): Add comment.
13351
13352 2010-01-09  Bruno Haible  <bruno@clisp.org>
13353
13354         Tests for module 'getlogin_r'.
13355         * modules/getlogin_r-tests: New file.
13356         * tests/test-getlogin_r.c: New file.
13357
13358 2010-01-09  Jim Meyering  <meyering@redhat.com>
13359
13360         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
13361         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
13362         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
13363
13364 2010-01-08  Simon Josefsson  <simon@josefsson.org>
13365
13366         * lib/dup2.c (rpl_dup2): Improve comment.
13367
13368 2010-01-08  Eric Blake  <ebb9@byu.net>
13369
13370         maint.mk: allow packages to add makefile @@ exceptions
13371         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
13372         (sc_makefile_check): Rename...
13373         (sc_makefile_at_at_check): ...to this, and use hook.
13374
13375         dup2: work around mingw bug
13376         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
13377         Reported by Simon Josefsson.
13378
13379 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
13380
13381         glob: Fix C++ compilation.
13382         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
13383         C++.
13384
13385 2010-01-07  Bruno Haible  <bruno@clisp.org>
13386
13387         Fix indentation of wctype.in.h, broken since 2007-01-06.
13388         * lib/wctype.in.h: Fix indentation of preprocessor directives.
13389
13390 2010-01-07  Bruno Haible  <bruno@clisp.org>
13391
13392         mbslen: Avoid collision with system function.
13393         * lib/string.in.h [MirBSD]: Include <wchar.h>.
13394         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
13395         * m4/mbslen.m4: New file.
13396         * modules/mbslen (Files): Add it.
13397         (configure.ac): Invoke gl_MBSLEN.
13398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
13399         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
13400         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
13401         via Ian Beckwith <ianb@erislabs.net>.
13402
13403 2010-01-07  Bruno Haible  <bruno@clisp.org>
13404
13405         dirent: Document the last fix.
13406         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
13407
13408 2010-01-07  Bruno Haible  <bruno@clisp.org>
13409
13410         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
13411         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
13412         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
13413         va_list are defined.
13414         * doc/posix-headers/stdio.texi: Document the bug of missing types.
13415         Reported by Eric Blake.
13416
13417 2010-01-07  Bruno Haible  <bruno@clisp.org>
13418
13419         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
13420         * modules/xlist (Depends-on): Add 'list',
13421         * modules/xoset (Depends-on): Add 'oset'.
13422         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13423
13424 2010-01-07  Bruno Haible  <bruno@clisp.org>
13425
13426         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
13427         * doc/posix-functions/strncasecmp.texi: Likewise.
13428
13429 2010-01-07  Bruno Haible  <bruno@clisp.org>
13430
13431         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
13432
13433 2010-01-07  John W. Eaton  <jwe@octave.org>
13434
13435         wctype: allow C++ use
13436         * lib/wctype.in.h: Add extern "C" block for C++.
13437
13438 2010-01-06  Eric Blake  <ebb9@byu.net>
13439
13440         maint.mk: detect incorrect GFDL usage
13441         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
13442
13443 2010-01-06  Jim Meyering  <meyering@redhat.com>
13444         and Eric Blake  <ebb9@byu.net>
13445
13446         maint.mk: ignore multi-line copyright in NEWS
13447         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
13448
13449 2010-01-06  Eric Blake  <ebb9@byu.net>
13450
13451         select: add missing dependency
13452         * modules/select-tests (Depends-on): Move sockets dependency...
13453         * modules/select (Depends-on): ...here.
13454         Reported by Ian Beckwith.
13455
13456         doc: regenerate INSTALL
13457         * doc/INSTALL: Reflect recent autoconf update.
13458         * doc/INSTALL.ISO: Likewise.
13459         * doc/INSTALL.UTF-8: Likewise.
13460
13461         pread: fix compilation on glibc
13462         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
13463         Reported by Ralf Wildenhues.
13464
13465         dirent: fix test failure
13466         * lib/dirent.in.h (includes): Guarantee ino_t.
13467         Reported by Ralf Wildenhues.
13468
13469 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
13470
13471         linkat, renameat: avoid bad free
13472         * lib/at-func2.c (at_func2): Fix typo.
13473         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
13474
13475 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13476
13477         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
13478         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
13479         to avoid failure of symlink test later.
13480
13481 2010-01-06  Eric Blake  <ebb9@byu.net>
13482
13483         stdio, unistd: guarantee ssize_t
13484         * lib/unistd.in.h (includes): Ensure that types required by POSIX
13485         2008 are exposed when needed.
13486         * lib/stdio.in.h (includes): Likewise.
13487         Reported by Ralf Wildenhues.
13488
13489 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
13490
13491         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
13492         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
13493         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
13494
13495 2010-01-06  Jim Meyering  <meyering@redhat.com>
13496
13497         readtokens: this module *does* require xalloc.h
13498         It uses only functions that were omitted by the old syntax-check rule.
13499         * lib/readtokens.c: Include "xalloc.h" once again.
13500         * modules/readtokens (Depends-on): Add xalloc.
13501         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
13502
13503 2010-01-05  Eric Blake  <ebb9@byu.net>
13504
13505         maint: support 'make announcement' from a VPATH build
13506         * top/maint.mk (announcement): Look for correct NEWS file.
13507
13508 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
13509
13510         utimens (fdutimens): ignore a negative FD, per contract
13511         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
13512         when we have a valid file descriptor.  Otherwise, using a brand
13513         new glibc (with just-patched futimens that now fails with EBADF)
13514         would cause this function to fail with ENOSYS.
13515         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
13516         See also http://bugzilla.redhat.com/552320.
13517
13518 2010-01-05  Eric Blake  <ebb9@byu.net>
13519
13520         strcase: document what it provides
13521         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
13522         gnulib module.
13523         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
13524         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
13525
13526 2010-01-05  Jim Meyering  <meyering@redhat.com>
13527
13528         maint: remove useless inclusions of "xalloc.h"
13529         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
13530         * lib/readtokens.c: Likewise.
13531         * lib/same.c: Likewise.
13532         * modules/getloadavg (Depends-on): Remove xalloc.
13533         * modules/readtokens: Likewise.
13534         * modules/same: Likewise.
13535
13536         maint.mk: include 4 more function names in alloca.h-checking regexp
13537         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
13538         regexp.  Before, we would give a false-positive (saying alloca.h
13539         is included unnecessarily) when the only uses involved omitted symbols.
13540
13541         xalloc.h: use consistent formatting
13542         * lib/xalloc.h: Move declarations to start in the first column.
13543
13544 2010-01-05  Eric Blake  <ebb9@byu.net>
13545
13546         mkdir: avoid xalloc
13547         * lib/mkdir.c (includes): Drop unused header.
13548         Reported by John W. Eaton.
13549
13550 2010-01-04  Jim Meyering  <meyering@redhat.com>
13551
13552         nl_langinfo: avoid configure-time syntax error
13553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
13554         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
13555         the empty string.  Don't let that provoke a shell syntax error.
13556
13557         regcomp, regexec, fnmatch: avoid array bounds read error
13558         * lib/regcomp.c (build_equiv_class): From glibc:
13559         Use only the low 24 bits of a findidx return value as an index
13560         into the weights array.  Patch by Ulrich Drepper:
13561         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
13562         * lib/regexec.c (check_node_accept_bytes): Likewise.
13563         * lib/fnmatch_loop.c (FCT): Likewise.
13564
13565         regcomp: skip collseq lookup when there are no rules
13566         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
13567         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
13568
13569         regcomp: recognize ill-formed { } expressions
13570         * lib/regcomp.c (parse_dup_op): From glibc:
13571         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
13572
13573         regcomp: fix typo in comment
13574         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
13575         s/satisfy/satisfies/.
13576
13577         regcomp: sync from glibc: remove dead store
13578         * lib/regcomp.c (duplicate_node_closure): Remove useless
13579         search_duplicated_node call and dead store.
13580
13581         regcomp: sync from glibc; always use nl_langinfo
13582         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
13583         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
13584         * modules/regex (Depends-on): Add nl_langinfo.
13585
13586 2010-01-04  Eric Blake  <ebb9@byu.net>
13587
13588         fdopendir: fix configure test
13589         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
13590
13591 2010-01-01  Bruno Haible  <bruno@clisp.org>
13592
13593         wchar: Remove unused configure check.
13594         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
13595
13596 2010-01-01  Eric Blake  <ebb9@byu.net>
13597
13598         headers: make check of system header explicit
13599         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
13600         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
13601         ourselves.
13602         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13604         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
13605         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
13606         internals.
13607         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
13608         missing.
13609         Suggested by Bruno Haible.
13610
13611 2010-01-01  Jim Meyering  <meyering@redhat.com>
13612
13613         ChangeLog: tweak to eliminate unnecessary copyright line
13614         * ChangeLog: Remove a copyright line that was mistakenly updated
13615         by today's update-copyright run.  Reported by Eric Blake.
13616
13617         test-update-copyright: don't let envvar setting cause test failure
13618         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13619
13620 2010-01-01  Bruno Haible  <bruno@clisp.org>
13621
13622         localename: Avoid gcc warning.
13623         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
13624         function if it is not used.
13625
13626 2010-01-01  Jim Meyering  <meyering@redhat.com>
13627
13628         update nearly all FSF copyright year lists to include 2010
13629         Use the same procedure as for 2009, outlined in
13630         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
13631
13632         version-etc: set COPYRIGHT_YEAR to 2010
13633         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
13634
13635 2009-12-31  Eric Blake  <ebb9@byu.net>
13636
13637         doc: correct availability of cygwin 1.5.x getopt
13638         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
13639         variables.
13640         * doc/posix-functions/opterr.texi (opterr): Likewise.
13641         * doc/posix-functions/optind.texi (optind): Likewise.
13642         * doc/posix-functions/optopt.texi (optopt): Likewise.
13643         * doc/posix-functions/tzname.texi (tzname): Likewise.
13644
13645         openat: update maintainer
13646         * modules/openat (Maintainer): Add myself.
13647
13648         utimens: avoid shadowing warning
13649         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
13650         buffers into one, to avoid shadowing, as well as avoiding a
13651         redundant stat.
13652         Reported by Jim Meyering.
13653
13654         test-dup2: avoid compiler warning
13655         * tests/test-dup2.c (is_inheritable): Only define if used.
13656
13657 2010-01-01  Bruno Haible  <bruno@clisp.org>
13658
13659         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
13660         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
13661         defined, use wctomb instead of wcrtomb.
13662
13663 2010-01-01  Bruno Haible  <bruno@clisp.org>
13664
13665         iconv: Reject native Solaris iconv.
13666         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
13667         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
13668
13669 2009-12-31  Bruno Haible  <bruno@clisp.org>
13670
13671         * tests/test-signal.c (main): Remove test of 'SIG'.
13672
13673 2009-12-31  Bruno Haible  <bruno@clisp.org>
13674
13675         spawn: Fix incomplete fix.
13676         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13677         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13678         warnings for GNULIB_POSIXCHECK again.
13679         Reported by Eric Blake.
13680
13681 2009-12-31  Bruno Haible  <bruno@clisp.org>
13682
13683         Avoid namespace pollution on glibc systems.
13684         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
13685         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
13686         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
13687         glibc systems.
13688
13689 2009-12-31  Bruno Haible  <bruno@clisp.org>
13690
13691         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
13692         (gl_REPLACE_WCHAR_H): Turn into a no-op.
13693         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
13694         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13695         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13696         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13697         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13698
13699 2009-12-31  Bruno Haible  <bruno@clisp.org>
13700
13701         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
13702         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
13703         afterwards.
13704
13705 2009-12-31  Bruno Haible  <bruno@clisp.org>
13706
13707         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
13708         SYS_UTSNAME_H.
13709
13710 2009-12-31  Bruno Haible  <bruno@clisp.org>
13711
13712         spawn: Fix misapplied patch.
13713         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
13714         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
13715         warnings for GNULIB_POSIXCHECK.
13716
13717 2009-12-31  Bruno Haible  <bruno@clisp.org>
13718
13719         times: Update after sys_times changed.
13720         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
13721         * modules/times (Files): Add it.
13722         (configure.ac): Invoke gl_FUNC_TIMES.
13723
13724 2009-12-31  Bruno Haible  <bruno@clisp.org>
13725
13726         Use AC_C_INLINE where necessary.
13727         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
13728         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13730         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
13731         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13732         * m4/mbiter.m4 (gl_MBITER): Likewise.
13733         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13734         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13735         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
13736         * modules/u64 (configure.ac): Likewise.
13737
13738 2009-12-31  Bruno Haible  <bruno@clisp.org>
13739
13740         Use AC_C_INLINE instead of module 'inline' where possible.
13741         * modules/inline (Description): Clarify purpose.
13742         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
13743         * modules/count-one-bits (Depends-on): Remove inline.
13744         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
13745         * modules/openat (Depends-on): Remove inline.
13746         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
13747         instead of depending on module 'inline'.
13748         * modules/filevercmp (Depends-on, configure.ac): Likewise.
13749         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
13750         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
13751         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
13752         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
13753         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
13754         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
13755         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
13756         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
13757         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
13758         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
13759         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
13760         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
13761         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
13762         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
13763         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
13764         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
13765         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
13766         Likewise.
13767         * modules/unictype/property-ascii-hex-digit (Depends-on,
13768         configure.ac): Likewise.
13769         * modules/unictype/property-bidi-arabic-digit (Depends-on,
13770         configure.ac): Likewise.
13771         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
13772         configure.ac): Likewise.
13773         * modules/unictype/property-bidi-block-separator (Depends-on,
13774         configure.ac): Likewise.
13775         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
13776         configure.ac): Likewise.
13777         * modules/unictype/property-bidi-common-separator (Depends-on,
13778         configure.ac): Likewise.
13779         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
13780         Likewise.
13781         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
13782         configure.ac): Likewise.
13783         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
13784         configure.ac): Likewise.
13785         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
13786         configure.ac): Likewise.
13787         * modules/unictype/property-bidi-european-digit (Depends-on,
13788         configure.ac): Likewise.
13789         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
13790         configure.ac): Likewise.
13791         * modules/unictype/property-bidi-left-to-right (Depends-on,
13792         configure.ac): Likewise.
13793         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
13794         configure.ac): Likewise.
13795         * modules/unictype/property-bidi-other-neutral (Depends-on,
13796         configure.ac): Likewise.
13797         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
13798         Likewise.
13799         * modules/unictype/property-bidi-segment-separator (Depends-on,
13800         configure.ac): Likewise.
13801         * modules/unictype/property-bidi-whitespace (Depends-on,
13802         configure.ac): Likewise.
13803         * modules/unictype/property-combining (Depends-on, configure.ac):
13804         Likewise.
13805         * modules/unictype/property-composite (Depends-on, configure.ac):
13806         Likewise.
13807         * modules/unictype/property-currency-symbol (Depends-on,
13808         configure.ac): Likewise.
13809         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
13810         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
13811         Likewise.
13812         * modules/unictype/property-default-ignorable-code-point (Depends-on,
13813         configure.ac): Likewise.
13814         * modules/unictype/property-deprecated (Depends-on, configure.ac):
13815         Likewise.
13816         * modules/unictype/property-diacritic (Depends-on, configure.ac):
13817         Likewise.
13818         * modules/unictype/property-extender (Depends-on, configure.ac):
13819         Likewise.
13820         * modules/unictype/property-format-control (Depends-on, configure.ac):
13821         Likewise.
13822         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
13823         Likewise.
13824         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
13825         Likewise.
13826         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
13827         Likewise.
13828         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
13829         Likewise.
13830         * modules/unictype/property-hyphen (Depends-on, configure.ac):
13831         Likewise.
13832         * modules/unictype/property-id-continue (Depends-on, configure.ac):
13833         Likewise.
13834         * modules/unictype/property-id-start (Depends-on, configure.ac):
13835         Likewise.
13836         * modules/unictype/property-ideographic (Depends-on, configure.ac):
13837         Likewise.
13838         * modules/unictype/property-ids-binary-operator (Depends-on,
13839         configure.ac): Likewise.
13840         * modules/unictype/property-ids-trinary-operator (Depends-on,
13841         configure.ac): Likewise.
13842         * modules/unictype/property-ignorable-control (Depends-on,
13843         configure.ac): Likewise.
13844         * modules/unictype/property-iso-control (Depends-on, configure.ac):
13845         Likewise.
13846         * modules/unictype/property-join-control (Depends-on, configure.ac):
13847         Likewise.
13848         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
13849         Likewise.
13850         * modules/unictype/property-line-separator (Depends-on, configure.ac):
13851         Likewise.
13852         * modules/unictype/property-logical-order-exception (Depends-on,
13853         configure.ac): Likewise.
13854         * modules/unictype/property-lowercase (Depends-on, configure.ac):
13855         Likewise.
13856         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
13857         * modules/unictype/property-non-break (Depends-on, configure.ac):
13858         Likewise.
13859         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
13860         Likewise.
13861         * modules/unictype/property-numeric (Depends-on, configure.ac):
13862         Likewise.
13863         * modules/unictype/property-other-alphabetic (Depends-on,
13864         configure.ac): Likewise.
13865         * modules/unictype/property-other-default-ignorable-code-point
13866         (Depends-on, configure.ac): Likewise.
13867         * modules/unictype/property-other-grapheme-extend (Depends-on,
13868         configure.ac): Likewise.
13869         * modules/unictype/property-other-id-continue (Depends-on,
13870         configure.ac): Likewise.
13871         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
13872         Likewise.
13873         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
13874         Likewise.
13875         * modules/unictype/property-other-math (Depends-on, configure.ac):
13876         Likewise.
13877         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
13878         Likewise.
13879         * modules/unictype/property-paired-punctuation (Depends-on,
13880         configure.ac): Likewise.
13881         * modules/unictype/property-paragraph-separator (Depends-on,
13882         configure.ac): Likewise.
13883         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
13884         Likewise.
13885         * modules/unictype/property-pattern-white-space (Depends-on,
13886         configure.ac): Likewise.
13887         * modules/unictype/property-private-use (Depends-on, configure.ac):
13888         Likewise.
13889         * modules/unictype/property-punctuation (Depends-on, configure.ac):
13890         Likewise.
13891         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
13892         Likewise.
13893         * modules/unictype/property-radical (Depends-on, configure.ac):
13894         Likewise.
13895         * modules/unictype/property-sentence-terminal (Depends-on,
13896         configure.ac): Likewise.
13897         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
13898         Likewise.
13899         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
13900         * modules/unictype/property-terminal-punctuation (Depends-on,
13901         configure.ac): Likewise.
13902         * modules/unictype/property-titlecase (Depends-on, configure.ac):
13903         Likewise.
13904         * modules/unictype/property-unassigned-code-value (Depends-on,
13905         configure.ac): Likewise.
13906         * modules/unictype/property-unified-ideograph (Depends-on,
13907         configure.ac): Likewise.
13908         * modules/unictype/property-uppercase (Depends-on, configure.ac):
13909         Likewise.
13910         * modules/unictype/property-variation-selector (Depends-on,
13911         configure.ac): Likewise.
13912         * modules/unictype/property-white-space (Depends-on, configure.ac):
13913         Likewise.
13914         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
13915         Likewise.
13916         * modules/unictype/property-xid-start (Depends-on, configure.ac):
13917         Likewise.
13918         * modules/unictype/property-zero-width (Depends-on, configure.ac):
13919         Likewise.
13920         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
13921         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
13922         Likewise.
13923
13924 2009-12-31  Bruno Haible  <bruno@clisp.org>
13925
13926         Remove unnecessary AC_C_INLINE invocation.
13927         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
13928         since 2009-08-21.
13929
13930 2009-12-31  Jim Meyering  <meyering@redhat.com>
13931
13932         maint.mk: don't require explicit gpg_key_ID in cfg.mk
13933         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
13934         With this change, we can all remove the gpg_key_ID = ... definition
13935         from our respective cfg.mk files.
13936
13937         maint.mk: create announcement template in ~/, not in /tmp
13938         * top/maint.mk (emit_upload_commands): Adjust.
13939         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
13940         Remove temporary file, .ci-msg.
13941
13942 2009-12-31  Eric Blake  <ebb9@byu.net>
13943
13944         link-warning: always build headers with link warnings
13945         * modules/arpa_inet (Makefile.am): Always build replacement
13946         header.
13947         * modules/ctype (Makefile.am): Likewise.
13948         * modules/dirent (Makefile.am): Likewise.
13949         * modules/inttypes (Makefile.am): Likewise.
13950         * modules/langinfo (Makefile.am): Likewise.
13951         * modules/locale (Makefile.am): Likewise.
13952         * modules/spawn (Makefile.am): Likewise.
13953         * modules/sys_file (Makefile.am): Likewise.
13954         * modules/sys_ioctl (Makefile.am): Likewise.
13955         * modules/sys_select (Makefile.am): Likewise.
13956         * modules/sys_socket (Makefile.am): Likewise.
13957         * modules/sys_times (Makefile.am): Likewise.
13958         * modules/sys_utsname (Makefile.am): Likewise.
13959         * modules/sys_wait (Makefile.am): Likewise.
13960         * modules/wchar (Makefile.am): Likewise.
13961         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
13962         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
13963         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
13964         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
13965         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
13966         Likewise.
13967         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13968         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13969         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
13970         Likewise.
13971         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
13972         Likewise.
13973         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13974         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
13975         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
13976         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13977         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13978         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
13979         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
13980         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
13981         (gl_WCHAR_H_DEFAULTS): Likewise.
13982
13983 2009-12-31  Eric Blake  <ebb9@byu.net>
13984
13985         signal, spawn: use link warnings
13986         * lib/signal.in.h (sigset_t): Make unconditional.
13987         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
13988         (sigpending, sigprocmask, sigaction): Add link warnings.
13989         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
13990         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
13991         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
13992         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
13993         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
13994         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
13995         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
13996         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
13997         (posix_spawn_file_actions_destroy)
13998         (posix_spawn_file_actions_addopen)
13999         (posix_spawn_file_actions_addclose)
14000         (posix_spawn_file_actions_adddup2): Likewise.
14001         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
14002         * tests/test-signal.c (main): Enhance test.
14003
14004         spawn: improve wrapper support
14005         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
14006         (gl_SPAWN_H_DEFAULTS): New defaults.
14007         * modules/spawn (Makefile.am): Substitute them.
14008         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
14009         Only declare if missing or broken.
14010
14011         sys_times, sys_utsname: use include_next
14012         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
14013         header.
14014         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
14015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
14016         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
14017         * modules/sys_times (Depends-on): Add include_next.
14018         (Makefile.am): Substitute additional values.
14019         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
14020         * lib/sys_times.in.h (includes): Include native header, if
14021         available.
14022         * lib/sys_utsname.in.h (includes): Likewise.
14023         * tests/test-sys_times.c (main): Enhance test.
14024
14025         fdutimensat: revert prior patch
14026         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
14027         utimens.h.
14028         Reported by Bruno Haible.
14029
14030 2009-12-30  Eric Blake  <ebb9@byu.net>
14031
14032         sys_wait: drop link-warning dependency
14033         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
14034         link-warning efforts.
14035         * lib/sys_wait.in.h: Likewise.
14036
14037         fdutimensat: remove bogus dependency
14038         * modules/fdutimensat (Depends-on): Drop inline.
14039
14040         unistd: fix typo
14041         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
14042
14043 2009-12-30  Bruno Haible  <bruno@clisp.org>
14044
14045         Fix compilation error with Solaris cc.
14046         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
14047         * lib/unicase/u16-is-invariant.c: Likewise.
14048         * lib/unicase/u32-is-invariant.c: Likewise.
14049         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14050
14051 2009-12-30  Bruno Haible  <bruno@clisp.org>
14052
14053         Fix test crash.
14054         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
14055         locales.
14056         Reported by Simon Josefsson <simon@josefsson.org>.
14057
14058 2009-12-30  Bruno Haible  <bruno@clisp.org>
14059
14060         Fix compilation error on most platforms.
14061         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
14062         Reported by Simon Josefsson <simon@josefsson.org>
14063         and Nelson H. F. Beebe <beebe@math.utah.edu>.
14064
14065 2009-12-30  Eric Blake  <ebb9@byu.net>
14066
14067         futimens, utimensat: work around ntfs-3g bug
14068         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
14069         a ctime bug is present, and expand workaround to cover ntfs-3g.
14070         * lib/utimens.c (fdutimens, lutimens): Likewise.
14071         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
14072         (validate_timespec): Adjust return value.
14073         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
14074         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14075         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
14076
14077 2009-12-29  Eric Blake  <ebb9@byu.net>
14078
14079         link-warning: make usage consistent
14080         * modules/ctype (Depends-on): Add link-warning.
14081         (Makefile.am): Update rules accordingly.
14082         * modules/langinfo (Depends-on, Makefile.am): Likewise.
14083         * modules/locale (Depends-on, Makefile.am): Likewise.
14084         * modules/sys_file (Makefile.am): Likewise.
14085         * modules/getopt-posix (Makefile.am): Delete unused link warning
14086         efforts.
14087         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
14088         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
14089         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
14090         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
14091
14092         stdio: remove unused variables
14093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
14094         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
14095         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14096
14097         tests: test more substitute headers
14098         * modules/ctype-tests: New file.
14099         * modules/dirent-tests: Likewise.
14100         * modules/spawn-tests: Likewise.
14101         * modules/sys_file-tests: Likewise.
14102         * modules/sys_ioctl-tests: Likewise.
14103         * modules/sys_wait-tests: Likewise.
14104         * tests/test-ctype.c: Likewise.
14105         * tests/test-dirent.c: Likewise.
14106         * tests/test-spawn.c: Likewise.
14107         * tests/test-sys_file.c: Likewise.
14108         * tests/test-sys_ioctl.c: Likewise.
14109         * tests/test-sys_wait.c: Likewise.
14110         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
14111         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
14112         whether or not flock is in use.
14113
14114         tests: remove License section from module
14115         * modules/arpa_inet-tests: Remove unneeded section.
14116         * modules/byteswap-tests: Likewise.
14117         * modules/ceilf-tests: Likewise.
14118         * modules/ceill-tests: Likewise.
14119         * modules/crypto/des-tests: Likewise.
14120         * modules/crypto/gc-arcfour-tests: Likewise.
14121         * modules/crypto/gc-arctwo-tests: Likewise.
14122         * modules/crypto/gc-des-tests: Likewise.
14123         * modules/crypto/gc-hmac-md5-tests: Likewise.
14124         * modules/crypto/gc-hmac-sha1-tests: Likewise.
14125         * modules/crypto/gc-md2-tests: Likewise.
14126         * modules/crypto/gc-md4-tests: Likewise.
14127         * modules/crypto/gc-md5-tests: Likewise.
14128         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
14129         * modules/crypto/gc-rijndael-tests: Likewise.
14130         * modules/crypto/gc-sha1-tests: Likewise.
14131         * modules/crypto/gc-tests: Likewise.
14132         * modules/crypto/md2-tests: Likewise.
14133         * modules/crypto/md4-tests: Likewise.
14134         * modules/fcntl-h-tests: Likewise.
14135         * modules/floorf-tests: Likewise.
14136         * modules/floorl-tests: Likewise.
14137         * modules/frexp-nolibm-tests: Likewise.
14138         * modules/frexp-tests: Likewise.
14139         * modules/frexpl-nolibm-tests: Likewise.
14140         * modules/frexpl-tests: Likewise.
14141         * modules/getaddrinfo-tests: Likewise.
14142         * modules/inttypes-tests: Likewise.
14143         * modules/isfinite-tests: Likewise.
14144         * modules/isinf-tests: Likewise.
14145         * modules/ldexpl-tests: Likewise.
14146         * modules/locale-tests: Likewise.
14147         * modules/math-tests: Likewise.
14148         * modules/netdb-tests: Likewise.
14149         * modules/netinet_in-tests: Likewise.
14150         * modules/printf-frexp-tests: Likewise.
14151         * modules/printf-frexpl-tests: Likewise.
14152         * modules/priv-set-tests: Likewise.
14153         * modules/random_r-tests: Likewise.
14154         * modules/round-tests: Likewise.
14155         * modules/roundf-tests: Likewise.
14156         * modules/roundl-tests: Likewise.
14157         * modules/search-tests: Likewise.
14158         * modules/select-tests: Likewise.
14159         * modules/signal-tests: Likewise.
14160         * modules/stdbool-tests: Likewise.
14161         * modules/stddef-tests: Likewise.
14162         * modules/stdint-tests: Likewise.
14163         * modules/stdio-tests: Likewise.
14164         * modules/stdlib-tests: Likewise.
14165         * modules/string-tests: Likewise.
14166         * modules/strings-tests: Likewise.
14167         * modules/sys_select-tests: Likewise.
14168         * modules/sys_socket-tests: Likewise.
14169         * modules/sys_stat-tests: Likewise.
14170         * modules/sys_time-tests: Likewise.
14171         * modules/sys_utsname-tests: Likewise.
14172         * modules/sysexits-tests: Likewise.
14173         * modules/time-tests: Likewise.
14174         * modules/trunc-tests: Likewise.
14175         * modules/truncf-tests: Likewise.
14176         * modules/truncl-tests: Likewise.
14177         * modules/tsearch-tests: Likewise.
14178         * modules/unistd-tests: Likewise.
14179         * modules/wchar-tests: Likewise.
14180         * modules/wctype-tests: Likewise.
14181
14182         tests: fix license on several tests
14183         * tests/test-des.c: Update to GPLv3+.
14184         * tests/test-flock.c: Likewise.
14185         * tests/test-fsync.c: Likewise.
14186         * tests/test-futimens.h: Likewise.
14187         * tests/test-gc-arcfour.c: Likewise.
14188         * tests/test-gc-arctwo.c: Likewise.
14189         * tests/test-gc-des.c: Likewise.
14190         * tests/test-gc-hmac-md5.c: Likewise.
14191         * tests/test-gc-hmac-sha1.c: Likewise.
14192         * tests/test-gc-md2.c: Likewise.
14193         * tests/test-gc-md4.c: Likewise.
14194         * tests/test-gc-md5.c: Likewise.
14195         * tests/test-gc-pbkdf2-sha1.c: Likewise.
14196         * tests/test-gc-rijndael.c: Likewise.
14197         * tests/test-gc-sha1.c: Likewise.
14198         * tests/test-gc.c: Likewise.
14199         * tests/test-getcwd.c: Likewise.
14200         * tests/test-link.c: Likewise.
14201         * tests/test-link.h: Likewise.
14202         * tests/test-lutimens.h: Likewise.
14203         * tests/test-md2.c: Likewise.
14204         * tests/test-md4.c: Likewise.
14205         * tests/test-mkdir.h: Likewise.
14206         * tests/test-rename.c: Likewise.
14207         * tests/test-rename.h: Likewise.
14208         * tests/test-safe-alloc.c: Likewise.
14209         * tests/test-utimens-common.h: Likewise.
14210         * tests/test-utimens.h: Likewise.
14211
14212         maint: sync license texts
14213         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
14214         * doc/gpl-3.0.texi: Revert copyright year update.
14215         * doc/lgpl-3.0.texi: Likewise.
14216
14217 2009-12-29  Jim Meyering  <meyering@redhat.com>
14218
14219         update nearly all FSF copyright year lists to include 2009
14220         The files named by the following are exempted:
14221             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
14222               test -f "$dst" && { echo "$dst"; continue; }
14223               test -d "$dst" || continue
14224               echo "$dst"/$(basename "$src")
14225             done > exempt
14226             git ls-files tests/unictype >> exempt
14227         In the remaining files, convert to all-interval notation if
14228         - there is already at least one year interval like 2000-2003
14229         - the file is maintained by me
14230         - the file is in lib/uni*/, where that style already prevails
14231         Otherwise, use update-copyright's default.
14232
14233 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14234         and Eric Blake  <ebb9@byu.net>
14235
14236         tests: don't require debug system() to pass
14237         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
14238         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14239         * tests/test-unlink.h (test_unlink_func): Likewise.
14240         * tests/test-fstatat.c (main): ...into callers.
14241         * tests/test-lstat.c (main): Likewise.
14242         * tests/test-rmdir.c (main): Likewise.
14243         * tests/test-unlink.c (main): Likewise.
14244         * tests/test-unlinkat.c (main): Likewise.
14245         * tests/test-areadlink-with-size.c (main): Don't require a
14246         debug-only system call to pass, aiding cross-testing to mingw.
14247         * tests/test-areadlink.c (main): Likewise.
14248         * tests/test-areadlinkat-with-size.c (main): Likewise.
14249         * tests/test-areadlinkat.c (main): Likewise.
14250         * tests/test-canonicalize-lgpl.c (main): Likewise.
14251         * tests/test-canonicalize.c (main): Likewise.
14252         * tests/test-chown.c (main): Likewise.
14253         * tests/test-fchownat.c (main): Likewise.
14254         * tests/test-lchown.c (main): Likewise.
14255         * tests/test-fdutimensat.c (main): Likewise.
14256         * tests/test-futimens.c (main): Likewise.
14257         * tests/test-link.c (main): Likewise.
14258         * tests/test-linkat.c (main): Likewise.
14259         * tests/test-mkdir.c (main): Likewise.
14260         * tests/test-mkdirat.c (main): Likewise.
14261         * tests/test-mkfifo.c (main): Likewise.
14262         * tests/test-mkfifoat.c (main): Likewise.
14263         * tests/test-mknod.c (main): Likewise.
14264         * tests/test-readlink.c (main): Likewise.
14265         * tests/test-remove.c (main): Likewise.
14266         * tests/test-rename.c (main): Likewise.
14267         * tests/test-renameat.c (main): Likewise.
14268         * tests/test-symlink.c (main): Likewise.
14269         * tests/test-symlinkat.c (main): Likewise.
14270         * tests/test-utimens.c (main): Likewise.
14271         * tests/test-utimensat.c (main): Likewise.
14272
14273 2009-12-29  Simon Josefsson  <simon@josefsson.org>
14274
14275         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
14276         on $(UNUSED_PARAMETER_H) to avoid build failure.
14277
14278 2009-12-28  Jim Meyering  <meyering@redhat.com>
14279
14280         update-copyright: you may specify a max. line length other than 72
14281         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
14282
14283         maint: use consistent FSF copyright line syntax
14284         * lib/posixtm.c: Add missing comma in FSF copyright line.
14285         * lib/posixtm.h: Likewise.
14286         * lib/getugroups.c: Add missing ", Inc.".
14287
14288         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
14289         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
14290         FSF copyright line.  Remove trailing blanks.
14291
14292 2009-12-28  Eric Blake  <ebb9@byu.net>
14293
14294         test-dup2: reduce dependencies
14295         * modules/cloexec (Configure.ac): Set witness.
14296         * modules/dup2-tests (Depends-on): Drop cloexec.
14297         * tests/test-dup2.c (main): Skip portion of test if cloexec module
14298         not present.
14299         Suggested by Bruno Haible.
14300
14301 2009-12-26  Bruno Haible  <bruno@clisp.org>
14302
14303         Remove an unneeded dependency.
14304         * modules/fseterr (Depends-on): Remove dup2.
14305
14306 2009-12-26  Eric Blake  <ebb9@byu.net>
14307
14308         tests: use macros.h in more places
14309         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
14310         (ASSERT_STREAM): Provide default of stderr.
14311         * tests/test-dirent-safer.c: Include macros.h, using alternate
14312         stream for assertions.
14313         * tests/test-dup-safer.c: Likewise.
14314         * tests/test-freopen-safer.c: Likewise.
14315         * tests/test-getopt.c: Likewise.
14316         * tests/test-openat-safer.c: Likewise.
14317         * tests/test-pipe.c: Likewise.
14318         * tests/test-popen-safer.c: Likewise.
14319         * modules/dirent-safer-tests (Files): Include macros.h.
14320         * modules/unistd-safer-tests (Files): Likewise.
14321         * modules/freopen-safer-tests (Files): Likewise.
14322         * modules/getopt-posix-tests (Files): Likewise.
14323         * modules/openat-safer-tests (Files): Likewise.
14324         * modules/pipe-tests (Files): Likewise.
14325
14326 2009-12-26  Bruno Haible  <bruno@clisp.org>
14327
14328         javacomp: Portability fix.
14329         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
14330         that it also works on Solaris.
14331
14332 2009-12-26  Bruno Haible  <bruno@clisp.org>
14333
14334         localename: Fix storage allocation of gl_locale_name_thread's result.
14335         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
14336         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
14337         all platforms that have 'uselocale'.
14338         (gl_locale_name_thread_unsafe): New function, extracted from
14339         gl_locale_name_thread.
14340         (gl_locale_name_thread): Call struniq on all platforms that have
14341         'uselocale'.
14342         * tests/test-localename.c (test_locale_name_thread): Check that the
14343         resulting strings are permanently allocated.
14344         * modules/localename-tests (Depends-on): Add strdup.
14345
14346 2009-12-26  Bruno Haible  <bruno@clisp.org>
14347
14348         * tests/test-localename.c (categories): Fill in the strings.
14349
14350 2009-12-26  Jim Meyering  <meyering@redhat.com>
14351
14352         isdir: complete the removal of m4/isdir.m4
14353         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
14354
14355         isdir: clean up, since at least grep still uses it
14356         * lib/isdir.c: Include "isdir.h".
14357         (S_ISDIR): Remove now-unneeded definition.
14358         * modules/isdir (Files): Add lib/isdir.h.
14359         * lib/isdir.h: New file, with declaration.
14360         * m4/isdir.m4: Remove file -- unneeded.
14361
14362 2009-12-25  Bruno Haible  <bruno@clisp.org>
14363
14364         selinux-h: Make generated .h files standalone.
14365         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
14366         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
14367         * lib/se-selinux.in.h: Likewise.
14368         * modules/selinux-h (Depends-on): Add unused-parameter.
14369         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
14370         selinux/selinux.h and selinux/context.h.
14371         Suggested by Eric Blake.
14372
14373 2009-12-25  Bruno Haible  <bruno@clisp.org>
14374
14375         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
14376         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
14377         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
14378         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
14379         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
14380
14381 2009-12-24  Bruno Haible  <bruno@clisp.org>
14382
14383         openat: Fix warning.
14384         * lib/openat-proc.c: Include <unistd.h>.
14385
14386 2009-12-24  Bruno Haible  <bruno@clisp.org>
14387
14388         New module 'unused-parameter'.
14389         * build-aux/unused-parameter.h: New file, extracted from earlier
14390         gnulib-common.m4.
14391         * modules/unused-parameter: New file.
14392         * lib/unistr.h: Include unused-parameter.h.
14393         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
14394         _GL_UNUSED.
14395         * modules/unistr/base (Depends-on): Add unused-parameter.
14396
14397 2009-12-24  Bruno Haible  <bruno@clisp.org>
14398
14399         Add missing dependencies to 'extensions' module.
14400         * m4/extensions.m4: Add comment.
14401         * modules/accept4 (Depends-on): Add extensions.
14402         * modules/dup3 (Depends-on): Likewise.
14403         * modules/fcntl (Depends-on): Likewise.
14404         * modules/futimens (Depends-on): Likewise.
14405         * modules/mknod (Depends-on): Likewise.
14406         * modules/pipe2 (Depends-on): Likewise.
14407         * modules/stat-time (Depends-on): Likewise.
14408         * modules/strcasestr-simple (Depends-on): Likewise.
14409         * modules/strsignal (Depends-on): Likewise.
14410         * modules/utimensat (Depends-on): Likewise.
14411         * modules/localcharset (Depends-on): Likewise. Needed because of
14412         gl_FCNTL_O_FLAGS.
14413         * modules/wcrtomb (Depends-on): Likewise. Needed because of
14414         AC_TYPE_MBSTATE_T.
14415         * modules/wcsnrtombs (Depends-on): Likewise.
14416         * modules/wcsrtombs (Depends-on): Likewise.
14417
14418 2009-12-24  Bruno Haible  <bruno@clisp.org>
14419
14420         binary-io: Avoid gcc warning due to SET_BINARY.
14421         * lib/binary-io.h (SET_BINARY): Cast the result to void.
14422         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
14423
14424 2009-12-24  Bruno Haible  <bruno@clisp.org>
14425
14426         Avoid future namespace pollution on glibc systems.
14427         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
14428         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
14429         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
14430         glibc systems.
14431
14432 2009-12-24  Bruno Haible  <bruno@clisp.org>
14433
14434         Refactor common macros used in tests.
14435         * tests/macros.h: New file.
14436         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
14437         and/or <stdlib.h>, if appropriate.
14438         (ASSERT, SIZEOF): Remove macros.
14439         * tests/test-areadlink-with-size.c: Likewise.
14440         * tests/test-areadlinkat.c: Likewise.
14441         * tests/test-areadlinkat-with-size.c: Likewise.
14442         * tests/test-argmatch.c: Likewise.
14443         * tests/test-argv-iter.c: Likewise.
14444         * tests/test-array-mergesort.c: Likewise.
14445         * tests/test-array_list.c: Likewise.
14446         * tests/test-array_oset.c: Likewise.
14447         * tests/test-avltree_list.c: Likewise.
14448         * tests/test-avltree_oset.c: Likewise.
14449         * tests/test-avltreehash_list.c: Likewise.
14450         * tests/test-base64.c: Likewise.
14451         * tests/test-binary-io.c: Likewise.
14452         * tests/test-bitrotate.c: Likewise.
14453         * tests/test-btowc.c: Likewise.
14454         * tests/test-byteswap.c: Likewise.
14455         * tests/test-c-ctype.c: Likewise.
14456         * tests/test-c-stack.c: Likewise.
14457         * tests/test-c-strcasecmp.c: Likewise.
14458         * tests/test-c-strcasestr.c: Likewise.
14459         * tests/test-c-strncasecmp.c: Likewise.
14460         * tests/test-c-strstr.c: Likewise.
14461         * tests/test-canonicalize-lgpl.c: Likewise.
14462         * tests/test-canonicalize.c: Likewise.
14463         * tests/test-carray_list.c: Likewise.
14464         * tests/test-ceilf1.c: Likewise.
14465         * tests/test-ceilf2.c: Likewise.
14466         * tests/test-ceill.c: Likewise.
14467         * tests/test-chown.c: Likewise.
14468         * tests/test-cloexec.c: Likewise.
14469         * tests/test-copy-acl.c: Likewise.
14470         * tests/test-copy-file.c: Likewise.
14471         * tests/test-count-one-bits.c: Likewise.
14472         * tests/test-dprintf-posix.c: Likewise.
14473         * tests/test-dup2.c: Likewise.
14474         * tests/test-dup3.c: Likewise.
14475         * tests/test-duplocale.c: Likewise.
14476         * tests/test-fbufmode.c: Likewise.
14477         * tests/test-fchdir.c: Likewise.
14478         * tests/test-fchownat.c: Likewise.
14479         * tests/test-fcntl-safer.c: Likewise.
14480         * tests/test-fcntl.c: Likewise.
14481         * tests/test-fdopendir.c: Likewise.
14482         * tests/test-fdutimensat.c: Likewise.
14483         * tests/test-fflush2.c: Likewise.
14484         * tests/test-file-has-acl.c: Likewise.
14485         * tests/test-filevercmp.c: Likewise.
14486         * tests/test-flock.c: Likewise.
14487         * tests/test-floorf1.c: Likewise.
14488         * tests/test-floorf2.c: Likewise.
14489         * tests/test-floorl.c: Likewise.
14490         * tests/test-fnmatch.c: Likewise.
14491         * tests/test-fopen.h: Likewise.
14492         * tests/test-fpending.c: Likewise.
14493         * tests/test-fprintf-posix.c: Likewise.
14494         * tests/test-fpurge.c: Likewise.
14495         * tests/test-freadable.c: Likewise.
14496         * tests/test-freadahead.c: Likewise.
14497         * tests/test-freading.c: Likewise.
14498         * tests/test-freadptr.c: Likewise.
14499         * tests/test-freadptr2.c: Likewise.
14500         * tests/test-freadseek.c: Likewise.
14501         * tests/test-freopen.c: Likewise.
14502         * tests/test-frexp.c: Likewise.
14503         * tests/test-frexpl.c: Likewise.
14504         * tests/test-fseek.c: Likewise.
14505         * tests/test-fseeko.c: Likewise.
14506         * tests/test-fstatat.c: Likewise.
14507         * tests/test-fstrcmp.c: Likewise.
14508         * tests/test-fsync.c: Likewise.
14509         * tests/test-ftell.c: Likewise.
14510         * tests/test-ftello.c: Likewise.
14511         * tests/test-func.c: Likewise.
14512         * tests/test-futimens.c: Likewise.
14513         * tests/test-fwritable.c: Likewise.
14514         * tests/test-fwriting.c: Likewise.
14515         * tests/test-getcwd.c: Likewise.
14516         * tests/test-getdate.c: Likewise.
14517         * tests/test-getdelim.c: Likewise.
14518         * tests/test-getdtablesize.c: Likewise.
14519         * tests/test-getgroups.c: Likewise.
14520         * tests/test-getline.c: Likewise.
14521         * tests/test-getndelim2.c: Likewise.
14522         * tests/test-glob.c: Likewise.
14523         * tests/test-hash.c: Likewise.
14524         * tests/test-i-ring.c: Likewise.
14525         * tests/test-iconv-utf.c: Likewise.
14526         * tests/test-iconv.c: Likewise.
14527         * tests/test-idpriv-drop.c: Likewise.
14528         * tests/test-idpriv-droptemp.c: Likewise.
14529         * tests/test-inet_ntop.c: Likewise.
14530         * tests/test-inet_pton.c: Likewise.
14531         * tests/test-isblank.c: Likewise.
14532         * tests/test-isfinite.c: Likewise.
14533         * tests/test-isinf.c: Likewise.
14534         * tests/test-isnan.c: Likewise.
14535         * tests/test-isnand.h: Likewise.
14536         * tests/test-isnanf.h: Likewise.
14537         * tests/test-isnanl.h: Likewise.
14538         * tests/test-lchown.c: Likewise.
14539         * tests/test-ldexpl.c: Likewise.
14540         * tests/test-link.c: Likewise.
14541         * tests/test-linkat.c: Likewise.
14542         * tests/test-linked_list.c: Likewise.
14543         * tests/test-linkedhash_list.c: Likewise.
14544         * tests/test-localename.c: Likewise.
14545         * tests/test-lseek.c: Likewise.
14546         * tests/test-lstat.c: Likewise.
14547         * tests/test-mbmemcasecmp.c: Likewise.
14548         * tests/test-mbmemcasecoll.c: Likewise.
14549         * tests/test-mbrtowc.c: Likewise.
14550         * tests/test-mbscasecmp.c: Likewise.
14551         * tests/test-mbscasestr1.c: Likewise.
14552         * tests/test-mbscasestr2.c: Likewise.
14553         * tests/test-mbscasestr3.c: Likewise.
14554         * tests/test-mbscasestr4.c: Likewise.
14555         * tests/test-mbschr.c: Likewise.
14556         * tests/test-mbscspn.c: Likewise.
14557         * tests/test-mbsinit.c: Likewise.
14558         * tests/test-mbsncasecmp.c: Likewise.
14559         * tests/test-mbsnrtowcs.c: Likewise.
14560         * tests/test-mbspbrk.c: Likewise.
14561         * tests/test-mbspcasecmp.c: Likewise.
14562         * tests/test-mbsrchr.c: Likewise.
14563         * tests/test-mbsrtowcs.c: Likewise.
14564         * tests/test-mbsspn.c: Likewise.
14565         * tests/test-mbsstr1.c: Likewise.
14566         * tests/test-mbsstr2.c: Likewise.
14567         * tests/test-mbsstr3.c: Likewise.
14568         * tests/test-memchr.c: Likewise.
14569         * tests/test-memchr2.c: Likewise.
14570         * tests/test-memcmp.c: Likewise.
14571         * tests/test-memmem.c: Likewise.
14572         * tests/test-memrchr.c: Likewise.
14573         * tests/test-mkdir.c: Likewise.
14574         * tests/test-mkdirat.c: Likewise.
14575         * tests/test-mkfifo.c: Likewise.
14576         * tests/test-mkfifoat.c: Likewise.
14577         * tests/test-mknod.c: Likewise.
14578         * tests/test-nanosleep.c: Likewise.
14579         * tests/test-nl_langinfo.c: Likewise.
14580         * tests/test-obstack-printf.c: Likewise.
14581         * tests/test-open.c: Likewise.
14582         * tests/test-openat.c: Likewise.
14583         * tests/test-pipe-filter-gi1.c: Likewise.
14584         * tests/test-pipe-filter-gi2-main.c: Likewise.
14585         * tests/test-pipe-filter-ii1.c: Likewise.
14586         * tests/test-pipe-filter-ii2-main.c: Likewise.
14587         * tests/test-pipe2.c: Likewise.
14588         * tests/test-popen.h: Likewise.
14589         * tests/test-posixtm.c: Likewise.
14590         * tests/test-pread.c: Likewise.
14591         * tests/test-printf-frexp.c: Likewise.
14592         * tests/test-printf-frexpl.c: Likewise.
14593         * tests/test-printf-posix.c: Likewise.
14594         * tests/test-priv-set.c: Likewise.
14595         * tests/test-quotearg.c: Likewise.
14596         * tests/test-random_r.c: Likewise.
14597         * tests/test-rawmemchr.c: Likewise.
14598         * tests/test-rbtree_list.c: Likewise.
14599         * tests/test-rbtree_oset.c: Likewise.
14600         * tests/test-rbtreehash_list.c: Likewise.
14601         * tests/test-readlink.c: Likewise.
14602         * tests/test-remove.c: Likewise.
14603         * tests/test-rename.c: Likewise.
14604         * tests/test-renameat.c: Likewise.
14605         * tests/test-rmdir.c: Likewise.
14606         * tests/test-round1.c: Likewise.
14607         * tests/test-roundf1.c: Likewise.
14608         * tests/test-roundl.c: Likewise.
14609         * tests/test-safe-alloc.c: Likewise.
14610         * tests/test-sameacls.c: Likewise.
14611         * tests/test-set-mode-acl.c: Likewise.
14612         * tests/test-setenv.c: Likewise.
14613         * tests/test-sigaction.c: Likewise.
14614         * tests/test-signbit.c: Likewise.
14615         * tests/test-sleep.c: Likewise.
14616         * tests/test-snprintf-posix.c: Likewise.
14617         * tests/test-snprintf.c: Likewise.
14618         * tests/test-sprintf-posix.c: Likewise.
14619         * tests/test-stat-time.c: Likewise.
14620         * tests/test-stat.c: Likewise.
14621         * tests/test-strcasestr.c: Likewise.
14622         * tests/test-strchrnul.c: Likewise.
14623         * tests/test-strerror.c: Likewise.
14624         * tests/test-striconv.c: Likewise.
14625         * tests/test-striconveh.c: Likewise.
14626         * tests/test-striconveha.c: Likewise.
14627         * tests/test-strsignal.c: Likewise.
14628         * tests/test-strstr.c: Likewise.
14629         * tests/test-strtod.c: Likewise.
14630         * tests/test-strverscmp.c: Likewise.
14631         * tests/test-symlink.c: Likewise.
14632         * tests/test-symlinkat.c: Likewise.
14633         * tests/test-trunc1.c: Likewise.
14634         * tests/test-trunc2.c: Likewise.
14635         * tests/test-truncf1.c: Likewise.
14636         * tests/test-truncf2.c: Likewise.
14637         * tests/test-truncl.c: Likewise.
14638         * tests/test-uname.c: Likewise.
14639         * tests/test-unlink.c: Likewise.
14640         * tests/test-unlinkat.c: Likewise.
14641         * tests/test-unsetenv.c: Likewise.
14642         * tests/test-usleep.c: Likewise.
14643         * tests/test-utimens.c: Likewise.
14644         * tests/test-utimensat.c: Likewise.
14645         * tests/test-vasnprintf-posix.c: Likewise.
14646         * tests/test-vasnprintf-posix2.c: Likewise.
14647         * tests/test-vasnprintf.c: Likewise.
14648         * tests/test-vasprintf-posix.c: Likewise.
14649         * tests/test-vasprintf.c: Likewise.
14650         * tests/test-vdprintf-posix.c: Likewise.
14651         * tests/test-vfprintf-posix.c: Likewise.
14652         * tests/test-vprintf-posix.c: Likewise.
14653         * tests/test-vsnprintf-posix.c: Likewise.
14654         * tests/test-vsnprintf.c: Likewise.
14655         * tests/test-vsprintf-posix.c: Likewise.
14656         * tests/test-wcrtomb.c: Likewise.
14657         * tests/test-wcsnrtombs.c: Likewise.
14658         * tests/test-wcsrtombs.c: Likewise.
14659         * tests/test-wctype.c: Likewise.
14660         * tests/test-wcwidth.c: Likewise.
14661         * tests/test-xfprintf-posix.c: Likewise.
14662         * tests/test-xmemdup0.c: Likewise.
14663         * tests/test-xprintf-posix.c: Likewise.
14664         * tests/test-xvasprintf.c: Likewise.
14665         * tests/unicase/test-locale-language.c: Likewise.
14666         * tests/unicase/test-mapping-part1.h: Likewise.
14667         * tests/unicase/test-predicate-part1.h: Likewise.
14668         * tests/unicase/test-u8-casecmp.c: Likewise.
14669         * tests/unicase/test-u8-casecoll.c: Likewise.
14670         * tests/unicase/test-u8-casefold.c: Likewise.
14671         * tests/unicase/test-u8-is-cased.c: Likewise.
14672         * tests/unicase/test-u8-is-casefolded.c: Likewise.
14673         * tests/unicase/test-u8-is-lowercase.c: Likewise.
14674         * tests/unicase/test-u8-is-titlecase.c: Likewise.
14675         * tests/unicase/test-u8-is-uppercase.c: Likewise.
14676         * tests/unicase/test-u8-tolower.c: Likewise.
14677         * tests/unicase/test-u8-totitle.c: Likewise.
14678         * tests/unicase/test-u8-toupper.c: Likewise.
14679         * tests/unicase/test-u16-casecmp.c: Likewise.
14680         * tests/unicase/test-u16-casecoll.c: Likewise.
14681         * tests/unicase/test-u16-casefold.c: Likewise.
14682         * tests/unicase/test-u16-is-cased.c: Likewise.
14683         * tests/unicase/test-u16-is-casefolded.c: Likewise.
14684         * tests/unicase/test-u16-is-lowercase.c: Likewise.
14685         * tests/unicase/test-u16-is-titlecase.c: Likewise.
14686         * tests/unicase/test-u16-is-uppercase.c: Likewise.
14687         * tests/unicase/test-u16-tolower.c: Likewise.
14688         * tests/unicase/test-u16-totitle.c: Likewise.
14689         * tests/unicase/test-u16-toupper.c: Likewise.
14690         * tests/unicase/test-u32-casecmp.c: Likewise.
14691         * tests/unicase/test-u32-casecoll.c: Likewise.
14692         * tests/unicase/test-u32-casefold.c: Likewise.
14693         * tests/unicase/test-u32-is-cased.c: Likewise.
14694         * tests/unicase/test-u32-is-casefolded.c: Likewise.
14695         * tests/unicase/test-u32-is-lowercase.c: Likewise.
14696         * tests/unicase/test-u32-is-titlecase.c: Likewise.
14697         * tests/unicase/test-u32-is-uppercase.c: Likewise.
14698         * tests/unicase/test-u32-tolower.c: Likewise.
14699         * tests/unicase/test-u32-totitle.c: Likewise.
14700         * tests/unicase/test-u32-toupper.c: Likewise.
14701         * tests/unicase/test-ulc-casecmp.c: Likewise.
14702         * tests/unicase/test-ulc-casecoll.c: Likewise.
14703         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14704         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
14705         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14706         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14707         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
14708         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
14709         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14710         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14711         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14712         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
14713         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14714         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14715         * tests/unictype/test-bidi_byname.c: Likewise.
14716         * tests/unictype/test-bidi_name.c: Likewise.
14717         * tests/unictype/test-bidi_of.c: Likewise.
14718         * tests/unictype/test-bidi_test.c: Likewise.
14719         * tests/unictype/test-block_list.c: Likewise.
14720         * tests/unictype/test-block_of.c: Likewise.
14721         * tests/unictype/test-block_test.c: Likewise.
14722         * tests/unictype/test-categ_and.c: Likewise.
14723         * tests/unictype/test-categ_and_not.c: Likewise.
14724         * tests/unictype/test-categ_byname.c: Likewise.
14725         * tests/unictype/test-categ_name.c: Likewise.
14726         * tests/unictype/test-categ_none.c: Likewise.
14727         * tests/unictype/test-categ_of.c: Likewise.
14728         * tests/unictype/test-categ_or.c: Likewise.
14729         * tests/unictype/test-categ_test_withtable.c: Likewise.
14730         * tests/unictype/test-combining.c: Likewise.
14731         * tests/unictype/test-decdigit.c: Likewise.
14732         * tests/unictype/test-digit.c: Likewise.
14733         * tests/unictype/test-mirror.c: Likewise.
14734         * tests/unictype/test-numeric.c: Likewise.
14735         * tests/unictype/test-pr_byname.c: Likewise.
14736         * tests/unictype/test-pr_test.c: Likewise.
14737         * tests/unictype/test-predicate-part1.h: Likewise.
14738         * tests/unictype/test-scripts.c: Likewise.
14739         * tests/unictype/test-sy_c_ident.c: Likewise.
14740         * tests/unictype/test-sy_java_ident.c: Likewise.
14741         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
14742         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
14743         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
14744         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
14745         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
14746         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
14747         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
14748         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
14749         * tests/uninorm/test-canonical-decomposition.c: Likewise.
14750         * tests/uninorm/test-compat-decomposition.c: Likewise.
14751         * tests/uninorm/test-composition.c: Likewise.
14752         * tests/uninorm/test-decomposing-form.c: Likewise.
14753         * tests/uninorm/test-decomposition.c: Likewise.
14754         * tests/uninorm/test-u8-nfc.c: Likewise.
14755         * tests/uninorm/test-u8-nfd.c: Likewise.
14756         * tests/uninorm/test-u8-nfkc.c: Likewise.
14757         * tests/uninorm/test-u8-nfkd.c: Likewise.
14758         * tests/uninorm/test-u8-normcmp.c: Likewise.
14759         * tests/uninorm/test-u8-normcoll.c: Likewise.
14760         * tests/uninorm/test-u16-nfc.c: Likewise.
14761         * tests/uninorm/test-u16-nfd.c: Likewise.
14762         * tests/uninorm/test-u16-nfkc.c: Likewise.
14763         * tests/uninorm/test-u16-nfkd.c: Likewise.
14764         * tests/uninorm/test-u16-normcmp.c: Likewise.
14765         * tests/uninorm/test-u16-normcoll.c: Likewise.
14766         * tests/uninorm/test-u32-nfc.c: Likewise.
14767         * tests/uninorm/test-u32-nfd.c: Likewise.
14768         * tests/uninorm/test-u32-nfkc.c: Likewise.
14769         * tests/uninorm/test-u32-nfkd.c: Likewise.
14770         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14771         * tests/uninorm/test-u32-normcmp.c: Likewise.
14772         * tests/uninorm/test-u32-normcoll.c: Likewise.
14773         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
14774         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
14775         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
14776         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
14777         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
14778         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
14779         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
14780         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
14781         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
14782         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
14783         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
14784         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
14785         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
14786         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
14787         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
14788         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
14789         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
14790         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
14791         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
14792         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
14793         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
14794         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
14795         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
14796         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
14797         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
14798         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
14799         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
14800         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
14801         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
14802         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
14803         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
14804         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
14805         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
14806         * tests/uniwidth/test-u8-strwidth.c: Likewise.
14807         * tests/uniwidth/test-u8-width.c: Likewise.
14808         * tests/uniwidth/test-u16-strwidth.c: Likewise.
14809         * tests/uniwidth/test-u16-width.c: Likewise.
14810         * tests/uniwidth/test-u32-strwidth.c: Likewise.
14811         * tests/uniwidth/test-u32-width.c: Likewise.
14812         * tests/uniwidth/test-uc_width.c: Likewise.
14813         * tests/uniwidth/test-uc_width2.c: Likewise.
14814         * modules/acl-tests (Files): Add tests/macros.h.
14815         * modules/areadlink-tests (Files): Likewise.
14816         * modules/areadlink-with-size-tests (Files): Likewise.
14817         * modules/areadlinkat-tests (Files): Likewise.
14818         * modules/areadlinkat-with-size-tests (Files): Likewise.
14819         * modules/argmatch-tests (Files): Likewise.
14820         * modules/argv-iter-tests (Files): Likewise.
14821         * modules/array-list-tests (Files): Likewise.
14822         * modules/array-mergesort-tests (Files): Likewise.
14823         * modules/array-oset-tests (Files): Likewise.
14824         * modules/avltree-list-tests (Files): Likewise.
14825         * modules/avltree-oset-tests (Files): Likewise.
14826         * modules/avltreehash-list-tests (Files): Likewise.
14827         * modules/base64-tests (Files): Likewise.
14828         * modules/binary-io-tests (Files): Likewise.
14829         * modules/bitrotate-tests (Files): Likewise.
14830         * modules/btowc-tests (Files): Likewise.
14831         * modules/byteswap-tests (Files): Likewise.
14832         * modules/c-ctype-tests (Files): Likewise.
14833         * modules/c-stack-tests (Files): Likewise.
14834         * modules/c-strcase-tests (Files): Likewise.
14835         * modules/c-strcasestr-tests (Files): Likewise.
14836         * modules/c-strstr-tests (Files): Likewise.
14837         * modules/canonicalize-lgpl-tests (Files): Likewise.
14838         * modules/canonicalize-tests (Files): Likewise.
14839         * modules/carray-list-tests (Files): Likewise.
14840         * modules/ceilf-tests (Files): Likewise.
14841         * modules/ceill-tests (Files): Likewise.
14842         * modules/chown-tests (Files): Likewise.
14843         * modules/cloexec-tests (Files): Likewise.
14844         * modules/copy-file-tests (Files): Likewise.
14845         * modules/count-one-bits-tests (Files): Likewise.
14846         * modules/dprintf-posix-tests (Files): Likewise.
14847         * modules/dup2-tests (Files): Likewise.
14848         * modules/dup3-tests (Files): Likewise.
14849         * modules/duplocale-tests (Files): Likewise.
14850         * modules/fbufmode-tests (Files): Likewise.
14851         * modules/fchdir-tests (Files): Likewise.
14852         * modules/fcntl-safer-tests (Files): Likewise.
14853         * modules/fcntl-tests (Files): Likewise.
14854         * modules/fdopendir-tests (Files): Likewise.
14855         * modules/fdutimensat-tests (Files): Likewise.
14856         * modules/fflush-tests (Files): Likewise.
14857         * modules/filevercmp-tests (Files): Likewise.
14858         * modules/flock-tests (Files): Likewise.
14859         * modules/floorf-tests (Files): Likewise.
14860         * modules/floorl-tests (Files): Likewise.
14861         * modules/fnmatch-tests (Files): Likewise.
14862         * modules/fopen-safer-tests (Files): Likewise.
14863         * modules/fopen-tests (Files): Likewise.
14864         * modules/fpending-tests (Files): Likewise.
14865         * modules/fprintf-posix-tests (Files): Likewise.
14866         * modules/fpurge-tests (Files): Likewise.
14867         * modules/freadable-tests (Files): Likewise.
14868         * modules/freadahead-tests (Files): Likewise.
14869         * modules/freading-tests (Files): Likewise.
14870         * modules/freadptr-tests (Files): Likewise.
14871         * modules/freadseek-tests (Files): Likewise.
14872         * modules/freopen-tests (Files): Likewise.
14873         * modules/frexp-nolibm-tests (Files): Likewise.
14874         * modules/frexp-tests (Files): Likewise.
14875         * modules/frexpl-nolibm-tests (Files): Likewise.
14876         * modules/frexpl-tests (Files): Likewise.
14877         * modules/fseek-tests (Files): Likewise.
14878         * modules/fseeko-tests (Files): Likewise.
14879         * modules/fstrcmp-tests (Files): Likewise.
14880         * modules/fsync-tests (Files): Likewise.
14881         * modules/ftell-tests (Files): Likewise.
14882         * modules/ftello-tests (Files): Likewise.
14883         * modules/func-tests (Files): Likewise.
14884         * modules/futimens-tests (Files): Likewise.
14885         * modules/fwritable-tests (Files): Likewise.
14886         * modules/fwriting-tests (Files): Likewise.
14887         * modules/getcwd-tests (Files): Likewise.
14888         * modules/getdate-tests (Files): Likewise.
14889         * modules/getdelim-tests (Files): Likewise.
14890         * modules/getdtablesize-tests (Files): Likewise.
14891         * modules/getgroups-tests (Files): Likewise.
14892         * modules/getline-tests (Files): Likewise.
14893         * modules/getndelim2-tests (Files): Likewise.
14894         * modules/glob-tests (Files): Likewise.
14895         * modules/hash-tests (Files): Likewise.
14896         * modules/i-ring-tests (Files): Likewise.
14897         * modules/iconv-tests (Files): Likewise.
14898         * modules/iconv_open-utf-tests (Files): Likewise.
14899         * modules/idpriv-drop-tests (Files): Likewise.
14900         * modules/idpriv-droptemp-tests (Files): Likewise.
14901         * modules/inet_ntop-tests (Files): Likewise.
14902         * modules/inet_pton-tests (Files): Likewise.
14903         * modules/isblank-tests (Files): Likewise.
14904         * modules/isfinite-tests (Files): Likewise.
14905         * modules/isinf-tests (Files): Likewise.
14906         * modules/isnan-tests (Files): Likewise.
14907         * modules/isnand-nolibm-tests (Files): Likewise.
14908         * modules/isnand-tests (Files): Likewise.
14909         * modules/isnanf-nolibm-tests (Files): Likewise.
14910         * modules/isnanf-tests (Files): Likewise.
14911         * modules/isnanl-nolibm-tests (Files): Likewise.
14912         * modules/isnanl-tests (Files): Likewise.
14913         * modules/lchown-tests (Files): Likewise.
14914         * modules/ldexpl-tests (Files): Likewise.
14915         * modules/link-tests (Files): Likewise.
14916         * modules/linkat-tests (Files): Likewise.
14917         * modules/linked-list-tests (Files): Likewise.
14918         * modules/linkedhash-list-tests (Files): Likewise.
14919         * modules/localename-tests (Files): Likewise.
14920         * modules/lseek-tests (Files): Likewise.
14921         * modules/lstat-tests (Files): Likewise.
14922         * modules/mbmemcasecmp-tests (Files): Likewise.
14923         * modules/mbmemcasecoll-tests (Files): Likewise.
14924         * modules/mbrtowc-tests (Files): Likewise.
14925         * modules/mbscasecmp-tests (Files): Likewise.
14926         * modules/mbscasestr-tests (Files): Likewise.
14927         * modules/mbschr-tests (Files): Likewise.
14928         * modules/mbscspn-tests (Files): Likewise.
14929         * modules/mbsinit-tests (Files): Likewise.
14930         * modules/mbsncasecmp-tests (Files): Likewise.
14931         * modules/mbsnrtowcs-tests (Files): Likewise.
14932         * modules/mbspbrk-tests (Files): Likewise.
14933         * modules/mbspcasecmp-tests (Files): Likewise.
14934         * modules/mbsrchr-tests (Files): Likewise.
14935         * modules/mbsrtowcs-tests (Files): Likewise.
14936         * modules/mbsspn-tests (Files): Likewise.
14937         * modules/mbsstr-tests (Files): Likewise.
14938         * modules/memchr-tests (Files): Likewise.
14939         * modules/memchr2-tests (Files): Likewise.
14940         * modules/memcmp-tests (Files): Likewise.
14941         * modules/memmem-tests (Files): Likewise.
14942         * modules/memrchr-tests (Files): Likewise.
14943         * modules/mkdir-tests (Files): Likewise.
14944         * modules/mkfifo-tests (Files): Likewise.
14945         * modules/mkfifoat-tests (Files): Likewise.
14946         * modules/mknod-tests (Files): Likewise.
14947         * modules/nanosleep-tests (Files): Likewise.
14948         * modules/nl_langinfo-tests (Files): Likewise.
14949         * modules/obstack-printf-tests (Files): Likewise.
14950         * modules/open-tests (Files): Likewise.
14951         * modules/openat-tests (Files): Likewise.
14952         * modules/pipe-filter-gi-tests (Files): Likewise.
14953         * modules/pipe-filter-ii-tests (Files): Likewise.
14954         * modules/pipe2-tests (Files): Likewise.
14955         * modules/popen-safer-tests (Files): Likewise.
14956         * modules/popen-tests (Files): Likewise.
14957         * modules/posixtm-tests (Files): Likewise.
14958         * modules/pread-tests (Files): Likewise.
14959         * modules/printf-frexp-tests (Files): Likewise.
14960         * modules/printf-frexpl-tests (Files): Likewise.
14961         * modules/printf-posix-tests (Files): Likewise.
14962         * modules/priv-set-tests (Files): Likewise.
14963         * modules/quotearg-tests (Files): Likewise.
14964         * modules/random_r-tests (Files): Likewise.
14965         * modules/rawmemchr-tests (Files): Likewise.
14966         * modules/rbtree-list-tests (Files): Likewise.
14967         * modules/rbtree-oset-tests (Files): Likewise.
14968         * modules/rbtreehash-list-tests (Files): Likewise.
14969         * modules/readlink-tests (Files): Likewise.
14970         * modules/remove-tests (Files): Likewise.
14971         * modules/rename-tests (Files): Likewise.
14972         * modules/renameat-tests (Files): Likewise.
14973         * modules/rmdir-tests (Files): Likewise.
14974         * modules/round-tests (Files): Likewise.
14975         * modules/roundf-tests (Files): Likewise.
14976         * modules/roundl-tests (Files): Likewise.
14977         * modules/safe-alloc-tests (Files): Likewise.
14978         * modules/setenv-tests (Files): Likewise.
14979         * modules/sigaction-tests (Files): Likewise.
14980         * modules/signbit-tests (Files): Likewise.
14981         * modules/sleep-tests (Files): Likewise.
14982         * modules/snprintf-posix-tests (Files): Likewise.
14983         * modules/snprintf-tests (Files): Likewise.
14984         * modules/sprintf-posix-tests (Files): Likewise.
14985         * modules/stat-tests (Files): Likewise.
14986         * modules/stat-time-tests (Files): Likewise.
14987         * modules/strcasestr-tests (Files): Likewise.
14988         * modules/strchrnul-tests (Files): Likewise.
14989         * modules/strerror-tests (Files): Likewise.
14990         * modules/striconv-tests (Files): Likewise.
14991         * modules/striconveh-tests (Files): Likewise.
14992         * modules/striconveha-tests (Files): Likewise.
14993         * modules/strsignal-tests (Files): Likewise.
14994         * modules/strstr-tests (Files): Likewise.
14995         * modules/strtod-tests (Files): Likewise.
14996         * modules/strverscmp-tests (Files): Likewise.
14997         * modules/symlink-tests (Files): Likewise.
14998         * modules/symlinkat-tests (Files): Likewise.
14999         * modules/trunc-tests (Files): Likewise.
15000         * modules/truncf-tests (Files): Likewise.
15001         * modules/truncl-tests (Files): Likewise.
15002         * modules/uname-tests (Files): Likewise.
15003         * modules/unicase/cased-tests (Files): Likewise.
15004         * modules/unicase/ignorable-tests (Files): Likewise.
15005         * modules/unicase/locale-language-tests (Files): Likewise.
15006         * modules/unicase/tolower-tests (Files): Likewise.
15007         * modules/unicase/totitle-tests (Files): Likewise.
15008         * modules/unicase/toupper-tests (Files): Likewise.
15009         * modules/unicase/u8-casecmp-tests (Files): Likewise.
15010         * modules/unicase/u8-casecoll-tests (Files): Likewise.
15011         * modules/unicase/u8-casefold-tests (Files): Likewise.
15012         * modules/unicase/u8-is-cased-tests (Files): Likewise.
15013         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
15014         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
15015         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
15016         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
15017         * modules/unicase/u8-tolower-tests (Files): Likewise.
15018         * modules/unicase/u8-totitle-tests (Files): Likewise.
15019         * modules/unicase/u8-toupper-tests (Files): Likewise.
15020         * modules/unicase/u16-casecmp-tests (Files): Likewise.
15021         * modules/unicase/u16-casecoll-tests (Files): Likewise.
15022         * modules/unicase/u16-casefold-tests (Files): Likewise.
15023         * modules/unicase/u16-is-cased-tests (Files): Likewise.
15024         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
15025         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
15026         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
15027         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
15028         * modules/unicase/u16-tolower-tests (Files): Likewise.
15029         * modules/unicase/u16-totitle-tests (Files): Likewise.
15030         * modules/unicase/u16-toupper-tests (Files): Likewise.
15031         * modules/unicase/u32-casecmp-tests (Files): Likewise.
15032         * modules/unicase/u32-casecoll-tests (Files): Likewise.
15033         * modules/unicase/u32-casefold-tests (Files): Likewise.
15034         * modules/unicase/u32-is-cased-tests (Files): Likewise.
15035         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
15036         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
15037         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
15038         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
15039         * modules/unicase/u32-tolower-tests (Files): Likewise.
15040         * modules/unicase/u32-totitle-tests (Files): Likewise.
15041         * modules/unicase/u32-toupper-tests (Files): Likewise.
15042         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
15043         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
15044         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
15045         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
15046         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
15047         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
15048         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
15049         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
15050         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
15051         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
15052         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
15053         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
15054         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
15055         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
15056         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
15057         * modules/unictype/bidicategory-name-tests (Files): Likewise.
15058         * modules/unictype/bidicategory-of-tests (Files): Likewise.
15059         * modules/unictype/bidicategory-test-tests (Files): Likewise.
15060         * modules/unictype/block-list-tests (Files): Likewise.
15061         * modules/unictype/block-of-tests (Files): Likewise.
15062         * modules/unictype/block-test-tests (Files): Likewise.
15063         * modules/unictype/category-C-tests (Files): Likewise.
15064         * modules/unictype/category-Cc-tests (Files): Likewise.
15065         * modules/unictype/category-Cf-tests (Files): Likewise.
15066         * modules/unictype/category-Cn-tests (Files): Likewise.
15067         * modules/unictype/category-Co-tests (Files): Likewise.
15068         * modules/unictype/category-Cs-tests (Files): Likewise.
15069         * modules/unictype/category-L-tests (Files): Likewise.
15070         * modules/unictype/category-Ll-tests (Files): Likewise.
15071         * modules/unictype/category-Lm-tests (Files): Likewise.
15072         * modules/unictype/category-Lo-tests (Files): Likewise.
15073         * modules/unictype/category-Lt-tests (Files): Likewise.
15074         * modules/unictype/category-Lu-tests (Files): Likewise.
15075         * modules/unictype/category-M-tests (Files): Likewise.
15076         * modules/unictype/category-Mc-tests (Files): Likewise.
15077         * modules/unictype/category-Me-tests (Files): Likewise.
15078         * modules/unictype/category-Mn-tests (Files): Likewise.
15079         * modules/unictype/category-N-tests (Files): Likewise.
15080         * modules/unictype/category-Nd-tests (Files): Likewise.
15081         * modules/unictype/category-Nl-tests (Files): Likewise.
15082         * modules/unictype/category-No-tests (Files): Likewise.
15083         * modules/unictype/category-P-tests (Files): Likewise.
15084         * modules/unictype/category-Pc-tests (Files): Likewise.
15085         * modules/unictype/category-Pd-tests (Files): Likewise.
15086         * modules/unictype/category-Pe-tests (Files): Likewise.
15087         * modules/unictype/category-Pf-tests (Files): Likewise.
15088         * modules/unictype/category-Pi-tests (Files): Likewise.
15089         * modules/unictype/category-Po-tests (Files): Likewise.
15090         * modules/unictype/category-Ps-tests (Files): Likewise.
15091         * modules/unictype/category-S-tests (Files): Likewise.
15092         * modules/unictype/category-Sc-tests (Files): Likewise.
15093         * modules/unictype/category-Sk-tests (Files): Likewise.
15094         * modules/unictype/category-Sm-tests (Files): Likewise.
15095         * modules/unictype/category-So-tests (Files): Likewise.
15096         * modules/unictype/category-Z-tests (Files): Likewise.
15097         * modules/unictype/category-Zl-tests (Files): Likewise.
15098         * modules/unictype/category-Zp-tests (Files): Likewise.
15099         * modules/unictype/category-Zs-tests (Files): Likewise.
15100         * modules/unictype/category-and-not-tests (Files): Likewise.
15101         * modules/unictype/category-and-tests (Files): Likewise.
15102         * modules/unictype/category-byname-tests (Files): Likewise.
15103         * modules/unictype/category-name-tests (Files): Likewise.
15104         * modules/unictype/category-none-tests (Files): Likewise.
15105         * modules/unictype/category-of-tests (Files): Likewise.
15106         * modules/unictype/category-or-tests (Files): Likewise.
15107         * modules/unictype/category-test-withtable-tests (Files): Likewise.
15108         * modules/unictype/combining-class-tests (Files): Likewise.
15109         * modules/unictype/ctype-alnum-tests (Files): Likewise.
15110         * modules/unictype/ctype-alpha-tests (Files): Likewise.
15111         * modules/unictype/ctype-blank-tests (Files): Likewise.
15112         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
15113         * modules/unictype/ctype-digit-tests (Files): Likewise.
15114         * modules/unictype/ctype-graph-tests (Files): Likewise.
15115         * modules/unictype/ctype-lower-tests (Files): Likewise.
15116         * modules/unictype/ctype-print-tests (Files): Likewise.
15117         * modules/unictype/ctype-punct-tests (Files): Likewise.
15118         * modules/unictype/ctype-space-tests (Files): Likewise.
15119         * modules/unictype/ctype-upper-tests (Files): Likewise.
15120         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
15121         * modules/unictype/decimal-digit-tests (Files): Likewise.
15122         * modules/unictype/digit-tests (Files): Likewise.
15123         * modules/unictype/mirror-tests (Files): Likewise.
15124         * modules/unictype/numeric-tests (Files): Likewise.
15125         * modules/unictype/property-alphabetic-tests (Files): Likewise.
15126         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
15127         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
15128         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
15129         Likewise.
15130         * modules/unictype/property-bidi-block-separator-tests (Files):
15131         Likewise.
15132         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
15133         Likewise.
15134         * modules/unictype/property-bidi-common-separator-tests (Files):
15135         Likewise.
15136         * modules/unictype/property-bidi-control-tests (Files): Likewise.
15137         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
15138         Likewise.
15139         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
15140         Likewise.
15141         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
15142         Likewise.
15143         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
15144         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
15145         Likewise.
15146         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
15147         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
15148         Likewise.
15149         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
15150         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
15151         * modules/unictype/property-bidi-segment-separator-tests (Files):
15152         Likewise.
15153         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
15154         * modules/unictype/property-byname-tests (Files): Likewise.
15155         * modules/unictype/property-combining-tests (Files): Likewise.
15156         * modules/unictype/property-composite-tests (Files): Likewise.
15157         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
15158         * modules/unictype/property-dash-tests (Files): Likewise.
15159         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
15160         * modules/unictype/property-default-ignorable-code-point-tests (Files):
15161         Likewise.
15162         * modules/unictype/property-deprecated-tests (Files): Likewise.
15163         * modules/unictype/property-diacritic-tests (Files): Likewise.
15164         * modules/unictype/property-extender-tests (Files): Likewise.
15165         * modules/unictype/property-format-control-tests (Files): Likewise.
15166         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
15167         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
15168         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
15169         * modules/unictype/property-hex-digit-tests (Files): Likewise.
15170         * modules/unictype/property-hyphen-tests (Files): Likewise.
15171         * modules/unictype/property-id-continue-tests (Files): Likewise.
15172         * modules/unictype/property-id-start-tests (Files): Likewise.
15173         * modules/unictype/property-ideographic-tests (Files): Likewise.
15174         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
15175         * modules/unictype/property-ids-trinary-operator-tests (Files):
15176         Likewise.
15177         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
15178         * modules/unictype/property-iso-control-tests (Files): Likewise.
15179         * modules/unictype/property-join-control-tests (Files): Likewise.
15180         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
15181         * modules/unictype/property-line-separator-tests (Files): Likewise.
15182         * modules/unictype/property-logical-order-exception-tests (Files):
15183         Likewise.
15184         * modules/unictype/property-lowercase-tests (Files): Likewise.
15185         * modules/unictype/property-math-tests (Files): Likewise.
15186         * modules/unictype/property-non-break-tests (Files): Likewise.
15187         * modules/unictype/property-not-a-character-tests (Files): Likewise.
15188         * modules/unictype/property-numeric-tests (Files): Likewise.
15189         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
15190         * modules/unictype/property-other-default-ignorable-code-point-tests
15191         (Files): Likewise.
15192         * modules/unictype/property-other-grapheme-extend-tests (Files):
15193         Likewise.
15194         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
15195         * modules/unictype/property-other-id-start-tests (Files): Likewise.
15196         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
15197         * modules/unictype/property-other-math-tests (Files): Likewise.
15198         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
15199         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
15200         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
15201         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
15202         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
15203         * modules/unictype/property-private-use-tests (Files): Likewise.
15204         * modules/unictype/property-punctuation-tests (Files): Likewise.
15205         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
15206         * modules/unictype/property-radical-tests (Files): Likewise.
15207         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
15208         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
15209         * modules/unictype/property-space-tests (Files): Likewise.
15210         * modules/unictype/property-terminal-punctuation-tests (Files):
15211         Likewise.
15212         * modules/unictype/property-test-tests (Files): Likewise.
15213         * modules/unictype/property-titlecase-tests (Files): Likewise.
15214         * modules/unictype/property-unassigned-code-value-tests (Files):
15215         Likewise.
15216         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
15217         * modules/unictype/property-uppercase-tests (Files): Likewise.
15218         * modules/unictype/property-variation-selector-tests (Files): Likewise.
15219         * modules/unictype/property-white-space-tests (Files): Likewise.
15220         * modules/unictype/property-xid-continue-tests (Files): Likewise.
15221         * modules/unictype/property-xid-start-tests (Files): Likewise.
15222         * modules/unictype/property-zero-width-tests (Files): Likewise.
15223         * modules/unictype/scripts-tests (Files): Likewise.
15224         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
15225         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
15226         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
15227         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
15228         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
15229         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
15230         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
15231         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
15232         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
15233         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
15234         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
15235         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
15236         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
15237         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
15238         * modules/uninorm/composition-tests (Files): Likewise.
15239         * modules/uninorm/decomposing-form-tests (Files): Likewise.
15240         * modules/uninorm/decomposition-tests (Files): Likewise.
15241         * modules/uninorm/filter-tests (Files): Likewise.
15242         * modules/uninorm/nfc-tests (Files): Likewise.
15243         * modules/uninorm/nfd-tests (Files): Likewise.
15244         * modules/uninorm/nfkc-tests (Files): Likewise.
15245         * modules/uninorm/nfkd-tests (Files): Likewise.
15246         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
15247         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
15248         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
15249         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
15250         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
15251         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
15252         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
15253         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
15254         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
15255         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
15256         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
15257         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
15258         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
15259         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
15260         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
15261         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
15262         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
15263         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
15264         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
15265         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
15266         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
15267         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
15268         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
15269         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
15270         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
15271         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
15272         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
15273         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
15274         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
15275         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
15276         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
15277         * modules/uniwidth/u8-width-tests (Files): Likewise.
15278         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
15279         * modules/uniwidth/u16-width-tests (Files): Likewise.
15280         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
15281         * modules/uniwidth/u32-width-tests (Files): Likewise.
15282         * modules/uniwidth/width-tests (Files): Likewise.
15283         * modules/unlink-tests (Files): Likewise.
15284         * modules/unsetenv-tests (Files): Likewise.
15285         * modules/usleep-tests (Files): Likewise.
15286         * modules/utimens-tests (Files): Likewise.
15287         * modules/utimensat-tests (Files): Likewise.
15288         * modules/vasnprintf-posix-tests (Files): Likewise.
15289         * modules/vasnprintf-tests (Files): Likewise.
15290         * modules/vasprintf-posix-tests (Files): Likewise.
15291         * modules/vasprintf-tests (Files): Likewise.
15292         * modules/vdprintf-posix-tests (Files): Likewise.
15293         * modules/vfprintf-posix-tests (Files): Likewise.
15294         * modules/vprintf-posix-tests (Files): Likewise.
15295         * modules/vsnprintf-posix-tests (Files): Likewise.
15296         * modules/vsnprintf-tests (Files): Likewise.
15297         * modules/vsprintf-posix-tests (Files): Likewise.
15298         * modules/wcrtomb-tests (Files): Likewise.
15299         * modules/wcsnrtombs-tests (Files): Likewise.
15300         * modules/wcsrtombs-tests (Files): Likewise.
15301         * modules/wctype-tests (Files): Likewise.
15302         * modules/wcwidth-tests (Files): Likewise.
15303         * modules/xmemdup0-tests (Files): Likewise.
15304         * modules/xprintf-posix-tests (Files): Likewise.
15305         * modules/xvasprintf-tests (Files): Likewise.
15306
15307 2009-12-24  Eric Blake  <ebb9@byu.net>
15308
15309         test-nanosleep: fix typo
15310         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
15311         patch.
15312         Reported by Bruno Haible.
15313
15314 2009-12-24  Bruno Haible  <bruno@clisp.org>
15315
15316         Reduce namespace pollution on glibc systems.
15317         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
15318         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
15319         systems.
15320         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15321         <getopt.h> on glibc systems.
15322         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
15323         systems.
15324         * lib/fcntl.c: Include <unistd.h> here instead.
15325
15326 2009-12-24  Bruno Haible  <bruno@clisp.org>
15327
15328         * lib/stdlib.in.h (includes): Fix typo in today's commit.
15329
15330 2009-12-24  Eric Blake  <ebb9@byu.net>
15331
15332         tests: add signature checks
15333         * tests/signature.h (SIGNATURE_CHECK): New file.
15334         * modules/atexit-tests (Files): Use it.
15335         * modules/btowc-tests (Files): Likewise.
15336         * modules/canonicalize-lgpl-tests (Files): Likewise.
15337         * modules/ceilf-tests (Files): Likewise.
15338         * modules/ceill-tests (Files): Likewise.
15339         * modules/chown-tests (Files): Likewise.
15340         * modules/dprintf-posix-tests (Files): Likewise.
15341         * modules/dup2-tests (Files): Likewise.
15342         * modules/dup3-tests (Files): Likewise.
15343         * modules/duplocale-tests (Files): Likewise.
15344         * modules/fchdir-tests (Files): Likewise.
15345         * modules/fcntl-tests (Files): Likewise.
15346         * modules/fdopendir-tests (Files): Likewise.
15347         * modules/fflush-tests (Files): Likewise.
15348         * modules/flock-tests (Files): Likewise.
15349         * modules/floorf-tests (Files): Likewise.
15350         * modules/floorl-tests (Files): Likewise.
15351         * modules/fnmatch-tests (Files): Likewise.
15352         * modules/fopen-tests (Files): Likewise.
15353         * modules/fprintf-posix-tests (Files): Likewise.
15354         * modules/freopen-tests (Files): Likewise.
15355         * modules/frexp-nolibm-tests (Files): Likewise.
15356         * modules/frexp-tests (Files): Likewise.
15357         * modules/frexpl-nolibm-tests (Files): Likewise.
15358         * modules/frexpl-tests (Files): Likewise.
15359         * modules/fseek-tests (Files): Likewise.
15360         * modules/fseeko-tests (Files): Likewise.
15361         * modules/fsync-tests (Files): Likewise.
15362         * modules/ftell-tests (Files): Likewise.
15363         * modules/ftello-tests (Files): Likewise.
15364         * modules/futimens-tests (Files): Likewise.
15365         * modules/getaddrinfo-tests (Files): Likewise.
15366         * modules/getcwd-tests (Files): Likewise.
15367         * modules/getdelim-tests (Files): Likewise.
15368         * modules/getdtablesize-tests (Files): Likewise.
15369         * modules/getgroups-tests (Files): Likewise.
15370         * modules/gethostname-tests (Files): Likewise.
15371         * modules/getline-tests (Files): Likewise.
15372         * modules/getopt-posix-tests (Files): Likewise.
15373         * modules/gettimeofday-tests (Files): Likewise.
15374         * modules/glob-tests (Files): Likewise.
15375         * modules/iconv-tests (Files): Likewise.
15376         * modules/inet_ntop-tests (Files): Likewise.
15377         * modules/inet_pton-tests (Files): Likewise.
15378         * modules/isblank-tests (Files): Likewise.
15379         * modules/lchown-tests (Files): Likewise.
15380         * modules/ldexpl-tests (Files): Likewise.
15381         * modules/link-tests (Files): Likewise.
15382         * modules/linkat-tests (Files): Likewise.
15383         * modules/lseek-tests (Files): Likewise.
15384         * modules/lstat-tests (Files): Likewise.
15385         * modules/mbrtowc-tests (Files): Likewise.
15386         * modules/mbsinit-tests (Files): Likewise.
15387         * modules/mbsnrtowcs-tests (Files): Likewise.
15388         * modules/mbsrtowcs-tests (Files): Likewise.
15389         * modules/memchr-tests (Files): Likewise.
15390         * modules/memcmp-tests (Files): Likewise.
15391         * modules/memmem-tests (Files): Likewise.
15392         * modules/memrchr-tests (Files): Likewise.
15393         * modules/mkdir-tests (Files): Likewise.
15394         * modules/mkfifo-tests (Files): Likewise.
15395         * modules/mkfifoat-tests (Files): Likewise.
15396         * modules/mknod-tests (Files): Likewise.
15397         * modules/nanosleep-tests (Files): Likewise.
15398         * modules/nl_langinfo-tests (Files): Likewise.
15399         * modules/obstack-printf-tests (Files): Likewise.
15400         * modules/open-tests (Files): Likewise.
15401         * modules/openat-tests (Files): Likewise.
15402         * modules/perror-tests (Files): Likewise.
15403         * modules/pipe2-tests (Files): Likewise.
15404         * modules/poll-tests (Files): Likewise.
15405         * modules/popen-tests (Files): Likewise.
15406         * modules/posix_spawn-tests (Files): Likewise.
15407         * modules/posix_spawnp-tests (Files): Likewise.
15408         * modules/pread-tests (Files): Likewise.
15409         * modules/printf-posix-tests (Files): Likewise.
15410         * modules/pty-tests (Files): Likewise.
15411         * modules/random_r-tests (Files): Likewise.
15412         * modules/rawmemchr-tests (Files): Likewise.
15413         * modules/readlink-tests (Files): Likewise.
15414         * modules/remove-tests (Files): Likewise.
15415         * modules/rename-tests (Files): Likewise.
15416         * modules/renameat-tests (Files): Likewise.
15417         * modules/rmdir-tests (Files): Likewise.
15418         * modules/round-tests (Files): Likewise.
15419         * modules/roundf-tests (Files): Likewise.
15420         * modules/roundl-tests (Files): Likewise.
15421         * modules/select-tests (Files): Likewise.
15422         * modules/setenv-tests (Files): Likewise.
15423         * modules/sigaction-tests (Files): Likewise.
15424         * modules/sleep-tests (Files): Likewise.
15425         * modules/snprintf-posix-tests (Files): Likewise.
15426         * modules/snprintf-tests (Files): Likewise.
15427         * modules/sprintf-posix-tests (Files): Likewise.
15428         * modules/stat-tests (Files): Likewise.
15429         * modules/strcasestr-tests (Files): Likewise.
15430         * modules/strchrnul-tests (Files): Likewise.
15431         * modules/strerror-tests (Files): Likewise.
15432         * modules/strsignal-tests (Files): Likewise.
15433         * modules/strstr-tests (Files): Likewise.
15434         * modules/strtod-tests (Files): Likewise.
15435         * modules/strverscmp-tests (Files): Likewise.
15436         * modules/symlink-tests (Files): Likewise.
15437         * modules/symlinkat-tests (Files): Likewise.
15438         * modules/times-tests (Files): Likewise.
15439         * modules/trunc-tests (Files): Likewise.
15440         * modules/truncf-tests (Files): Likewise.
15441         * modules/truncl-tests (Files): Likewise.
15442         * modules/tsearch-tests (Files): Likewise.
15443         * modules/uname-tests (Files): Likewise.
15444         * modules/unlink-tests (Files): Likewise.
15445         * modules/unsetenv-tests (Files): Likewise.
15446         * modules/usleep-tests (Files): Likewise.
15447         * modules/utimensat-tests (Files): Likewise.
15448         * modules/vasprintf-tests (Files): Likewise.
15449         * modules/vdprintf-posix-tests (Files): Likewise.
15450         * modules/vfprintf-posix-tests (Files): Likewise.
15451         * modules/vprintf-posix-tests (Files): Likewise.
15452         * modules/vsnprintf-posix-tests (Files): Likewise.
15453         * modules/vsnprintf-tests (Files): Likewise.
15454         * modules/vsprintf-posix-tests (Files): Likewise.
15455         * modules/wcrtomb-tests (Files): Likewise.
15456         * modules/wcsnrtombs-tests (Files): Likewise.
15457         * modules/wcsrtombs-tests (Files): Likewise.
15458         * modules/wcwidth-tests (Files): Likewise.
15459         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
15460         * tests/test-isinf.c (isinf): Likewise.
15461         * tests/test-isnan.c (isnan): Likewise.
15462         * tests/test-signbit.c (signbit): Likewise.
15463         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
15464         declaration, either as macro or with correct signature.
15465         (select): Ensure function under test is declared with correct
15466         signature in correct header.
15467         * tests/test-atexit.c (atexit): Likewise.
15468         * tests/test-btowc.c (btowc): Likewise.
15469         * tests/test-canonicalize-lgpl.c (realpath)
15470         (canonicalize_file_name): Likewise.
15471         * tests/test-ceilf1.c (ceilf): Likewise.
15472         * tests/test-ceill.c (ceill): Likewise.
15473         * tests/test-chown.c (chown): Likewise.
15474         * tests/test-dprintf-posix.c (dprintf): Likewise.
15475         * tests/test-dup2.c (dup2): Likewise.
15476         * tests/test-dup3.c (dup3): Likewise.
15477         * tests/test-duplocale.c (duplocale): Likewise.
15478         * tests/test-fchdir.c (fchdir): Likewise.
15479         * tests/test-fchownat.c (fchownat): Likewise.
15480         * tests/test-fcntl.c (fcntl): Likewise.
15481         * tests/test-fdopendir.c (fdopendir): Likewise.
15482         * tests/test-fflush.c (fflush): Likewise.
15483         * tests/test-flock.c (flock): Likewise.
15484         * tests/test-floorf1.c (floorf): Likewise.
15485         * tests/test-floorl.c (floorl): Likewise.
15486         * tests/test-fnmatch.c (fnmatch): Likewise.
15487         * tests/test-fopen.c (fopen): Likewise.
15488         * tests/test-fprintf-posix.c (fprintf): Likewise.
15489         * tests/test-freopen.c (freopen): Likewise.
15490         * tests/test-frexp.c (frexp): Likewise.
15491         * tests/test-frexpl.c (frexpl): Likewise.
15492         * tests/test-fseek.c (fseek): Likewise.
15493         * tests/test-fseeko.c (fseeko): Likewise.
15494         * tests/test-fstatat.c (fstatat): Likewise.
15495         * tests/test-fsync.c (fsync): Likewise.
15496         * tests/test-ftell.c (ftell): Likewise.
15497         * tests/test-ftello.c (ftello): Likewise.
15498         * tests/test-futimens.c (futimens): Likewise.
15499         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
15500         (gai_strerror): Likewise.
15501         * tests/test-getcwd.c (getcwd): Likewise.
15502         * tests/test-getdelim.c (getdelim): Likewise.
15503         * tests/test-getdtablesize.c (getdtablesize): Likewise.
15504         * tests/test-getgroups.c (getgroups): Likewise.
15505         * tests/test-gethostname.c (gethostname): Likewise.
15506         * tests/test-getline.c (getline): Likewise.
15507         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
15508         Likewise.
15509         * tests/test-gettimeofday.c (gettimeofday): Likewise.
15510         * tests/test-glob.c (glob, globfree): Likewise.
15511         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
15512         * tests/test-inet_ntop.c (inet_ntop): Likewise.
15513         * tests/test-inet_pton.c (inet_pton): Likewise.
15514         * tests/test-isblank.c (isblank): Likewise.
15515         * tests/test-lchown.c (lchown): Likewise.
15516         * tests/test-ldexpl.c (ldexpl): Likewise.
15517         * tests/test-link.c (link): Likewise.
15518         * tests/test-linkat.c (linkat): Likewise.
15519         * tests/test-lseek.c (lseek): Likewise.
15520         * tests/test-lstat.c (lstat): Likewise.
15521         * tests/test-mbrtowc.c (mbrtowc): Likewise.
15522         * tests/test-mbsinit.c (mbsinit): Likewise.
15523         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
15524         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
15525         * tests/test-memchr.c (memchr): Likewise.
15526         * tests/test-memcmp.c (memcmp): Likewise.
15527         * tests/test-memmem.c (memmem): Likewise.
15528         * tests/test-memrchr.c (memrchr): Likewise.
15529         * tests/test-mkdir.c (mkdir): Likewise.
15530         * tests/test-mkdirat.c (mkdirat): Likewise.
15531         * tests/test-mkfifo.c (mkfifo): Likewise.
15532         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
15533         * tests/test-mknod.c (mknod): Likewise.
15534         * tests/test-nanosleep.c (nanosleep): Likewise.
15535         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
15536         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
15537         Likewise.
15538         * tests/test-open.c (open): Likewise.
15539         * tests/test-openat.c (openat): Likewise.
15540         * tests/test-perror.c (perror): Likewise.
15541         * tests/test-pipe2.c (pipe2): Likewise.
15542         * tests/test-poll.c (poll): Likewise.
15543         * tests/test-popen.c (popen, pclose): Likewise.
15544         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
15545         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
15546         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
15547         (posix_spawn_file_actions_destroy)
15548         (posix_spawn_file_actions_addclose)
15549         (posix_spawn_file_actions_addopen)
15550         (posix_spawn_file_actions_adddup2): Likewise.
15551         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
15552         * tests/test-pread.c (pread): Likewise.
15553         * tests/test-printf-posix.c (printf): Likewise.
15554         * tests/test-pty.c (openpty, forkpty): Likewise.
15555         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
15556         (random_r): Likewise.
15557         * tests/test-rawmemchr.c (rawmemchr): Likewise.
15558         * tests/test-readlink.c (readlink): Likewise.
15559         * tests/test-remove.c (remove): Likewise.
15560         * tests/test-rename.c (rename): Likewise.
15561         * tests/test-renameat.c (renameat): Likewise.
15562         * tests/test-rmdir.c (rmdir): Likewise.
15563         * tests/test-round1.c (round): Likewise.
15564         * tests/test-roundf1.c (roundf): Likewise.
15565         * tests/test-roundl.c (roundl): Likewise.
15566         * tests/test-setenv.c (setenv): Likewise.
15567         * tests/test-sigaction.c (sigaction): Likewise.
15568         * tests/test-sleep.c (sleep): Likewise.
15569         * tests/test-snprintf.c (snprintf): Likewise.
15570         * tests/test-sprintf-posix.c (sprintf): Likewise.
15571         * tests/test-stat.c (stat): Likewise.
15572         * tests/test-stpncpy.c (stpncpy): Likewise.
15573         * tests/test-strcasestr.c (strcasestr): Likewise.
15574         * tests/test-strchrnul.c (strchrnul): Likewise.
15575         * tests/test-strerror.c (strerror): Likewise.
15576         * tests/test-strsignal.c (strsignal): Likewise.
15577         * tests/test-strstr.c (strstr): Likewise.
15578         * tests/test-strtod.c (strtod): Likewise.
15579         * tests/test-strverscmp.c (strverscmp): Likewise.
15580         * tests/test-symlink.c (symlink): Likewise.
15581         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
15582         * tests/test-times.c (times): Likewise.
15583         * tests/test-trunc1.c (trunc): Likewise.
15584         * tests/test-truncf1.c (truncf): Likewise.
15585         * tests/test-truncl.c (truncl): Likewise.
15586         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
15587         Likewise.
15588         * tests/test-uname.c (uname): Likewise.
15589         * tests/test-unlink.c (unlink): Likewise.
15590         * tests/test-unlinkat.c (unlinkat): Likewise.
15591         * tests/test-unsetenv.c (unsetenv): Likewise.
15592         * tests/test-usleep.c (usleep): Likewise.
15593         * tests/test-utimensat.c (utimensat): Likewise.
15594         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
15595         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
15596         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
15597         * tests/test-vprintf-posix.c (vprintf): Likewise.
15598         * tests/test-vsnprintf.c (vsnprintf): Likewise.
15599         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
15600         * tests/test-wcrtomb.c (wcrtomb): Likewise.
15601         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
15602         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
15603         * tests/test-wcwidth.c (wcwidth): Likewise.
15604
15605         build: pull in conditional headers during GNULIB_POSIXCHECK
15606         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
15607         definitions from any conditionally-included headers.
15608         * lib/stdlib.in.h (includes): Likewise.
15609         * lib/unistd.in.h (includes): Likewise.
15610
15611 2009-12-24  Bruno Haible  <bruno@clisp.org>
15612
15613         * tests/test-argv-iter.c: Include header file being tested immediately
15614         after config.h.
15615         * tests/test-base64.c: Likewise.
15616         * tests/test-flock.c: Likewise.
15617         * tests/test-fsync.c: Likewise.
15618         * tests/test-getdate.c: Likewise.
15619         * tests/test-getndelim2.c: Likewise.
15620         * tests/test-isfinite.c: Likewise.
15621         * tests/test-isinf.c: Likewise.
15622         * tests/test-strerror.c: Likewise.
15623         * tests/test-strsignal.c: Likewise.
15624
15625 2009-12-23  Eric Blake  <ebb9@byu.net>
15626
15627         unistd: work around cygwin bug
15628         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
15629         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
15630         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15631
15632 2009-12-23  Bruno Haible  <bruno@clisp.org>
15633
15634         localename: More tests.
15635         * tests/test-localename.c (SIZEOF): New macro.
15636         (categories): New variable.
15637         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
15638         test_locale_name_default): Add test w.r.t. thread locale.
15639         (test_locale_name_thread): New function.
15640         (main): Invoke it.
15641
15642         localename: Make aware of thread locale.
15643         * lib/localename.h (gl_locale_name_thread): New declaration.
15644         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
15645         behaviour with respect to thread locale.
15646         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
15647         <langinfo.h>, glthread/lock.h.
15648         (SIZE_BITS): New macro.
15649         (string_hash): New function.
15650         (struct hash_node): New type.
15651         (HASH_TABLE_SIZE): New macro.
15652         (struniq_hash_table, struniq_lock): New variables.
15653         (struniq): New function.
15654         (gl_locale_name_thread): New function.
15655         (gl_locale_name): Invoke it.
15656         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
15657         * modules/localename (Depends-on): Add lock.
15658         Reported by Mike Gran <spk121@yahoo.com>.
15659
15660 2009-12-23  Eric Blake  <ebb9@byu.net>
15661
15662         va-args: new module
15663         * modules/va-args: New file.
15664         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
15665         * MODULES.html.sh (Core language properties): Mention it.
15666
15667         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
15668         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
15669         named alias for __attribute__((__unused__)).
15670         * lib/chown.c: Update client.
15671         * lib/fchmodat.c: Likewise.
15672         * lib/fts.c: Likewise.
15673         * lib/getdate.y: Likewise.
15674         * lib/getgroups.c: Likewise.
15675         * lib/getopt.c: Likewise.
15676         * lib/getugroups.c: Likewise.
15677         * lib/mkdir.c: Likewise.
15678         * lib/mkfifo.c: Likewise.
15679         * lib/mkfifoat.c: Likewise.
15680         * lib/mknod.c: Likewise.
15681         * lib/mknodat.c: Likewise.
15682         * lib/readlink.c: Likewise.
15683         * lib/se-context.in.h: Likewise.
15684         * lib/se-selinux.in.h: Likewise.
15685         * lib/sockets.c: Likewise.
15686         * lib/symlink.c: Likewise.
15687         * lib/symlinkat.c: Likewise.
15688         * lib/unicodeio.c: Likewise.
15689         * lib/unistr.h: Likewise.
15690         * tests/test-areadlink.c: Likewise.
15691         * tests/test-areadlinkat.c: Likewise.
15692         * tests/test-filenamecat.c: Likewise.
15693         * tests/test-fseeko.c: Likewise.
15694         * tests/test-ftello.c: Likewise.
15695         * tests/test-getdate.c: Likewise.
15696         * tests/test-getgroups.c: Likewise.
15697         * tests/test-gethostname.c: Likewise.
15698         * tests/test-quotearg.c: Likewise.
15699         * tests/test-version-etc.c: Likewise.
15700         * tests/test-xalloc-die.c: Likewise.
15701         * tests/test-xfprintf-posix.c: Likewise.
15702         * tests/test-xprintf-posix.c: Likewise.
15703         * tests/test-xvasprintf.c: Likewise.
15704
15705         tests: avoid compiler warnings
15706         * tests/test-fcntl.c (main): Delete unused parameters.
15707         * tests/test-freopen-safer.c (main): Likewise.
15708         * tests/test-xalloc-die.c (main): Mark unused parameters.
15709         * tests/test-fseeko.c (main): Likewise.
15710         * tests/test-ftello.c (main): Likewise.
15711         * tests/test-nanosleep.c (main): Avoid declaration warning.
15712         * tests/test-sleep.c (main): Likewise.
15713         * tests/test-unsetenv.c (main): Silence warning about string
15714         literal.
15715         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15716
15717 2009-12-23  Bruno Haible  <bruno@clisp.org>
15718
15719         * tests/test-localename.c (test_locale_name): New function, extracted
15720         from main. Also test mixed situations.
15721         (test_locale_name_posix, test_locale_name_environ,
15722         test_locale_name_default): New functions.
15723         (main): Invoke them all.
15724         * modules/localename-tests (configure.ac): Test for newlocale.
15725
15726 2009-12-23  Bruno Haible  <bruno@clisp.org>
15727
15728         unistd: Ensure getcwd gets declared before being overridden.
15729         * lib/unistd.in.h: Conditionally include <io.h>.
15730
15731 2009-12-22  Bruno Haible  <bruno@clisp.org>
15732
15733         wchar: Diagnose broken combination of glibc and gcc versions and flags.
15734         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
15735         (gl_WCHAR_H): Invoke it.
15736         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
15737         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
15738         Reported by Karl Berry <karl@freefriends.org>.
15739
15740 2009-12-22  Eric Blake  <ebb9@byu.net>
15741
15742         math, unistd: avoid redundant includes
15743         * lib/math.in.h (isnan): No need to re-include <math.h>.
15744         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
15745
15746         getsubopt: work around cygwin bug
15747         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
15748         avoid conflicting with system getsubopt.
15749         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
15750         bug.
15751
15752         getopt: synchronize from glibc
15753         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
15754         parameter order.  Adjust all callers.
15755         (_getopt_internal_r, main): Adjust quoting in error messages.
15756         Drop considerations for outdated POSIX 1003.2 error message.
15757         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
15758         callers.
15759         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
15760
15761         test-getopt: test stderr behavior
15762         * modules/getopt-posix-tests (Depends-on): Add dup2.
15763         * tests/test-getopt.c (ASSERT): Avoid stderr.
15764         (main): Move stderr to a temporary file.
15765         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
15766         Instead, add parameter to inform caller if output occurred.
15767         (test_getopt): Adjust all existing tests to expect silence, and
15768         add new tests of leading ":".
15769         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15770         glibc shortcomings with leading "-:" or "+:" in optstring.
15771         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15772         Likewise.
15773         * doc/posix-functions/getopt.texi (getopt): Likewise.
15774
15775         test-getopt: enhance test
15776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
15777         supports optind=0.
15778         * tests/test-getopt.c (OPTIND_MIN): Move...
15779         * tests/test-getopt.h (OPTIND_MIN): ...here.
15780         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
15781         Require that optind=0 works, since modern BSD supports it in
15782         addition to optreset, and since coreutils expects it.
15783         (test_getopt_long_only): New test.
15784         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
15785         glibc shortcomings with 'W;', and enforcement of optind=0.
15786         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15787         Likewise.
15788
15789 2009-12-21  Bruno Haible  <bruno@clisp.org>
15790
15791         localename: Improvements for MacOS X and Cygwin.
15792         * lib/localename.h (gl_locale_name_environ): New declaration.
15793         * lib/localename.c (gl_locale_name_environ): New function, extracted from
15794         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
15795         (gl_locale_name_posix): Invoke it.
15796         (gl_locale_name_default): Add comments. Use Windows native API also on
15797         Cygwin.
15798
15799 2009-12-21  Bruno Haible  <bruno@clisp.org>
15800
15801         Update list of Win32 locale ids.
15802         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
15803         (LANG_SAMI): Renamed from LANG_SAAMI.
15804         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
15805         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
15806         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
15807         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
15808         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
15809         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
15810         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
15811         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
15812         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
15813         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
15814         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
15815         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
15816         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
15817         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
15818         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
15819         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
15820         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
15821         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
15822         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
15823         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
15824         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
15825         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
15826         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
15827         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
15828         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
15829         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
15830         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
15831         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
15832         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
15833         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
15834         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
15835         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
15836         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
15837         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
15838         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
15839         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
15840         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
15841         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
15842         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
15843         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
15844         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
15845         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
15846         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
15847         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
15848         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
15849         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
15850         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
15851         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
15852         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
15853         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
15854         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
15855         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
15856         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
15857         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
15858         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
15859         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
15860         Add more languages and countries for Sami, Sorbian. Add more countries
15861         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
15862         for Pashto. Change country for Syriac, Tswana.
15863
15864 2009-12-21  Eric Blake  <ebb9@byu.net>
15865
15866         test-utimens: avoid spurious failure
15867         * tests/test-chown.h (nap): Factor...
15868         * tests/nap.h: ...into new file.
15869         * tests/test-lchown.h (nap): Avoid duplication.
15870         * tests/test-utimens-common.h (nap): Use shared implementation,
15871         necessary on file systems with 1-second resolution.
15872         * modules/chown-tests (Files): Include new file.
15873         * modules/fdutimensat-tests (Files): Likewise.
15874         * modules/futimens-tests (Files): Likewise.
15875         * modules/lchown-tests (Files): Likewise.
15876         * modules/openat-tests (Files): Likewise.
15877         * modules/utimens-tests (Files): Likewise.
15878         * modules/utimensat-tests (Files): Likewise.
15879
15880 2009-12-19  Eric Blake  <ebb9@byu.net>
15881
15882         futimens, utimensat: work around Linux bug
15883         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
15884         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15885         * lib/utimensat.c (rpl_utimensat): Work around it.
15886         * lib/futimens.c (rpl_futimens): Adjust comment.
15887
15888         utimens: work around Linux ctime bug
15889         * lib/utimens.c (detect_ctime_bug): New helper function.
15890         (update_timespec): Differentiate between workaround needed for
15891         this bug vs. what is needed for systems that lack utimensat.
15892         (fdutimens, lutimens): Work around bug.
15893
15894         utimens: check for ctime update
15895         * tests/test-utimens-common.h (check_ctime): Define.
15896         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
15897         * tests/test-futimens.h (test_futimens): Likewise.
15898         * tests/test-lutimens.h (test_lutimens): Likewise.
15899         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15900         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15901
15902 2009-12-19  Bruno Haible  <bruno@clisp.org>
15903
15904         dprintf-posix: Check against memory leak fixed on 2009-12-15.
15905         * tests/test-dprintf-posix2.sh: New file.
15906         * tests/test-dprintf-posix2.c: New file.
15907         * modules/dprintf-posix-tests (Files): Add them.
15908         (configure.ac): Check for getrlimit and setrlimit.
15909         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15910
15911 2009-12-19  Bruno Haible  <bruno@clisp.org>
15912
15913         fprintf-posix: Check against memory leak fixed on 2009-12-15.
15914         * tests/test-fprintf-posix3.sh: New file.
15915         * tests/test-fprintf-posix3.c: New file.
15916         * modules/fprintf-posix-tests (Files): Add them.
15917         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
15918
15919 2009-12-19  Eric Blake  <ebb9@byu.net>
15920
15921         dirfd: fix prototype
15922         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
15923         * lib/dirfd.c (dirfd): Likewise.
15924
15925         canonicalize: reduce memory usage
15926         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
15927         allocation to size.
15928         Reported by Solar Designer <solar@openwall.com>.
15929
15930 2009-12-19  Bruno Haible  <bruno@clisp.org>
15931
15932         New module attribute 'Applicability'.
15933         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
15934         * gnulib-tool: New option --extract-applicability.
15935         (func_usage): Document it.
15936         (sed_extract_prog): Recognize it.
15937         (func_get_applicability): New function.
15938         (func_import): Generalize handling of 'link-warning' module.
15939         * modules/link-warning (Applicability): New section.
15940         * modules/arg-nonnull (Applicability): New section.
15941         Repoted by Simon Josefsson <simon@josefsson.org>.
15942
15943 2009-12-19  Bruno Haible  <bruno@clisp.org>
15944
15945         fflush: tweak
15946         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
15947         * lib/fseeko.c (rpl_fseeko): Likewise.
15948
15949 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
15950
15951         * lib/gl_list.h: Fix typo in comment.
15952
15953 2009-12-16  Eric Blake  <ebb9@byu.net>
15954
15955         fcntl: use to simplify other modules
15956         * modules/cloexec (Depends-on): Add fcntl.
15957         * modules/fchdir (Depends-on): Likewise.
15958         * modules/fd-safer-flag (Depends-on): Likewise.
15959         * modules/unistd-safer (Depends-on): Likewise.
15960         * modules/dup3 (configure.ac): Set module indicator.
15961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
15962         missing.
15963         * lib/fchdir.c (_gl_register_dup): Fix comment.
15964         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
15965         * lib/dup-safer.c (dup_safer): Likewise.
15966         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
15967         * lib/dup3.c (dup3): Likewise.
15968         * tests/test-fchdir.c (main): Enhance test.
15969         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
15970
15971         fcntl: port portions of fcntl to mingw
15972         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
15973         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
15974         replacement for mingw.
15975         * modules/fcntl (Description): Update.
15976         (Depends-on): Add dup2.
15977         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
15978         * modules/fcntl-h (Makefile.am): Substitute it.
15979         * lib/fcntl.in.h (fcntl): Update declaration.
15980         (F_DUPFD, F_GETFD): New macros, when needed.
15981         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15982         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
15983         * tests/test-fcntl.c (check_flags, main): Enhance test for items
15984         we now guarantee.
15985
15986         fcntl: work around cygwin bug in F_DUPFD
15987         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
15988         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
15989         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
15990         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
15991         * doc/posix-functions/fcntl.texi (fcntl): Document it.
15992
15993         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
15994         * modules/fcntl (Files): List new files.
15995         (configure.ac): Run a test.
15996         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
15997         * lib/fcntl.c (rpl_fcntl): Likewise.
15998         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
15999         (gl_FCNTL_H): Always replace fcntl.h.
16000         * modules/fcntl-h (Makefile.am): Substitute witnesses.
16001         * lib/fcntl.in.h (fcntl): Declare replacement.
16002         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
16003         needed, plus a witness.
16004         * doc/posix-functions/fcntl.texi (fcntl): Document this.
16005         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16006         * tests/test-fcntl.c: New file.
16007         * modules/fcntl-tests: Likewise.
16008
16009         binary-io: avoid potential compilation warning
16010         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
16011         directives.
16012
16013         fflush: avoid compilation error on NetBSD
16014         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
16015         between off_t and fpos_t, since the latter is sometimes a struct.
16016         * lib/fseeko.c (rpl_fseeko): Likewise.
16017         Reported by Alexander Nasonov <alnsn@yandex.ru>.
16018
16019 2009-12-15  Eric Blake  <ebb9@byu.net>
16020
16021         fcntl-h, stdio, sys_ioctl: fix declarations
16022         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
16023         function must not take arguments.
16024         * lib/sys_ioctl.in.h (ioctl): Likewise.
16025         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
16026         (open): Add a link warning.
16027
16028 2009-12-15  Jim Meyering  <meyering@redhat.com>
16029
16030         areadlink, areadlink-with-size: relax license to LGPLv2+
16031         * modules/areadlink (License): Relax to LGPLv2+.
16032         * modules/areadlink-with-size (License): Likewise.
16033
16034 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
16035             Bruno Haible  <bruno@clisp.org>
16036
16037         *printf: Fix memory leak.
16038         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
16039         * lib/vfprintf.c (vfprintf): Likewise.
16040         * lib/dprintf.c (dprintf): Likewise.
16041         * lib/vdprintf.c (vdprintf): Likewise.
16042
16043 2009-12-14  Eric Blake  <ebb9@byu.net>
16044
16045         accept4: adjust module dependencies
16046         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
16047
16048         utimens: one more try at avoiding compiler warning
16049         * lib/utimens.c (lutimens): Lower scope of result.
16050
16051 2009-12-13  Bruno Haible  <bruno@clisp.org>
16052
16053         Move the malloc checking from module 'list' to new module 'xlist'.
16054         * modules/xlist: New file.
16055         * lib/gl_xlist.h: New file.
16056         * lib/gl_xlist.c: New file.
16057         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
16058         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
16059         gl_list_add_last, gl_list_add_before, gl_list_add_after,
16060         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
16061         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
16062         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
16063         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
16064         gl_sortedlist_nx_add): New declarations.
16065         (struct gl_list_implementation): Rename and change methods accordingly.
16066         (gl_list_nx_create_empty): Renamed from 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_list.c (gl_list_nx_create_empty): Renamed from
16077         gl_list_create_empty.
16078         (gl_list_nx_create): Renamed from gl_list_create.
16079         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
16080         (gl_list_nx_set_at): Renamed from gl_list_set_at.
16081         (gl_list_nx_add_first): Renamed from gl_list_add_first.
16082         (gl_list_nx_add_last): Renamed from gl_list_add_last.
16083         (gl_list_nx_add_before): Renamed from gl_list_add_before.
16084         (gl_list_nx_add_after): Renamed from gl_list_add_after.
16085         (gl_list_nx_add_at): Renamed from gl_list_add_at.
16086         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
16087         * lib/gl_array_list.c: Don't include xalloc.h.
16088         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
16089         NULL upon out-of-memory.
16090         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
16091         out-of-memory.
16092         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
16093         Change return type to 'int'.
16094         (gl_array_nx_set_at): Renamed from gl_array_set_at.
16095         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16096         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
16097         upon out-of-memory.
16098         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
16099         upon out-of-memory.
16100         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
16101         upon out-of-memory.
16102         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
16103         upon out-of-memory.
16104         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
16105         out-of-memory.
16106         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
16107         Update.
16108         (gl_array_list_implementation): Update.
16109         * lib/gl_carray_list.c: Don't include xalloc.h.
16110         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
16111         Return NULL upon out-of-memory.
16112         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
16113         out-of-memory.
16114         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
16115         Change return type to 'int'.
16116         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
16117         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
16118         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
16119         upon out-of-memory.
16120         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
16121         upon out-of-memory.
16122         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
16123         out-of-memory.
16124         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
16125         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
16126         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
16127         Update.
16128         (gl_carray_list_implementation): Update.
16129         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
16130         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
16131         gl_linked_create_empty. Return NULL upon out-of-memory.
16132         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
16133         out-of-memory.
16134         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
16135         Change return type to 'int'. Return -1 upon out-of-memory.
16136         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
16137         out-of-memory.
16138         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
16139         upon out-of-memory.
16140         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
16141         upon out-of-memory.
16142         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
16143         NULL upon out-of-memory.
16144         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
16145         upon out-of-memory.
16146         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
16147         out-of-memory.
16148         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
16149         Update.
16150         * lib/gl_linked_list.c: Don't include xalloc.h.
16151         (gl_linked_list_implementation): Update.
16152         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
16153         (add_to_bucket): Change return type to 'int'.
16154         (gl_linkedhash_list_implementation): Update.
16155         * lib/gl_anytree_list1.h (free_subtree): New function.
16156         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
16157         gl_tree_create_empty. Return NULL upon out-of-memory.
16158         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
16159         Change return type to 'int'. Return -1 upon out-of-memory.
16160         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
16161         out-of-memory.
16162         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
16163         (gl_tree_remove_node): New function, moved here from
16164         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
16165         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
16166         Update.
16167         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
16168         malloc, not xmalloc. Return NULL upon out-of-memory.
16169         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16170         out-of-memory.
16171         (gl_tree_remove_node_from_tree): New function, extracted from
16172         gl_tree_remove_node.
16173         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16174         upon out-of-memory.
16175         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16176         out-of-memory.
16177         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16178         upon out-of-memory.
16179         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16180         upon out-of-memory.
16181         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16182         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
16183         not xmalloc. Return NULL upon out-of-memory.
16184         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
16185         out-of-memory.
16186         (gl_tree_remove_node_from_tree): New function, extracted from
16187         gl_tree_remove_node.
16188         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
16189         upon out-of-memory.
16190         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
16191         out-of-memory.
16192         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
16193         upon out-of-memory.
16194         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
16195         upon out-of-memory.
16196         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
16197         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
16198         gl_anytree_list1.h before gl_anyavltree_list2.h.
16199         (gl_avltree_list_implementation): Update.
16200         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
16201         gl_anytree_list1.h before gl_anyavltree_list2.h.
16202         (gl_rbtree_list_implementation): Update.
16203         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
16204         Change return type to 'int'. Return -1 upon out-of-memory. Use
16205         __builtin_expect.
16206         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
16207         (gl_avltreehash_list_implementation): Update.
16208         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
16209         (gl_rbtreehash_list_implementation): Update.
16210         * modules/array-list (Depends-on): Remove xalloc.
16211         * modules/carray-list (Depends-on): Likewise.
16212         * modules/linked-list (Depends-on): Likewise.
16213         * modules/linkedhash-list (Depends-on): Likewise.
16214         * modules/avltree-list (Depends-on): Likewise.
16215         * modules/rbtree-list (Depends-on): Likewise.
16216         * modules/avltreehash-list (Depends-on): Likewise.
16217         * modules/rbtreehash-list (Depends-on): Likewise.
16218
16219         * modules/xsublist: New file.
16220         * lib/gl_xsublist.h: New file.
16221         * lib/gl_xsublist.c: New file.
16222         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
16223         (gl_sublist_nx_create): New declaration.
16224         * lib/gl_sublist.c: Don't include xalloc.h.
16225         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
16226         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
16227         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
16228         Change return type to 'int'. Return -1 upon out-of-memory.
16229         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
16230         upon out-of-memory.
16231         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
16232         NULL upon out-of-memory.
16233         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
16234         upon out-of-memory.
16235         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
16236         NULL upon out-of-memory.
16237         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
16238         NULL upon out-of-memory.
16239         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
16240         upon out-of-memory.
16241         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
16242         (gl_sublist_list_implementation): Update.
16243         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
16244         upon out-of-memory.
16245         * modules/sublist (Depends-on): Remove xalloc.
16246
16247         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
16248         * tests/test-carray_list.c: Likewise.
16249         * tests/test-linked_list.c: Likewise.
16250         * tests/test-linkedhash_list.c: Likewise.
16251         * tests/test-avltree_list.c: Likewise.
16252         * tests/test-rbtree_list.c: Likewise.
16253         * tests/test-avltreehash_list.c: Likewise.
16254         * tests/test-rbtreehash_list.c: Likewise.
16255         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
16256         * modules/carray-list-tests (Makefile.am): Likewise.
16257         * modules/linked-list-tests (Makefile.am): Likewise.
16258         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16259         * modules/avltree-list-tests (Makefile.am): Likewise.
16260         * modules/rbtree-list-tests (Makefile.am): Likewise.
16261         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16262         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16263
16264         * NEWS: Mention the changes.
16265
16266         * lib/clean-temp.c: Include gl_xlist.h.
16267         * modules/clean-temp (Depends-on): Add xlist.
16268
16269         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
16270         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
16271
16272         * tests/test-array_oset.c: Include gl_xlist.h.
16273         * modules/array-oset-tests (Depends-on): Add xlist.
16274
16275         Reported by José E. Marchesi <jemarch@gnu.org>.
16276
16277 2009-12-13  Bruno Haible  <bruno@clisp.org>
16278
16279         Move the malloc checking from module 'oset' to new module 'xoset'.
16280         * modules/xoset: New file.
16281         * lib/gl_xoset.h: New file.
16282         * lib/gl_xoset.c: New file.
16283         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
16284         declarations.
16285         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
16286         (struct gl_oset_implementation): Rename and change methods accordingly.
16287         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
16288         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16289         'int'. Mark as __warn_unused_result__.
16290         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
16291         gl_oset_create_empty.
16292         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
16293         'int'.
16294         * lib/gl_array_oset.c: Don't include xalloc.h.
16295         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
16296         malloc, not xmalloc.
16297         (grow): Change return type to 'int'. Don't call xalloc_die.
16298         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
16299         to 'int'.
16300         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
16301         'int'.
16302         (gl_array_oset_implementation): Update.
16303         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
16304         gl_tree_create_empty.
16305         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
16306         'int'.
16307         * lib/gl_avltree_oset.c: Don't include xalloc.h.
16308         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16309         xmalloc.
16310         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16311         not xmalloc.
16312         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16313         xmalloc.
16314         (gl_avltree_oset_implementation): Update.
16315         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
16316         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
16317         xmalloc.
16318         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
16319         not xmalloc.
16320         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
16321         xmalloc.
16322         (gl_rbtree_oset_implementation): Update.
16323         * modules/array-oset (Depends-on): Remove xalloc.
16324         * modules/avltree-oset (Depends-on): Likewise.
16325         * modules/rbtree-oset (Depends-on): Likewise.
16326         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
16327         * tests/test-avltree_oset.c: Likewise.
16328         * tests/test-rbtree_oset.c: Likewise.
16329         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16330         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
16331         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16332         * NEWS: Mention the change.
16333
16334 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
16335
16336         maint.mk: allow a project to override release-prep commands
16337         * top/maint.mk (alpha, beta, stable): Move release-preparatory
16338         commands into a new rule.
16339         (release-prep): New rule.
16340         (release-prep-hook): New overridable variable.
16341
16342 2009-12-13  Bruno Haible  <bruno@clisp.org>
16343
16344         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
16345
16346 2009-12-13  Jim Meyering  <meyering@redhat.com>
16347
16348         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
16349         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
16350
16351 2009-12-12  Bruno Haible  <bruno@clisp.org>
16352
16353         duplocale: Tweak.
16354         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
16355
16356 2009-12-12  Karl Berry  <karl@gnu.org>
16357
16358         * config/srclist.txt (strtoll.c): tab changes, no more sync.
16359
16360 2009-12-12  Bruno Haible  <bruno@clisp.org>
16361
16362         * m4/po.m4: Undo incorrect untabification.
16363
16364 2009-12-12  Bruno Haible  <bruno@clisp.org>
16365
16366         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
16367         * modules/c-strtod (Depends-on): Add locale.
16368         * modules/c-strtold (Depends-on): Likewise.
16369
16370 2009-12-12  Bruno Haible  <bruno@clisp.org>
16371
16372         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
16373
16374 2009-12-11  Eric Blake  <ebb9@byu.net>
16375
16376         setenv: relax requirement in light of POSIX ruling
16377         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
16378         not NULL.
16379         * tests/test-setenv.c (main): Relax test.
16380         * tests/test-unsetenv.c (main): Likewise.
16381         * doc/posix-functions/setenv.texi (setenv): Document this.
16382         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16383
16384 2009-12-11  Bruno Haible  <bruno@clisp.org>
16385
16386         New module 'fd-safer-flag'.
16387         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
16388         * lib/dup-safer.c (dup_safer_flag): Remove function.
16389         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
16390         * lib/fd-safer.c (fd_safer_flag): Remove function.
16391         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
16392         * modules/cloexec (configure.ac): Drop indicator macro.
16393         * modules/fd-safer-flag: New file.
16394         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
16395         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
16396         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
16397
16398 2009-12-11  Bruno Haible  <bruno@clisp.org>
16399
16400         Tests for module 'nl_langinfo'.
16401         * modules/nl_langinfo-tests: New file.
16402         * tests/test-nl_langinfo.sh: New file.
16403         * tests/test-nl_langinfo.c: New file.
16404
16405         New module 'nl_langinfo'.
16406         * lib/nl_langinfo.c: New file.
16407         * m4/nl_langinfo.m4: New file.
16408         * modules/nl_langinfo: New file.
16409         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
16410
16411 2009-12-11  Bruno Haible  <bruno@clisp.org>
16412
16413         Tests for module 'langinfo'.
16414         * modules/langinfo-tests: New file.
16415         * tests/test-langinfo.c: New file.
16416
16417         New module 'langinfo'.
16418         * lib/langinfo.in.h: New file.
16419         * m4/langinfo_h.m4: New file.
16420         * modules/langinfo: New file.
16421         * doc/posix-headers/langinfo.texi: Mention the new module.
16422
16423 2009-12-11  Bruno Haible  <bruno@clisp.org>
16424
16425         * lib/config.charset: Untabify.
16426
16427 2009-12-11  Bruno Haible  <bruno@clisp.org>
16428
16429         * modules/unistd-safer (configure.ac): Drop indicator macro.
16430
16431 2009-12-11  Bruno Haible  <bruno@clisp.org>
16432
16433         Move pipe2-safer code to its own file.
16434         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
16435         * lib/pipe-safer.c (pipe2_safer): Remove function.
16436         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
16437         (Makefile.am): Add it to lib_SOURCES.
16438
16439 2009-12-10  Bruno Haible  <bruno@clisp.org>
16440
16441         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
16442
16443 2009-12-10  Bruno Haible  <bruno@clisp.org>
16444
16445         Declare which arguments expect non-NULL values, for GCC and clang.
16446         * build-aux/arg-nonnull.h: New file.
16447         * modules/arg-nonnull: New file.
16448         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
16449         (inet_ntop, inet_pton): Use it.
16450         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
16451         (closedir, dirfd, opendir, scandir, alphasort): Use it.
16452         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
16453         (open, openat): Use it.
16454         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
16455         (fnmatch): Use it.
16456         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
16457         (getopt, getopt_long, getopt_long_only): Use it.
16458         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
16459         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
16460         Use it.
16461         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
16462         (iconv_open): Use it.
16463         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
16464         (strtoimax, strtoumax): Use it.
16465         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
16466         (duplocale): Use it.
16467         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
16468         (frexp, frexpl): Use it.
16469         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
16470         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
16471         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
16472         (tsearch, tfind, tdelete, twalk): Use it.
16473         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
16474         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16475         sigpending): Use it.
16476         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
16477         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16478         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16479         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16480         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16481         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16482         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16483         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16484         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16485         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16486         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16487         Use it.
16488         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
16489         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
16490         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
16491         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
16492         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
16493         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
16494         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
16495         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
16496         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
16497         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
16498         strtoull, unsetenv): Use it.
16499         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
16500         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16501         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16502         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16503         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16504         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
16505         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
16506         (strcasecmp, strncasecmp): Use it.
16507         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
16508         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
16509         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
16510         rpl_setsockopt): Use it.
16511         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
16512         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
16513         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
16514         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
16515         (gettimeofday): Use it.
16516         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
16517         (times): Use it.
16518         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
16519         (uname): Use it.
16520         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
16521         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
16522         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
16523         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
16524         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
16525         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
16526         unlinkat, write): Use it.
16527         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
16528         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
16529         * lib/argv-iter.h: Include arg-nonnull.h.
16530         (_ATTRIBUTE_NONNULL_): Remove macro.
16531         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
16532         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
16533         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
16534         optimization.
16535         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
16536         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
16537         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
16538         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
16539         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
16540         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
16541         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
16542         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
16543         * modules/arpa_inet (Depends-on): Add arg-nonnull.
16544         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
16545         * modules/dirent (Depends-on): Add arg-nonnull.
16546         (Makefile.am): Insert arg-nonnull.h into dirent.h.
16547         * modules/fcntl-h (Depends-on): Add arg-nonnull.
16548         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
16549         * modules/fnmatch (Depends-on): Add arg-nonnull.
16550         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
16551         * modules/getopt-posix (Depends-on): Add arg-nonnull.
16552         (Makefile.am): Insert arg-nonnull.h into getopt.h.
16553         * modules/glob (Depends-on): Add arg-nonnull.
16554         (Makefile.am): Insert arg-nonnull.h into glob.h.
16555         * modules/iconv_open (Depends-on): Add arg-nonnull.
16556         (Makefile.am): Insert arg-nonnull.h into iconv.h.
16557         * modules/inttypes (Depends-on): Add arg-nonnull.
16558         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
16559         * modules/locale (Depends-on): Add arg-nonnull.
16560         (Makefile.am): Insert arg-nonnull.h into locale.h.
16561         * modules/math (Depends-on): Add arg-nonnull.
16562         (Makefile.am): Insert arg-nonnull.h into math.h.
16563         * modules/netdb (Depends-on): Add arg-nonnull.
16564         (Makefile.am): Insert arg-nonnull.h into netdb.h.
16565         * modules/search (Depends-on): Add arg-nonnull.
16566         (Makefile.am): Insert arg-nonnull.h into search.h.
16567         * modules/signal (Depends-on): Add arg-nonnull.
16568         (Makefile.am): Insert arg-nonnull.h into signal.h.
16569         * modules/spawn (Depends-on): Add arg-nonnull.
16570         (Makefile.am): Insert arg-nonnull.h into spawn.h.
16571         * modules/stdio (Depends-on): Add arg-nonnull.
16572         (Makefile.am): Insert arg-nonnull.h into stdio.h.
16573         * modules/stdlib (Depends-on): Add arg-nonnull.
16574         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
16575         * modules/string (Depends-on): Add arg-nonnull.
16576         (Makefile.am): Insert arg-nonnull.h into string.h.
16577         * modules/strings (Depends-on): Add arg-nonnull.
16578         (Makefile.am): Insert arg-nonnull.h into strings.h.
16579         * modules/sys_socket (Depends-on): Add arg-nonnull.
16580         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
16581         * modules/sys_stat (Depends-on): Add arg-nonnull.
16582         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
16583         * modules/sys_time (Depends-on): Add arg-nonnull.
16584         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
16585         * modules/sys_times (Depends-on): Add arg-nonnull.
16586         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
16587         * modules/sys_utsname (Depends-on): Add arg-nonnull.
16588         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
16589         * modules/time (Depends-on): Add arg-nonnull.
16590         (Makefile.am): Insert arg-nonnull.h into time.h.
16591         * modules/unistd (Depends-on): Add arg-nonnull.
16592         (Makefile.am): Insert arg-nonnull.h into unistd.h.
16593         * modules/wchar (Depends-on): Add arg-nonnull.
16594         (Makefile.am): Insert arg-nonnull.h into wchar.h.
16595         * modules/argv-iter (Depends-on): Add arg-nonnull.
16596         * tests/test-canonicalize.c (null_ptr): New function.
16597         (main): Use it.
16598         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
16599         (main): Use it.
16600         * tests/test-memmem.c (null_ptr): New function.
16601         (main): Use it.
16602         Reported by Jim Meyering.
16603
16604 2009-12-10  Bruno Haible  <bruno@clisp.org>
16605
16606         Use spaces for indentation, not tabs.
16607         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
16608         * m4/*.m4: Untabify.
16609         * build-aux/*.h: Untabify.
16610         * tests/**/*.[hc]: Untabify.
16611         * README: New section "Indent with spaces, not TABs", based on
16612         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
16613         * NEWS: Mention the change.
16614
16615 2009-12-10  Bruno Haible  <bruno@clisp.org>
16616
16617         pty test: Fix link error.
16618         * modules/pty-tests (Makefile.am): Add the default LDADD value to
16619         test_pty_LDADD.
16620
16621 2009-12-07  Simon Josefsson  <simon@josefsson.org>
16622
16623         * modules/pty: New file.
16624         * modules/pty-tests: New file.
16625         * m4/pty.m4: New file.
16626         * tests/test-pty.c: New file.
16627         * doc/glibc-headers/pty.texi: Modified.
16628         * doc/glibc-functions/forkpty.texi: Modified.
16629         * doc/glibc-functions/openpty.texi: Modified.
16630
16631 2009-12-10  Bruno Haible  <bruno@clisp.org>
16632
16633         Avoid syntax error in C++ mode.
16634         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
16635
16636 2009-12-10  Bruno Haible  <bruno@clisp.org>
16637
16638         Use sed with option -e.
16639         * gnulib-tool (func_version, func_emit_copyright_notice,
16640         func_emit_initmacro_end, func_import, func_create_testdir): Pass
16641         option -e to sed.
16642         * modules/link-warning (Makefile.am): Likewise.
16643
16644 2009-12-10  Jim Meyering  <meyering@redhat.com>
16645
16646         mgetgroups: do not write bytes beyond end of malloc'd buffer
16647         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
16648         username, we call getgroups with a one-element-shorter buffer,
16649         but still told it the length was original, max_n_groups.
16650
16651 2009-12-09  Eric Blake  <ebb9@byu.net>
16652
16653         cloexec: relax license
16654         * modules/cloexec (Maintainer): Add myself.
16655         (License): Use LGPL, not GPL.
16656
16657         link-warning: optimize generation
16658         * modules/link-warning (Makefile.am): Reduce process usage.
16659
16660 2009-12-09  Bruno Haible  <bruno@clisp.org>
16661
16662         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
16663         workaround was added on 2009-11-17.
16664
16665 2009-12-09  Jim Meyering  <meyering@redhat.com>
16666             Bruno Haible  <bruno@clisp.org>
16667
16668         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
16669         * modules/link-warning (Makefile.am): Make the comment-removing sed
16670         command more robust in the face of bootstrap-prepended comment lines.
16671
16672 2009-12-09  Bruno Haible  <bruno@clisp.org>
16673
16674         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
16675         most one group.
16676
16677 2009-12-09  Simon Josefsson <simon@josefsson.org>
16678             Bruno Haible  <bruno@clisp.org>
16679
16680         * build-aux/link-warning.h: Add copyright notice.
16681         * modules/link-warning (Makefile.am): Generate link-warning.h from
16682         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
16683         * NEWS: Mention change in link-warning module.
16684         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
16685         * modules/dirent (Makefile.am): Add dependency to dirent.h.
16686         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
16687         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
16688         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
16689         * modules/math (Makefile.am): Add dependency to math.h.
16690         * modules/search (Makefile.am): Add dependency to search.h.
16691         * modules/signal (Makefile.am): Add dependency to signal.h.
16692         * modules/spawn (Makefile.am): Add dependency to spawn.h.
16693         * modules/stdio (Makefile.am): Add dependency to stdio.h.
16694         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
16695         * modules/string (Makefile.am): Add dependency to string.h.
16696         * modules/strings (Makefile.am): Add dependency to strings.h.
16697         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
16698         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
16699         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
16700         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
16701         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
16702         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
16703         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
16704         * modules/unistd (Makefile.am): Add dependency to unistd.h.
16705         * modules/wchar (Makefile.am): Add dependency to wchar.h.
16706
16707 2009-12-09  Bruno Haible  <bruno@clisp.org>
16708
16709         fchdir: Optimize away rpl_fstat when possible.
16710         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
16711         REPLACE_OPEN_DIRECTORY.
16712         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
16713
16714 2009-12-09  Bruno Haible  <bruno@clisp.org>
16715
16716         * lib/fchdir.c: Update comment.
16717
16718 2009-12-09  Bruno Haible  <bruno@clisp.org>
16719
16720         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
16721
16722 2009-12-08  Eric Blake  <ebb9@byu.net>
16723
16724         fchdir: avoid memory leak on re-registration.
16725         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
16726
16727 2009-12-08  Jim Meyering  <meyering@redhat.com>
16728
16729         init.sh: avoid Solaris 10 /bin/sh portability problem
16730         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
16731         sourced script:
16732           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
16733           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
16734           bar
16735         tests/init.sh relied on that, accepting a --set-path=DIR argument,
16736         and two tests used that idiom.
16737         * tests/init.sh: Update suggested usage comments.
16738         (path_prepend_): New function, to be used in place
16739         of the --src-path=DIR option.
16740         (setup_): Move PATH-prepending code into path_prepend_.
16741         * tests/test-pread.sh: Adapt to new usage.
16742         * tests/test-xalloc-die.sh: Likewise.
16743
16744 2009-12-08  Simon Josefsson  <simon@josefsson.org>
16745
16746         * doc/gnulib.texi (Glibc pty.h): Add.
16747         * doc/glibc-functions/forkpty.texi: Add.
16748         * doc/glibc-functions/openpty.texi: Add.
16749         Suggested by Bruno Haible.
16750
16751 2009-12-08  Eric Blake  <ebb9@byu.net>
16752
16753         fchdir: fix logic bugs
16754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
16755         * tests/test-fchdir.c (main): Enhance test.
16756         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
16757         is in use.
16758
16759         dup2: fix logic bugs
16760         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
16761         REPLACE_DUP2 to decide when rpl_dup2 is needed.
16762         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
16763         exists.
16764         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
16765
16766 2009-12-07  Eric Blake  <ebb9@byu.net>
16767
16768         unlink: fix m4 detection
16769         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
16770
16771         unistd-safer: add unit test
16772         * modules/unistd-safer-tests: New file.
16773         * tests/test-dup-safer.c: Likewise.
16774         * tests/test-cloexec.c (setmode): Avoid compiler warning.
16775         * tests/test-dup2.c (setmode): Likewise.
16776         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
16777
16778         cloexec: preserve text vs. binary across dup_cloexec
16779         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
16780         mode.
16781         * modules/dup2-tests (Depends-on): Add binary-io.
16782         * modules/cloexec-tests (Depends-on): Likewise.
16783         * tests/test-dup2.c (setmode, is_mode): New helpers.
16784         (main): Add tests that translation mode is preserved.
16785         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
16786         Reported by Bruno Haible.
16787
16788         mgetgroups: reduce duplicate listings
16789         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
16790         resulting array.
16791         * tests/test-chown.h (test_chown): Simplify client.
16792         * tests/test-lchown.h (test_lchown): Likewise.
16793
16794 2009-12-06  Bruno Haible  <bruno@clisp.org>
16795
16796         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
16797         value.
16798
16799 2009-12-06  Bruno Haible  <bruno@clisp.org>
16800
16801         * lib/progname.c: Include stdio.h, stdlib.h.
16802         (set_program_name): Reject a NULL argument.
16803
16804 2009-12-05  Eric Blake  <ebb9@byu.net>
16805
16806         pipe2-safer: new module
16807         * modules/pipe2-safer: New file.
16808         * lib/unistd-safer.h (pipe2_safer): New prototype.
16809         * lib/unistd--.h (pipe2): New wrapper.
16810         * lib/pipe-safer.c (pipe2_safer): New function.
16811         * modules/pipe (Depends-on): Add pipe2-safer.
16812         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
16813
16814         stdlib-safer: preserve cloexec flag for mkostemp[s]
16815         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
16816         fd_safer_flag.
16817
16818         unistd-safer: allow preservation of cloexec status via flag
16819         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
16820         prototypes.
16821         * lib/dup-safer.c (dup_safer_flag): New function.
16822         * lib/fd-safer.c (fd_safer_flag): Likewise.
16823         * modules/cloexec (configure.ac): Set witness.
16824
16825         test-dup2: enhance test
16826         * modules/dup2-tests (Depends-on): Add cloexec.
16827         * tests/test-dup2.c (main): Enhance test.
16828
16829         cloexec: add dup_cloexec
16830         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
16831         header and comments.
16832         * lib/cloexec.c (set_cloexec_flag): Add comments.
16833         (dup_cloexec): New function, with mingw implementation borrowed
16834         from...
16835         * lib/w32spawn.h (dup_noinherit): ...here.
16836         * modules/execute (Depends-on): Add cloexec.
16837         * modules/pipe (Depends-on): Likewise.
16838         * modules/cloexec (Depends-on): Add dup2.
16839         * modules/cloexec-tests (Files): New file.
16840         * tests/test-cloexec.c: Likewise.
16841
16842         test-xalloc-die: fix test for mingw
16843         * modules/xalloc-die-tests (Files): Add tests/init.sh.
16844         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
16845         directory and .exe suffix off argv[0] output.
16846
16847         test-fseeko: fix test for mingw
16848         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
16849         than undefining fseek, so test will pass on mingw.
16850
16851 2009-12-05  Bruno Haible  <bruno@clisp.org>
16852
16853         * lib/progname.h (set_program_name): Clarify specification.
16854         * lib/progname.c (set_program_name): Likewise.
16855         Reported by Jim Meyering.
16856
16857 2009-12-05  Jim Meyering  <meyering@redhat.com>
16858
16859         maint.mk: backslash-escape parens in default regexp
16860         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
16861         backslash-escape the literal parentheses.
16862
16863         maint.mk: news-date-check: use grep -E
16864         * top/maint.mk (today): Define a Make variable, not a...
16865         (news-date-check): ...shell variable.
16866         (news-date-regexp): Use the Make variable.
16867         Use grep's -E option.  Change the failing diagnostic to mention
16868         the variable, $(news-date-regexp).
16869
16870 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
16871
16872         maintainer-makefile: allow customization of NEWS entry format
16873         * top/maint.mk (news-date-regexp): New overridable variable.
16874         (news-date-check): Use it.
16875
16876 2009-12-04  Eric Blake  <ebb9@byu.net>
16877
16878         mgetgroups: add xgetgroups, and avoid ENOSYS failures
16879         * lib/mgetgroups.h (xgetgroups): New prototype.
16880         * lib/mgetgroups.c (xgetgroups): New wrapper.
16881         (mgetgroups): Handle ENOSYS.
16882         * modules/mgetgroups (Depends-on): Add realloc.
16883         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
16884
16885         mgetgroups: avoid argument promotion issues with -1
16886         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
16887         for invalid gid_t.
16888         * tests/test-chown.h (getegid, test_chown): Likewise.
16889         * tests/test-lchown.h (getegid, test_lchown): Likewise.
16890
16891 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
16892
16893         exclude: Fix header file problems.
16894         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
16895
16896 2009-12-01  Jim Meyering  <meyering@redhat.com>
16897
16898         fts: fts_open: do not let an empty string cause immediate failure
16899         This is required in support of GNU rm, for which the command
16900         "rm A '' B" must process and remove both A and B, in spite of
16901         the empty string argument.
16902         * lib/fts.c (fts_open): Do not let the presence of an empty string
16903         cause fts_open to fail immediately.  Most fts-using tools must be
16904         able to process all arguments, in order, and can be expected to
16905         diagnose such arguments themselves.
16906
16907 2009-11-30  Eric Blake  <ebb9@byu.net>
16908
16909         utimens: fix compilation error
16910         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
16911         Declare variable at right scope.
16912
16913 2009-11-29  Jim Meyering  <meyering@redhat.com>
16914
16915         bootstrap: handle perl-5.11's changed --version output
16916         * build-aux/bootstrap (get_version): Handle perl separately,
16917         since perl-5.11's --version output is different.
16918
16919 2009-11-28  Jim Meyering  <meyering@redhat.com>
16920
16921         userspec: depend on the inttostr module, too
16922         * modules/userspec (Depends-on): Add inttostr.
16923
16924         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
16925         * lib/userspec.c (parse_with_separator): Do not accept a user ID
16926         number of MAXUID when it evaluates to (uid_t) -1.
16927         Likewise for group ID.  Reported by Matt McCutchen in
16928         <http://savannah.gnu.org/bugs/?28113>
16929
16930         userspec: reformat to use spaces, not TABs
16931         * lib/userspec.c: Expand TABs to spaces.
16932         Add Emacs' "indent-tabs-mode: nil" hint.
16933
16934 2009-11-27  Eric Blake  <ebb9@byu.net>
16935
16936         getopt-gnu: flush out another BSD bug
16937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
16938         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
16939         flush out BSD bug.
16940         * tests/test-getopt.h (test_getopt): End lists with NULL.
16941         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16942         (test_getopt_long_posix): Enhance test.
16943         * modules/getopt-posix-tests (Depends-on): Add stdbool.
16944         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
16945         getopt-gnu.
16946         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16947         Likewise.
16948
16949 2009-11-27  Simon Josefsson  <simon@josefsson.org>
16950
16951         * modules/idpriv-droptemp-tests (Notice): Fix text.
16952
16953 2009-11-27  Jim Meyering  <meyering@redhat.com>
16954
16955         test-xalloc-die: avoid spurious failure due to libtool argv difference
16956         In a libtool-enabled project, this test would fail due to a difference
16957         in the emitted program name, e.g.,
16958         -test-xalloc-die: memory exhausted
16959         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
16960         Use program to avoid that.
16961         * modules/xalloc-die-tests (Depends-on): Add progname.
16962         * tests/test-xalloc-die.c: Include progname.h".
16963         (program_name): Remove decl.
16964         (main): Call set_program_name.
16965         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
16966
16967 2009-11-26  Richard Jones  <rjones@redhat.com>
16968
16969         w32sock: leave win32 error in place.
16970         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
16971
16972 2009-11-26  Eric Blake  <ebb9@byu.net>
16973
16974         init.sh: suggest to use skip_ and fail_ functions in comments
16975         * tests/init.sh: Add a sentence.
16976
16977 2009-11-25  Bruno Haible  <bruno@clisp.org>
16978
16979         init.sh: add documentation in comments
16980         * tests/init.sh: Add some developer and user documentation.
16981
16982 2009-11-26  Jim Meyering  <meyering@redhat.com>
16983
16984         init.sh: accommodate even those who specify bogus srcdir manually
16985         * tests/init.sh: Normally, srcdir is guaranteed by automake and
16986         configure-time tests to be sanitized, so that there is no need to
16987         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
16988         (with no double quotes) suffices.  However, since tests may be
16989         invoked manually, and since you may explicitly set srcdir to the
16990         name of a directory containing spaces, do quote its uses here.
16991         * tests/test-pread.sh: Likewise.
16992         Suggested by Bruno Haible.
16993
16994         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
16995         * tests/test-pread.sh: Write no data into the pipe, because
16996         test-pread actually reads none.  This avoids a diagnostic,
16997         "bash: echo: write error: Broken pipe", that arises in the unusual
16998         event something is ignoring SIGPIPE, and might be interpreted
16999         as some sort of failure.  Reported by Bruno Haible.
17000
17001 2009-11-25  Jim Meyering  <meyering@redhat.com>
17002
17003         test-pread: cover failure with ESPIPE and EINVAL
17004         * tests/test-pread.c (main): Test for failure, too.
17005         * tests/test-pread.sh: Invoke with stdin on a pipe.
17006         Suggested by Eric Blake.
17007
17008         pread: improvement and fix
17009         * modules/pread (Depends-on): Depend on lseek, for portability to
17010         e.g., mingw.  Suggested by Eric Blake.
17011         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
17012
17013         unistd.in.h: correct declaration of pread
17014         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
17015         Reported by Richard W.M. Jones.
17016
17017         test-pread.sh: distribute the test script
17018         * modules/pread-tests (Files): Include test-pread.sh.
17019
17020         test-pread.sh: clean up
17021         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
17022         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
17023         That is unnecessary, since it's always ".".
17024         Suggestion from Eric Blake.
17025
17026         test-pread.sh: make executable
17027         * tests/test-pread.sh: Set executable bit.
17028         Reported by Eric Blake.
17029
17030         correct typo in test-pread.sh
17031         * tests/test-pread.sh: Add #! line.
17032
17033         test pread
17034         * tests/test-pread.c: New file.
17035         * tests/test-pread.sh: Likewise.
17036         * modules/pread-tests: Likewise.
17037
17038         pread: new module
17039         * modules/pread: New file.
17040         * lib/unistd.in.h (pread): Define/declare.
17041         * lib/pread.c (pread): New file.
17042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
17043         * modules/unistd (Makefile.am): Substitute witnesses.
17044         * doc/posix-functions/pread.texi (pread): Update.
17045         * MODULES.html.sh: Add pread.
17046
17047 2009-11-25  Jim Meyering  <meyering@redhat.com>
17048
17049         tests/init.sh: new file to be used via most *.sh tests
17050         * tests/init.sh: New file.
17051
17052 2009-11-25  Eric Blake  <ebb9@byu.net>
17053
17054         utimens: work around older Linux failure with symlinks
17055         * lib/utimens.c (lutimensat_works_really): New variable.
17056         (fdutimens, lutimens): Use it to manage kernels that support
17057         nanosecond times on files, but not on symlinks.
17058         Reported by OndÅ™ej Vašík.
17059
17060         utimes: fix configure grammar
17061         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
17062
17063 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
17064
17065         regex: Fix fastmap for multibyte character ranges.
17066         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
17067         characters when a multibyte character range is included.
17068
17069 2009-11-22  Andy Wingo  <wingo@pobox.com>
17070
17071         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
17072         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
17073
17074 2009-11-24  Bruno Haible  <bruno@clisp.org>
17075
17076         doc: Most *_l functions exist in MacOS X 10.5.
17077         * doc/posix-functions/duplocale.texi: Update platforms list.
17078         * doc/posix-functions/freelocale.texi: Likewise.
17079         * doc/posix-functions/newlocale.texi: Likewise.
17080         * doc/posix-functions/uselocale.texi: Likewise.
17081         * doc/posix-functions/isalnum_l.texi: Likewise.
17082         * doc/posix-functions/isalpha_l.texi: Likewise.
17083         * doc/posix-functions/isblank_l.texi: Likewise.
17084         * doc/posix-functions/iscntrl_l.texi: Likewise.
17085         * doc/posix-functions/isdigit_l.texi: Likewise.
17086         * doc/posix-functions/isgraph_l.texi: Likewise.
17087         * doc/posix-functions/islower_l.texi: Likewise.
17088         * doc/posix-functions/isprint_l.texi: Likewise.
17089         * doc/posix-functions/ispunct_l.texi: Likewise.
17090         * doc/posix-functions/isspace_l.texi: Likewise.
17091         * doc/posix-functions/isupper_l.texi: Likewise.
17092         * doc/posix-functions/iswalnum_l.texi: Likewise.
17093         * doc/posix-functions/iswalpha_l.texi: Likewise.
17094         * doc/posix-functions/iswblank_l.texi: Likewise.
17095         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17096         * doc/posix-functions/iswctype_l.texi: Likewise.
17097         * doc/posix-functions/iswdigit_l.texi: Likewise.
17098         * doc/posix-functions/iswgraph_l.texi: Likewise.
17099         * doc/posix-functions/iswlower_l.texi: Likewise.
17100         * doc/posix-functions/iswprint_l.texi: Likewise.
17101         * doc/posix-functions/iswpunct_l.texi: Likewise.
17102         * doc/posix-functions/iswspace_l.texi: Likewise.
17103         * doc/posix-functions/iswupper_l.texi: Likewise.
17104         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17105         * doc/posix-functions/isxdigit_l.texi: Likewise.
17106         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
17107         * doc/posix-functions/strcasecmp_l.texi: Likewise.
17108         * doc/posix-functions/strcoll_l.texi: Likewise.
17109         * doc/posix-functions/strfmon_l.texi: Likewise.
17110         * doc/posix-functions/strftime_l.texi: Likewise.
17111         * doc/posix-functions/strncasecmp_l.texi: Likewise.
17112         * doc/posix-functions/strxfrm_l.texi: Likewise.
17113         * doc/posix-functions/tolower_l.texi: Likewise.
17114         * doc/posix-functions/toupper_l.texi: Likewise.
17115         * doc/posix-functions/towctrans_l.texi: Likewise.
17116         * doc/posix-functions/towlower_l.texi: Likewise.
17117         * doc/posix-functions/towupper_l.texi: Likewise.
17118         * doc/posix-functions/wcscoll_l.texi: Likewise.
17119         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17120         * doc/posix-functions/wctrans_l.texi: Likewise.
17121         * doc/posix-functions/wctype_l.texi: Likewise.
17122         * doc/glibc-functions/strptime_l.texi: Likewise.
17123         * doc/glibc-functions/strtod_l.texi: Likewise.
17124         * doc/glibc-functions/strtof_l.texi: Likewise.
17125         * doc/glibc-functions/strtol_l.texi: Likewise.
17126         * doc/glibc-functions/strtold_l.texi: Likewise.
17127         * doc/glibc-functions/strtoll_l.texi: Likewise.
17128         * doc/glibc-functions/strtoul_l.texi: Likewise.
17129         * doc/glibc-functions/strtoull_l.texi: Likewise.
17130         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17131         * doc/glibc-functions/wcstod_l.texi: Likewise.
17132         * doc/glibc-functions/wcstof_l.texi: Likewise.
17133         * doc/glibc-functions/wcstol_l.texi: Likewise.
17134         * doc/glibc-functions/wcstold_l.texi: Likewise.
17135         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17136         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17137         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17138
17139 2009-11-24  Bruno Haible  <bruno@clisp.org>
17140
17141         duplocale: Fix logic bug.
17142         * lib/duplocale.c: Don't include <langinfo.h>.
17143         (_NL_LOCALE_NAME): Remove macro.
17144         (rpl_duplocale): Use setlocale instead of nl_langinfo.
17145         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
17146
17147 2009-11-23  Jim Meyering  <meyering@redhat.com>
17148
17149         test-update-copyright: don't hard-code /usr/bin/perl
17150         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
17151         perl to print the current year.  Gilles Espinasse reported that
17152         the replaced use of perl was hard-coded as /usr/bin/perl.
17153
17154 2009-11-23  Bruno Haible  <bruno@clisp.org>
17155
17156         duplocale: Add support for glibc 2.3.x.
17157         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
17158
17159 2009-11-22  Bruno Haible  <bruno@clisp.org>
17160
17161         vasnprintf: Tiny optimization.
17162         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
17163         MacOS X.
17164
17165 2009-11-22  Bruno Haible  <bruno@clisp.org>
17166
17167         Tests for module 'duplocale'.
17168         * modules/duplocale-tests: New file.
17169         * tests/test-duplocale.c: New file.
17170
17171         New module 'duplocale'.
17172         * m4/duplocale.m4: New file.
17173         * lib/locale.in.h (duplocale): New declaration.
17174         * lib/duplocale.c: New file.
17175         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
17176         gl_LOCALE_H_DEFAULTS): New macros.
17177         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
17178         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
17179         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
17180         REPLACE_DUPLOCALE.
17181         * modules/duplocale: New file.
17182         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
17183
17184 2009-11-22  Bruno Haible  <bruno@clisp.org>
17185
17186         * modules/locale-tests (configure.ac): Test for newlocale function.
17187         * tests/test-locale.c: When the system has extended locale functions,
17188         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
17189
17190         locale: Make locale_t available when possible.
17191         * lib/locale.in.h: Include <xlocale.h> when it exists.
17192         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
17193         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
17194         * modules/locale (Depends-on): Add extensions.
17195         (Makefile.am): Also substitute HAVE_XLOCALE_H.
17196         * doc/posix-headers/locale.texi: Document the problem with locale_t.
17197
17198 2009-11-22  Bruno Haible  <bruno@clisp.org>
17199
17200         Add comments.
17201         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
17202         invocation.
17203         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17204         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17205         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17206
17207 2009-11-22  Bruno Haible  <bruno@clisp.org>
17208
17209         error: account for the possibility of freopen (stdout).
17210         * lib/error.c: Include <unistd.h>.
17211         (flush_stdout): New function, extracted from error and error_at_line.
17212         Determine stdout's fd dynamically.
17213         (error, error_at_line): Invoke flush_stdout.
17214         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
17215         * modules/error (Depends-on): Add unistd.
17216
17217 2009-11-22  Bruno Haible  <bruno@clisp.org>
17218
17219         diffseq: Add comment.
17220         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
17221
17222 2009-11-22  Jim Meyering  <meyering@redhat.com>
17223
17224         c-stack: avoid defining an unused static function
17225         * lib/c-stack.c (find_stack_direction): Do not define this function
17226         when it will not be used.
17227
17228         diffseq: avoid spurious gcc warnings
17229         * lib/diffseq.h (IF_LINT2): Define.
17230         (compareseq): Use it to initialize two members of "part".
17231         This avoids two used-uninitialized warnings.
17232
17233 2009-11-21  Jim Meyering  <meyering@redhat.com>
17234
17235         c-stack: avoid "ignoring return value of `write'" warning
17236         * lib/c-stack.c: Include "ignore-value.h".
17237         (die): Explicitly ignore each write return value.
17238         * modules/c-stack (Depends-on): Add ignore-value.
17239
17240 2009-11-21  Bruno Haible  <bruno@clisp.org>
17241
17242         diffseq: reduce scope of variable 'best'.
17243         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
17244         variable, earlier used for two different purposes.
17245
17246 2009-11-21  Jim Meyering  <meyering@redhat.com>
17247
17248         diffseq: remove useless assignment to "best"
17249         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
17250         assignment.  At that point "best" is already guaranteed to be zero.
17251
17252 2009-11-20  Eric Blake  <ebb9@byu.net>
17253
17254         build: mention ftp redirector in release announcements
17255         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
17256         values that used to come from cfg.mk; mention FTP redirect URL.
17257         * build-aux/announce-gen: Mention the mirror list.
17258         Suggested by Karl Berry.
17259
17260         nanosleep: improve port to mingw
17261         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
17262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
17263         LIB_NANOSLEEP, but only when needed.
17264         * modules/select (Link): Document LIBSOCKET.
17265         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
17266         enough.
17267
17268         nanosleep: work around cygwin bug
17269         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
17270         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
17271         bug.
17272         (getnow): Delete, not needed.
17273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
17274         LIB_CLOCK_GETTIME.
17275         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
17276         clock-time, gettime.
17277         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
17278         bug.
17279         * modules/nanosleep-tests: New test.
17280         * tests/test-nanosleep.c: New file.
17281
17282         sleep: work around cygwin bug
17283         * lib/sleep.c (rpl_sleep): Work around the bug.
17284         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
17285         (gl_PREREQ_SLEEP): Delete unused macro.
17286         * modules/sleep (Depends-on): Add verify.
17287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17288         * modules/unistd (Makefile.am): Substitute witness.
17289         * lib/unistd.in.h (sleep): Update prototype.
17290         * doc/posix-functions/sleep.texi (sleep): Document the bug.
17291         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
17292         * modules/sleep-tests (Depends-on): Check for alarm.
17293
17294 2009-11-20  Jim Meyering  <meyering@redhat.com>
17295
17296         maint.mk: improve sc_prohibit_magic_number_exit
17297         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
17298         so it does not match uses like System.exit(1).
17299         Add comments showing how to correct all offenders.
17300
17301 2009-11-19  Eric Blake  <ebb9@byu.net>
17302
17303         xalloc-die-tests: add missing library
17304         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
17305
17306         test-xvasprintf: silence compiler warnings
17307         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
17308         empty string from gcc.
17309
17310 2009-11-19  Jim Meyering  <meyering@redhat.com>
17311
17312         xfreopen: new module, from coreutils
17313         * modules/xfreopen: New module.
17314         * lib/xfreopen.c: New file.
17315         * lib/xfreopen.h: New file.
17316         * MODULES.html.sh (File stream based Input/Output"): Add it.
17317
17318 2009-11-19  Eric Blake  <ebb9@byu.net>
17319
17320         manywarnings: depend on warnings
17321         * modules/manywarnings (Depends-on): Add warnings.
17322
17323         build: avoid compiler warnings
17324         * lib/select.c (rpl_select): Delete unused variable.
17325         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
17326
17327 2009-11-18  Eric Blake  <ebb9@byu.net>
17328
17329         tests: avoid false negative with --with-packager
17330         * tests/test-version-etc.sh: Discard packager information.
17331         * tests/test-argp-version-etc-1.sh: Likewise.
17332         Reported by Mike Frysinger.
17333
17334         utimens: fix regression on Solaris
17335         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
17336         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
17337         can only change fd timestamps via futimesat.  Instead, use an
17338         additional witness macro to avoid BSD bug.
17339         Reported by Jim Meyering.
17340
17341 2009-11-17  Eric Blake  <ebb9@byu.net>
17342
17343         usleep: use it to simplify tests
17344         * modules/stat-time-tests (Depends-on): Add usleep.
17345         (configure.ac): Drop usleep check.
17346         * modules/chown-tests (Depends-on, configure.ac): Likewise.
17347         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
17348         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
17349         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
17350         * modules/openat-tests (Depends-on, configure.ac): Likewise.
17351         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
17352         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
17353         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
17354         Likewise.
17355         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
17356         * tests/test-lchown.h (nap): Likewise.
17357         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
17358         * tests/test-stat-time.c (nap): Likewise.
17359         * tests/test-utimens-common.h (nap): Update comments.
17360
17361         usleep: new module
17362         * modules/usleep: New file.
17363         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
17364         * lib/usleep.c (usleep): Likewise.
17365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17366         * modules/unistd (Makefile.am): Substitute witnesses.
17367         * lib/unistd.in.h (usleep): Add declaration.
17368         * doc/pastposix-functions/usleep.texi (usleep): Document this.
17369         * MODULES.html.sh (Date and time): Likewise.
17370         * modules/usleep-tests (Depends-on): New test.
17371         * tests/test-usleep.c: New file.
17372
17373         chown: work around OpenBSD bug
17374         * lib/chown.c (rpl_chown): Work around the bug.
17375         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
17376         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
17377         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
17378         * modules/chown (Depends-on): Add stdbool.
17379         * modules/lchown (Depends-on): Likewise.
17380         * doc/posix-functions/chown.texi (chown): Document the bug.
17381         * doc/posix-functions/lchown.texi (lchown): Likewise.
17382         * tests/test-lchown.h (test_chown): Relax test.
17383
17384         mkstemp: avoid conflict with C++ keyword template
17385         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
17386         * lib/mkostemp.c (mkostemp): Likewise.
17387         * lib/mkostemps.c (mkostemps): Likewise.
17388         * lib/mkstemp.c (mkstemp): Likewise.
17389         * lib/mkstemps.c (mkstemps): Likewise.
17390
17391         xalloc-die-tests: optimize
17392         * tests/test-xalloc-die.sh: Reduce number of processes.
17393
17394 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17395
17396         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
17397         patch from ludo@gnu.org (Ludovic Courtès).
17398
17399 2009-11-17  Jim Meyering  <meyering@redhat.com>
17400
17401         version-etc: use proper license string
17402         * modules/version-etc (License): Use LGPL, not LGPLv3+.
17403         * modules/version-etc-fsf: Likewise.
17404
17405 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17406
17407         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
17408         printed to stdout.  Deal with EOL differences.
17409
17410 2009-11-17  Eric Blake  <ebb9@byu.net>
17411
17412         unsetenv: work around Solaris bug
17413         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
17414         * lib/unsetenv.c (rpl_unsetenv): Work around it.
17415         Reported by Jim Meyering.
17416
17417         vasnprintf: avoid compiler warnings
17418         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
17419         variables.
17420         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
17421
17422 2009-11-17  Simon Josefsson  <simon@josefsson.org>
17423
17424         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
17425         settings since xalloc-die is no longer the self test,
17426         xalloc-die.sh is.
17427
17428 2009-11-17  Jim Meyering  <meyering@redhat.com>
17429
17430         test-xalloc-die.sh: make the code agree with the commit log
17431         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
17432         at the end, just in case you happen to have a test-xalloc-die
17433         program in some other PATH directory.
17434
17435         test-xalloc-die.sh: fix a portability bug
17436         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
17437         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
17438         Otherwise, argv[0] (as often seen in diagnostics) would be too
17439         system-dependent, sometimes with, and sometimes without the leading "./".
17440
17441         version-etc-fsf: relax license to LGPLv3+
17442         * modules/version-etc-fsf (License): Relax license.
17443
17444 2009-11-16  Eric Blake  <ebb9@byu.net>
17445
17446         xalloc-die-tests: avoid printing null pointer
17447         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
17448         shell script.
17449         * tests/test-xalloc-die.c (program_name): Declare.
17450         * tests/test-xalloc-die.sh (tmpfiles): New file.
17451
17452         setenv, unsetenv: work around various bugs
17453         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
17454         (setenv) [HAVE_SETENV]: Work around bugs.
17455         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
17456         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
17457         for bugs.
17458         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
17459         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
17460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
17461         * modules/stdlib (Makefile.am): Update substitutions.
17462         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
17463         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
17464         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17465         * modules/setenv-tests: New test.
17466         * modules/unsetenv-tests: Likewise.
17467         * tests/test-setenv.c: New file.
17468         * tests/test-unsetenv.c: Likewise.
17469
17470 2009-11-16  Jim Meyering  <meyering@redhat.com>
17471
17472         version-etc: relax license to LGPLv3+
17473         * modules/version-etc (License): Relax license.
17474
17475         better AC_REQUIRE expanded-before-required-warning avoidance
17476         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
17477         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
17478         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
17479         which is no longer needed.
17480
17481 2009-11-16  Eric Blake  <ebb9@byu.net>
17482
17483         test-freading: clean up temporary file
17484         * tests/test-freading.c (main): Remove file on success, and use
17485         ASSERT more liberally.
17486         Reported by Jim Meyering.
17487
17488 2009-11-16  Jim Meyering  <meyering@redhat.com>
17489
17490         avoid new AC_REQUIRE expanded-before-required warnings
17491         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
17492         merely using it.
17493         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
17494         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
17495
17496 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17497
17498         * tests/test-xalloc-die.c: New file.
17499         * modules/xalloc-die-tests: New file.
17500         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
17501         XFAIL_TESTS so it can be appended by modules.
17502
17503 2009-11-15  Simon Josefsson  <simon@josefsson.org>
17504
17505         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
17506         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
17507
17508 2009-11-14  Eric Blake  <ebb9@byu.net>
17509
17510         fnmatch: avoid compiler warning
17511         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
17512         to silence compiler warning about mismatch signedness in ?:.
17513         Reported by Robert Millan.
17514
17515         intprops: add double-inclusion guard
17516         * lib/intprops.h: Allow idempotent includes.
17517         Suggested by Bruce Korb.
17518
17519         openat: detect Solaris fchownat bug
17520         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
17521         penalizing glibc chownat when only lchownat is broken.
17522         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
17523         trailing slash bugs.
17524         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
17525         * modules/openat-tests (Files): Include more files.
17526         (Depends-on): Add mgetgroups, sleep, stat-time.
17527         (configure.ac): Add additional checks.
17528         (Makefile.am): Build new test.
17529         * tests/test-fchownat.c: New file.
17530
17531         lchown: detect Solaris and FreeBSD bug
17532         * lib/lchown.c (rpl_lchown): Work around bug.
17533         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
17534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17535         * modules/unistd (Makefile.am): Populate it.
17536         * lib/unistd.in.h (lchown): Update declaration.
17537         * doc/posix-functions/lchown.texi (lchown): Document the bug.
17538         * modules/lchown-tests: New file.
17539         * tests/test-lchown.h (test_lchown): Likewise.
17540         * tests/test-lchown.c (main): Likewise.
17541
17542         chown: detect Solaris and FreeBSD bug
17543         * lib/chown.c (rpl_chown): Work around bug.
17544         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
17545         (gl_PREREQ_CHOWN): Delete.
17546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17547         * modules/unistd (Makefile.am): Populate it.
17548         * lib/unistd.in.h (chown): Update declaration.
17549         * lib/lchown.c (chown): Update client.
17550         * modules/lchown (Depends-on): Add lstat.
17551         * doc/posix-functions/chown.texi (chown): Document the bug.
17552         * doc/posix-functions/getgroups.texi (getgroups): Document
17553         getgroups pitfall.
17554         * modules/chown-tests: New file.
17555         * tests/test-chown.h (test_chown): Likewise.
17556         * tests/test-chown.c (main): Likewise.
17557
17558 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
17559
17560         gnulib-tool: correctly detect absence of m4 directories
17561         * gnulib-tool: Avoid extra newline on data passed to wc -l.
17562
17563 2009-11-14  Jim Meyering  <meyering@redhat.com>
17564
17565         maint.mk: Prohibit inclusion of "xalloc.h" without use.
17566         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17567
17568 2009-11-14  John W. Eaton  <jwe@gnu.org>
17569
17570         strftime.h: wrap funtion declaration in extern "C" block
17571         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
17572
17573 2009-11-13  Eric Blake  <ebb9@byu.net>
17574
17575         getgroups: avoid compiler warning
17576         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
17577
17578         getgroups: work around FreeBSD bug
17579         * lib/getgroups.c (rpl_getgroups): Work around the bug.
17580         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
17581         * doc/posix-functions/getgroups.texi (getgroups): Document it.
17582         * tests/test-getgroups.c (main): Fix buffer overrun.
17583
17584         getgroups: avoid compilation failure
17585         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
17586         * modules/getgroups (Depends-on): Add stdint.
17587
17588 2009-11-13  Jim Meyering  <meyering@redhat.com>
17589
17590         test-getgroups: avoid compilation failure
17591         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
17592
17593 2009-11-13  Eric Blake  <ebb9@byu.net>
17594
17595         mgetgroups: new module, taken from coreutils
17596         * modules/mgetgroups: New file.
17597         * lib/mgetgroups.h: Likewise.
17598         * lib/mgetgroups.c (mgetgroups): Likewise.
17599         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
17600         * MODULES.html.sh (Users and groups): Mention it.
17601
17602         getgroups: don't expose GETGROUPS_T to user
17603         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
17604         an element at a time if GETGROUPS_T is wrong size.
17605         * lib/getugroups.h (getugroups): Change signature.
17606         * lib/unistd.in.h (getgroups): Likewise.
17607         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
17608         signature needs fixing.
17609         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
17610         AC_TYPE_GETGROUPS.
17611         * modules/group-member (Depends-on): Add getgroups.
17612         * lib/group-member.c (group_info, get_group_info): Use gid_t.
17613         (group_member): Rely on getgroups replacement.
17614         * lib/getugroups.c (getugroups): Use gid_t.
17615         * tests/test-getgroups.c (main): Likewise.
17616         * NEWS: Mention the signature change.
17617         * doc/posix-functions/getgroups.texi (getgroups): Mention the
17618         problem with signature.
17619         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
17620         GETGROUPS_T is still useful for setgroups.
17621
17622         getgroups, getugroups: provide stubs for mingw
17623         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
17624         * lib/getugroups.c (getugroups): Likewise.
17625         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
17626         function.  Modernize replacement scheme.
17627         (gl_PREREQ_GETGROUPS): Delete.
17628         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
17629         * modules/getgroups (configure.ac): Declare witness.
17630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
17631         * modules/unistd (Depends-on): Substitute witness.
17632         * lib/unistd.in.h (getgroups): Declare replacement.
17633
17634         getgroups: avoid calling exit
17635         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
17636         drop xalloc.
17637         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
17638         dependencies.
17639         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
17640         exiting, in the rare case of malloc failure.
17641
17642         getgroups: fix logic error
17643         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
17644         has more than 20 groups.
17645         * modules/getgroups-tests: New test.
17646         * tests/test-getgroups.c: New file.
17647
17648 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17649
17650         * tests/test-base64.c: Improve.
17651
17652 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17653
17654         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
17655         Blake <ebb9@byu.net>.
17656
17657 2009-11-13  Simon Josefsson  <simon@josefsson.org>
17658
17659         * tests/test-xvasprintf.c: Add %s%s related checks.
17660
17661 2009-11-12  Eric Blake  <ebb9@byu.net>
17662
17663         version-etc: match standards.texi style
17664         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
17665         and use <> only for URLs.
17666
17667 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
17668
17669         fts: do not fail on a submount during traversal
17670         * lib/fts.c (fts_build): Read the stat info again after opening
17671         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
17672         Original report at http://bugzilla.redhat.com/501848.
17673
17674 2009-11-12  Jim Meyering  <meyering@redhat.com>
17675
17676         bootstrap: sync from coreutils
17677         * build-aux/bootstrap (bootstrap_epilogue): New function.
17678         Use git_modules_config in one more place.  This make bootstrap's
17679         --gnulib-srcdir option more useful for testing.
17680
17681         bootstrap: generalize autoheader check
17682         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
17683         AC_CONFIG_HEADERS.
17684
17685 2009-11-11  Eric Blake  <ebb9@byu.net>
17686
17687         mkfifoat: use new modules for Solaris and BSD bugs
17688         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
17689         * lib/mkfifoat.c (mknodat): Split...
17690         * lib/mknodat.c (mknodat): ...into new file.
17691         * modules/mkfifoat (Files): Ship new file.
17692         (Depends-on): Add mkfifo, mknod.
17693         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
17694         (Depends-on): Add symlink.
17695         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
17696         redundant with test_mkfifo.h.
17697         (do_mkfifoat, do_mknodat): New helpers.
17698
17699         mknod: new module
17700         * modules/mknod: New file.
17701         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
17702         * lib/mknod.c (mknod): Likewise.
17703         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17704         defaults.
17705         * modules/sys_stat (Makefile.am): Substitute them.
17706         * lib/sys_stat.in.h (mknod): Declare replacement.
17707         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17708         Document it.
17709         * doc/posix-functions/mknod.texi (mknod): Likewise.
17710         * modules/mknod-tests: New test.
17711         * tests/test-mknod.c: Likewise.
17712
17713         mkfifo: new module
17714         * modules/mkfifo: New file.
17715         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17716         * lib/mkfifo.c (mkfifo): Likewise.
17717         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
17718         defaults.
17719         * modules/sys_stat (Makefile.am): Substitute them.
17720         * lib/sys_stat.in.h (mkfifo): Declare replacement.
17721         * MODULES.html.sh (Support for systems lacking POSIX:2008):
17722         Document it.
17723         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
17724         * modules/mkfifo-tests: New test.
17725         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
17726         from test-mkfifoat.c.
17727         * tests/test-mkfifo.c: New file.
17728
17729         readlink: detect FreeBSD bug
17730         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
17731         slash on symlink.
17732         * doc/posix-functions/readlink.texi (readlink): Document the bug.
17733         * tests/test-readlink.h (test_readlink): Enhance test.
17734
17735         symlink: detect FreeBSD bug
17736         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
17737         slash on symlink.
17738         * doc/posix-functions/symlink.texi (symlink): Document the bug.
17739         * tests/test-symlink.h (test_symlink): Enhance test.
17740
17741 2009-11-10  Eric Blake  <ebb9@byu.net>
17742
17743         link: detect FreeBSD bug
17744         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
17745         symlink.
17746         * doc/posix-functions/link.texi (link): Document the bug.
17747         * tests/test-link.h (test_link): Enhance test.
17748         * tests/test-linkat.c (main): Update caller.
17749
17750         unlink, remove: detect FreeBSD bug
17751         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
17752         slash on symlink.
17753         * doc/posix-functions/unlink.texi (unlink): Document the bug.
17754         * doc/posix-functions/remove.texi (remove): Likewise.
17755         * tests/test-unlink.h (test_unlink): Enhance test.
17756         * tests/test-remove.c (main): Likewise.
17757
17758 2009-11-09  Eric Blake  <ebb9@byu.net>
17759
17760         rename: detect FreeBSD bug
17761         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
17762         slash on symlink.
17763         * modules/renameat-tests (Depends-on): Add filenamecat.
17764         * tests/test-rename.h (test_rename): Allow one more errno.
17765         * tests/test-renameat.c (main): Likewise.
17766         * doc/posix-functions/rename.texi (rename): Document the bug.
17767
17768         open: detect FreeBSD bug
17769         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
17770         symlink.
17771         * doc/posix-functions/open.texi (open): Document the bug.
17772         * doc/posix-functions/utimes.texi (utimes): Likewise.
17773         * tests/test-open.h (test_open): Add parameters, and test symlink
17774         handling.
17775         * tests/test-open.c (main): Adjust caller.
17776         * tests/test-fcntl-safer.c (main): Likewise.
17777         * modules/open-tests (Depends-on): Add stdbool, symlink.
17778         * modules/fcntl-safer-tests (Depends-on): Likewise.
17779         * tests/test-openat.c (main): Add test-open tests.
17780
17781         stat: detect FreeBSD bug
17782         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
17783         symlink.
17784         * doc/posix-functions/stat.texi (stat): Document the bug.
17785         * tests/test-stat.h (test_stat_func): Add argument.
17786         * tests/test-stat.c (main): Adjust caller.
17787         * tests/test-fstatat.c (main): Likewise.
17788         * modules/stat-tests (Depends-on): Add stdbool, symlink.
17789         Reported by Jim Meyering.
17790
17791 2009-11-09  James Youngman  <jay@gnu.org>
17792
17793         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
17794         * lib/strftime.c: Correct placement of #include "ignore-value.h".
17795
17796 2009-11-08  Jim Meyering  <meyering@redhat.com>
17797
17798         utimens: remove invalid futimesat call
17799         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
17800         It used the file descriptor of the target file as the DIR_FD
17801         parameter and NULL as the file name.  That caused failure with
17802         errno == EFAULT on FreeBSD-8.0-rc2
17803
17804 2009-11-07  Eric Blake  <ebb9@byu.net>
17805
17806         fflush, freadseek: use fseeko, not fseek
17807         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17808         (clear_ungetc_buffer): Avoid potential problems on large files.
17809         * lib/freadseek.c (freadseek): Likewise.
17810         * modules/freadseek (Depends-on): Add fseeko.
17811         * modules/fseek (configure.ac): Set a witness.
17812         * tests/test-fflush.c (main): Use fseeko.
17813         * tests/test-fpurge.c (fseek): Disable link warning.
17814         * tests/test-freadable.c (fseek): Likewise.
17815         * tests/test-freading.c (fseek): Likewise.
17816         * tests/test-fseeko.c (fseek): Likewise.
17817         * tests/test-ftell.c (fseek): Likewise.
17818         * tests/test-ftello.c (fseek): Likewise.
17819         * tests/test-fwritable.c (fseek): Likewise.
17820         * tests/test-fwriting.c (fseek): Likewise.
17821
17822 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17823
17824         * modules/memchr (Depends-on): Drop getpagesize dependency.
17825
17826 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17827
17828         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
17829         Reported by Ludovic Courtès.
17830         * build-aux/pmccabe2html: Improve example usage.
17831         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
17832
17833 2009-11-06  Jim Meyering  <meyering@redhat.com>
17834
17835         do-release-commit-and-tag: New module.
17836         Automate the release-commit and tag process.
17837         * build-aux/do-release-commit-and-tag: New script, from coreutils.
17838         * modules/do-release-commit-and-tag: New file.
17839         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17840
17841 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17842
17843         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
17844         because test-select.c uses inet_pton.
17845
17846 2009-11-06  Simon Josefsson  <simon@josefsson.org>
17847
17848         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
17849         GETADDRINFO_LIB.  Bump serial number.
17850         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
17851         Suggested by Eric Blake <ebb9@byu.net>.
17852
17853 2009-11-05  Eric Blake  <ebb9@byu.net>
17854
17855         strtod: detect darwin bug
17856         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
17857         Reported by Leo Davis.
17858
17859         freopen-safer: new module
17860         * modules/freopen-safer: New module.
17861         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
17862         * lib/freopen-safer.c (freopen_safer): New file.
17863         * lib/stdio-safer.h (freopen_safer): New declaration.
17864         * lib/stdio--.h (freopen): New override.
17865         * MODULES.html.sh (File stream based Input/Output): Mention it.
17866         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
17867         freopen-safer module.
17868         * doc/posix-functions/stderr.texi (stderr): Likewise.
17869         * doc/posix-functions/stdin.texi (stdin): Likewise.
17870         * doc/posix-functions/stdout.texi (stdout): Likewise.
17871         * modules/freopen-safer-tests: New test.
17872         * tests/test-reopen-safer.c: New file.
17873
17874 2009-11-05  Jim Meyering  <meyering@redhat.com>
17875
17876         maint.mk: Prohibit inclusion of "close-stream.h" without use.
17877         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
17878
17879 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17880
17881         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
17882
17883 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17884
17885         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
17886
17887 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17888
17889         Fix link error.
17890         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17891         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17892
17893 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17894
17895         * tests/test-func.c: Also test value of __func__.
17896
17897 2009-11-05  Simon Josefsson  <simon@josefsson.org>
17898
17899         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
17900         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
17901
17902 2009-11-05  Bruno Haible  <bruno@clisp.org>
17903
17904         Fix link error.
17905         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
17906         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17907         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
17908
17909 2009-11-05  Bruno Haible  <bruno@clisp.org>
17910
17911         Tests for module 'inet_pton'.
17912         * modules/inet_pton-tests: New file.
17913         * tests/test-inet_pton.c: New file.
17914
17915 2009-11-05  Bruno Haible  <bruno@clisp.org>
17916
17917         Tests for module 'inet_ntop'.
17918         * modules/inet_ntop-tests: New file.
17919         * tests/test-inet_ntop.c: New file.
17920
17921 2009-11-04  Eric Blake  <ebb9@byu.net>
17922
17923         stdlib-safer: wrap all mkstemp variants
17924         * modules/mkostemp (configure.ac): Set witness.
17925         * modules/mkostemps (configure.ac): Likewise.
17926         * modules/mkstemps (configure.ac): Likewise.
17927         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
17928         (mkstemps_safer): Wrap more functions.
17929         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
17930         wrapping.
17931         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
17932         (mkstemps_safer): Implement the wrappers.
17933
17934         mkstemps, mkostemps: new modules
17935         * modules/mkostemps: New module.
17936         * modules/mkstemps: Likewise.
17937         * lib/mkostemps.c (mkostemps): New file.
17938         * lib/mkstemps.c (mkstemps): Likewise.
17939         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
17940         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
17941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
17942         * modules/stdlib (Makefile.am): Substitute them.
17943         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
17944         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
17945         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17946         * doc/gnulib.texi (Glibc stdlib.h): Include them.
17947         * MODULES.html.sh (File system functions): Mention them.
17948
17949         tempname: resync from glibc
17950         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
17951         same values for __GT_FILE as glibc.  Abort even when assertions
17952         are disabled.
17953         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
17954         match its value otherwise.  Allow idempotent inclusion.
17955         * lib/mkdtemp.c (mkdtemp): Adjust caller.
17956         * lib/mkostemp.c (mkostemp): Likewise.
17957         * lib/mkstemp.c (mkstemp): Likewise.
17958         * lib/tmpfile.c (tmpfile): Likewise.
17959         * NEWS: Document this.
17960
17961         utimens: fix use of futimens on older Linux
17962         * lib/utimens.c (fdutimens): Use updated, rather than original,
17963         timespec to avoid bug in older Linux kernel.
17964         Reported by Simon Josefsson.
17965
17966 2009-11-04  Bruno Haible  <bruno@clisp.org>
17967
17968         Make num_processors more flexible and consistent.
17969         * lib/nproc.h (enum nproc_query): New type.
17970         (num_processors): Add a 'query' argument.
17971         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
17972         (num_processors): Add a 'query' argument. Test the value of the
17973         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
17974         mingw, count the number of CPUs available for the current process.
17975         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
17976         Check for sched_getaffinity and sched_getaffinity_np.
17977         * modules/nproc (Depends-on): Add c-ctype, extensions.
17978         * NEWS: Mention the change.
17979
17980 2009-11-03  Bruno Haible  <bruno@clisp.org>
17981
17982         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
17983
17984 2009-11-03  Jim Meyering  <meyering@redhat.com>
17985
17986         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
17987         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
17988         if it is defined.
17989
17990 2009-11-02  Eric Blake  <ebb9@byu.net>
17991
17992         mktime, timegm: share common declaration
17993         * lib/mktime-internal.h: New file.
17994         * lib/mktime.c: Use it rather than open-coding a declaration.
17995         * lib/timegm.c: Likewise.
17996         * modules/mktime (Files): Ship it.
17997         * modules/timegm (Files): Likewise.
17998         Suggested by Bruno Haible.
17999
18000         test-update-copyright: update test to match script changes
18001         * tests/test-update-copyright.sh: Avoid hard-coding perl
18002         location.  Don't update *.bak created by earlier runs.
18003
18004 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
18005             Simon Josefsson  <simon@josefsson.org>
18006             Bruno Haible  <bruno@clisp.org>
18007
18008         Fix link error on Solaris 8.
18009         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
18010         also in libnsl. Define also INET_PTON_LIB.
18011         * modules/inet_pton (Link): New section.
18012
18013 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18014             Bruno Haible  <bruno@clisp.org>
18015
18016         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
18017         * modules/inet_ntop (Link): New section.
18018         Reported by Boyan Kasarov <bkasarov@gmail.com>.
18019
18020 2009-11-02  Eric Blake  <ebb9@byu.net>
18021
18022         maint: avoid compiler warnings in m4 macros
18023         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
18024         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
18025
18026 2009-11-02  Simon Josefsson  <simon@josefsson.org>
18027
18028         * m4/pmccabe2html.m4: Remove file.
18029         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
18030         function.  Change maintainer.
18031         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
18032         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
18033         Courtès).
18034
18035 2009-10-31  Eric Blake  <ebb9@byu.net>
18036
18037         fseeko: fix m4 regression
18038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
18039         regression from 2009-10-27.
18040         Reported by Ralf Wildenhues.
18041
18042 2009-10-31  Jim Meyering  <meyering@redhat.com>
18043
18044         inttostr: aesthetics and improved (compile-time) safety
18045         Define inttype_is_signed rather than inttype_is_unsigned,
18046         since the sole use is via "#if inttype_is_signed".
18047         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
18048         inttype_is_unsigned.
18049         * lib/offtostr.c (inttype_is_signed): Likewise.
18050         * lib/uinttostr.c (inttype_is_signed): Likewise.
18051         * lib/umaxtostr.c (inttype_is_signed): Likewise.
18052         * lib/inttostr.c (inttostr): Use verify to cross-check the
18053         inttype_is_signed value and the signedness of the actual type.
18054         * modules/inttostr (Depends-on): Add verify.
18055
18056 2009-10-30  Eric Blake  <ebb9@byu.net>
18057
18058         build: avoid compiler warnings
18059         * lib/fchmodat.c (lchmod): Mark unused variables.
18060         * lib/getopt.c (_getopt_initialize): Likewise.
18061         * lib/mktime.c (__mktime_internal): Provide prototype.
18062         * lib/inttostr.c (inttostr): Avoid compiler warning even with
18063         older gcc that do not understand #pragma GCC diagnostic.
18064         * lib/uinttostr.c (inttype_is_unsigned): Define.
18065         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
18066
18067 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18068
18069         stat: fix compilation on AIX
18070         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
18071         only see struct stat64.
18072
18073 2009-10-30  Eric Blake  <ebb9@byu.net>
18074
18075         exclude: make more robust
18076         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
18077         rather than masking a coding bug.
18078         Suggested by Bruno Haible.
18079
18080 2009-10-30  Jim Meyering  <meyering@redhat.com>
18081
18082         perl scripts: remove #!/usr/bin/perl in favor of more portable...
18083         Rather than putting #!/usr/bin/perl on the first line,
18084         start with a variant of what's recommended by "man perlrun" that
18085         invokes the first "perl" program from your shell's search path.
18086         * build-aux/gitlog-to-changelog: Replace #!... as above.
18087         Add a "Local Variables" perl mode setting.
18088         Prompted by a patch from Ludovic Courtès.
18089         Improved by Eric Blake.
18090         * build-aux/useless-if-before-free: Likewise.
18091         * build-aux/announce-gen: Likewise.
18092         * build-aux/update-copyright: Likewise.
18093
18094 2009-10-29  Eric Blake  <ebb9@byu.net>
18095
18096         filenamecat-lgpl: adjust clients
18097         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
18098         filenamecat.
18099         * modules/renameat (Depends-on): Likewise.
18100
18101         filenamecat: split into filenamecat-lgpl
18102         * modules/filenamecat-lgpl: New module.
18103         * modules/filenamecat (Files): Move library-safe files into
18104         filenamecat-lgpl.
18105         (Depends-on): Add filenamecat-lgpl.
18106         (configure.ac): Declare witness.
18107         * lib/filenamecat.h (file_name_concat): Only declare when using
18108         GPL module.
18109         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
18110         Move...
18111         * lib/filenamecat-lgpl.c: ...into new file.
18112         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
18113         (gl_FILE_NAME_CONCAT): Use it.
18114         * MODULES.html.sh (File system functions): Mention new module.
18115
18116         argp: avoid memory leak
18117         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
18118         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
18119         base_name, since the latter malloc()s and can call exit().
18120         Leak introduced 2006-07-03.
18121
18122         dirname-lgpl: adjust clients that don't need full dirname
18123         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
18124         * modules/filenamecat (Depends-on): Likewise.
18125         * modules/linkat (Depends-on): Likewise.
18126         * modules/mkancesdirs (Depends-on): Likewise.
18127         * modules/mkdir (Depends-on): Likewise.
18128         * modules/openat (Depends-on): Likewise.
18129         * modules/savewd (Depends-on): Likewise.
18130         * modules/rename (Depends-on): Likewise.
18131         (License): Relax license.
18132         * modules/mkdir-tests (Depends-on): Drop progname.
18133         (Makefile.am): Delete unneeded LDADD.
18134         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
18135
18136         dirname: split into dirname-lgpl
18137         * modules/dirname-lgpl: New module.
18138         * modules/dirname (Files): Move library-safe files into
18139         dirname-lgpl.
18140         (Depends-on): Add dirname-lgpl.
18141         (configure.ac): Declare witness.
18142         * modules/double-slash-root (License): Relax license.
18143         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
18144         module.
18145         * lib/dirname.c (dir_len, mdir_name): Move...
18146         * lib/dirname-lgpl.c: ...into new file.
18147         * lib/basename.c (last_component, base_len): Move...
18148         * lib/basename-lgpl.c: ...into new file.
18149         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
18150         (gl_DIRNAME): Use it.
18151         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
18152         Mention new module.
18153         * modules/dirname-tests (Depends-on): Add progname.
18154         * tests/test-dirname.c (program_name): Delete.
18155
18156         mkdir: make safe for libraries
18157         * modules/mkdir (Depends-on): Drop xalloc.
18158         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
18159         exit.
18160
18161         tests: avoid some compiler warnings
18162         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
18163         literals.
18164         * tests/test-memchr.c (main): Avoid type mismatch.
18165         * tests/test-arpa_inet.c (main): Avoid unused parameters.
18166         * tests/test-base64.c (main): Likewise.
18167         * tests/test-getdelim.c (main): Likewise.
18168         * tests/test-gethostname.c (main): Likewise.
18169         * tests/test-getline.c (main): Likewise.
18170         * tests/test-netinet_in.c (main): Likewise.
18171         * tests/test-select.c (open_server_socket, main): Likewise.
18172         * tests/test-select-stdin.c (main): Likewise.
18173         * tests/test-sockets.c (main): Likewise.
18174         * tests/test-strsignal.c (main): Likewise.
18175         * tests/test-sys_select.c (main): Likewise.
18176         * tests/test-sys_socket.c (main): Likewise.
18177         * tests/test-u64.c (main): Likewise.
18178         * tests/test-xfprintf-posix.c (main): Likewise.
18179         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
18180
18181         sockets: avoid compiler warning
18182         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
18183
18184         maint: detect usage(1) and other suspicious exits
18185         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
18186
18187 2009-10-29  Jim Meyering  <meyering@redhat.com>
18188
18189         timespec: long-to-int truncation could make timespec_cmp malfunction
18190         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
18191         a multiple of 2^32 nanoseconds as no difference.
18192
18193 2009-10-28  Jim Meyering  <meyering@redhat.com>
18194
18195         fprintftime: wrap macro code argument in "do {...} while(0)"
18196         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
18197         cpy macro must be a statement that can be followed by a semicolon.
18198         Now that the else clause contains a comment and is hence longer
18199         than one line, I require curly braces.  That in turn requires
18200         that we wrap this code block in the standard do...while(0).
18201
18202         fprintftime: remove stray semicolon from previous change
18203         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
18204
18205         fprintftime: avoid a warning about ignored fwrite return value
18206         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
18207         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
18208         that is unsafe.
18209         * modules/fprintftime (Depends-on): Add ignore-value.
18210
18211         exclude: avoid an unwarranted warning
18212         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
18213
18214 2009-10-27  Eric Blake  <ebb9@byu.net>
18215
18216         fseek: avoid compilation failure when fflush is replaced
18217         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
18218         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
18219         module is in use.
18220         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
18221         module is not in use; since REPLACE_FSEEK worked otherwise.
18222         (GNULIB_FTELLO): Likewise for ftell.
18223         Reported by Ian Beckwith and others.
18224
18225 2009-10-27  Bruno Haible  <bruno@clisp.org>
18226
18227         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
18228         Reported by Jim Meyering.
18229
18230 2009-10-27  Jim Meyering  <jim@meyering.net>
18231             Bruno Haible  <bruno@clisp.org>
18232
18233         Avoid warning despite dropping the return value of fwrite.
18234         * lib/unicodeio.c: Include ignore-value.h.
18235         (fwrite_success_callback): Explicitly ignore fwrite's return value.
18236         * modules/unicodeio (Depends-on): Add ignore-value.
18237
18238 2009-10-26  Eric Blake  <ebb9@byu.net>
18239
18240         areadlinkat: fix fallback path
18241         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
18242         pointer and zero.
18243
18244 2009-10-22  Pádraig Brady  <P@draigBrady.com>
18245
18246         Use a better IO block size for modern systems
18247         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
18248         * lib/md2.c: Likewise.
18249         * lib/md4.c: Likewise.
18250         * lib/md5.c: Likewise.
18251         * lib/sha1.c: Likewise.
18252         * lib/sha256.c: Likewise.
18253         * lib/sha512.c: Likewise.
18254
18255 2009-10-22  Eric Blake  <ebb9@byu.net>
18256
18257         tests: avoid several compiler warnings
18258         * tests/test-getcwd.c (main): Avoid buffer underflow.
18259         * tests/test-getdate.c (main): String literals are not safe with
18260         putenv, so use setenv.  Declare unused argument.
18261         * modules/getdate-tests (Depends-on): Add setenv.
18262         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
18263         problems with string literals in char *.
18264         * tests/test-hash.c (main): Avoid shadowing declaration.
18265         (insert_new): Treat string literals as char const *.
18266         * tests/test-getopt.h (test_getopt): Likewise.
18267         (getopt_loop): Alter types to minimize casting elsewhere.
18268         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
18269         (test_getopt_long_posix): Likewise.
18270         (do_getopt_long): Add wrapper to minimize casting.
18271         * tests/test-atexit.c (clear_temp_file): Use void.
18272         * tests/test-areadlink-with-size.c (main): Declare unused
18273         arguments.
18274         * tests/test-areadlink.c (main): Likewise.
18275         * tests/test-areadlinkat-with-size.c (main): Likewise.
18276         * tests/test-areadlinkat.c (main): Likewise.
18277         * tests/test-canonicalize-lgpl.c (main): Likewise.
18278         * tests/test-canonicalize.c (main): Likewise.
18279         * tests/test-dirent-safer.c (main): Likewise.
18280         * tests/test-dirname.c (main): Likewise.
18281         * tests/test-dup2.c (main): Likewise.
18282         * tests/test-fchdir.c (main): Likewise.
18283         * tests/test-fcntl-h.c (main): Likewise.
18284         * tests/test-fcntl-safer.c (main): Likewise.
18285         * tests/test-fdopendir.c (main): Likewise.
18286         * tests/test-fdutimensat.c (main): Likewise.
18287         * tests/test-fflush.c (main): Likewise.
18288         * tests/test-filenamecat.c (main): Likewise.
18289         * tests/test-filevercmp.c (main): Likewise.
18290         * tests/test-fopen-safer.c (main): Likewise.
18291         * tests/test-fopen.c (main): Likewise.
18292         * tests/test-fpending.c (main): Likewise.
18293         * tests/test-fpurge.c (main): Likewise.
18294         * tests/test-freading.c (main): Likewise.
18295         * tests/test-fstatat.c (main): Likewise.
18296         * tests/test-fsync.c (main): Likewise.
18297         * tests/test-futimens.c (main): Likewise.
18298         * tests/test-getndelim2.c (main): Likewise.
18299         * tests/test-gettimeofday.c (main): Likewise.
18300         * tests/test-getopt.c (main): Likewise.
18301         * tests/test-i-ring.c (main): Likewise.
18302         * tests/test-inttypes.c (main): Likewise.
18303         * tests/test-link.c (main): Likewise.
18304         * tests/test-lstat.c (main): Likewise.
18305         * tests/test-math.c (main): Likewise.
18306         * tests/test-md5.c (main): Likewise.
18307         * tests/test-memchr2.c (main): Likewise.
18308         * tests/test-memrchr.c (main): Likewise.
18309         * tests/test-mkdir.c (main): Likewise.
18310         * tests/test-mkdirat.c (main): Likewise.
18311         * tests/test-mkfifoat.c (main): Likewise.
18312         * tests/test-open.c (main): Likewise.
18313         * tests/test-openat-safer.c (main): Likewise.
18314         * tests/test-openat.c (main): Likewise.
18315         * tests/test-quotearg.c (main): Likewise.
18316         * tests/test-rawmemchr.c (main): Likewise.
18317         * tests/test-readlink.c (main): Likewise.
18318         * tests/test-remove.c (main): Likewise.
18319         * tests/test-rename.c (main): Likewise.
18320         * tests/test-renameat.c (main): Likewise.
18321         * tests/test-rmdir.c (main): Likewise.
18322         * tests/test-sha1.c (main): Likewise.
18323         * tests/test-signal.c (main): Likewise.
18324         * tests/test-sigaction.c (main): Likewise.
18325         * tests/test-stat.c (main): Likewise.
18326         * tests/test-stat-time.c (main): Likewise.
18327         * tests/test-stddef.c (main): Likewise.
18328         * tests/test-stdint.c (main): Likewise.
18329         * tests/test-stdio.c (main): Likewise.
18330         * tests/test-stdlib.c (main): Likewise.
18331         * tests/test-strchrnul.c (main): Likewise.
18332         * tests/test-strerror.c (main): Likewise.
18333         * tests/test-string.c (main): Likewise.
18334         * tests/test-strtod.c (main): Likewise.
18335         * tests/test-strverscmp.c (main): Likewise.
18336         * tests/test-symlink.c (main): Likewise.
18337         * tests/test-symlinkat.c (main): Likewise.
18338         * tests/test-sys_stat.c (main): Likewise.
18339         * tests/test-sys_time.c (main): Likewise.
18340         * tests/test-time.c (main): Likewise.
18341         * tests/test-unistd.c (main): Likewise.
18342         * tests/test-unlink.c (main): Likewise.
18343         * tests/test-unlinkat.c (main): Likewise.
18344         * tests/test-utimens.c (main): Likewise.
18345         * tests/test-utimensat.c (main): Likewise.
18346         * tests/test-version-etc.c (main): Likewise.
18347         * tests/test-wchar.c (main): Likewise.
18348         * tests/test-wctype.c (main): Likewise.
18349         * tests/test-xprintf-posix.c (main): Likewise.
18350         * tests/test-posixtm.c (main): Likewise.
18351         (STREQ): Delete unused macro.
18352         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
18353         shadowed variables.
18354         * tests/test-memchr.c (main): Likewise.
18355
18356 2009-10-21  Eric Blake  <ebb9@byu.net>
18357
18358         areadlinkat: avoid failure on older glibc
18359         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
18360         rather than mis-comparing 0 against FUNC_RESULT of char*.
18361
18362 2009-10-21  Bruno Haible  <bruno@clisp.org>
18363
18364         * modules/stpncpy (License): Relicense under LGPLv2+.
18365         Reported by David Lutterkort <lutter@redhat.com>.
18366
18367 2009-10-20  Eric Blake  <ebb9@byu.net>
18368
18369         utimensat: work around Solaris 9 bug
18370         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
18371         has trailing slash bugs.
18372         * tests/test-lutimens.h (test_lutimens): Enhance test.
18373         * tests/test-utimens.h (test_utimens): Likewise.
18374         * doc/posix-functions/utime.texi (utime): Enhance documentation.
18375         * doc/posix-functions/utimes.texi (utimes): Likewise.
18376         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18377         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
18378         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
18379         * doc/posix-functions/futimens.texi (futimens): Likewise.
18380
18381         fdutimensat: new module
18382         * modules/fdutimensat: New file.
18383         * lib/fdutimensat.c (fdutimensat): Likewise.
18384         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
18385         * MODULES.html.sh (File system functions): Mention module.
18386         * modules/fdutimensat-tests: New test.
18387         * tests/test-fdutimensat.c: Likewise.
18388
18389         doc: regenerate INSTALL
18390         * doc/INSTALL: Reflect recent autoconf update.
18391         * doc/INSTALL.ISO: Likewise.
18392         * doc/INSTALL.UTF-8: Likewise.
18393
18394 2009-10-20  Pádraig Brady  <P@draigBrady.com>
18395
18396         acl: warn if ACL support is not detected
18397         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
18398
18399 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
18400
18401         * lib/nproc.h: Add extern "C" block for C++.
18402
18403 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
18404             Bruno Haible  <bruno@clisp.org>
18405
18406         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
18407         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
18408         * doc/posix-functions/isalpha.texi: Likewise.
18409         * doc/posix-functions/isblank.texi: Likewise.
18410         * doc/posix-functions/iscntrl.texi: Likewise.
18411         * doc/posix-functions/isdigit.texi: Likewise.
18412         * doc/posix-functions/isgraph.texi: Likewise.
18413         * doc/posix-functions/islower.texi: Likewise.
18414         * doc/posix-functions/isprint.texi: Likewise.
18415         * doc/posix-functions/ispunct.texi: Likewise.
18416         * doc/posix-functions/isspace.texi: Likewise.
18417         * doc/posix-functions/isupper.texi: Likewise.
18418         * doc/posix-functions/isxdigit.texi: Likewise.
18419
18420 2009-10-18  Bruno Haible  <bruno@clisp.org>
18421
18422         Tests for module 'isblank'.
18423         * modules/isblank-tests: New file.
18424         * tests/test-isblank.c: New file.
18425
18426         New module 'isblank'.
18427         * lib/isblank.c: New file.
18428         * m4/isblank.m4: New file.
18429         * modules/isblank: New file.
18430         * doc/posix-functions/isblank.texi: Mention the new module.
18431
18432 2009-10-18  Bruno Haible  <bruno@clisp.org>
18433
18434         New module 'ctype'.
18435         * lib/ctype.in.h: New file.
18436         * m4/ctype.m4: New file.
18437         * modules/ctype: New file.
18438         * doc/posix-headers/ctype.texi: Mention the new module.
18439
18440 2009-10-18  Jim Meyering  <meyering@redhat.com>
18441
18442         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
18443         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
18444         right after its initialization, rather than farther down.
18445         Keeping these in close proximity makes it easier to ensure
18446         that each such variable is initialized.  E.g.,
18447
18448             LIB_CLOCK_GETTIME=
18449             AC_SUBST([LIB_CLOCK_GETTIME])
18450
18451         This change also increments these serial numbers.
18452         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
18453         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18455
18456 2009-10-18  Bruno Haible  <bruno@clisp.org>
18457
18458         Don't let environment variables perturb build.
18459         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
18460         (gl_PREREQ_GETHRXTIME): ... not here.
18461
18462 2009-10-18  Bruno Haible  <bruno@clisp.org>
18463
18464         Avoid symlink attack in localcharset module.
18465         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
18466         (O_NOFOLLOW): Define fallback.
18467         (get_charset_aliases): Don't open the file if it is a symbolic link.
18468         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
18469         gl_FCNTL_H.
18470         (gl_FCNTL_H): Require it.
18471         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
18472         * modules/localcharset (Files): Add m4/fcntl_h.m4.
18473         Reported by Fergal Glynn <fglynn@veracode.com>.
18474
18475 2009-10-18  Bruno Haible  <bruno@clisp.org>
18476
18477         Implement nproc for mingw.
18478         * lib/nproc.c: Include <windows.h>
18479         (num_processors): On native Windows platforms, try GetSystemInfo.
18480
18481 2009-10-18  Bruno Haible  <bruno@clisp.org>
18482
18483         Implement nproc for IRIX.
18484         * lib/nproc.c: Include <sys/sysmp.h>.
18485         (num_processors): On IRIX systems, try sysmp.
18486         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
18487
18488 2009-10-18  Bruno Haible  <bruno@clisp.org>
18489
18490         Implement nproc for HP-UX.
18491         * lib/nproc.c: Include <sys/pstat.h>
18492         (num_processors): On HP-UX systems, try pstat_getdynamic.
18493         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
18494         pstat_getdynamic.
18495
18496 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
18497             Bruno Haible  <bruno@clisp.org>
18498
18499         Implement nproc for NetBSD, OpenBSD.
18500         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
18501         (ARRAY_SIZE): New macro.
18502         (num_processors): On BSD systems, try sysctl of HW_NCPU.
18503         * m4/nproc.m4: New file.
18504         * modules/nproc (Files): Add m4/nproc.m4.
18505         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
18506         (Makefile.am): Instead, augment lib_SOURCES.
18507
18508 2009-10-18  Bruno Haible  <bruno@clisp.org>
18509
18510         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
18511         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
18512         sys/param.h.
18513
18514 2009-10-16  Eric Blake  <ebb9@byu.net>
18515
18516         utimensat: new module
18517         * modules/utimensat: New file.
18518         * lib/utimensat.c (utimensat): Likewise.
18519         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18520         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
18521         so we can work around Linux bugs.
18522         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18523         * modules/sys_stat (Makefile.am): Substitute them.
18524         * lib/sys_stat.in.h (utimensat): Declare it.
18525         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18526         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18527         * modules/utimensat-tests: New test.
18528         * tests/test-utimensat.c: Likewise.
18529
18530         utimens: let lutimens work on non-symlinks
18531         * lib/utimens.c (lutimens): Fall back to utimens rather than
18532         failing with ENOSYS, when file is not a symlink.
18533         (utimens): Reduce redirection.
18534         * tests/test-lutimens.h (test_lutimens): Update test to cover
18535         non-symlinks.
18536         * tests/test-utimens.h (test_utimens): Update test to cover
18537         symlinks.
18538         * tests/test-utimens.c (main): Update caller.
18539
18540         utimens: cache whether utimensat syscall works
18541         * lib/utimens.c (utimensat_works_really): New cache variable.
18542         (fdutimens, lutimens): Use it to avoid failing syscall.
18543
18544         test-stat-time, test-utimens: improve portability
18545         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
18546         ext4 on alpha, and for cygwin.
18547         * tests/test-utimens-common.h: New file.
18548         (nap): Factor delays into single function.
18549         * tests/test-lutimens.h (test_lutimens): Use new header.
18550         * tests/test-futimens.h (test_futimens): Likewise.
18551         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
18552         timestamps to occur from same machine, as was done previously for
18553         test_utimens.
18554         * modules/utimens-tests (Files): Ship new file.
18555         * modules/futimens-tests (Files): Likewise.
18556         Reported in part by Jim Meyering.
18557
18558         sys_stat: sort replacement declarations
18559         * lib/sys_stat.in.h: Sort declarations.
18560         * lib/futimens.c (futimens): Fix typo.
18561
18562 2009-10-15  Jim Meyering  <meyering@redhat.com>
18563
18564         don't let environment settings perturb build
18565         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
18566         could cause a configure-time and/or build-time malfunction.
18567         Typically, a configure-time function-in-library test is performed
18568         via code like this:
18569
18570           LIB_VAR=
18571           AC_SUBST([LIB_VAR])
18572           prefix_saved_LIBS=$LIBS
18573             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
18574                        [test "$ac_cv_search_FUNC" = "none required" ||
18575                         LIB_VAR=$ac_cv_search_FUNC])
18576           LIBS=$prefix_saved_LIBS
18577
18578         However, in each of the files affected by this change, the LIB_VAR=
18579         initialization was omitted.  Thus, when set in the environment, its
18580         value would propagate into generated Makefiles when FUNC is not found
18581         in LIB_NAME.
18582         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
18583         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18585
18586 2009-10-14  Eric Blake  <ebb9@byu.net>
18587
18588         fchdir: avoid infinite recursion in mingw
18589         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
18590         recursing.
18591
18592         test-stat-time: port to mingw
18593         * tests/test-stat-time.c (force_unlink): Return a value.
18594         (test_ctime) [W32]: Fix compilation error.
18595         (nap): Don't call usleep with too large an argument.  Use
18596         force_unlink.
18597         * doc/pastposix-functions/usleep.texi (usleep): Document the
18598         portability issue.
18599
18600 2009-10-13  Jim Meyering  <meyering@redhat.com>
18601
18602         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18603         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
18604         * modules/pipe-filter-ii: Likewise.
18605         * modules/sys_socket-tests: Likewise.
18606         * modules/tsearch-tests: Likewise.
18607         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
18608         (check): Depend on it.
18609
18610 2009-10-12  Eric Blake  <ebb9@byu.net>
18611
18612         utimens-tests: port to NFS file systems
18613         * tests/test-utimens.h (test_utimens): Refactor utimecmp
18614         comparisons to avoid spurious failures from timestamp drift
18615         between NFS machines.
18616
18617 2009-10-12  Eric Blake  <ebb9@byu.net>
18618
18619         stat-time-tests: minor cleanups
18620         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
18621         * tests/test-stat-time.c (nap): Separate assignment from call.
18622         Suggested by Paolo Bonzini and Bruno Haible.
18623
18624         sys_stat: guarantee struct timespec
18625         * lib/sys_stat.in.h (includes): Always include <time.h>
18626         * modules/sys_stat (Depends-on): Add time.
18627         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
18628         mode_t permission values.
18629         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
18630         get at subsecond timestamps.
18631
18632 2009-10-10  Eric Blake  <ebb9@byu.net>
18633
18634         futimens: new module
18635         * modules/futimens: New file.
18636         * lib/futimens.c (futimens): Likewise.
18637         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
18638         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
18639         we can work around Linux bugs.
18640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18641         * modules/sys_stat (Makefile.am): Substitute them.
18642         * lib/sys_stat.in.h (futimens): Declare it.
18643         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18644         * doc/posix-functions/futimens.texi (futimens): Likewise.
18645         * modules/futimens-tests: New test.
18646         * tests/test-futimens.c: Likewise.
18647
18648         utimens: introduce fdutimens
18649         * lib/utimens.h (fdutimens): New prototype.
18650         * lib/utimens.c (gl_futimens): Move guts...
18651         (fdutimens): ...to new interface.
18652         * tests/test-utimens.c (do_fdutimens): Use it.
18653
18654         utimens: add UTIME_NOW and UTIME_OMIT support
18655         * lib/utimens.c (validate_timespec, update_timespec): New helper
18656         functions.
18657         (gl_futimens, lutimens): Use them.
18658         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
18659         stdbool, sys_stat.
18660         (Link): Mention resulting library dependency.
18661         * modules/utimecmp (Link): Likewise.
18662         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
18663         (Makefile.am): Pick up library dependency.
18664         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
18665         definition.
18666         * tests/test-sys_stat.c: Test the definitions.
18667         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
18668         * NEWS: Document library dependency.
18669
18670         utimecmp: support symlink timestamps
18671         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
18672         hashing when possible.  Use pathconf when available.
18673         (SYSCALL_RESOLUTION): Recognize tighter resolution.
18674         * modules/utimecmp (Depends-on): Add lstat.
18675
18676         utimens: add lutimens interface
18677         * lib/utimens.c (lutimens): New function.
18678         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
18679         * lib/utimens.h (lutimens): Declare new interface.
18680         * tests/test-utimens.c (main): Enhance test.
18681         * tests/test-lutimens.h (test_lutimens): New file.
18682         * modules/utimens-tests (Files): Distribute it.
18683         (Depends-on): Add symlink.
18684         (configure.ac): Check for usleep.
18685
18686         utimens: validate futimens usage
18687         * lib/utimens.c (gl_futimens): Require valid fd up front, using
18688         fewer syscalls on failure later on.  Avoid compiler warning on
18689         mingw.
18690         * modules/utimens (Depends-on): Add dup2.
18691
18692         utimens: add test
18693         * modules/utimens-tests: New test.
18694         * tests/test-utimens.h: New file.
18695         * tests/test-futimens.h: Likewise.
18696         * tests/test-utimens.c: Likewise.
18697
18698         doc: mention timestamp portability issues
18699         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
18700         instead.
18701         * doc/posix-functions/utime.texi (utime): Likewise.
18702         * doc/posix-functions/utimes.texi (utimes): Likewise.
18703         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
18704         instead.
18705         * doc/posix-functions/futimens.texi (futimens): Mention utimens
18706         module.
18707         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
18708         Mention weakness with symlink timestamps.
18709         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
18710         to utimensat/futimens instead.
18711         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
18712
18713         test-dup2: enhance test
18714         * tests/test-dup2.c (main): Also check AT_FDCWD.
18715
18716         test-stat-time: avoid more spurious failures
18717         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
18718         xfs; and avoid race if the two timestamps cross quantization edge.
18719
18720         relocatable: prefer 'file system' over 'filesystem'
18721         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
18722         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
18723         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
18724         * doc/relocatable.texi (Enabling Relocatability): Likewise.
18725         * lib/relocatable.c (compute_curr_prefix): Likewise.
18726
18727 2009-10-10  Jim Meyering  <meyering@redhat.com>
18728
18729         stat-time-tests: check for the usleep function
18730         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
18731
18732 2009-10-10  Bruno Haible  <bruno@clisp.org>
18733
18734         * modules/xnanosleep: Put the Link section after the Include section.
18735
18736 2009-10-09  Eric Blake  <ebb9@byu.net>
18737
18738         dup2: work around FreeBSD 6.1 bug
18739         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
18740         * doc/posix-functions/dup2.texi (dup2): Document it.
18741         Reported by Nelson H. F. Beebe and Jim Meyering.
18742
18743         test-stat-time: port to buggy NFS clients
18744         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
18745         (test_ctime): Also skip test if mtime and ctime are skewed.
18746
18747         maint: prefer 'file system' over 'filesystem'
18748         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18749         * doc/posix-functions/lstat.texi (lstat): Likewise.
18750         * lib/file-has-acl.c (file_has_acl): Likewise.
18751         * lib/fwriteerror.c [TEST]: Likewise.
18752         * tests/test-areadlink.h (test_areadlink): Likewise.
18753         * tests/test-areadlinkat-with-size.c (main): Likewise.
18754         * tests/test-areadlinkat.c (main): Likewise.
18755         * tests/test-canonicalize-lgpl.c (main): Likewise.
18756         * tests/test-canonicalize.c (main): Likewise.
18757         * tests/test-fstatat.c (main): Likewise.
18758         * tests/test-linkat.c (main): Likewise.
18759         * tests/test-lstat.h (test_lstat_func): Likewise.
18760         * tests/test-mkdir.h (test_mkdir): Likewise.
18761         * tests/test-readlink.h (test_readlink): Likewise.
18762         * tests/test-remove.c (main): Likewise.
18763         * tests/test-rename.h (test_rename): Likewise.
18764         * tests/test-renameat.c (main): Likewise.
18765         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18766         * tests/test-symlink.h (test_symlink): Likewise.
18767         * tests/test-symlinkat.c (main): Likewise.
18768         * tests/test-unlink.h (test_unlink_func): Likewise.
18769         * tests/test-unlinkat.c (main): Likewise.
18770
18771         maint: make realtime library usage explicit
18772         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
18773         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
18774         * modules/settime (Link): Likewise.
18775         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
18776
18777         test-stat-time: speed up execution
18778         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
18779         warning on mingw.
18780         (nap): New helper function.
18781         (prepare_test): Use it to reduce sleep time.
18782         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
18783         execution.
18784         * modules/stat-time-tests (configure.ac): Check for usleep.
18785
18786 2009-10-09  Jim Meyering  <meyering@redhat.com>
18787
18788         selinux-h: always use getfilecon wrappers
18789         * lib/getfilecon.c: New file.
18790         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
18791         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
18792         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
18793         (fgetfilecon): Provide a stub.
18794         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
18795         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
18796         file unconditionally.
18797         When <selinux/selinux.h> is found, arrange to use wrappers.
18798         * modules/selinux-h (Files): Add getfilecon.c.
18799         (Makefile.am): Substitute include-next-related bits
18800         into the now-always-generated selinux/selinux.h file.
18801         * doc/glibc-functions/lgetfilecon.texi: New file.
18802         * doc/glibc-functions/fgetfilecon.texi: New file.
18803         * doc/glibc-functions/getfilecon.texi: New file.
18804         * doc/glibc-functions/getfilecon-desc.texi: New file.
18805         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
18806         which to pull in the new files.
18807         * MODULES.html.sh (Misc): Add selinux-h.
18808
18809 2009-10-08  Jim Meyering  <meyering@redhat.com>
18810
18811         unistd: fix comment typo
18812         * lib/unistd.in.h (euidaccess): Fix a comment typo.
18813
18814 2009-10-08  Eric Blake  <ebb9@byu.net>
18815
18816         areadlink: use SIZE_MAX consistently
18817         * modules/areadlink (Depends-on): Add stdint.
18818         * modules/areadlink-with-size (Depends-on): Likewise.
18819         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
18820         gives NULL; drop sys/types, since unistd gives size_t; and add
18821         stdint for SIZE_MAX.
18822         (SIZE_MAX): Rely on headers.
18823         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
18824         and add stdint.
18825         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
18826         (SIZE_MAX): Likewise.
18827         (INITIAL_BUF_SIZE): Turn into enum.
18828         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
18829
18830 2009-10-08  Jim Meyering  <meyering@redhat.com>
18831
18832         areadlinkat: avoid compilation failure
18833         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
18834         Fix typo in comment.
18835
18836 2009-10-07  Eric Blake  <ebb9@byu.net>
18837
18838         areadlinkat-with-size: new module
18839         * modules/areadlinkat-with-size: New module.
18840         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
18841         * lib/areadlink.h (areadlinkat): Declare it.
18842         * MODULES.html.sh (File system functions): Mention it.
18843         * modules/areadlinkat-with-size-tests: New test.
18844         * tests/test-areadlinkat-with-size.c: New file.
18845
18846         xreadlinkat: new module
18847         * modules/xreadlinkat: New module.
18848         * lib/xreadlinkat.c (xreadlinkat): New file.
18849         * lib/xreadlink.h (xreadlinkat): Declare it.
18850         * MODULES.html.sh (File system functions): Mention it.
18851
18852         areadlinkat: new module
18853         * lib/at-func.c (FUNC_FAIL): New define.
18854         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
18855         * modules/areadlinkat: New module.
18856         * lib/linkat.c (areadlinkat): Move...
18857         * lib/areadlinkat.c (areadlinkat): ...to new file.
18858         * lib/areadlink.h (areadlinkat): Declare it.
18859         * modules/linkat (Depends-on): Add areadlinkat.
18860         * MODULES.html.sh (File system functions): Mention it.
18861         * modules/areadlinkat-tests: New test.
18862         * tests/test-areadlinkat.c: New file.
18863
18864         areadlink, areadlink-with-size: add tests
18865         * modules/areadlink-tests: New test.
18866         * modules/areadlink-with-size-tests: Likewise.
18867         * tests/test-areadlink.h: New file.
18868         * tests/test-areadlink.c: Likewise.
18869         * tests/test-areadlink-with-size.c: Likewise.
18870
18871         maint: minor cleanups
18872         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
18873         _UNUSED_PARAMETER_ instead.
18874         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
18875         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
18876         * modules/linkat-tests (Files): Distribute test-link.h.
18877
18878         openat, utimens: whitespace cleanup
18879         * lib/openat.c: Prefer space throughout, rather than mix of 8
18880         spaces vs. tabs.
18881         * lib/at-func.c: Likewise.
18882         * lib/utimens.c: Likewise.
18883
18884         openat: avoid using wrong fd
18885         * lib/openat.c (openat_permissive): Reject user's fd if saving the
18886         working directory chooses same fd.
18887         * lib/at-func.c (AT_FUNC_NAME): Likewise.
18888
18889         mkdir, mkdirat: fix cygwin 1.5.x bug
18890         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
18891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
18892         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
18893         bug.
18894         (gl_PREREQ_MKDIR): Delete unused macro.
18895         * modules/mkdir (Files): Track file rename.
18896         (configure.ac): Update macro name.
18897         * modules/openat (Depends-on): Add mkdir.
18898         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
18899
18900         mkdir, mkdirat: add tests
18901         * modules/mkdir-tests: New test.
18902         * tests/test-mkdir.h: New file.
18903         * tests/test-mkdir.c: Likewise.
18904         * tests/test-mkdirat.c: Likewise.
18905         * modules/openat-tests (Files): Add new files.
18906         (Makefile.am): Run new test.
18907
18908 2009-10-06  Eric Blake  <ebb9@byu.net>
18909
18910         doc: tweak *at function documentation
18911         * doc/posix-functions/faccessat.texi (faccessat): Mention
18912         known issue with replacement.
18913         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
18914         * doc/posix-functions/linkat.texi (linkat): Likewise.
18915         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18916         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18917         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18918         * doc/posix-functions/renameat.texi (renameat): Likewise.
18919         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18920
18921         openat: fix GNU/Hurd bug in unlinkat
18922         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
18923         broken.
18924         * doc/posix-functions/unlink.texi (unlink): Document this.
18925         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
18926
18927         fdopendir: fix GNU/Hurd bug
18928         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
18929         allowing non-directory fds.
18930         * lib/fdopendir.c (rpl_fdopendir): Work around it.
18931         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18932         * modules/dirent (Makefile.am): Substitute it.
18933         * lib/dirent.in.h (fdopendir): Declare replacement.
18934         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
18935         * tests/test-fdopendir.c (main): Test something other than
18936         /dev/null, since on Hurd that behaves like a directory.
18937
18938         test-symlink: port to GNU/Hurd
18939         * tests/test-symlink.h (test_symlink): Relax expected errno.
18940
18941         doc: tweak more cygwin information
18942         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
18943         now compatible with glibc.
18944         * doc/posix-functions/getopt.texi (getopt): Likewise.
18945
18946         getopt-gnu: add another test
18947         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
18948         guarantee behavior relied on by m4.
18949         * tests/test-getopt.c (main): Use it.
18950         * modules/getopt-posix-tests (Depends-on): Add setenv.
18951         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
18952
18953         getopt: fix compilation on darwin
18954         * lib/getopt.in.h (includes): Leave breadcrumbs during system
18955         include.
18956         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
18957         Reported by Ludovic Courtès.
18958
18959 2009-10-06  Bruno Haible  <bruno@clisp.org>
18960
18961         * modules/size_max (Description): Discourage its use.
18962         Reported by Simon Josefsson.
18963
18964 2009-10-06  Jim Meyering  <meyering@redhat.com>
18965
18966         linkat: avoid compilation failure
18967         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
18968
18969 2009-10-05  Eric Blake  <ebb9@byu.net>
18970
18971         linkat: support Linux 2.6.17
18972         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
18973         linkat on Linux, but allow cache variable override.
18974         * lib/linkat.c (rpl_linkat): Define override.
18975         * modules/linkat (Depends-on): Add symlinkat.
18976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
18977         * modules/unistd (Makefile.am): Substitute it.
18978         * lib/unistd.in.h (linkat): Declare replacement.
18979         Reported by Pádraig Brady.
18980
18981         quotearg: port test to systems with C.UTF-8 locale
18982         * tests/test-quotearg.c (struct result_strings): Add another
18983         member, differentiating between C.ASCII and C.UTF-8 handling.
18984         (compare_strings): Add parameter.
18985         (main): Adjust all callers.
18986
18987         getopt: avoid clash with FreeBSD _getopt_internal
18988         * lib/getopt.in.h (_getopt_internal): Override the name.
18989         * lib/getopt_int.h (includes): Pick up any overrides.
18990         Reported by Reuben Thomas.
18991
18992         hash: allow C89 compilation
18993         * lib/hash.c (check_tuning): Move declaration before statement.
18994         Reported by Reuben Thomas.
18995
18996 2009-10-05  Karl Berry  <karl@gnu.org>
18997
18998         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
18999
19000 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
19001             Bruno Haible  <bruno@clisp.org>
19002
19003         * lib/uname.c (uname): Use a table-driven algorithm to compute
19004         Windows NT versions.
19005
19006 2009-10-04  Bruno Haible  <bruno@clisp.org>
19007
19008         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
19009         program_invocation_short_name.
19010         * modules/progname (configure.ac): Test for presence of
19011         program_invocation_short_name.
19012         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
19013
19014 2009-10-04  Bruno Haible  <bruno@clisp.org>
19015
19016         * lib/progname.c (set_program_name): Fix comment.
19017         Reported by Jim Meyering.
19018
19019 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19020             Bruno Haible  <bruno@clisp.org>
19021
19022         * lib/uname.c: Include <string.h>.
19023         (uname): Do only one call to GetVersionEx in the common case.
19024
19025 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
19026             Bruno Haible  <bruno@clisp.org>
19027
19028         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
19029         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
19030         (uname): Add support for Windows CE and various non-x86 CPU types.
19031
19032 2009-10-03  Bruno Haible  <bruno@clisp.org>
19033
19034         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
19035         invocation to tests/configure.ac.
19036         Reported by Ian Beckwith <ianb@erislabs.net>.
19037
19038 2009-10-02  Eric Blake  <ebb9@byu.net>
19039
19040         fchdir: avoid compiler warning
19041         * lib/fchdir.c (canonicalize_file_name)
19042         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
19043
19044         test-open: support mingw errno values
19045         * tests/test-open.h (test_open): Relax test.
19046         * tests/test-fopen.h (test_fopen): Likewise.
19047         * tests/test-openat-safer.c (main): Likewise.
19048
19049         open: fix opening directory on mingw
19050         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
19051
19052         test-open: on GNU/Hurd, /dev/null is a directory
19053         * tests/test-fopen.h (main): Rename...
19054         (test_fopen): ...to this.  Use a guaranteed non-directory when
19055         confirming open behavior on trailing slash.
19056         * tests/test-openat-safer.c (main): Likewise.
19057         * tests/test-open.h (main): Likewise....
19058         (test_open): ...to this.
19059         * tests/test-fopen.c (main): Adjust caller.
19060         * tests/test-fopen-safer.c (main): Likewise.
19061         * tests/test-open.c (main): Likewise.
19062         * tests/test-fcntl-safer.c (main): Likewise.
19063         Reported by Samuel Thibault.
19064
19065         rename, fchdir: don't ignore chdir failure
19066         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
19067         * lib/rename.c (rpl_rename) [W32]: Likewise.
19068         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
19069         an empty destination directory if source cannot be renamed,
19070         although there is still possibility for failure.
19071         * doc/posix-functions/rename.texi (rename): Document the race.
19072         Reported by Jim Meyering.
19073
19074         maint: cleanup whitespace in recent commits
19075         * lib/rename.c (rpl_rename): Remove tabs.
19076         * tests/test-link.h (test_link): Likewise.
19077         * lib/fchdir.c (get_name): Likewise.
19078         Reported by Jim Meyering.
19079
19080 2009-10-02  Ben Pfaff  <blp@gnu.org>
19081
19082         relocatable-prog-wrapper: Add missing dependency on
19083         double-slash-root.
19084         * modules/relocatable-prog-wrapper: Add dependency.
19085         Reported by Ian Beckwith <ianb@erislabs.net>.
19086
19087 2009-10-02  Eric Blake  <ebb9@byu.net>
19088
19089         renameat: fix Solaris bugs
19090         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
19091         needed fixing.
19092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
19093         * modules/stdio (Makefile.am): Substitute it.
19094         * lib/stdio.in.h (renameat): Declare replacement.
19095         * lib/renameat.c (rpl_renameat): Implement fix.
19096
19097         renameat: new module
19098         * modules/renameat: New file.
19099         * lib/renameat.c (renameat): Likewise.
19100         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
19101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19102         * modules/stdio (Makefile.am): Substitute them.
19103         * lib/stdio.in.h (renameat): Declare it.
19104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19105         * doc/posix-functions/renameat.texi (renameat): Likewise.
19106         * modules/renameat-tests: New test.
19107         * tests/test-renameat.c: Likewise.
19108
19109         rename: fix mingw bugs
19110         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
19111         directory overwrite bugs.
19112
19113         rename: fix another cygwin 1.5 bug
19114         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
19115         checks.
19116         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
19117         unnecessary cygwin workarounds.  Also work around bug with moving
19118         full directory onto an empty one.
19119         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
19120
19121         rename-dest-slash: merge into rename module
19122         * modules/rename-dest-slash (Status): Mark obsolete.
19123         (Depends-on): Add rename.
19124         (Files): Let rename do it all.
19125         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
19126         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
19127         * m4/rename-dest-slash.m4: ...so this file can be deleted.
19128         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
19129         * lib/rename.c (rpl_rename): Update comments.
19130
19131         rename: fix cygwin 1.5.x bugs
19132         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
19133         * lib/rename.c (rpl_rename): Work around them.
19134         * modules/rename (Depends-on): Add same-inode.
19135
19136         rename: fix Solaris 10 bug
19137         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19138         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
19139         was the only bug.
19140
19141         rename: fix Solaris 9 bug
19142         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
19143         on non-directory.  Avoid calling exit.
19144         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
19145         strdup.
19146         * modules/rename-tests (Depends-on): Drop lstat.
19147         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
19148         (gl_PREREQ_RENAME): Delete unused macro.
19149
19150         rename-dest-slash: fix NetBSD bug
19151         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
19152         links.
19153         * modules/rename-dest-slash (Depends-on): Add same-inode.
19154
19155         rename-tests: new test, exposes several platform bugs
19156         * modules/rename-tests: New file.
19157         * tests/test-rename.h: Likewise.
19158         * tests/test-rename.c: Likewise.
19159         * doc/posix-functions/rename.texi (rename): Improve documentation,
19160         including bugs that will eventually be fixed in gnulib.
19161
19162 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
19163
19164         * lib/uname.c: Include <stdlib.h>
19165         (uname): Assume version info is available.
19166
19167 2009-10-02  Jim Meyering  <meyering@redhat.com>
19168
19169         gnu-web-doc-update: correct --help output
19170         * build-aux/gnu-web-doc-update: Make --help output relevant.
19171
19172         gnu-web-doc-update: add standard options
19173         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
19174
19175         gnu-web-doc-update: New module.
19176         Use this script to automatically update the on-line web documentation
19177         for your GNU project at http://www.gnu.org/software/$pkg/manual/
19178         * modules/gnu-web-doc-update: New file, from coreutils.
19179         * build-aux/gnu-web-doc-update: New script.
19180
19181 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
19182
19183         link: LoadLibrary is not needed.
19184         * lib/link.c: Use GetModuleHandle.
19185
19186 2009-10-01  Eric Blake  <ebb9@byu.net>
19187
19188         getopt: bump serial number
19189         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
19190         change.
19191
19192         tests: tighten link, rmdir, and remove tests
19193         * tests/test-link.h (includes): No need to use <config.h> here.
19194         Clean up if directory hard link was created, otherwise test for
19195         trailing '.'.
19196         * tests/test-linkat.c (main): Simplify.
19197         * tests/test-remove.c (main): Enhance test for trailing '.'.
19198         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19199
19200 2009-10-01  Jim Meyering  <meyering@redhat.com>
19201
19202         maint.mk: requiring "make major" was annoying, for a "minor" release.
19203         What is intended is "stable", to contrast with alpha and beta,
19204         so require "make stable", not "make major".
19205         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
19206         (get_tool_versions): Likewise.
19207         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
19208
19209 2009-09-30  Ben Pfaff  <blp@gnu.org>
19210
19211         Fix broken build of replacement for Windows tmpfile().
19212         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
19213         flags argument added along with the 'mkostemp' module.
19214
19215 2009-09-28  Bruno Haible  <bruno@clisp.org>
19216
19217         Avoid identifier clash with POSIX function 'remove' defined as a macro.
19218         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
19219         to 'remove_elt'.
19220         (gl_list_remove): Update.
19221         * lib/gl_list.c (gl_list_remove): Update.
19222         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
19223         to 'remove_elt'.
19224         (gl_oset_remove): Update.
19225         * lib/gl_list.c (gl_oset_remove): Update.
19226         Reported by Eric Blake.
19227
19228 2009-09-28  Eric Blake  <ebb9@byu.net>
19229
19230         doc: mention yet more cygwin 1.7 status
19231         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
19232         cygwin.
19233         * doc/glibc-functions/execvpe.texi (execvpe): New file.
19234         * doc/gnulib.texi (Glibc unistd.h): Mention it.
19235
19236         argp: fix test failure
19237         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
19238         that are not upper-case.  Pass correct range to tolower.
19239
19240 2009-09-27  Jim Meyering  <meyering@redhat.com>
19241
19242         test-yesno: work around sparc-dash here-document infelicity
19243         Without this change, the literal \177 byte in a here document
19244         would make dash 0.5.5.1-3 access uninitialized memory.
19245         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
19246         Instead, use a marker, "@", and filter through tr to create the desired
19247         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
19248
19249 2009-09-27  Bruno Haible  <bruno@clisp.org>
19250
19251         Disable untested support for new flavours of ACLs on AIX.
19252         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
19253         progress.
19254         * lib/set-mode-acl.c (qset_acl): Likewise.
19255
19256 2008-12-07  Bruno Haible  <bruno@clisp.org>
19257
19258         Add support for new flavours of ACLs on AIX. (Untested.)
19259         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
19260         (file_has_acl): Add support for newer AIX.
19261         * lib/set-mode-acl.c (qset_acl): Likewise.
19262         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
19263         Rainer Tammer <tammer@tammer.net>.
19264
19265 2009-09-26  Eric Blake  <ebb9@byu.net>
19266
19267         argp: fix compilation of getopt
19268         * lib/getopt.in.h (includes): Use different guard than glibc.
19269         Reported by Sergey Poznyakoff.
19270
19271         doc: mention more cygwin 1.7 status
19272         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
19273         bug.
19274         * doc/posix-functions/execl.texi (execl): Likewise.
19275         * doc/posix-functions/execle.texi (execle): Likewise.
19276         * doc/posix-functions/execlp.texi (execlp): Likewise.
19277         * doc/posix-functions/execv.texi (execv): Likewise.
19278         * doc/posix-functions/execve.texi (execve): Likewise.
19279         * doc/posix-functions/execvp.texi (execvp): Likewise.
19280         * doc/glibc-functions/canonicalize_file_name.texi
19281         (canonicalize_file_name): Cygwin 1.7 now provides this.
19282         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
19283         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
19284         on AT_SYMLINK_NOFOLLOW.
19285
19286 2009-09-24  Eric Blake  <ebb9@byu.net>
19287
19288         test-linkat: make test more robust
19289         * tests/test-linkat.c (main): Avoid collision with EEXIST.
19290
19291         getopt: fix inclusion guards for cygwin
19292         * modules/getopt-posix (Depends-on): Add include-next.
19293         (Makefile.am): Substitute more items in replacement header.
19294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
19295         <getopt.h>.
19296         * lib/getopt.in.h (includes): Use split inclusion guard, and
19297         prefer <getopt.h> over include <unistd.h> when one is present.
19298         (option): Also override name of 'struct option'.
19299
19300         same-inode: revert prior change; it is not yet ready
19301         * NEWS: Undo mention of this change.
19302         * lib/same-inode.h (same-inode.h): Undo tri-state change.
19303         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19304         * lib/cycle-check.c (cycle_check): Likewise.
19305         * lib/same.c (same_name): Likewise.
19306         * lib/at-func2.c (at_func2): Likewise.
19307
19308 2009-09-23  Eric Blake  <ebb9@byu.net>
19309
19310         linkat: new module
19311         * modules/linkat: New file.
19312         * lib/at-func2.c (at_func2): Likewise.
19313         * lib/linkat.c (linkat): Likewise.
19314         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19315         * lib/openat-priv.h (at_func2): Add declaration.
19316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19317         * modules/unistd (Makefile.am): Substitute them.
19318         * lib/unistd.in.h (linkat): Declare it.
19319         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19320         * doc/posix-functions/linkat.texi (linkat): Likewise.
19321         * doc/posix-functions/link.texi (link): Tweak wording.
19322         * tests/test-link.c (main): Move guts...
19323         * tests/test-link.h (test_link): ...into new file.
19324         * modules/linkat-tests: New test.
19325         * tests/test-linkat.c: Likewise.
19326         * modules/link-tests (Files): Ship new file.
19327         (Depends-on): Add stdbool.
19328
19329         dirname: add library-safe mdir_name
19330         * lib/dirname.h (mdir_name): New prototype.
19331         * lib/dirname.c (dir_name): Move guts...
19332         (mdir_name): ...to new function that avoids xalloc_die.
19333
19334         fchdir: another mingw fix
19335         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
19336         * lib/fchdir.c (get_name): New helper method; skips canonicalize
19337         on mingw (where it has not yet been ported), and make it optional
19338         elsewhere.
19339         (_gl_register_fd): Use it.
19340
19341         same-inode: make SAME_INODE tri-state, to port to mingw
19342         * NEWS: Mention this change.
19343         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
19344         st_ino always being 0.
19345         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
19346         * lib/cycle-check.c (cycle_check): Likewise.
19347         * lib/same.c (same_name): Likewise.
19348
19349         lstat: avoid mingw compilation error
19350         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
19351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
19352         lstat ourselves.
19353         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
19354         was adequate.
19355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
19356         the checks for lstat.
19357         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
19358
19359         link: fix test failure on Solaris 9
19360         * lib/link.c (rpl_link): Don't assume link will catch bogus
19361         trailing slash on source.
19362
19363         test-symlinkat: enhance test
19364         * tests/test-readlink.c (main): Move guts...
19365         * tests/test-readlink.h (test_readlink): ...into new file.
19366         * tests/test-symlink.c (main): Move guts...
19367         * tests/test-symlink.h (test_symlink): ...into new file.
19368         * tests/test-symlinkat.c (main): Use new files for further
19369         coverage.
19370         (do_symlink, do_readlink): New helper functions.
19371         * modules/symlink-tests (Files): Ship new file.
19372         (Depends-on): Add stdbool.
19373         * modules/readlink-tests (Files): Ship new file.
19374         (Depends-on): Add stdbool.
19375         * modules/symlinkat-tests (Files): Use new files.
19376
19377 2009-09-23  Eric Blake  <ebb9@byu.net>
19378
19379         readlink: document portability issue with symlink length
19380         * doc/posix-functions/lstat.texi (lstat): Mention that some file
19381         systems have bogus st_size on symlinks, and mention the
19382         areadlink-with-size module.
19383         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
19384         * doc/posix-functions/readlink.texi (readlink): Mention the
19385         areadlink module, and ERANGE failure.
19386         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19387         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
19388
19389         readlink: fix Solaris 9 bug with trailing slash
19390         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
19391         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
19392         * doc/posix-functions/readlink.texi (readlink): Document this.
19393         * modules/readlink-tests: New test.
19394         * tests/test-readlink.c: Likewise.
19395
19396         readlink: fix cygwin 1.5.x bug with return type
19397         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
19398         * lib/unistd.in.h (readlink): Use ssize_t.
19399         * lib/readlink.c (readlink): Likewise.
19400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19401         * modules/unistd (Makefile.am): Substitute it.
19402         * lib/unistd.in.h (readlink): Declare replacement.
19403         * doc/posix-functions/readlink.texi (readlink): Document this.
19404
19405         symlink: use throughout gnulib
19406         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
19407         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
19408         symlink is not used.
19409         * modules/symlinkat (Depends-on): Add symlink.
19410         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19411         * modules/canonicalize-tests (Depends-on): Likewise.
19412         * modules/lstat-tests (Depends-on): Likewise.
19413         * modules/openat-tests (Depends-on): Likewise.
19414         * modules/remove-tests (Depends-on): Likewise.
19415         * modules/rmdir-tests (Depends-on): Likewise.
19416         * modules/unlink-tests (Depends-on): Likewise.
19417         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
19418         * tests/test-canonicalize.c (symlink): Likewise.
19419         * tests/test-fstatat.c (symlink): Likewise.
19420         * tests/test-lstat.c (symlink): Likewise.
19421         * tests/test-remove.c (symlink): Likewise.
19422         * tests/test-rmdir.c (symlink): Likewise.
19423         * tests/test-unlink.c (symlink): Likewise.
19424         * tests/test-unlinkat.c (symlink): Likewise.
19425
19426         symlink: new module, for Solaris 9 bug
19427         * modules/symlink: New file.
19428         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19429         * lib/symlink.c: Likewise.
19430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
19431         * modules/unistd (Makefile.am): Substitute them.
19432         * lib/unistd.in.h (symlink): Declare replacement.
19433         * MODULES.html.sh (File system functions): Mention it.
19434         * doc/posix-functions/symlink.texi (symlink): Likewise.
19435         * modules/symlink-tests: New test.
19436         * tests/test-symlink.c: Likewise.
19437
19438 2009-09-23  Bruno Haible  <bruno@clisp.org>
19439
19440         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
19441         when needed.
19442         Test case: gnulib-tool --import --with-tests atexit inttypes.
19443         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
19444
19445 2009-09-23  Bruno Haible  <bruno@clisp.org>
19446
19447         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
19448         subcommand, not in a subshell.
19449
19450 2009-09-22  Eric Blake  <ebb9@byu.net>
19451
19452         unistd: sort replacement declarations
19453         * lib/unistd.in.h: Sort declarations.
19454
19455         open, openat: minor optimization
19456         * lib/open.c (open): If open succeeded, len is non-zero.
19457         * lib/openat.c (rpl_openat): Likewise.
19458
19459         link-follow: ensure correct result
19460         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
19461         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
19462         distinguish between possible failures.
19463
19464 2009-09-21  Eric Blake  <ebb9@byu.net>
19465
19466         fts: avoid compiler warning
19467         * lib/fts.c (dirent_inode_sort_may_be_useful)
19468         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
19469
19470 2009-09-19  Bruno Haible  <bruno@clisp.org>
19471
19472         * lib/progreloc.c (canonicalize_file_name): New declaration.
19473
19474 2009-09-19  Eric Blake  <ebb9@byu.net>
19475
19476         link: fix quoting
19477         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
19478
19479         openat: fix openat bugs on Solaris 9
19480         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
19481         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
19482         * modules/openat (Depends-on): Add open.
19483         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
19484         * modules/fcntl-h (Makefile.am): Substitute it.
19485         * lib/fcntl.in.h (openat): Declare replacement.
19486         * doc/posix-functions/openat.texi (openat): Document this.
19487
19488         openat: move fstatat and unlinkat into correct files
19489         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
19490         compiled.
19491         * lib/openat.c (fstatat, unlinkat): Move...
19492         * lib/fstatat.c (fstatat): ...into correct files.
19493         * lib/unlinkat.c (unlinkat): Likewise.
19494
19495         openat: fix unlinkat bugs on Solaris 9
19496         * lib/unlinkat.c (unlinkat): New file.
19497         * modules/openat (Depends-on): Add unlink.
19498         (Files): Distribute it.
19499         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
19500         trailing slash behavior is broken.
19501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19502         * modules/unistd (Makefile.am): Substitute it.
19503         * lib/unistd.in.h (unlinkat): Declare replacement.
19504         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
19505
19506         openat: fix fstatat bugs on Solaris 9
19507         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
19508         stat.
19509         * doc/posix-functions/fstatat.texi (fstatat): Document this.
19510
19511         test-unlinkat: enhance test, to expose Solaris 9 bug
19512         * tests/test-unlink.c (main): Factor guts...
19513         * tests/test-unlink.h (test_rmdir_func): ...into new file.
19514         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
19515         * tests/test-rmdir.c (main): Adjust caller.
19516         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
19517         (unlinker): New helper function.
19518         (rmdirat): Enhance check.
19519         * modules/rmdir-tests (Depends-on): Add stdbool.
19520         * modules/unlink-tests (Depends-on): Likewise.
19521         (Files): Add test-unlink.h.
19522         * modules/openat-tests (Files): Likewise.
19523         (Depends-on): Add unlinkdir.
19524
19525         test-fstatat: new test, to expose Solaris 9 bugs
19526         * tests/test-stat.c (main): Factor guts...
19527         * tests/test-stat.h (test_stat_func): ...into new file.
19528         * tests/test-lstat.c (main): Factor guts...
19529         * tests/test-lstat.h (test_lstat_func): ...into new file.
19530         * tests/test-fstatat.c: New file.
19531         * modules/stat-tests (Files): Add test-stat.h.
19532         * modules/lstat-tests (Files): Add test-lstat.h.
19533         (Depends-on): Add stdbool.
19534         * modules/openat-tests (Depends-on): Add pathmax.
19535         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
19536         (Makefile.am): Run new test.
19537
19538         remove: new module, for mingw and Solaris 9 bugs
19539         * modules/remove: New file.
19540         * lib/remove.c: Likewise.
19541         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
19542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
19543         * modules/stdio (Makefile.am): Use them.
19544         * lib/stdio.in.h (remove): Declare replacement.
19545         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19546         * doc/posix-functions/remove.texi (remove): Likewise.
19547         * modules/remove-tests: New test.
19548         * tests/test-remove.c: Likewise.
19549
19550         unlink: new module, for Solaris 9 bug
19551         * modules/unlink: New file.
19552         * lib/unlink.c: Likewise.
19553         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19555         * modules/unistd (Makefile.am): Use them.
19556         * lib/unistd.in.h (stat): Declare replacement.
19557         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19558         * doc/posix-functions/unlink.texi (unlink): Likewise.
19559         * modules/unlink-tests: New test.
19560         * tests/test-unlink.c: Likewise.
19561
19562         lstat: fix Solaris 9 bug
19563         * lib/lstat.c (lstat): Also check for trailing slash on
19564         non-symlink, non-directories.  Use stat module to simplify logic.
19565         * doc/posix-functions/lstat.texi (lstat): Document it.
19566         * modules/lstat-tests (Depends-on): Add errno, same-inode.
19567         (configure.ac): Check for symlink.
19568         * tests/test-lstat.c (main): Add more tests.
19569
19570         stat: add as dependency to other modules
19571         * modules/chown (Depends-on): Add stat.
19572         * modules/euidaccess (Depends-on): Likewise.
19573         * modules/fchdir (Depends-on): Likewise.
19574         * modules/isdir (Depends-on): Likewise.
19575         * modules/link (Depends-on): Likewise.
19576         * modules/lstat (Depends-on): Likewise.
19577         * modules/mkdir-p (Depends-on): Likewise.
19578         * modules/modechange (Depends-on): Likewise.
19579         * modules/open (Depends-on): Likewise.
19580         * modules/readlink (Depends-on): Likewise.
19581         * modules/same (Depends-on): Likewise.
19582
19583         stat: fix Solaris 9 bug
19584         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
19585         slash.
19586         * lib/stat.c (rpl_stat): Work around it.
19587         * doc/posix-functions/stat.texi (stat): Update documentation.
19588
19589         stat: new module, for mingw bug
19590         * modules/stat: New file.
19591         * lib/stat.c: Likewise.
19592         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19594         * modules/sys_stat (Makefile.am): Use them.
19595         * lib/sys_stat.in.h (stat): Declare replacement.
19596         * lib/openat.c (fstatat): Deal with lstat and stat being function
19597         macros.
19598         * modules/openat (Depends-on): Add inline.
19599         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19600         * doc/posix-functions/stat.texi (stat): Likewise.
19601         * modules/stat-tests: New test.
19602         * tests/test-stat.c: Likewise.
19603
19604 2009-09-19  Jim Meyering  <meyering@redhat.com>
19605
19606         syntax-check: detect unnecessary inclusion of canonicalize.h
19607         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
19608
19609 2009-09-19  Eric Blake  <ebb9@byu.net>
19610
19611         canonicalize-lgpl: adjust clients to use correct header
19612         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19613         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
19614         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
19615         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
19616         * lib/progreloc.c (includes): Likewise.
19617
19618 2009-09-19  Jim Meyering  <meyering@redhat.com>
19619
19620         test-posixtm.c: correct a comment
19621         * tests/test-posixtm.c: Correct first-line comment.
19622         Spotted by Eric Blake.
19623
19624 2009-09-16  Jim Meyering  <meyering@redhat.com>
19625
19626         posixtm-tests: make T const-correct; add a test case
19627         * tests/test-posixtm.c (T): Declare const.
19628         Add a test for -(2^31+1).
19629         Remove useless can-succeed-only-in-2002 test.
19630
19631         posixtm-tests: adjust the sole failing test
19632         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
19633         expected output matches what mktime now produces.  Cross-checked via
19634         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
19635
19636         posixtm: move #ifdef'd tests into a new module
19637         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
19638         * tests/test-posixtm.c: ... this new file.
19639         * modules/posixtm-tests: New module.
19640
19641 2009-09-19  Eric Blake  <ebb9@byu.net>
19642
19643         openat: simplify use of at-func.c
19644         * lib/at-func.c (includes): Include prerequisites here, to
19645         simplify requirements on client files.
19646         * lib/openat-priv.h: Add double-inclusion guard.
19647         * lib/faccessat.c (includes): Simplify.
19648         * lib/fchmodat.c (includes): Likewise.
19649         * lib/fchownat.c (includes): Likewise.
19650         * lib/mkdirat.c (includes): Likewise.
19651         * lib/mkfifoat.c (includes): Likewise.
19652         * lib/symlinkat.c (includes): Likewise.
19653
19654         openat: allow return of fd 0
19655         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
19656         * modules/save-cwd (Depends-on): Replace fcntl-safer with
19657         unistd-safer.
19658         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
19659         <fcntl.h>; this module does not leak fds.
19660         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
19661         must be allowed to return 0, leaving openat_safer to add the
19662         safety.
19663         (openat_permissive): Avoid writing to just-opened fd 2 if
19664         restoring the current directory fails.
19665         * lib/openat-die.c (openat_restore_fail): Add comment.
19666         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
19667         (save_cwd): Guarantee safe fd, but without use of open_safer.
19668         * tests/test-openat.c: New test.
19669         * modules/openat-tests (Files, Makefile.am): Distribute and build
19670         new file.
19671
19672         relocatable-prog-wrapper: fix build
19673         * modules/relocatable-prog-wrapper (Files): Update name of
19674         canonicalize m4 file, broken on 2009-09-17.
19675         Reported by emad hajjar <aleppos@hotmail.com>.
19676
19677 2009-09-19  Bruno Haible  <bruno@clisp.org>
19678
19679         * lib/safe-alloc.h: Use the standard header with GPL copyright.
19680         * lib/safe-alloc.c: Likewise.
19681         Reported by Ian Beckwith <ianb@erislabs.net>.
19682
19683 2009-09-18  Bruno Haible  <bruno@clisp.org>
19684
19685         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
19686         Reported by <erobles@sensacd.com.mx>.
19687
19688 2009-09-17  Eric Blake  <ebb9@byu.net>
19689
19690         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
19691         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
19692         slashes when checking if last component is missing.
19693         * tests/test-canonicalize.c (main): Test this.
19694
19695         canonicalize, canonicalize-lgpl: honor // if distinct from /
19696         * modules/canonicalize (Files): Add double-slash-root.m4.
19697         * modules/canonicalize-lgpl (Files): Likewise.
19698         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
19699         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
19700         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
19701         fallback definition.
19702         (canonicalize_filename_mode): Use it to protect //.
19703         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
19704         (__realpath): Likewise.
19705         * tests/test-canonicalize.c (main): Test this.
19706         * tests/test-canonicalize-lgpl.c (main): Likewise.
19707         * modules/canonicalize-tests (Depends-on): Add same-inode.
19708         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19709
19710         canonicalize-lgpl: fix glibc bug with trailing slash
19711         * m4/canonicalize-lgpl.m4: Move contents...
19712         * m4/canonicalize.m4: ...here.
19713         (gl_CANONICALIZE_LGPL): Factor realpath check...
19714         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
19715         glibc 2.3.5 bug, fixed 2005-04-27.
19716         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
19717         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
19718         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
19719         * modules/canonicalize-lgpl (Files): Manage file rename.
19720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19721         * modules/stdlib (Makefile.am): Substitute witness.
19722         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
19723         is needed.
19724         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
19725         replacement is required.
19726         * lib/canonicalize.c (canonicalize_file_name): Likewise.
19727         * doc/glibc-functions/canonicalize_file_name.texi
19728         (canonicalize_file_name): Document this.
19729         * doc/posix-functions/realpath.texi (realpath): Likewise.
19730
19731         canonicalize-lgpl: reject non-directory with trailing slash
19732         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
19733         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
19734         catches failures in glibc 2.3.5.
19735         * tests/test-canonicalize.c (main): Likewise.
19736
19737         canonicalize-lgpl: use native realpath if it works
19738         * lib/canonicalize-lgpl.c (realpath): Guard with
19739         FUNC_REALPATH_WORKS.
19740         * lib/stdlib.in.h (realpath): Make declaration optional based on
19741         HAVE_REALPATH.
19742         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
19743         native realpath works.
19744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
19745         * modules/stdlib (Makefile.am): Substitute witness.
19746
19747         canonicalize, canonicalize-lgpl: use <stdlib.h>
19748         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
19749         (Include): Mention <stdlib.h>.
19750         (configure.ac): Mention functions we provide.
19751         * modules/canonicalize (configure.ac): Likewise.
19752         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
19753         realpath if canonicalize_file_name is missing.
19754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
19755         * modules/stdlib (Makefile.am): Substitute witnesses.
19756         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
19757         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
19758         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
19759         * NEWS: Document this.
19760         * doc/glibc-functions/canonicalize_file_name.texi
19761         (canonicalize_file_name): Likewise.
19762         * doc/posix-functions/realpath.texi (realpath): Likewise.
19763         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
19764
19765         test-canonicalize: consolidate into single C program
19766         * tests/test-canonicalize.sh: Delete; move setup into...
19767         * tests/test-canonicalize.c (main): ...the program, making it
19768         easier to run in debugger.  Add some tests.
19769         * modules/canonicalize-tests (Files): Remove unused file.
19770         (Depends-on): Add progname.
19771         (configure.ac, Makefile.am): Simplify.
19772
19773         test-canonicalize-lgpl: consolidate into single C program
19774         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
19775         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
19776         easier to run in debugger.  Add some tests.
19777         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
19778         (configure.ac, Makefile.am): Simplify.
19779
19780         canonicalize: avoid resolvepath
19781         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
19782         unnecessary checks.
19783         * lib/canonicalize.c (includes): Simplify.
19784         (canonicalize_file_name): Drop resolvepath implementation.
19785         * modules/canonicalize (Depends-on): Drop filenamecat.
19786
19787         canonicalize: don't lose errno
19788         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
19789         over calls to free.
19790
19791         canonicalize: simplify errno handling
19792         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
19793         assignment.
19794
19795         canonicalize, canonicalize-lgpl: update module dependencies
19796         * modules/canonicalize (Depends-on): Add extensions, lstat,
19797         pathmax, stdlib.
19798         (Files): Drop pathmax.h.
19799         (configure.ac): Adjust macro name.
19800         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
19801         lstat, stdlib, sys_stat.
19802         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
19803         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
19804         extensions.
19805         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
19806         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
19807         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
19808         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
19809         declaration, if available.
19810         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
19811         we can rely on the readlink module.
19812         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
19813         (includes): Use <unistd.h> unconditionally.
19814
19815 2009-09-17  Eric Blake  <ebb9@byu.net>
19816
19817         maint: make Include sections of modules consistent
19818         * modules/alloca: Use only header name; no need to list #include.
19819         * modules/alloca-opt: Likewise.
19820         * modules/arpa_inet: Likewise.
19821         * modules/canon-host: Likewise.
19822         * modules/configmake: Likewise.
19823         * modules/dirent: Likewise.
19824         * modules/eealloc: Likewise.
19825         * modules/environ: Likewise.
19826         * modules/fchdir: Likewise.
19827         * modules/fcntl: Likewise.
19828         * modules/fcntl-h: Likewise.
19829         * modules/gethrxtime: Likewise.
19830         * modules/gettime: Likewise.
19831         * modules/ignore-value: Likewise.
19832         * modules/inet_ntop: Likewise.
19833         * modules/inet_pton: Likewise.
19834         * modules/inttypes: Likewise.
19835         * modules/isnand-nolibm: Likewise.
19836         * modules/isnanf-nolibm: Likewise.
19837         * modules/mbchar: Likewise.
19838         * modules/mbfile: Likewise.
19839         * modules/mbiter: Likewise.
19840         * modules/mbuiter: Likewise.
19841         * modules/netdb: Likewise.
19842         * modules/netinet_in: Likewise.
19843         * modules/nproc: Likewise.
19844         * modules/pagealign_alloc: Likewise.
19845         * modules/poll: Likewise.
19846         * modules/printf-frexp: Likewise.
19847         * modules/pthread: Likewise.
19848         * modules/putenv: Likewise.
19849         * modules/random_r: Likewise.
19850         * modules/relocatable-prog: Likewise.
19851         * modules/search: Likewise.
19852         * modules/select: Likewise.
19853         * modules/selinux-h: Likewise.
19854         * modules/settime: Likewise.
19855         * modules/signal: Likewise.
19856         * modules/size_max: Likewise.
19857         * modules/socklen: Likewise.
19858         * modules/ssize_t: Likewise.
19859         * modules/stdarg: Likewise.
19860         * modules/stdbool: Likewise.
19861         * modules/stddef: Likewise.
19862         * modules/stdint: Likewise.
19863         * modules/stdio: Likewise.
19864         * modules/stdlib: Likewise.
19865         * modules/string: Likewise.
19866         * modules/strings: Likewise.
19867         * modules/sys_file: Likewise.
19868         * modules/sys_ioctl: Likewise.
19869         * modules/sys_select: Likewise.
19870         * modules/sys_socket: Likewise.
19871         * modules/sys_stat: Likewise.
19872         * modules/sys_time: Likewise.
19873         * modules/sys_times: Likewise.
19874         * modules/sys_utsname: Likewise.
19875         * modules/sys_wait: Likewise.
19876         * modules/sysexits: Likewise.
19877         * modules/time: Likewise.
19878         * modules/times: Likewise.
19879         * modules/tmpfile: Likewise.
19880         * modules/trim: Likewise.
19881         * modules/unistd: Likewise.
19882         * modules/wchar: Likewise.
19883         * modules/wctype: Likewise.
19884
19885 2009-09-17  Bruno Haible  <bruno@clisp.org>
19886
19887         Make getdate.y compile on QNX and NetBSD 5 / i386.
19888         * m4/getdate.m4 (gl_GETDATE): Conditionally define
19889         TIME_T_FITS_IN_LONG_INT.
19890         * lib/getdate.y (long_time_t): New type.
19891         (relative_time): Change type of 'seconds' field to long_time_t.
19892         (get_date): Update types of local variables. Check against overflow
19893         during conversion from long_time_t to time_t.
19894         Reported by Matt Kraai <kraai@ftbfs.org>
19895         and Hasso Tepper <hasso@netbsd.org>.
19896
19897 2009-09-17  Bruno Haible  <bruno@clisp.org>
19898
19899         * modules/COPYING: Update copyright years.
19900         * modules/README: Likeiwse.
19901         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
19902         Reported by Ian Beckwith <ianb@erislabs.net>.
19903
19904 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19905
19906         * users.txt: Update references for gnuit package.
19907
19908 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
19909
19910         * m4/getdelim.m4: Fix typo in copyright line.
19911
19912 2009-09-17  Bruno Haible  <bruno@clisp.org>
19913
19914         * lib/atoll.c: Use the standard header with GPL copyright.
19915         * lib/argz.in.h: Likewise.
19916         * lib/glob.c: Likewise.
19917         * lib/glob-libc.h: Likewise.
19918         * lib/random_r.c: Likewise.
19919         * lib/siglist.h: Likewise.
19920         * lib/strsignal.c: Likewise.
19921         Reported by Ian Beckwith <ianb@erislabs.net>.
19922
19923 2009-09-17  Eric Blake  <ebb9@byu.net>
19924
19925         rmdir: ensure correct dependency order
19926         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
19927
19928 2009-09-17  Bruno Haible  <bruno@clisp.org>
19929
19930         Disable assertion that fails on NetBSD 5 / i386.
19931         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
19932         Reported by Sam Steingold <sds@gnu.org>
19933         and Hasso Tepper <hasso@netbsd.org>.
19934
19935 2009-09-16  Eric Blake  <ebb9@byu.net>
19936
19937         unlinkdir: port to mingw
19938         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
19939         on which no one can unlink a directory.
19940
19941         stdlib: sort witness names
19942         * modules/stdlib (Makefile.am): Sort replacements.
19943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19944         * lib/stdlib.in.h: Likewise.
19945
19946         parse-duration-tests: avoid link failure
19947         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
19948         LIBINTL.
19949         Reported by Tom G. Christensen.
19950
19951         openat-tests: ensure unlinkat behaves like rmdir
19952         * tests/test-rmdir.c (main): Factor guts...
19953         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
19954         * modules/rmdir-tests (Files): Ship new file.
19955         * modules/openat-tests: New test.
19956         * tests/test-unlinkat.c: Likewise.
19957
19958         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
19959         * modules/rmdir-errno (Status, Notice): Now obsolete.
19960
19961         rmdir: work around cygwin 1.5.x and mingw bugs
19962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
19963         * lib/rmdir.c (rmdir): Work around it.
19964         * modules/rmdir (Status, Notice): No longer obsolete.
19965         (Files): Add dos.m4.
19966         (Depends-on): Add unistd.
19967         (configure.ac): Set witnesses.
19968         (License): Relax to LGPLv2+.
19969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
19970         * modules/unistd (Makefile.am): Substitute witnesses.
19971         * lib/unistd.in.h (rmdir): Declare replacement.
19972         * doc/posix-functions/rmdir.texi (rmdir): Document this.
19973         * modules/rmdir-tests: New tests.
19974         * tests/test-rmdir.c: Likewise.
19975
19976 2009-09-15  Eric Blake  <ebb9@byu.net>
19977
19978         fchdir: improve use of replacement functions
19979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
19980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
19981         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
19982         REPLACE_CLOSEDIR.
19983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
19984         * modules/sys_stat (Makefile.am): Substitute correct witness.
19985         * modules/dirent (Makefile.am): Likewise.
19986         * modules/unistd (Makefile.am): Likewise.
19987         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
19988         * lib/unistd.in.h (dup): Likewise.
19989         * lib/sys_stat.in.h (fstat): Likewise.
19990
19991         maint: ignore gnulib-tool temp files
19992         * .gitignore: Ignore files created during gnulib-tool --test.
19993
19994 2009-09-13  Jim Meyering  <meyering@redhat.com>
19995
19996         posixtm: don't reject a time that specify "60" as the number of seconds
19997         * lib/posixtm.c (posixtime): The code to reject invalid dates
19998         would also reject a time specified with the .60 suffix.
19999         But POSIX allows that, in order to accommodate leap seconds.
20000         So don't reject it.
20001         (main): Adjust tests accordingly.
20002         * modules/posixtm (Depends-on): Add stpcpy.
20003
20004 2009-09-11  Jim Meyering  <meyering@redhat.com>
20005
20006         announce-gen: include [$release_type] in emitted Subject:
20007         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
20008         e.g., [stable] in the emitted Subject: line.
20009
20010 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20011
20012         Remove obsolete macros from several modules.
20013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
20014         obsolete Autoconf macros with their modern counterparts.
20015         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
20016         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
20017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
20018         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20019         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
20020         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20022         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20023         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20024         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
20025         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20027         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20028         * m4/sockets.m4 (gl_SOCKETS): Likewise.
20029         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
20030         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
20031         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
20032         * m4/time_r.m4 (gl_TIME_R): Likewise.
20033         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20034         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
20035         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
20036
20037         Fix copyright header in build-aux scripts.
20038         * build-aux/git-version-gen: Fix copyright header to match GPLv3
20039         recommendation.
20040         * build-aux/ncftpput-ftp: Likewise.
20041         * build-aux/update-copyright: Likewise.
20042
20043 2009-09-09  Eric Blake  <ebb9@byu.net>
20044
20045         test-link: allow Linux choice of errno
20046         * tests/test-link.c (main): Relax test for alternate error.
20047
20048         strndup: fix improper m4 caching
20049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
20050         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
20051         (gl_PREREQ_STRNDUP): Delete.
20052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
20053         * modules/string (Makefile.am): Substitute it.
20054         * lib/string.in.h (strndup): Modernize prototype.
20055
20056         getcwd: port to mingw
20057         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
20058         different from the POSIX assumptions made throughout the getcwd
20059         module; fortunately, the mingw getcwd does not need replacement.
20060         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
20061         * modules/getcwd-tests: New test.
20062         * tests/test-getcwd.c: Likewise.
20063
20064         link: fix platform bugs
20065         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
20066         * lib/link.c (link): Work around them.  Fix related mingw bug.
20067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
20068         * modules/unistd (Makefile.am): Substitute it.
20069         * lib/unistd.in.h (link): Declare replacement.
20070         * doc/posix-functions/link.texi (link): Document this.
20071         * modules/link (Depends-on): Add strdup-posix, sys_stat.
20072
20073         test-link: consolidate into single C program, test more cases
20074         * tests/test-link.sh: Delete.
20075         * tests/test-link.c: Test more error conditions.  Exposes bugs on
20076         at least Cygwin and Solaris.
20077         * modules/link-tests (Files): Remove unused file.
20078         (Depends-on): Add errno, sys_stat.
20079         (Makefile.am): Simplify.
20080
20081 2009-09-08  Bruno Haible  <bruno@clisp.org>
20082
20083         Work around towlower, towupper bug on mingw.
20084         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
20085         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
20086         * doc/posix-functions/towlower.texi: Mention the mingw bug.
20087         * doc/posix-functions/towupper.texi: Likewise.
20088         Reported by Eric Blake.
20089
20090 2009-09-08  Jim Meyering  <meyering@redhat.com>
20091
20092         build: don't try to run autoheader if we don't use it
20093         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
20094         is not used in configure.ac.
20095
20096 2009-09-08  Eric Blake  <ebb9@byu.net>
20097
20098         euidaccess: fix compilation error
20099         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
20100
20101         rawmemchr: relax license
20102         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
20103         okay.
20104         Reported by Jim Meyering.
20105
20106         mkfifoat: new module
20107         * modules/mkfifoat: New file.
20108         * lib/mkfifoat.c: Likewise.
20109         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
20110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20111         * modules/sys_stat (Makefile.am): Use them.
20112         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
20113         * MODULES.html.sh (File system functions): Mention module.
20114         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20115         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20116         * modules/mkfifoat-tests: New test.
20117         * tests/test-mkfifoat.c: Likewise.
20118
20119         strchrnul: relax license
20120         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
20121         okay.
20122         Reported by Jim Meyering.
20123
20124 2009-09-08  Eric Blake  <ebb9@byu.net>
20125
20126         fstatat: fix compilation on Solaris
20127         * lib/fstatat.c (includes): Add fcntl.h.
20128         Reported by Pádraig Brady.
20129
20130 2009-09-07  Eric Blake  <ebb9@byu.net>
20131
20132         rename: modernize replacement
20133         * modules/rename (Depends-on): Add stdio.
20134         (configure.ac): Declare witness.
20135         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
20136         stdio take care of replacement.
20137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20138         * modules/stdio (Makefile.am): Substitute them.
20139         * lib/stdio.in.h (rename): Declare replacement.
20140         * lib/rename.c (includes): Allow cross-compilation to non-windows
20141         machines.
20142         * doc/posix-functions/rename.texi (rename): Improve
20143         documentation.
20144
20145         stdio: sort witness names
20146         * modules/stdio (Makefile.am): Sort replacements.
20147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20148         * lib/stdio.in.h: Likewise.
20149
20150         getcwd: minor cleanups
20151         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
20152         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
20153
20154         openat: provide more convenience names
20155         * modules/faccessat (configure.ac): Add C witness.
20156         * lib/unistd.in.h (readlinkat): Fix typo.
20157         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
20158         convenience wrappers.
20159         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
20160         wrappers in syntax checks.
20161
20162 2009-09-06  Eric Blake  <ebb9@byu.net>
20163
20164         doc: fix comments in recent patches
20165         * lib/faccessat.c: Mention correct function.
20166         * lib/fchmodat.c: Likewise.
20167         * lib/fchownat.c: Likewise.
20168         * lib/symlinkat.c: Likewise.
20169         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
20170         constants.
20171
20172         faccessat, symlinkat: continue cleanup of previous patch
20173         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
20174         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20175         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
20176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
20177         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
20178         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
20179         set.
20180
20181 2009-09-06  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
20184         (fstatat): Declare if GNULIB_FSTATAT is set.
20185         (mkdirat): Declare if GNULIB_MKDIRAT is set.
20186         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
20187         (unlinkat): Declare if GNULIB_UNLINKAT is set.
20188         * modules/fcntl-h (Files): Remove m4/openat.m4.
20189         * modules/sys_stat (Files): Remove m4/openat.m4.
20190         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
20191         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
20192         * modules/unistd (Files): Remove m4/openat.m4.
20193         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
20194         GNULIB_OPENAT.
20195         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
20196         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
20197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20198         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
20199         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
20200         gl_OPENAT_DEFAULTS.
20201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
20202         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
20203         Don't require gl_OPENAT_DEFAULTS.
20204         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
20205         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
20206         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
20207         (gl_OPENAT_DEFAULTS): Remove macro.
20208
20209 2009-09-06  Bruno Haible  <bruno@clisp.org>
20210
20211         * modules/openat (configure.ac): Remove unneeded witness.
20212
20213 2009-09-06  Bruno Haible  <bruno@clisp.org>
20214
20215         Set errno to ENOSYS when a function is entirely unsupported.
20216         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
20217         EOPNOTSUPP.
20218         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20219         * modules/chown (Depends-on): Remove errno.
20220
20221 2009-09-06  Bruno Haible  <bruno@clisp.org>
20222
20223         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
20224
20225 2009-09-06  Bruno Haible  <bruno@clisp.org>
20226
20227         * lib/sys_stat.in.h: Fix preprocessor command indentation.
20228
20229 2009-09-06  Ben Pfaff  <blp@gnu.org>
20230             Bruno Haible  <bruno@clisp.org>
20231
20232         Work around a glibc bug in strtok_r.
20233         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
20234         Undefine if UNDEFINE_STRTOK_R is set.
20235         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
20236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20237         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
20238         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
20239         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
20240         UNDEFINE_STRTOK_R.
20241         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
20242
20243 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20244
20245         exclude: minor fix
20246         * lib/exclude.c: Include wctype.h
20247
20248 2009-09-06  Akim Demaille  <demaille@gostai.com>
20249
20250         bootstrap: improve error message
20251         * build-aux/bootstrap (find_tool): Upon failure, report the list
20252         of candidates.
20253         Honor the initial value of the envvar.
20254
20255 2009-09-05  Eric Blake  <ebb9@byu.net>
20256
20257         symlinkat: new module
20258         * modules/symlinkat: New file.
20259         * lib/symlinkat.c: Likewise.
20260         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20262         * modules/unistd (Makefile.am): Use them.
20263         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
20264         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
20265         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
20266         * MODULES.html.sh (File system functions): Mention module.
20267         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20268         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20269         * modules/symlinkat-tests: New test.
20270         * tests/test-symlinkat.c: Likewise.
20271
20272         test-openat-safer: add more checks
20273         * tests/test-openat-safer.c (main): Check more code paths.
20274
20275 2009-09-05  Jim Meyering  <meyering@redhat.com>
20276
20277         syntax-check: detect unnecessary inclusion of openat.h
20278         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
20279
20280 2009-09-05  Bruno Haible  <bruno@clisp.org>
20281
20282         Support towlower, towupper.
20283         * doc/posix-functions/towlower.texi: Mention module wctype.
20284         * doc/posix-functions/towupper.texi: Likewise.
20285         * lib/wctype.in.h (towlower, towupper): New functions.
20286         * tests/test-wctype.c: Include stdio.h, stdlib.h.
20287         (ASSERT): New macro.
20288         (e): New variable.
20289         (main): Test also towlower, towupper. Test WEOF argument.
20290         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20291
20292 2009-09-05  Bruno Haible  <bruno@clisp.org>
20293
20294         Fix conversion behaviour when the input is invalid.
20295         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
20296         mark occurring in first pass of indirect conversion.
20297         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
20298         input.
20299         Found by clang's static analyzer.
20300
20301 2009-09-05  Bruno Haible  <bruno@clisp.org>
20302
20303         * tests/test-striconveh.c (main): Test indirect conversion on platforms
20304         where direct conversion is possible.
20305
20306 2009-09-04  Eric Blake  <ebb9@byu.net>
20307
20308         openat: fail with ENOENT on empty name
20309         * lib/openat-proc.c (openat_proc_name): Special-case the empty
20310         buffer.
20311
20312         link-follow: fix logic bug in prior patch
20313         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
20314         reversed sense of yes and no in prior patch.  Avoid confusing
20315         compilation failure with desired semantics.
20316
20317         link-follow: accomodate mingw and cross-compilation
20318         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
20319         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
20320         cross-compilation results to -1, to make linkat easier to
20321         implement when cross-compiling.  Trivially support mingw.
20322         * modules/link-follow (configure.ac): Call new name.
20323         * NEWS: Mention this.
20324
20325 2009-09-03  Eric Blake  <ebb9@byu.net>
20326
20327         faccessat: compile replacement
20328         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
20329         needed.
20330
20331         fts: fix compilation error
20332         * lib/fts.c (includes): Re-add "openat.h", for
20333         openat_needs_fchdir.
20334
20335         faccessat: new module
20336         * modules/faccessat: New file.
20337         * lib/faccessat.c: Likewise.
20338         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
20339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20340         * modules/unistd (Makefile.am): Use it.
20341         * lib/unistd.in.h (faccessat): Declare it.
20342         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
20343         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
20344         * MODULES.html.sh (File system functions): Mention it.
20345         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
20346         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20347
20348         euidaccess: prefer POSIX over non-standard implementation
20349         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
20350         * lib/euidaccess.c (euidaccess): Use it if available.
20351
20352         openat: make template easier to use
20353         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
20354         AT_FUNC_F2 to be undefined.
20355         (VALIDATE_FLAG): New macro; use it to reject bad flags.
20356         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
20357         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
20358         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
20359         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
20360         Likewise.
20361         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
20362         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
20363         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
20364         Likewise.
20365
20366         openat: declare in POSIX headers
20367         * NEWS: Mention this.
20368         * modules/openat (configure.ac): Declare witnesses.
20369         (Depends-on): Add fcntl-h, sys_stat, unistd.
20370         (Include): Mention correct headers.
20371         * modules/fcntl-h (Depends-on): Add link-warning.
20372         (Files): Add openat.m4.
20373         (Makefile.am): Substitute witnesses.
20374         * modules/sys_stat (Files, Makefile.am): Likewise.
20375         * modules/unistd (Files, Makefile.am): Likewise.
20376         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
20377         (gl_OPENAT_DEFAULTS): New macro.
20378         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
20379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
20380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
20381         (SYS_STAT_H): Remove unused variable.
20382         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
20383         * lib/fcntl--.h (includes): Remove unneeded header.
20384         * lib/openat-safer.c (includes): Likewise.
20385         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
20386         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
20387         appropriate headers.
20388         (__OPENAT_PREFIX): Delete.
20389         * lib/fcntl.in.h (openat): Provide declaration.
20390         (AT_FDCWD): Fix Solaris bug.
20391         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
20392         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
20393         * lib/fchmodat.c (includes):  Adjust to find declaration.
20394         * lib/fchownat.c (includes): Likewise.
20395         * lib/mkdirat.c (includes): Likewise.
20396         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
20397         still visible.
20398
20399 2009-09-02  Eric Blake  <ebb9@byu.net>
20400
20401         errno: use consistently
20402         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
20403         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
20404         * lib/canonicalize.c (ELOOP): Likewise.
20405         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
20406         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
20407         * lib/lchown.c (EOPNOTSUPP): Likewise.
20408         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
20409         * lib/savewd.c (ESTALE): Likewise.
20410         * lib/settime.c (ENOSYS): Likewise.
20411         * lib/utimens.c (ENOSYS): Likewise.
20412         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
20413         * lib/chdir-safer.c (ELOOP): Likewise.
20414         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
20415         * modules/c-stack (Depends-on): Add errno.
20416         * modules/canonicalize (Depends-on): Likewise.
20417         * modules/chdir-safer (Depends-on): Likewise.
20418         * modules/fdopendir (Depends-on): Likewise.
20419         * modules/inet_ntop (Depends-on): Likewise.
20420         * modules/inet_pton (Depends-on): Likewise.
20421         * modules/lchown (Depends-on): Likewise.
20422         * modules/openat (Depends-on): Likewise.
20423         * modules/savewd (Depends-on): Likewise.
20424         * modules/settime (Depends-on): Likewise.
20425         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
20426
20427         fts: avoid leaking fds
20428         * modules/fts (Depends-on): Add cloexec.
20429         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
20430         flag.
20431
20432         fts: make directory fds more robust
20433         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
20434         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
20435
20436         backupfile, chdir-long, fts, savedir: make safer
20437         * lib/backupfile.c (includes): Use "dirent--.h", since
20438         numbered_backup can write to stderr during readdir.
20439         * lib/savedir.c (includes): Likewise.
20440         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
20441         emulation can write to stderr on failure.
20442         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
20443         * lib/getcwd.c: Document why opendir_safer is unused.
20444         * lib/glob.c: Likewise.
20445         * lib/scandir.c: Likewise.
20446         * lib/openat-proc.c: Likewise, for open_safer.
20447         * modules/backupfile (Depends-on): Add dirent-safer.
20448         * modules/savedir (Depends-on): Likewise.
20449         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
20450         * modules/chdir-long (Depends-on): Add openat-safer.
20451
20452         openat-safer: new module
20453         * modules/openat-safer: New file.
20454         * lib/openat-safer.c: Likewise.
20455         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
20456         * lib/fcntl-safer.h (openat_safer): Declare.
20457         * lib/fcntl--.h (openat): Override.
20458         * MODULES.html.sh (File descriptor based I/O): Mention it.
20459         * lib/openat.h: Add double-inclusion guards.
20460         * lib/openat.c (includes): Only include "fcntl-safer.h", not
20461         "fcntl--.h", so we can implement openat.
20462         * modules/openat-safer-tests: New test.
20463         * tests/test-openat-safer.c: New file.
20464
20465         dirent-safer: new module
20466         * modules/dirent-safer: New file.
20467         * lib/dirent--.h: Likewise.
20468         * lib/dirent-safer.h: Likewise.
20469         * lib/opendir-safer.c: Likewise.
20470         * m4/dirent-safer.m4: Likewise.
20471         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
20472         * modules/dirent-safer-tests: New test.
20473         * tests/test-dirent-safer.c: New file.
20474         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
20475
20476         fdopendir: optimize on mingw
20477         * lib/unistd.in.h (_gl_directory_name): New prototype.
20478         * lib/fchdir.c (_gl_directory_name): Implement it.
20479         (fchdir): Use it to simplify implementation.
20480         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
20481         fchdir, when available, to avoid calling [f]chdir().
20482
20483         fdopendir: split into its own module
20484         * lib/openat.c (fdopendir): Move...
20485         * lib/fdopendir.c: ...into new file.
20486         * modules/fdopendir: New module.
20487         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
20488         * modules/openat (Depends-on): Add fdopendir.
20489         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
20490         fdopendir here.
20491         * modules/savedir (Depends-on): Only need fdopendir, not full
20492         openat.
20493         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
20494         * lib/openat.h (fdopendir): Drop prototype.
20495         * lib/dirent.in.h (fdopendir): Provide prototype.
20496         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
20497         * modules/dirent (Makefile.am): Substitute them.
20498         * MODULES.html.sh (File system functions): Mention it.
20499         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
20500         * modules/fdopendir-tests: New file.
20501         * tests/test-fdopendir.c: Likewise.
20502
20503         fchdir: use more consistent macro convention
20504         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
20505         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
20506         REPLACE_FCHDIR, rather than relying on config.h macros.
20507         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
20508         inside a single make-time REPLACE_FCHDIR block, rather than using
20509         the config.h FCHDIR_REPLACEMENT.
20510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
20511         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
20512         Manage fstat replacement.
20513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
20514         REPLACE_FCHDIR.
20515         * modules/sys_stat (Files): Add m4/unistd_h.m4.
20516         (Makefile.am): Substitute REPLACE_FCHDIR.
20517         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
20518         FCHDIR_REPLACEMENT.
20519         * lib/dup-safer.c (dup_safer): Likewise.
20520         * lib/dup2.c (rpl_dup2): Likewise.
20521         * lib/dup3.c (rpl_dup3): Likewise.
20522         * lib/open.c (rpl_open): Likewise.
20523
20524         fchdir: simplify error handling, and support dup3
20525         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
20526         stdbool, malloc-posix, realloc-posix.
20527         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
20528         (ensure_dirs_slot): Return false on allocation failure.
20529         (rpl_dup2): Delete.
20530         (_gl_register_dup): New function.
20531         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
20532         (_gl_register_fd): Close fd on allocation failure.
20533         * lib/fcntl.in.h (_gl_register_fd): Update signature.
20534         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
20535         prototype.
20536         (rpl_dup2_fchdir): Delete prototype.
20537         * lib/open.c (open): Update caller.
20538         * lib/dup2.c (dup2): Track fchdir metadata.
20539         * lib/dup3.c (dup3): Likewise.
20540         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
20541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
20542
20543 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20544
20545         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
20546         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
20547         don't pass arguments to AC_OUTPUT.
20548
20549 2009-09-02  Bruno Haible  <bruno@clisp.org>
20550
20551         * modules/mkdtemp (License): Relicense under LGPLv2+.
20552         Reported by Paolo Bonzini.
20553
20554 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20555
20556         Replace uses of obsolete autoconf macros in Jim's modules.
20557         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
20558         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
20559         can evoke a warning from autoconf when run with -Wobsolete
20560         enabled.  They were declared obsolete for good reasons (see
20561         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20562         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
20563         should not continue using the deprecated macros.
20564         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
20565         obsolete Autoconf macros with modern counterparts.
20566         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20567         * m4/dos.m4 (gl_AC_DOS): Likewise.
20568         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
20569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20570         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
20571         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
20572         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
20573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
20574         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
20575         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
20576         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20577         Likewise.
20578         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20579         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
20580         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
20581         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
20582         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20583         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
20584
20585 2009-09-01  Eric Blake  <ebb9@byu.net>
20586
20587         fchdir: fix off-by-one bug in previous patch
20588         * lib/fchdir.c (rpl_fstat): Use correct bounds.
20589         (_gl_unregister_fd): Delete useless if.
20590
20591 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
20592
20593         maint.mk: sort the list of syntax-check rules
20594         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
20595         easier to get a sense of progress when the rules are run sequentially
20596         and take a long time.
20597
20598 2009-09-01  Simon Josefsson  <simon@josefsson.org>
20599
20600         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
20601         * modules/netinet_in: Likewise.
20602         * modules/sys_file: Likewise.
20603         * modules/sys_ioctl: Likewise.
20604         * modules/sys_select: Likewise.
20605         * modules/sys_socket: Likewise.
20606         * modules/sys_stat: Likewise.
20607         * modules/sys_time: Likewise.
20608         * modules/sys_times: Likewise.
20609         * modules/sys_utsname: Likewise.
20610         * modules/sys_wait: Likewise.
20611
20612 2009-09-01  Jim Meyering  <meyering@redhat.com>
20613
20614         fts: help ensure that return values are not ignored
20615         * lib/fts_.h (__GNUC_PREREQ): Define.
20616         (__attribute_warn_unused_result__): Define.
20617         (fts_children, fts_close, fts_open, fts_read): Declare with
20618         __attribute_warn_unused_result__.
20619
20620         fts: fts_close now fails also when closing a dir file descriptor fails
20621         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
20622         and propagate to caller, along with errno.
20623
20624         announce-gen: correct formatting in --help output
20625         * build-aux/announce-gen (usage): Move the one-line description in
20626         --help output "up", to where it belongs, just after Usage:.
20627
20628 2009-08-31  Eric Blake  <ebb9@byu.net>
20629
20630         fchdir: port to mingw
20631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
20632         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
20633         opened, then use a substitute.
20634         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
20635         replacement.
20636         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
20637         (_gl_register_fd): No need to check stat if open already filters
20638         all directories.
20639         (fchdir): Fix error condition to match POSIX.
20640         * modules/fchdir (Depends-on): Add sys_stat.
20641         * doc/posix-functions/open.texi (open): Document the limitation.
20642         * modules/fchdir-tests: New file.
20643         * tests/test-fchdir.c: Likewise.
20644
20645         canonicalize: allow cross-testing from cygwin to mingw
20646         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
20647         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
20648         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
20649         Likewise.
20650         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
20651         target does not support symlinks.
20652         * tests/test-canonicalize-lgpl.sh: Likewise.
20653
20654         chown: avoid compilation warning on mingw
20655         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
20656         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
20657         mingw.
20658         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
20659         * modules/chown (Depends-on): Add errno.
20660
20661 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20662
20663         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
20664         command.
20665
20666 2009-08-31  Jim Meyering  <meyering@redhat.com>
20667
20668         canonicalize: remove useless initialization
20669         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
20670         initialization of local, "end".
20671
20672 2009-08-30  Bruno Haible  <bruno@clisp.org>
20673
20674         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
20675         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
20676         ENOSYS.
20677
20678 2009-08-30  Bruno Haible  <bruno@clisp.org>
20679
20680         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
20681         /usr/xpg4/bin/tr when it exists.
20682         * tests/test-pipe-filter-gi1.sh: Likewise.
20683
20684 2009-08-30  Bruno Haible  <bruno@clisp.org>
20685
20686         Work around deficient /usr/bin/id program on Solaris.
20687         * tests/test-file-has-acl.sh (ID): New variable.
20688         * tests/test-set-mode-acl.sh (ID): Likewise.
20689         * tests/test-copy-acl.sh (ID): Likewise.
20690         * tests/test-copy-file.sh (ID): Likewise.
20691
20692 2009-08-30  Bruno Haible  <bruno@clisp.org>
20693
20694         New module 'xstriconveh'.
20695         * lib/xstriconveh.h: New file.
20696         * lib/xstriconveh.c: New file.
20697         * modules/xstriconveh: New file.
20698
20699 2009-08-30  Bruno Haible  <bruno@clisp.org>
20700
20701         Make it easier to use mem_cd_iconveh.
20702         * lib/striconveh.h (iconveh_t): New type.
20703         (iconveh_open, iconveh_close): New declarations.
20704         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20705         with a single 'const iconveh_t *' argument.
20706         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
20707         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
20708         with a single 'const iconveh_t *' argument.
20709         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
20710         * tests/test-striconveh.c (main): Update.
20711         * NEWS: Mention the change.
20712
20713 2009-08-30  Bruno Haible  <bruno@clisp.org>
20714
20715         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
20716         problem.
20717
20718 2009-08-30  Bruno Haible  <bruno@clisp.org>
20719
20720         Work around iconv_open problem on Solaris.
20721         * lib/iconv_open-solaris.gperf: New file.
20722         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
20723         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
20724         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
20725         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
20726         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
20727         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
20728
20729 2009-08-29  Jim Meyering  <meyering@redhat.com>
20730
20731         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
20732         * top/maint.mk (cvs-check): Remove target; it was just an alias
20733         to the better-named vc-diff-check.
20734         (maintainer-distcheck): Remove rule.  It was used only from
20735         the (alpha/beta/major) target, and all of its commands but one
20736         were coreutils-specific.
20737         (vc-dist): Remove rule.
20738         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
20739         Run vc-diff-check, not vc-dist.
20740         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
20741
20742 2009-08-27  Bruno Haible  <bruno@clisp.org>
20743
20744         * tests/test-bitrotate.c (main): Remove test that uses a shift count
20745         of 0.
20746
20747 2009-08-27  Bruno Haible  <bruno@clisp.org>
20748
20749         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
20750         compilers.
20751         * doc/func.texi: Document the SunPRO C bug.
20752
20753 2009-08-27  Bruno Haible  <bruno@clisp.org>
20754
20755         Fix link error on Solaris.
20756         * tests/test-parse-duration.c (xstrdup): Remove function.
20757
20758 2009-08-26  Pádraig Brady  <P@draigbrady.com>
20759
20760         ignore-value: handle pointer types, too
20761         * lib/ignore-value.h (__attribute__): Remove definition.
20762         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
20763         of a more concise and more-often effective "(void) i" statement.
20764         (ignore_ptr): New function to suppress warnings from functions that
20765         return pointers, and to make it explicit that one function doesn't
20766         handle all cases.
20767
20768 2009-08-25  Bruno Haible  <bruno@clisp.org>
20769
20770         dup2: work around a Linux bug.
20771         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
20772         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
20773         * doc/posix-functions/dup2.texi: Mention the Linux bug.
20774         Reported by Simon Josefsson.
20775
20776 2009-08-25  Jim Meyering  <meyering@redhat.com>
20777
20778         libguestfs uses gnulib
20779         * users.txt: Add libguestfs.
20780
20781 2009-08-24  Eric Blake  <ebb9@byu.net>
20782
20783         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
20784         * lib/pipe2.c (includes): Add binary-io.h.
20785         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
20786
20787 2009-08-24  Bruno Haible  <bruno@clisp.org>
20788
20789         Tolerate declared but missing accept4 syscall.
20790         * lib/accept4.c (accept4): Invoke original accept4 function first, if
20791         available.
20792         * lib/sys_socket.in.h (accept4): If the function is already present,
20793         override it.
20794         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
20795         * modules/accept4 (Makefile.am): Compile accept4.c always.
20796         Reported by Paolo Bonzini and Eric Blake.
20797
20798 2009-08-23  Bruno Haible  <bruno@clisp.org>
20799
20800         New module 'accept4'.
20801         * lib/sys_socket.in.h (accept4): New declaration.
20802         * lib/accept4.c: New file.
20803         * m4/accept4.m4: New file.
20804         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20805         GNULIB_ACCEPT4, HAVE_ACCEPT4.
20806         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
20807         HAVE_ACCEPT4.
20808         * modules/accept4: New file.
20809         * doc/glibc-functions/accept4.texi: Mention the new module.
20810
20811 2009-08-24  Jim Meyering  <meyering@redhat.com>
20812
20813         progname: also set global program_invocation_name, when possible
20814         Before this change, a libtool-enabled program that calls glibc's
20815         error function would report the program name as
20816         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
20817         * modules/progname (configure.ac): Check for a declaration of
20818         program_invocation_name.
20819         * lib/progname.c:  Include <errno.h>.
20820         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
20821         Set program_invocation_name.
20822
20823 2009-08-23  Bruno Haible  <bruno@clisp.org>
20824
20825         * lib/dup3.c: Include <string.h>.
20826
20827 2009-08-23  Bruno Haible  <bruno@clisp.org>
20828
20829         * lib/dup3.c (dup3): Test only once whether the system actually exists.
20830         * lib/pipe2.c (pipe2): Likewise.
20831         Suggested by Eric Blake.
20832
20833 2009-08-23  Bruno Haible  <bruno@clisp.org>
20834
20835         Tolerate declared but missing dup3 syscall.
20836         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
20837         * lib/unistd.in.h (dup3): If the function is already present,
20838         override it.
20839         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
20840         * modules/dup3 (Makefile.am): Compile dup3.c always.
20841         Reported by Paolo Bonzini.
20842
20843 2009-08-23  Bruno Haible  <bruno@clisp.org>
20844
20845         Tolerate declared but missing pipe2 syscall.
20846         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
20847         available.
20848         * lib/unistd.in.h (pipe2): If the function is already present,
20849         override it.
20850         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
20851         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
20852         Reported by Paolo Bonzini.
20853
20854 2009-08-23  Bruno Haible  <bruno@clisp.org>
20855
20856         * lib/pipe2.c (pipe2): Move #ifs inside function.
20857
20858 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20859
20860         quotearg: document limitations of quote_these_too
20861         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
20862         those limitations are created.
20863         * lib/quotearg.h (set_char_quoting): Document that digits and
20864         letters that are special after backslash are not permitted.
20865         (quotearg_char): Cross-reference set_char_quoting documentation.
20866
20867 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
20868
20869         quotearg: implement custom_quoting_style
20870         * lib/quotearg.c: (struct quoting_options): Add left_quote and
20871         right_quote fields.
20872         (set_custom_quoting): New public function.
20873         (quotearg_buffer_restyled): Add left_quote and right_quote
20874         arguments, handle them very much like locale quoting, and update
20875         all uses.
20876         (quotearg_n_custom): New public function.
20877         (quotearg_n_custom_mem): New public function.
20878         (quotearg_custom): New public function.
20879         (quotearg_custom_mem): New public function.
20880         * lib/quotearg.h: Prototype and document new public functions.
20881         (enum quoting_style): For escape_quoting_style and
20882         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
20883         ignored even though they're otherwise like c_quoting_style.
20884         Add custom_quoting_style member and document with comparison to
20885         clocale_quoting_style.
20886         * tests/test-quotearg.c (custom_quotes): New array.
20887         (custom_results): New array.
20888         (main): Extend to test custom quoting.
20889
20890 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20891
20892         quotearg: fix right quote escaping when it's in quote_these_too
20893         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
20894         quote, be sure to prepend only one backslash.
20895         * tests/test-quotearg.c (use_quote_double_quotes): New function.
20896         (main): Test it.
20897
20898 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
20899
20900         quotearg-tests: test escaping of embedded locale quotes
20901         * tests/test-quotearg.c (struct result_strings): Add member for
20902         new input.
20903         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
20904         (inputs): Add new input.
20905         (results_g): Add expected results.
20906         (flag_results): Likewise.
20907         (locale_results): Likewise.
20908         (compare_strings): Check those.
20909
20910 2009-08-23  Bruno Haible  <bruno@clisp.org>
20911
20912         Tests for module 'dup3'.
20913         * modules/dup3-tests: New file.
20914         * tests/test-dup3.c: New file.
20915
20916         New module 'dup3'.
20917         * lib/unistd.in.h (dup3): New declaration.
20918         * lib/dup3.c: New file.
20919         * m4/dup3.m4: New file.
20920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
20921         HAVE_DUP3.
20922         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
20923         * modules/dup3: New file.
20924         * doc/glibc-functions/dup3.texi: Mention the new module.
20925
20926 2009-08-23  Bruno Haible  <bruno@clisp.org>
20927
20928         Tweak the dup2 test.
20929         * tests/test-dup2.c (main): Create the test file empty. Verify that an
20930         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
20931         the test file is still empty. Fix argument order of lseek.
20932
20933 2009-08-23  Bruno Haible  <bruno@clisp.org>
20934
20935         Avoid test link errors when the modules getopt-gnu, gettext are used.
20936         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
20937         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20938
20939 2009-08-23  Bruno Haible  <bruno@clisp.org>
20940
20941         Fix getdtablesize() on mingw.
20942         * lib/getdtablesize.c (getdtablesize): Implement differently.
20943         * lib/unistd.in.h (getdtablesize): Improve comment.
20944
20945 2009-08-23  Bruno Haible  <bruno@clisp.org>
20946
20947         New module 'mkostemp'.
20948         Based on Ulrich Drepper's 2007-08-10 change in glibc.
20949         * lib/stdlib.in.h (mksotemp): New declaration.
20950         * lib/mkostemp.c: New file, from glibc with modifications.
20951         * lib/tempname.h (GT_FILE): Remove outdated comment.
20952         (gen_tempname): Add flags argument.
20953         * lib/tempname.c (__GT_BIGFILE): Remove macro.
20954         (__GT_FILE): Map to 1.
20955         (small_open, large_open): Remove macros.
20956         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
20957         * lib/mkstemp.c (mkstemp): Update.
20958         * lib/mkdtemp.c (mkdtemp): Likewise.
20959         * m4/mkostemp.m4: New file.
20960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
20961         HAVE_MKOSTEMP.
20962         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
20963         HAVE_MKOSTEMP.
20964         * modules/mkostemp: New file, based on modules/mkstemp.
20965         * doc/glibc-functions/mkostemp.texi: Mention the new module.
20966         * NEWS: Mention the change.
20967
20968 2009-08-23  Bruno Haible  <bruno@clisp.org>
20969
20970         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
20971         Reported by Eric Blake.
20972
20973 2009-08-23  Bruno Haible  <bruno@clisp.org>
20974
20975         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
20976         Reported by Eric Blake.
20977
20978 2009-08-23  Bruno Haible  <bruno@clisp.org>
20979
20980         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
20981         * modules/pipe2 (Depends-on): Likewise.
20982
20983 2009-08-23  Eric Blake  <ebb9@byu.net>
20984
20985         fcntl-h: add O_TTY_INIT support
20986         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
20987         * tests/test-fcntl-h.c (o): Test it.
20988         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20989
20990         fcntl-h: rename from fcntl, in preparation for fcntl(2)
20991         * modules/fcntl: Move <fcntl.h> header replacement...
20992         * modules/fcntl-h: ...to new name, so as not to collide with
20993         like-named function.
20994         * tests/test-fcntl.c: Rename...
20995         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
20996         * modules/fcntl-tests: Rename...
20997         * modules/fcntl-h-tests: ...to this.  Update test file name.
20998         * modules/chdir-long (Depends-on): Update clients.
20999         * modules/chdir-safer (Depends-on): Likewise.
21000         * modules/fcntl-safer (Depends-on): Likewise.
21001         * modules/fts (Depends-on): Likewise.
21002         * modules/mkancesdirs (Depends-on): Likewise.
21003         * modules/mkdir-p (Depends-on): Likewise.
21004         * modules/open (Depends-on): Likewise.
21005         * modules/savewd (Depends-on): Likewise.
21006         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
21007         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21008
21009 2009-08-22  Bruno Haible  <bruno@clisp.org>
21010
21011         * modules/binary-io (License): Relicense under LGPL.
21012         * modules/pipe2 (License): Likewise.
21013
21014 2009-08-22  Bruno Haible  <bruno@clisp.org>
21015
21016         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
21017         return value.
21018         * lib/pipe-filter-gi.c (filter_init): Likewise.
21019         Reported by Eric Blake.
21020
21021 2009-08-22  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
21024         * modules/pipe (Depends-on): Add pipe2.
21025
21026 2009-08-22  Bruno Haible  <bruno@clisp.org>
21027
21028         Tests for module 'pipe2'.
21029         * modules/pipe2-tests: New file.
21030         * tests/test-pipe2.c: New file.
21031
21032         New module 'pipe2'.
21033         * lib/unistd.in.h (pipe2): New declaration.
21034         * lib/pipe2.c: New file.
21035         * m4/pipe2.m4: New file.
21036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
21037         HAVE_PIPE2.
21038         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
21039         * modules/pipe2: New file.
21040         * doc/glibc-functions/pipe2.texi: Mention the new module.
21041
21042 2009-08-22  Bruno Haible  <bruno@clisp.org>
21043
21044         Reference some new glibc functions.
21045         * doc/glibc-functions/accept4.texi: New file.
21046         * doc/glibc-functions/dup3.texi: New file.
21047         * doc/glibc-functions/mkostemp.texi: New file.
21048         * doc/glibc-functions/pipe2.texi: New file.
21049         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
21050         (Glibc sys/socket.h): Refer to accept4.
21051         (Glibc unistd.h): Refer to dup3, pipe2.
21052         Reported by Eric Blake.
21053
21054 2009-08-22  Jim Meyering  <meyering@redhat.com>
21055             Bruno Haible  <bruno@clisp.org>
21056
21057         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
21058         This makes it so packages using automake-1.11's silent-rules option
21059         can print e.g., a single "GEN    configmake.h" line, rather than
21060         the 30+ statements that perform the job.  If you want to see the
21061         actual commands, you can still run "make V=1".
21062         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
21063         so that make output is abbreviated when those variables are defined
21064         appropriately.
21065         * modules/argz: Likewise.
21066         * modules/arpa_inet: Likewise.
21067         * modules/byteswap: Likewise.
21068         * modules/configmake: Likewise.
21069         * modules/dirent: Likewise.
21070         * modules/errno: Likewise.
21071         * modules/fcntl: Likewise.
21072         * modules/float: Likewise.
21073         * modules/fnmatch: Likewise.
21074         * modules/getopt-posix: Likewise.
21075         * modules/glob: Likewise.
21076         * modules/iconv_open: Likewise.
21077         * modules/inttypes: Likewise.
21078         * modules/localcharset: Likewise.
21079         * modules/locale: Likewise.
21080         * modules/math: Likewise.
21081         * modules/netdb: Likewise.
21082         * modules/netinet_in: Likewise.
21083         * modules/poll: Likewise.
21084         * modules/posix_spawnp-tests: Likewise.
21085         * modules/sched: Likewise.
21086         * modules/search: Likewise.
21087         * modules/selinux-h: Likewise.
21088         * modules/signal: Likewise.
21089         * modules/spawn: Likewise.
21090         * modules/stdarg: Likewise.
21091         * modules/stdbool: Likewise.
21092         * modules/stddef: Likewise.
21093         * modules/stdint: Likewise.
21094         * modules/stdio: Likewise.
21095         * modules/stdlib: Likewise.
21096         * modules/string: Likewise.
21097         * modules/strings: Likewise.
21098         * modules/sys_file: Likewise.
21099         * modules/sys_ioctl: Likewise.
21100         * modules/sys_select: Likewise.
21101         * modules/sys_socket: Likewise.
21102         * modules/sys_stat: Likewise.
21103         * modules/sys_time: Likewise.
21104         * modules/sys_times: Likewise.
21105         * modules/sys_utsname: Likewise.
21106         * modules/sys_wait: Likewise.
21107         * modules/sysexits: Likewise.
21108         * modules/time: Likewise.
21109         * modules/unistd: Likewise.
21110         * modules/wchar: Likewise.
21111         * modules/wctype: Likewise.
21112
21113 2009-08-22  Jim Meyering  <meyering@redhat.com>
21114
21115         announce-gen: detect write failure
21116         * build-aux/announce-gen: Add Coda at end.
21117         Remove equivalent-but-more-verbose block at top.
21118
21119 2009-08-19  Akim Demaille  <demaille@gostai.com>
21120
21121         bootstrap: --help to stdout.
21122         * bootstrap (usage): Don't send --help to stderr.
21123         Use a here doc instead of a long string.
21124
21125 2009-08-21  Eric Blake  <ebb9@byu.net>
21126
21127         test-popen-safer: split from test-popen
21128         * tests/test-popen.c (main): Move...
21129         * tests/test-popen.h: ...into new file.
21130         * tests/test-popen-safer2.c: New file.
21131         * modules/popen-tests (Files): Add test-popen.h.
21132         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
21133         Suggested by Bruno Haible.
21134
21135         test-fcntl-safer: split from test-open
21136         * tests/test-open.c (main): Move...
21137         * tests/test-open.h: ...into new file.
21138         * tests/test-fcntl-safer.c: New file.
21139         * modules/open-tests (Files): Add test-open.h.
21140         * modules/fcntl-safer-tests: New file.
21141         Suggested by Bruno Haible.
21142
21143         test-fopen-safer: split from test-fopen
21144         * tests/test-fopen.c (main): Move...
21145         * tests/test-fopen.h: ...into new file.
21146         * tests/test-fopen-safer.c: New file.
21147         * modules/fopen-tests (Files): Add test-fopen.h.
21148         * modules/fopen-safer-tests: New file.
21149         Suggested by Bruno Haible.
21150
21151 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21152
21153         popen-safer: test O_CLOEXEC at run-time.
21154         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
21155
21156 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
21157
21158         fcntl: move more flags to the header
21159         * lib/cloexec.c: Do not define FD_CLOEXEC here.
21160         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
21161         * lib/fcntl.in.h: Do both things here.
21162
21163 2009-08-21  Jim Meyering  <meyering@redhat.com>
21164
21165         consistently remove $@-t before redirecting to it
21166         * modules/argz: Remove $@-t and $@ before redirecting to the former.
21167         * modules/alloca-opt: Likewise.
21168         * modules/byteswap: Likewise.
21169         * modules/fnmatch: Likewise.
21170         * modules/getopt-posix: Likewise.
21171         * modules/glob: Likewise.
21172         * modules/poll: Likewise.
21173         * modules/posix_spawnp-tests: Likewise.
21174         * modules/sys_socket: Likewise.
21175         * modules/sysexits: Likewise.
21176
21177 2009-08-21  Eric Blake  <ebb9@byu.net>
21178
21179         popen: simplify access to original popen
21180         * lib/popen.c (rpl_popen): No need to worry about popen being a
21181         macro.
21182         Reported by Bruno Haible.
21183
21184 2009-08-20  Eric Blake  <ebb9@byu.net>
21185
21186         build: avoid some compiler warnings
21187         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
21188         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
21189         type.
21190         (new_exclude_segment, excluded_file_pattern_p)
21191         (excluded_file_name_p): Reduce scope.
21192         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
21193         old-style declaration.
21194
21195 2009-08-20  Simon Josefsson  <simon@josefsson.org>
21196
21197         * tests/test-exclude1.sh: Handle Windows EOL.
21198         * tests/test-exclude2.sh: Likewise.
21199         * tests/test-exclude3.sh: Likewise.
21200         * tests/test-exclude4.sh: Likewise.
21201         * tests/test-exclude5.sh: Likewise.
21202         * tests/test-exclude6.sh: Likewise.
21203         * tests/test-exclude7.sh: Likewise.
21204
21205 2009-08-19  Akim Demaille  <demaille@gostai.com>
21206
21207         bootstrap: find sha1sum when named gsha1sum.
21208         * bootstrap (find_tool): New.
21209         ($SHA1SUM): New.
21210         Use it.
21211
21212 2009-08-20  Jim Meyering  <meyering@redhat.com>
21213
21214         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
21215         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
21216         expression that converts "." in a file name to "\." in the resulting
21217         regexp.  Start with a dummy statement, so that prior shell variable
21218         definitions are expanded portably.  Reported by Simon Josefsson.
21219
21220 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
21221
21222         Fix polling for writeability of a screen buffer.
21223         * lib/poll.c: Distinguish input and screen buffers for the
21224         Win32 implementation.
21225         * lib/select.c: Likewise.
21226
21227 2009-08-19  Eric Blake  <ebb9@byu.net>
21228
21229         popen-safer: prevent popen from clobbering std descriptors
21230         * modules/popen-safer: New file.
21231         * lib/popen-safer.c: Likewise.
21232         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
21233         * lib/stdio--.h (popen): Provide override.
21234         * lib/stdio-safer.h (popen_safer): Provide declaration.
21235         * tests/test-popen.c (includes): Partially test this.
21236         * modules/popen-safer-tests: New file, for more tests.
21237         * tests/test-popen-safer.c: Likewise.
21238         * MODULES.html.sh (file stream based Input/Output): Mention it.
21239
21240         tests: test some of the *-safer modules
21241         * modules/fopen-safer (Depends-on): Add fopen.
21242         * modules/fcntl-safer (Depends-on): Add fcntl.
21243         * modules/stdlib-safer (Depends-on): Add stdlib.
21244         (configure.ac): Set indicator.
21245         * modules/unistd-safer (configure.ac): Likewise.
21246         * modules/tmpfile-safer (configure.ac): Likewise.
21247         (Depends-on): Add tmpfile.
21248         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
21249         active.
21250         * tests/test-fopen.c (includes): Test safer versions when they are
21251         in use.
21252         * tests/test-open.c (includes): Likewise.
21253
21254         popen: fix cygwin 1.5 bug when stdin closed
21255         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
21256         * modules/popen: New file.
21257         * modules/popen-tests: Likewise.
21258         * tests/test-popen.c: Likewise.
21259         * m4/popen.m4: Likewise.
21260         * lib/popen.c: Likewise.
21261         * lib/stdio.in.h (popen): New declaration.
21262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
21263         * modules/stdio (Makefile.am): Likewise.
21264         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
21265
21266 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
21267
21268         maint.mk: give full control over update-copyright exclusions
21269         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
21270         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
21271         (update-copyright): Don't force inclusion of top-level
21272         ChangeLog.  Don't force exclusion of all COPYING files, but make
21273         them the default exclusion instead.
21274
21275 2009-08-16  Bruno Haible  <bruno@clisp.org>
21276
21277         Fix test failures on Solaris 10.
21278         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
21279         tests when Solaris iconv() is used.
21280         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21281         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21282         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21283         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21284         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21285
21286 2009-08-16  Bruno Haible  <bruno@clisp.org>
21287
21288         Fix test failures on Solaris 10.
21289         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
21290         'tr' program and pass it as first argument.
21291         * tests/test-pipe-filter-gi1.sh: Likewise.
21292         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
21293         program as first argument.
21294         * tests/test-pipe-filter-gi1.c (main): Likewise.
21295
21296 2009-08-16  Eric Blake  <ebb9@byu.net>
21297
21298         fpurge: fix previous commits
21299         * modules/fpurge (Makefile.am): Make replacement conditional,
21300         partially reverting 2007-04-29 change; missed in previous
21301         attempt.
21302         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
21303         is missing.
21304
21305 2009-08-16  Bruno Haible  <bruno@clisp.org>
21306
21307         Clarify fpurge's effect on the file position.
21308         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
21309         * tests/test-fpurge.c (main): Make a second pass for checking the file
21310         position.
21311
21312 2009-08-16  Bruno Haible  <bruno@clisp.org>
21313
21314         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
21315         declaration of fpurge is missing.
21316         * tests/test-fpurge.c (main): Check that the file has not more contents
21317         than expected. Close the file before removing it.
21318
21319 2009-08-15  Eric Blake  <ebb9@byu.net>
21320
21321         fpurge: don't wrap working cygwin implementation
21322         * lib/fpurge.c (fpurge): Fix comment typo.
21323         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
21324         1.7 to avoid replacement.
21325         * tests/test-fpurge.c (main): Enhance test.
21326
21327 2009-08-15  Eric Blake  <ebb9@byu.net>
21328         and Jim Meyering  <meyering@redhat.com>
21329
21330         test-update-copyright: skip if perl is insufficient
21331         * tests/test-update-copyright.sh: Failure to run maintainer tool
21332         should not cause testsuite failure on cygwin 1.5.
21333
21334 2009-08-14  Eric Blake  <ebb9@byu.net>
21335
21336         doc: mention more functions added in cygwin 1.7.0
21337         * doc/posix-headers/limits.texi (limits.h): Update for recent
21338         cygwin additions.
21339         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
21340         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
21341         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
21342         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
21343         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
21344
21345 2009-08-14  Eric Blake  <ebb9@byu.net>
21346
21347         maint.mk: simplify update-copyright rule
21348         * top/maint.mk (update-copyright-local): Delete, and document how
21349         to do it in cfg.mk instead.
21350         (update-copyright-exclude-regexp): Delete, and document how to do
21351         it in .x-update-copyright instead.
21352         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
21353         exclude ChangeLog.
21354
21355 2009-08-14  Bruno Haible  <bruno@clisp.org>
21356
21357         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
21358
21359 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21360
21361         maint.mk: support update-copyright-env
21362         * top/maint.mk (update-copyright-env): Define place-holder.
21363         (update-copyright): Expand $(update-copyright-env) before
21364         invoking update-copyright.
21365
21366 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21367
21368         update-copyright: implement forced reformatting
21369         * build-aux/update-copyright: Implement and document
21370         UPDATE_COPYRIGHT_FORCE.
21371         * tests/test-update-copyright.sh: Test it.
21372
21373 2009-08-14  Eric Blake  <ebb9@byu.net>
21374         and Bruno Haible  <bruno@clisp.org>
21375
21376         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
21377         * tests/test-locale.c: Revert previous patch related to NULL.
21378         * tests/test-stdio.c: Likewise.
21379         * tests/test-stdlib.c: Likewise.
21380         * tests/test-string.c: Likewise.
21381         * tests/test-unistd.c: Likewise.
21382         * modules/time-tests (Depends-on): Add verify.
21383         * modules/wchar-tests (Depends-on): Likewise.
21384         * tests/test-time.c: Test for NULL compliance.
21385         * tests/test-wchar.c: Likewise.
21386         * modules/locale (Depends-on): Add stddef.
21387         * modules/stdio (Depends-on): Likewise.
21388         * modules/stdlib (Depends-on): Likewise.
21389         * modules/string (Depends-on): Likewise.
21390         * modules/time (Depends-on): Likewise.
21391         * modules/unistd (Depends-on): Likewise.
21392         * modules/wchar (Depends-on): Likewise.
21393         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
21394         * lib/stdlib.in.h (includes): Likewise.
21395         * lib/string.in.h (includes): Likewise.
21396         * lib/time.in.h (includes): Likewise.
21397         * lib/unistd.in.h (includes): Likewise.
21398         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
21399         replaced.
21400         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21401         * m4/stddef_h.m4: New file.
21402         * modules/stddef: Likewise.
21403         * lib/stddef.in.h: Likewise.
21404         * modules/stddef-tests: Likewise.
21405         * tests/test-stddef.c: Likewise.
21406         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
21407         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
21408         * doc/posix-headers/locale.texi (locale.h): Likewise.
21409         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
21410         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21411         * doc/posix-headers/string.texi (string.h): Likewise.
21412         * doc/posix-headers/time.texi (time.h): Likewise.
21413         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
21414         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
21415
21416 2009-08-14  Eric Blake  <ebb9@byu.net>
21417
21418         doc: improve git diff of texinfo files
21419         * .gitattributes: Add rule for *.texi files, with hint on how to
21420         use it.
21421         Copied from m4, and based on a report by Bruno Haible.
21422
21423 2009-08-14  Bruno Haible  <bruno@clisp.org>
21424
21425         Disable multithread support by default on Cygwin 1.5.x for real.
21426         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
21427
21428 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
21429
21430         update-copyright: much ado about intervals
21431         * build-aux/update-copyright: Implement and document
21432         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
21433         of copyright year intervals.
21434         Also, document UPDATE_COPYRIGHT_YEAR.
21435         * tests/test-update-copyright.sh: Test it.
21436
21437         update-copyright: convert 2-digit to 4-digit years
21438         * build-aux/update-copyright: Implement and document.
21439         * tests/test-update-copyright.sh: Update.
21440
21441 2009-08-14  Jim Meyering  <meyering@redhat.com>
21442
21443         test-exclude: avoid coreutils "make check" failure
21444         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
21445         just as in test-argmatch.c.
21446
21447 2009-08-13  Eric Blake  <ebb9@byu.net>
21448
21449         test-dup2: fix bad assumption
21450         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
21451         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
21452
21453         test-version-etc: fix CRLF portability issue
21454         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
21455         recognize \r.
21456         * tests/test-argp-version-etc-1.sh: Likewise.
21457
21458         getopt: update client modules
21459         * modules/argp (Depends-on): Use getopt-gnu.
21460         * modules/git-merge-changelog (Depends-on): Likewise.
21461         * modules/long-options (Depends-on): Likewise.
21462         * modules/xstrtol (Depends-on): Likewise.
21463
21464 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21465
21466         * tests/test-version-etc.sh: Don't fail on different
21467         project/version.  Don't fail on CRLF differences.  Rewrite to use
21468         multiple -e instead of multiple sed forks, suggested by Eric Blake
21469         <ebb9@byu.net>.
21470         * tests/test-argp-version-etc-1.sh: Likewise.
21471
21472 2009-08-13  Simon Josefsson  <simon@josefsson.org>
21473
21474         * tests/test-version-etc.sh: Don't fail on different
21475         project/version.
21476
21477 2009-08-12  Bruno Haible  <bruno@clisp.org>
21478
21479         Tests for modules 'getopt-posix', 'getopt-gnu'.
21480         * modules/getopt-posix-tests: New file.
21481         * tests/test-getopt.c: New file.
21482         * tests/test-getopt.h: New file.
21483         * tests/test-getopt_long.h: New file.
21484
21485         New modules 'getopt-posix', 'getopt-gnu'.
21486         * modules/getopt-gnu: New file, renamed from modules/getopt.
21487         * modules/getopt-posix: New file.
21488         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
21489         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
21490         (gl_GETOPT): Remove macro.
21491         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
21492         Disable the test against BSD systems that declare optreset. Test
21493         against mingw bug. Test against lack of support of optional arguments
21494         on many platforms.
21495         * doc/glibc-headers/getopt.texi: Update module name and list of
21496         relevant platforms.
21497         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
21498         'getopt-gnu' and more portability problems.
21499         * NEWS: Mention the changes.
21500
21501 2009-08-12  Bruno Haible  <bruno@clisp.org>
21502
21503         Ensure that optarg etc. get declared by <unistd.h>.
21504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
21505         AC_USE_SYSTEM_EXTENSIONS.
21506         * modules/getopt (Depends-on): Add 'extensions'.
21507
21508 2009-08-12  Bruno Haible  <bruno@clisp.org>
21509
21510         Avoid test link errors.
21511         * modules/pipe-filter-ii-tests (Makefile.am): Define
21512         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
21513         * modules/pipe-filter-gi-tests (Makefile.am): Define
21514         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
21515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21516
21517 2009-08-12  Bruno Haible  <bruno@clisp.org>
21518
21519         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
21520         gl_GETOPT_SUBSTITUTE before.
21521         (gl_GETOPT): Use it.
21522         * m4/argp.m4 (gl_ARGP): Update.
21523         Reported by Sergey Poznyakoff.
21524
21525         * m4/getopt.m4: Reorder macros.
21526         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
21527         (gl_GETOPT_SUBSTITUTE): Remove macro.
21528
21529 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21530
21531         Minor improvement in gitlog-to-changelog
21532
21533         * build-aux/gitlog-to-changelog: New option `--format' makes
21534         output format string configurable.
21535
21536 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21537
21538         Optimize exclude: use hash tables for non-wildcard patterns.
21539
21540         * lib/exclude.c: Include hash.h and mbuiter.h
21541         (struct exclude_pattern, exclude_segment): New data types.
21542         (struct exclude): Rewrite.
21543         (fnmatch_pattern_has_wildcards): New function.
21544         (new_exclude_segment, free_exclude_segment): New functions.
21545         (excluded_file_pattern_p, excluded_file_name_p): New functions.
21546         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
21547         * lib/exclude.h (is_fnmatch_pattern): New prototype.
21548         * modules/exclude: Depend on hash and mbuiter.
21549
21550         * modules/exclude-tests: New file.
21551         * tests/test-exclude.c: New file.
21552         * tests/test-exclude1.sh: New file.
21553         * tests/test-exclude2.sh: New file.
21554         * tests/test-exclude3.sh: New file.
21555         * tests/test-exclude4.sh: New file.
21556         * tests/test-exclude5.sh: New file.
21557         * tests/test-exclude6.sh: New file.
21558         * tests/test-exclude7.sh: New file.
21559
21560 2009-08-12  Bruno Haible  <bruno@clisp.org>
21561
21562         Ensure that getopt() gets declared by <unistd.h>.
21563         * lib/unistd.in.h: Conditionally include getopt.h.
21564         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
21565         Set GNULIB_UNISTD_H_GETOPT.
21566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21567         GNULIB_UNISTD_H_GETOPT.
21568         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
21569
21570 2009-08-12  Bruno Haible  <bruno@clisp.org>
21571
21572         Clarify logic.
21573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
21574         gl_replace_getopt instead of GETOPT_H.
21575
21576 2009-08-12  Bruno Haible  <bruno@clisp.org>
21577
21578         * m4/getopt.m4: Add comments.
21579
21580 2009-08-12  Bruno Haible  <bruno@clisp.org>
21581
21582         Disable multithread support by default on Cygwin 1.5.x.
21583         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
21584         set gl_use_threads=no if not specified otherwise.
21585
21586 2009-08-11  Bruno Haible  <bruno@clisp.org>
21587
21588         Avoid compilation error on NetBSD 5.0.
21589         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
21590         * tests/test-stdio.c: Likewise.
21591         * tests/test-stdlib.c: Likewise.
21592         * tests/test-string.c: Likewise.
21593         * tests/test-unistd.c: Likewise.
21594         Reported by Greg Troxel <gdt@ir.bbn.com>
21595         at <https://savannah.gnu.org/support/?106973>.
21596
21597 2009-08-11  Bruno Haible  <bruno@clisp.org>
21598
21599         * modules/dup2-tests (Depends-on): Remove close.
21600
21601         Undo 2009-07-19 commit.
21602         * modules/acl-tests (Depends-on): Remove close.
21603         * modules/binary-io-tests (Depends-on): Likewise.
21604         * modules/closein-tests (Depends-on): Likewise.
21605         * modules/flock-tests (Depends-on): Likewise.
21606         * modules/fsync-tests (Depends-on): Likewise.
21607         * modules/lseek-tests (Depends-on): Likewise.
21608         * modules/pipe-tests (Depends-on): Likewise.
21609         * modules/posix_spawn-tests (Depends-on): Likewise.
21610         * modules/posix_spawnp-tests (Depends-on): Likewise.
21611         * modules/stat-time-tests (Depends-on): Likewise.
21612         * modules/yesno-tests (Depends-on): Likewise.
21613
21614 2009-08-10  Bruno Haible  <bruno@clisp.org>
21615
21616         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
21617
21618 2009-08-10  Bruno Haible  <bruno@clisp.org>
21619
21620         Fix a gcc warning.
21621         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
21622
21623 2009-08-10  Bruno Haible  <bruno@clisp.org>
21624
21625         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
21626         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
21627         not only the first time.
21628         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
21629         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
21630         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
21631         is 1, not only the the first time.
21632
21633 2009-08-10  Bruno Haible  <bruno@clisp.org>
21634
21635         Make it possible to use module 'gethostname' without module 'close'.
21636         * lib/unistd.in.h (close): Evoke a link error only if
21637         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21639         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21640         * modules/unistd (Makefile.am): Substitute
21641         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21642         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
21643         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
21644         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21645         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21646         * modules/sys_ioctl (Makefile.am): Substitute
21647         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21648         * modules/socket (configure.ac): On native Windows, set
21649         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
21650         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
21651         Reported by Sam Steingold <sds@gnu.org>.
21652
21653 2009-08-10  Bruno Haible  <bruno@clisp.org>
21654
21655         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
21656         * modules/ioctl (configure.ac): Likewise.
21657
21658 2009-08-10  Bruno Haible  <bruno@clisp.org>
21659
21660         Avoid collision between gnulib wrapper and libintl wrapper.
21661         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
21662         already defined in intl/printf.c.
21663         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
21664         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
21665
21666 2009-08-09  Bruno Haible  <bruno@clisp.org>
21667
21668         Make <sys/select.h> really self-contained, also on Solaris 10.
21669         * lib/sys_select.in.h: Include <string.h>.
21670         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
21671         Solaris 10 problem.
21672         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
21673         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
21674         Reported by Jim Meyering.
21675
21676 2009-08-09  Bruno Haible  <bruno@clisp.org>
21677
21678         Avoid warnings from 'aclocal' that are due to a use of macro name
21679         AM_XGETTEXT_OPTION that is not defined in automake.
21680         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
21681         automake.
21682         * modules/error (configure.ac): Likewise.
21683         * modules/propername (configure.ac): Likewise.
21684         * modules/vasprintf (configure.ac): Likewise.
21685         * modules/verror (configure.ac): Likewise.
21686         * modules/xprintf (configure.ac): Likewise.
21687         * modules/xvasprintf (configure.ac): Likewise.
21688
21689 2009-08-08  Bruno Haible  <bruno@clisp.org>
21690
21691         Avoid compilation error in C++ mode.
21692         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
21693         Reported by Sam Steingold <sds@gnu.org>.
21694
21695 2009-08-08  Bruno Haible  <bruno@clisp.org>
21696
21697         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
21698         for the various Unix platforms.
21699         * doc/posix-headers/limits.texi: Update platforms list regarding
21700         HOST_NAME_MAX.
21701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21702
21703 2009-08-07  Jim Meyering  <meyering@redhat.com>
21704
21705         selinux-at: fix typo in a comment
21706         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
21707         Spotted by Paolo Bonzini.
21708
21709         selinux-at: remove redundant m4 code, add documentation
21710         * modules/selinux-at (configure.ac): Remove redundant code.
21711         LIB_SELINUX is already set via the dependent module, selinux-h.
21712         (Include): Add quotes around selinux-at.h.
21713         * lib/selinux-at.h: Add documentation.
21714         Reported by Bruno Haible in
21715         http://marc.info/?l=gnulib-bug&m=124958988300749
21716
21717 2009-08-07  Bruno Haible  <bruno@clisp.org>
21718
21719         Avoid link error on MacOS X 10.3 and 10.4.
21720         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
21721         on non-ELF systems.
21722         * lib/argp-pv.c (argp_program_version): Likewise.
21723         Reported by Simon Josefsson.
21724
21725 2009-08-07  Simon Josefsson  <simon@josefsson.org>
21726
21727         * tests/test-version-etc.sh: Use $EXEEXT.
21728
21729 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
21730
21731         update-copyright: update documentation to point to maint.mk
21732         * build-aux/update-copyright: Here.
21733
21734 2009-08-06  Jim Meyering  <meyering@redhat.com>
21735
21736         maint.mk: support update-copyright-local
21737         * top/maint.mk (update-copyright-local): Define place-holder.
21738         (update-copyright): Depend on $(update-copyright-local).
21739
21740 2009-08-06  Jim Meyering  <meyering@redhat.com>
21741
21742         selinux-at: new module
21743         Initially written for coreutils, this module will soon be
21744         used by findutils, too.
21745         * MODULES.html.sh [Misc]: Add selinux-at.
21746         * lib/selinux-at.h: New file, from coreutils.
21747         * lib/selinux-at.c: Likewise.
21748         * modules/selinux-at: Likewise.
21749         (License): Change from LGPL to GPL, since it depends
21750         on the GPL'd openat module.
21751
21752         doc: update README
21753         * README: Remove references to cogito.
21754         Remove cvs-repo-updating instructions from 2007.
21755         Don't imply that CVS is better if you have limited disk space.
21756
21757 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21758
21759         update-copyright: support C-style comments
21760         * build-aux/update-copyright: Implement and document.
21761         * tests/test-update-copyright.sh: Test.
21762
21763 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21764
21765         update-copyright: support omitted "(C)"
21766         * build-aux/update-copyright: Implement and document.  Also,
21767         allow variable whitespace before "(C)".
21768         * tests/test-update-copyright.sh: Test.
21769
21770 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21771
21772         update-copyright: don't trip on non-FSF copyright statements
21773         * build-aux/update-copyright: Fix so that the first correctly
21774         formatted FSF copyright statement is recognized no matter what
21775         appears before it.  Update documentation.
21776         * tests/test-update-copyright.sh: Test that.
21777
21778 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21779
21780         update-copyright: clean up code a little
21781         * build-aux/update-copyright: Append "_re" to the name of any
21782         variable holding a regular expression.
21783         Replace "old" and "new" with "stmt" in variable names.
21784         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
21785         handled correctly.
21786         Format code more consistently.
21787
21788 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
21789
21790         update-copyright-tests: improve portability
21791         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
21792         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
21793
21794 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21795
21796         update-copyright: support @copyright{} and &copy;
21797         * build-aux/update-copyright: Implement and document.
21798         * tests/test-update-copyright.sh: Test.
21799
21800 2009-08-04  Jim Meyering  <meyering@redhat.com>
21801
21802         update-copyright-tests: correctly test EOL=\r\n handling
21803         * tests/test-update-copyright.sh: Put \r at the end of some lines
21804         for the dos-eol tests.  Based on a patch by Joel E. Denny.
21805
21806         maint.mk: make update-copyright exclusion list more configurable
21807         * top/maint.mk (update-copyright): Default to excluding COPYING,
21808         but allow an override, in case someone does want to update that file.
21809
21810         maint.mk: don't update copyright date in COPYING
21811         * top/maint.mk (update-copyright): Exclude COPYING.
21812
21813         maint.mk: add a copyright-updating rule
21814         * top/maint.mk (update-copyright): New rule.
21815         Derived from coreutils/Makefile.am.
21816
21817         update-copyright: rename some variables
21818         * build-aux/update-copyright: Rename a few variables for clarity.
21819         Tweak syntax.  List Joel E. Denny as coauthor.
21820
21821 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
21822
21823         update-copyright: fix bug for 2-digit last year and add tests
21824         * build-aux/update-copyright: Fix bug.
21825         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
21826         specified.
21827         * modules/update-copyright-tests: New
21828         * tests/test-update-copyright.sh: New.
21829
21830 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21831
21832         update-copyright: handle leading tabs in line prefix
21833         * build-aux/update-copyright: Count leading tabs as 8 spaces
21834         when computing margin.  This helps with the formatting of
21835         ChangeLogs, for example.
21836         Fix documentation a little.
21837
21838 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21839
21840         update-copyright: support EOL=\r\n
21841         * build-aux/update-copyright: Implement that.
21842
21843 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
21844
21845         update-copyright: automatically format copyright statements
21846         * build-aux/update-copyright: Implement that.
21847         Also, be a little more predictable and safer by always failing
21848         when the full copyright format is not perfectly recognized as an
21849         unbroken whole.  Discussed at
21850         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
21851         Rewrite documentation.
21852
21853 2009-08-03  Bruno Haible  <bruno@clisp.org>
21854
21855         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
21856
21857 2009-08-02  Bruno Haible  <bruno@clisp.org>
21858
21859         Tests for module 'uname'.
21860         * modules/uname-tests: New file.
21861         * tests/test-uname.c: New file.
21862
21863         New module 'uname'.
21864         * lib/uname.c: New file.
21865         * m4/uname.m4: New file.
21866         * modules/uname: New file.
21867         * doc/posix-functions/uname.texi: Mention the new module.
21868
21869 2009-08-02  Bruno Haible  <bruno@clisp.org>
21870
21871         Tests for module 'sys_utsname'.
21872         * modules/sys_utsname-tests: New file.
21873         * tests/test-sys_utsname.c: New file.
21874
21875         New module 'sys_utsname'.
21876         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
21877         * m4/sys_utsname_h.m4: New file.
21878         * modules/sys_utsname: New file.
21879         * doc/posix-headers/sys_utsname.texi: Mention the new module.
21880
21881 2009-08-02  Bruno Haible  <bruno@clisp.org>
21882
21883         Implicitly initialize the sockets library.
21884         * lib/gethostname.c: Include sockets.h.
21885         (rpl_gethostname): Invoke gl_sockets_startup.
21886         * lib/socket.c: Include sockets.h.
21887         (rpl_socket): Invoke gl_sockets_startup.
21888         * modules/gethostname (Depends-on): Add sockets.
21889         * modules/socket (Depends-on): Likewise.
21890         * tests/test-poll.c: Don't include sockets.h.
21891         (main): Don't invoke gl_sockets_startup.
21892         * tests/test-select.c: Don't include sockets.h.
21893         (main): Don't invoke gl_sockets_startup.
21894
21895 2009-08-02  Bruno Haible  <bruno@clisp.org>
21896
21897         Allow multiple calls to gl_sockets_startup.
21898         * lib/sockets.c (initialized_sockets_version): New variable.
21899         (gl_sockets_startup): Do nothing if already called for this or a higher
21900         version.
21901         (gl_sockets_cleanup): Reset initialized_sockets_version.
21902
21903 2009-08-03  Simon Josefsson  <simon@josefsson.org>
21904
21905         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
21906         different project/version.
21907
21908 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
21909             Bruno Haible  <bruno@clisp.org>
21910
21911         Tests for module 'pipe-filter-gi'.
21912         * modules/pipe-filter-gi-tests: New file.
21913         * tests/test-pipe-filter-gi1.sh: New file.
21914         * tests/test-pipe-filter-gi1.c: New file.
21915         * tests/test-pipe-filter-gi2.sh: New file.
21916         * tests/test-pipe-filter-gi2-main.c: New file.
21917         * tests/test-pipe-filter-gi2-child.c: New file.
21918
21919         New module 'pipe-filter-gi'.
21920         * lib/pipe-filter-gi.c: New file.
21921         * modules/pipe-filter-gi: New file.
21922
21923 2009-08-02  Bruno Haible  <bruno@clisp.org>
21924             Paolo Bonzini  <bonzini@gnu.org>
21925
21926         Tests for module 'pipe-filter-ii'.
21927         * modules/pipe-filter-ii-tests: New file.
21928         * tests/test-pipe-filter-ii1.sh: New file.
21929         * tests/test-pipe-filter-ii1.c: New file.
21930         * tests/test-pipe-filter-ii2.sh: New file.
21931         * tests/test-pipe-filter-ii2-main.c: New file.
21932         * tests/test-pipe-filter-ii2-child.c: New file.
21933
21934         New module 'pipe-filter-ii'.
21935         * lib/pipe-filter.h: New file.
21936         * lib/pipe-filter-ii.c: New file.
21937         * lib/pipe-filter-aux.h: New file.
21938         * modules/pipe-filter-ii: New file.
21939
21940 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21941
21942         * lib/gc-libgcrypt.c: Change copyright to FSF.
21943         * lib/gc-gnulib.c: Likewise.
21944
21945 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
21946
21947         * lib/gethostname.c: Include limits.h.
21948
21949 2009-08-02  Simon Josefsson  <simon@josefsson.org>
21950             Bruno Haible  <bruno@clisp.org>
21951
21952         Ensure HOST_NAME_MAX as part of the gethostname module.
21953         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
21954         define also HOST_NAME_MAX.
21955         * tests/test-gethostname.c: Include <limits.h>.
21956         (main): Check also HOST_NAME_MAX.
21957         * doc/posix-headers/limits.texi: Document the mingw problem.
21958
21959 2009-08-02  Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/gethostname.c (gethostname): Fix handling of large len argument.
21962         Add comments.
21963
21964 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21965
21966         * lib/gethostname.c: Add Windows wrapper.
21967         * m4/gethostname.m4: Look for gethostname in -lws2_32.
21968         * modules/gethostname: Depend on sys_socket & errno, for also
21969         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
21970         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
21971
21972 2009-07-31  Jim Meyering  <meyering@redhat.com>
21973
21974         getloadavg: fix symbol name in comment
21975         * lib/getloadavg.c: Correct a typo I introduced when adding
21976         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
21977         Matt Kraai spotted the problem.
21978
21979 2009-07-29  Matt Kraai  <mkraai@beckman.com>
21980
21981         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
21982         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
21983         code also if ! defined N_NAME_POINTER.
21984         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
21985         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
21986         but the n_name member is a 12-byte array.
21987
21988 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
21989
21990         update-copyright: generalize comment handling
21991         * build-aux/update-copyright: Handle copyright statements
21992         within more comment styles.
21993         Document usage.
21994         Report any file with an external copyright holder or parse failure.
21995
21996 2009-07-29  Jim Meyering  <meyering@redhat.com>
21997
21998         mktime: correct setting of REPLACE_MKTIME
21999         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
22000
22001         update-copyright: new module
22002         * modules/update-copyright: New file.
22003         * build-aux/update-copyright: New file.
22004         * MODULES.html.sh (maint+release support): Add update-copyright.
22005
22006 2009-07-27  Bruno Haible  <bruno@clisp.org>
22007
22008         Fix compilation error when <ctime> is used and mktime is replaced.
22009         * lib/time.in.h (mktime): New declaration.
22010         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
22011         REPLACE_MKTIME instead of defining mktime in config.h.
22012         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
22013         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
22014         Reported by Ross McFarland <rwmcfa1@neces.com>.
22015
22016 2009-07-27  Bruno Haible  <bruno@clisp.org>
22017
22018         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
22019         Reported by Matt Kraai <mkraai@beckman.com>.
22020
22021 2009-07-25  Jim Meyering  <meyering@redhat.com>
22022
22023         maint.mk: avoid warnings about missing files
22024         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
22025         diagnostic when .prev-version does not exist.
22026         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
22027         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
22028         nonexistent cfg.mk.
22029         Suggestions from Simon Josefsson.
22030
22031 2009-07-25  Bruno Haible  <bruno@clisp.org>
22032
22033         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
22034         defined as macros. Needed on QNX 6.4.1.
22035         Reported by Matt Kraai <mkraai@beckman.com>.
22036
22037 2009-07-23  Jim Meyering  <meyering@redhat.com>
22038
22039         maint.mk: invoke "make dist" with a working value of XZ_OPT
22040         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
22041
22042 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
22043
22044         Make fseeko.c compile on QNX.
22045         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
22046
22047 2009-07-22  Peter Simons  <simons@cryp.to>
22048
22049         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
22050         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
22051         * lib/md4.h: Likewise.
22052         * lib/md5.h: Likewise.
22053         * lib/sha1.h: Likewise.
22054         * lib/sha256.h: Likewise.
22055         * lib/sha512.h: Likewise.
22056
22057         tests-sha1: don't assign literal string to 'char *' variable
22058         * tests/test-sha1.c (main): Declare locals with "const" to match
22059         attributes of the right hand side.
22060
22061 2009-07-21  Eric Blake  <ebb9@byu.net>
22062
22063         dup2: fix more mingw problems
22064         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
22065         fd to itself.
22066         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22067         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
22068         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
22069         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
22070         care of mingw bugs.
22071
22072 2009-07-21  Jim Meyering  <meyering@redhat.com>
22073
22074         vc-list-files: avoid failure when /bin/sh is dash
22075         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
22076         On some Debian based systems, /bin/sh is a symlink to dash, and running
22077         this command would omit the "/" following each 'tests' prefix:
22078           dash -x build-aux/vc-list-files -C . tests
22079         That is because bash and dash work differently:
22080           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
22081           bash ok
22082           dash odd
22083
22084 2009-07-21  Eric Blake  <ebb9@byu.net>
22085
22086         dup2-tests: test previous patch
22087         * modules/dup2-tests: New file.
22088         * tests/test-dup2.c: Likewise.
22089         * tests/test-open.c (main): Avoid unspecified behavior.
22090         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
22091         test.
22092
22093         dup2: work around mingw and cygwin 1.5 bug
22094         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
22095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22096         * modules/unistd (Makefile.am): Substitute it.
22097         * lib/unistd.in.h (dup2): Declare the replacement.
22098         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
22099         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
22100         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
22101         * modules/execute (Depends-on): Add dup2.
22102         * modules/fseterr (Depends-on): Likewise.
22103         * modules/pipe (Depends-on): Likewise.
22104         * modules/posix_spawn-internal (Depends-on): Likewise.
22105
22106 2009-07-21  Bruno Haible  <bruno@clisp.org>
22107
22108         * modules/.gitattributes: New file.
22109
22110 2009-07-20  Bruno Haible  <bruno@clisp.org>
22111
22112         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
22113         (main): Use it.
22114
22115 2009-07-20  Eric Blake  <ebb9@byu.net>
22116
22117         test-pipe: make a bit more robust.
22118         * tests/test-pipe.c (myerr): Allow error messages regardless of
22119         what we do to stderr.
22120         (test_pipe): Rearrange to avoid deadlock.
22121         (child_main): Try a larger read, to ensure we avoided deadlock.
22122         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
22123         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
22124         if misused.
22125
22126 2009-07-19  Jim Meyering  <meyering@redhat.com>
22127
22128         fts: avoid false-positive cycle-detection
22129         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
22130         for each new command line argument.
22131
22132 2009-07-19  Bruno Haible  <bruno@clisp.org>
22133
22134         Fix build error on mingw with the modules sys_select and unistd.
22135         * modules/acl-tests (Depends-on): Add close.
22136         * modules/binary-io-tests (Depends-on): Likewise.
22137         * modules/closein-tests (Depends-on): Likewise.
22138         * modules/flock-tests (Depends-on): Likewise.
22139         * modules/fsync-tests (Depends-on): Likewise.
22140         * modules/lseek-tests (Depends-on): Likewise.
22141         * modules/pipe-tests (Depends-on): Likewise.
22142         * modules/posix_spawn-tests (Depends-on): Likewise.
22143         * modules/posix_spawnp-tests (Depends-on): Likewise.
22144         * modules/stat-time-tests (Depends-on): Likewise.
22145         * modules/yesno-tests (Depends-on): Likewise.
22146
22147 2009-07-19  Bruno Haible  <bruno@clisp.org>
22148
22149         Unify conditionals.
22150         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
22151         macros, not at the compiler macros.
22152         * lib/pipe.c: Likewise.
22153         * lib/execute.c: Likewise.
22154         * lib/spawni.c: Likewise.
22155
22156 2009-07-19  Bruno Haible  <bruno@clisp.org>
22157
22158         Fix handling of closed stdin/stdout/stderr on mingw.
22159         * lib/w32spawn.h: Include unistd.h.
22160         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
22161         file descriptor with O_NOINHERIT flag.
22162         (fd_safer_noinherit): New function, based on fd-safer.c.
22163         (dup_safer_noinherit): New function, based on dup-safer.c.
22164         (undup_safer_noinherit): New function.
22165         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
22166         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
22167         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
22168         instead of fd_safer.
22169         * tests/test-pipe.c: Include <windows.h>.
22170         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
22171
22172         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
22173         from main.
22174         (test_pipe): Pass an extra argument for disambiguation.
22175         (main): Invoke parent_main or child_main.
22176
22177         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
22178         consistently.
22179
22180 2009-07-18  Eric Blake  <ebb9@byu.net>
22181
22182         test-pipe: fix mingw build
22183         * tests/test-pipe.c (main): Avoid fcntl on mingw.
22184
22185 2009-07-18  Bruno Haible  <bruno@clisp.org>
22186
22187         * modules/pipe-tests (Makefile.am): Fix typo.
22188
22189 2009-07-18  Eric Blake  <ebb9@byu.net>
22190
22191         error: fix mingw build
22192         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
22193         Reported by Bruno Haible.
22194
22195         error: avoid undefined use of stdout
22196         * lib/error.c (error, error_at_line): Check that fd 1 is open
22197         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
22198         is handling faults and the close_stdout module wants to report the
22199         detection of closed stdout as an error.
22200
22201 2009-07-17  Eric Blake  <ebb9@byu.net>
22202
22203         pipe: be robust in face of closed fds
22204         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
22205         should cause child to misbehave.
22206         * modules/pipe-tests: New module.
22207         * tests/test-pipe.c: New file.
22208         * tests/test-pipe.sh: New file.
22209         Reported by Akim Demaille.
22210
22211 2009-07-14  Bruno Haible  <bruno@clisp.org>
22212
22213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
22214         Reported by anonymous kc.
22215
22216 2009-07-07  Jim Meyering  <meyering@redhat.com>
22217
22218         maint.mk: don't look for translatable strings in *.m4 or *.mk
22219         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
22220         when searching for translatable strings.
22221
22222 2009-07-05  Jim Meyering  <meyering@redhat.com>
22223
22224         remove superfluous parentheses in STREQ definition
22225         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
22226         * lib/getugroups.c (STREQ): Likewise.
22227         * lib/fnmatch.c (STREQ): Likewise.
22228         Spotted by Bruno Haible.
22229
22230 2009-07-04  Jim Meyering  <meyering@redhat.com>
22231
22232         argv-iter: new module
22233         * MODULES.html.sh: Add argv-iter.
22234         * lib/argv-iter.c, lib/argv-iter.h: New files.
22235         * modules/argv-iter: New file.
22236         * modules/argv-iter-tests: New file.
22237         * tests/test-argv-iter.c: Test it.
22238
22239 2009-07-04  Bruno Haible  <bruno@clisp.org>
22240
22241         Fix assertion.
22242         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
22243         contains more exact copies of a given entry than file2, leave the extra
22244         copies unpaired rather than aborting.
22245         Reported by Eric Blake.
22246
22247 2009-07-02  Bruno Haible  <bruno@clisp.org>
22248
22249         Speedup git-merge-changelog for git cherry-pick.
22250         * lib/git-merge-changelog.c (struct entries_mapping): New type.
22251         (entries_mapping_get): New function, extracted from compute_mapping.
22252         (entries_mapping_reverse_get): New function.
22253         (compute_mapping): Add a 'full' argument. Return the result in a
22254         'struct entries_mapping'.
22255         (main): Update. Access the mappings through entries_mapping_get.
22256         Reported by Eric Blake.
22257
22258 2009-07-02  Bruno Haible  <bruno@clisp.org>
22259
22260         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
22261         best_i.
22262
22263 2009-07-02  Bruno Haible  <bruno@clisp.org>
22264
22265         Speed up approximate search for matching ChangeLog entries.
22266         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
22267         argument. Call fstrcmp_bounded instead of fstrcmp.
22268         (compute_mapping, try_split_merged_entry, main): Update callers.
22269
22270 2009-07-02  Bruno Haible  <bruno@clisp.org>
22271
22272         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
22273
22274 2009-06-30  Bruno Haible  <bruno@clisp.org>
22275
22276         Reduce the number of uc_is_cased calls.
22277         * lib/unicase.h (casing_suffix_context_t): Add
22278         'first_char_except_ignorable' field.
22279         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
22280         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
22281         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
22282         Update initializer.
22283         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
22284         case-ignorable characters.
22285         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
22286         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
22287         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
22288         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
22289         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
22290
22291 2009-06-30  Bruno Haible  <bruno@clisp.org>
22292
22293         Tests for module 'unicase/ignorable'.
22294         * modules/unicase/ignorable-tests: New file.
22295         * tests/unicase/test-ignorable.c: New file, generated by
22296         gen-uni-tables.
22297
22298         Tests for module 'unicase/cased'.
22299         * modules/unicase/cased-tests: New file.
22300         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
22301         * tests/unicase/test-predicate-part1.h: New file, derived from
22302         tests/unictype/test-predicate-part1.h.
22303         * tests/unicase/test-predicate-part2.h: New file, same as
22304         tests/unictype/test-predicate-part2.h.
22305
22306         Fix evaluation of "Before C" condition of FINAL_SIGMA.
22307         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
22308         (output_casing_properties): New function.
22309         (main): Call it.
22310         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
22311         * lib/unicase/cased.c: Include unictype/bitmap.h.
22312         (uc_is_cased): Define through a bitmap lookup.
22313         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
22314         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
22315         (uc_is_case_ignorable): Define through a bitmap lookup.
22316         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
22317         lib/unictype/bitmap.h.
22318         (Depends-on): Add inline. Clean up.
22319         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
22320         lib/unictype/bitmap.h.
22321         (Depends-on): Add inline. Clean up.
22322         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
22323         recognition.
22324         * tests/unicase/test-u16-tolower.c (main): Likewise.
22325         * tests/unicase/test-u32-tolower.c (main): Likewise.
22326
22327 2009-06-30  Bruno Haible  <bruno@clisp.org>
22328
22329         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
22330         * lib/unicase/u16-casemap.c: Likewise.
22331         * lib/unicase/u32-casemap.c: Likewise.
22332
22333 2009-06-29  Bruno Haible  <bruno@clisp.org>
22334
22335         Define u32_casefold as a wrapper around u32_ct_casefold.
22336         * lib/unicase/u32-casefold.c: Update.
22337         * modules/unicase/u32-casefold (Depends-on): Add
22338         unicase/u32-ct-casefold, unicase/empty-prefix-context,
22339         unicase/empty-suffix-context. Clean up.
22340
22341         Define u16_casefold as a wrapper around u16_ct_casefold.
22342         * lib/unicase/u16-casefold.c: Update.
22343         * modules/unicase/u16-casefold (Depends-on): Add
22344         unicase/u16-ct-casefold, unicase/empty-prefix-context,
22345         unicase/empty-suffix-context. Clean up.
22346
22347         Define u8_casefold as a wrapper around u8_ct_casefold.
22348         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
22349         * lib/unicase/u8-casefold.c: Update.
22350         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
22351         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22352
22353         Define u32_totitle as a wrapper around u32_ct_totitle.
22354         * lib/unicase/u32-totitle.c: Update.
22355         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
22356         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22357
22358         Define u16_totitle as a wrapper around u16_ct_totitle.
22359         * lib/unicase/u16-totitle.c: Update.
22360         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
22361         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22362
22363         Define u8_totitle as a wrapper around u8_ct_totitle.
22364         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
22365         functions.
22366         (FUNC): Delegate to U_CT_TOTITLE.
22367         * lib/unicase/u8-totitle.c: Update.
22368         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
22369         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
22370
22371         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
22372         invocation.
22373         * modules/unicase/u32-tolower (Depends-on): Add
22374         unicase/empty-prefix-context, unicase/empty-suffix-context.
22375
22376         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
22377         invocation.
22378         * modules/unicase/u16-tolower (Depends-on): Add
22379         unicase/empty-prefix-context, unicase/empty-suffix-context.
22380
22381         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
22382         * modules/unicase/u8-tolower (Depends-on): Add
22383         unicase/empty-prefix-context, unicase/empty-suffix-context.
22384
22385         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
22386         invocation.
22387         * modules/unicase/u32-toupper (Depends-on): Add
22388         unicase/empty-prefix-context, unicase/empty-suffix-context.
22389
22390         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
22391         invocation.
22392         * modules/unicase/u16-toupper (Depends-on): Add
22393         unicase/empty-prefix-context, unicase/empty-suffix-context.
22394
22395         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
22396         * modules/unicase/u8-toupper (Depends-on): Add
22397         unicase/empty-prefix-context, unicase/empty-suffix-context.
22398
22399         New module 'unicase/u32-ct-casefold'.
22400         * lib/unicase/u32-ct-casefold.c: New file.
22401         * modules/unicase/u32-ct-casefold: New file.
22402
22403         New module 'unicase/u16-ct-casefold'.
22404         * lib/unicase/u16-ct-casefold.c: New file.
22405         * modules/unicase/u16-ct-casefold: New file.
22406
22407         New module 'unicase/u8-ct-casefold'.
22408         * lib/unicase/u8-ct-casefold.c: New file.
22409         * lib/unicase/u-ct-casefold.h: New file, derived from
22410         lib/unicase/u-casefold.h.
22411         * modules/unicase/u8-ct-casefold: New file.
22412
22413         New module 'unicase/u32-ct-totitle'.
22414         * lib/unicase/u32-ct-totitle.c: New file.
22415         * modules/unicase/u32-ct-totitle: New file.
22416
22417         New module 'unicase/u16-ct-totitle'.
22418         * lib/unicase/u16-ct-totitle.c: New file.
22419         * modules/unicase/u16-ct-totitle: New file.
22420
22421         New module 'unicase/u8-ct-totitle'.
22422         * lib/unicase/u8-ct-totitle.c: New file.
22423         * lib/unicase/u-ct-totitle.h: New file, derived from
22424         lib/unicase/u-totitle.h.
22425         * modules/unicase/u8-ct-totitle: New file.
22426
22427         New module 'unicase/u32-ct-tolower'.
22428         * lib/unicase/u32-ct-tolower.c: New file.
22429         * modules/unicase/u32-ct-tolower: New file.
22430
22431         New module 'unicase/u16-ct-tolower'.
22432         * lib/unicase/u16-ct-tolower.c: New file.
22433         * modules/unicase/u16-ct-tolower: New file.
22434
22435         New module 'unicase/u8-ct-tolower'.
22436         * lib/unicase/u8-ct-tolower.c: New file.
22437         * modules/unicase/u8-ct-tolower: New file.
22438
22439         New module 'unicase/u32-ct-toupper'.
22440         * lib/unicase/u32-ct-toupper.c: New file.
22441         * modules/unicase/u32-ct-toupper: New file.
22442
22443         New module 'unicase/u16-ct-toupper'.
22444         * lib/unicase/u16-ct-toupper.c: New file.
22445         * modules/unicase/u16-ct-toupper: New file.
22446
22447         New module 'unicase/u8-ct-toupper'.
22448         * lib/unicase/u8-ct-toupper.c: New file.
22449         * modules/unicase/u8-ct-toupper: New file.
22450
22451         Add context arguments to u*_casemap functions.
22452         * lib/unicase/unicasemap.h: Include unicase.h.
22453         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
22454         suffix_context arguments.
22455         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
22456         functions.
22457         (FUNC): Add prefix_context and suffix_context arguments. Use
22458         uc_is_cased and uc_is_case_ignorable.
22459         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
22460         * lib/unicase/u16-casemap.c: Likewise.
22461         * lib/unicase/u32-casemap.c: Likewise.
22462         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
22463         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22464         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
22465         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22466         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
22467         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
22468
22469         New module 'unicase/u32-suffix-context'.
22470         * lib/unicase/u32-suffix-context.c: New file.
22471         * modules/unicase/u32-suffix-context: New file.
22472
22473         New module 'unicase/u16-suffix-context'.
22474         * lib/unicase/u16-suffix-context.c: New file.
22475         * modules/unicase/u16-suffix-context: New file.
22476
22477         New module 'unicase/u8-suffix-context'.
22478         * lib/unicase/u8-suffix-context.c: New file.
22479         * lib/unicase/u-suffix-context.h: New file.
22480         * modules/unicase/u8-suffix-context: New file.
22481
22482         New module 'unicase/empty-suffix-context'.
22483         * lib/unicase/empty-suffix-context.c: New file.
22484         * modules/unicase/empty-suffix-context: New file.
22485
22486         New module 'unicase/u32-prefix-context'.
22487         * lib/unicase/u32-prefix-context.c: New file.
22488         * modules/unicase/u32-prefix-context: New file.
22489
22490         New module 'unicase/u16-prefix-context'.
22491         * lib/unicase/u16-prefix-context.c: New file.
22492         * modules/unicase/u16-prefix-context: New file.
22493
22494         New module 'unicase/u8-prefix-context'.
22495         * lib/unicase/u8-prefix-context.c: New file.
22496         * lib/unicase/u-prefix-context.h: New file.
22497         * lib/unicase/context.h: New file.
22498         * modules/unicase/u8-prefix-context: New file.
22499
22500         New module 'unicase/empty-prefix-context'.
22501         * lib/unicase/empty-prefix-context.c: New file.
22502         * modules/unicase/empty-prefix-context: New file.
22503
22504         New module 'unicase/ignorable'.
22505         * lib/unicase/ignorable.c: New file.
22506         * modules/unicase/ignorable: New file.
22507
22508         New module 'unicase/cased'.
22509         * lib/unicase/caseprop.h: New file.
22510         * lib/unicase/cased.c: New file.
22511         * modules/unicase/cased: New file.
22512
22513         New functions for case mapping of substrings.
22514         * lib/unicase.h (casing_prefix_context_t): New type.
22515         (unicase_empty_prefix_context): New variable.
22516         (u8_casing_prefix_context, u16_casing_prefix_context,
22517         u32_casing_prefix_context, u8_casing_prefixes_context,
22518         u16_casing_prefixes_context, u32_casing_prefixes_context): New
22519         declarations.
22520         (casing_suffix_context_t): New type.
22521         (unicase_empty_suffix_context): New variable.
22522         (u8_casing_suffix_context, u16_casing_suffix_context,
22523         u32_casing_suffix_context, u8_casing_suffixes_context,
22524         u16_casing_suffixes_context, u32_casing_suffixes_context,
22525         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
22526         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
22527         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
22528         declarations.
22529
22530 2009-06-28  Jim Meyering  <meyering@redhat.com>
22531
22532         boostrap: indent only with spaces
22533         * build-aux/bootstrap: Indent only with spaces, never TABs.
22534
22535         bootstrap: split long lines
22536         * build-aux/bootstrap: Keep line length < 80.
22537
22538         bootstrap: sync from coreutils
22539         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
22540         just as autoreconf does.  Verify a list of prerequisite
22541         package-name,version-number pairs if defined in bootstrap.conf.
22542         Refer to README-prereq, if prerequisites are not satisfied.
22543
22544 2009-06-27  Eric Blake  <ebb9@byu.net>
22545
22546         tests: add test for bogus NULL definition
22547         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
22548         * tests/test-stdlib.c: Likewise.
22549         * tests/test-string.c: Likewise.
22550         * tests/test-locale.c: Likewise.
22551         * tests/test-unistd.c: Likewise.
22552         * modules/stdio-tests (Depends-on): Add verify.
22553         * modules/stdlib-tests (Depends-on): Likewise.
22554         * modules/string-tests (Depends-on): Likewise.
22555         * modules/locale-tests (Depends-on): Likewise.
22556         * modules/unistd-tests (Depends-on): Likewise.
22557
22558 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
22559
22560         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
22561         self-explaining comment.
22562         * m4/selinux-selinux-h: Update serial.
22563         (gl_LIBSELINUX): New macro, adding a warning for missing development
22564         packages to code extracted from...
22565         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
22566         Add warning for missing development packages here, too.
22567
22568 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
22569
22570         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
22571
22572 2009-06-25  Eric Blake  <ebb9@byu.net>
22573
22574         version-etc: fix regression
22575         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
22576         gcc.
22577         (version_etc): Use it, to catch bugs with trailing NULL.
22578         * lib/version-etc.c (version_etc_arn): Delete unused argument.
22579         (version_etc_va): Fix logic bug.
22580         * modules/version-etc-tests: Add test.
22581         * tests/test-version-etc.c: New file.
22582         * tests/test-version-etc.sh: Likewise.
22583
22584 2009-06-25  Sam Steingold  <sds@gnu.org>
22585
22586         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
22587         mbtowc declaration.
22588
22589 2009-06-25  Eric Blake  <ebb9@byu.net>
22590
22591         fpurge: migrate into <stdio.h>
22592         * lib/fpurge.h: Delete...
22593         * lib/stdio.in.h (fpurge): ...and declare here, instead.
22594         * lib/fpurge.c (fpurge): Change declaring header.
22595         * modules/fpurge (Files): Drop deleted file.
22596         (Depends-on): Add stdio.
22597         (configure.ac): Set witness.
22598         * modules/stdio (Makefile.am): Support fpurge macros.
22599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22600         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
22601         * lib/fflush.c: Update client.
22602         * tests/test-fpurge.c: Likewise.
22603         * NEWS: Mention the change.
22604
22605 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22606
22607         * lib/argp-version-etc.c (program_authors): Add const
22608         qualifier.
22609         * lib/version-etc.c: Fix typos in the comments.
22610         * modules/argp-version-etc: Depends on version-etc.
22611
22612 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22613
22614         argp-version-etc: new module.
22615
22616         * lib/argp-version-etc.c: New file.
22617         * lib/argp-version-etc.h: New file.
22618         * modules/argp-version-etc: New file.
22619         * modules/argp-version-etc-tests: New file.
22620         * tests/test-argp-version-etc.c: New test.
22621         * tests/test-argp-version-etc-1.sh: New test.
22622
22623 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22624
22625         Provide additional interfaces and documentation for version-etc
22626         module.
22627
22628         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
22629         interfaces.
22630         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
22631         prototypes.
22632
22633 2009-06-24  Bruno Haible  <bruno@clisp.org>
22634
22635         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
22636         HAVE_LIB${NAME} macro.
22637         Reported by Sam Steingold <sds@gnu.org>.
22638
22639 2009-06-23  Simon Josefsson  <simon@josefsson.org>
22640
22641         * modules/hash-tests (test_hash_LDADD): Link to libintl when
22642         needed.
22643
22644 2009-06-21  Bruno Haible  <bruno@clisp.org>
22645
22646         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
22647         work.
22648         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
22649         together with LIB${NAME}, LTLIB${NAME}.
22650         Reported by Sam Steingold <sds@gnu.org>.
22651
22652 2009-06-20  Jim Meyering  <meyering@redhat.com>
22653
22654         tests: make sc_require_test_exit_idiom more generic
22655         * top/maint.mk (Exit_witness_file): New overridable variable.
22656         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
22657         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
22658
22659 2009-06-19  Jim Meyering  <meyering@redhat.com>
22660
22661         hash: reverse order of src/dst parameters in an internal interface
22662         * lib/hash.c (transfer_entries): Reverse order of parameters to
22663         put DST before SRC.  Adjust callers.
22664
22665         tests: test-hash: avoid wholesale duplication
22666         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
22667         Instead, use a loop and add a single conditional.
22668
22669         tests: test-hash: allow seed selection via a command line argument
22670         * tests/test-hash.c (get_seed): New function.
22671         (main): Use it.
22672
22673 2009-06-19  Eric Blake  <ebb9@byu.net>
22674
22675         hash: avoid memory leak on allocation failure
22676         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
22677         failure.  Factor repeated algorithm...
22678         (transfer_entries): ...into new helper routine.
22679         (hash_delete): React to hash_rehash return value.
22680
22681         hash: reduce memory pressure in hash_rehash no-op case
22682         * lib/hash.c (next_prime): Avoid overflow.
22683         (hash_initialize): Factor bucket size computation...
22684         (compute_bucket_size): ...into new helper function.
22685         (hash_rehash): Use new function and open coding to reduce memory
22686         pressure, and avoid a memory leak in USE_OBSTACK code.
22687         Reported by Jim Meyering.
22688
22689 2009-06-18  Eric Blake  <ebb9@byu.net>
22690
22691         hash: make rotation more obvious
22692         * modules/hash (Depends-on): Add bitrotate and stdint.
22693         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
22694         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
22695         (SIZE_MAX): Rely on headers for definition.
22696         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
22697         (raw_hasher): Use rotr_sz.
22698         Suggested by Jim Meyering.
22699
22700         hash: fix memory leak in last patch
22701         * lib/hash.c (hash_rehash): Avoid memory leak.
22702
22703         hash: avoid no-op rehashing
22704         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
22705
22706         hash: provide default callback functions
22707         * lib/hash.c (raw_hasher, raw_comparator): New functions.
22708         (hash_initialize): Use them as defaults.
22709         * tests/test-hash.c (main): Test this.
22710
22711         hash: minor optimization
22712         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
22713         when possible.
22714         (hash_initialize): Document this promise.
22715         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
22716         * tests/test-hash.c (hash_compare_strings): Test this.
22717
22718 2009-06-18  Bruno Haible  <bruno@clisp.org>
22719
22720         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
22721         going to be replaced anyway.
22722
22723 2009-06-18  Bruno Haible  <bruno@clisp.org>
22724
22725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
22726         in one place.
22727         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
22728         be replaced anyway.
22729
22730 2009-06-18  Eric Blake  <ebb9@byu.net>
22731
22732         hash: check for resize before insertion
22733         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
22734         threshold before insertion, so that a pathological hash_rehash
22735         that fills every bucket can still trigger another rehash.
22736
22737 2009-06-18  Jim Meyering  <meyering@redhat.com>
22738
22739         hash-tests: add a loop around the small tests
22740         * tests/test-hash.c (main): Repeat small tests with selected
22741         small initial table sizes.
22742
22743 2009-06-17  Eric Blake  <ebb9@byu.net>
22744
22745         hash: minor cleanups
22746         * lib/hash.h (hash_entry): Make opaque, by moving...
22747         * lib/hash.c (hash_entry): ...here.
22748         (hash_insert): Clarify restrictions on what can be inserted.
22749         (hash_get_next): Clarify when it is safe to remove an element
22750         during traversal.
22751         (check_tuning): Skip verification when tuning is known safe.
22752         (hash_initialize): Clarify restrictions on tuning.
22753
22754 2009-06-17  Jim Meyering  <jim@meyering.net>
22755         and Eric Blake  <ebb9@byu.net>
22756
22757         hash-tests: new module
22758         * modules/hash-tests: New file.
22759         * tests/test-hash.c: New file.
22760
22761 2009-06-17  Eric Blake  <ebb9@byu.net>
22762
22763         strstr-simple: document new module
22764         * MODULES.html.sh: Document new module.
22765
22766         strstr, strcasestr: replace on platforms with broken memchr
22767         * modules/strstr: Split into...
22768         * modules/strstr-simple: ...new module that does not care about
22769         performance, but does care about glibc bug.
22770         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
22771         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
22772         if platform memchr is broken, per Debian bug 521737.
22773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
22774         memchr.
22775         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
22776         * doc/posix-functions/strstr.texi (strstr): Document the fix.
22777         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22778         * modules/mountlist (Depends-on): Add strstr-simple.
22779         * modules/gen-uni-tables (Depends-on): Likewise.
22780         * modules/argz (Depends-on): Add strstr.
22781
22782 2009-06-17  Bruno Haible  <bruno@clisp.org>
22783
22784         * modules/posix_spawn-internal (Depends-on): Add errno.
22785
22786 2009-06-17  Bruno Haible  <bruno@clisp.org>
22787
22788         Define missing ESTALE on Interix 3.5.
22789         * lib/errno.in.h (ESTALE): Assign a value if missing.
22790         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
22791         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
22792         missing.
22793         * doc/posix-headers/errno.texi: Mention the Interix bug.
22794         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
22795
22796 2009-06-15  Eric Blake  <ebb9@byu.net>
22797
22798         memchr, memchr2: add valgrind exception
22799         * lib/memchr.valgrind: New file.
22800         * lib/memchr2.valgrind: New file.
22801         * modules/memchr (Files): Distribute valgrind file.
22802         * modules/memchr2 (Files): Likewise.
22803
22804         docs: memchr is no longer obsolete
22805         * MODULES.html.sh: Move memchr from obsolete to string.h section.
22806         * lib/string.in.h (memchr): Simplify logic.
22807
22808 2009-06-14  Jim Meyering  <meyering@redhat.com>
22809
22810         link-follow: fix the "checking..." message to not mention trailing slash
22811         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
22812         never considered trailing slashes.
22813
22814 2009-06-14  Bruno Haible  <bruno@clisp.org>
22815
22816         * m4/memchr.m4: Mention also the bug on IA-64.
22817         * doc/posix-functions/memchr.texi: Likewise.
22818
22819 2009-06-12  Eric Blake  <ebb9@byu.net>
22820
22821         memchr: detect broken x86_64 and alpha implementations
22822         * modules/memchr-tests (Depends-on): Move mmap detection...
22823         * modules/memchr (Depends-on): ...here.
22824         (configure.ac): Set indicator.
22825         * lib/string.in.h (memchr): Declare replacement.
22826         * modules/string (Makefile.am): Trigger replacement.
22827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22828         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
22829         bugs.
22830         * doc/posix-functions/memchr.texi (memchr): Document the bug.
22831         * modules/getpagesize (License): Relax license.
22832
22833 2009-06-11  Bruno Haible  <bruno@clisp.org>
22834
22835         * lib/idpriv.h: Add more references.
22836
22837 2009-06-08  Bruno Haible  <bruno@clisp.org>
22838
22839         Tests for module 'idpriv-droptemp'.
22840         * modules/idpriv-droptemp-tests: New file.
22841         * tests/test-idpriv-droptemp.sh: New file.
22842         * tests/test-idpriv-droptemp.su.sh: New file.
22843         * tests/test-idpriv-droptemp.c: New file.
22844
22845         New module 'idpriv-droptemp'.
22846         * lib/idpriv-droptemp.c: New file.
22847         * modules/idpriv-droptemp: New file.
22848
22849 2009-06-08  Bruno Haible  <bruno@clisp.org>
22850
22851         Tests for module 'idpriv-drop'.
22852         * modules/idpriv-drop-tests: New file.
22853         * tests/test-idpriv-drop.sh: New file.
22854         * tests/test-idpriv-drop.su.sh: New file.
22855         * tests/test-idpriv-drop.c: New file.
22856
22857         New module 'idpriv-drop'.
22858         * lib/idpriv.h: New file.
22859         * lib-idpriv-drop.c: New file.
22860         * m4/idpriv.m4: New file.
22861         * modules/idpriv-drop: New file.
22862
22863 2009-06-08  Bruno Haible  <bruno@clisp.org>
22864
22865         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
22866         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22868         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22869         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22870         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22871         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22872
22873 2009-06-08  Eric Blake  <ebb9@byu.net>
22874
22875         test-strstr: use memory fence, when possible
22876         * tests/test-strstr.c (main): Use memory fence, in order to be
22877         more likely to trigger Debian bug 521737.
22878         * modules/strstr-tests (Files): Pull in additional files.
22879
22880         memchr: no longer obsolete, for wider field testing
22881         * modules/memchr (Status, Notice): Delete, this module is no
22882         longer obsolete.
22883         * modules/vasnprintf (Depends-on): Add memchr.
22884
22885 2009-06-07  Jim Meyering  <meyering@redhat.com>
22886
22887         hash: declare some functions with the warn_unused_result attribute
22888         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
22889
22890 2009-06-07  Bruno Haible  <bruno@clisp.org>
22891
22892         * tests/test-alignof.c: Don't test int64_t if it does not exist.
22893         Reported by Eric Blake.
22894
22895 2009-06-06  Eric Blake  <ebb9@byu.net>
22896
22897         test-alignof: fix typo with long double
22898         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
22899         compiler error.
22900
22901 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
22902
22903         Escape non-texinfo { and }s.
22904         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
22905         markup error.
22906
22907 2009-06-04  Jim Meyering  <meyering@redhat.com>
22908
22909         gitlog-to-changelog: don't infloop on an empty commit log
22910         * build-aux/gitlog-to-changelog: Warn about an empty log message.
22911         Reported by Boris Petersen <transacid@centerim.org>.
22912
22913 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
22914
22915         version-etc: extend for packagers
22916         Add three new configure options, intended for packagers:
22917           --with-packager="packager name"
22918           --with-packager-version="packager-specific version"
22919           --with-packager-bug-reports="packager bug reporting"
22920         An example with coreutils:
22921           $ ./configure \
22922             --with-packager=Gentoo \
22923             --with-packager-bug-report=http://bugs.gentoo.org/ \
22924             --with-packager-version="patchset 1.6"
22925           $ ./src/ls --version | head -n2
22926           ls (GNU coreutils) 7.1-dirty
22927           Packaged by Gentoo (patchset 1.6)
22928         Note that the bug reporting info via --help doesn't show up because
22929         coreutils uses its own custom emit_bug_reporting_address() implementation
22930         in src/system.h.  If it didn't, it'd look like:
22931           $ ./src/ls --help | tail -n4
22932           Report bugs to <bug-coreutils@gnu.org>.
22933           Report Gentoo bugs to <http://bugs.gentoo.org/>.
22934           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
22935           General help using GNU software: <http://www.gnu.org/gethelp/>.
22936         * lib/version-etc.c: Print new information, if provided.
22937         * m4/version-etc.m4: New file.
22938         * modules/version-etc (Files): Add m4/version-etc.m4.
22939         (configure.ac): Add gl_VERSION_ETC.
22940
22941 2009-05-31  Bruno Haible  <bruno@clisp.org>
22942
22943         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
22944         and 'int64_t'.
22945         * modules/alignof-tests (Dependencies): Add stdint.
22946         Reported by Eric Blake.
22947
22948 2009-05-31  Bruno Haible  <bruno@clisp.org>
22949
22950         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
22951         restriction due to compiler bugs.
22952         Reported by Eric Blake.
22953
22954 2009-05-31  Simon Josefsson  <simon@josefsson.org>
22955             Bruno Haible  <bruno@clisp.org>
22956
22957         Fix test-alignof failure.
22958         * lib/alignof.h (alignof_slot): New macro.
22959         (alignof_type): New macro, with the same semantics as the previous
22960         'alignof'.
22961         (alignof): Alias to alignof_slot.
22962         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
22963         check that the results are usable as constant expressions.
22964
22965 2009-05-31  Bruno Haible  <bruno@clisp.org>
22966
22967         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
22968         * tests/test-memchr.c (main): Check that memchr does not read past the
22969         first occurrence of the byte.
22970         * tests/test-strstr.c (main): Update comment.
22971         Suggested by Eric Blake.
22972
22973 2009-05-30  Bruno Haible  <bruno@clisp.org>
22974
22975         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
22976         detail how to use dumpbin.
22977         Reported by David Byron <dbyron@dbyron.com>.
22978
22979 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22980
22981         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
22982
22983 2009-06-02  Simon Josefsson  <simon@josefsson.org>
22984
22985         * m4/manywarnings.m4: Add GCC 4.4 warnings.
22986
22987 2009-05-28  Bruno Haible  <bruno@clisp.org>
22988
22989         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
22990         build-aux/ files.
22991
22992 2009-05-28  Simon Josefsson  <simon@josefsson.org>
22993
22994         * gnulib-tool (func_import): Transform license on build-aux/ files too.
22995
22996 2009-05-27  Simon Josefsson  <simon@josefsson.org>
22997
22998         * gnulib-tool (sed_transform_main_lib_file)
22999         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
23000         regexps.
23001
23002 2009-05-26  Simon Josefsson  <simon@josefsson.org>
23003
23004         * tests/test-strstr.c: Add another self-test.
23005         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
23006         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
23007
23008 2009-05-23  Bruno Haible  <bruno@clisp.org>
23009
23010         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
23011         change.
23012
23013 2009-05-21  Bruno Haible  <bruno@clisp.org>
23014
23015         Simplify use of mode_t varargs.
23016         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
23017         uses 'mode_t' or 'int'.
23018         * lib/openat.c (openat): Likewise.
23019         * lib/open-safer.c (open_safer): Likewise.
23020         * m4/mode_t.m4: New file.
23021         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
23022         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
23023         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
23024         * modules/open (Files): Add m4/mode_t.m4.
23025         * modules/openat (Files): Likewise.
23026         * modules/fcntl-safer (Files): Likewise.
23027         Suggested by Eric Blake.
23028
23029 2009-05-21  Pádraig Brady  <P@draigbrady.com>
23030
23031         * doc/glibc-functions/fallocate.texi: New file.
23032         * doc/gnulib.texi: Include it.
23033
23034 2009-05-21  Eric Blake  <ebb9@byu.net>
23035             Bruno Haible  <bruno@clisp.org>
23036
23037         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
23038         invocations.
23039         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23040
23041 2009-05-21  Eric Blake  <ebb9@byu.net>
23042             Bruno Haible  <bruno@clisp.org>
23043
23044         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
23045         include_next. Fix of 2008-11-20 commit.
23046         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
23047         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
23048         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
23049         NEXT_MATH_H.
23050         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
23051         instead of NEXT_MATH_H.
23052
23053 2009-05-21  Bruno Haible  <bruno@clisp.org>
23054
23055         Avoid redefinition warnings for SIZE_MAX.
23056         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
23057         Reported by Simon Josefsson.
23058
23059 2009-05-21  Bruno Haible  <bruno@clisp.org>
23060
23061         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
23062         AC_CACHE_VAL.
23063
23064 2009-05-20  Bruno Haible  <bruno@clisp.org>
23065
23066         Make zeroptr.h work on mingw.
23067         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
23068         mprotect.
23069         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
23070         * modules/memchr2-tests (configure.ac): Likewise.
23071         * modules/memcmp-tests (configure.ac): Likewise.
23072         * modules/memmem-tests (configure.ac): Likewise.
23073         * modules/memrchr-tests (configure.ac): Likewise.
23074         Reported by Simon Josefsson.
23075
23076 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23077
23078         * tests/test-glob.c: Include string.h for strcmp prototype.
23079
23080 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23081
23082         * modules/getdelim (Depends-on): Add explicit stdint, although it
23083         was implicitly already pulled in via realloc-posix.
23084         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
23085
23086 2009-05-20  Simon Josefsson  <simon@josefsson.org>
23087
23088         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
23089         G. Christensen" <tgc@jupiterrise.com>.
23090         * m4/sys_socket_h.m4: Check for sa_family_t.
23091         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
23092         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
23093         * tests/test-sys_socket.c: Check that sa_family_t works.
23094
23095 2009-05-18  Eric Blake  <ebb9@byu.net>
23096
23097         maint.mk: allow gnulib_dir in VPATH build
23098         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
23099
23100 2009-05-15  Jim Meyering  <meyering@redhat.com>
23101
23102         maint.mk: Give gnulib_dir a default definition.
23103         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
23104         Thus, most packages no longer need to specify this variable in cfg.mk
23105
23106 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
23107
23108         rename.m4: fix typos that would make non-mingw cross-configure fail
23109         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
23110
23111 2009-05-13  Eric Blake  <ebb9@byu.net>
23112
23113         mmap-anon: avoid out-of-order autoconf expansion
23114         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
23115         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
23116         * modules/memchr-tests (Depends-on): Add extensions.
23117         * modules/memchr2-tests (Depends-on): Add extensions.
23118         * modules/memcmp-tests (Depends-on): Add extensions.
23119         * modules/memmem-tests (Depends-on): Add extensions.
23120         * modules/memrchr-tests (Depends-on): Add extensions.
23121
23122 2009-05-13  Bruno Haible  <bruno@clisp.org>
23123
23124         Make some tests ISO C 99 compliant.
23125         * tests/zerosize-ptr.h: New file.
23126         * tests/test-memchr.c: Include zerosize-ptr.h.
23127         (main): Use a zero-size object pointer instead of NULL.
23128         * tests/test-memchr2.c: Include zerosize-ptr.h.
23129         (main): Use a zero-size object pointer instead of NULL.
23130         * tests/test-memcmp.c: Include zerosize-ptr.h.
23131         (main): Use a zero-size object pointer instead of NULL.
23132         * tests/test-memmem.c: Include zerosize-ptr.h.
23133         (main): Use a zero-size object pointer instead of NULL.
23134         * tests/test-memrchr.c: Include zerosize-ptr.h.
23135         (main): Use a zero-size object pointer instead of NULL.
23136         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
23137         m4/mmap-anon.m4.
23138         (Depends-on): Add getpagesize.
23139         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23140         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
23141         m4/mmap-anon.m4.
23142         (Depends-on): Add getpagesize.
23143         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23144         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
23145         m4/mmap-anon.m4.
23146         (Depends-on): Add getpagesize.
23147         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23148         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
23149         m4/mmap-anon.m4.
23150         (Depends-on): Add getpagesize.
23151         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23152         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
23153         m4/mmap-anon.m4.
23154         (Depends-on): Add getpagesize.
23155         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
23156
23157 2009-05-12  Bruno Haible  <bruno@clisp.org>
23158
23159         Tests for module 'alignof'.
23160         * modules/alignof-tests: New file.
23161         * tests/test-alignof.c: New file.
23162
23163 2009-05-12  Bruno Haible  <bruno@clisp.org>
23164
23165         Fix alignof macro.
23166         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
23167         vendor compilers that are always correct.
23168
23169 2009-05-12  Bruno Haible  <bruno@clisp.org>
23170
23171         Make the MAP_ANONYMOUS detection work on HP-UX 11.
23172         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
23173         not whether its fully works.
23174
23175 2009-05-12  Bruno Haible  <bruno@clisp.org>
23176
23177         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
23178
23179 2009-05-12  Jim Meyering  <meyering@redhat.com>
23180
23181         * top/maint.mk: Adjust backslash alignment.
23182
23183 2009-05-11  Simon Josefsson  <simon@josefsson.org>
23184
23185         * top/maint.mk: Make $(srcdir)/build-aux configurable.
23186
23187 2009-05-11  Eric Blake  <ebb9@byu.net>
23188
23189         argp: avoid undefined behavior
23190         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
23191         macros.
23192
23193 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23194
23195         * tests/test-vc-list-files-git.sh: Do git config of user.email and
23196         user.name to prevent git commit from complaining.
23197
23198 2009-05-10  Bruno Haible  <bruno@clisp.org>
23199
23200         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
23201         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
23202         it rewrites every file name only once.
23203         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
23204
23205 2009-05-08  Bruno Haible  <bruno@clisp.org>
23206
23207         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
23208         instead of 'max'.
23209
23210 2009-05-08  Simon Josefsson  <simon@josefsson.org>
23211
23212         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
23213         sockaddr_storage test.
23214
23215 2009-05-07  Simon Josefsson  <simon@josefsson.org>
23216
23217         * modules/sys_socket (Makefile.am): Substitute
23218         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
23219         * m4/sys_socket_h.m4: Check for sockaddr_storage.
23220         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
23221         * tests/test-sys_socket.c: Check sockaddr_storage.
23222
23223 2009-05-08  Bruno Haible  <bruno@clisp.org>
23224
23225         New module 'alignof'.
23226         * lib/alignof.h: New file.
23227         * modules/alignof: New file.
23228
23229 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23230             Bruno Haible  <bruno@clisp.org>
23231
23232         Fix test-file-has-acl on FreeBSD.
23233         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
23234         mask is implicitly added.
23235         * tests/test-file-has-acl.c: Include <signal.h>.
23236         (main): Terminate the test after 5 seconds.
23237         * modules/acl-tests (configure.ac): Check for alarm function.
23238
23239 2009-05-04  Bruno Haible  <bruno@clisp.org>
23240
23241         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
23242         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
23243         * modules/errno (configure.ac): Drop AC_REQUIRE.
23244         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
23245         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
23246
23247 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23248
23249         * modules/glob-tests: New module.
23250         * tests/test-glob.c: Add.
23251
23252 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23253
23254         * modules/fnmatch-tests: New module.
23255         * tests/test-fnmatch.c: Add.
23256
23257 2009-05-04  Eric Blake  <ebb9@byu.net>
23258
23259         maint: make the new no-submodule-changes rule VPATH-safe
23260         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
23261
23262 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23263             Bruno Haible  <bruno@clisp.org>
23264
23265         acl: Fix infinite loop on FreeBSD.
23266         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
23267         of return value from acl_get_entry.
23268         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
23269         Likewise.
23270
23271 2009-05-03  Bruno Haible  <bruno@clisp.org>
23272
23273         * lib/acl-internal.h (acl_entries): Clarify return value.
23274         * lib/acl_entries.c (acl_entries): Likewise.
23275
23276 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23277
23278         Bug fix in acl module.
23279         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
23280
23281 2009-05-03  Bruno Haible  <bruno@clisp.org>
23282
23283         Create gperf-generated file in the source dir, not in the build dir.
23284         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
23285         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
23286         * modules/unicase/locale-language (unicase/locale-languages.h):
23287         Likewise.
23288         * modules/unicase/special-casing (unicase/special-casing-table.h):
23289         Likewise.
23290         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
23291         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
23292         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
23293         Reported by Ralf Wildenhues.
23294
23295 2009-05-03  Bruno Haible  <bruno@clisp.org>
23296
23297         * modules/fnmatch (Description, configure.ac): Taken from
23298         fnmatch-posix.
23299         * modules/fnmatch-posix: Turn into a symbolic reference to the
23300         'fnmatch' module, and deprecate.
23301         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
23302
23303 2009-05-03  Bruno Haible  <bruno@clisp.org>
23304
23305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
23306         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
23307         Reported by Ralf Wildenhues.
23308
23309 2009-05-04  Simon Josefsson  <simon@josefsson.org>
23310
23311         * m4/fnmatch.m4: Fix fnmatch re-define.
23312
23313 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
23314
23315         priv-set: new module and tests; adapt write-any-file
23316         * lib/priv-set.c: New file.
23317         * lib/priv-set.h: New file.
23318         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
23319         * lib/write-any-file.c: Simplify by using priv-set module.
23320         * m4/priv-set.m4: New file.
23321         * modules/priv-set: New file.
23322         * modules/unlinkdir: Add dependency on priv-set module.
23323         * modules/write-any-file: Likewise.
23324
23325         Tests for module 'priv-set'.
23326         * modules/priv-set-tests: New file.
23327         * tests/test-priv-set.c: New file.
23328
23329 2009-05-03  Jim Meyering  <meyering@redhat.com>
23330             Bruno Haible  <bruno@clisp.org>
23331
23332         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
23333         use the converted UTF-8 variant of the name instead.
23334
23335 2009-05-03  Jim Meyering  <meyering@redhat.com>
23336
23337         tests: tighten some getdate tests
23338         * tests/test-getdate.c (main): Tighten tests: require equality,
23339         not just greater than.  Set TZ envvar to UTC0.
23340
23341 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23342
23343         getdate: correctly interpret "next monday" when run on a Monday
23344         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
23345         that e.g., "next tues" (when run on a tuesday) results in a date
23346         that is one week in the future, and not today's date.
23347         I.e., add a week when the wday is the same as the current one.
23348         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
23349         and earlier by Martin Bernreuther and Jan Minář.
23350         * tests/test-getdate.c (main): Check that "next DAY" is always in
23351         the future and that "last DAY" is always in the past.
23352
23353 2009-05-02  Jim Meyering  <meyering@redhat.com>
23354
23355         build: ensure that a release build fails when a submodule is unclean
23356         * top/maint.mk (no-submodule-changes): New rule.
23357         (alpha beta major): Depend on it.
23358
23359 2009-05-02  Bruno Haible  <bruno@clisp.org>
23360
23361         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
23362         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
23363         shell variable gl_fnmatch_required to detect which variant is
23364         requested.
23365         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
23366         gl_FUNC_FNMATCH_POSIX.
23367         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
23368         exclude fnmatch-posix.
23369
23370 2009-05-02  Bruno Haible  <bruno@clisp.org>
23371
23372         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
23373         * modules/mbsrtowcs (License): Change to LGPLv2+.
23374         * modules/strnlen1 (License): Likewise.
23375         Reported by Simon Josefsson.
23376
23377 2009-05-02  Bruno Haible  <bruno@clisp.org>
23378
23379         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
23380         "cross".
23381         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
23382         gnulib-tool was called with option --source-base=lib.
23383
23384 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23385
23386         Use automake *-local hooks without commands, for extensibility.
23387         * modules/localcharset (Makefile.am): Rename install-exec-local
23388         rule to install-exec-localcharset, and make it a prerequisite of
23389         install-exec-local.  Likewise, rename the uninstall-local rule to
23390         uninstall-localcharset, and make it a prerequisite of the former.
23391
23392 2009-05-01  Bruno Haible  <bruno@clisp.org>
23393
23394         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
23395         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23396         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
23397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
23398         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
23399         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23400         m4/locale-zh.m4, m4/codeset.m4.
23401
23402         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
23403         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
23404         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
23405         m4/locale-zh.m4.
23406
23407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
23408         REPLACE_WCRTOMB if mbstate_t must be replaced.
23409         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
23410         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
23411
23412 2009-05-01  Bruno Haible  <bruno@clisp.org>
23413
23414         Avoid compiler warnings when redefining macros defined by <libintl.h>.
23415         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
23416         dngettext, dcngettext, textdomain, bindtextdomain,
23417         bind_textdomain_codeset): Undefine before redefining.
23418
23419 2009-04-30  Bruno Haible  <bruno@clisp.org>
23420
23421         Fix bug introduced on 2009-04-25.
23422         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
23423         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
23424         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
23425         is defined.
23426         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
23427         is defined.
23428         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
23429         is defined.
23430         Reported by Elbert_Pol <elbert.pol@gmail.com>.
23431
23432 2009-04-28  Bruno Haible  <bruno@clisp.org>
23433
23434         Comment tweaks.
23435         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
23436         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
23437         * lib/unicase.h (u*_casexfrm): Likewise.
23438         Reported by Paolo Bonzini.
23439
23440 2009-04-28  Bruno Haible  <bruno@clisp.org>
23441
23442         Fix a compilation error.
23443         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
23444         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23445         Reported by Jim Meyering.
23446
23447 2009-04-27  Bruno Haible  <bruno@clisp.org>
23448
23449         New module 'libunistring'.
23450         * modules/libunistring: New file.
23451         * m4/libunistring.m4: New file.
23452         * MODULES.html.sh (Unicode string functions): Add it.
23453
23454 2009-04-27  Eric Blake  <ebb9@byu.net>
23455
23456         maint.mk: allow package-specific header to provide <config.h>
23457         * top/maint.mk (sc_require_config_h): New variable.
23458         (sc_require_config_h, sc_require_config_h_first): Use it.
23459
23460 2009-04-27  Simon Josefsson  <simon@josefsson.org>
23461
23462         * top/maint.mk (sc_avoid_if_before_free): Except
23463         useless-if-before-free script.
23464
23465 2009-04-27  Eric Blake  <ebb9@byu.net>
23466
23467         maintainer-makefile: depend on all required helper scripts
23468         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
23469         useless-if-before-free.
23470         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
23471         version, rather than assuming gnulib checkout is available.
23472         Reported by Simen Josefsson.
23473
23474 2009-04-26  Bruno Haible  <bruno@clisp.org>
23475
23476         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
23477         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
23478         "../" or "..".
23479
23480 2009-04-26  Bruno Haible  <bruno@clisp.org>
23481
23482         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
23483         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
23484         AC_LIB_HAVE_LINKFLAGS.
23485
23486 2009-04-26  Bruno Haible  <bruno@clisp.org>
23487
23488         Simplify calling convention of u*_conv_from_encoding.
23489         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
23490         u32_conv_from_encoding): Expect a resultbuf argument and return the
23491         result directly as a pointer.
23492         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
23493         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
23494         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
23495         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
23496         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
23497         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23498         Update.
23499         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
23500         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
23501         * lib/vasnprintf.c (VASNPRINTF): Update.
23502         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
23503         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
23504         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
23505         * NEWS: Mention the change.
23506
23507 2009-04-26  Bruno Haible  <bruno@clisp.org>
23508
23509         Simplify calling convention of u*_conv_to_encoding.
23510         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
23511         u32_conv_to_encoding): Expect a resultbuf argument and return the
23512         result directly as a pointer.
23513         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23514         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
23515         freeing scaled_offsets if mem_iconveha failed.
23516         * lib/unicase/u-casexfrm.h (FUNC): Update.
23517         * lib/uninorm/u-normxfrm.h (FUNC): Update.
23518         * lib/vasnprintf.c (VASNPRINTF): Update.
23519         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
23520         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
23521         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
23522         * NEWS: Mention the change.
23523
23524 2009-04-26  Bruno Haible  <bruno@clisp.org>
23525
23526         Avoid test failures on AIX and OSF/1.
23527         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
23528         malloc(0).
23529         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23530         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
23531         Likewise.
23532         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
23533         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
23534         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
23535         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
23536         * doc/posix-functions/malloc.texi: Document the portability problem
23537         related to malloc(0).
23538
23539 2009-04-26  Bruno Haible  <bruno@clisp.org>
23540
23541         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
23542         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
23543         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
23544
23545 2009-04-25  Bruno Haible  <bruno@clisp.org>
23546
23547         Avoid link error when creating a namespace clean library.
23548         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
23549         as macro with arguments if already defined as an alias.
23550         * lib/signbitf.c (gl_signbitf): Don't undefine.
23551         * lib/signbitd.c (gl_signbitd): Don't undefine.
23552         * lib/signbitl.c (gl_signbitl): Don't undefine.
23553
23554 2009-04-25  Jim Meyering  <meyering@redhat.com>
23555
23556         vc-list-files: fix another quoting bug
23557         * build-aux/vc-list-files: Avoid sed backslash expansion
23558         of pathological directory names.
23559
23560 2009-04-25  Eric Blake  <ebb9@byu.net>
23561
23562         vc-list-files: fix shell quoting error
23563         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
23564         timestamp.
23565
23566 2009-04-25  Jim Meyering  <meyering@redhat.com>
23567
23568         vc-list-files: restore lost functionality with subdir argument
23569         * build-aux/vc-list-files: When given a non-"." sub-directory
23570         argument, substitute the $dir/ prefix back onto each resulting name.
23571         Otherwise, coreutils' root_tests check would fail.
23572
23573 2009-04-24  Eric Blake  <ebb9@byu.net>
23574
23575         vc-list-files: ignore git symlinks
23576         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
23577         than ls-files, to ignore git symlinks.
23578
23579         maint.mk: import improvements from m4
23580         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
23581         (move_if_change): Delete unused macro.
23582         (news-date-check, vc-diff-check): Support VPATH builds.
23583         (announcement): Likewise.  Split --bootstrap-tools list...
23584         (boostrap-tools): ...into separate list, which can be overridden
23585         in cfg.mk.
23586         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
23587         requiring dependency on useless-if-before-free module.
23588         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
23589         Support VPATH builds.
23590
23591 2009-04-24  Jim Meyering  <meyering@redhat.com>
23592
23593         maint.mk: remove coreutils-specific rules and variables
23594         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
23595         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
23596         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
23597
23598         maint.mk: remove obsolete rule
23599         * top/maint.mk (rel-check): Remove rule.
23600         (WGET, WGETFLAGS): Remove now-unused variables.
23601
23602 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23603
23604         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
23605         consistency.
23606
23607         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
23608         '$(PATH_SEPARATOR)' instead of ':'.
23609
23610 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23611
23612         * lib/getopt1.c (main): Use 'const' for static array.
23613
23614 2009-04-24  Simon Josefsson  <simon@josefsson.org>
23615
23616         * top/maint.mk: Sync with coreutils.
23617         * NEWS: Explain incompatibilities.
23618
23619 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23620             Bruno Haible  <bruno@clisp.org>
23621
23622         Fix cross-compilation results.
23623         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
23624         statement, as third argument of AC_TRY_RUN.
23625         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23626         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23627         Likewise.
23628         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23629         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23630         Likewise.
23631         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23632         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
23633         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
23634
23635 2009-04-20  Bruno Haible  <bruno@clisp.org>
23636
23637         Avoid test failure on mingw.
23638         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
23639
23640 2009-04-20  Bruno Haible  <bruno@clisp.org>
23641
23642         Avoid compilation error on mingw.
23643         * modules/localename-tests (Depends-on): Add locale.
23644
23645 2009-04-19  Bruno Haible  <bruno@clisp.org>
23646
23647         Support for building a shared library on Windows platforms.
23648         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
23649         (main): Test the presence of UNINORM_NFC here.
23650         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
23651         (main): Test the presence of UNINORM_NFD here.
23652         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
23653         (main): Test the presence of UNINORM_NFKC here.
23654         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
23655         (main): Test the presence of UNINORM_NFKD here.
23656
23657 2009-04-19  Bruno Haible  <bruno@clisp.org>
23658
23659         Avoid a compiler warning.
23660         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
23661         Change type of variable 'sequence'.
23662
23663 2009-04-19  Bruno Haible  <bruno@clisp.org>
23664
23665         * modules/configmake (Makefile.am): When the contents of configmake.h
23666         does not change, arrange to preserve its modification time.
23667
23668 2009-04-17  Simon Josefsson  <simon@josefsson.org>
23669
23670         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
23671         gettext domain.
23672
23673 2009-04-16  Jim Meyering  <meyering@redhat.com>
23674
23675         useless-if-before-free: improve conversion code
23676         * build-aux/useless-if-before-free: Adjust code-in-comment to match
23677         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
23678
23679 2009-04-14  Bruno Haible  <bruno@clisp.org>
23680
23681         * modules/fcntl (Depends-on): Add extensions.
23682         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
23683
23684 2009-04-12  Ben Pfaff  <blp@gnu.org>
23685
23686         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
23687         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
23688
23689 2009-03-20  Ben Pfaff  <blp@gnu.org>
23690
23691         Make rename replace existing destinations on Windows.
23692         * m4/rename.m4: Add test for Mingw.
23693         * lib/rename.c: Add rename replacement that uses MoveFileEx with
23694         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
23695         * doc/posix-functions/rename.texi: Document.
23696
23697 2009-04-10  Bruno Haible  <bruno@clisp.org>
23698
23699         New include file "iconveh.h".
23700         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23701         * lib/striconveh.h: Include it.
23702         (enum iconv_ilseq_handler): Remove definition.
23703         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
23704         striconveh.h.
23705         * lib/striconveha.c: Include striconveh.h.
23706         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
23707         * modules/striconveh (Files): Add lib/iconveh.h.
23708         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
23709         lib/striconveh.h.
23710
23711 2009-04-10  Bruno Haible  <bruno@clisp.org>
23712
23713         * lib/uniconv.h: Update comment.
23714
23715 2009-04-10  Bruno Haible  <bruno@clisp.org>
23716
23717         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
23718         always.
23719         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
23720         * lib/unistr/u16-mbtouc-aux.c: Likewise.
23721         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
23722         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
23723         "unistring-notinline.h", so that the function gets defined always.
23724         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
23725         * lib/unistr/u8-uctomb.c: Likewise.
23726         * lib/unistr/u16-mbtouc.c: Likewise.
23727         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
23728         * lib/unistr/u16-uctomb.c: Likewise.
23729         * lib/unistr/u32-mbtouc.c: Likewise.
23730         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
23731         * lib/unistr/u32-uctomb.c: Likewise.
23732
23733 2009-04-10  Bruno Haible  <bruno@clisp.org>
23734
23735         Mark 'utime' obsolete.
23736         * modules/utime (Status, Notice): New sections.
23737         Suggested by Jim Meyering.
23738
23739         Fix cross-compile guess for utime test.
23740         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
23741         autoconf.
23742         * doc/posix-functions/utime.texi: Give more precisions.
23743         Reported by Jan <ipif@ymail.com>.
23744
23745 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
23746
23747         filevercmp: correct today's change
23748         * lib/filevercmp.c: Also handle coreutils' test inputs.
23749         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
23750
23751         Fix regression in 'filevercmp' module. Thanks Sven Joachim
23752         for reporting it.
23753         * lib/filevercmp.c: Special handle for "", "." and "..".
23754         * tests/test-filevercmp.c: Enlarge the set suite.
23755
23756 2009-04-07  Jim Meyering  <meyering@redhat.com>
23757
23758         useless-if-before-free: show how to remove braced useless free, too
23759         * build-aux/useless-if-before-free: still only in a comment, though.
23760
23761 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
23762
23763         maint.mk: import changes to syntax-check macros from coreutils
23764         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
23765         Use them in the relevant macros.
23766
23767 2009-04-06  Bruno Haible  <bruno@clisp.org>
23768
23769         Fix unportable use of bit-fields.
23770         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
23771         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
23772         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
23773
23774 2009-04-06  Bruno Haible  <bruno@clisp.org>
23775
23776         Avoid test failures on AIX and OSF/1.
23777         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
23778         that malloc(0) = NULL.
23779         * tests/unicase/test-u8-tolower.c (check): Likewise.
23780         * tests/unicase/test-u8-totitle.c (check): Likewise.
23781         * tests/unicase/test-u8-toupper.c (check): Likewise.
23782         * tests/unicase/test-u16-casefold.c (check): Likewise.
23783         * tests/unicase/test-u16-tolower.c (check): Likewise.
23784         * tests/unicase/test-u16-totitle.c (check): Likewise.
23785         * tests/unicase/test-u16-toupper.c (check): Likewise.
23786         * tests/unicase/test-u32-casefold.c (check): Likewise.
23787         * tests/unicase/test-u32-tolower.c (check): Likewise.
23788         * tests/unicase/test-u32-totitle.c (check): Likewise.
23789         * tests/unicase/test-u32-toupper.c (check): Likewise.
23790         * tests/uninorm/test-u8-nfc.c (check): Likewise.
23791         * tests/uninorm/test-u8-nfd.c (check): Likewise.
23792         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
23793         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
23794         * tests/uninorm/test-u16-nfc.c (check): Likewise.
23795         * tests/uninorm/test-u16-nfd.c (check): Likewise.
23796         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
23797         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
23798         * tests/uninorm/test-u32-nfc.c (check): Likewise.
23799         * tests/uninorm/test-u32-nfd.c (check): Likewise.
23800         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
23801         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
23802
23803 2009-04-05  Bruno Haible  <bruno@clisp.org>
23804
23805         Work around an autoconf limitation.
23806         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
23807         comment line if it would be longer than 3 KB.
23808
23809 2009-04-05  Bruno Haible  <bruno@clisp.org>
23810
23811         Avoid test failure with libiconv-1.13.
23812         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
23813         of the expected test results.
23814
23815 2009-04-05  Bruno Haible  <bruno@clisp.org>
23816
23817         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
23818         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
23819         that it should be installed.
23820
23821 2009-04-05  Bruno Haible  <bruno@clisp.org>
23822
23823         * gnulib-tool: New option --copy-file.
23824         (func_usage): Document it.
23825         (func_dest_tmpfilename): Moved out of func_import.
23826         (func_add_file, func_update_file): New functions, extracted from
23827         func_import.
23828         (func_import): Update.
23829
23830 2009-04-05  Karl Berry  <karl@gnu.org>
23831
23832         * README: prominently mention gnulib-tool.
23833         Rearrange sections so getting the code is near the top.
23834
23835 2009-04-05  Bruno Haible  <bruno@clisp.org>
23836
23837         * lib/unicase.h: Mention u*_cmp2.
23838         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23839         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
23840         * lib/unicase/ulc-casecmp.c: Likewise.
23841         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
23842         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
23843         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
23844         unistr/u8-cmp.
23845         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
23846         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
23847         unistr/u16-cmp.
23848         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
23849         unistr/u32-cmp.
23850
23851         * lib/uninorm.h: Mention u*_cmp2.
23852         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
23853         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
23854         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
23855         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
23856         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
23857         unistr/u8-cmp.
23858         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
23859         unistr/u16-cmp.
23860         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
23861         unistr/u32-cmp.
23862
23863         New module 'unistr/u32-cmp2'.
23864         * lib/unistr/u32-cmp2.c: New file.
23865         * modules/unistr/u32-cmp2: New file.
23866
23867         New module 'unistr/u16-cmp2'.
23868         * lib/unistr/u16-cmp2.c: New file.
23869         * modules/unistr/u16-cmp2: New file.
23870
23871         New module 'unistr/u8-cmp2'.
23872         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
23873         * lib/unistr/u8-cmp2.c: New file.
23874         * lib/unistr/u-cmp2.h: New file.
23875         * modules/unistr/u8-cmp2: New file.
23876
23877 2009-04-05  Bruno Haible  <bruno@clisp.org>
23878
23879         * lib/unictype.h (uc_property_is_valid): New macro.
23880         * tests/unictype/test-pr_byname.c (main): Use it.
23881
23882         * lib/unistr.h: Doc fixes.
23883         * lib/uniconv.h: Doc fixes.
23884         * lib/unictype.h: Doc fixes.
23885
23886 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
23887
23888         Port coreutils 7.2 to Solaris 8.
23889
23890         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
23891         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
23892         for Solaris 8.  This is a bit of a hack, as it means it's the
23893         caller's responsibility to add -lnsl if needed, but most likely it
23894         won't be needed since only getaddrinfo uses this and getaddrinfo
23895         isn't needed on Solaris 8.
23896
23897         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
23898         problem to Solaris 8 encountered with coreutils 7.2, which
23899         resulted in a message "fnmatch.c:292: warning: passing argument 4
23900         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
23901         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
23902
23903 2009-04-03  Simon Josefsson  <simon@josefsson.org>
23904
23905         * m4/ld-version-script.m4: Add FIXME comment.
23906
23907 2009-04-02  Simon Josefsson  <simon@josefsson.org>
23908
23909         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
23910         SOVERSION variable.
23911
23912 2009-04-02  Bruno Haible  <bruno@clisp.org>
23913
23914         * Makefile (info, html, dvi, pdf): Combine the rules.
23915         Suggested by Jim Meyering.
23916
23917 2009-04-01  Bruno Haible  <bruno@clisp.org>
23918
23919         * Makefile (info, html, dvi, pdf): New targets.
23920         Reported by Reuben Thomas <rrt@sc3d.org>.
23921
23922 2009-04-01  Bruno Haible  <bruno@clisp.org>
23923
23924         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
23925         can be put into PATH.
23926         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
23927
23928 2009-04-01  Bruno Haible  <bruno@clisp.org>
23929
23930         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
23931
23932 2009-04-01  Bruno Haible  <bruno@clisp.org>
23933
23934         Rename module 'visibility'.
23935         * modules/lib-symbol-visibility: Renamed from modules/visibility.
23936         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
23937         * doc/gnulib.texi: Update.
23938         * MODULES.html.sh (Misc): Update.
23939         * NEWS: Mention the change.
23940
23941 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23942
23943         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
23944         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
23945         Eric Blake <ebb9@byu.net> for review.
23946         * MODULES.html.sh: Add lib-msvc-compat.
23947         * doc/gnulib.texi: Link to new section.
23948         * m4/ld-output-def.m4: New file.
23949         * doc/ld-output-def.texi: New file.
23950
23951 2009-04-01  Simon Josefsson  <simon@josefsson.org>
23952
23953         Rename ld-version-script to lib-symbol-versions.  Suggested by
23954         Bruno Haible <bruno@clisp.org>.
23955         * modules/ld-version-script: Renamed to lib-symbol-versions.
23956         * doc/ld-version-script.texi: Fix module name.
23957         * MODULES.html.sh: Add lib-symbol-versions.
23958
23959 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23960
23961         * modules/u64-tests: New file.
23962         * tests/test-u64.c: New file.
23963
23964 2009-03-04  Simon Josefsson  <simon@josefsson.org>
23965
23966         * MODULES.html.sh: Mention u64.
23967         * modules/u64: New module.
23968         * modules/crypto/sha512: Depend on u64 module instead of providing
23969         u64.h.
23970
23971 2009-03-27  Eric Blake  <ebb9@byu.net>
23972
23973         test-strerror: make debugging EAI_SYSTEM easier
23974         * modules/getaddrinfo-tests (Depends-on): Add strerror.
23975         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
23976         failure was EAI_SYSTEM.
23977
23978 2009-03-25  Bruno Haible  <bruno@clisp.org>
23979
23980         Fix a problem with --enable-relocatable on Solaris 7.
23981         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
23982         since 2008-02-24.
23983
23984 2009-03-25  Eric Blake  <ebb9@byu.net>
23985
23986         test-sockets: avoid gcc warning
23987         * tests/test-sockets.c (main): Silence compiler warning.
23988
23989 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
23990
23991         New modules nproc, pthread, contributed by Glen Lenker.
23992
23993         * MODULES.html.sh: Add pthread, nproc.
23994         * lib/nproc.c: New file.
23995         * lib/nproc.h: New file.
23996         * lib/pthread.in.h: New file.
23997         * m4/pthread.m4: New file.
23998         * modules/nproc: New file.
23999         * modules/pthread: New file.
24000
24001 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24002
24003         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
24004         New variable.
24005
24006 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
24007
24008         filevercmp: handle simple~ and numbered.~3~ backup suffixes
24009         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
24010         * tests/test-filevercmp.c: Add tests for backup suffixes.
24011
24012 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24013
24014         * modules/stdlib (Depends-on): Add stdint, needed when defining
24015         struct random_data on, for example, HP-UX 10.20.  Reported by
24016         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24017
24018 2009-03-24  Simon Josefsson  <simon@josefsson.org>
24019
24020         * lib/readline.c (readline): Call fflush on stdout after printing
24021         prompt.
24022
24023 2009-03-20  Bruno Haible  <bruno@clisp.org>
24024
24025         Remove dependency from 'close' module to -lws2_32 on native Windows.
24026         * lib/close-hook.h: New file.
24027         * lib/close-hook.c: New file.
24028         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
24029         w32sock.h.
24030         (_gl_close_fd_maybe_socket): Remove function.
24031         (rpl_close): Invoke execute_all_close_hooks instead of
24032         _gl_close_fd_maybe_socket.
24033         * lib/sockets.c: Include close-hook.h, w32sock.h.
24034         (close_fd_maybe_socket): New function, essentially from lib/close.c.
24035         (close_sockets_hook): New variable.
24036         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
24037         (gl_sockets_cleanup): Unregister it.
24038         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
24039         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
24040         * modules/close-hook: New file.
24041         * modules/close (Files): Remove lib/w32sock.h.
24042         (Depends-on): Add close-hook.
24043         (Link): Remove section.
24044         * modules/sockets (Files): Add lib/w32sock.h.
24045         (Depends-on): Add close-hook.
24046         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
24047         invocation.
24048         * NEWS: Mention that LIB_CLOSE is gone.
24049
24050 2009-03-23  Eric Blake  <ebb9@byu.net>
24051
24052         signal-tests: test previous patch
24053         * tests/test-signal.c: New file.
24054         * modules/signal-tests: Likewise.
24055
24056         signal.h: always support 'volatile sig_atomic_t'
24057         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
24058         (gl_SIGNAL_H_DEFAULTS): Add a default.
24059         * modules/signal (Makefile.am): Substitute if needed.
24060         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
24061         users can blindly add volatile.
24062         * doc/posix-headers/signal.texi (signal.h): Document it.
24063         Reported by Matthew Woehlke.
24064
24065 2009-03-23  Jim Meyering  <meyering@redhat.com>
24066
24067         pathmax: PATH_MAX: use pathconf only when available
24068         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
24069         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
24070         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
24071         This avoids a link failure in a PSP cross-compilation environment
24072         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
24073
24074         * lib/vasnprintf.c (divide): Fix typo in comment.
24075
24076 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24077
24078         * gnulib-tool (func_filter_filelist): Fix comment.
24079
24080 2009-03-20  Bruno Haible  <bruno@clisp.org>
24081
24082         Make sockets.h self-contained.
24083         * lib/sockets.c: Include sockets.h first.
24084         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
24085
24086 2009-03-19  Eric Blake  <ebb9@byu.net>
24087
24088         doc: mention more functions added in cygwin 1.7.0
24089         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
24090         addition.
24091         * doc/posix-functions/log2f.texi: Likewise.
24092
24093 2009-03-19  Jim Meyering  <meyering@redhat.com>
24094
24095         fsusage: avoid syntax error due to statement-before-declaration
24096         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
24097         after all declarations.  Reported by Matthew Woehlke in
24098         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24099
24100 2009-03-18  Eric Blake  <ebb9@byu.net>
24101
24102         build-aux/compile: sync from automake
24103         * build-aux/compile: New file, from automake.
24104         * config/srclist.txt: Mention build-aux/compile.
24105
24106 2009-03-17  Bruno Haible  <bruno@clisp.org>
24107
24108         * lib/git-merge-changelog.c: Fix typo in comment.
24109         Reported by Reuben Thomas <rrt@sc3d.org>.
24110
24111 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
24112
24113         * m4/regex.m4: update and improve help for
24114         --without-included-regex.
24115
24116 2009-03-17  Simon Josefsson  <simon@josefsson.org>
24117
24118         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
24119         failure on missing include files.
24120
24121 2009-03-17  Eric Blake  <ebb9@byu.net>
24122
24123         doc: mention more functions added in cygwin 1.7.0
24124         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
24125         addition.
24126         * doc/posix-functions/fwscanf.texi: Likewise.
24127         * doc/posix-functions/swprintf.texi: Likewise.
24128         * doc/posix-functions/swscanf.texi: Likewise.
24129         * doc/posix-functions/vfwprintf.texi: Likewise.
24130         * doc/posix-functions/vfwscanf.texi: Likewise.
24131         * doc/posix-functions/vswprintf.texi: Likewise.
24132         * doc/posix-functions/vswscanf.texi: Likewise.
24133         * doc/posix-functions/vwprintf.texi: Likewise.
24134         * doc/posix-functions/vwscanf.texi: Likewise.
24135         * doc/posix-functions/wcscasecmp.texi: Likewise.
24136         * doc/posix-functions/wcsdup.texi: Likewise.
24137         * doc/posix-functions/wcsftime.texi: Likewise.
24138         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24139         * doc/posix-functions/wprintf.texi: Likewise.
24140         * doc/posix-functions/wscanf.texi: Likewise.
24141         * doc/glibc-functions/gethostbyname2.texi: Likewise.
24142
24143 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24144
24145         maint.mk: really add $(AM_MAKEFLAGS)
24146         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
24147         was inadvertently omitted in the last commit.
24148         Spotted by Bruno Haible.
24149
24150         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
24151         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
24152         $(AM_MAKEFLAGS)' rather than plain `make'.
24153
24154         gnulib-tool: execute $MAKE not make
24155         * gnulib-tool: Default $MAKE to 'make'.
24156         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
24157         than make.  Initialize $MAKE in the do-autobuild script.
24158
24159         gnulib-tool: use $MAKE not make in generated files
24160         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
24161         make, in generated files.  Initialize $MAKE in the do-autobuild
24162         script.
24163
24164         * top/GNUmakefile (_have-git-version-gen): Fix typo.
24165
24166         GNUmakefile: disable parallelism only for multiple, recursive targets
24167         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
24168         additions in the Makefile.
24169         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
24170         by Automake.
24171         (.NOTPARALLEL): Only disable parallel builds if multiple targets
24172         are listed on the command line and at least one of them is
24173         listed in $(ALL_RECURSIVE_TARGETS).
24174
24175 2009-03-14  Bruno Haible  <bruno@clisp.org>
24176
24177         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
24178         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
24179         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
24180         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
24181         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
24182         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
24183         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
24184         unistr/u8-uctomb.
24185         * modules/unistr/u8-strchr (Depends-on): Likewise.
24186         * modules/unistr/u8-strrchr (Depends-on): Likewise.
24187         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
24188         unistr/u16-uctomb.
24189         * modules/unistr/u16-strchr (Depends-on): Likewise.
24190         * modules/unistr/u16-strrchr (Depends-on): Likewise.
24191
24192 2009-03-12  Bruno Haible  <bruno@clisp.org>
24193
24194         Work around select() bug on Interix 3.5.
24195         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
24196         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
24197         * m4/select.m4: New file.
24198         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
24199         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
24200         * modules/select (Files): Add m4/select.m4.
24201         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
24202         * modules/nanosleep (Depends-on): Add select.
24203         * modules/poll (Depends-on): Likewise.
24204         * doc/posix-functions/select.texi: Mention the Interix bug.
24205         Reported by Markus Duft <mduft@gentoo.org>.
24206
24207         * lib/select.c: Renamed from lib/winsock-select.c.
24208         * modules/select (Files): Add lib/select.c, remove
24209         lib/winsock-select.c.
24210         (configure.ac): Update.
24211
24212 2009-03-12  Jim Meyering  <meyering@redhat.com>
24213
24214         avoid gcc warnings about unused macro definitions
24215         * lib/readtokens.c (STREQ): Remove unused definition.
24216         * lib/xmalloc.c (SIZE_MAX): Likewise.
24217         * lib/openat-die.c (N_): Likewise.
24218         * lib/mountlist.c (SIZE_MAX): Remove definition.
24219         Instead, include <stdint.h>.
24220         * lib/readutmp.c: Likewise.
24221         * modules/readutmp (Depends-on): Add stdint.
24222         * modules/mountlist (Depends-on): Add stdint.
24223         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
24224
24225 2009-03-10  Bruno Haible  <bruno@clisp.org>
24226
24227         Tests for module 'mbmemcasecoll'.
24228         * modules/mbmemcasecoll-tests: New file.
24229         * tests/test-mbmemcasecoll1.sh: New file.
24230         * tests/test-mbmemcasecoll2.sh: New file.
24231         * tests/test-mbmemcasecoll3.sh: New file.
24232         * tests/test-mbmemcasecoll.c: New file.
24233
24234         New module 'mbmemcasecoll'.
24235         * lib/mbmemcasecoll.h: New file.
24236         * lib/mbmemcasecoll.c: New file.
24237         * modules/mbmemcasecoll: New file.
24238
24239         * tests/test-mbmemcasecmp.h: New file, extracted from
24240         tests/test-mbmemcasecmp.c.
24241         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
24242         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
24243         (main): Update.
24244         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
24245
24246 2009-03-09  Bruno Haible  <bruno@clisp.org>
24247
24248         Tests for module 'mbmemcasecmp'.
24249         * modules/mbmemcasecmp-tests: New file.
24250         * tests/test-mbmemcasecmp1.sh: New file.
24251         * tests/test-mbmemcasecmp2.sh: New file.
24252         * tests/test-mbmemcasecmp3.sh: New file.
24253         * tests/test-mbmemcasecmp.c: New file.
24254
24255         New module 'mbmemcasecmp'.
24256         * lib/mbmemcasecmp.h: New file.
24257         * lib/mbmemcasecmp.c: New file.
24258         * modules/mbmemcasecmp: New file.
24259
24260 2009-03-09  Bruno Haible  <bruno@clisp.org>
24261
24262         Tests for module 'unicase/ulc-casecoll'.
24263         * modules/unicase/ulc-casecoll-tests: New file.
24264         * tests/unicase/test-ulc-casecoll1.sh: New file.
24265         * tests/unicase/test-ulc-casecoll2.sh: New file.
24266         * tests/unicase/test-ulc-casecoll.c: New file.
24267
24268         New module 'unicase/ulc-casecoll'.
24269         * lib/unicase.h (ulc_casecoll): New declaration.
24270         * lib/unicase/ulc-casecoll.c: New file.
24271         * modules/unicase/ulc-casecoll: New file.
24272
24273         New module 'unicase/ulc-casexfrm'.
24274         * lib/unicase.h (ulc_casexfrm): New declaration.
24275         * lib/unicase/ulc-casexfrm.c: New file.
24276         * modules/unicase/ulc-casexfrm: New file.
24277
24278 2009-03-09  Bruno Haible  <bruno@clisp.org>
24279
24280         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
24281         invocations.
24282
24283         * m4/mbscasecmp.m4: Remove file.
24284         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
24285         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
24286
24287         * m4/mbscasestr.m4: Remove file.
24288         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
24289         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
24290
24291         * m4/mbschr.m4: Remove file.
24292         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
24293         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
24294
24295         * m4/mbscspn.m4: Remove file.
24296         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
24297         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
24298
24299         * m4/mbslen.m4: Remove file.
24300         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
24301         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
24302
24303         * m4/mbsncasecmp.m4: Remove file.
24304         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
24305         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
24306
24307         * m4/mbsnlen.m4: Remove file.
24308         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
24309         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
24310
24311         * m4/mbspbrk.m4: Remove file.
24312         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
24313         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
24314
24315         * m4/mbspcasecmp.m4: Remove file.
24316         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
24317         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
24318
24319         * m4/mbsrchr.m4: Remove file.
24320         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
24321         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
24322
24323         * m4/mbssep.m4: Remove file.
24324         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
24325         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
24326
24327         * m4/mbsspn.m4: Remove file.
24328         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
24329         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
24330
24331         * m4/mbsstr.m4: Remove file.
24332         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
24333         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
24334
24335         * m4/mbstok_r.m4: Remove file.
24336         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
24337         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
24338
24339         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
24340
24341         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
24342         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
24343
24344         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
24345
24346 2009-03-08  Bruno Haible  <bruno@clisp.org>
24347
24348         Tests for module 'unicase/ulc-casecmp'.
24349         * modules/unicase/ulc-casecmp-tests: New file.
24350         * tests/unicase/test-ulc-casecmp1.sh: New file.
24351         * tests/unicase/test-ulc-casecmp2.sh: New file.
24352         * tests/unicase/test-ulc-casecmp.c: New file.
24353
24354         New module 'unicase/ulc-casecmp'.
24355         * lib/unicase.h (ulc_casecmp): New declaration.
24356         * lib/unicase/ulc-casecmp.c: New file.
24357         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
24358         'const SRC_UNIT *'.
24359         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
24360         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
24361         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
24362         * modules/unicase/ulc-casecmp: New file.
24363
24364         Tests for module 'unicase/u32-is-cased'.
24365         * modules/unicase/u32-is-cased-tests: New file.
24366         * tests/unicase/test-u32-is-cased.c: New file.
24367
24368         Tests for module 'unicase/u16-is-cased'.
24369         * modules/unicase/u16-is-cased-tests: New file.
24370         * tests/unicase/test-u16-is-cased.c: New file.
24371
24372         Tests for module 'unicase/u8-is-cased'.
24373         * modules/unicase/u8-is-cased-tests: New file.
24374         * tests/unicase/test-u8-is-cased.c: New file.
24375         * tests/unicase/test-is-cased.h: New file.
24376
24377         New module 'unicase/u32-is-cased'.
24378         * lib/unicase/u32-is-cased.c: New file.
24379         * modules/unicase/u32-is-cased: New file.
24380
24381         New module 'unicase/u16-is-cased'.
24382         * lib/unicase/u16-is-cased.c: New file.
24383         * modules/unicase/u16-is-cased: New file.
24384
24385         New module 'unicase/u8-is-cased'.
24386         * lib/unicase/u8-is-cased.c: New file.
24387         * lib/unicase/u-is-cased.h: New file.
24388         * modules/unicase/u8-is-cased: New file.
24389
24390         Tests for module 'unicase/u32-is-casefolded'.
24391         * modules/unicase/u32-is-casefolded-tests: New file.
24392         * tests/unicase/test-u32-is-casefolded.c: New file.
24393
24394         Tests for module 'unicase/u16-is-casefolded'.
24395         * modules/unicase/u16-is-casefolded-tests: New file.
24396         * tests/unicase/test-u16-is-casefolded.c: New file.
24397
24398         Tests for module 'unicase/u8-is-casefolded'.
24399         * modules/unicase/u8-is-casefolded-tests: New file.
24400         * tests/unicase/test-u8-is-casefolded.c: New file.
24401         * tests/unicase/test-is-casefolded.h: New file.
24402
24403         New module 'unicase/u32-is-casefolded'.
24404         * lib/unicase/u32-is-casefolded.c: New file.
24405         * modules/unicase/u32-is-casefolded: New file.
24406
24407         New module 'unicase/u16-is-casefolded'.
24408         * lib/unicase/u16-is-casefolded.c: New file.
24409         * modules/unicase/u16-is-casefolded: New file.
24410
24411         New module 'unicase/u8-is-casefolded'.
24412         * lib/unicase/u8-is-casefolded.c: New file.
24413         * modules/unicase/u8-is-casefolded: New file.
24414
24415         Tests for module 'unicase/u32-is-titlecase'.
24416         * modules/unicase/u32-is-titlecase-tests: New file.
24417         * tests/unicase/test-u32-is-titlecase.c: New file.
24418
24419         Tests for module 'unicase/u16-is-titlecase'.
24420         * modules/unicase/u16-is-titlecase-tests: New file.
24421         * tests/unicase/test-u16-is-titlecase.c: New file.
24422
24423         Tests for module 'unicase/u8-is-titlecase'.
24424         * modules/unicase/u8-is-titlecase-tests: New file.
24425         * tests/unicase/test-u8-is-titlecase.c: New file.
24426         * tests/unicase/test-is-titlecase.h: New file.
24427
24428         New module 'unicase/u32-is-titlecase'.
24429         * lib/unicase/u32-is-titlecase.c: New file.
24430         * modules/unicase/u32-is-titlecase: New file.
24431
24432         New module 'unicase/u16-is-titlecase'.
24433         * lib/unicase/u16-is-titlecase.c: New file.
24434         * modules/unicase/u16-is-titlecase: New file.
24435
24436         New module 'unicase/u8-is-titlecase'.
24437         * lib/unicase/u8-is-titlecase.c: New file.
24438         * modules/unicase/u8-is-titlecase: New file.
24439
24440         Tests for module 'unicase/u32-is-lowercase'.
24441         * modules/unicase/u32-is-lowercase-tests: New file.
24442         * tests/unicase/test-u32-is-lowercase.c: New file.
24443
24444         Tests for module 'unicase/u16-is-lowercase'.
24445         * modules/unicase/u16-is-lowercase-tests: New file.
24446         * tests/unicase/test-u16-is-lowercase.c: New file.
24447
24448         Tests for module 'unicase/u8-is-lowercase'.
24449         * modules/unicase/u8-is-lowercase-tests: New file.
24450         * tests/unicase/test-u8-is-lowercase.c: New file.
24451         * tests/unicase/test-is-lowercase.h: New file.
24452
24453         New module 'unicase/u32-is-lowercase'.
24454         * lib/unicase/u32-is-lowercase.c: New file.
24455         * modules/unicase/u32-is-lowercase: New file.
24456
24457         New module 'unicase/u16-is-lowercase'.
24458         * lib/unicase/u16-is-lowercase.c: New file.
24459         * modules/unicase/u16-is-lowercase: New file.
24460
24461         New module 'unicase/u8-is-lowercase'.
24462         * lib/unicase/u8-is-lowercase.c: New file.
24463         * modules/unicase/u8-is-lowercase: New file.
24464
24465         Tests for module 'unicase/u32-is-uppercase'.
24466         * modules/unicase/u32-is-uppercase-tests: New file.
24467         * tests/unicase/test-u32-is-uppercase.c: New file.
24468
24469         Tests for module 'unicase/u16-is-uppercase'.
24470         * modules/unicase/u16-is-uppercase-tests: New file.
24471         * tests/unicase/test-u16-is-uppercase.c: New file.
24472
24473         Tests for module 'unicase/u8-is-uppercase'.
24474         * modules/unicase/u8-is-uppercase-tests: New file.
24475         * tests/unicase/test-u8-is-uppercase.c: New file.
24476         * tests/unicase/test-is-uppercase.h: New file.
24477
24478         New module 'unicase/u32-is-uppercase'.
24479         * lib/unicase/u32-is-uppercase.c: New file.
24480         * modules/unicase/u32-is-uppercase: New file.
24481
24482         New module 'unicase/u16-is-uppercase'.
24483         * lib/unicase/u16-is-uppercase.c: New file.
24484         * modules/unicase/u16-is-uppercase: New file.
24485
24486         New module 'unicase/u8-is-uppercase'.
24487         * lib/unicase/u8-is-uppercase.c: New file.
24488         * modules/unicase/u8-is-uppercase: New file.
24489
24490         New module 'unicase/u32-is-invariant'.
24491         * lib/unicase/u32-is-invariant.c: New file.
24492         * modules/unicase/u32-is-invariant: New file.
24493
24494         New module 'unicase/u16-is-invariant'.
24495         * lib/unicase/u16-is-invariant.c: New file.
24496         * modules/unicase/u16-is-invariant: New file.
24497
24498         New module 'unicase/u8-is-invariant'.
24499         * lib/unicase/u8-is-invariant.c: New file.
24500         * lib/unicase/invariant.h: New file.
24501         * lib/unicase/u-is-invariant.h: New file.
24502         * modules/unicase/u8-is-invariant: New file.
24503
24504         Tests for module 'unicase/u32-casecoll'.
24505         * modules/unicase/u32-casecoll-tests: New file.
24506         * tests/unicase/test-u32-casecoll.c: New file.
24507
24508         Tests for module 'unicase/u16-casecoll'.
24509         * modules/unicase/u16-casecoll-tests: New file.
24510         * tests/unicase/test-u16-casecoll.c: New file.
24511
24512         Tests for module 'unicase/u8-casecoll'.
24513         * modules/unicase/u8-casecoll-tests: New file.
24514         * tests/unicase/test-u8-casecoll.c: New file.
24515
24516         New module 'unicase/u32-casecoll'.
24517         * lib/unicase/u32-casecoll.c: New file.
24518         * modules/unicase/u32-casecoll: New file.
24519
24520         New module 'unicase/u16-casecoll'.
24521         * lib/unicase/u16-casecoll.c: New file.
24522         * modules/unicase/u16-casecoll: New file.
24523
24524         New module 'unicase/u8-casecoll'.
24525         * lib/unicase/u8-casecoll.c: New file.
24526         * lib/unicase/u-casecoll.h: New file.
24527         * modules/unicase/u8-casecoll: New file.
24528
24529         New module 'unicase/u32-casexfrm'.
24530         * lib/unicase/u32-casexfrm.c: New file.
24531         * modules/unicase/u32-casexfrm: New file.
24532
24533         New module 'unicase/u16-casexfrm'.
24534         * lib/unicase/u16-casexfrm.c: New file.
24535         * modules/unicase/u16-casexfrm: New file.
24536
24537         New module 'unicase/u8-casexfrm'.
24538         * lib/unicase/u8-casexfrm.c: New file.
24539         * lib/unicase/u-casexfrm.h: New file.
24540         * modules/unicase/u8-casexfrm: New file.
24541
24542         Tests for module 'unicase/u32-casecmp'.
24543         * modules/unicase/u32-casecmp-tests: New file.
24544         * tests/unicase/test-u32-casecmp.c: New file.
24545
24546         Tests for module 'unicase/u16-casecmp'.
24547         * modules/unicase/u16-casecmp-tests: New file.
24548         * tests/unicase/test-u16-casecmp.c: New file.
24549
24550         Tests for module 'unicase/u8-casecmp'.
24551         * modules/unicase/u8-casecmp-tests: New file.
24552         * tests/unicase/test-u8-casecmp.c: New file.
24553         * tests/unicase/test-casecmp.h: New file.
24554
24555         New module 'unicase/u32-casecmp'.
24556         * lib/unicase/u32-casecmp.c: New file.
24557         * modules/unicase/u32-casecmp: New file.
24558
24559         New module 'unicase/u16-casecmp'.
24560         * lib/unicase/u16-casecmp.c: New file.
24561         * modules/unicase/u16-casecmp: New file.
24562
24563         New module 'unicase/u8-casecmp'.
24564         * lib/unicase/u8-casecmp.c: New file.
24565         * lib/unicase/u-casecmp.h: New file.
24566         * modules/unicase/u8-casecmp: New file.
24567
24568         Tests for module 'unicase/u32-casefold'.
24569         * modules/unicase/u32-casefold-tests: New file.
24570         * tests/unicase/test-u32-casefold.c: New file.
24571
24572         Tests for module 'unicase/u16-casefold'.
24573         * modules/unicase/u16-casefold-tests: New file.
24574         * tests/unicase/test-u16-casefold.c: New file.
24575
24576         Tests for module 'unicase/u8-casefold'.
24577         * modules/unicase/u8-casefold-tests: New file.
24578         * tests/unicase/test-u8-casefold.c: New file.
24579
24580         New module 'unicase/u32-casefold'.
24581         * lib/unicase/u32-casefold.c: New file.
24582         * modules/unicase/u32-casefold: New file.
24583
24584         New module 'unicase/u16-casefold'.
24585         * lib/unicase/u16-casefold.c: New file.
24586         * modules/unicase/u16-casefold: New file.
24587
24588         New module 'unicase/u8-casefold'.
24589         * lib/unicase/u8-casefold.c: New file.
24590         * lib/unicase/u-casefold.h: New file.
24591         * modules/unicase/u8-casefold: New file.
24592
24593         New module 'unicase/tocasefold'.
24594         * lib/unicase/casefold.h: New file.
24595         * lib/unicase/tocasefold.c: New file.
24596         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
24597         * modules/unicase/tocasefold: New file.
24598
24599         Tests for module 'unicase/u32-totitle'.
24600         * modules/unicase/u32-totitle-tests: New file.
24601         * tests/unicase/test-u32-totitle.c: New file.
24602
24603         Tests for module 'unicase/u16-totitle'.
24604         * modules/unicase/u16-totitle-tests: New file.
24605         * tests/unicase/test-u16-totitle.c: New file.
24606
24607         Tests for module 'unicase/u8-totitle'.
24608         * modules/unicase/u8-totitle-tests: New file.
24609         * tests/unicase/test-u8-totitle.c: New file.
24610
24611         New module 'unicase/u32-totitle'.
24612         * lib/unicase/u32-totitle.c: New file.
24613         * modules/unicase/u32-totitle: New file.
24614
24615         New module 'unicase/u16-totitle'.
24616         * lib/unicase/u16-totitle.c: New file.
24617         * modules/unicase/u16-totitle: New file.
24618
24619         New module 'unicase/u8-totitle'.
24620         * lib/unicase/u8-totitle.c: New file.
24621         * lib/unicase/u-totitle.h: New file.
24622         * modules/unicase/u8-totitle: New file.
24623
24624         Tests for module 'unicase/u32-tolower'.
24625         * modules/unicase/u32-tolower-tests: New file.
24626         * tests/unicase/test-u32-tolower.c: New file.
24627
24628         Tests for module 'unicase/u16-tolower'.
24629         * modules/unicase/u16-tolower-tests: New file.
24630         * tests/unicase/test-u16-tolower.c: New file.
24631
24632         Tests for module 'unicase/u8-tolower'.
24633         * modules/unicase/u8-tolower-tests: New file.
24634         * tests/unicase/test-u8-tolower.c: New file.
24635
24636         New module 'unicase/u32-tolower'.
24637         * lib/unicase/u32-tolower.c: New file.
24638         * modules/unicase/u32-tolower: New file.
24639
24640         New module 'unicase/u16-tolower'.
24641         * lib/unicase/u16-tolower.c: New file.
24642         * modules/unicase/u16-tolower: New file.
24643
24644         New module 'unicase/u8-tolower'.
24645         * lib/unicase/u8-tolower.c: New file.
24646         * modules/unicase/u8-tolower: New file.
24647
24648         Tests for module 'unicase/u32-toupper'.
24649         * modules/unicase/u32-toupper-tests: New file.
24650         * tests/unicase/test-u32-toupper.c: New file.
24651
24652         Tests for module 'unicase/u16-toupper'.
24653         * modules/unicase/u16-toupper-tests: New file.
24654         * tests/unicase/test-u16-toupper.c: New file.
24655
24656         Tests for module 'unicase/u8-toupper'.
24657         * modules/unicase/u8-toupper-tests: New file.
24658         * tests/unicase/test-u8-toupper.c: New file.
24659
24660         New module 'unicase/u32-toupper'.
24661         * lib/unicase/u32-toupper.c: New file.
24662         * modules/unicase/u32-toupper: New file.
24663
24664         New module 'unicase/u16-toupper'.
24665         * lib/unicase/u16-toupper.c: New file.
24666         * modules/unicase/u16-toupper: New file.
24667
24668         New module 'unicase/u8-toupper'.
24669         * lib/unicase/u8-toupper.c: New file.
24670         * modules/unicase/u8-toupper: New file.
24671
24672         New module 'unicase/u32-casemap'.
24673         * lib/unicase/u32-casemap.c: New file.
24674         * modules/unicase/u32-casemap: New file.
24675
24676         New module 'unicase/u16-casemap'.
24677         * lib/unicase/u16-casemap.c: New file.
24678         * modules/unicase/u16-casemap: New file.
24679
24680         New module 'unicase/u8-casemap'.
24681         * lib/unicase/unicasemap.h: New file.
24682         * lib/unicase/u8-casemap.c: New file.
24683         * lib/unicase/u-casemap.h: New file.
24684         * modules/unicase/u8-casemap: New file.
24685
24686         New module 'unicase/special-casing'.
24687         * lib/unicase/special-casing.h: New file.
24688         * lib/unicase/special-casing.c: New file.
24689         * lib/unicase/special-casing-table.gperf: New file, generated by
24690         gen-uni-tables.c.
24691         * modules/unicase/special-casing: New file.
24692
24693         Tests for module 'unicase/locale-language'.
24694         * modules/unicase/locale-language-tests: New file.
24695         * tests/unicase/test-locale-language.sh: New file.
24696         * tests/unicase/test-locale-language.c: New file.
24697
24698         New module 'unicase/locale-language'.
24699         * lib/unicase/locale-language.c: New file.
24700         * lib/unicase/locale-languages.gperf: New file.
24701         * modules/unicase/locale-language: New file.
24702
24703         Generate more tables for case conversion and case folding.
24704         * lib/gen-uni-tables.c (SCC_*): New enum items.
24705         (struct special_casing_rule): New type.
24706         (casing_rules, num_casing_rules, allocated_casing_rules): New
24707         variables.
24708         (add_casing_rule, fill_casing_rules): New functions.
24709         (struct casefold_rule): New type.
24710         (casefolding_rules, num_casefolding_rules,
24711         allocated_casefolding_rules): New variables.
24712         (fill_casefolding_rules): New function.
24713         (unicode_casefold): New variable.
24714         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
24715         sort_casing_rules, output_casing_rules): New functions.
24716         (main): Accept to more arguments: SpecialCasing.txt and
24717         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
24718         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
24719         Output mapping for casefolding.
24720
24721         * lib/unicase.h: Include stdbool.h, uninorm.h.
24722         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
24723         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
24724         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
24725         arguments.
24726         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
24727         resultp arguments.
24728         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
24729         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
24730         resultp arguments.
24731         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
24732         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
24733         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
24734         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
24735         declarations.
24736         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
24737
24738 2009-03-08  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24741         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
24742         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
24743         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24744
24745 2009-03-07  Bruno Haible  <bruno@clisp.org>
24746
24747         Adjust u*_normcmp, u*_normcoll API.
24748         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
24749         u16_normcoll, u32_normcoll): Change failure conventions.
24750         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
24751         errno and return -1.
24752         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
24753
24754 2009-03-07  Bruno Haible  <bruno@clisp.org>
24755
24756         Tests for module 'uninorm/u32-normcoll'.
24757         * modules/uninorm/u32-normcoll-tests: New file.
24758         * tests/uninorm/test-u32-normcoll.c: New file.
24759
24760         Tests for module 'uninorm/u16-normcoll'.
24761         * modules/uninorm/u16-normcoll-tests: New file.
24762         * tests/uninorm/test-u16-normcoll.c: New file.
24763
24764         Tests for module 'uninorm/u8-normcoll'.
24765         * modules/uninorm/u8-normcoll-tests: New file.
24766         * tests/uninorm/test-u8-normcoll.c: New file.
24767
24768 2009-03-07  Bruno Haible  <bruno@clisp.org>
24769
24770         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
24771         tests/uninorm/test-u32-normcmp.c.
24772         * tests/uninorm/test-u32-normcmp.c: Include it.
24773         (test_nonascii): New function, extracted from main. Add some more
24774         tests.
24775         (main): Invoke test_ascii and test_nonascii.
24776         * modules/uninorm/u32-normcmp-tests (Files): Add
24777         tests/uninorm/test-u32-normcmp.h.
24778         (Depends-on): Remove uninorm/u32-normcmp.
24779
24780         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
24781         tests/uninorm/test-u16-normcmp.c.
24782         * tests/uninorm/test-u16-normcmp.c: Include it.
24783         (test_nonascii): New function, extracted from main. Add some more
24784         tests.
24785         (main): Invoke test_ascii and test_nonascii.
24786         * modules/uninorm/u16-normcmp-tests (Files): Add
24787         tests/uninorm/test-u16-normcmp.h.
24788         (Depends-on): Remove uninorm/u16-normcmp.
24789
24790         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
24791         tests/uninorm/test-u8-normcmp.c.
24792         * tests/uninorm/test-u8-normcmp.c: Include it.
24793         (test_nonascii): New function, extracted from main. Add some more
24794         tests.
24795         (main): Invoke test_ascii and test_nonascii.
24796         * modules/uninorm/u8-normcmp-tests (Files): Add
24797         tests/uninorm/test-u8-normcmp.h.
24798         (Depends-on): Remove uninorm/u8-normcmp.
24799
24800 2009-03-07  Bruno Haible  <bruno@clisp.org>
24801
24802         New module 'uninorm/u32-normcoll'.
24803         * lib/uninorm/u32-normcoll.c: New file.
24804         * modules/uninorm/u32-normcoll: New file.
24805
24806         New module 'uninorm/u16-normcoll'.
24807         * lib/uninorm/u16-normcoll.c: New file.
24808         * modules/uninorm/u16-normcoll: New file.
24809
24810         New module 'uninorm/u8-normcoll'.
24811         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
24812         declarations.
24813         * lib/uninorm/u8-normcoll.c: New file.
24814         * lib/uninorm/u-normcoll.h: New file.
24815         * modules/uninorm/u8-normcoll: New file.
24816
24817         New module 'uninorm/u32-normxfrm'.
24818         * lib/uninorm/u32-normxfrm.c: New file.
24819         * modules/uninorm/u32-normxfrm: New file.
24820
24821         New module 'uninorm/u16-normxfrm'.
24822         * lib/uninorm/u16-normxfrm.c: New file.
24823         * modules/uninorm/u16-normxfrm: New file.
24824
24825         New module 'uninorm/u8-normxfrm'.
24826         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
24827         declarations.
24828         * lib/uninorm/u8-normxfrm.c: New file.
24829         * lib/uninorm/u-normxfrm.h: New file.
24830         * modules/uninorm/u8-normxfrm: New file.
24831
24832 2009-03-07  Bruno Haible  <bruno@clisp.org>
24833
24834         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
24835         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
24836         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
24837
24838 2009-03-07  Bruno Haible  <bruno@clisp.org>
24839
24840         New module 'memxfrm'.
24841         * lib/memxfrm.h: New file.
24842         * lib/memxfrm.c: New file.
24843         * modules/memxfrm: New file.
24844
24845 2009-03-07  Bruno Haible  <bruno@clisp.org>
24846
24847         New module 'memcmp2'.
24848         * lib/memcmp2.h: New file.
24849         * lib/memcmp2.c: New file.
24850         * modules/memcmp2: New file.
24851
24852 2009-03-07  Bruno Haible  <bruno@clisp.org>
24853
24854         Tests for module 'uninorm/decomposing-form'.
24855         * modules/uninorm/decomposing-form-tests: New file.
24856         * tests/uninorm/test-decomposing-form.c: New file.
24857
24858         New module 'uninorm/decomposing-form'.
24859         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
24860         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
24861         Add 'decomposing_variant' field.
24862         * lib/uninorm/decomposing-form.c: New file.
24863         * lib/uninorm/nfc.c (uninorm_nfc): Update.
24864         * lib/uninorm/nfd.c (uninorm_nfd): Update.
24865         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
24866         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
24867         * modules/uninorm/decomposing-form: New file.
24868         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
24869         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
24870
24871 2009-03-07  Bruno Haible  <bruno@clisp.org>
24872
24873         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
24874         strings.
24875
24876 2009-03-06  Bruno Haible  <bruno@clisp.org>
24877
24878         Tests for module 'uninorm/u32-normcmp'.
24879         * tests/uninorm/test-u32-normcmp.c: New file.
24880         * modules/uninorm/u32-normcmp-tests: New file.
24881
24882         Tests for module 'uninorm/u16-normcmp'.
24883         * tests/uninorm/test-u16-normcmp.c: New file.
24884         * modules/uninorm/u16-normcmp-tests: New file.
24885
24886         Tests for module 'uninorm/u8-normcmp'.
24887         * tests/uninorm/test-u8-normcmp.c: New file.
24888         * modules/uninorm/u8-normcmp-tests: New file.
24889
24890         New module 'uninorm/u32-normcmp'.
24891         * lib/uninorm/u32-normcmp.c: New file.
24892         * modules/uninorm/u32-normcmp: New file.
24893
24894         New module 'uninorm/u16-normcmp'.
24895         * lib/uninorm/u16-normcmp.c: New file.
24896         * modules/uninorm/u16-normcmp: New file.
24897
24898         New module 'uninorm/u8-normcmp'.
24899         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
24900         declarations.
24901         * lib/uninorm/u8-normcmp.c: New file.
24902         * lib/uninorm/u-normcmp.h: New file.
24903         * modules/uninorm/u8-normcmp: New file.
24904
24905 2009-03-06  Bruno Haible  <bruno@clisp.org>
24906
24907         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
24908         Reported by Eric Blake.
24909
24910 2009-03-06  Eric Blake  <ebb9@byu.net>
24911             Bruno Haible  <bruno@clisp.org>
24912
24913         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
24914         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
24915         condition.
24916         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24917         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
24918         condition.
24919         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
24920
24921 2009-03-06  Eric Blake  <ebb9@byu.net>
24922
24923         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
24924         to avoid compiler warnings.
24925         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
24926
24927 2009-03-05  Bruno Haible  <bruno@clisp.org>
24928
24929         * tests/test-ftell.c (main): Disable test beyond end of file on
24930         FreeMiNT.
24931         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24932
24933 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
24934
24935         * lib/filevercmp.c: Move hidden files up in ordering.
24936         * tests/test-filevercmp.c: Add tests for hidden files.
24937
24938 2009-03-04  Bruno Haible  <bruno@clisp.org>
24939
24940         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
24941         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
24942         AM_CFLAGS.
24943         Reported by Simon Josefsson.
24944
24945 2009-03-03  Bruno Haible  <bruno@clisp.org>
24946
24947         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
24948         Reported by Simon Josefsson.
24949
24950         * doc/ld-version-script.texi: Update node reference.
24951
24952 2009-03-03  Bruno Haible  <bruno@clisp.org>
24953
24954         * modules/visibility (License): Change to 'unlimited'.
24955         Suggested by Simon Josefsson.
24956
24957 2009-03-03  Jim Meyering  <meyering@redhat.com>
24958
24959         unlinkdir: cannot_unlink_dir may modify process state
24960         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
24961         it's neither thread-safe nor appropriate for use in a library.
24962
24963 2009-03-03  Eric Blake  <ebb9@byu.net>
24964
24965         test-closein: silence test under Darwin
24966         * tests/test-closein.sh: Ignore stderr from cat, since we don't
24967         care if it dies from EPIPE or EBADF.
24968
24969 2009-03-03  Bruno Haible  <bruno@clisp.org>
24970
24971         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
24972         earlier.
24973         * doc/visibility.texi: Fix @node and @section.
24974
24975 2009-03-03  Simon Josefsson  <simon@josefsson.org>
24976
24977         * doc/gnulib.texi: Link to sections for ld version script and
24978         visibility.
24979         * doc/visibility.texi: Add @node and @section.
24980         * modules/ld-version-script: New module.
24981         * m4/ld-version-script.m4: New file.
24982         * doc/ld-version-script.texi: New file.
24983
24984 2009-03-02  David Lutterkort  <lutter@redhat.com>
24985
24986         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
24987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24988
24989 2009-03-02  Bruno Haible  <bruno@clisp.org>
24990
24991         * doc/visibility.texi: Mention libtool's -export-symbols option.
24992
24993 2009-03-02  Jim Meyering  <meyering@redhat.com>
24994
24995         announce-gen: new option: --no-print-checksums
24996         * build-aux/announce-gen (usage): Describe it.
24997         (print_checksums): Print a newline here, not in the [*] footnote.
24998         (main): Honor it.
24999
25000 2009-03-01  Bruno Haible  <bruno@clisp.org>
25001
25002         Use socklen_t in the native Windows replacements prototypes.
25003         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
25004         instead of 'int'.
25005         * lib/getsockopt.c (rpl_getsockopt): Likewise.
25006         * lib/setsockopt.c (rpl_setsockopt): Likewise.
25007         * modules/getsockopt (Depends-on): Add socklen.
25008         * modules/setsockopt (Depends-on): Add socklen.
25009
25010 2009-03-01  Bruno Haible  <bruno@clisp.org>
25011
25012         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
25013         least 4.2.
25014
25015 2009-03-01  Eric Blake  <ebb9@byu.net>
25016             Bruno Haible  <bruno@clisp.org>
25017
25018         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
25019         error messages.
25020         * lib/wait-process.c (wait_subprocess): Omit error message about
25021         deadly signal sent to the child of termsigp != NULL.
25022
25023 2009-03-01  Eric Blake  <ebb9@byu.net>
25024
25025         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
25026
25027 2009-03-01  Bruno Haible  <bruno@clisp.org>
25028
25029         Avoid a gcc warning.
25030         * tests/test-sched.c (b): Make global.
25031         Reported by Eric Blake.
25032
25033 2009-01-19  Martin Lambers  <marlam@marlam.de>
25034
25035         Provide POSIX semantics for socket timeout options on W32.
25036         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
25037         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
25038         * modules/setsockopt: Depend on sys_time module for struct timeval.
25039         * modules/getsockopt: Depend on sys_time module for struct timeval.
25040
25041 2009-03-01  Simon Josefsson  <simon@josefsson.org>
25042
25043         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
25044         __USE_GNU, for consistency with netdb.in.h.
25045         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25046
25047 2009-03-01  Bruno Haible  <bruno@clisp.org>
25048
25049         More support for FreeMiNT.
25050         * lib/fseeko.c (rpl_fseeko): Complete last commit.
25051         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25052
25053 2009-03-01  Bruno Haible  <bruno@clisp.org>
25054
25055         More support for FreeMiNT.
25056         * lib/fpurge.c (fpurge): Correct last commit.
25057         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25058
25059 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25060
25061         Fix unportable awk script in vc-list-files.
25062         * build-aux/vc-list-files: In the replacement awk script, use
25063         substr with a second argument of 1, not zero.
25064         Report by Simon Josefsson.
25065
25066 2009-02-28  Bruno Haible  <bruno@clisp.org>
25067
25068         More support for FreeMiNT.
25069         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
25070         to FreeMiNT today.
25071         * lib/fwriting.c (fwriting): Likewise.
25072         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
25073
25074 2009-02-28  Bruno Haible  <bruno@clisp.org>
25075
25076         * tests/test-freadseek.c (main): Disable test beyond end of file on
25077         FreeMiNT.
25078         * tests/test-ftello.c (main): Likewise.
25079         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
25080
25081 2009-02-28  Bruno Haible  <bruno@clisp.org>
25082
25083         Add tentative support for FreeMiNT.
25084         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
25085         * lib/fpurge.c (fpurge): Likewise.
25086         * lib/freadable.c (freadable): Likewise.
25087         * lib/freading.c (freading): Likewise.
25088         * lib/freadptr.c (freadptr): Likewise.
25089         * lib/freadseek.c (freadptrinc): Likewise.
25090         * lib/fseeko.c (rpl_fseeko): Likewise.
25091         * lib/fseterr.c (fseterr): Likewise.
25092         * lib/fwritable.c (fwritable): Likewise.
25093         * lib/fwriting.c (fwriting): Likewise.
25094         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
25095         Hourihane.
25096         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25097
25098 2009-02-28  Bruno Haible  <bruno@clisp.org>
25099
25100         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
25101         SIGCHLD.
25102         Reported by Jim Meyering.
25103
25104 2009-02-28  Bruno Haible  <bruno@clisp.org>
25105
25106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
25107         Mention the results of these tests on various platforms.
25108         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
25109         order.
25110         * doc/posix-functions/printf.texi: Likewise.
25111         * doc/posix-functions/snprintf.texi: Likewise.
25112         * doc/posix-functions/sprintf.texi: Likewise.
25113         * doc/posix-functions/vfprintf.texi: Likewise.
25114         * doc/posix-functions/vprintf.texi: Likewise.
25115         * doc/posix-functions/vsnprintf.texi: Likewise.
25116         * doc/posix-functions/vsprintf.texi: Likewise.
25117         * doc/glibc-functions/obstack_printf.texi: Likewise.
25118         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25119
25120 2009-02-28  Bruno Haible  <bruno@clisp.org>
25121
25122         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
25123         Reported by Loïc Minier <lool@dooz.org>.
25124
25125 2009-02-27  Bruno Haible  <bruno@clisp.org>
25126
25127         * gnulib-tool (func_import): Make the sed expression used to create the
25128         sed script for updating the .gitignore file POSIX compliant.
25129         Reported by Eric Blake.
25130
25131 2009-02-27  Bruno Haible  <bruno@clisp.org>
25132
25133         * gnulib-tool (sed): Don't alias as "sed --posix".
25134         Reported by Eric Blake.
25135
25136 2009-02-27  Bruno Haible  <bruno@clisp.org>
25137
25138         Avoid test link errors.
25139         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
25140         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
25141         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
25142         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
25143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25144
25145 2009-02-27  Bruno Haible  <bruno@clisp.org>
25146
25147         Avoid spurious "(cached)" in configure output.
25148         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
25149         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
25150         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25151         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25152         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25153         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25154         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25155         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25156         Reported by Eric Blake.
25157
25158 2009-02-27  Eric Blake  <ebb9@byu.net>
25159
25160         printf: fix regression in previous patch
25161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
25162
25163 2009-02-27  Bruno Haible  <bruno@clisp.org>
25164
25165         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
25166         value.
25167         * lib/stdint.in.h: Likewise.
25168         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
25169
25170 2009-02-27  Eric Blake  <ebb9@byu.net>
25171
25172         doc: mention more functions added in cygwin 1.7.0
25173         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
25174         addition.
25175         * doc/posix-functions/open_wmemstream.texi: Likewise.
25176         * doc/posix-functions/wcsnlen.texi: Likewise.
25177         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25178         * doc/posix-functions/wcstod.texi: Likewise.
25179         * doc/posix-functions/wcstof.texi: Likewise.
25180         * doc/posix-functions/wcstoimax.texi: Likewise.
25181         * doc/posix-functions/wcstok.texi: Likewise.
25182         * doc/posix-functions/wcstoumax.texi: Likewise.
25183
25184         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
25185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
25186         * doc/posix-functions/fprintf.texi: Update.
25187         * doc/posix-functions/printf.texi: Update.
25188         * doc/posix-functions/snprintf.texi: Update.
25189         * doc/posix-functions/sprintf.texi: Update.
25190         * doc/posix-functions/vfprintf.texi: Update.
25191         * doc/posix-functions/vprintf.texi: Update.
25192         * doc/posix-functions/vsnprintf.texi: Update.
25193         * doc/posix-functions/vsprintf.texi: Update.
25194         * doc/glibc-functions/obstack_printf.texi: Update.
25195         * doc/glibc-functions/obstack_vprintf.texi: Update.
25196
25197 2009-02-26  Eric Blake  <ebb9@byu.net>
25198
25199         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
25200         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
25201         compilation bug by using runtime conversion.
25202         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25203         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
25204         * modules/ceill-tests (Files): Use nan.h.
25205         * modules/floorl-tests (Files): Likewise.
25206         * modules/frexpl-tests (Files): Likewise.
25207         * modules/isnanl-tests (Files): Likewise.
25208         * modules/ldexpl-tests (Files): Likewise.
25209         * modules/roundl-tests (Files): Likewise.
25210         * modules/truncl-tests (Files): Likewise.
25211         * tests/test-ceill.c (main): Use a working NaN.
25212         * tests/test-floorl.c (main): Likewise.
25213         * tests/test-frexpl.c (main): Likewise.
25214         * tests/test-isnan.c (test_long_double): Likewise.
25215         * tests/test-isnanl.h (main): Likewise.
25216         * tests/test-ldexpl.h (main): Likewise.
25217         * tests/test-roundl.h (main): Likewise.
25218         * tests/test-truncl.h (main): Likewise.
25219         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
25220
25221 2009-02-26  Eric Blake  <ebb9@byu.net>
25222             Bruno Haible  <bruno@clisp.org>
25223
25224         Work around a *printf bug with %ls on Solaris.
25225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
25226         precision is specified, sprintf stops converting the wide string
25227         argument when the number of bytes that have been produced by this
25228         conversion equals or exceeds the precision.
25229         * doc/posix-functions/fprintf.texi: Update.
25230         * doc/posix-functions/printf.texi: Update.
25231         * doc/posix-functions/snprintf.texi: Update.
25232         * doc/posix-functions/sprintf.texi: Update.
25233         * doc/posix-functions/vfprintf.texi: Update.
25234         * doc/posix-functions/vprintf.texi: Update.
25235         * doc/posix-functions/vsnprintf.texi: Update.
25236         * doc/posix-functions/vsprintf.texi: Update.
25237         * doc/glibc-functions/obstack_printf.texi: Update.
25238         * doc/glibc-functions/obstack_vprintf.texi: Update.
25239
25240 2009-02-26  Eric Blake  <ebb9@byu.net>
25241
25242         stdlib: favor compiler check of random.h
25243         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
25244         to avoid an ObjC random.h installed by Swarm.
25245
25246 2009-02-26  Bruno Haible  <bruno@clisp.org>
25247
25248         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
25249         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
25250         Reported by Gary V. Vaughan <gary@gnu.org>.
25251
25252 2009-02-26  Bruno Haible  <bruno@clisp.org>
25253
25254         Fix *printf behaviour regarding the %ls directive.
25255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
25256         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
25257         NEED_PRINTF_DIRECTIVE_LS.
25258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
25259         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25261         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
25262         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
25263         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
25264         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
25265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25269         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
25270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25273         * doc/posix-functions/fprintf.texi: Update.
25274         * doc/posix-functions/printf.texi: Update.
25275         * doc/posix-functions/snprintf.texi: Update.
25276         * doc/posix-functions/sprintf.texi: Update.
25277         * doc/posix-functions/vfprintf.texi: Update.
25278         * doc/posix-functions/vprintf.texi: Update.
25279         * doc/posix-functions/vsnprintf.texi: Update.
25280         * doc/posix-functions/vsprintf.texi: Update.
25281         * doc/glibc-functions/obstack_printf.texi: Update.
25282         * doc/glibc-functions/obstack_vprintf.texi: Update.
25283         Reported by Eric Blake.
25284
25285 2009-02-25  Bruno Haible  <bruno@clisp.org>
25286
25287         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
25288         with known value.
25289         Reported by Gary V. Vaughan <gary@gnu.org>.
25290
25291 2009-02-25  Bruno Haible  <bruno@clisp.org>
25292
25293         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
25294         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
25295         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
25296         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
25297         Reported by Gary V. Vaughan <gary@gnu.org>.
25298
25299 2009-02-25  Bruno Haible  <bruno@clisp.org>
25300
25301         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
25302         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
25303         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
25304         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
25305         Reported by Gary V. Vaughan <gary@gnu.org>.
25306
25307 2009-02-25  Eric Blake  <ebb9@byu.net>
25308
25309         tests: skip fseek/ftell tests if ungetc is broken
25310         * m4/ungetc.m4: New file.
25311         * modules/fseek-tests: Split test, so ungetc dependency is
25312         separate from rest of test.
25313         * modules/fseeko-tests: Likewise.
25314         * modules/ftell-tests: Likewise.
25315         * modules/ftello-tests: Likewise.
25316         * tests/test-fseek.c (main): Isolate ungetc dependency.
25317         * tests/test-fseeko.c (main): Likewise.
25318         * tests/test-ftell.c (main): Likewise.
25319         * tests/test-ftello.c (main): Likewise.
25320         * tests/test-fseek2.sh: New file.
25321         * tests/test-fseeko2.sh: Likewise.
25322         * tests/test-ftell2.sh: Likewise.
25323         * tests/test-ftello2.sh: Likewise.
25324
25325 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
25326
25327         test-getaddrinfo: fix usage of skip return code 77
25328         * tests/test-gettaddrinfo.c: Return skip code 77 only
25329         for first occurance of skip (4x77 is not 77)
25330
25331 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
25332
25333         strtod: avoid C99 decl-after-statement
25334         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
25335
25336 2009-02-24  Eric Blake  <ebb9@byu.net>
25337
25338         strtod: detect HP-UX 11.31 bug
25339         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
25340         Reported by Gary V. Vaughan.
25341
25342 2009-02-23  Bruno Haible  <bruno@clisp.org>
25343
25344         Fix invalid read past end of memory block.
25345         * lib/vasnprintf.c (DCHAR_SET): Define.
25346         (local_wcslen): Define only when needed.
25347         (local_strnlen, local_wcsnlen): New functions.
25348         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
25349         directives that involve a conversion ourselves.
25350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
25351         wcsnlen, mbrtowc, wcrtomb.
25352         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
25353         * tests/test-vasprintf-posix.c (test_function): Likewise.
25354         * tests/test-snprintf-posix.h (test_function): Likewise.
25355         * tests/test-sprintf-posix.h (test_function): Likewise.
25356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25357
25358 2009-02-22  Bruno Haible  <bruno@clisp.org>
25359
25360         Implement new clarified decomposition of Hangul syllables.
25361         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
25362         of type LTV, return only a pairwise decomposition.
25363         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
25364         Likewise.
25365         * tests/uninorm/test-decomposition.c (main): Updated expected result.
25366         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
25367         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
25368
25369 2009-02-22  Bruno Haible  <bruno@clisp.org>
25370
25371         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
25372         zero-length results and shrink excess allocated memory.
25373         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
25374         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
25375         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
25376         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
25377         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
25378         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
25379         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
25380         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
25381         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
25382         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
25383         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
25384         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
25385
25386 2009-02-21  Bruno Haible  <bruno@clisp.org>
25387
25388         * doc/gnulib.texi: Include safe-alloc.texi earlier.
25389         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
25390         spaces after a period. Put a space between a macro name and its
25391         argument list. Trivial rewordings.
25392         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25393         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
25394         (main): Return 0 explicitly.
25395
25396 2009-02-21  Bruno Haible  <bruno@clisp.org>
25397
25398         Tests for module 'uninorm/filter'.
25399         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
25400         * modules/uninorm/filter-tests: New file.
25401
25402         New module 'uninorm/filter'.
25403         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
25404         uninorm_filter_flush, uninorm_filter_free): New declarations.
25405         * lib/uninorm/uninorm-filter.c: New file.
25406         * modules/uninorm/filter: New file.
25407
25408 2009-02-21  Bruno Haible  <bruno@clisp.org>
25409
25410         Tests for module 'uninorm/nfkc'.
25411         * tests/uninorm/test-nfkc.c: New file.
25412         * tests/uninorm/test-u8-nfkc.c: New file.
25413         * tests/uninorm/test-u16-nfkc.c: New file.
25414         * tests/uninorm/test-u32-nfkc.c: New file.
25415         * tests/uninorm/test-u32-nfkc-big.sh: New file.
25416         * tests/uninorm/test-u32-nfkc-big.c: New file.
25417         * modules/uninorm/nfkc-tests: New file.
25418
25419         New module 'uninorm/nfkc'.
25420         * lib/uninorm/nfkc.c: New file.
25421         * modules/uninorm/nfkc: New file.
25422
25423         Tests for module 'uninorm/nfkd'.
25424         * tests/uninorm/test-nfkd.c: New file.
25425         * tests/uninorm/test-u8-nfkd.c: New file.
25426         * tests/uninorm/test-u16-nfkd.c: New file.
25427         * tests/uninorm/test-u32-nfkd.c: New file.
25428         * tests/uninorm/test-u32-nfkd-big.sh: New file.
25429         * tests/uninorm/test-u32-nfkd-big.c: New file.
25430         * modules/uninorm/nfkd-tests: New file.
25431
25432         New module 'uninorm/nfkd'.
25433         * lib/uninorm/nfkd.c: New file.
25434         * modules/uninorm/nfkd: New file.
25435
25436         Tests for module 'uninorm/nfc'.
25437         * tests/uninorm/test-nfc.c: New file.
25438         * tests/uninorm/test-u8-nfc.c: New file.
25439         * tests/uninorm/test-u16-nfc.c: New file.
25440         * tests/uninorm/test-u32-nfc.c: New file.
25441         * tests/uninorm/test-u32-nfc-big.sh: New file.
25442         * tests/uninorm/test-u32-nfc-big.c: New file.
25443         * modules/uninorm/nfc-tests: New file.
25444
25445         New module 'uninorm/nfc'.
25446         * lib/uninorm/nfc.c: New file.
25447         * modules/uninorm/nfc: New file.
25448
25449         Tests for module 'uninorm/nfd'.
25450         * tests/uninorm/test-nfd.c: New file.
25451         * tests/uninorm/test-u8-nfd.c: New file.
25452         * tests/uninorm/test-u16-nfd.c: New file.
25453         * tests/uninorm/test-u32-nfd.c: New file.
25454         * tests/uninorm/test-u32-nfd-big.sh: New file.
25455         * tests/uninorm/test-u32-nfd-big.c: New file.
25456         * tests/uninorm/test-u32-normalize-big.h: New file.
25457         * tests/uninorm/test-u32-normalize-big.c: New file.
25458         * tests/uninorm/NormalizationTest.txt: New file, created from
25459         Unicode 5.1.0 NormalizationTest.txt.
25460         * modules/uninorm/nfd-tests: New file.
25461
25462         New module 'uninorm/nfd'.
25463         * lib/uninorm/nfd.c: New file.
25464         * modules/uninorm/nfd: New file.
25465
25466         New module 'uninorm/u32-normalize'.
25467         * lib/uninorm/u32-normalize.c: New file.
25468         * modules/uninorm/u32-normalize: New file.
25469
25470         New module 'uninorm/u16-normalize'.
25471         * lib/uninorm/u16-normalize.c: New file.
25472         * modules/uninorm/u16-normalize: New file.
25473
25474         New module 'uninorm/u8-normalize'.
25475         * lib/uninorm/u8-normalize.c: New file.
25476         * lib/uninorm/normalize-internal.h: New file.
25477         * lib/uninorm/u-normalize-internal.h: New file.
25478         * modules/uninorm/u8-normalize: New file.
25479
25480         New module 'uninorm/decompose-internal'.
25481         * lib/uninorm/decompose-internal.c: New file.
25482         * modules/uninorm/decompose-internal: New file.
25483
25484         Tests for module 'uninorm/composition'.
25485         * tests/uninorm/test-composition.c: New file.
25486         * modules/uninorm/composition-tests: New file.
25487
25488         New module 'uninorm/composition'.
25489         * lib/uninorm/composition.c: New file.
25490         * lib/uninorm/composition-table.gperf: New file, generated by
25491         gen-uni-tables.
25492         * modules/uninorm/composition: New file.
25493
25494         Tests for module 'uninorm/compat-decomposition'.
25495         * tests/uninorm/test-compat-decomposition.c: New file.
25496         * modules/uninorm/compat-decomposition-tests: New file.
25497
25498         New module 'uninorm/compat-decomposition'.
25499         * lib/uninorm/decompose-internal.h: New file.
25500         * lib/uninorm/compat-decomposition.c: New file.
25501         * modules/uninorm/compat-decomposition: New file.
25502
25503         Tests for module 'uninorm/canonical-decomposition'.
25504         * tests/uninorm/test-canonical-decomposition.c: New file.
25505         * modules/uninorm/canonical-decomposition-tests: New file.
25506
25507         New module 'uninorm/canonical-decomposition'.
25508         * lib/uninorm/canonical-decomposition.c: New file.
25509         * modules/uninorm/canonical-decomposition: New file.
25510
25511         Tests for module 'uninorm/decomposition'.
25512         * tests/uninorm/test-decomposition.c: New file.
25513         * modules/uninorm/decomposition-tests: New file.
25514
25515         New module 'uninorm/decomposition'.
25516         * lib/uninorm/decomposition.c: New file.
25517         * modules/uninorm/decomposition: New file.
25518
25519         New module 'uninorm/decomposition-table'.
25520         * lib/uninorm/decomposition-table.h: New file.
25521         * lib/uninorm/decomposition-table.c: New file.
25522         * lib/uninorm/decomposition-table1.h: New file, generated by
25523         gen-uni-tables.
25524         * lib/uninorm/decomposition-table2.h: New file, generated by
25525         gen-uni-tables.
25526         * modules/uninorm/decomposition-table: New file.
25527
25528         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
25529         (UC_DECOMP_*): New enumeration items.
25530         (get_decomposition): New function.
25531         (struct decomp_table): New type.
25532         (output_decomposition, output_decomposition_tables): New functions.
25533         (unicode_composition_exclusions): New variable.
25534         (fill_composition_exclusions, debug_output_composition_tables): New
25535         functions.
25536         (main): Accept one more argument. Invoke fill_composition_exclusions.
25537         Output decomposition and composition tables.
25538
25539         New module 'uninorm/base'.
25540         * lib/uninorm.h: New file.
25541         * lib/unictype.h: Update comment.
25542         * modules/uninorm/base: New file.
25543
25544 2009-02-21  David Lutterkort  <lutter@redhat.com>
25545
25546         Tests for module 'safe-alloc'.
25547         * tests/test-safe-alloc.c: New file.
25548         * modules/safe-alloc-tests: New file.
25549
25550         New module 'safe-alloc'.
25551         * lib/safe-alloc.h: New file.
25552         * lib/safe-alloc.c: New file.
25553         * m4/safe-alloc.m4: New file.
25554         * modules/safe-alloc: New file.
25555         * doc/safe-alloc.texi: New file.
25556         * doc/gnulib.texi: Include it.
25557         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25558         safe-alloc.
25559
25560 2009-02-18  Bruno Haible  <bruno@clisp.org>
25561
25562         Fix link error on non-glibc systems.
25563         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
25564         variable.
25565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25566
25567 2009-02-18  Jim Meyering  <meyering@redhat.com>
25568
25569         fts: avoid used-uninitialized error due to recent change
25570         * lib/fts.c (fts_read): Guard uses of the new member,
25571         parent->fts_n_dirs_remaining, since it's not relevant for
25572         the parent of a directory specified on the command-line.
25573
25574 2009-02-17  James Youngman  <jay@gnu.org>
25575             Bruno Haible  <bruno@clisp.org>
25576
25577         * m4/include_next.m4: Reformulate comment.
25578
25579 2009-02-16  Jim Meyering  <meyering@redhat.com>
25580
25581         fts: add #if guards so that the fts_lgpl module still builds
25582         * lib/fts.c: Guard just-added hash-table-using parts with
25583         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
25584         Reported by Simon Josefsson.
25585
25586 2009-02-15  Bruno Haible  <bruno@clisp.org>
25587
25588         * modules/array-mergesort-tests: New file.
25589         * tests/test-array-mergesort.c: New file.
25590
25591         New module 'array-mergesort'.
25592         * modules/array-mergesort: New file.
25593         * lib/array-mergesort.h: New file.
25594
25595 2009-02-15  Bruno Haible  <bruno@clisp.org>
25596
25597         Fix 2009-02-07 commit.
25598         * lib/gen-uni-tables.c (output_predicate, output_category,
25599         output_combclass, output_bidi_category, output_decimal_digit,
25600         output_digit, output_numeric, output_mirror, output_scripts,
25601         output_ident_category, output_simple_mapping): Fix format directives.
25602         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
25603
25604 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
25605
25606         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
25607         fixes are available from IBM.
25608
25609 2009-02-13  Jim Meyering  <meyering@redhat.com>
25610
25611         fts: arrange not to stat non-directories in more cases
25612         This makes GNU find (when it doesn't need to stat each file)
25613         *much* more efficient at traversing reiserfs file systems.
25614         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
25615         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
25616         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
25617         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
25618         (leaf_optimization_applies): New function.
25619         (LCO_hash, LCO_compare): New helper functions.
25620         (link_count_optimize_ok): New function.
25621         (fts_stat): Initialize new member (if dir).
25622         (fts_read): Decrement parent's fts_n_dirs_remaining count if
25623         we've just stat'ed a directory.  Skip the stat call when possible.
25624         ---
25625         Note this AFS-related exchange:
25626         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
25627         and note find's pioctl call in find/fstype.c.
25628         But that is necessary only if you want to enable the
25629         optimization for AFS, and for now, I don't.
25630
25631         fts: move a function definition "up" (no semantic change)
25632         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
25633         "up" to precede upcoming use of a related function.
25634
25635 2009-02-11  Jim Meyering  <meyering@redhat.com>
25636
25637         fts: correct internal computation of nlinks (optimization-related)
25638         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
25639         whether the current entry is a directory, so don't test it.
25640
25641 2009-02-10  Bruno Haible  <bruno@clisp.org>
25642
25643         Tests for module 'uniwbrk/ulc-wordbreaks'.
25644         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
25645         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
25646         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
25647
25648         Tests for module 'uniwbrk/u32-wordbreaks'.
25649         * modules/uniwbrk/u32-wordbreaks-tests: New file.
25650         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
25651
25652         Tests for module 'uniwbrk/u16-wordbreaks'.
25653         * modules/uniwbrk/u16-wordbreaks-tests: New file.
25654         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
25655
25656         Tests for module 'uniwbrk/u8-wordbreaks'.
25657         * modules/uniwbrk/u8-wordbreaks-tests: New file.
25658         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
25659
25660 2009-02-10  Bruno Haible  <bruno@clisp.org>
25661
25662         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
25663         property.
25664         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
25665         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
25666         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
25667
25668 2009-02-10  Simon Josefsson  <simon@josefsson.org>
25669
25670         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
25671         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
25672
25673 2009-02-10  Bruno Haible  <bruno@clisp.org>
25674
25675         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
25676         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
25677         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
25678         * lib/unilbrk/u8-possible-linebreaks.c: Update.
25679         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
25680         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
25681
25682 2009-02-09  Simon Josefsson  <simon@josefsson.org>
25683
25684         * lib/sockets.h (gl_fd_to_handle): New function.
25685
25686         * tests/test-sockets.c: Call gl_fd_to_handle.
25687
25688 2009-02-09  Bruno Haible  <bruno@clisp.org>
25689
25690         * doc/havelib.texi: Document the conventions on bi-arch systems.
25691
25692 2009-02-08  Bruno Haible  <bruno@clisp.org>
25693
25694         Document the AC_LIB_LINKFLAGS macro.
25695         * doc/havelib.texi: New file, mostly written on 2005-05-24.
25696         * doc/gnulib.texi: Include it.
25697
25698 2009-02-08  Bruno Haible  <bruno@clisp.org>
25699
25700         Fix wrong order of sections, compared to TOC.
25701         * doc/gnulib.texi: Include relocatable-maint.texi after the
25702         "Regular expressions" node, not before.
25703
25704 2009-02-08  Bruno Haible  <bruno@clisp.org>
25705
25706         Tests for module 'unicase/totitle'.
25707         * modules/unicase/totitle-tests: New file.
25708
25709         Tests for module 'unicase/tolower'.
25710         * modules/unicase/tolower-tests: New file.
25711
25712         Tests for module 'unicase/toupper'.
25713         * modules/unicase/toupper-tests: New file.
25714         * tests/unicase/test-mapping-part1.h: New file.
25715         * tests/unicase/test-mapping-part2.h: New file.
25716
25717         New module 'unicase/totitle'.
25718         * modules/unicase/totitle: New file.
25719         * lib/unicase/totitle.c: New file.
25720
25721         New module 'unicase/tolower'.
25722         * modules/unicase/tolower: New file.
25723         * lib/unicase/tolower.c: New file.
25724
25725         New module 'unicase/toupper'.
25726         * modules/unicase/toupper: New file.
25727         * lib/unicase/toupper.c: New file.
25728         * lib/unicase/simple-mapping.h: New file.
25729
25730         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
25731         (mapping_table): New structure.
25732         (output_simple_mapping): New function.
25733         (main): Invoke output_simple_mapping_test and output_simple_mapping.
25734         * modules/gen-uni-tables (Description): Update.
25735         * lib/unicase/toupper.h: New file, automatically generated by
25736         gen-uni-tables.
25737         * lib/unicase/tolower.h: New file, automatically generated by
25738         gen-uni-tables.
25739         * lib/unicase/totitle.h: New file, automatically generated by
25740         gen-uni-tables.
25741         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
25742         gen-uni-tables.
25743         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
25744         gen-uni-tables.
25745         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
25746         gen-uni-tables.
25747
25748         New module 'unicase/base'.
25749         * modules/unicase/base: New file.
25750         * lib/unicase.h: New file.
25751
25752 2009-02-08  Bruno Haible  <bruno@clisp.org>
25753
25754         New module 'uniwbrk/ulc-wordbreaks'.
25755         * modules/uniwbrk/ulc-wordbreaks: New file.
25756         * lib/uniwbrk/ulc-wordbreaks.c: New file.
25757
25758         New module 'uniwbrk/u32-wordbreaks'.
25759         * modules/uniwbrk/u32-wordbreaks: New file.
25760         * lib/uniwbrk/u32-wordbreaks.c: New file.
25761
25762         New module 'uniwbrk/u16-wordbreaks'.
25763         * modules/uniwbrk/u16-wordbreaks: New file.
25764         * lib/uniwbrk/u16-wordbreaks.c: New file.
25765
25766         New module 'uniwbrk/u8-wordbreaks'.
25767         * modules/uniwbrk/u8-wordbreaks: New file.
25768         * lib/uniwbrk/u8-wordbreaks.c: New file.
25769         * lib/uniwbrk/u-wordbreaks.h: New file.
25770
25771         New module 'uniwbrk/table'.
25772         * modules/uniwbrk/table: New file.
25773         * lib/uniwbrk/wbrktable.h: New file.
25774         * lib/uniwbrk/wbrktable.c: New file.
25775
25776         New module 'uniwbrk/wordbreak-property'.
25777         * modules/uniwbrk/wordbreak-property: New file.
25778         * lib/uniwbrk/wordbreak-property.c: New file.
25779
25780         * lib/gen-uni-tables.c (WBP_*): New enum items.
25781         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
25782         (unicode_org_wbp): New variable.
25783         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
25784         New functions.
25785         (wbp_table): New structure.
25786         (output_wbp, output_wbrk_tables): New functions.
25787         (main): Accept additional argument. Invoke fill_org_wbp,
25788         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
25789         output_wbrk_tables.
25790         * modules/gen-uni-tables (Description): Update.
25791         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
25792         gen-uni-tables.
25793
25794         New module 'uniwbrk/base'.
25795         * modules/uniwbrk/base: New file.
25796         * lib/uniwbrk.h: New file.
25797
25798 2009-02-08  Bruno Haible  <bruno@clisp.org>
25799
25800         Update to Unicode 5.1.0.
25801         * lib/gen-uni-tables.c (is_property_alphabetic): Include
25802         U+2185..U+2188.
25803         (is_property_default_ignorable_code_point): Don't include characters
25804         of category Cc or Cs and not-a-characters.
25805         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
25806         U+0D79, U+109E, U+109F, U+A60C.
25807         * lib/unictype/bidi_of.h: Regenerated.
25808         * lib/unictype/blocks.h: Regenerated.
25809         * lib/unictype/categ_C.h: Regenerated.
25810         * lib/unictype/categ_Cf.h: Regenerated.
25811         * lib/unictype/categ_Cn.h: Regenerated.
25812         * lib/unictype/categ_L.h: Regenerated.
25813         * lib/unictype/categ_Ll.h: Regenerated.
25814         * lib/unictype/categ_Lm.h: Regenerated.
25815         * lib/unictype/categ_Lo.h: Regenerated.
25816         * lib/unictype/categ_Lu.h: Regenerated.
25817         * lib/unictype/categ_M.h: Regenerated.
25818         * lib/unictype/categ_Mc.h: Regenerated.
25819         * lib/unictype/categ_Me.h: Regenerated.
25820         * lib/unictype/categ_Mn.h: Regenerated.
25821         * lib/unictype/categ_N.h: Regenerated.
25822         * lib/unictype/categ_Nd.h: Regenerated.
25823         * lib/unictype/categ_Nl.h: Regenerated.
25824         * lib/unictype/categ_No.h: Regenerated.
25825         * lib/unictype/categ_P.h: Regenerated.
25826         * lib/unictype/categ_Pd.h: Regenerated.
25827         * lib/unictype/categ_Pe.h: Regenerated.
25828         * lib/unictype/categ_Pf.h: Regenerated.
25829         * lib/unictype/categ_Pi.h: Regenerated.
25830         * lib/unictype/categ_Po.h: Regenerated.
25831         * lib/unictype/categ_Ps.h: Regenerated.
25832         * lib/unictype/categ_S.h: Regenerated.
25833         * lib/unictype/categ_Sk.h: Regenerated.
25834         * lib/unictype/categ_Sm.h: Regenerated.
25835         * lib/unictype/categ_So.h: Regenerated.
25836         * lib/unictype/categ_of.h: Regenerated.
25837         * lib/unictype/combining.h: Regenerated.
25838         * lib/unictype/ctype_alnum.h: Regenerated.
25839         * lib/unictype/ctype_alpha.h: Regenerated.
25840         * lib/unictype/ctype_graph.h: Regenerated.
25841         * lib/unictype/ctype_lower.h: Regenerated.
25842         * lib/unictype/ctype_print.h: Regenerated.
25843         * lib/unictype/ctype_punct.h: Regenerated.
25844         * lib/unictype/ctype_upper.h: Regenerated.
25845         * lib/unictype/decdigit.h: Regenerated.
25846         * lib/unictype/digit.h: Regenerated.
25847         * lib/unictype/mirror.h: Regenerated.
25848         * lib/unictype/numeric.h: Regenerated.
25849         * lib/unictype/pr_alphabetic.h: Regenerated.
25850         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
25851         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
25852         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
25853         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
25854         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
25855         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
25856         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
25857         * lib/unictype/pr_combining.h: Regenerated.
25858         * lib/unictype/pr_dash.h: Regenerated.
25859         * lib/unictype/pr_decimal_digit.h: Regenerated.
25860         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
25861         * lib/unictype/pr_deprecated.h: Regenerated.
25862         * lib/unictype/pr_diacritic.h: Regenerated.
25863         * lib/unictype/pr_extender.h: Regenerated.
25864         * lib/unictype/pr_format_control.h: Regenerated.
25865         * lib/unictype/pr_grapheme_base.h: Regenerated.
25866         * lib/unictype/pr_grapheme_extend.h: Regenerated.
25867         * lib/unictype/pr_grapheme_link.h: Regenerated.
25868         * lib/unictype/pr_id_continue.h: Regenerated.
25869         * lib/unictype/pr_id_start.h: Regenerated.
25870         * lib/unictype/pr_ideographic.h: Regenerated.
25871         * lib/unictype/pr_ignorable_control.h: Regenerated.
25872         * lib/unictype/pr_lowercase.h: Regenerated.
25873         * lib/unictype/pr_math.h: Regenerated.
25874         * lib/unictype/pr_numeric.h: Regenerated.
25875         * lib/unictype/pr_other_alphabetic.h: Regenerated.
25876         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
25877         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
25878         * lib/unictype/pr_other_id_continue.h: Regenerated.
25879         * lib/unictype/pr_other_lowercase.h: Regenerated.
25880         * lib/unictype/pr_other_math.h: Regenerated.
25881         * lib/unictype/pr_punctuation.h: Regenerated.
25882         * lib/unictype/pr_sentence_terminal.h: Regenerated.
25883         * lib/unictype/pr_soft_dotted.h: Regenerated.
25884         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
25885         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
25886         * lib/unictype/pr_unified_ideograph.h: Regenerated.
25887         * lib/unictype/pr_uppercase.h: Regenerated.
25888         * lib/unictype/pr_xid_continue.h: Regenerated.
25889         * lib/unictype/pr_xid_start.h: Regenerated.
25890         * lib/unictype/pr_zero_width.h: Regenerated.
25891         * lib/unictype/scripts.h: Regenerated.
25892         * lib/unictype/scripts_byname.gperf: Regenerated.
25893         * lib/unictype/sy_java_ident.h: Regenerated.
25894         * lib/unilbrk/lbrkprop1.h: Regenerated.
25895         * lib/unilbrk/lbrkprop2.h: Regenerated.
25896         * tests/unictype/test-categ_C.c: Regenerated.
25897         * tests/unictype/test-categ_Cf.c: Regenerated.
25898         * tests/unictype/test-categ_Cn.c: Regenerated.
25899         * tests/unictype/test-categ_L.c: Regenerated.
25900         * tests/unictype/test-categ_Ll.c: Regenerated.
25901         * tests/unictype/test-categ_Lm.c: Regenerated.
25902         * tests/unictype/test-categ_Lo.c: Regenerated.
25903         * tests/unictype/test-categ_Lu.c: Regenerated.
25904         * tests/unictype/test-categ_M.c: Regenerated.
25905         * tests/unictype/test-categ_Mc.c: Regenerated.
25906         * tests/unictype/test-categ_Me.c: Regenerated.
25907         * tests/unictype/test-categ_Mn.c: Regenerated.
25908         * tests/unictype/test-categ_N.c: Regenerated.
25909         * tests/unictype/test-categ_Nd.c: Regenerated.
25910         * tests/unictype/test-categ_Nl.c: Regenerated.
25911         * tests/unictype/test-categ_No.c: Regenerated.
25912         * tests/unictype/test-categ_P.c: Regenerated.
25913         * tests/unictype/test-categ_Pd.c: Regenerated.
25914         * tests/unictype/test-categ_Pe.c: Regenerated.
25915         * tests/unictype/test-categ_Pf.c: Regenerated.
25916         * tests/unictype/test-categ_Pi.c: Regenerated.
25917         * tests/unictype/test-categ_Po.c: Regenerated.
25918         * tests/unictype/test-categ_Ps.c: Regenerated.
25919         * tests/unictype/test-categ_S.c: Regenerated.
25920         * tests/unictype/test-categ_Sk.c: Regenerated.
25921         * tests/unictype/test-categ_Sm.c: Regenerated.
25922         * tests/unictype/test-categ_So.c: Regenerated.
25923         * tests/unictype/test-ctype_alnum.c: Regenerated.
25924         * tests/unictype/test-ctype_alpha.c: Regenerated.
25925         * tests/unictype/test-ctype_graph.c: Regenerated.
25926         * tests/unictype/test-ctype_lower.c: Regenerated.
25927         * tests/unictype/test-ctype_print.c: Regenerated.
25928         * tests/unictype/test-ctype_punct.c: Regenerated.
25929         * tests/unictype/test-ctype_upper.c: Regenerated.
25930         * tests/unictype/test-decdigit.h: Regenerated.
25931         * tests/unictype/test-digit.h: Regenerated.
25932         * tests/unictype/test-numeric.h: Regenerated.
25933         * tests/unictype/test-pr_alphabetic.c: Regenerated.
25934         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
25935         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
25936         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
25937         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
25938         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
25939         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
25940         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
25941         * tests/unictype/test-pr_combining.c: Regenerated.
25942         * tests/unictype/test-pr_dash.c: Regenerated.
25943         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
25944         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
25945         * tests/unictype/test-pr_deprecated.c: Regenerated.
25946         * tests/unictype/test-pr_diacritic.c: Regenerated.
25947         * tests/unictype/test-pr_extender.c: Regenerated.
25948         * tests/unictype/test-pr_format_control.c: Regenerated.
25949         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
25950         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
25951         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
25952         * tests/unictype/test-pr_id_continue.c: Regenerated.
25953         * tests/unictype/test-pr_id_start.c: Regenerated.
25954         * tests/unictype/test-pr_ideographic.c: Regenerated.
25955         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
25956         * tests/unictype/test-pr_lowercase.c: Regenerated.
25957         * tests/unictype/test-pr_math.c: Regenerated.
25958         * tests/unictype/test-pr_numeric.c: Regenerated.
25959         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
25960         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
25961         Regenerated.
25962         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
25963         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
25964         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
25965         * tests/unictype/test-pr_other_math.c: Regenerated.
25966         * tests/unictype/test-pr_punctuation.c: Regenerated.
25967         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
25968         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
25969         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
25970         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
25971         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
25972         * tests/unictype/test-pr_uppercase.c: Regenerated.
25973         * tests/unictype/test-pr_xid_continue.c: Regenerated.
25974         * tests/unictype/test-pr_xid_start.c: Regenerated.
25975         * tests/unictype/test-pr_zero_width.c: Regenerated.
25976
25977         Update to Unicode 5.1.0.
25978         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
25979         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
25980         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
25981         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
25982         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
25983         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
25984         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
25985         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
25986         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
25987         (nonspacing_table_ind): Update.
25988         * tests/uniwidth/test-uc_width2.sh: Update expected result.
25989
25990         Update to Unicode 5.1.0.
25991         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
25992         code transform.
25993         * lib/uniname/uniname.c (unicode_character_name,
25994         unicode_name_character): Add the range 0x1Fxxx to the code transform.
25995         * lib/uniname/uninames.h: Regenerated.
25996         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
25997
25998 2009-02-07  Bruno Haible  <bruno@clisp.org>
25999
26000         Merge gen-ctype and gen-lbrk into a single program.
26001         * lib/gen-uni-tables.c: New file, incorporating
26002         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
26003         Add directory prefixes to the names of the generated files.
26004         * lib/unictype/gen-ctype.c: Remove file.
26005         * lib/unilbrk/gen-lbrk.c: Remove file.
26006         * modules/gen-uni-tables: New file.
26007         * modules/unictype/gen-ctype: Remove file.
26008         * modules/unilbrk/gen-lbrk: Remove file.
26009
26010 2009-02-07  Bruno Haible  <bruno@clisp.org>
26011
26012         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
26013
26014         New module 'unistr/u32-strcoll'.
26015         * modules/unistr/u32-strcoll: New file.
26016         * lib/unistr/u32-strcoll.c: New file.
26017
26018         New module 'unistr/u16-strcoll'.
26019         * modules/unistr/u16-strcoll: New file.
26020         * lib/unistr/u16-strcoll.c: New file.
26021
26022         New module 'unistr/u8-strcoll'.
26023         * modules/unistr/u8-strcoll: New file.
26024         * lib/unistr/u8-strcoll.c: New file.
26025         * lib/unistr/u-strcoll.h: New file.
26026
26027 2009-02-07  Bruno Haible  <bruno@clisp.org>
26028
26029         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
26030         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26031         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
26032         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
26033         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
26034         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
26035
26036 2009-02-07  Bruno Haible  <bruno@clisp.org>
26037
26038         Make 64-bit clean.
26039         * lib/unictype/gen-ctype.c (output_predicate, output_category,
26040         output_combclass, output_bidi_category, output_decimal_digit,
26041         output_digit, output_numeric, output_mirror, output_scripts,
26042         output_ident_category): Use proper width specifier in format strings.
26043
26044 2009-02-07  Bruno Haible  <bruno@clisp.org>
26045
26046         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
26047         failure behaviour.
26048
26049 2009-02-07  Jim Meyering  <meyering@redhat.com>
26050
26051         regex: avoid compilation failure with upcoming gcc-4.4
26052         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
26053         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
26054         "... error: integer overflow in preprocessor expression".
26055
26056 2009-02-05  Ben Pfaff  <blp@gnu.org>
26057
26058         Fix link errors on Windows when close module is used.
26059         * modules/close: Add $(LIB_CLOSE) to Link section.
26060         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
26061         $(LIB_CLOSE) on Windows.
26062
26063 2009-02-05  Jim Meyering  <meyering@redhat.com>
26064
26065         still avoid unused-parameter warnings, but do it cleanly
26066         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
26067         (get_fs_usage): Cast to void instead.
26068         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
26069         (dev_from_mount_options, read_file_system_list): Cast to void.
26070         Prompted by Bruno Haible.
26071
26072 2009-02-04  Jim Meyering  <meyering@redhat.com>
26073
26074         fsusage.c: correct copyright year
26075         * lib/fsusage.c: Reflect year in which the change is pushed into
26076
26077         avoid misc. warnings
26078         * lib/fsusage.c (UNUSED_PARAM): Define.
26079         (get_fs_usage): Mark parameter "disk" as unused.
26080         * lib/getugroups.c (getgrent): Use "void" in prototype.
26081         * lib/mountlist.c: Mark unused parameters.
26082         (read_file_system_list): Declare a local with "const".
26083         * lib/nanosleep.c (getnow): Declare static.
26084         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
26085
26086         dirfd: set errno upon failure
26087         * lib/dirfd.c: Include <errno.h>.
26088         Set errno to ENOTSUP when returning -1.
26089         * modules/dirfd (Depends-on): Add errno.
26090         Suggested by John Kodis <kodis@comcast.net>.
26091
26092 2009-02-01  Bruno Haible  <bruno@clisp.org>
26093
26094         Don't assume sizeof (long) >= sizeof (void *).
26095         * lib/memcmp.c: Include stdint.h.
26096         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
26097         srcp2 to 'const byte *'.
26098         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
26099         types to uintptr_t.
26100         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
26101         * modules/memcmp (Depends-on): Add stdint.
26102         Reported by Ozkan Sezer <sezeroz@gmail.com>.
26103
26104 2009-01-30  Eric Blake  <ebb9@byu.net>
26105
26106         fix more require-before-expand issues
26107         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
26108         expand, AC_PROG_AWK.
26109         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
26110
26111 2009-01-28  Eric Blake  <ebb9@byu.net>
26112
26113         version-etc: use consistent URL formatting
26114         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
26115         Improve formatting.  Use fputs for string without %.
26116
26117 2009-01-28  Jim Meyering  <meyering@redhat.com>
26118
26119         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
26120         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
26121         "underquoted definition of NAME" from autoconf-2.59.
26122
26123 2009-01-28  Bruno Haible  <bruno@clisp.org>
26124
26125         * doc/gnulib.texi: Add "Obsolete modules" to index.
26126
26127 2009-01-28  Jim Meyering  <meyering@redhat.com>
26128
26129         useless-if-before-free: recognize more variants
26130         * build-aux/useless-if-before-free: Also recognize e.g.,
26131         if (NULL != p) free (p);
26132
26133 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
26134
26135         test-getaddrinfo: skip (don't fail) this test when there's no network
26136         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
26137         on the presumption that it means you lack network access.
26138
26139 2009-01-26  Jim Meyering  <meyering@redhat.com>
26140
26141         fflush: avoid warnings on modern systems
26142         * lib/fflush.c (rpl_fflush): Move declarations of locals,
26143         pos and result, into scopes where they're used.
26144
26145 2009-01-26  Eric Blake  <ebb9@byu.net>
26146
26147         Silence warning reintroduced by recent extensions patch.
26148         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
26149         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
26150         autoconf.
26151
26152         Backport improved autoconf semantics of AC_DEFUN_ONCE.
26153         * m4/00gnulib.m4: New file.
26154         * gnulib-tool (func_get_filelist): Always use it.
26155         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
26156         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
26157
26158 2009-01-25  Bruno Haible  <bruno@clisp.org>
26159
26160         Make test-quotearg work on MacOS X and AIX.
26161         * tests/test-quotearg.sh: New file.
26162         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
26163         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
26164         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
26165         include <libintl.h>.
26166         (fake_locale): Remove variable.
26167         (gettext, dgettext, dcgettext): Remove functions.
26168         (main): Instead of setting a fake locale, set a real locale. Call
26169         textdomain and bindtextdomain.
26170         * modules/quotearg-tests (Files): Add the new files.
26171         (Depends-on): Add gettext, setenv, unsetenv.
26172         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26173         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
26174         Augment TESTS_ENVIRONMENT.
26175
26176 2009-01-25  Bruno Haible  <bruno@clisp.org>
26177
26178         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
26179         fr_FR.ISO8859-1 locale on MacOS X.
26180         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
26181         ja_JP.eucJP locale on MacOS X.
26182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
26183         zh_CN.GB18030 locale on MacOS X.
26184
26185 2009-01-25  Bruno Haible  <bruno@clisp.org>
26186
26187         Avoid link errors on MacOS X 10.3.
26188         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
26189         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
26190
26191 2009-01-25  Bruno Haible  <bruno@clisp.org>
26192
26193         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26194         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
26195         * modules/pipe (Files): Remove m4/posix_spawn.m4.
26196         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26197         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
26198         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26199         posix_spawnattr_init, posix_spawnattr_setsigmask,
26200         posix_spawnattr_setflags, posix_spawnattr_destroy.
26201
26202         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
26203         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
26204         * modules/execute (Files): Remove m4/posix_spawn.m4.
26205         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
26206         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
26207         posix_spawnattr_init, posix_spawnattr_setsigmask,
26208         posix_spawnattr_setflags, posix_spawnattr_destroy.
26209
26210 2009-01-25  Bruno Haible  <bruno@clisp.org>
26211
26212         * lib/glthread/threadlib.c: Include <stdlib.h>.
26213
26214 2009-01-25  Bruno Haible  <bruno@clisp.org>
26215
26216         * lib/glthread/threadlib.c (dummy): New declaration.
26217
26218 2009-01-25  Bruno Haible  <bruno@clisp.org>
26219
26220         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
26221         multibyte characters also for the GB18030 encoding. Don't crash when
26222         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
26223
26224 2009-01-25  Bruno Haible  <bruno@clisp.org>
26225
26226         Avoid redefining 'struct random_data' on OSF/1 5.1.
26227         * lib/stdlib.in.h: Include <random.h> if it exists.
26228         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
26229         HAVE_RANDOM_H. Include <random.h> when testing whether
26230         'struct random_data' exists.
26231         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
26232
26233 2009-01-25  Bruno Haible  <bruno@clisp.org>
26234
26235         Don't install charset.alias on MacOS X >= 10.3.
26236         * lib/localcharset.c (DARWIN7): New macro.
26237         (get_charset_aliases): Hardcode the result for Darwin7.
26238         * modules/localcharset (install-exec-local): Don't install
26239         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
26240
26241 2009-01-25  Bruno Haible  <bruno@clisp.org>
26242
26243         Don't install charset.alias on mingw and Cygwin.
26244         * modules/localcharset (install-exec-local): Don't install
26245         charset.alias on mingw and Cygwin, if the file does not yet exist.
26246         The result for these platforms is hardcoded in localcharset.c.
26247
26248 2009-01-25  Bruno Haible  <bruno@clisp.org>
26249
26250         Make it possible again to use AC_GNU_SOURCE together with gnulib.
26251         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
26252         before requiring AC_USE_SYSTEM_EXTENSIONS.
26253
26254 2009-01-25  Jim Meyering  <meyering@redhat.com>
26255
26256         c-strtod: avoid warnings
26257         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
26258         "assignment discards qualifiers from pointer target type" warnings.
26259
26260 2009-01-24  Bruno Haible  <bruno@clisp.org>
26261
26262         Add support for non-UTF-8 locales on MacOS X.
26263         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
26264         canonical encodings. For Darwin 7 and newer, don't map traditional
26265         encodings to UTF-8.
26266         Reported by Vincent Lefevre <vincent@vinc17.org>
26267         at <http://savannah.gnu.org/bugs/?25235>.
26268
26269 2009-01-24  Bruno Haible  <bruno@clisp.org>
26270
26271         * doc/gnulib.texi (Obsolete modules): New section.
26272         Reported by Mike Frysinger <vapier@gentoo.org>.
26273
26274 2009-01-24  Bruno Haible  <bruno@clisp.org>
26275
26276         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
26277         (%.dvi): New rule.
26278
26279 2009-01-24  Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
26282         Reported by Eric Blake.
26283
26284 2009-01-24  Bruno Haible  <bruno@clisp.org>
26285
26286         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
26287         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
26288         Reported by Gary V. Vaughan <gary@gnu.org>.
26289
26290 2009-01-24  Bruno Haible  <bruno@clisp.org>
26291
26292         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
26293
26294 2009-01-23  Bruno Haible  <bruno@clisp.org>
26295
26296         Make c-strtod, c-strtold usable in libraries.
26297         * lib/c-strtod.c: Include string.h instead of xalloc.h.
26298         (C_STRTOD): Call strdup instead of xstrdup.
26299         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
26300         * modules/c-strtold (Depends-on): Likewise.
26301         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
26302         * NEWS: Mention the change.
26303         Reported by Michael Gold <mgold@ncf.ca>.
26304
26305 2009-01-23  Jim Meyering  <meyering@redhat.com>
26306
26307         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
26308         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
26309         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
26310
26311 2009-01-23  Simon Josefsson  <simon@josefsson.org>
26312
26313         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
26314         GNU CoreUtils.
26315         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
26316         * modules/version-etc (Description): Update.
26317
26318 2009-01-22  Bruno Haible  <bruno@clisp.org>
26319
26320         Cache the C locale object.
26321         * lib/c-strtod.c (c_locale_cache): New variable.
26322         (c_locale): New function.
26323         (C_STRTOD): Use it, and don't call freelocale.
26324         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
26325         Suggested by Paolo Bonzini.
26326
26327 2009-01-21  Bruno Haible  <bruno@clisp.org>
26328
26329         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
26330         conditions other than overflow.
26331
26332 2009-01-21  Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/c-strtod.c: Include errno.h.
26335         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
26336         value from STRTOD_L and STRTOD.
26337
26338 2009-01-21  Bruno Haible  <bruno@clisp.org>
26339         and Jim Meyering  <meyering@redhat.com>
26340
26341         nanosleep: skip configure test (fail it) for apple universal builds
26342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
26343         universal builds, assume that nanosleep does not work.
26344         * modules/nanosleep (Depends-on): Add multiarch.
26345
26346         mktime: skip configure test (fail it) for apple universal builds
26347         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
26348         universal builds, assume that mktime does not work.
26349         * modules/mktime (Depends-on): Add multiarch.
26350
26351 2009-01-21  Eric Blake  <ebb9@byu.net>
26352
26353         multiarch: avoid expand-before-require warning
26354         * modules/multiarch (configure.ac): Require, rather than expand,
26355         gl_MULTIARCH.
26356         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
26357         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
26358         enforce that all clients require it.  Partial reversion of
26359         2008-12-29 patch.
26360
26361         error: avoid expand-before-require warning
26362         * modules/errno (configure.ac): Require, rather than expand,
26363         gl_HEADER_ERRNO_H.
26364         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
26365         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
26366         enforce that all clients require it.
26367
26368         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
26369         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
26370         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
26371         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
26372
26373 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
26374
26375         Revert:
26376         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26377
26378         regex: do not depend on obsolete modules.
26379         * modules/regex: Remove memcmp and memmove.
26380
26381 2009-01-20  Bruno Haible  <bruno@clisp.org>
26382
26383         Make the 'link' module link on Windows NT 4.
26384         * lib/link.c (_WIN32_WINNT): Don't define.
26385         (CreateHardLinkFuncType): New type.
26386         (CreateHardLinkFunc, initialized): New variables.
26387         (initialize): New function.
26388         (link): Invoke CreateHardLink indirectly through the function pointer.
26389
26390 2009-01-20  Bruno Haible  <bruno@clisp.org>
26391
26392         Fix compilation failure on mingw.
26393         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
26394
26395 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
26396
26397         * doc/c-strtod.texi: Mention a couple of restrictions.
26398
26399 2009-01-20  Jim Meyering  <meyering@redhat.com>
26400
26401         gettimeofday: move more declarations out of functions
26402         * lib/gettimeofday.c: Move extern declarations of tzset and
26403         gmtime out of containing functions.  Prompted by Bruno Haible.
26404
26405 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
26406
26407         regex: do not depend on obsolete modules.
26408         * modules/regex: Remove memcmp and memmove.
26409
26410 2009-01-19  Bruno Haible  <bruno@clisp.org>
26411
26412         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26413         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
26414         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26415         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
26416         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
26417
26418 2009-01-19  Bruno Haible  <bruno@clisp.org>
26419
26420         * tests/test-link.c: Include <errno.h>.
26421         (main): Exit with code 77 when a hard link cannot be created due to
26422         the file system.
26423         * tests/test-link.sh: Skip test when a hard link cannot be created due
26424         to the file system.
26425         Suggested by Eric Blake.
26426
26427 2009-01-19  Martin Lambers  <marlam@marlam.de>
26428
26429         * modules/link-tests: New file.
26430         * tests/test-link.sh: New file.
26431         * tests/test-link.c: New file.
26432
26433 2009-01-19  Eric Blake  <ebb9@byu.net>
26434
26435         doc: mention another function added in cygwin 1.7.0
26436         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
26437         Another new function in cygwin 1.7.
26438
26439 2009-01-19  Bruno Haible  <bruno@clisp.org>
26440
26441         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
26442         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
26443         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
26444         gl_BIGENDIAN, not AC_C_BIGENDIAN.
26445         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26446         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
26447         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26448         * m4/md4.m4 (gl_MD4): Likewise.
26449         * m4/md5.m4 (gl_MD5): Likewise.
26450         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
26451         * m4/sha1.m4 (gl_SHA1): Likewise.
26452         * m4/sha256.m4 (gl_SHA256): Likewise.
26453         * m4/sha512.m4 (gl_SHA512): Likewise.
26454
26455 2009-01-19  Bruno Haible  <bruno@clisp.org>
26456
26457         * modules/uniname/uniname-tests (Depends-on): Add progname.
26458         * tests/uniname/test-uninames.c: Include progname.h.
26459         (main): Call set_program_name.
26460
26461         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
26462         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
26463         (main): Call set_program_name.
26464
26465         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
26466         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
26467         (main): Call set_program_name.
26468
26469         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
26470         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
26471         (main): Call set_program_name.
26472
26473         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
26474         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
26475         (main): Call set_program_name.
26476
26477         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
26478         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
26479         (main): Call set_program_name.
26480
26481         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
26482         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
26483         (main): Call set_program_name.
26484
26485         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
26486         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
26487         (main): Call set_program_name.
26488
26489         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
26490         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
26491         (main): Call set_program_name.
26492
26493 2009-01-19  Eric Blake  <ebb9@byu.net>
26494
26495         test-unistd: test previous patch
26496         * tests/test-unistd.c: Test *_FILENO macros.
26497
26498         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
26499         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26500         Guarantee a definition.
26501         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
26502         * modules/unistd-safer (Depends-on): Add dependency on unistd.
26503         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
26504         * lib/dup-safer.c (STDERR_FILENO): Likewise.
26505         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26506         Likewise.
26507         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
26508         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
26509         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
26510         Likewise.
26511         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
26512         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
26513         (STDERR_FILENO): Likewise.
26514         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
26515         (STDERR_FILENO): Likewise.
26516         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
26517         (STDERR_FILENO): Likewise.
26518         Reported by Elbert Pol.
26519
26520 2009-01-19  Eric Blake  <ebb9@byu.net>
26521
26522         doc: mention more functions added in cygwin 1.7.0
26523         * doc/posix-functions/abort.texi (abort): Update wording related
26524         to cygwin.
26525         * doc/posix-functions/daylight.texi (daylight): Likewise.
26526         * doc/posix-functions/optarg.texi (optarg): Likewise.
26527         * doc/posix-functions/optarg.texi (opterr): Likewise.
26528         * doc/posix-functions/optarg.texi (optind): Likewise.
26529         * doc/posix-functions/optarg.texi (optopt): Likewise.
26530         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
26531         worked in 1.5.x, and was withdrawn in 1.7.
26532         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
26533         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
26534         cygwin versions.
26535         * doc/posix-functions/perror.texi (perror): Likewise.
26536         * doc/posix-functions/printf.texi (printf): Likewise.
26537         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
26538         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
26539         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
26540         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
26541         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26542         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
26543         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26544         Likewise.
26545         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26546         Likewise.
26547         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
26548         this function.
26549         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
26550         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
26551         Likewise.
26552         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
26553         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
26554         * doc/posix-functions/confstr.texi (confstr): Likewise.
26555         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
26556         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
26557         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
26558         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
26559         * doc/posix-functions/fputws.texi (fputws): Likewise.
26560         * doc/posix-functions/fwide.texi (fwide): Likewise.
26561         * doc/posix-functions/getwc.texi (getwc): Likewise.
26562         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
26563         * doc/posix-functions/putwc.texi (putwc): Likewise.
26564         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
26565         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
26566         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
26567         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
26568         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
26569         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
26570         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
26571         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
26572         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
26573         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
26574         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
26575
26576 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26577
26578         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
26579         * lib/ioctl.c: Include <sys/ioctl.h>.
26580
26581 2009-01-19  Simon Josefsson  <simon@josefsson.org>
26582
26583         * modules/getdate-tests (Depends-on): Add progname.
26584         * tests/test-getdate.c: Use progname module, to avoid link errors
26585         on non-glibc systems.
26586
26587 2009-01-18  Simon Josefsson  <simon@josefsson.org>
26588
26589         * modules/filenamecat-tests (Depends-on): Add progname.
26590         * modules/fstrcmp-tests (Depends-on): Likewise.
26591
26592         * tests/test-filenamecat.c: Use progname module, to avoid link
26593         errors on non-glibc systems.
26594         * tests/test-fstrcmp.c: Likewise.
26595
26596 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
26597
26598         gettimeofday: avoid warning: nested extern declaration of 'localtime'
26599         * lib/gettimeofday.c: Move extern declaration out of function.
26600
26601 2009-01-18  Bruno Haible  <bruno@clisp.org>
26602
26603         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
26604         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
26605         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
26606
26607 2009-01-18  Bruno Haible  <bruno@clisp.org>
26608
26609         * lib/strftime.c (MEMPCPY): Remove unused macro.
26610         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
26611
26612 2009-01-18  Martin Lambers  <marlam@marlam.de>
26613
26614         New module 'link'.
26615         * lib/unistd.in.h (link): New declaration.
26616         * lib/link.c: New file.
26617         * m4/link.m4: New file.
26618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
26619         HAVE_LINK.
26620         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
26621         * modules/link: New file.
26622         * doc/posix-functions/link.texi: Mention the new module.
26623
26624 2009-01-18  Bruno Haible  <bruno@clisp.org>
26625
26626         * tests/test-avltree_list.c (main): Call set_program_name.
26627         * tests/test-avltree_oset.c (main): Likewise.
26628         * tests/test-obstack-printf.c: Include progname.h.
26629         (main): Call set_program_name.
26630         * tests/test-quotearg.c: Include progname.h.
26631         (main): Call set_program_name.
26632         * tests/test-xmemdup0.c: Include progname.h.
26633         (main): Call set_program_name.
26634
26635 2009-01-18  Bruno Haible  <bruno@clisp.org>
26636
26637         New module 'alphasort'.
26638         * lib/dirent.in.h (alphasort): New declaration.
26639         * lib/alphasort.c: New file, from glibc with modifications.
26640         * m4/alphasort.m4: New file.
26641         * modules/alphasort: New file.
26642         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
26643         HAVE_ALPHASORT.
26644         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
26645         HAVE_ALPHASORT.
26646         * doc/posix-functions/alphasort.texi: Mention the new module and the
26647         portability problems.
26648
26649 2009-01-18  Bruno Haible  <bruno@clisp.org>
26650
26651         New module 'scandir'.
26652         * lib/dirent.in.h (scandir): New declaration.
26653         * lib/scandir.c: New file, from glibc with modifications.
26654         * m4/scandir.m4: New file.
26655         * modules/scandir: New file.
26656         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
26657         HAVE_SCANDIR.
26658         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
26659         HAVE_SCANDIR.
26660         * doc/posix-functions/scandir.texi: Mention the new module and the
26661         portability problems.
26662
26663 2009-01-17  Bruno Haible  <bruno@clisp.org>
26664
26665         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
26666         Update documentation.
26667         (func_remove_suffix): Escape all dots in the suffix. Update
26668         documentation.
26669         (func_filter_filelist): Update documentation.
26670         Reported by Ralf Wildenhues.
26671
26672 2009-01-17  Bruno Haible  <bruno@clisp.org>
26673
26674         * modules/dprintf-posix-tests: New file.
26675         * tests/test-dprintf-posix.sh: New file.
26676         * tests/test-dprintf-posix.c: New file.
26677
26678         New modules 'dprintf', 'dprintf-posix'.
26679         * lib/stdio.in.h (dprintf): New declaration.
26680         * lib/dprintf.c: New file.
26681         * m4/dprintf.m4: New file.
26682         * m4/dprintf-posix.m4: New file.
26683         * modules/dprintf: New file.
26684         * modules/dprintf-posix: New file.
26685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
26686         HAVE_DPRINTF, REPLACE_DPRINTF.
26687         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
26688         HAVE_DPRINTF, REPLACE_DPRINTF.
26689         * doc/posix-functions/dprintf.texi: Mention the new modules.
26690
26691 2009-01-17  Bruno Haible  <bruno@clisp.org>
26692
26693         * modules/vdprintf-posix-tests: New file.
26694         * tests/test-vdprintf-posix.sh: New file.
26695         * tests/test-vdprintf-posix.c: New file.
26696
26697         New modules 'vdprintf', 'vdprintf-posix'.
26698         * lib/stdio.in.h (vdprintf): New declaration.
26699         * lib/vdprintf.c: New file.
26700         * m4/vdprintf.m4: New file.
26701         * m4/vdprintf-posix.m4: New file.
26702         * modules/vdprintf: New file.
26703         * modules/vdprintf-posix: New file.
26704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
26705         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26706         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
26707         HAVE_VDPRINTF, REPLACE_VDPRINTF.
26708         * doc/posix-functions/vdprintf.texi: Mention the new modules.
26709
26710 2009-01-17  Bruno Haible  <bruno@clisp.org>
26711
26712         Fix replacement of fopen on mingw.
26713         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
26714         mingw.
26715
26716 2009-01-17  Bruno Haible  <bruno@clisp.org>
26717
26718         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
26719         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
26720
26721 2009-01-17  Bruno Haible  <bruno@clisp.org>
26722
26723         Avoid test-fflush2.sh failure on mingw.
26724         * tests/test-fflush2.c: Include binary-io.h.
26725         (main): Put standard input into binary mode.
26726         * modules/fflush-tests (Depends-on): Add binary-io.
26727
26728 2009-01-17  Bruno Haible  <bruno@clisp.org>
26729
26730         * lib/wchar.in.h: In another particular situation, include only the
26731         system's <wchar.h> file.
26732         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
26733         Reported by Albert Chin-A-Young <china@thewrittenword.com>
26734         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
26735
26736 2009-01-17  Bruno Haible  <bruno@clisp.org>
26737
26738         Support for stripping executables in --enable-relocatable.
26739         * build-aux/install-reloc: Expect one more argument, or an environment
26740         variable RELOC_STRIP_PROG. If set, strip the destination program and
26741         its wrapper.
26742         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
26743         RELOC_STRIP_PROG.
26744         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
26745         to set RELOCATABLE_STRIP.
26746         * NEWS: Mention the new Makefile requirement.
26747
26748 2009-01-17  Bruno Haible  <bruno@clisp.org>
26749
26750         * build-aux/install-reloc: Remove debugging information left over by
26751         C compiler on MacOS X.
26752
26753 2009-01-17  Bruno Haible  <bruno@clisp.org>
26754
26755         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
26756         * lib/progreloc.c (find_executable): Fix type of pointer passed to
26757         _NSGetExecutablePath.
26758
26759 2009-01-16  Jim Meyering  <meyering@redhat.com>
26760
26761         strerror: avoid warnings about discarding "const"
26762         * lib/strerror.c (rpl_strerror): Instead of returning a const
26763         string from each and every "case", use a variable, and add a single
26764         cast after the switch.
26765
26766 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
26767
26768         * lib/arpa_inet.in.h: Add extern "C" block for C++.
26769
26770 2009-01-16  Bruno Haible  <bruno@clisp.org>
26771
26772         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
26773         array initializer syntax that also works in C++ mode.
26774         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26775
26776 2009-01-16  Jim Meyering  <meyering@redhat.com>
26777
26778         poll: suppress a warning
26779         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
26780         to ignore "...unsigned expression < 0 is always false" warnings.
26781
26782 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
26783
26784         poll: remove declarations of unused variables
26785         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
26786         sockbuf and optlen.
26787
26788 2009-01-15  Bruno Haible  <bruno@clisp.org>
26789
26790         Make fflush-after-ungetc POSIX compliant on BSD systems.
26791         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
26792         (clear_ungetc_buffer): Implement also for other systems.
26793         (rpl_fflush): On glibc systems, invoke
26794         clear_ungetc_buffer_preserving_position. Otherwise, invoke
26795         clear_ungetc_buffer after fetching the stream's position, not before.
26796
26797 2009-01-15  Bruno Haible  <bruno@clisp.org>
26798
26799         Make fflush-after-ungetc POSIX compliant on glibc systems.
26800         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
26801         after ungetc.
26802         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
26803         (rpl_fflush): On glibc systems, simply call the system's fflush
26804         function after clearing the ungetc buffer.
26805         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
26806         Instead, lseek only to the end of file, then use the system's fseeko
26807         for the rest. On glibc systems, reset the EOF indicator bit.
26808
26809 2009-01-15  Jim Meyering  <meyering@redhat.com>
26810
26811         openmp.m4: revert quote-adding change, for portability to older autoconf
26812         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
26813         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
26814         Simon Josefsson noticed the problem when using autoconf-2.61.
26815
26816 2009-01-15  Bruno Haible  <bruno@clisp.org>
26817
26818         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
26819         * tests/test-fflush2.c (ASSERT): Always fail.
26820         (main): Add two tests for fflush() after ungetc(), taking into account
26821         the Austin Group's clarification.
26822         Suggested by Eric Blake.
26823
26824 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
26825
26826         mktime.m4: remove K&R-style function prototypes
26827         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
26828         for the Sun C++ compiler.
26829
26830 2009-01-14  Bruno Haible  <bruno@clisp.org>
26831
26832         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
26833         while including <wchar.h>.
26834         * lib/wchar.in.h: In two particular situations on HP-UX, include only
26835         the system's <wchar.h> file.
26836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26837
26838 2009-01-14  Bruno Haible  <bruno@clisp.org>
26839
26840         * m4/csharp.m4: Don't mention gettext on the serial number line.
26841         * m4/csharpexec.m4: Likewise.
26842         * m4/eaccess.m4: Likewise.
26843         * m4/javaexec.m4: Likewise.
26844         * m4/sig_atomic_t.m4: Likewise.
26845         * m4/tmpdir.m4: Likewise.
26846         * m4/intldir.m4: Bump gettext version.
26847         * m4/lib-ld.m4: Likewise.
26848
26849 2009-01-14  Bruno Haible  <bruno@clisp.org>
26850
26851         * lib/progname.c (set_program_name): Add more comments.
26852         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26853
26854 2009-01-14  Simon Josefsson  <simon@josefsson.org>
26855
26856         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
26857         were sys/stat.h does not define it.
26858
26859 2009-01-14  Jim Meyering  <meyering@redhat.com>
26860
26861         many *.m4 files: improve m4 quoting
26862         99% of this change was performed by running the following commands:
26863         git ls-files | grep '\.m4$' | xargs perl -pi \
26864           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
26865           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26866           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
26867           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
26868         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
26869         The remainder were to add Copyright dates, increment serial numbers,
26870         undo some changes in comments, exclude m4/intl.m4, and add quotes
26871         around the "1" in ",1" where the unusual spacing prohibited the
26872         above regexps from doing the job.  For more details, see
26873         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
26874         * m4/acl.m4: Modified.
26875         * m4/afs.m4: Likewise.
26876         * m4/alloca.m4: Likewise.
26877         * m4/argp.m4: Likewise.
26878         * m4/argz.m4: Likewise.
26879         * m4/atexit.m4: Likewise.
26880         * m4/bison-i18n.m4: Likewise.
26881         * m4/bison.m4: Likewise.
26882         * m4/byteswap.m4: Likewise.
26883         * m4/c-stack.m4: Likewise.
26884         * m4/c-strtod.m4: Likewise.
26885         * m4/calloc.m4: Likewise.
26886         * m4/canonicalize-lgpl.m4: Likewise.
26887         * m4/chown.m4: Likewise.
26888         * m4/clock_time.m4: Likewise.
26889         * m4/codeset.m4: Likewise.
26890         * m4/copy-file.m4: Likewise.
26891         * m4/csharp.m4: Likewise.
26892         * m4/csharpcomp.m4: Likewise.
26893         * m4/csharpexec.m4: Likewise.
26894         * m4/d-ino.m4: Likewise.
26895         * m4/d-type.m4: Likewise.
26896         * m4/dirfd.m4: Likewise.
26897         * m4/double-slash-root.m4: Likewise.
26898         * m4/eaccess.m4: Likewise.
26899         * m4/eealloc.m4: Likewise.
26900         * m4/environ.m4: Likewise.
26901         * m4/errno_h.m4: Likewise.
26902         * m4/euidaccess.m4: Likewise.
26903         * m4/execute.m4: Likewise.
26904         * m4/fatal-signal.m4: Likewise.
26905         * m4/fchdir.m4: Likewise.
26906         * m4/fcntl_h.m4: Likewise.
26907         * m4/fileblocks.m4: Likewise.
26908         * m4/filenamecat.m4: Likewise.
26909         * m4/findprog.m4: Likewise.
26910         * m4/flexmember.m4: Likewise.
26911         * m4/fnmatch.m4: Likewise.
26912         * m4/fopen.m4: Likewise.
26913         * m4/fpending.m4: Likewise.
26914         * m4/fprintf-posix.m4: Likewise.
26915         * m4/free.m4: Likewise.
26916         * m4/frexp.m4: Likewise.
26917         * m4/frexpl.m4: Likewise.
26918         * m4/fsusage.m4: Likewise.
26919         * m4/ftruncate.m4: Likewise.
26920         * m4/gc-camellia.m4: Likewise.
26921         * m4/gc-random.m4: Likewise.
26922         * m4/gc.m4: Likewise.
26923         * m4/getaddrinfo.m4: Likewise.
26924         * m4/getcwd-abort-bug.m4: Likewise.
26925         * m4/getcwd-path-max.m4: Likewise.
26926         * m4/getdate.m4: Likewise.
26927         * m4/getdomainname.m4: Likewise.
26928         * m4/getgroups.m4: Likewise.
26929         * m4/gethostname.m4: Likewise.
26930         * m4/gethrxtime.m4: Likewise.
26931         * m4/getline.m4: Likewise.
26932         * m4/getloadavg.m4: Likewise.
26933         * m4/getndelim2.m4: Likewise.
26934         * m4/getpass.m4: Likewise.
26935         * m4/gettext.m4: Likewise.
26936         * m4/gettime.m4: Likewise.
26937         * m4/gettimeofday.m4: Likewise.
26938         * m4/gnulib-common.m4: Likewise.
26939         * m4/group-member.m4: Likewise.
26940         * m4/host-os.m4: Likewise.
26941         * m4/iconv.m4: Likewise.
26942         * m4/iconv_open.m4: Likewise.
26943         * m4/inet_ntop.m4: Likewise.
26944         * m4/inet_pton.m4: Likewise.
26945         * m4/inline.m4: Likewise.
26946         * m4/intldir.m4: Likewise.
26947         * m4/intlmacosx.m4: Likewise.
26948         * m4/intmax.m4: Likewise.
26949         * m4/intmax_t.m4: Likewise.
26950         * m4/inttypes.m4: Likewise.
26951         * m4/inttypes_h.m4: Likewise.
26952         * m4/inttypes-pri.m4: Likewise.
26953         * m4/isapipe.m4: Likewise.
26954         * m4/isnand.m4: Likewise.
26955         * m4/isnanf.m4: Likewise.
26956         * m4/isnanl.m4: Likewise.
26957         * m4/javacomp.m4: Likewise.
26958         * m4/javaexec.m4: Likewise.
26959         * m4/jm-winsz1.m4: Likewise.
26960         * m4/jm-winsz2.m4: Likewise.
26961         * m4/lchown.m4: Likewise.
26962         * m4/lcmessage.m4: Likewise.
26963         * m4/ldexpl.m4: Likewise.
26964         * m4/lib-ld.m4: Likewise.
26965         * m4/lib-link.m4: Likewise.
26966         * m4/libsigsegv.m4: Likewise.
26967         * m4/link-follow.m4: Likewise.
26968         * m4/localcharset.m4: Likewise.
26969         * m4/locale-fr.m4: Likewise.
26970         * m4/locale-ja.m4: Likewise.
26971         * m4/locale-tr.m4: Likewise.
26972         * m4/locale-zh.m4: Likewise.
26973         * m4/lock.m4: Likewise.
26974         * m4/longlong.m4: Likewise.
26975         * m4/ls-mntd-fs.m4: Likewise.
26976         * m4/lstat.m4: Likewise.
26977         * m4/malloc.m4: Likewise.
26978         * m4/mathl.m4: Likewise.
26979         * m4/mbrtowc.m4: Likewise.
26980         * m4/mbstate_t.m4: Likewise.
26981         * m4/mbswidth.m4: Likewise.
26982         * m4/memchr.m4: Likewise.
26983         * m4/memcmp.m4: Likewise.
26984         * m4/memcpy.m4: Likewise.
26985         * m4/memmem.m4: Likewise.
26986         * m4/memmove.m4: Likewise.
26987         * m4/mempcpy.m4: Likewise.
26988         * m4/memrchr.m4: Likewise.
26989         * m4/memset.m4: Likewise.
26990         * m4/minmax.m4: Likewise.
26991         * m4/mkdir-slash.m4: Likewise.
26992         * m4/mkdtemp.m4: Likewise.
26993         * m4/mktime.m4: Likewise.
26994         * m4/mmap-anon.m4: Likewise.
26995         * m4/mountlist.m4: Likewise.
26996         * m4/nanosleep.m4: Likewise.
26997         * m4/nls.m4: Likewise.
26998         * m4/nocrash.m4: Likewise.
26999         * m4/open.m4: Likewise.
27000         * m4/openat.m4: Likewise.
27001         * m4/openmp.m4: Likewise.
27002         * m4/pathmax.m4: Likewise.
27003         * m4/perl.m4: Likewise.
27004         * m4/physmem.m4: Likewise.
27005         * m4/pipe.m4: Likewise.
27006         * m4/po.m4: Likewise.
27007         * m4/poll.m4: Likewise.
27008         * m4/posixtm.m4: Likewise.
27009         * m4/posixver.m4: Likewise.
27010         * m4/printf-frexp.m4: Likewise.
27011         * m4/printf-frexpl.m4: Likewise.
27012         * m4/printf-posix.m4: Likewise.
27013         * m4/printf-posix-rpl.m4: Likewise.
27014         * m4/printf.m4: Likewise.
27015         * m4/progtest.m4: Likewise.
27016         * m4/putenv.m4: Likewise.
27017         * m4/readline.m4: Likewise.
27018         * m4/readlink.m4: Likewise.
27019         * m4/readutmp.m4: Likewise.
27020         * m4/realloc.m4: Likewise.
27021         * m4/regex.m4: Likewise.
27022         * m4/relocatable.m4: Likewise.
27023         * m4/relocatable-lib.m4: Likewise.
27024         * m4/rename-dest-slash.m4: Likewise.
27025         * m4/rename.m4: Likewise.
27026         * m4/rmdir-errno.m4: Likewise.
27027         * m4/rmdir.m4: Likewise.
27028         * m4/roundf.m4: Likewise.
27029         * m4/roundl.m4: Likewise.
27030         * m4/rpmatch.m4: Likewise.
27031         * m4/save-cwd.m4: Likewise.
27032         * m4/selinux-selinux-h.m4: Likewise.
27033         * m4/setenv.m4: Likewise.
27034         * m4/settime.m4: Likewise.
27035         * m4/sig2str.m4: Likewise.
27036         * m4/sig_atomic_t.m4: Likewise.
27037         * m4/signalblocking.m4: Likewise.
27038         * m4/signbit.m4: Likewise.
27039         * m4/sigpipe.m4: Likewise.
27040         * m4/sockets.m4: Likewise.
27041         * m4/sockpfaf.m4: Likewise.
27042         * m4/st_dm_mode.m4: Likewise.
27043         * m4/stat-time.m4: Likewise.
27044         * m4/stdbool.m4: Likewise.
27045         * m4/stdint.m4: Likewise.
27046         * m4/stdint_h.m4: Likewise.
27047         * m4/stpcpy.m4: Likewise.
27048         * m4/stpncpy.m4: Likewise.
27049         * m4/strcase.m4: Likewise.
27050         * m4/strchrnul.m4: Likewise.
27051         * m4/strcspn.m4: Likewise.
27052         * m4/strdup.m4: Likewise.
27053         * m4/strftime.m4: Likewise.
27054         * m4/strndup.m4: Likewise.
27055         * m4/strnlen.m4: Likewise.
27056         * m4/strpbrk.m4: Likewise.
27057         * m4/strptime.m4: Likewise.
27058         * m4/strsep.m4: Likewise.
27059         * m4/strtod.m4: Likewise.
27060         * m4/strtoimax.m4: Likewise.
27061         * m4/strtok_r.m4: Likewise.
27062         * m4/strtol.m4: Likewise.
27063         * m4/strtoll.m4: Likewise.
27064         * m4/strtoul.m4: Likewise.
27065         * m4/strtoull.m4: Likewise.
27066         * m4/strtoumax.m4: Likewise.
27067         * m4/strverscmp.m4: Likewise.
27068         * m4/threadlib.m4: Likewise.
27069         * m4/timegm.m4: Likewise.
27070         * m4/tm_gmtoff.m4: Likewise.
27071         * m4/tmpdir.m4: Likewise.
27072         * m4/tmpfile.m4: Likewise.
27073         * m4/tzset.m4: Likewise.
27074         * m4/uintmax_t.m4: Likewise.
27075         * m4/unlinkdir.m4: Likewise.
27076         * m4/unlocked-io.m4: Likewise.
27077         * m4/uptime.m4: Likewise.
27078         * m4/userspec.m4: Likewise.
27079         * m4/utimbuf.m4: Likewise.
27080         * m4/utime.m4: Likewise.
27081         * m4/utimes-null.m4: Likewise.
27082         * m4/utimes.m4: Likewise.
27083         * m4/vararrays.m4: Likewise.
27084         * m4/vasnprintf.m4: Likewise.
27085         * m4/vfprintf-posix.m4: Likewise.
27086         * m4/vprintf-posix.m4: Likewise.
27087         * m4/wait-process.m4: Likewise.
27088         * m4/wchar_t.m4: Likewise.
27089         * m4/wint_t.m4: Likewise.
27090         * m4/write-any-file.m4: Likewise.
27091         * m4/yield.m4: Likewise.
27092
27093 2009-01-13  Bruno Haible  <bruno@clisp.org>
27094
27095         Avoid test-copy-file.sh failures when ACL support insufficient.
27096         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
27097         TESTS_ENVIRONMENT.
27098         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
27099         Reported by Jim Meyering.
27100
27101 2009-01-13  Bruno Haible  <bruno@clisp.org>
27102
27103         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
27104         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
27105         * modules/unistdio/u8-printf-parse (Files): Likewise.
27106         * modules/unistdio/u32-printf-parse (Files): Likewise.
27107         * modules/unistdio/ulc-printf-parse (Files): Likewise.
27108
27109 2009-01-13  Simon Josefsson  <simon@josefsson.org>
27110
27111         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
27112         and m4/inttypes_h.m4 too.
27113
27114 2009-01-12  Eric Blake  <ebb9@byu.net>
27115
27116         tests: IRIX 6.2 cc can't compile -0.0 into .data
27117         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
27118         rather than at compile-time.
27119         * tests/test-floorl.c (minus_zero): Likewise.
27120         * tests/test-frexpl.c (minus_zero): Likewise.
27121         * tests/test-isnan.c (minus_zerol): Likewise.
27122         * tests/test-isnanl.h (minus_zero): Likewise.
27123         * tests/test-ldexpl.c (minus_zero): Likewise.
27124         * tests/test-roundl.c (minus_zero): Likewise.
27125         * tests/test-signbit.c (minus_zerol): Likewise.
27126         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27127         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27128         * tests/test-truncl.c (minus_zero): Likewise.
27129         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27130         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27131         Reported by Tom G. Christensen and Nelson H. F. Beebe.
27132
27133 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27134
27135         regex: fix glibc bug 9697
27136         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
27137         handling.
27138
27139 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27140
27141         regex: fix glibc bug 697
27142         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
27143         being NULL also if there are no backreferences.
27144
27145 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
27146
27147         regex: merge glibc changes
27148         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
27149         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
27150         re_string_skip_chars, re_string_reconstruct): Likewise.
27151         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
27152
27153 2009-01-07  Jim Meyering  <meyering@redhat.com>
27154
27155         poll: filter through cppi
27156         * lib/poll.c: Indent cpp directives to reflect nesting.
27157
27158 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
27159
27160         poll: don't return uninitialized
27161         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
27162
27163 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
27164
27165         avoid compile failure on AIX 6.1
27166         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
27167         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
27168
27169 2009-01-04  Jim Meyering  <meyering@redhat.com>
27170
27171         remove duplicate inclusion of <stdio.h>
27172         * tests/test-fprintf-posix.c: Likewise.
27173         * tests/test-printf-posix.c: Likewise.
27174         * tests/test-snprintf-posix.c: Likewise.
27175         * tests/test-sprintf-posix.c: Likewise.
27176         * tests/test-vasprintf-posix.c: Likewise.
27177         * tests/test-vfprintf-posix.c: Likewise.
27178         * tests/test-vprintf-posix.c: Likewise.
27179         * tests/test-vsnprintf-posix.c: Likewise.
27180         * tests/test-vsprintf-posix.c: Likewise.
27181
27182 2009-01-03  Jim Meyering  <meyering@redhat.com>
27183
27184         gnulib-tool: fix sed-based filtering
27185         * gnulib-tool (func_filter_filelist): Remove extra backslash
27186         in sed_fff_filter definition.
27187
27188 2009-01-02  Jim Meyering  <meyering@redhat.com>
27189
27190         strftime: avoid compilation failure on Solaris 2.6
27191         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
27192         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
27193         Don't #define mbrlen or mbsinit, since now they're guaranteed to
27194         be available.  Reported by Tom G. Christensen.  Details in
27195         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
27196
27197 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27198             Bruno Haible  <bruno@clisp.org>
27199
27200         Speed up gnulib-tool by doing more string processing through shell
27201         built-ins.
27202         * gnulib-tool (fast_func_append): New variable.
27203         (func_remove_prefix, func_remove_suffix): New functions.
27204         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
27205         (func_filter_filelist): New function.
27206         (func_get_dependencies): Use func_remove_suffix instead of sed.
27207         (func_get_automake_snippet): Use func_filter_filelist instead of a
27208         subshell and sed invocation.
27209
27210 2009-01-01  Bruno Haible  <bruno@clisp.org>
27211
27212         Fix a security bug.
27213         * gnulib-tool (func_import, import, update): Don't allow the characters
27214         '"', '$', '`', '\' in macro arguments that become part of commands that
27215         are evaluated.
27216
27217 2009-01-01  Bruno Haible  <bruno@clisp.org>
27218
27219         * gnulib-tool (func_reset_sigpipe): Add more comments.
27220
27221 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27222
27223         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
27224         func_emit_tests_Makefile_am, func_import): Abort loops early if we
27225         already know the answer.
27226
27227 2009-01-01  Jim Meyering  <meyering@redhat.com>
27228
27229         * lib/version-etc.c (version_etc_va): Update copyright year.
27230
27231 2008-12-30  Bruno Haible  <bruno@clisp.org>
27232
27233         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
27234         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
27235         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
27236
27237 2008-12-29  Eric Blake  <ebb9@byu.net>
27238
27239         multiarch: avoid autoconf AC_REQUIRE bug
27240         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
27241         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
27242         2.63 and older.
27243         Reported by Bruno Haible, and analyzed in
27244         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
27245
27246 2008-12-29  Bruno Haible  <bruno@clisp.org>
27247
27248         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
27249         files in subdirectories correctly.
27250         Reported by Ralf Wildenhues.
27251
27252 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27253
27254         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
27255         rather than 'join FILE -', for Solaris join.
27256
27257 2008-12-29  Bruno Haible  <bruno@clisp.org>
27258
27259         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
27260         quoting.
27261         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27262         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27263         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27264         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
27265         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27266         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27267         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27268         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27269         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27270         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27271         * m4/nls.m4 (AM_NLS): Likewise.
27272         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
27273         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27274         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27275         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27276         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27277         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27278         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
27279         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27280         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27281         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27282         * m4/xsize.m4 (gl_XSIZE): Likewise.
27283         Suggested by Jim Meyering.
27284
27285 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27286
27287         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
27288         * lib/parse-duration.c: use a switch instead of cascading if's.
27289
27290 2008-12-29  Eric Blake  <ebb9@byu.net>
27291
27292         wchar.h: supply WEOF on Irix 5.3
27293         * lib/wchar.in.h (wint_t): Also supply WEOF.
27294         * lib/wctype.in.h (wint_t): Likewise.
27295         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
27296         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
27297         Reported by Tom G. Christensen.
27298
27299 2008-12-26  Bruno Haible  <bruno@clisp.org>
27300
27301         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
27302         i486, i586, i686.
27303
27304 2008-12-26  Bruno Haible  <bruno@clisp.org>
27305
27306         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
27307
27308 2008-12-26  Bruno Haible  <bruno@clisp.org>
27309
27310         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
27311         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
27312         not __STDC_CONSTANT_MACROS.
27313         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27314
27315 2008-12-25  Bruno Haible  <bruno@clisp.org>
27316
27317         Add support for universal builds to vasnprintf.
27318         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
27319         universal builds, guess no.
27320         * modules/vasnprintf-posix (Depends-on): Add multiarch.
27321         * modules/vasprintf-posix (Depends-on): Likewise.
27322         * modules/fprintf-posix (Depends-on): Likewise.
27323         * modules/vfprintf-posix (Depends-on): Likewise.
27324         * modules/snprintf-posix (Depends-on): Likewise.
27325         * modules/vsnprintf-posix (Depends-on): Likewise.
27326         * modules/sprintf-posix (Depends-on): Likewise.
27327         * modules/vsprintf-posix (Depends-on): Likewise.
27328         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27329         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27330         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27331         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27332         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27333         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27335
27336         Add support for universal builds to <inttypes.h>.
27337         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
27338         _SCNu64_PREFIX): In Apple
27339         universal builds, define directly, using _LP64.
27340         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
27341         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
27342         * modules/inttypes (Depends-on): Add multiarch.
27343         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27344
27345         Add support for universal builds to <stdint.h>.
27346         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
27347         universal builds, define directly, using _LP64.
27348         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
27349         Apple universal builds, don't test for the size and suffix of ptrdiff_t
27350         and size_t.
27351         * modules/stdint (Depends-on): Add multiarch.
27352         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
27353
27354         New module 'multiarch'.
27355         * modules/multiarch: New file.
27356         * m4/multiarch.m4: New file.
27357
27358 2008-12-25  Bruno Haible  <bruno@clisp.org>
27359
27360         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
27361
27362 2008-12-25  Bruno Haible  <bruno@clisp.org>
27363
27364         * modules/btowc (License): Relicense under LGPLv2+.
27365         * modules/mbsinit (License): Likewise.
27366         * modules/mbrtowc (License): Likewise.
27367         * modules/wcrtomb (License): Likewise.
27368         * modules/streq (License): Likewise.
27369         Reported by David Lutterkort <lutter@redhat.com>.
27370
27371 2008-12-23  Bruno Haible  <bruno@clisp.org>
27372
27373         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
27374
27375 2008-12-23  Bruno Haible  <bruno@clisp.org>
27376
27377         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
27378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
27379         GETADDRINFO_LIB, not in LIBS.
27380         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
27381         * modules/canon-host (Link): Likewise.
27382         * NEWS: Mention the change.
27383         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
27384         GETADDRINFO_LIB.
27385
27386 2008-12-22  Bruno Haible  <bruno@clisp.org>
27387
27388         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
27389         * doc/posix-functions/iswalpha_l.texi: Likewise.
27390         * doc/posix-functions/iswblank_l.texi: Likewise.
27391         * doc/posix-functions/iswcntrl_l.texi: Likewise.
27392         * doc/posix-functions/iswctype_l.texi: Likewise.
27393         * doc/posix-functions/iswdigit_l.texi: Likewise.
27394         * doc/posix-functions/iswgraph_l.texi: Likewise.
27395         * doc/posix-functions/iswlower_l.texi: Likewise.
27396         * doc/posix-functions/iswprint_l.texi: Likewise.
27397         * doc/posix-functions/iswpunct_l.texi: Likewise.
27398         * doc/posix-functions/iswspace_l.texi: Likewise.
27399         * doc/posix-functions/iswupper_l.texi: Likewise.
27400         * doc/posix-functions/iswxdigit_l.texi: Likewise.
27401         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
27402         * doc/posix-functions/open_wmemstream.texi: Likewise.
27403         * doc/posix-functions/swscanf.texi: Likewise.
27404         * doc/posix-functions/towctrans_l.texi: Likewise.
27405         * doc/posix-functions/towlower.texi: Likewise.
27406         * doc/posix-functions/towlower_l.texi: Likewise.
27407         * doc/posix-functions/towupper.texi: Likewise.
27408         * doc/posix-functions/towupper_l.texi: Likewise.
27409         * doc/posix-functions/vfwprintf.texi: Likewise.
27410         * doc/posix-functions/vfwscanf.texi: Likewise.
27411         * doc/posix-functions/vswscanf.texi: Likewise.
27412         * doc/posix-functions/vwprintf.texi: Likewise.
27413         * doc/posix-functions/vwscanf.texi: Likewise.
27414         * doc/posix-functions/wcpcpy.texi: Likewise.
27415         * doc/posix-functions/wcpncpy.texi: Likewise.
27416         * doc/posix-functions/wcscasecmp.texi: Likewise.
27417         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
27418         * doc/posix-functions/wcscoll_l.texi: Likewise.
27419         * doc/posix-functions/wcsdup.texi: Likewise.
27420         * doc/posix-functions/wcsncasecmp.texi: Likewise.
27421         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
27422         * doc/posix-functions/wcsnlen.texi: Likewise.
27423         * doc/posix-functions/wcsnrtombs.texi: Likewise.
27424         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
27425         * doc/posix-functions/wctrans_l.texi: Likewise.
27426         * doc/posix-functions/wctype_l.texi: Likewise.
27427         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
27428         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
27429         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
27430         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
27431         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
27432         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
27433         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
27434         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
27435         * doc/glibc-functions/wcschrnul.texi: Likewise.
27436         * doc/glibc-functions/wcsftime_l.texi: Likewise.
27437         * doc/glibc-functions/wcstod_l.texi: Likewise.
27438         * doc/glibc-functions/wcstof_l.texi: Likewise.
27439         * doc/glibc-functions/wcstol_l.texi: Likewise.
27440         * doc/glibc-functions/wcstold_l.texi: Likewise.
27441         * doc/glibc-functions/wcstoll_l.texi: Likewise.
27442         * doc/glibc-functions/wcstoq.texi: Likewise.
27443         * doc/glibc-functions/wcstoul_l.texi: Likewise.
27444         * doc/glibc-functions/wcstoull_l.texi: Likewise.
27445         * doc/glibc-functions/wcstouq.texi: Likewise.
27446         * doc/glibc-functions/wmempcpy.texi: Likewise.
27447
27448 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
27449             Eric Blake  <ebb9@byu.net>
27450             Paolo Bonzini  <bonzini@gnu.org>
27451             Bruno Haible  <bruno@clisp.org>
27452
27453         Make c-stack work on Haiku.
27454         * lib/c-stack.c (SA_ONSTACK): Define fallback.
27455         (c_stack_action): Use SA_ONSTACK flag.
27456
27457 2008-12-22  Bruno Haible  <bruno@clisp.org>
27458
27459         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
27460
27461 2008-12-22  Bruno Haible  <bruno@clisp.org>
27462
27463         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
27464         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
27465         being overridden.
27466         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
27467         New macros.
27468         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
27469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
27470         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
27471         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
27472
27473 2008-12-22  Bruno Haible  <bruno@clisp.org>
27474
27475         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
27476         from test code.
27477
27478 2008-12-22  Eric Blake  <ebb9@byu.net>
27479
27480         Avoid gcc warnings on cygwin.
27481         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
27482         Avoid unused variable.
27483         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
27484         Likewise.
27485
27486 2008-12-22  Bruno Haible  <bruno@clisp.org>
27487
27488         Remove HAVE_MBRTOWC conditionals.
27489         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
27490         (mbscasecmp): Assume mbrtowc function.
27491         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
27492         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
27493         * lib/mbschr.c: Include mbuiter.h unconditionally.
27494         (mbschr): Assume mbrtowc function.
27495         * lib/mbscspn.c: Include mbuiter.h unconditionally.
27496         (mbscspn): Assume mbrtowc function.
27497         * lib/mbslen.c: Include mbuiter.h unconditionally.
27498         (mbslen): Assume mbrtowc function.
27499         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
27500         (mbsncasecmp): Assume mbrtowc function.
27501         * lib/mbsnlen.c: Include mbiter.h unconditionally.
27502         (mbsnlen): Assume mbrtowc function.
27503         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
27504         (mbspbrk): Assume mbrtowc function.
27505         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
27506         (mbspcasecmp): Assume mbrtowc function.
27507         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
27508         (mbsrchr): Assume mbrtowc function.
27509         * lib/mbssep.c: Include mbuiter.h unconditionally.
27510         (mbssep): Assume mbrtowc function.
27511         * lib/mbsspn.c: Include mbuiter.h unconditionally.
27512         (mbsspn): Assume mbrtowc function.
27513         * lib/mbsstr.c: Include mbuiter.h unconditionally.
27514         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
27515         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
27516         (mbstok_r): Assume mbrtowc function.
27517         * lib/propername.c: Include mbuiter.h unconditionally.
27518         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
27519         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
27520         (trim2): Assume mbrtowc function.
27521         * lib/mbswidth.c (mbsinit): Remove fallback definition.
27522         (mbsnwidth): Assume mbrtowc function.
27523         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
27524         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
27525         fallback definitions.
27526         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
27527
27528 2008-12-22  Bruno Haible  <bruno@clisp.org>
27529
27530         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
27531
27532 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
27533
27534         * modules/regex: Request emulations for the mb*/wc* functions we need.
27535         * m4/regex.m4: Don't look for those functions here.
27536         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
27537
27538 2008-12-22  Bruno Haible  <bruno@clisp.org>
27539
27540         * modules/fnmatch (Depends-on): Remove duplicated dependency.
27541
27542 2008-12-21  Bruno Haible  <bruno@clisp.org>
27543
27544         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
27545         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
27546         (Include): Remove conditionalization.
27547         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
27548         (Include): Remove conditionalization.
27549         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
27550         (Include): Remove conditionalization.
27551         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
27552         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27553         * NEWS: Mention the change.
27554         Reported by Alan Hourihane <alanh@fairlite.co.uk>
27555         via Sergey Poznyakoff <gray@gnu.org.ua>.
27556
27557 2008-12-21  Bruno Haible  <bruno@clisp.org>
27558
27559         * MODULES.html.sh (Extended multibyte and wide character utilities
27560         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
27561         wcrtomb, wcsrtombs.
27562         (Support for systems lacking POSIX:2008): Add accept, bind, close,
27563         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
27564         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
27565         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
27566
27567 2008-12-21  Bruno Haible  <bruno@clisp.org>
27568
27569         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
27570
27571 2008-12-21  Bruno Haible  <bruno@clisp.org>
27572
27573         * modules/wcsnrtombs-tests: New file.
27574         * tests/test-wcsnrtombs1.sh: New file.
27575         * tests/test-wcsnrtombs2.sh: New file.
27576         * tests/test-wcsnrtombs3.sh: New file.
27577         * tests/test-wcsnrtombs4.sh: New file.
27578         * tests/test-wcsnrtombs.c: New file.
27579
27580         New module 'wcsnrtombs'.
27581         * lib/wchar.in.h (wcsnrtombs): New declaration.
27582         * lib/wcsnrtombs.c: New file.
27583         * lib/wcsrtombs-state.c: New file.
27584         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
27585         (internal_state): Remove variable.
27586         * m4/wcsnrtombs.m4: New file.
27587         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
27588         compilation units.
27589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
27590         HAVE_WCSNRTOMBS.
27591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
27592         HAVE_WCSNRTOMBS.
27593         * modules/wcsnrtombs: New file.
27594         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
27595         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
27596
27597 2008-12-21  Bruno Haible  <bruno@clisp.org>
27598
27599         * modules/wcsrtombs-tests: New file.
27600         * tests/test-wcsrtombs1.sh: New file.
27601         * tests/test-wcsrtombs2.sh: New file.
27602         * tests/test-wcsrtombs3.sh: New file.
27603         * tests/test-wcsrtombs4.sh: New file.
27604         * tests/test-wcsrtombs.c: New file.
27605
27606         New module 'wcsrtombs'.
27607         * lib/wchar.in.h (wcsrtombs): New declaration.
27608         * lib/wcsrtombs.c: New file.
27609         * m4/wcsrtombs.m4: New file.
27610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
27611         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
27613         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
27614         * modules/wcsrtombs: New file.
27615         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
27616         bugs.
27617
27618 2008-12-21  Bruno Haible  <bruno@clisp.org>
27619
27620         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
27621         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
27622         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
27623         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
27624         if not correct.
27625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
27626         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
27627         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27628         m4/locale-zh.m4, m4/codeset.m4.
27629         * doc/posix-functions/wcrtomb.texi: Document the bug.
27630
27631 2008-12-21  Bruno Haible  <bruno@clisp.org>
27632
27633         Work around a btowc() bug on IRIX 6.5.
27634         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
27635         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
27636         REPLACE_WTOBC if not.
27637         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
27638         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
27639         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
27640
27641 2008-12-21  Bruno Haible  <bruno@clisp.org>
27642
27643         * modules/wcrtomb-tests: New file.
27644         * tests/test-wcrtomb.sh: New file.
27645         * tests/test-wcrtomb.c: New file.
27646
27647         New module 'wcrtomb'.
27648         * lib/wchar.in.h (wcrtomb): New declaration.
27649         * lib/wcrtomb.c: New file.
27650         * m4/wcrtomb.m4: New file.
27651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
27652         HAVE_WCRTOMB.
27653         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
27654         HAVE_WCRTOMB.
27655         * modules/wcrtomb: New file.
27656         * doc/posix-functions/wcrtomb.texi: Mention the new module.
27657
27658 2008-12-21  Bruno Haible  <bruno@clisp.org>
27659
27660         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
27661         * modules/mbsrtowcs (Files): Likewise.
27662         * modules/wctob (Files): Likewise.
27663         * modules/c-strcase-tests (Files): Likewise.
27664         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27665         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27666         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27667         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27668         * modules/vasnprintf-posix-tests (Files): Likewise.
27669
27670 2008-12-21  William Pursell  <bill.pursell@gmail.com>
27671
27672         gitlog-to-changelog: pass all command-line arguments to git-log
27673         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
27674         it is sometimes convenient to filter the commits in various ways.
27675         gitlog-to-changelog only allows --since to specify a start date,
27676         but git-log itself supports many other filtering mechanisms.
27677         At the moment, I want to filter by branch name.  Rather than
27678         adding a --branch option to gitlog-to-changelog, it seems more
27679         flexible to simply pass all options directly to git-log and let
27680         git do the work.  Notice that this effectively makes --since a
27681         redundant option for gitlog-to-changelog, but removing it would
27682         require current usage to change since calls would then require
27683         an additional '--'.
27684
27685 2008-12-21  Bruno Haible  <bruno@clisp.org>
27686
27687         * modules/mbsnrtowcs-tests: New file.
27688         * tests/test-mbsnrtowcs1.sh: New file.
27689         * tests/test-mbsnrtowcs2.sh: New file.
27690         * tests/test-mbsnrtowcs3.sh: New file.
27691         * tests/test-mbsnrtowcs4.sh: New file.
27692         * tests/test-mbsnrtowcs.c: New file.
27693
27694         New module 'mbsnrtowcs'.
27695         * lib/wchar.in.h (mbsnrtowcs): New declaration.
27696         * lib/mbsnrtowcs.c: New file.
27697         * lib/mbsrtowcs-state.c: New file.
27698         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
27699         (internal_state): Remove variable.
27700         * m4/mbsnrtowcs.m4: New file.
27701         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
27702         compilation units.
27703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
27704         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27705         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
27706         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
27707         * modules/mbsnrtowcs: New file.
27708         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
27709         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
27710         portability problem.
27711
27712 2008-12-21  Bruno Haible  <bruno@clisp.org>
27713
27714         Work around mbsrtowcs bug.
27715         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
27716         (gl_FUNC_MBSRTOWCS): Invoke it.
27717         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27718         m4/locale-zh.m4.
27719         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
27720
27721 2008-12-21  Bruno Haible  <bruno@clisp.org>
27722
27723         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
27724
27725 2008-12-21  Bruno Haible  <bruno@clisp.org>
27726
27727         Update doc for AIX.
27728         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
27729         16-bit wchar_t type.
27730         * doc/posix-functions/btowc.texi: Likewise.
27731         * doc/posix-functions/fgetwc.texi: Likewise.
27732         * doc/posix-functions/fgetws.texi: Likewise.
27733         * doc/posix-functions/fputwc.texi: Likewise.
27734         * doc/posix-functions/fputws.texi: Likewise.
27735         * doc/posix-functions/fwide.texi: Likewise.
27736         * doc/posix-functions/fwprintf.texi: Likewise.
27737         * doc/posix-functions/fwscanf.texi: Likewise.
27738         * doc/posix-functions/getwchar.texi: Likewise.
27739         * doc/posix-functions/getwc.texi: Likewise.
27740         * doc/posix-functions/iswalnum.texi: Likewise.
27741         * doc/posix-functions/iswalpha.texi: Likewise.
27742         * doc/posix-functions/iswblank.texi: Likewise.
27743         * doc/posix-functions/iswcntrl.texi: Likewise.
27744         * doc/posix-functions/iswctype.texi: Likewise.
27745         * doc/posix-functions/iswdigit.texi: Likewise.
27746         * doc/posix-functions/iswgraph.texi: Likewise.
27747         * doc/posix-functions/iswlower.texi: Likewise.
27748         * doc/posix-functions/iswprint.texi: Likewise.
27749         * doc/posix-functions/iswpunct.texi: Likewise.
27750         * doc/posix-functions/iswspace.texi: Likewise.
27751         * doc/posix-functions/iswupper.texi: Likewise.
27752         * doc/posix-functions/iswxdigit.texi: Likewise.
27753         * doc/posix-functions/mbrtowc.texi: Likewise.
27754         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27755         * doc/posix-functions/mbstowcs.texi: Likewise.
27756         * doc/posix-functions/mbtowc.texi: Likewise.
27757         * doc/posix-functions/putwchar.texi: Likewise.
27758         * doc/posix-functions/putwc.texi: Likewise.
27759         * doc/posix-functions/swprintf.texi: Likewise.
27760         * doc/posix-functions/tolower.texi: Likewise.
27761         * doc/posix-functions/toupper.texi: Likewise.
27762         * doc/posix-functions/towctrans.texi: Likewise.
27763         * doc/posix-functions/ungetwc.texi: Likewise.
27764         * doc/posix-functions/vswprintf.texi: Likewise.
27765         * doc/posix-functions/wcrtomb.texi: Likewise.
27766         * doc/posix-functions/wcscat.texi: Likewise.
27767         * doc/posix-functions/wcschr.texi: Likewise.
27768         * doc/posix-functions/wcscmp.texi: Likewise.
27769         * doc/posix-functions/wcscoll.texi: Likewise.
27770         * doc/posix-functions/wcscpy.texi: Likewise.
27771         * doc/posix-functions/wcscspn.texi: Likewise.
27772         * doc/posix-functions/wcsftime.texi: Likewise.
27773         * doc/posix-functions/wcslen.texi: Likewise.
27774         * doc/posix-functions/wcsncat.texi: Likewise.
27775         * doc/posix-functions/wcsncmp.texi: Likewise.
27776         * doc/posix-functions/wcsncpy.texi: Likewise.
27777         * doc/posix-functions/wcspbrk.texi: Likewise.
27778         * doc/posix-functions/wcsrchr.texi: Likewise.
27779         * doc/posix-functions/wcsrtombs.texi: Likewise.
27780         * doc/posix-functions/wcsspn.texi: Likewise.
27781         * doc/posix-functions/wcsstr.texi: Likewise.
27782         * doc/posix-functions/wcstod.texi: Likewise.
27783         * doc/posix-functions/wcstof.texi: Likewise.
27784         * doc/posix-functions/wcstoimax.texi: Likewise.
27785         * doc/posix-functions/wcstok.texi: Likewise.
27786         * doc/posix-functions/wcstold.texi: Likewise.
27787         * doc/posix-functions/wcstoll.texi: Likewise.
27788         * doc/posix-functions/wcstol.texi: Likewise.
27789         * doc/posix-functions/wcstombs.texi: Likewise.
27790         * doc/posix-functions/wcstoull.texi: Likewise.
27791         * doc/posix-functions/wcstoul.texi: Likewise.
27792         * doc/posix-functions/wcstoumax.texi: Likewise.
27793         * doc/posix-functions/wcswidth.texi: Likewise.
27794         * doc/posix-functions/wcsxfrm.texi: Likewise.
27795         * doc/posix-functions/wctob.texi: Likewise.
27796         * doc/posix-functions/wctomb.texi: Likewise.
27797         * doc/posix-functions/wctrans.texi: Likewise.
27798         * doc/posix-functions/wctype.texi: Likewise.
27799         * doc/posix-functions/wcwidth.texi: Likewise.
27800         * doc/posix-functions/wmemchr.texi: Likewise.
27801         * doc/posix-functions/wmemcmp.texi: Likewise.
27802         * doc/posix-functions/wmemcpy.texi: Likewise.
27803         * doc/posix-functions/wmemmove.texi: Likewise.
27804         * doc/posix-functions/wmemset.texi: Likewise.
27805         * doc/posix-functions/wprintf.texi: Likewise.
27806         * doc/posix-functions/wscanf.texi: Likewise.
27807
27808 2008-12-21  Bruno Haible  <bruno@clisp.org>
27809
27810         Update doc for HP-UX 11.11.
27811         * doc/posix-functions/btowc.texi: Clarify that the function is missing
27812         in HP-UX version 11.00, not in all versions of HP-UX 11.
27813         * doc/posix-functions/fwide.texi: Likewise.
27814         * doc/posix-functions/fwprintf.texi: Likewise.
27815         * doc/posix-functions/fwscanf.texi: Likewise.
27816         * doc/posix-functions/inet_ntop.texi: Likewise.
27817         * doc/posix-functions/inet_pton.texi: Likewise.
27818         * doc/posix-functions/mbrlen.texi: Likewise.
27819         * doc/posix-functions/mbrtowc.texi: Likewise.
27820         * doc/posix-functions/mbsinit.texi: Likewise.
27821         * doc/posix-functions/mbsrtowcs.texi: Likewise.
27822         * doc/posix-functions/swprintf.texi: Likewise.
27823         * doc/posix-functions/swscanf.texi: Likewise.
27824         * doc/posix-functions/towctrans.texi: Likewise.
27825         * doc/posix-functions/vfwprintf.texi: Likewise.
27826         * doc/posix-functions/vswprintf.texi: Likewise.
27827         * doc/posix-functions/vwprintf.texi: Likewise.
27828         * doc/posix-functions/wcrtomb.texi: Likewise.
27829         * doc/posix-functions/wcsrtombs.texi: Likewise.
27830         * doc/posix-functions/wcsstr.texi: Likewise.
27831         * doc/posix-functions/wctob.texi: Likewise.
27832         * doc/posix-functions/wctrans.texi: Likewise.
27833         * doc/posix-functions/wmemchr.texi: Likewise.
27834         * doc/posix-functions/wmemcmp.texi: Likewise.
27835         * doc/posix-functions/wmemcpy.texi: Likewise.
27836         * doc/posix-functions/wmemmove.texi: Likewise.
27837         * doc/posix-functions/wmemset.texi: Likewise.
27838         * doc/posix-functions/wprintf.texi: Likewise.
27839         * doc/posix-functions/wscanf.texi: Likewise.
27840
27841 2008-12-21  Bruno Haible  <bruno@clisp.org>
27842
27843         Work around a portability problem.
27844         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
27845         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
27846
27847 2008-12-20  Bruno Haible  <bruno@clisp.org>
27848
27849         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
27850         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
27851         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
27852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
27853         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
27854
27855         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
27856         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
27857         set.
27858         (GNULIB_defined_mbstate_t): New macro.
27859         (mbsinit): Redefine if REPLACE_MBSINIT is set.
27860         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
27861         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
27862         reuses the system's mbrtowc function but works around the bugs.
27863         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
27864         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
27865         macros.
27866         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
27867         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
27868         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
27869         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
27870         REPLACE_MBSINIT if mbsinit needs to be overridden.
27871         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
27872         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27873         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
27874         REPLACE_MBSINIT, REPLACE_MBRTOWC.
27875         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
27876         m4/locale-zh.m4.
27877         (Depends): Add mbsinit.
27878         * modules/mbsinit (Depends): Add mbrtowc.
27879         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
27880
27881 2008-12-20  Bruno Haible  <bruno@clisp.org>
27882
27883         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
27884         so that there are no conversion errors on AIX.
27885         * tests/test-mbsrtowcs.c (main): LIkewise.
27886
27887 2008-12-20  Bruno Haible  <bruno@clisp.org>
27888
27889         Work around wctob bug on Solaris <= 9.
27890         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
27891         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
27892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
27893         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
27894         * modules/wctob (Files): Add m4/locale-fr.m4.
27895         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
27896
27897 2008-12-20  Bruno Haible  <bruno@clisp.org>
27898
27899         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
27900         /dev/null.
27901         * tests/test-select-in.sh: Likewise.
27902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27903
27904 2008-12-20  Bruno Haible  <bruno@clisp.org>
27905
27906         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
27907         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
27908         Cygwin 1.5.x.
27909
27910 2008-12-20  Bruno Haible  <bruno@clisp.org>
27911
27912         Ensure mbstate_t is defined on HP-UX 11.11.
27913         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
27914         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
27915         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
27916         AC_USE_SYSTEM_EXTENSIONS.
27917         * modules/fnmatch (Depends-on): Add extensions.
27918         * modules/mbrlen (Depends-on): Likewise.
27919         * modules/mbrtowc (Depends-on): Likewise.
27920         * modules/mbsinit (Depends-on): Likewise.
27921         * modules/mbsrtowcs (Depends-on): Likewise.
27922         * modules/mbswidth (Depends-on): Likewise.
27923         * modules/quotearg (Depends-on): Likewise.
27924         * modules/strftime (Depends-on): Likewise.
27925
27926 2008-12-20  Bruno Haible  <bruno@clisp.org>
27927
27928         Ensure wctob is declared on IRIX 6.5.
27929         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
27930         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
27931         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
27932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
27933         of HAVE_WCTOB.
27934         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
27935         HAVE_WCTOB.
27936         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
27937
27938 2008-12-19  Bruno Haible  <bruno@clisp.org>
27939
27940         * modules/mbsrtowcs-tests: New file.
27941         * tests/test-mbsrtowcs1.sh: New file.
27942         * tests/test-mbsrtowcs2.sh: New file.
27943         * tests/test-mbsrtowcs3.sh: New file.
27944         * tests/test-mbsrtowcs4.sh: New file.
27945         * tests/test-mbsrtowcs.c: New file.
27946
27947         New module 'mbsrtowcs'.
27948         * lib/wchar.in.h (mbsrtowcs): New declaration.
27949         * lib/mbsrtowcs.c: New file.
27950         * m4/mbsrtowcs.m4: New file.
27951         * modules/mbsrtowcs: New file.
27952         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
27953         HAVE_MBSRTOWCS.
27954         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
27955         HAVE_MBSRTOWCS.
27956         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
27957
27958 2008-12-19  Bruno Haible  <bruno@clisp.org>
27959
27960         New module 'mbrlen'.
27961         * lib/wchar.in.h (mbrlen): New declaration.
27962         * lib/mbrlen.c: New file.
27963         * m4/mbrlen.m4: New file.
27964         * modules/mbrlen: New file.
27965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
27966         HAVE_MBRLEN.
27967         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
27968         HAVE_MBRLEN.
27969         * doc/posix-functions/mbrlen.texi: Document the new module.
27970
27971 2008-12-19  Bruno Haible  <bruno@clisp.org>
27972
27973         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
27974         * modules/mbrtowc (Depends-on): Add verify.
27975         Suggested by Paul Eggert.
27976
27977 2008-12-18  Bruno Haible  <bruno@clisp.org>
27978
27979         * modules/mbsinit-tests: New file.
27980         * tests/test-mbsinit.sh: New file.
27981         * tests/test-mbsinit.c: New file.
27982
27983 2008-12-18  Bruno Haible  <bruno@clisp.org>
27984
27985         * modules/mbrtowc-tests: New file.
27986         * tests/test-mbrtowc1.sh: New file.
27987         * tests/test-mbrtowc2.sh: New file.
27988         * tests/test-mbrtowc3.sh: New file.
27989         * tests/test-mbrtowc4.sh: New file.
27990         * tests/test-mbrtowc.c: New file.
27991
27992         New module 'mbrtowc'.
27993         * lib/wchar.in.h (mbstate_t): Override when the system does not have
27994         mbsinit and mbrtowc.
27995         (mbrtowc): New declaration.
27996         * lib/mbrtowc.c: New file.
27997         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
27998         * modules/mbrtowc: New file.
27999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
28000         HAVE_MBRTOWC.
28001         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
28002         HAVE_MBRTOWC.
28003         * doc/posix-functions/mbrtowc.texi: Document the new module.
28004
28005 2008-12-18  Bruno Haible  <bruno@clisp.org>
28006
28007         New module 'wctob'.
28008         * lib/wchar.in.h (wctob): New declaration.
28009         * lib/wctob.c: New file.
28010         * m4/wctob.m4: New file.
28011         * modules/wctob: New file.
28012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
28013         HAVE_WCTOB.
28014         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
28015         * doc/posix-functions/wctob.texi: Document the new module.
28016
28017 2008-12-18  Bruno Haible  <bruno@clisp.org>
28018
28019         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
28020         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
28021
28022 2008-12-18  Simon Josefsson  <simon@josefsson.org>
28023
28024         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
28025         G. Christensen" <tgc@jupiterrise.com>.
28026
28027         * lib/flock.c: Need to include errno.h.  Reported by "Tom
28028         G. Christensen" <tgc@jupiterrise.com>.
28029
28030         * lib/flock.c: Need to include string.h.  Reported by "Tom
28031         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
28032         <ebb9@byu.net>.
28033
28034 2008-12-18  Bruno Haible  <bruno@clisp.org>
28035
28036         * m4/locale-ja.m4: New file, from GNU gettext.
28037
28038 2008-12-17  Bruno Haible  <bruno@clisp.org>
28039
28040         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
28041         Suggested by Eric Blake.
28042
28043 2008-12-17  Bruno Haible  <bruno@clisp.org>
28044
28045         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
28046
28047 2008-12-17  Bruno Haible  <bruno@clisp.org>
28048
28049         * lib/mbsinit.c: Include verify.h. Verify an assumption.
28050         * modules/mbsinit (Depends-on): Add verify.
28051         Suggested by Paul Eggert.
28052
28053 2008-12-17  Bruno Haible  <bruno@clisp.org>
28054
28055         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
28056         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
28057         gl_FUNC_MBRTOWC.
28058         * m4/mbiter.m4 (gl_MBITER): LIkewise.
28059         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
28060         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
28061         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
28062         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
28063         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
28064         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
28065         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
28066         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
28067         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
28068         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
28069         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
28070         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
28071         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
28072         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
28073         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28074         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
28075         * modules/trim (configure.ac): Likewise.
28076
28077 2008-12-17  Bruno Haible  <bruno@clisp.org>
28078
28079         * modules/btowc-tests: New file.
28080         * tests/test-btowc1.sh: New file.
28081         * tests/test-btowc2.sh: New file.
28082         * tests/test-btowc.c: New file.
28083
28084         New module 'btowc'.
28085         * lib/wchar.in.h (btowc): New declaration.
28086         * lib/btowc.c: New file.
28087         * m4/btowc.m4: New file.
28088         * modules/btowc: New file.
28089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
28090         HAVE_BTOWC.
28091         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
28092         * doc/posix-functions/btowc.texi: Document the new module.
28093
28094 2008-12-17  Bruno Haible  <bruno@clisp.org>
28095
28096         New module 'mbsinit'.
28097         * lib/wchar.in.h (mbsinit): New declaration.
28098         * lib/mbsinit.c: New file.
28099         * m4/mbsinit.m4: New file.
28100         * modules/mbsinit: New file.
28101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
28102         HAVE_MBSINIT.
28103         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
28104         HAVE_MBSINIT.
28105         * doc/posix-functions/mbsinit.texi: Document the new module.
28106
28107 2008-12-16  Bruno Haible  <bruno@clisp.org>
28108
28109         * lib/unistd.in.h: Add comment.
28110         * tests/test-environ.c: Don't include <stdlib.h>.
28111
28112 2008-12-16  Bruno Haible  <bruno@clisp.org>
28113
28114         * lib/parse-duration.h (parse_duration): Document return value
28115         convention.
28116         * lib/parse-duration.c: Include specification header first. Add
28117         comments.
28118         (_): Remove macro.
28119         (parse_year_month_day, parse_hour_minute_second): Move side effects
28120         outside of strchr call.
28121         (parse_non_iso8601): Move side effects outside of isspace call.
28122         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
28123         call.
28124
28125 2008-12-16  Bruno Haible  <bruno@clisp.org>
28126
28127         * tests/test-parse-duration.sh: Produce no output when the test
28128         succeeds.
28129
28130 2008-12-16  Bruno Haible  <bruno@clisp.org>
28131
28132         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
28133         expressions.
28134
28135 2008-12-15  Bruno Haible  <bruno@clisp.org>
28136
28137         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
28138         * doc/glibc-functions/flistxattr.texi: Likewise.
28139         * doc/glibc-functions/fopencookie.texi: Likewise.
28140         * doc/glibc-functions/fremovexattr.texi: Likewise.
28141         * doc/glibc-functions/fsetxattr.texi: Likewise.
28142         * doc/glibc-functions/getxattr.texi: Likewise.
28143         * doc/glibc-functions/lgetxattr.texi: Likewise.
28144         * doc/glibc-functions/listxattr.texi: Likewise.
28145         * doc/glibc-functions/llistxattr.texi: Likewise.
28146         * doc/glibc-functions/lremovexattr.texi: Likewise.
28147         * doc/glibc-functions/lsetxattr.texi: Likewise.
28148         * doc/glibc-functions/removexattr.texi: Likewise.
28149         * doc/glibc-functions/setxattr.texi: Likewise.
28150         * doc/posix-functions/open_memstream.texi: Likewise.
28151
28152 2008-12-15  Eric Blake  <ebb9@byu.net>
28153
28154         Update doc for cygwin 1.7.
28155         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
28156         functions.
28157         * doc/posix-functions/fchmodat.texi: Likewise.
28158         * doc/posix-functions/fchownat.texi: Likewise.
28159         * doc/posix-functions/fdopendir.texi: Likewise.
28160         * doc/posix-functions/fmemopen.texi: Likewise.
28161         * doc/posix-functions/freeaddrinfo.texi: Likewise.
28162         * doc/posix-functions/fstatat.texi: Likewise.
28163         * doc/posix-functions/futimens.texi: Likewise.
28164         * doc/posix-functions/gai_strerror.texi: Likewise.
28165         * doc/posix-functions/getaddrinfo.texi: Likewise.
28166         * doc/posix-functions/getnameinfo.texi: Likewise.
28167         * doc/posix-functions/if_freenameindex.texi: Likewise.
28168         * doc/posix-functions/if_indextoname.texi: Likewise.
28169         * doc/posix-functions/if_nameindex.texi: Likewise.
28170         * doc/posix-functions/if_nametoindex.texi: Likewise.
28171         * doc/posix-functions/insque.texi: Likewise.
28172         * doc/posix-functions/linkat.texi: Likewise.
28173         * doc/posix-functions/llrint.texi: Likewise.
28174         * doc/posix-functions/llrintf.texi: Likewise.
28175         * doc/posix-functions/llrintl.texi: Likewise.
28176         * doc/posix-functions/lockf.texi: Likewise.
28177         * doc/posix-functions/lrintl.texi: Likewise.
28178         * doc/posix-functions/mkdirat.texi: Likewise.
28179         * doc/posix-functions/mkfifoat.texi: Likewise.
28180         * doc/posix-functions/mknodat.texi: Likewise.
28181         * doc/posix-functions/mq_close.texi: Likewise.
28182         * doc/posix-functions/mq_getattr.texi: Likewise.
28183         * doc/posix-functions/mq_notify.texi: Likewise.
28184         * doc/posix-functions/mq_open.texi: Likewise.
28185         * doc/posix-functions/mq_receive.texi: Likewise.
28186         * doc/posix-functions/mq_send.texi: Likewise.
28187         * doc/posix-functions/mq_setattr.texi: Likewise.
28188         * doc/posix-functions/mq_timedreceive.texi: Likewise.
28189         * doc/posix-functions/mq_timedsend.texi: Likewise.
28190         * doc/posix-functions/mq_unlink.texi: Likewise.
28191         * doc/posix-functions/open_memstream.texi: Likewise.
28192         * doc/posix-functions/openat.texi: Likewise.
28193         * doc/posix-functions/posix_fadvise.texi: Likewise.
28194         * doc/posix-functions/posix_fallocate.texi: Likewise.
28195         * doc/posix-functions/posix_madvise.texi: Likewise.
28196         * doc/posix-functions/posix_memalign.texi: Likewise.
28197         * doc/posix-functions/posix_openpt.texi: Likewise.
28198         * doc/posix-functions/readlinkat.texi: Likewise.
28199         * doc/posix-functions/remque.texi: Likewise.
28200         * doc/posix-functions/renameat.texi: Likewise.
28201         * doc/posix-functions/rintl.texi: Likewise.
28202         * doc/posix-functions/sem_unlink.texi: Likewise.
28203         * doc/posix-functions/shm_open.texi: Likewise.
28204         * doc/posix-functions/shm_unlink.texi: Likewise.
28205         * doc/posix-functions/signgam.texi: Likewise.
28206         * doc/posix-functions/sigset.texi: Likewise.
28207         * doc/posix-functions/stpcpy.texi: Likewise.
28208         * doc/posix-functions/stpncpy.texi: Likewise.
28209         * doc/posix-functions/strerror.texi: Likewise.
28210         * doc/posix-functions/strtod.texi: Likewise.
28211         * doc/posix-functions/symlinkat.texi: Likewise.
28212         * doc/posix-functions/unlinkat.texi: Likewise.
28213         * doc/posix-functions/utimensat.texi: Likewise.
28214         * doc/glibc-functions/bindresvport.texi: Likewise.
28215         * doc/glibc-functions/dn_expand.texi: Likewise.
28216         * doc/glibc-functions/exp10.texi: Likewise.
28217         * doc/glibc-functions/exp10f.texi: Likewise.
28218         * doc/glibc-functions/fgetxattr.texi: Likewise.
28219         * doc/glibc-functions/flistxattr.texi: Likewise.
28220         * doc/glibc-functions/fopencookie.texi: Likewise.
28221         * doc/glibc-functions/freeifaddrs.texi: Likewise.
28222         * doc/glibc-functions/fremovexattr.texi: Likewise.
28223         * doc/glibc-functions/fsetxattr.texi: Likewise.
28224         * doc/glibc-functions/getifaddrs.texi: Likewise.
28225         * doc/glibc-functions/getxattr.texi: Likewise.
28226         * doc/glibc-functions/lgetxattr.texi: Likewise.
28227         * doc/glibc-functions/listxattr.texi: Likewise.
28228         * doc/glibc-functions/llistxattr.texi: Likewise.
28229         * doc/glibc-functions/lremovexattr.texi: Likewise.
28230         * doc/glibc-functions/lsetxattr.texi: Likewise.
28231         * doc/glibc-functions/pow10.texi: Likewise.
28232         * doc/glibc-functions/pow10f.texi: Likewise.
28233         * doc/glibc-functions/rcmd_af.texi: Likewise.
28234         * doc/glibc-functions/removexattr.texi: Likewise.
28235         * doc/glibc-functions/res_init.texi: Likewise.
28236         * doc/glibc-functions/res_mkquery.texi: Likewise.
28237         * doc/glibc-functions/res_query.texi: Likewise.
28238         * doc/glibc-functions/res_querydomain.texi: Likewise.
28239         * doc/glibc-functions/res_send.texi: Likewise.
28240         * doc/glibc-functions/rresvport_af.texi: Likewise.
28241         * doc/glibc-functions/setxattr.texi: Likewise.
28242         * doc/glibc-functions/strcasestr.texi: Likewise.
28243
28244 2008-12-15  Bruno Haible  <bruno@clisp.org>
28245
28246         Fix compilation error on OSF/1 4.0.
28247         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
28248         <sys/time.h>, simply delegate to the system header.
28249         Reported by Daniel Richard G. <oss@teragram.com>.
28250
28251 2008-12-15  Bruno Haible  <bruno@clisp.org>
28252
28253         * doc/posix-functions/openat.texi: Mention the 'openat' module.
28254         * doc/posix-functions/fchmodat.texi: Likewise.
28255         * doc/posix-functions/fchownat.texi: Likewise.
28256         * doc/posix-functions/fdopendir.texi: Likewise.
28257         * doc/posix-functions/fstatat.texi: Likewise.
28258         * doc/posix-functions/mkdirat.texi: Likewise.
28259         * doc/posix-functions/unlinkat.texi: Likewise.
28260
28261 2008-12-14  Bruno Haible  <bruno@clisp.org>
28262
28263         Update doc for POSIX:2008.
28264         * doc/posix-functions/faccessat.texi: New file.
28265         * doc/posix-functions/fchmodat.texi: New file.
28266         * doc/posix-functions/fchownat.texi: New file.
28267         * doc/posix-functions/fdopendir.texi: New file.
28268         * doc/posix-functions/fstatat.texi: New file.
28269         * doc/posix-functions/futimens.texi: New file.
28270         * doc/posix-functions/linkat.texi: New file.
28271         * doc/posix-functions/mkdirat.texi: New file.
28272         * doc/posix-functions/mkfifoat.texi: New file.
28273         * doc/posix-functions/mknodat.texi: New file.
28274         * doc/posix-functions/open_wmemstream.texi: New file.
28275         * doc/posix-functions/openat.texi: New file.
28276         * doc/posix-functions/psiginfo.texi: New file.
28277         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
28278         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
28279         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
28280         * doc/posix-functions/readlinkat.texi: New file.
28281         * doc/posix-functions/renameat.texi: New file.
28282         * doc/posix-functions/strerror_l.texi: New file.
28283         * doc/posix-functions/symlinkat.texi: New file.
28284         * doc/posix-functions/unlinkat.texi: New file.
28285         * doc/posix-functions/utimensat.texi: New file.
28286         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28287
28288 2008-12-14  Bruno Haible  <bruno@clisp.org>
28289
28290         Update doc for POSIX:2008.
28291         * doc/posix-functions/alphasort.texi: Renamed from
28292         doc/glibc-functions/alphasort.texi.
28293         * doc/posix-functions/dirfd.texi: Renamed from
28294         doc/glibc-functions/dirfd.texi.
28295         * doc/posix-functions/dprintf.texi: Renamed from
28296         doc/glibc-functions/dprintf.texi.
28297         * doc/posix-functions/duplocale.texi: Renamed from
28298         doc/glibc-functions/duplocale.texi.
28299         * doc/posix-functions/fexecve.texi: Renamed from
28300         doc/glibc-functions/fexecve.texi.
28301         * doc/posix-functions/fmemopen.texi: Renamed from
28302         doc/glibc-functions/fmemopen.texi.
28303         * doc/posix-functions/freelocale.texi: Renamed from
28304         doc/glibc-functions/freelocale.texi.
28305         * doc/posix-functions/getdate_err.texi: Renamed from
28306         doc/glibc-functions/getdate_err.texi.
28307         * doc/posix-functions/isalnum_l.texi: Renamed from
28308         doc/glibc-functions/isalnum_l.texi.
28309         * doc/posix-functions/isalpha_l.texi: Renamed from
28310         doc/glibc-functions/isalpha_l.texi.
28311         * doc/posix-functions/isblank_l.texi: Renamed from
28312         doc/glibc-functions/isblank_l.texi.
28313         * doc/posix-functions/iscntrl_l.texi: Renamed from
28314         doc/glibc-functions/iscntrl_l.texi.
28315         * doc/posix-functions/isdigit_l.texi: Renamed from
28316         doc/glibc-functions/isdigit_l.texi.
28317         * doc/posix-functions/isgraph_l.texi: Renamed from
28318         doc/glibc-functions/isgraph_l.texi.
28319         * doc/posix-functions/islower_l.texi: Renamed from
28320         doc/glibc-functions/islower_l.texi.
28321         * doc/posix-functions/isprint_l.texi: Renamed from
28322         doc/glibc-functions/isprint_l.texi.
28323         * doc/posix-functions/ispunct_l.texi: Renamed from
28324         doc/glibc-functions/ispunct_l.texi.
28325         * doc/posix-functions/isspace_l.texi: Renamed from
28326         doc/glibc-functions/isspace_l.texi.
28327         * doc/posix-functions/isupper_l.texi: Renamed from
28328         doc/glibc-functions/isupper_l.texi.
28329         * doc/posix-functions/iswalnum_l.texi: Renamed from
28330         doc/glibc-functions/iswalnum_l.texi.
28331         * doc/posix-functions/iswalpha_l.texi: Renamed from
28332         doc/glibc-functions/iswalpha_l.texi.
28333         * doc/posix-functions/iswblank_l.texi: Renamed from
28334         doc/glibc-functions/iswblank_l.texi.
28335         * doc/posix-functions/iswcntrl_l.texi: Renamed from
28336         doc/glibc-functions/iswcntrl_l.texi.
28337         * doc/posix-functions/iswctype_l.texi: Renamed from
28338         doc/glibc-functions/iswctype_l.texi.
28339         * doc/posix-functions/iswdigit_l.texi: Renamed from
28340         doc/glibc-functions/iswdigit_l.texi.
28341         * doc/posix-functions/iswgraph_l.texi: Renamed from
28342         doc/glibc-functions/iswgraph_l.texi.
28343         * doc/posix-functions/iswlower_l.texi: Renamed from
28344         doc/glibc-functions/iswlower_l.texi.
28345         * doc/posix-functions/iswprint_l.texi: Renamed from
28346         doc/glibc-functions/iswprint_l.texi.
28347         * doc/posix-functions/iswpunct_l.texi: Renamed from
28348         doc/glibc-functions/iswpunct_l.texi.
28349         * doc/posix-functions/iswspace_l.texi: Renamed from
28350         doc/glibc-functions/iswspace_l.texi.
28351         * doc/posix-functions/iswupper_l.texi: Renamed from
28352         doc/glibc-functions/iswupper_l.texi.
28353         * doc/posix-functions/iswxdigit_l.texi: Renamed from
28354         doc/glibc-functions/iswxdigit_l.texi.
28355         * doc/posix-functions/isxdigit_l.texi: Renamed from
28356         doc/glibc-functions/isxdigit_l.texi.
28357         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
28358         doc/glibc-functions/mbsnrtowcs.texi.
28359         * doc/posix-functions/mkdtemp.texi: Renamed from
28360         doc/glibc-functions/mkdtemp.texi.
28361         * doc/posix-functions/newlocale.texi: Renamed from
28362         doc/glibc-functions/newlocale.texi.
28363         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
28364         doc/glibc-functions/nl_langinfo_l.texi.
28365         * doc/posix-functions/open_memstream.texi: Renamed from
28366         doc/glibc-functions/open_memstream.texi.
28367         * doc/posix-functions/opterr.texi: Renamed from
28368         doc/glibc-functions/opterr.texi.
28369         * doc/posix-functions/optind.texi: Renamed from
28370         doc/glibc-functions/optind.texi.
28371         * doc/posix-functions/optopt.texi: Renamed from
28372         doc/glibc-functions/optopt.texi.
28373         * doc/posix-functions/psignal.texi: Renamed from
28374         doc/glibc-functions/psignal.texi.
28375         * doc/posix-functions/scandir.texi: Renamed from
28376         doc/glibc-functions/scandir.texi.
28377         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
28378         doc/glibc-functions/sched_get_priority_min.texi.
28379         * doc/posix-functions/signgam.texi: Renamed from
28380         doc/glibc-functions/signgam.texi.
28381         * doc/posix-functions/stpcpy.texi: Renamed from
28382         doc/glibc-functions/stpcpy.texi.
28383         * doc/posix-functions/stpncpy.texi: Renamed from
28384         doc/glibc-functions/stpncpy.texi.
28385         * doc/posix-functions/strcasecmp_l.texi: Renamed from
28386         doc/glibc-functions/strcasecmp_l.texi.
28387         * doc/posix-functions/strcoll_l.texi: Renamed from
28388         doc/glibc-functions/strcoll_l.texi.
28389         * doc/posix-functions/strfmon_l.texi: Renamed from
28390         doc/glibc-functions/strfmon_l.texi.
28391         * doc/posix-functions/strftime_l.texi: Renamed from
28392         doc/glibc-functions/strftime_l.texi.
28393         * doc/posix-functions/strncasecmp_l.texi: Renamed from
28394         doc/glibc-functions/strncasecmp_l.texi.
28395         * doc/posix-functions/strndup.texi: Renamed from
28396         doc/glibc-functions/strndup.texi.
28397         * doc/posix-functions/strnlen.texi: Renamed from
28398         doc/glibc-functions/strnlen.texi.
28399         * doc/posix-functions/strsignal.texi: Renamed from
28400         doc/glibc-functions/strsignal.texi.
28401         * doc/posix-functions/strxfrm_l.texi: Renamed from
28402         doc/glibc-functions/strxfrm_l.texi.
28403         * doc/posix-functions/timer_gettime.texi: Renamed from
28404         doc/glibc-functions/timer_gettime.texi.
28405         * doc/posix-functions/tolower_l.texi: Renamed from
28406         doc/glibc-functions/tolower_l.texi.
28407         * doc/posix-functions/toupper_l.texi: Renamed from
28408         doc/glibc-functions/toupper_l.texi.
28409         * doc/posix-functions/towctrans_l.texi: Renamed from
28410         doc/glibc-functions/towctrans_l.texi.
28411         * doc/posix-functions/towlower_l.texi: Renamed from
28412         doc/glibc-functions/towlower_l.texi.
28413         * doc/posix-functions/towupper_l.texi: Renamed from
28414         doc/glibc-functions/towupper_l.texi.
28415         * doc/posix-functions/uselocale.texi: Renamed from
28416         doc/glibc-functions/uselocale.texi.
28417         * doc/posix-functions/vdprintf.texi: Renamed from
28418         doc/glibc-functions/vdprintf.texi.
28419         * doc/posix-functions/wcpcpy.texi:
28420         Renamed from doc/glibc-functions/wcpcpy.texi.
28421         * doc/posix-functions/wcpncpy.texi: Renamed from
28422         doc/glibc-functions/wcpncpy.texi.
28423         * doc/posix-functions/wcscasecmp.texi: Renamed from
28424         doc/glibc-functions/wcscasecmp.texi.
28425         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
28426         doc/glibc-functions/wcscasecmp_l.texi.
28427         * doc/posix-functions/wcscoll_l.texi: Renamed from
28428         doc/glibc-functions/wcscoll_l.texi.
28429         * doc/posix-functions/wcsdup.texi: Renamed from
28430         doc/glibc-functions/wcsdup.texi.
28431         * doc/posix-functions/wcsncasecmp.texi: Renamed from
28432         doc/glibc-functions/wcsncasecmp.texi.
28433         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
28434         doc/glibc-functions/wcsncasecmp_l.texi.
28435         * doc/posix-functions/wcsnlen.texi: Renamed from
28436         doc/glibc-functions/wcsnlen.texi.
28437         * doc/posix-functions/wcsnrtombs.texi: Renamed from
28438         doc/glibc-functions/wcsnrtombs.texi.
28439         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
28440         doc/glibc-functions/wcsxfrm_l.texi.
28441         * doc/posix-functions/wctrans_l.texi: Renamed from
28442         doc/glibc-functions/wctrans_l.texi.
28443         * doc/posix-functions/wctype_l.texi: Renamed from
28444         doc/glibc-functions/wctype_l.texi.
28445         * doc/gnulib.texi (Function Substitutes): Add these subsections.
28446         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
28447         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
28448         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
28449         these subsections.
28450         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
28451         Remove sections.
28452
28453 2008-12-14  Bruno Haible  <bruno@clisp.org>
28454
28455         Update doc for POSIX:2008.
28456         * doc/posix-functions/*.texi: Update URL of POSIX specification.
28457
28458 2008-12-14  Bruno Haible  <bruno@clisp.org>
28459
28460         Update doc for POSIX:2008.
28461         * doc/pastposix-functions/bcmp.texi: Renamed from
28462         doc/posix-functions/bcmp.texi.
28463         * doc/pastposix-functions/bcopy.texi: Renamed from
28464         doc/posix-functions/bcopy.texi.
28465         * doc/pastposix-functions/bsd_signal.texi: Renamed from
28466         doc/posix-functions/bsd_signal.texi.
28467         * doc/pastposix-functions/bzero.texi: Renamed from
28468         doc/posix-functions/bzero.texi.
28469         * doc/pastposix-functions/ecvt.texi: Renamed from
28470         doc/posix-functions/ecvt.texi.
28471         * doc/pastposix-functions/fcvt.texi: Renamed from
28472         doc/posix-functions/fcvt.texi.
28473         * doc/pastposix-functions/ftime.texi: Renamed from
28474         doc/posix-functions/ftime.texi.
28475         * doc/pastposix-functions/gcvt.texi: Renamed from
28476         doc/posix-functions/gcvt.texi.
28477         * doc/pastposix-functions/getcontext.texi: Renamed from
28478         doc/posix-functions/getcontext.texi.
28479         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
28480         doc/posix-functions/gethostbyaddr.texi.
28481         * doc/pastposix-functions/gethostbyname.texi: Renamed from
28482         doc/posix-functions/gethostbyname.texi.
28483         * doc/pastposix-functions/getwd.texi: Renamed from
28484         doc/posix-functions/getwd.texi.
28485         * doc/pastposix-functions/h_errno.texi: Renamed from
28486         doc/posix-functions/h_errno.texi.
28487         * doc/pastposix-functions/index.texi: Renamed from
28488         doc/posix-functions/index.texi.
28489         * doc/pastposix-functions/makecontext.texi: Renamed from
28490         doc/posix-functions/makecontext.texi.
28491         * doc/pastposix-functions/mktemp.texi: Renamed from
28492         doc/posix-functions/mktemp.texi.
28493         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
28494         doc/posix-functions/pthread_attr_getstackaddr.texi.
28495         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
28496         doc/posix-functions/pthread_attr_setstackaddr.texi.
28497         * doc/pastposix-functions/rindex.texi: Renamed from
28498         doc/posix-functions/rindex.texi.
28499         * doc/pastposix-functions/scalb.texi: Renamed from
28500         doc/posix-functions/scalb.texi.
28501         * doc/pastposix-functions/setcontext.texi: Renamed from
28502         doc/posix-functions/setcontext.texi.
28503         * doc/pastposix-functions/swapcontext.texi: Renamed from
28504         doc/posix-functions/swapcontext.texi.
28505         * doc/pastposix-functions/ualarm.texi: Renamed from
28506         doc/posix-functions/ualarm.texi.
28507         * doc/pastposix-functions/usleep.texi: Renamed from
28508         doc/posix-functions/usleep.texi.
28509         * doc/pastposix-functions/vfork.texi: Renamed from
28510         doc/posix-functions/vfork.texi.
28511         * doc/pastposix-functions/wcswcs.texi: Renamed from
28512         doc/posix-functions/wcswcs.texi.
28513         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
28514         (Function Substitutes): Update.
28515
28516 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28517
28518         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
28519         m4/strerror.m4.
28520
28521 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28522             Bruno Haible  <bruno@clisp.org>
28523
28524         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
28525
28526 2008-12-13  Bruno Haible  <bruno@clisp.org>
28527
28528         * modules/strtoull (Depends-on): Remove unistd.
28529
28530 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28531
28532         * modules/strtoull (Depends-on): Add stdlib.
28533
28534 2008-12-11  Simon Josefsson  <simon@josefsson.org>
28535
28536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
28537
28538 2008-12-10  Jim Meyering  <meyering@redhat.com>
28539
28540         gl_ASSERT: don't say assertions are disabled when they're not
28541         * m4/assert.m4 (gl_ASSERT): Do not make configure report
28542         "checking whether to enable assertions... no", when they are in
28543         fact enabled.  This is solely a bug in the output of configure.
28544         In spite of saying "no", NDEBUG was not defined in that case.
28545         Also, as noted by Eric Blake, leave assertions enabled upon
28546         --enable-assert=INVALID.
28547
28548 2008-12-10  Bruno Haible  <bruno@clisp.org>
28549
28550         Change MODULES.html to refer to POSIX:2008 where possible.
28551         * MODULES.html.sh (POSIX2008_URL): New variable.
28552         (posix_headers): Remove sys/timeb, ucontext.
28553         (posix2001_headers): New variable.
28554         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
28555         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
28556         index, makecontext, mktemp, pthread_attr_getstackaddr,
28557         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
28558         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
28559         (posix2001_functions): New variable.
28560         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
28561         otherwise.
28562
28563 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28564
28565         add missing include to parse-duration.c
28566         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
28567         * modules/parse-duration (Depends-on): Add xalloc.
28568
28569         fix sed script reading maint.mk
28570         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
28571         (syntax-check-rules): Use it.
28572
28573 2008-12-09  Bruno Haible  <bruno@clisp.org>
28574
28575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
28576         MacOS X 10.4/PowerPC.
28577         Reported by Simon Josefsson.
28578
28579 2008-12-08  Jim Meyering  <meyering@redhat.com>
28580
28581         work around mingw's lack of some S_IF definitions
28582         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
28583         Reported by Simon Josefsson.
28584
28585 2008-12-08  Bruno Haible  <bruno@clisp.org>
28586
28587         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
28588         applied to variables. Needed on MacOS X 10.4/PowerPC.
28589         Reported by Simon Josefsson.
28590
28591 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
28592         and Eric Blake  <ebb9@byu.net>
28593
28594         assert: honor --enable-assert
28595         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
28596         order to honor --enable-assert, rather than treating it as a
28597         synonym for --disable-assert.
28598
28599 2008-12-08  Jim Meyering  <meyering@redhat.com>
28600
28601         * lib/posixtm.c: Remove now-useless declaration of mktime.
28602
28603         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
28604
28605 2008-12-07  Bruno Haible  <bruno@clisp.org>
28606
28607         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
28608         test_once): Mark functions as static.
28609         * tests/test-tls.c (test_tls): Likewise.
28610
28611 2008-12-07  Bruno Haible  <bruno@clisp.org>
28612
28613         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
28614         iconv_register_autodetect.
28615
28616 2008-12-07  Jim Meyering  <meyering@redhat.com>
28617
28618         posixtm.c: avoid a warning
28619         * lib/posixtm.c (posixtime): Don't initialize tm0.
28620         It's no longer needed to placate gcc4's -Wuninitialized,
28621         and the attempt to placate would elicit a new warning.
28622
28623         unicodeio.c: mark unused parameters
28624         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28625         (fallback_failure_callback): Likewise.
28626
28627 2008-12-07  Bruno Haible  <bruno@clisp.org>
28628
28629         * gnulib-tool (func_create_testdir): When building the tests
28630         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
28631         Reported by Simon Josefsson.
28632
28633 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28634
28635         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
28636
28637 2008-12-06  Bruno Haible  <bruno@clisp.org>
28638
28639         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
28640         Suggested by Eric Blake.
28641
28642 2008-12-06  Bruno Haible  <bruno@clisp.org>
28643
28644         Fix a c-stack test failure on MacOS X.
28645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
28646         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
28647         handler for SIGBUS as well.
28648         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
28649         install a signal handler for SIGBUS as well.
28650         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
28651
28652 2008-12-06  Bruno Haible  <bruno@clisp.org>
28653
28654         Advocacy documentation.
28655         * doc/gnulib-intro.texi (Benefits): New section.
28656         * doc/gnulib.texi: Update.
28657
28658 2008-12-06  Bruno Haible  <bruno@clisp.org>
28659
28660         Document the 'manywarnings' module.
28661         * doc/manywarnings.texi: New file.
28662         * doc/gnulib.texi: Include it.
28663
28664 2008-12-05  Eric Blake  <ebb9@byu.net>
28665
28666         tests: silence some gcc warnings
28667         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
28668         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28669         type mismatches.
28670
28671 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28672             Bruno Haible  <bruno@clisp.org>
28673
28674         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
28675
28676 2008-11-29  Jim Meyering  <meyering@redhat.com>
28677
28678         unicodeio.c: mark unused parameters
28679         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
28680         (fallback_failure_callback): Likewise.
28681
28682         fts: fix a thinko
28683         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
28684         (set_stat_type): Return S_IF*-valued "type" directly.
28685         Prompted by James Youngman's spotting a related bug.
28686         Confirmed by further testing through find.
28687
28688         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
28689         * lib/fts.c (D_TYPE): Define.
28690         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
28691         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
28692         (s_ifmt_shift_bits): New function.
28693         (set_stat_type): New function.
28694         (fts_build): When not calling fts_stat, call set_stat_type
28695         to propagate dirent.d_type info to fts_read caller.
28696         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
28697         fts_statp->st_mode type information may be valid.
28698
28699 2008-11-28  Simon Josefsson  <simon@josefsson.org>
28700
28701         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
28702         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
28703         <sds@gnu.org>.
28704
28705 2008-11-20  Bruno Haible  <bruno@clisp.org>
28706
28707         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
28708         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
28709         INCLUDE_NEXT.
28710         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
28711         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
28712         * modules/math (Makefile.am): Substitute
28713         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
28714         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28715
28716 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
28717             Bruno Haible  <bruno@clisp.org>
28718
28719         * lib/stdint.in.h: Define all type macros so that their expansion is
28720         a single typedef'ed token. Fixes a compilation failure in Boost which
28721         does "using ::int8_t;".
28722
28723 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28724
28725         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
28726         gl_MANYWARN_ALL_GCC.
28727         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
28728         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
28729         * modules/manywarnings: New file.
28730         * MODULES.html.sh: Mention manywarnings module.
28731
28732 2008-11-18  Bruno Haible  <bruno@clisp.org>
28733
28734         * doc/gnulib-tool.texi (Unit tests): New section.
28735
28736 2008-11-18  Simon Josefsson  <simon@josefsson.org>
28737
28738         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
28739         paths like 'lib/po/foo.po'.
28740
28741 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28742
28743         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
28744         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
28745
28746 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28747
28748         * m4/warnings.m4: Use CPPFLAGS to really check whether the
28749         parameter works.
28750
28751 2008-11-17  Simon Josefsson  <simon@josefsson.org>
28752
28753         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
28754
28755 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28756
28757         * modules/parse-duration-tests: New file.
28758         * tests/test-parse-duration.sh: New file.
28759         * tests/test-parse-duration.c: New file.
28760
28761         New module 'parse-duration'.
28762         * lib/parse-duration.h: New file.
28763         * lib/parse-duration.c: New file.
28764         * modules/parse-duration: New file.
28765
28766 2008-11-17  Bruno Haible  <bruno@clisp.org>
28767
28768         * tests/test-select-out.sh: Comment out the first pipe test.
28769         Reported by Simon Josefsson.
28770
28771 2008-11-17  Bruno Haible  <bruno@clisp.org>
28772
28773         * modules/getaddrinfo (Depends-on): Add servent, hostent.
28774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
28775         gl_HOSTENT.
28776
28777 2008-11-17  Bruno Haible  <bruno@clisp.org>
28778
28779         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
28780         -lnetwork and -lnet. Needed for Haiku and BeOS.
28781
28782 2008-11-16  Bruno Haible  <bruno@clisp.org>
28783
28784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
28785
28786 2008-11-16  Bruno Haible  <bruno@clisp.org>
28787
28788         Avoid test failure on Haiku.
28789         * tests/test-fsync.c: Include <errno.h>.
28790         (main): Don't require that fsync (0) fails.
28791
28792 2008-11-15  Bruno Haible  <bruno@clisp.org>
28793
28794         New module 'hostent'.
28795         * modules/hostent: New file.
28796         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
28797
28798 2008-11-15  Bruno Haible  <bruno@clisp.org>
28799
28800         New module 'servent'.
28801         * modules/servent: New file.
28802         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
28803
28804 2008-11-15  Bruno Haible  <bruno@clisp.org>
28805
28806         Avoid generating same test program with two different rules.
28807         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
28808         test-frexp to test-frexp-nolibm.
28809         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
28810         test-frexpl to test-frexpl-nolibm.
28811
28812 2008-11-15  Bruno Haible  <bruno@clisp.org>
28813
28814         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
28815         $(FREXPL_LIBM).
28816
28817 2008-11-15  Bruno Haible  <bruno@clisp.org>
28818
28819         * lib/netdb.in.h: Activate the definitions also when the system's
28820         <netdb.h> has 'struct addrinfo'.
28821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
28822         EAI_OVERFLOW or AI_NUMERICSERV.
28823         * doc/posix-headers/netdb.texi: Document the problem.
28824
28825 2008-11-15  Bruno Haible  <bruno@clisp.org>
28826
28827         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
28828
28829         Make the 'sched' module work on platforms where <sched.h> exists but
28830         is incomplete (such as Haiku).
28831         * lib/sched.in.h; Include the system's <sched.h> if it exists.
28832         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
28833         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
28834         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
28835         HAVE_STRUCT_SCHED_PARAM.
28836         * modules/sched (Depends-on): Add include_next.
28837         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
28838         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
28839         * doc/posix-headers/sched.texi: Document the issue.
28840
28841 2008-11-13  Jim Meyering  <meyering@redhat.com>
28842
28843         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
28844         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
28845         test would fail due to the difference in the Report bugs to ...
28846         line.  The expected address is empty, "<>", while the actual
28847         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
28848
28849 2008-11-12  Bruno Haible  <bruno@clisp.org>
28850
28851         lstat: don't compile lstat.c on systems lacking lstat
28852         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
28853         which don't have lstat; this is handled by lib/sys_stat.in.h already.
28854         Reported by Daniel P. Berrange via Jim Meyering.
28855
28856 2008-11-12  Jim Meyering  <meyering@redhat.com>
28857
28858         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
28859
28860 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28861
28862         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
28863         instead.
28864
28865 2008-11-12  Bruno Haible  <bruno@clisp.org>
28866
28867         * lib/unicodeio.c: Include unistr.h.
28868         (utf8_wctomb): Remove function.
28869         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
28870
28871 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28872
28873         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
28874         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
28875         <bruno@clisp.org>.
28876         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
28877
28878 2008-11-12  Simon Josefsson  <simon@josefsson.org>
28879
28880         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
28881         * doc/gnulib.texi: Add section for warnings.
28882
28883 2008-11-11  Bruno Haible  <bruno@clisp.org>
28884
28885         * lib/sockets.h: Add a comment.
28886
28887 2008-11-11  Karl Berry  <karl@gnu.org>
28888
28889         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
28890
28891 2008-11-11  Eric Blake  <ebb9@byu.net>
28892
28893         fdl.texi: avoid git symlinks
28894         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
28895
28896 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28897
28898         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
28899
28900 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28901
28902         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
28903         (gl_WARN_ADD): Substitute $2 if literal.
28904
28905 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28906
28907         * m4/warning.m4: Remove.
28908
28909 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
28910
28911         * m4/warnings.m4: Almost complete rewrite. :-)
28912
28913 2008-11-10  Simon Josefsson  <simon@josefsson.org>
28914
28915         * modules/warnings: New module.
28916         * m4/warnings.m4: New file.
28917         * MODULES.html.sh: Mention warnings module.
28918         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
28919         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28920
28921 2008-11-10  Eric Blake  <ebb9@byu.net>
28922
28923         fdl.texi: make a symlink to the latest version
28924         * doc/standards.texi: Revert today's earlier change.
28925         * doc/fdl-1.2.texi: Rename from old fdl.texi...
28926         * doc/fdl.texi: ...and replace this with a symlink to the newer
28927         fdl-1.3.texi.
28928
28929 2008-11-10  Bruno Haible  <bruno@clisp.org>
28930
28931         * tests/test-select-fd.c (main): Accept the result file name as fourth
28932         argument.
28933         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
28934         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
28935
28936 2008-11-10  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
28939         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
28940         as autoconf-substituted macros.
28941         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
28942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
28943         gl_NETDB_H_DEFAULTS. Set these variables.
28944         * modules/netdb (Makefile.am): Substitute these variables.
28945
28946 2008-11-10  Eric Blake  <ebb9@byu.net>
28947
28948         standards.texi: include correct file for FDL 1.3
28949         * doc/standards.texi (GNU Free Documentation License): Change
28950         include file to pull in FDL 1.3, not 1.2.
28951
28952         fdl.texi: revert accidental change to license
28953         * doc/fdl.texi: This is FDL 1.2, not 1.3.
28954
28955 2008-11-10  Bruno Haible  <bruno@clisp.org>
28956
28957         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
28958         cross-compiling guesses also when the native compile gives no result.
28959
28960 2008-11-10  Bruno Haible  <bruno@clisp.org>
28961
28962         * lib/spawni.c (__spawni): Force variable into the stack.
28963
28964 2008-11-10  Bruno Haible  <bruno@clisp.org>
28965
28966         Add support for Haiku.
28967         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
28968         glibc and BeOS, but also on Haiku.
28969         * lib/fpurge.c (fpurge): Likewise.
28970         * lib/freadable.c (freadable): Likewise.
28971         * lib/freadahead.c (freadahead): Likewise.
28972         * lib/freading.c (freading): Likewise.
28973         * lib/freadptr.c (freadptr): Likewise.
28974         * lib/freadseek.c (freadptrinc): Likewise.
28975         * lib/fseeko.c (rpl_fseeko): Likewise.
28976         * lib/fseterr.c (fseterr): Likewise.
28977         * lib/fwritable.c (fwritable): Likewise.
28978         * lib/fwriting.c (fwriting): Likewise.
28979         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
28980
28981 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28982
28983         * lib/config.charset: Treat Haiku like BeOS.
28984
28985 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
28986
28987         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
28988         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
28989
28990 2008-11-08  Bruno Haible  <bruno@clisp.org>
28991
28992         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
28993         AC_CACHE_CHECK.
28994
28995 2008-11-08  Bruno Haible  <bruno@clisp.org>
28996
28997         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
28998
28999 2008-11-08  Bruno Haible  <bruno@clisp.org>
29000
29001         * tests/test-select-fd.c: New file.
29002         * tests/test-select-in.sh: New file.
29003         * tests/test-select-out.sh: New file.
29004         * tests/test-select-stdin.c: New file.
29005         * modules/select-tests (Files): Add the new files.
29006         (Depends-on): Add gettimeofday.
29007         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
29008         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
29009         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
29010
29011 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
29012             Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
29015
29016 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
29017
29018         * build-aux/pmccabe2html: Added support for C++ source files.
29019
29020 2008-11-05  Ben Pfaff  <blp@gnu.org>
29021
29022         Fix lib/close.c build on Windows.
29023         * modules/close (Files): Add lib/w32sock.h.
29024
29025 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
29026
29027         Accept Bison's NEWS format.
29028         * build-aux/announce-gen (print_news_deltas): Tweak
29029         $re_prefix.
29030
29031 2008-11-04  Bruno Haible  <bruno@clisp.org>
29032
29033         * modules/random_r (Maintainer): Add glibc.
29034
29035 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29036
29037         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
29038         by karl@freefriends.org (Karl Berry).
29039         * doc/alloca.texi: Likewise.
29040         * doc/c-ctype.texi: Likewise.
29041         * doc/c-strcase.texi: Likewise.
29042         * doc/c-strcaseeq.texi: Likewise.
29043         * doc/c-strcasestr.texi: Likewise.
29044         * doc/c-strstr.texi: Likewise.
29045         * doc/c-strtod.texi: Likewise.
29046         * doc/c-strtold.texi: Likewise.
29047         * doc/ctime.texi: Likewise.
29048         * doc/error.texi: Likewise.
29049         * doc/fdl.texi: Likewise.
29050         * doc/gcd.texi: Likewise.
29051         * doc/getdate.texi: Likewise.
29052         * doc/gnulib-intro.texi: Likewise.
29053         * doc/gnulib-tool.texi: Likewise.
29054         * doc/gnulib.texi: Likewise.
29055         * doc/inet_ntoa.texi: Likewise.
29056         * doc/maintain.texi: Likewise.
29057         * doc/make-stds.texi: Likewise.
29058         * doc/quote.texi: Likewise.
29059         * doc/regexprops-generic.texi: Likewise.
29060         * doc/standards.texi: Likewise.
29061         * doc/verify.texi: Likewise.
29062         * doc/visibility.texi: Likewise.
29063         * doc/gnulib.texi (GNU Free Documentation License): Include
29064         fdl-1.3.texi instead of fdl.texi.
29065
29066 2008-11-04  Simon Josefsson  <simon@josefsson.org>
29067
29068         * doc/fdl-1.3.texi: New file, from
29069         <http://www.gnu.org/licenses/fdl-1.3.texi>.
29070         * modules/fdl-1.3: Add.
29071         * MODULES.html.sh: Add fdl-1.3.
29072
29073 2008-11-03  Bruno Haible  <bruno@clisp.org>
29074
29075         Make determination of absolute name of header file work with AIX xlc.
29076         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
29077         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
29078         preprocessing.
29079         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29080         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29081
29082 2008-11-03  Simon Josefsson  <simon@josefsson.org>
29083
29084         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
29085         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
29086         <ludo@gnu.org>.
29087
29088 2008-11-02  Bruno Haible  <bruno@clisp.org>
29089
29090         Mark 'strpbrk' obsolete.
29091         * modules/strpbrk (Status, Notice): New sections.
29092         * modules/strtok_r (Depends-on): Add strpbrk.
29093
29094 2008-11-02  Bruno Haible  <bruno@clisp.org>
29095
29096         Mark 'strdup' obsolete.
29097         * modules/strdup (Status, Notice): New sections.
29098         * modules/findprog (Depends-on): Add strdup.
29099         * modules/getaddrinfo (Depends-on): Likewise.
29100         * modules/localename (Depends-on): Likewise.
29101         * modules/relocatable-lib (Depends-on): Likewise.
29102         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
29103         * modules/relocatable-prog (Depends-on): Likewise.
29104         * modules/trim (Depends-on): Likewise.
29105         * modules/unictype/gen-ctype (Depends-on): Likewise.
29106         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29107
29108 2008-11-02  Bruno Haible  <bruno@clisp.org>
29109
29110         Mark 'strcspn' obsolete.
29111         * modules/strcspn (Status, Notice): New sections.
29112
29113 2008-11-02  Bruno Haible  <bruno@clisp.org>
29114
29115         Mark 'rmdir' obsolete.
29116         * modules/rmdir (Status, Notice): New sections.
29117         * modules/clean-temp (Depends-on): Add rmdir.
29118         * modules/openat (Depends-on): Likewise.
29119
29120 2008-11-02  Bruno Haible  <bruno@clisp.org>
29121
29122         Mark 'raise' obsolete.
29123         * modules/raise (Status, Notice): New sections.
29124         (Include): Specify <signal.h>.
29125         * modules/stdio (Depends-on): Add raise.
29126         * modules/write (Depends-on): Likewise.
29127
29128 2008-11-02  Bruno Haible  <bruno@clisp.org>
29129
29130         Mark 'memset' obsolete.
29131         * modules/memset (Status, Notice): New sections.
29132
29133 2008-11-02  Bruno Haible  <bruno@clisp.org>
29134
29135         Mark 'memmove' obsolete.
29136         * modules/memmove (Status, Notice): New sections.
29137         * modules/argp (Depends-on): Add memmove.
29138         * modules/argz (Depends-on): Likewise.
29139         * modules/canonicalize (Depends-on): Likewise.
29140         * modules/canonicalize-lgpl (Depends-on): Likewise.
29141         * modules/fts (Depends-on): Likewise.
29142         * modules/getcwd (Depends-on): Likewise.
29143         * modules/human (Depends-on): Likewise.
29144         * modules/regex (Depends-on): Likewise.
29145         * modules/striconveh (Depends-on): Likewise.
29146         * modules/trim (Depends-on): Likewise.
29147         * modules/unistr/u8-move (Depends-on): Likewise.
29148         * modules/unistr/u16-move (Depends-on): Likewise.
29149         * modules/unistr/u32-move (Depends-on): Likewise.
29150
29151 2008-11-02  Bruno Haible  <bruno@clisp.org>
29152
29153         Mark 'memcpy' obsolete.
29154         * modules/memcpy (Status, Notice): New sections.
29155
29156 2008-11-02  Bruno Haible  <bruno@clisp.org>
29157
29158         Mark 'memcmp' obsolete.
29159         * modules/memcmp (Status, Notice): New sections.
29160         * modules/argmatch (Depends-on): Add memchr.
29161         * modules/backupfile (Depends-on): Likewise.
29162         * modules/c-strcasestr (Depends-on): Likewise.
29163         * modules/crypto/des (Depends-on): Likewise.
29164         * modules/csharpcomp (Depends-on): Likewise.
29165         * modules/fnmatch (Depends-on): Likewise.
29166         * modules/git-merge-changelog (Depends-on): Likewise.
29167         * modules/isnand (Depends-on): Likewise.
29168         * modules/isnand-nolibm (Depends-on): Likewise.
29169         * modules/isnanf (Depends-on): Likewise.
29170         * modules/isnanf-nolibm (Depends-on): Likewise.
29171         * modules/isnanl (Depends-on): Likewise.
29172         * modules/isnanl-nolibm (Depends-on): Likewise.
29173         * modules/mbchar (Depends-on): Likewise.
29174         * modules/memcoll (Depends-on): Likewise.
29175         * modules/quotearg (Depends-on): Likewise.
29176         * modules/regex (Depends-on): Likewise.
29177         * modules/relocatable-prog (Depends-on): Likewise.
29178         * modules/same (Depends-on): Likewise.
29179         * modules/signbit (Depends-on): Likewise.
29180         * modules/strcasestr-simple (Depends-on): Likewise.
29181         * modules/unictype/gen-ctype (Depends-on): Likewise.
29182         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
29183         * modules/uniname/uniname (Depends-on): Likewise.
29184         * modules/unistr/u8-cmp (Depends-on): Likewise.
29185
29186 2008-11-02  Bruno Haible  <bruno@clisp.org>
29187
29188         Mark 'memchr' obsolete.
29189         * modules/memchr (Status, Notice): New sections.
29190         * modules/argp (Depends-on): Add memchr.
29191         * modules/base64 (Depends-on): Likewise.
29192         * modules/c-strcasestr (Depends-on): Likewise.
29193         * modules/chdir-long (Depends-on): Likewise.
29194         * modules/fnmatch (Depends-on): Likewise.
29195         * modules/getsubopt (Depends-on): Likewise.
29196         * modules/git-merge-changelog (Depends-on): Likewise.
29197         * modules/glob (Depends-on): Likewise.
29198         * modules/strcasestr-simple (Depends-on): Likewise.
29199         * modules/strnlen (Depends-on): Likewise.
29200
29201 2008-11-02  Bruno Haible  <bruno@clisp.org>
29202
29203         Mark 'atexit' obsolete.
29204         * modules/atexit (Status, Notice): New sections.
29205         * modules/chdir-long (Depends-on): Add atexit.
29206         * modules/wait-process (Depends-on): Likewise.
29207
29208 2008-11-02  Bruno Haible  <bruno@clisp.org>
29209
29210         * gnulib-tool: New option --with-obsolete.
29211         (func_usage): Document it.
29212         (func_modules_transitive_closure): Drop obsolete dependencies if
29213         incobsolete is not true.
29214         (func_import): Read and save the incobsolete variable to the cache.
29215
29216 2008-11-02  Bruno Haible  <bruno@clisp.org>
29217
29218         * modules/TEMPLATE-EXTENDED: New field 'Status'.
29219         * gnulib-tool: New option --extract-status.
29220         (func_usage): Document it.
29221         (sed_extract_prog): Recognize it.
29222         (func_get_status): New function.
29223
29224 2008-10-30  Simon Josefsson  <simon@josefsson.org>
29225
29226         * modules/sockets (License): Change from LGPL to LGPLv2+.
29227
29228 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29229
29230         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
29231
29232 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29233
29234         * MODULES.html.sh (Support for systems lacking POSIX:2001):
29235         Mention times and sys_times.
29236         * modules/sys_times, modules/sys_times-tests: New modules.
29237         * modules/times, modules/times-tests: Likewise
29238         * m4/sys_times_h.m4: New file.
29239         * lib/sys_times.in.h: Likewise
29240         * lib/times.c: Likewise.
29241         * tests/test-sys_times.c: Likewise.
29242         * tests/test-times.c: Likewise.
29243         * doc/posix-headers/sys_times.texi: Update.
29244         * doc/posix-functions/times.texi: Update.
29245
29246 2008-10-28  Jim Meyering  <meyering@redhat.com>
29247
29248         * modules/tempname (Depends-on): Add lstat.
29249
29250         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
29251
29252 2008-10-28  Simon Josefsson  <simon@josefsson.org>
29253
29254         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
29255         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
29256         using idiom used elsewhere in gnulib.
29257
29258 2008-10-27  Jim Meyering  <meyering@redhat.com>
29259
29260         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
29261
29262 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29263
29264         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
29265         TESTS_ENVIRONMENT, for shell scripts that needs to call built
29266         programs.
29267         * tests/test-argp-2.sh: Use $EXEEXT when needed.
29268
29269 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29270
29271         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
29272
29273 2008-10-27  Bruno Haible  <bruno@clisp.org>
29274
29275         * tests/test-lstat.c: Include <stdio.h>.
29276
29277 2008-10-27  Simon Josefsson  <simon@josefsson.org>
29278
29279         * modules/lstat-tests: New module.
29280         * tests/test-lstat.c: New file.
29281
29282 2008-10-26  Jim Meyering  <meyering@redhat.com>
29283
29284         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
29285
29286 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29287             Bruno Haible  <bruno@clisp.org>
29288
29289         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
29290         * modules/configmake (Include): Add a note that the include must come
29291         after all system headers.
29292         * lib/javaversion.c: Include configmake.h after all other includes.
29293
29294 2008-10-26  Bruno Haible  <bruno@clisp.org>
29295
29296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
29297         HAVE_STRUCT_RANDOM_DATA to 1.
29298         (gl_STDLIB_H): Simplify.
29299
29300 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29301
29302         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
29303         substitute HAVE_STRUCT_RANDOM_DATA.
29304         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
29305         random_data.
29306         * modules/stdlib (Makefile.am): Substitute
29307         HAVE_STRUCT_RANDOM_DATA.
29308
29309 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29310
29311         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
29312         * doc/gnulib-intro.texi (Copyright): Likewise.
29313
29314 2008-10-26  Simon Josefsson  <simon@josefsson.org>
29315
29316         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
29317         findings.
29318
29319 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
29320             Bruno Haible  <bruno@clisp.org>
29321
29322         * lib/unistd.in.h: Include <winsock2.h>.
29323         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
29324         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
29325         Provide dummy declarations.
29326         (gethostname): Override.
29327         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
29328         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
29329         gl_PREREQ_SYS_H_WINSOCK2.
29330         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
29331         * doc/posix-functions/gethostname.texi: More details.
29332
29333 2008-10-25  Bruno Haible  <bruno@clisp.org>
29334
29335         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29336         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
29337         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
29338
29339         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
29340         here ...
29341         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
29342         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
29343         gl_UNISTD_H_DEFAULTS.
29344
29345 2008-10-25  Eric Blake  <ebb9@byu.net>
29346
29347         signbit: avoid spurious compiler failure
29348         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
29349         declarations inside function.
29350
29351 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29352             Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
29355         * modules/random_r (Depends-on): Add stdint.
29356
29357 2008-10-24  Bruno Haible  <bruno@clisp.org>
29358
29359         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
29360         Eggert.
29361         * modules/strerror (License): Likewise.
29362
29363 2008-10-24  Jim Meyering  <meyering@redhat.com>
29364
29365         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
29366         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
29367
29368 2008-10-24  Eric Blake  <ebb9@byu.net>
29369
29370         getgroups: fix compilation when getgroups is available
29371         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
29372         but with <config.h> override of getgroups disabled.
29373
29374 2008-10-24  Simon Josefsson  <simon@josefsson.org>
29375
29376         * doc/gnulib.texi (Header files): Add note about C++ problems.
29377         Explained by Bruno Haible <bruno@clisp.org>.
29378
29379 2008-10-23  Bruno Haible  <bruno@clisp.org>
29380
29381         Define a dummy SA_NODEFER macro on Interix.
29382         * lib/signal.in.h (SA_NODEFER): Define fallback.
29383         Reported by Aleksey Cheusov <cheusov@tut.by> via
29384         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
29385
29386 2008-10-23  Bruno Haible  <bruno@clisp.org>
29387
29388         * modules/freadahead (License): Change to LGPLv2+.
29389         Suggested by Simon Josefsson.
29390
29391 2008-10-23  Jim Meyering  <meyering@redhat.com>
29392
29393         random_r: new module
29394         * modules/random_r: New file.
29395         * m4/random_r.m4: New file.
29396         * lib/random_r.c: New file, from glibc.
29397         * modules/random_r-tests: New file.
29398         * tests/test-random_r.c: New file.
29399         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
29400          Declare.
29401         (RAND_MAX): Define.
29402         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
29403         * modules/stdlib: Substitute them, too.
29404         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
29405         * doc/glibc-functions/initstate_r.texi: Mention the new module.
29406         * doc/glibc-functions/random_r.texi: Likewise.
29407         * doc/glibc-functions/setstate_r.texi: Likewise.
29408         * doc/glibc-functions/srandom_r.texi: Likewise.
29409         * config/srclist.txt: Mention it.
29410
29411 2008-10-23  David Lutterkort  <lutter@redhat.com>
29412
29413         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
29414         link requirement
29415
29416 2008-10-23  Jim Meyering  <meyering@redhat.com>
29417
29418         selinux-h: mark parameters of stub functions as intentionally unused
29419         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
29420         * lib/se-context.in.h: Likewise.
29421
29422 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29423
29424         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
29425
29426 2008-10-22  Simon Josefsson  <simon@josefsson.org>
29427
29428         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
29429
29430 2008-10-22  Eric Blake  <ebb9@byu.net>
29431
29432         glthread/thread: avoid compiler warning
29433         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
29434         Add unreachable abort to silence compiler.
29435
29436 2008-10-22  Eric Blake  <ebb9@byu.net>
29437
29438         netdb: also supply struct addrinfo for cygwin 1.5.x
29439         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
29440         older cygwin.
29441         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
29442         cygwin.
29443         * doc/posix-headers/netdb.texi (netdb.h): Document this.
29444
29445 2008-10-22  Bruno Haible  <bruno@clisp.org>
29446
29447         * users.txt: Update entry about pspp.
29448
29449 2008-10-21  Bruno Haible  <bruno@clisp.org>
29450
29451         Simplification.
29452         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
29453         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
29454
29455         Simplification.
29456         * lib/ioctl.c (ioctl): Don't undefine.
29457         * lib/socket.c (socket): Don't undefine.
29458
29459         Remove unused module indicator macros.
29460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
29461         GNULIB_$1 as a C macro.
29462
29463         * doc/posix-functions/close.texi: Undo last change.
29464         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
29465         Windows platforms.
29466
29467 2008-10-21  Bruno Haible  <bruno@clisp.org>
29468
29469         Add gethostname() declaration to <unistd.h>.
29470         * lib/unistd.in.h (gethostname): New declaration.
29471         * lib/gethostname.c: Include <unistd.h>.
29472         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
29473         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
29474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
29475         and HAVE_GETHOSTNAME.
29476         * modules/gethostname (Depends-on): Add unistd.
29477         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29478         (Include): Specify <unistd.h>.
29479         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
29480         HAVE_GETHOSTNAME.
29481         * tests/test-gethostname.c: Include <unistd.h> first.
29482
29483 2008-10-21  Bruno Haible  <bruno@clisp.org>
29484
29485         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
29486         * modules/select-tests (Depends-on): Likewise.
29487         Reported by Simon Josefsson.
29488
29489 2008-10-21  Simon Josefsson  <simon@josefsson.org>
29490
29491         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
29492         * lib/accept.c: New file, based on winsock.c.
29493         * lib/bind.c: New file, based on winsock.c.
29494         * lib/connect.c: New file, based on winsock.c.
29495         * lib/getpeername.c: New file, based on winsock.c.
29496         * lib/getsockname.c: New file, based on winsock.c.
29497         * lib/getsockopt.c: New file, based on winsock.c.
29498         * lib/ioctl.c: New file, based on winsock.c.
29499         * lib/listen.c: New file, based on winsock.c.
29500         * lib/recv.c: New file, based on winsock.c.
29501         * lib/recvfrom.c: New file, based on winsock.c.
29502         * lib/send.c: New file, based on winsock.c.
29503         * lib/sendto.c: New file, based on winsock.c.
29504         * lib/setsockopt.c: New file, based on winsock.c.
29505         * lib/shutdown.c: New file, based on winsock.c.
29506         * lib/socket.c: New file, based on winsock.c.
29507         * lib/w32sock.h: New file, based on winsock.c.
29508         * lib/winsock.c: Remove file.
29509         * modules/accept: Likewise.
29510         * modules/bind: Likewise.
29511         * modules/connect: Likewise.
29512         * modules/getpeername: Likewise.
29513         * modules/getsockname: Likewise.
29514         * modules/getsockopt: Likewise.
29515         * modules/ioctl: Likewise.
29516         * modules/listen: Likewise.
29517         * modules/recv: Likewise.
29518         * modules/recvfrom: Likewise.
29519         * modules/send: Likewise.
29520         * modules/sendto: Likewise.
29521         * modules/setsockopt: Likewise.
29522         * modules/shutdown: Likewise.
29523         * modules/socket: Use socket.c instead of winsock.c.
29524         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
29525         * doc/posix-functions/accept.texi: Doc fix.
29526         * doc/posix-functions/bind.texi: Doc fix.
29527         * doc/posix-functions/close.texi: Doc fix.
29528         * doc/posix-functions/connect.texi: Doc fix.
29529         * doc/posix-functions/getpeername.texi: Doc fix.
29530         * doc/posix-functions/getsockname.texi: Doc fix.
29531         * doc/posix-functions/getsockopt.texi: Doc fix.
29532         * doc/posix-functions/ioctl.texi: Doc fix.
29533         * doc/posix-functions/listen.texi: Doc fix.
29534         * doc/posix-functions/recv.texi: Doc fix.
29535         * doc/posix-functions/recvfrom.texi: Doc fix.
29536         * doc/posix-functions/send.texi: Doc fix.
29537         * doc/posix-functions/sendto.texi: Doc fix.
29538         * doc/posix-functions/setsockopt.texi: Doc fix.
29539         * doc/posix-functions/shutdown.texi: Doc fix.
29540         * doc/posix-functions/socket.texi: Doc fix.
29541
29542 2008-10-20  Bruno Haible  <bruno@clisp.org>
29543
29544         Take into account the role of SIGABRT_COMPAT on Windows 2008.
29545         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
29546         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
29547         as an alias for SIGABRT.
29548         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
29549         (sigaction): Map it to SIGABRT.
29550         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
29551
29552 2008-10-20  Bruno Haible  <bruno@clisp.org>
29553
29554         * lib/fts.c: Don't include lstat.h.
29555         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
29556
29557         Move the lstat() declaration to <sys/stat.h>.
29558         * lib/lstat.h: Remove file.
29559         * lib/sys_stat.in.h: Add special invocation convention.
29560         (lstat): New declaration.
29561         * lib/lstat.c (orig_lstat): New function.
29562         (rpl_lstat): Use orig_lstat instead of lstat.
29563         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
29564         AC_C_INLINE. Set REPLACE_LSTAT.
29565         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
29566         and REPLACE_LSTAT.
29567         * modules/lstat (Files): Remove lib/lstat.h.
29568         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29569         (Include): Specify <sys/stat.h> instead of lstat.h.
29570         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
29571         REPLACE_LSTAT.
29572         * NEWS: Mention the change.
29573
29574 2008-10-20  Bruno Haible  <bruno@clisp.org>
29575
29576         * modules/posix_spawn-tests: New file.
29577         * tests/test-posix_spawn3.c: New file.
29578
29579 2008-10-20  Bruno Haible  <bruno@clisp.org>
29580
29581         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
29582         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29583         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
29584         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
29585         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
29586
29587 2008-10-20  Bruno Haible  <bruno@clisp.org>
29588
29589         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
29590         of posix_spawn on AIX 5.3.
29591
29592 2008-10-20  Bruno Haible  <bruno@clisp.org>
29593
29594         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
29595
29596 2008-10-20  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
29599         of AC_LANG_PROGRAM.
29600
29601 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29602
29603         * lib/netdb.in.h: Don't define GNU specific constants until they
29604         are supported or needed.  Reported by Bruno Haible
29605         <bruno@clisp.org>.
29606
29607 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29608
29609         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
29610
29611 2008-10-20  Simon Josefsson  <simon@josefsson.org>
29612
29613         * lib/getaddrinfo.h: Remove file.
29614         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
29615         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
29616         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
29617         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
29618         * modules/netdb: Substitute GNULIB_GETADDRINFO.
29619         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
29620         * tests/test-getaddrinfo.c: Likewise.
29621         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
29622         * NEWS: Mention change.
29623
29624 2008-10-19  Bruno Haible  <bruno@clisp.org>
29625
29626         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
29627
29628 2008-10-19  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/wait-process.c: Include simply <sys/wait.h>.
29631         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
29632         WIFSTOPPED): Remove fallback definitions.
29633         * modules/wait-process (Depends-on): Add sys_wait.
29634
29635         New module 'sys_wait'.
29636         * modules/sys_wait: New file.
29637         * lib/sys_wait.in.h: New file, partially copied from
29638         lib/wait-process.c.
29639         * m4/sys_wait_h.m4: New file.
29640         * doc/posix-headers/sys_wait.texi: Mention the new module.
29641
29642 2008-10-19  Bruno Haible  <bruno@clisp.org>
29643
29644         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
29645
29646 2008-10-19  Bruno Haible  <bruno@clisp.org>
29647
29648         Assume that waitpid() fills an 'int' status, not a 'union wait'.
29649         * lib/wait-process.c (WAIT_T): Remove type.
29650         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
29651         (wait_subprocess): Update.
29652
29653 2008-10-19  Bruno Haible  <bruno@clisp.org>
29654
29655         New module 'atoll'.
29656         * modules/atoll: New file.
29657         * lib/stdlib.in.h (atoll): New declaration.
29658         * lib/atoll.c: New file, from glibc with modifications.
29659         * m4/atoll.m4: New file.
29660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
29661         HAVE_ATOLL.
29662         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
29663         * doc/posix-functions/atoll.texi: Mention the new module.
29664
29665 2008-10-19  Bruno Haible  <bruno@clisp.org>
29666
29667         Add strtoull() declaration to <stdlib.h>.
29668         * lib/stdlib.in.h (strtoull): New declaration.
29669         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29670         Set HAVE_STRTOULL.
29671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
29672         HAVE_STRTOULL.
29673         * modules/strtoull (Depends-on): Add stdlib.
29674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29675         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
29676         HAVE_STRTOULL.
29677
29678 2008-10-19  Bruno Haible  <bruno@clisp.org>
29679
29680         Add strtoll() declaration to <stdlib.h>.
29681         * lib/stdlib.in.h (strtoll): New declaration.
29682         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
29683         Set HAVE_STRTOLL.
29684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
29685         HAVE_STRTOLL.
29686         * modules/strtoll (Depends-on): Add stdlib.
29687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29688         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
29689
29690 2008-10-19  Bruno Haible  <bruno@clisp.org>
29691
29692         * modules/bcopy (Depends-on): Add strings.
29693         (Include): Specify <strings.h>.
29694
29695 2008-10-19  Bruno Haible  <bruno@clisp.org>
29696
29697         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
29698
29699 2008-10-19  Bruno Haible  <bruno@clisp.org>
29700
29701         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
29702         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
29703         mingw.
29704
29705 2008-10-19  Bruno Haible  <bruno@clisp.org>
29706
29707         * lib/atanl.c: Don't include isnanl.h.
29708         * lib/cosl.c: Likewise.
29709         * lib/ldexpl.c: Likewise.
29710         * lib/logl.c: Likewise.
29711         * lib/sinl.c: Likewise.
29712         * lib/sqrtl.c: Likewise.
29713         * lib/tanl.c: Likewise.
29714
29715         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
29716         * lib/isnanf.h: Remove file.
29717         * lib/isnand.h: Remove file.
29718         * lib/isnanl.h: Remove file.
29719         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
29720         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
29721         macros.
29722         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
29723         HAVE_ISNANF, don't define it as a C macro.
29724         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
29725         HAVE_ISNAND, don't define it as a C macro.
29726         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
29727         HAVE_ISNANL, don't define it as a C macro.
29728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
29729         HAVE_ISNAN[FDL].
29730         * modules/isnanf (Files): Remove lib/isnanf.h.
29731         (Depends-on): Add math.
29732         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29733         (Include): Specify <math.h> instead of isnanf.h.
29734         * modules/isnand (Files): Remove lib/isnand.h.
29735         (Depends-on): Add math.
29736         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29737         (Include): Specify <math.h> instead of isnand.h.
29738         * modules/isnanl (Files): Remove lib/isnanl.h.
29739         (Depends-on): Add math.
29740         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
29741         (Include): Specify <math.h> instead of isnanl.h.
29742         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
29743         HAVE_ISNAN[FDL].
29744         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
29745         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
29746         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
29747         * NEWS: Mention the change.
29748
29749 2008-10-18  Bruno Haible  <bruno@clisp.org>
29750
29751         Add getusershell(), setusershell(), endusershell() declarations to
29752         <unistd.h>.
29753         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
29754         declarations.
29755         * lib/getusershell.c: Include unistd.h.
29756         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
29757         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29758         HAVE_GETUSERSHELL.
29759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
29760         and HAVE_GETUSERSHELL.
29761         * modules/getusershell (Depends-on): Add unistd, extensions.
29762         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29763         (Include): Specify <unistd.h>.
29764         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
29765         HAVE_GETUSERSHELL.
29766
29767 2008-10-18  Bruno Haible  <bruno@clisp.org>
29768
29769         Add a getloadavg() declaration to <stdlib.h>.
29770         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
29771         getloadavg declaration.
29772         (getloadavg): New declaration.
29773         * lib/getloadavg.c: Include <stdlib.h> first.
29774         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
29775         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
29776         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
29777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
29778         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29779         * modules/getloadavg (Depends-on): Add stdlib, extensions.
29780         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29781         (Include): Specify <stdlib.h>.
29782         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
29783         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
29784
29785 2008-10-18  Bruno Haible  <bruno@clisp.org>
29786
29787         * lib/dirchownmod.c: Don't include lchmod.h.
29788
29789         Move the lchmod() declaration to <sys/stat.h>.
29790         * lib/lchmod.h: Remove file.
29791         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
29792         (lchmod): New declaration, moved here from lib/lchown.h.
29793         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
29794         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
29795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
29796         and HAVE_LCHMOD.
29797         * modules/lchmod (Files): Remove lib/lchmod.h.
29798         (Depends-on): Add sys_stat, extensions.
29799         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
29800         (Include): Specify <sys/stat.h> instead of lchmod.h.
29801         * modules/sys_stat (Depends-on): Add link-warning.
29802         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
29803         definition of GL_LINK_WARNING.
29804         * NEWS: Mention the change.
29805
29806 2008-10-18  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/fchdir.c: Don't include dirfd.h.
29809         * lib/fts.c: Likewise.
29810         * lib/getcwd.c: Likewise.
29811         * lib/glob.c: Likewise.
29812
29813         Move the dirfd() declaration to <dirent.h>.
29814         * lib/dirfd.h: Remove file.
29815         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
29816         (dirfd): New declaration.
29817         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
29818         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
29819         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
29820         HAVE_DECL_DIRFD.
29821         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
29822         HAVE_DECL_DIRFD.
29823         * modules/dirfd (Files): Remove lib/dirfd.h.
29824         (Depends-on): Add dirent, extensions.
29825         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
29826         (Include): Specify <dirent.h> instead of dirfd.h.
29827         * modules/dirent (Depends-on): Add link-warning.
29828         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
29829         definition of GL_LINK_WARNING.
29830         * NEWS: Mention the change.
29831
29832 2008-10-18  Bruno Haible  <bruno@clisp.org>
29833
29834         Move the euidaccess() declaration to <unistd.h>.
29835         * lib/euidaccess.h: Remove file.
29836         * lib/unistd.in.h (euidaccess): New declaration.
29837         * lib/euidaccess.c: Don't include euidaccess.h.
29838         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
29839         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
29840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
29841         and HAVE_EUIDACCESS.
29842         * modules/euidaccess (Files): Remove lib/euidaccess.h.
29843         (Depends-on): Add unistd.
29844         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29845         (Include): Specify <unistd.h> instead of euidaccess.h.
29846         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
29847         HAVE_EUIDACCESS.
29848         * NEWS: Mention the change.
29849
29850 2008-10-18  Bruno Haible  <bruno@clisp.org>
29851
29852         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
29853
29854         Move the getdomainname() declaration to <unistd.h>.
29855         * lib/getdomainname.h: Remove file.
29856         * lib/unistd.in.h (getdomainname): New declaration.
29857         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
29858         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29859         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
29860         HAVE_GETDOMAINNAME.
29861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29862         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
29863         * modules/getdomainname (Files): Remove lib/getdomainname.h.
29864         (Depends-on): Add unistd, extensions.
29865         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29866         (Includes): Specify <unistd.h> instead of getdomainname.h.
29867         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
29868         HAVE_GETDOMAINNAME.
29869         * NEWS: Mention the change.
29870
29871 2008-10-18  Bruno Haible  <bruno@clisp.org>
29872
29873         * modules/dirent: New file.
29874         * m4/dirent_h.m4: New file.
29875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
29876         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
29877         * modules/fchdir (Files): Remove lib/dirent.in.h.
29878         (Depends-on): Add dirent.
29879         (Makefile.am): Move rules to modules/dirent.
29880         * doc/posix-headers/dirent.texi: Mention the new module.
29881
29882 2008-10-18  Bruno Haible  <bruno@clisp.org>
29883
29884         Avoid -Wunused-parameter warnings in public gnulib header files.
29885         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
29886         macro.
29887         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
29888
29889 2008-10-18  Bruno Haible  <bruno@clisp.org>
29890
29891         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
29892         * doc/glibc-functions/error.texi: Mention the module 'error'.
29893         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
29894         * doc/glibc-functions/getdomainname.texi: Mention the module
29895         'getdomainname'.
29896         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
29897         * doc/glibc-functions/getpagesize.texi: Mention the module
29898         'getpagesize'.
29899         * doc/glibc-functions/getusershell.texi: Mention the module
29900         'getusershell'.
29901         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
29902         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
29903         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
29904         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
29905         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
29906         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
29907         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
29908         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
29909         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
29910         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
29911         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
29912         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
29913         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
29914         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
29915
29916 2008-10-17  Bruno Haible  <bruno@clisp.org>
29917
29918         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
29919         HP-UX and IRIX, use -0.0L.
29920         * tests/test-ceill.c (minus_zero): Likewise.
29921         * tests/test-floorl.c (minus_zero): Likewise.
29922         * tests/test-frexpl.c (minus_zero): Likewise.
29923         * tests/test-isnan.c (minus_zerol): Likewise.
29924         * tests/test-isnanl.h (minus_zero): Likewise.
29925         * tests/test-ldexpl.c (minus_zero): Likewise.
29926         * tests/test-roundl.c (minus_zero): Likewise.
29927         * tests/test-signbit.c (minus_zerol): Likewise.
29928         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
29929         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
29930         * tests/test-truncl.c (minus_zero): Likewise.
29931         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
29932         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
29933         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
29934         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
29935
29936 2008-10-17  Bruno Haible  <bruno@clisp.org>
29937
29938         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
29939         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
29940         that it gets activated only for gcc >= 3.0.
29941         * lib/dirent.in.h: Likewise.
29942         * lib/errno.in.h: Likewise.
29943         * lib/fcntl.in.h: Likewise.
29944         * lib/float.in.h: Likewise.
29945         * lib/iconv.in.h: Likewise.
29946         * lib/inttypes.in.h: Likewise.
29947         * lib/locale.in.h: Likewise.
29948         * lib/math.in.h: Likewise.
29949         * lib/netdb.in.h: Likewise.
29950         * lib/netinet_in.in.h: Likewise.
29951         * lib/search.in.h: Likewise.
29952         * lib/signal.in.h: Likewise.
29953         * lib/spawn.in.h: Likewise.
29954         * lib/stdarg.in.h: Likewise.
29955         * lib/stdint.in.h: Likewise.
29956         * lib/stdio.in.h: Likewise.
29957         * lib/stdlib.in.h: Likewise.
29958         * lib/string.in.h: Likewise.
29959         * lib/strings.in.h: Likewise.
29960         * lib/sys_file.in.h: Likewise.
29961         * lib/sys_ioctl.in.h: Likewise.
29962         * lib/sys_select.in.h: Likewise.
29963         * lib/sys_socket.in.h: Likewise.
29964         * lib/sys_stat.in.h: Likewise.
29965         * lib/sys_time.in.h: Likewise.
29966         * lib/sysexits.in.h: Likewise.
29967         * lib/time.in.h: Likewise.
29968         * lib/unistd.in.h: Likewise.
29969         * lib/wchar.in.h: Likewise.
29970         * lib/wctype.in.h: Likewise.
29971         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29972
29973 2008-10-17  Jim Meyering  <meyering@redhat.com>
29974
29975         ignore-value: don't depend on inline module
29976         * modules/ignore-value (Depends-on): Remove 'inline'.
29977         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
29978         Suggestion from Bruno Haible.
29979
29980 2008-10-17  Bruno Haible  <bruno@clisp.org>
29981
29982         New implementation of condition variables for Win32.
29983         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
29984         (gl_linked_waitqueue_t): New type.
29985         (gl_cond_t): Use it.
29986         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
29987         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
29988         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
29989         (glthread_cond_init_func, glthread_cond_wait_func,
29990         glthread_cond_timedwait_func, glthread_cond_signal_func,
29991         glthread_cond_broadcast_func, glthread_cond_destroy_func):
29992         Reimplemented on the basis of gl_linked_waitqueue_t.
29993         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
29994         gl_waitqueue_t.
29995         (gl_rwlock_t): Update.
29996         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
29997
29998 2008-10-17  Simon Josefsson  <simon@josefsson.org>
29999
30000         * modules/recvfrom (Depends-on): Add dependency on getpeername.
30001         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30002
30003 2008-10-17  Jim Meyering  <meyering@redhat.com>
30004
30005         ignore-value: new module
30006         * modules/ignore-value: New file.
30007         * lib/ignore-value.h: New file.
30008         * MODULES.html.sh (Compiler warning management): New section,
30009         just for this module.  More to come.
30010
30011 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30012
30013         open-safer.c: avoid 'signed and unsigned in conditional...' warning
30014         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
30015         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
30016
30017 2008-10-16  Jim Meyering  <meyering@redhat.com>
30018
30019         openat-die.c: avoid 'no previous prototype' warning
30020         * lib/openat-die.c: Include "openat.h".
30021         Reported by Reuben Thomas <rrt@sc3d.org>.
30022
30023 2008-10-16  Simon Josefsson  <simon@josefsson.org>
30024
30025         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
30026         * lib/netdb.in.h: Fix typo.
30027         Reported by Bruno Haible  <bruno@clisp.org>
30028
30029         * lib/netdb.in.h: Include sys/socket.h for platforms without
30030         netdb.h, to get structures like hostent on MinGW.
30031         * modules/netdb (Depends-on): Add sys_socket.
30032
30033 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30034
30035         * modules/netdb, modules/netdb-tests: New file.
30036         * m4/netdb_h.m4: New file.
30037         * lib/netdb.in.h: Add, currently just an empty file pending
30038         definitions.
30039         * tests/test-netdb.c: New file.
30040         * doc/posix-headers/netdb.texi: Mention that we replace it if
30041         needed.
30042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30043         netdb.
30044
30045 2008-10-15  Simon Josefsson  <simon@josefsson.org>
30046
30047         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
30048         with code.
30049
30050 2008-10-13  Bruno Haible  <bruno@clisp.org>
30051
30052         * lib/glthread/cond.c (glthread_cond_wait_func,
30053         glthread_cond_timedwait_func): Add a comment.
30054
30055 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30056
30057         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
30058         * tests/test-select.c: Likewise,
30059
30060 2008-10-13  Bruno Haible  <bruno@clisp.org>
30061
30062         * lib/glthread/cond.c (glthread_cond_wait_func,
30063         glthread_cond_timedwait_func): Fix variable name.
30064         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30065
30066 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
30067
30068         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
30069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
30070         struct sockaddr.sa_len.
30071         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
30072
30073 2008-10-13  Simon Josefsson  <simon@josefsson.org>
30074
30075         * build-aux/pmccabe2html: Add css and css_url parameters.
30076
30077 2008-10-12  Bruno Haible  <bruno@clisp.org>
30078
30079         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
30080         calling aclx_get.
30081         Reported by Rainer Tammer <tammer@tammer.net>.
30082
30083 2008-10-12  Bruno Haible  <bruno@clisp.org>
30084
30085         Use msvcrt aware primitives for creation/termination of Win32 threads.
30086         * lib/glthread/thread.c: Include <process.h>.
30087         (glthread_create_func): Use _beginthreadex instead of CreateThread.
30088         (wrapper_func): Update signature.
30089         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
30090
30091 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30092             Bruno Haible  <bruno@clisp.org>
30093
30094         Provide a Win32 implementation of the 'cond' module.
30095         * lib/glthread/cond.h [USE_WIN32]: New implementation.
30096         * lib/glthread/cond.c (glthread_cond_init_func,
30097         glthread_cond_wait_func, glthread_cond_timedwait_func,
30098         glthread_cond_signal_func, glthread_cond_broadcast_func,
30099         glthread_cond_destroy_func) [USE_WIN32]: New functions.
30100         * modules/cond (Dependencies): Add gettimeofday.
30101
30102 2008-10-11  Bruno Haible  <bruno@clisp.org>
30103
30104         Make sleep work on older versions of mingw.
30105         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
30106         only whether it exists.
30107         * doc/posix-functions/sleep.texi: Mention the problem with older
30108         versions of mingw.
30109
30110 2008-10-11  Bruno Haible  <bruno@clisp.org>
30111
30112         New module 'shutdown'.
30113         * modules/shutdown: New file.
30114         * lib/sys_socket.in.h (shutdown): New declaration.
30115         * lib/winsock.c (shutdown): New function.
30116         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30117         GNULIB_SHUTDOWN.
30118         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
30119         * doc/posix-functions/shutdown.texi: Document the new module.
30120
30121 2008-10-11  Jim Meyering  <meyering@redhat.com>
30122
30123         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
30124
30125 2008-10-11  Bruno Haible  <bruno@clisp.org>
30126
30127         New module 'fclose'.
30128         * modules/fclose: New file.
30129         * lib/stdio.in.h (fclose): New declaration.
30130         * lib/fclose.c: New file.
30131         * m4/fclose.m4: New file.
30132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
30133         REPLACE_FCLOSE.
30134         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
30135         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
30136         REPLACE_FCLOSE.
30137         * modules/close (Depends-on): fclose.
30138         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
30139
30140 2008-10-11  Bruno Haible  <bruno@clisp.org>
30141
30142         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
30143         set errno and don't call _close.
30144
30145 2008-10-10  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
30148         ACL, not afterwards. Fixes test failure on Cygwin.
30149
30150 2008-10-09  Ben Pfaff  <blp@gnu.org>
30151
30152         * build-aux/announce-gen: Fix gnulib version related part of usage
30153         message.  Die with a useful error message if no tarballs are
30154         found.
30155
30156 2008-10-10  Jim Meyering  <meyering@redhat.com>
30157
30158         bootstrap: use git's --depth=N option only if it's supported
30159         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
30160         recognize the --depth option.  Reported by Pádraig Brady.
30161
30162 2008-10-09  Bruno Haible  <bruno@clisp.org>
30163
30164         New module 'ioctl'.
30165         * modules/ioctl: New file.
30166         * lib/sys_socket.in.h (ioctl): Remove declaration.
30167         * lib/winsock.c: Include <sys/ioctl.h>.
30168         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
30169         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30170         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
30171         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
30172         * doc/posix-functions/ioctl.texi: Mention the new module.
30173
30174 2008-10-09  Bruno Haible  <bruno@clisp.org>
30175
30176         New module 'sys_ioctl'.
30177         * lib/sys_ioctl.in.h: New file.
30178         * m4/sys_ioctl_h.m4: New file.
30179         * modules/sys_ioctl: New file.
30180         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
30181
30182 2008-10-09  Bruno Haible  <bruno@clisp.org>
30183
30184         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
30185         * lib/winsock.c: Include <stdarg.h>.
30186         (rpl_ioctl): Change to second argument 'int' and then varargs.
30187
30188 2008-10-09  Bruno Haible  <bruno@clisp.org>
30189
30190         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
30191         when the sys_socket module is present and the system has <winsock2.h>.
30192
30193 2008-10-09  Bruno Haible  <bruno@clisp.org>
30194
30195         * doc/posix-functions/close.texi: Mention module 'close' instead of
30196         module 'sys_socket'.
30197
30198 2008-10-09  Bruno Haible  <bruno@clisp.org>
30199
30200         * doc/glibc-headers/sys_ioctl.texi: New file.
30201         * doc/gnulib.texi: Include it.
30202
30203 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30204             Bruno Haible  <bruno@clisp.org>
30205
30206         Combine the two replacements of 'close'.
30207         * lib/sys_socket.in.h (close): Define to a reminder to include
30208         <unistd.h>.
30209         (_gl_close_fd_maybe_socket): New declaration.
30210         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
30211         * lib/winsock.c (close): Remove undefinition.
30212         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
30213         needed for the gnulib module 'close'.
30214         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
30215         define to an error symbol or to a warning, if suitable.
30216         * lib/close.c: Include <sys/socket.h>.
30217         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
30218         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
30219         UNISTD_H_HAVE_WINSOCK2_H.
30220         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
30221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30222         UNISTD_H_HAVE_WINSOCK2_H.
30223         * modules/sys_socket (Files): Add m4/unistd_h.m4.
30224         (configure.ac): Set a module indicator.
30225         (Makefile.am): Substitute GNULIB_CLOSE.
30226         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
30227         * modules/poll-tests (Depends-on): Add close.
30228         * modules/select-tests (Depends-on): Likewise.
30229
30230 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30231             Bruno Haible  <bruno@clisp.org>
30232
30233         New module 'close'.
30234         * modules/close: New file.
30235         * lib/unistd.in.h (close): Move declaration out of the
30236         FCHDIR_REPLACEMENT scope.
30237         (_gl_unregister_fd): New declaration.
30238         * lib/close.c: New file.
30239         * lib/fchdir.c (rpl_close): Remove function.
30240         * m4/close.m4: New file.
30241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30242         close.
30243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
30244         REPLACE_CLOSE.
30245         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
30246         REPLACE_CLOSE.
30247         * modules/fchdir (Depends-on): Add close.
30248
30249 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30250             Bruno Haible  <bruno@clisp.org>
30251
30252         * lib/fcntl.in.h (open): Simplify conditionals.
30253         (_gl_register_fd): New declaration.
30254         * lib/fchdir.c (rpl_open): Remove function.
30255         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
30256         also.
30257         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
30258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
30259         open.
30260
30261 2008-10-09  Jim Meyering  <meyering@redhat.com>
30262
30263         GNUmakefile: use the more name-space-friendly "_version"
30264         * top/GNUmakefile (_dummy): Update.
30265         (_version): Rename from "version".
30266
30267 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30268             Bruno Haible  <bruno@clisp.org>
30269
30270         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
30271         rpl_close.
30272         (_gl_register_fd): New function, extracted from rpl_open.
30273         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
30274         (rpl_open, rpl_opendir): Use _gl_register_fd.
30275
30276 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
30277
30278         Fix organization of 'open' replacement.
30279         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
30280         (gl_FUNC_OPEN): Use it.
30281         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
30282
30283 2008-10-08  Bruno Haible  <bruno@clisp.org>
30284
30285         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
30286
30287 2008-10-08  Simon Josefsson  <simon@josefsson.org>
30288
30289         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
30290         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
30291         listen).
30292
30293 2008-10-08  Eric Blake  <ebb9@byu.net>
30294
30295         GNUmakefile: add 'make version' target
30296         * top/GNUmakefile (_curr-ver): Split version update rules...
30297         (version): ...into a target.
30298
30299 2008-10-07  Bruno Haible  <bruno@clisp.org>
30300
30301         Use a more portable replacement expression for -0.0L.
30302         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
30303         instead of -0.0L. Fix m4 quotation.
30304
30305         * tests/test-signbit.c: Include <float.h>.
30306         (minus_zero): New variable.
30307         (test_signbitl): Use minus_zero instead of -zero.
30308         * modules/signbit-tests (Depends-on): Add float.
30309
30310         * tests/test-ceill.c: Include <float.h>.
30311         (zero): Remove variable.
30312         (minus_zero): New variable.
30313         (main): Use minus_zero instead of -zero.
30314         * modules/ceill-tests (Depends-on): Add float.
30315
30316         * tests/test-floorl.c: Include <float.h>.
30317         (zero): Remove variable.
30318         (minus_zero): New variable.
30319         (main): Use minus_zero instead of -zero.
30320         * modules/floorl-tests (Depends-on): Add float.
30321
30322         * tests/test-roundl.c: Include <float.h>.
30323         (zero): Remove variable.
30324         (minus_zero): New variable.
30325         (main): Use minus_zero instead of -zero.
30326         * modules/roundl-tests (Depends-on): Add float.
30327
30328         * tests/test-truncl.c: Include <float.h>.
30329         (zero): Remove variable.
30330         (minus_zero): New variable.
30331         (main): Use minus_zero instead of -zero.
30332         * modules/truncl-tests (Depends-on): Add float.
30333
30334         * tests/test-frexpl.c (zero): Remove variable.
30335         (minus_zero): New variable.
30336         (main): Use minus_zero instead of -zero.
30337         * modules/frexpl-tests (Depends-on): Add float.
30338
30339         * tests/test-isnan.c (zerol): Remove variable.
30340         (minus_zerol): New variable.
30341         (test_long_double): Use minus_zerol instead of -zerol.
30342         * modules/isnan-tests (Depends-on): Add float.
30343
30344         * tests/test-isnanl.h (zero): Remove variable.
30345         (minus_zero): New variable.
30346         (main): Use minus_zero instead of -zero.
30347         * modules/isnanl-nolibm-tests (Depends-on): Add float.
30348         * modules/isnanl-tests (Depends-on): Add float.
30349
30350         * tests/test-ldexpl.c (zero): Remove variable.
30351         (minus_zero): New variable.
30352         (main): Use minus_zero instead of -zero.
30353         * modules/ldexpl-tests (Depends-on): Add float.
30354
30355         * tests/test-snprintf-posix.h (zerol): Remove variable.
30356         (minus_zerol): New variable.
30357         (test_function): Use minus_zerol instead of -zerol.
30358         * modules/snprintf-posix-tests (Depends-on): Add float.
30359         * modules/vsnprintf-posix-tests (Depends-on): Add float.
30360
30361         * tests/test-sprintf-posix.h (zerol): Remove variable.
30362         (minus_zerol): New variable.
30363         (test_function): Use minus_zerol instead of -zerol.
30364         * modules/sprintf-posix-tests (Depends-on): Add float.
30365         * modules/vsprintf-posix-tests (Depends-on): Add float.
30366
30367         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
30368         (minus_zerol): New variable.
30369         (test_function): Use minus_zerol instead of -zerol.
30370         * modules/vasnprintf-posix-tests (Depends-on): Add float.
30371
30372         * tests/test-vasprintf-posix.c (zerol): Remove variable.
30373         (minus_zerol): New variable.
30374         (test_function): Use minus_zerol instead of -zerol.
30375         * modules/vasprintf-posix-tests (Depends-on): Add float.
30376
30377 2008-10-07  Simon Josefsson  <simon@josefsson.org>
30378
30379         * MODULES.html.sh (Support for building documentation): Mention
30380         pmccabe2html.  Sort entries.
30381
30382         Add pmccabe2html module, from gnupdf.
30383         * build-aux/pmccabe.css: New file.
30384         * build-aux/pmccabe2html: New file.
30385         * m4/pmccabe2html.m4: New file.
30386         * modules/pmccabe2html: New file.
30387
30388 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
30389
30390         flock: new module
30391         * MODULES.html.sh: Add to list of modules.
30392         * lib/flock.c: flock implementation for Windows and Unix systems
30393         which have fcntl.
30394         * doc/glibc-functions/flock.texi: Update documentation.
30395         * lib/sys_file.in.h: <sys/file.h> header file.
30396         * m4/flock.m4: M4 macros.
30397         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
30398         * modules/flock: flock module.
30399         * modules/flock-tests: flock tests module.
30400         * modules/sys_file: sys/file.h module.
30401         * tests/test-flock.c: test suite for flock.
30402
30403 2008-10-06  Jim Meyering  <meyering@redhat.com>
30404
30405         bootstrap: check for LT_INIT more portably still ;-)
30406         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
30407         Spotted by Bruno Haible.
30408
30409 2008-10-06  Eric Blake  <ebb9@byu.net>
30410
30411         test-signbit: avoid tripping Irix cc bug on -0.0L
30412         * tests/test-signbit.c (minus_zerol): Delete, and replace with
30413         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
30414         entire testsuite consistent and avoids an Irix 6.2 bug.
30415
30416 2008-10-05  Bruno Haible  <bruno@clisp.org>
30417             Jim Meyering  <jim@meyering.net>
30418
30419         Add an option for ignoring EPIPE during close_stdout.
30420         * lib/closeout.h: Include <stdbool.h>.
30421         (close_stdout_set_ignore_EPIPE): New declaration.
30422         * lib/closeout.c: Include <stdbool.h>.
30423         (ignore_EPIPE): New variable.
30424         (close_stdout_set_ignore_EPIPE): New function.
30425         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
30426         * lib/close-stream.c (close_stream): Mention the possible EPIPE
30427         failure.
30428         * modules/closeout (Depends-on): Add stdbool.
30429
30430 2008-10-05  Bruno Haible  <bruno@clisp.org>
30431
30432         * modules/accept: New file.
30433         * modules/bind: New file.
30434         * modules/connect: New file.
30435         * modules/getpeername: New file.
30436         * modules/getsockname: New file.
30437         * modules/getsockopt: New file.
30438         * modules/listen: New file.
30439         * modules/recv: New file.
30440         * modules/recvfrom: New file.
30441         * modules/send: New file.
30442         * modules/sendto: New file.
30443         * modules/setsockopt: New file.
30444         * modules/socket: New file.
30445         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
30446         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30447         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
30448         the particular module is requested. Add a link warning when the
30449         particular module is not requested.
30450         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
30451         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
30452         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
30453         the particular module is requested.
30454         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
30455         gl_SYS_SOCKET_H_DEFAULTS): New macros.
30456         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
30457         * modules/sys_socket (Depends-on): Add link-warning.
30458         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
30459         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
30460         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
30461         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
30462         GL_LINK_WARNING.
30463         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
30464         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
30465         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
30466         * doc/posix-functions/getpeername.texi: Mention the new module
30467         'getpeername'.
30468         * doc/posix-functions/getsockname.texi: Mention the new module
30469         'getsockname'.
30470         * doc/posix-functions/getsockopt.texi: Mention the new module
30471         'getsockopt'.
30472         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
30473         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
30474         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
30475         * doc/posix-functions/send.texi: Mention the new module 'send'.
30476         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
30477         * doc/posix-functions/setsockopt.texi: Mention the new module
30478         'setsockopt'.
30479         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
30480         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
30481         listen, connect, accept.
30482         * modules/select-tests (Depends-on): Likewise.
30483
30484 2008-10-05  Bruno Haible  <bruno@clisp.org>
30485
30486         * lib/winsock.c (strerror): Remove unused #undef.
30487         (rpl_close): Remove unused local variable.
30488
30489         * modules/sys_socket (Depends-on); Add errno.
30490
30491 2008-10-05  Bruno Haible  <bruno@clisp.org>
30492
30493         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
30494         (select): Add a link warning when the 'select' module is not used.
30495         * modules/sys_select (Depends-on): Add link-warning.
30496         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
30497         Suggested by Paolo Bonzini.
30498
30499 2008-10-05  Jim Meyering  <meyering@redhat.com>
30500
30501         bootstrap: check for LT_INIT more portably
30502         * build-aux/bootstrap: Avoid using grep -E, since it's not
30503         portable enough.  Suggestion from Bruno Haible.
30504
30505 2008-10-05  Bruno Haible  <bruno@clisp.org>
30506
30507         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
30508         as being fixed by gnulib.
30509
30510 2008-10-05  Bruno Haible  <bruno@clisp.org>
30511
30512         * modules/select-tests: New file, mostly copied from
30513         modules/sys_select-tests.
30514         * tests/test-select.c: New file, mostly copied from
30515         tests/test-sys_select.c.
30516         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
30517         * modules/sys_select-tests (Depends-on): Remove all dependencies.
30518         (Makefile.am): Remove test_sys_select_LDADD.
30519
30520         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
30521         to an undefined symbol, for an error message.
30522         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
30523         (gl_SYS_SELECT_H_DEFAULTS): New macro.
30524         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
30525         winsock-select.c here.
30526         * modules/sys_select (Files): Remove lib/winsock-select.c.
30527         (Depends-on): Remove alloca.
30528         (Makefile.am): Substitute GNULIB_SELECT.
30529         * modules/select: New file.
30530         * doc/posix-functions/select.texi: Update.
30531
30532 2008-10-05  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
30535         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
30536         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
30537         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
30538         getdtablesize.
30539         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
30540         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
30541
30542 2008-10-05  Bruno Haible  <bruno@clisp.org>
30543
30544         * modules/getdtablesize-tests: New file.
30545         * tests/test-getdtablesize.c: New file.
30546
30547         New module 'getdtablesize'.
30548         * lib/unistd.in.h (getdtablesize): New declaration.
30549         * lib/getdtablesize.c: New file.
30550         * m4/getdtablesize.m4: New file.
30551         * modules/getdtablesize: New file.
30552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30553         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
30554         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
30555         HAVE_GETDTABLESIZE.
30556         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
30557
30558 2008-10-05  Bruno Haible  <bruno@clisp.org>
30559
30560         * modules/sched (Makefile.am): Fix typo.
30561         Reported by Simon Josefsson.
30562
30563 2008-10-05  Jim Meyering  <meyering@redhat.com>
30564
30565         bootstrap: check for LT_INIT, too
30566         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
30567         are deprecated.  Suggestion from Ralf Wildenhues.
30568
30569 2008-10-05  Bruno Haible  <bruno@clisp.org>
30570
30571         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
30572         overriding them by ours.
30573         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
30574
30575 2008-10-05  Jim Meyering  <meyering@redhat.com>
30576
30577         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
30578         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
30579         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
30580
30581 2008-10-04  Bruno Haible  <bruno@clisp.org>
30582
30583         * modules/dup2 (License): Change to LGPLv2+.
30584         * modules/sleep (License): Likewise.
30585         * modules/perror (License): Likewise.
30586         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
30587         Blake.
30588         * modules/signal (License): Likewise.
30589         * modules/sigprocmask (License): Likewise.
30590         * modules/raise (License): Change to LGPLv2+, with approval by Jim
30591         Meyering.
30592
30593 2008-10-04  Bruno Haible  <bruno@clisp.org>
30594
30595         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
30596         Reported by Rainer Tammer <tammer@tammer.net>.
30597
30598 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
30599             Bruno Haible  <bruno@clisp.org>
30600
30601         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
30602         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
30603         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
30604
30605 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
30606
30607         filevercmp: new module
30608         * lib/filevercmp.h: New function filevercmp comparing version strings.
30609         * lib/filevercmp.c: Implementation of filevercmp function.
30610         * modules/filevercmp: Module metadata.
30611         * tests/test-filevercmp.c: Unit test for new module.
30612         * modules/filevercmp-tests: Unit test metadata.
30613         * MODULES.html.sh: Add filevercmp module.
30614
30615 2008-10-03  Bruno Haible  <bruno@clisp.org>
30616
30617         * lib/c-ctype.h: Add comment.
30618         Reported by Jim Meyering.
30619
30620 2008-10-02  Bruno Haible  <bruno@clisp.org>
30621
30622         * modules/posix_spawn-internal (Depends-on): Add 'open'.
30623
30624 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30625
30626         * build-aux/bootstrap: Allow renaming bootstrap, and change the
30627         name of bootstrap.conf accordingly.
30628
30629 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30630
30631         * build-aux/bootstrap: Install git-merge-changelog configuration
30632         items into .gitconfig if needed.
30633
30634 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
30635
30636         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
30637         git repository, and initialize/update it accordingly.
30638
30639 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
30640
30641         * modules/fsync-tests: New file.
30642         * tests/test-fsync.c: New file.
30643
30644         New module 'fsync'.
30645         * lib/fsync.c: New file.
30646         * m4/fsync.m4: New file.
30647         * modules/fsync: New file.
30648         * lib/unistd.in.h (fsync): New declaration.
30649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
30650         GNULIB_FSYNC and HAVE_FSYNC.
30651         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
30652         * MODULES.html.sh (posix_functions): Add fsync.
30653         * doc/posix-functions/fsync.texi: Mention the new module.
30654
30655 2008-10-02  Jim Meyering  <meyering@redhat.com>
30656
30657         fts.c: sync with similar code from coreutils' remove.c
30658         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
30659         Guard also with "#if defined __linux__", since for now at least,
30660         this code is Linux-kernel-specific.
30661
30662 2008-10-02  Jim Meyering  <meyering@redhat.com>
30663
30664         fts: bug fixes
30665         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
30666         Include <sys/vfs.h>, not <sys/statfs.h>.
30667
30668         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
30669         Include <sys/vfs.h>, not <sys/statfs.h>.
30670
30671 2008-10-01  Bruno Haible  <bruno@clisp.org>
30672
30673         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
30674         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
30675         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
30676         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
30677         * doc/posix-functions/posix_spawnp.texi: Likewise.
30678         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
30679         whether posix_spawn actually works.
30680         * m4/pipe.m4 (gl_PIPE): Likewise.
30681         * modules/execute (Files): Add m4/posix_spawn.m4.
30682         * modules/pipe (Files): Add m4/posix_spawn.m4.
30683         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
30684
30685 2008-10-01  Jim Meyering  <meyering@redhat.com>
30686
30687         remove trailing spaces
30688         * NEWS: Likewise.
30689         * lib/poll.c (poll): Likewise.
30690         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
30691         * lib/winsock.c (rpl_close): Likewise.
30692         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
30693         * modules/yield: Likewise.
30694         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
30695         * tests/test-sys_select.c (connect_to_socket): Likewise.
30696
30697         fts.c: adjust a new interface to be more generally useful
30698         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
30699         (fts_build): Adjust caller.
30700
30701 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30702
30703         * modules/cond-tests: New file.
30704         * tests/test-cond.c: New file.
30705
30706 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30707             Bruno Haible  <bruno@clisp.org>
30708
30709         * modules/cond (Dependencies): Add errno, time.
30710         * lib/glthread/cond.h: Include <time.h>.
30711         (gl_cond_define, gl_cond_define_initialized): Use the same definition
30712         across platforms.
30713
30714 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30715             Bruno Haible  <bruno@clisp.org>
30716
30717         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
30718
30719 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30720             Bruno Haible  <bruno@clisp.org>
30721
30722         * modules/tls-tests (Depends-on): Add thread, yield.
30723         (configure.ac): Remove all checks.
30724         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
30725         * tests/test-tls.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_tls): Pass an additional NULL argument to gl_thread_join.
30729
30730 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30731             Bruno Haible  <bruno@clisp.org>
30732
30733         * modules/lock-tests (Depends-on): Add thread, yield.
30734         (configure.ac): Remove all checks.
30735         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
30736         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
30737         gl_thread_self): Remove definitions. Include glthread/thread.h and
30738         glthread/yield.h instead.
30739         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
30740         additional NULL argument to gl_thread_join.
30741
30742 2008-09-30  Bruno Haible  <bruno@clisp.org>
30743
30744         Fix the Win32 implementation of the 'thread' module.
30745         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
30746         pointer type.
30747         (gl_thread_self): Invoke gl_thread_self_func.
30748         (gl_thread_self_func): New declaration.
30749         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
30750         (do_init_self_key, init_self_key): New functions.
30751         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
30752         Remove some fields.
30753         (running_threads, running_lock): Remove variables.
30754         (get_current_thread_handle): New function.
30755         (gl_thread_self_func, wrapper_func, glthread_create_func,
30756         glthread_join_func, gl_thread_exit_func): Largely rewritten and
30757         simplified.
30758
30759 2008-09-30  Bruno Haible  <bruno@clisp.org>
30760
30761         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
30762         files.
30763
30764 2008-09-30  Jim Meyering  <meyering@redhat.com>
30765
30766         fts.m4: correct the test for statfs.f_type
30767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
30768         when checking for statfs.f_type.
30769
30770 2008-09-15  Simon Josefsson  <simon@josefsson.org>
30771
30772         tests: avoid some compiler warnings
30773         * tests/test-memchr.c (main): Pass NULL indirectly.
30774         * tests/test-getdate.c (main): Remove unused variable 'ret'.
30775
30776 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
30777
30778         getdate.y: disallow countable dayshifts like "4 yesterday ago"
30779         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
30780         exactly specified dayshifts.
30781         (dayshift): New rule.
30782         (rel): Add dayshift.
30783         (relative_time_table) [tomorrow, yesterday, today, now]:
30784         Use tDAY_SHIFT in place of tDAY_UNIT.
30785         * tests/test-getdate.c: Add tests for now-disallowed countable
30786         dayshifts, e.g., "4 yesterday ago".
30787
30788 2008-09-29  Bruno Haible  <bruno@clisp.org>
30789
30790         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
30791         * tests/test-posix_spawn1.in.sh: Renamed from
30792         tests/test-posix_spawn.in.sh.
30793         * tests/test-posix_spawn2.c: New file.
30794         * tests/test-posix_spawn2.in.sh: New file.
30795         * modules/posix_spawnp-tests (Files): Update.
30796         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
30797
30798 2008-09-29  Bruno Haible  <bruno@clisp.org>
30799
30800         Propagate effects of putenv/setenv/unsetenv to child processes.
30801         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
30802         * lib/pipe.c (create_pipe): Likewise.
30803
30804 2008-09-29  Bruno Haible  <bruno@clisp.org>
30805
30806         Enable use of shell scripts as executables in mingw.
30807         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
30808         run the program as a shell script.
30809         * lib/pipe.c (create_pipe): Likewise.
30810         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
30811         resulting array.
30812
30813 2008-09-29  Eric Blake  <ebb9@byu.net>
30814
30815         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
30816
30817 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
30818
30819         * doc/posix-functions/accept.texi: Update mingw problems.
30820         * doc/posix-functions/bind.texi: Update mingw problems.
30821         * doc/posix-functions/close.texi: Update mingw problems.
30822         * doc/posix-functions/connect.texi: Update mingw problems.
30823         * doc/posix-functions/getpeername.texi: Update mingw problems.
30824         * doc/posix-functions/getsockname.texi: Update mingw problems.
30825         * doc/posix-functions/getsockopt.texi: Update mingw problems.
30826         * doc/posix-functions/ioctl.texi: Update mingw problems.
30827         * doc/posix-functions/listen.texi: Update mingw problems.
30828         * doc/posix-functions/recv.texi: Update mingw problems.
30829         * doc/posix-functions/recvfrom.texi: Update mingw problems.
30830         * doc/posix-functions/select.texi: Update mingw problems.
30831         * doc/posix-functions/send.texi: Update mingw problems.
30832         * doc/posix-functions/sendto.texi: Update mingw problems.
30833         * doc/posix-functions/setsockopt.texi: Update mingw problems.
30834         * doc/posix-functions/socket.texi: Update mingw problems.
30835
30836 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
30837             Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/sys_select.in.h: Include sys/time.h.
30840         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
30841         * modules/sys_select: Depend on sys_time.
30842         * tests/test-sys_select.c: Test that sys/select.h defines struct
30843         timeval fully.
30844
30845 2008-09-29  Bruno Haible  <bruno@clisp.org>
30846
30847         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
30848         * lib/sys_select.in.h: Likewise.
30849
30850 2008-09-29  Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
30853
30854 2008-09-29  Bruno Haible  <bruno@clisp.org>
30855
30856         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
30857         Set LIBSOCKET instead of augmenting LIBS.
30858         * modules/sockets (Link): New section.
30859         * modules/sockets-tests (test_sockets_LDADD): New variable.
30860         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
30861         * modules/poll-tests (test_poll_LDADD): New variable.
30862         * NEWS: Document the change.
30863
30864 2008-09-29  Bruno Haible  <bruno@clisp.org>
30865
30866         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
30867         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
30868         ARPA_INET_H directly.
30869         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30870
30871 2008-09-28  Bruno Haible  <bruno@clisp.org>
30872
30873         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
30874         from gl_HEADER_SYS_SOCKET.
30875         (gl_HEADER_SYS_SOCKET): Invoke it.
30876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30877
30878 2008-09-28  Bruno Haible  <bruno@clisp.org>
30879
30880         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
30881         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
30882         Needed on OSF/1 4.0.
30883
30884 2008-09-28  Bruno Haible  <bruno@clisp.org>
30885
30886         Override open more carefully.
30887         * lib/open.c (orig_open): New function.
30888         (rpl_open): Use orig_open instead of open.
30889         * lib/fcntl.in.h: Add special invocation convention.
30890         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
30891         (gl_FUNC_OPEN): Invoke it.
30892
30893         Override freopen more carefully.
30894         * lib/freopen.c (orig_freopen): New function.
30895         (rpl_freopen): Use orig_freopen instead of freopen.
30896         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
30897         (gl_FUNC_FREOPEN): Invoke it.
30898
30899         Override fopen more carefully.
30900         * lib/fopen.c (orig_fopen): New function.
30901         (rpl_fopen): Use orig_fopen instead of fopen.
30902         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
30903         (gl_FUNC_FOPEN): Invoke it.
30904         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
30905
30906 2008-09-28  Bruno Haible  <bruno@clisp.org>
30907
30908         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
30909         SIGPIPE.
30910
30911 2008-09-28  Bruno Haible  <bruno@clisp.org>
30912
30913         * tests/test-sigaction.c (handler, main): Disable the check whether
30914         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
30915         glibc systems with LinuxThreads.
30916
30917 2008-09-28  Bruno Haible  <bruno@clisp.org>
30918
30919         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
30920
30921         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
30922         with AIX xlc.
30923         * lib/fcntl.in.h (open): Likewise.
30924         Reported by Rainer Tammer <tammer@tammer.net>.
30925
30926 2008-09-28  Bruno Haible  <bruno@clisp.org>
30927
30928         * modules/posix_spawnp-tests: New file.
30929         * tests/test-posix_spawn.c: New file.
30930         * tests/test-posix_spawn.in.sh: New file.
30931
30932         New module 'posix_spawnp'.
30933         * modules/posix_spawnp: New file.
30934         * lib/spawnp.c: New file, from GNU libc with modifications.
30935         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
30936
30937         New module 'posix_spawn'.
30938         * modules/posix_spawn: New file.
30939         * lib/spawn.c: New file, from GNU libc with modifications.
30940         * doc/posix-functions/posix_spawn.texi: Mention the new module.
30941
30942         New module 'posix_spawnattr_destroy'.
30943         * modules/posix_spawnattr_destroy: New file.
30944         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
30945         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
30946         module.
30947
30948         New module 'posix_spawnattr_setsigmask'.
30949         * modules/posix_spawnattr_setsigmask: New file.
30950         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
30951         modifications.
30952         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
30953         new module.
30954
30955         New module 'posix_spawnattr_getsigmask'.
30956         * modules/posix_spawnattr_getsigmask: New file.
30957         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
30958         modifications.
30959         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
30960         new module.
30961
30962         New module 'posix_spawnattr_setsigdefault'.
30963         * modules/posix_spawnattr_setsigdefault: New file.
30964         * lib/spawnattr_setdefault.c: New file, from GNU libc with
30965         modifications.
30966         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
30967         new module.
30968
30969         New module 'posix_spawnattr_getsigdefault'.
30970         * modules/posix_spawnattr_getsigdefault: New file.
30971         * lib/spawnattr_getdefault.c: New file, from GNU libc with
30972         modifications.
30973         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
30974         new module.
30975
30976         New module 'posix_spawnattr_setschedpolicy'.
30977         * modules/posix_spawnattr_setschedpolicy: New file.
30978         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
30979         modifications.
30980         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
30981         new module.
30982
30983         New module 'posix_spawnattr_getschedpolicy'.
30984         * modules/posix_spawnattr_getschedpolicy: New file.
30985         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
30986         modifications.
30987         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
30988         new module.
30989
30990         New module 'posix_spawnattr_setschedparam'.
30991         * modules/posix_spawnattr_setschedparam: New file.
30992         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
30993         modifications.
30994         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
30995         new module.
30996
30997         New module 'posix_spawnattr_getschedparam'.
30998         * modules/posix_spawnattr_getschedparam: New file.
30999         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
31000         modifications.
31001         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
31002         new module.
31003
31004         New module 'posix_spawnattr_setpgroup'.
31005         * modules/posix_spawnattr_setpgroup: New file.
31006         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
31007         modifications.
31008         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
31009         module.
31010
31011         New module 'posix_spawnattr_getpgroup'.
31012         * modules/posix_spawnattr_getpgroup: New file.
31013         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
31014         modifications.
31015         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
31016         module.
31017
31018         New module 'posix_spawnattr_setflags'.
31019         * modules/posix_spawnattr_setflags: New file.
31020         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
31021         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
31022         module.
31023
31024         New module 'posix_spawnattr_getflags'.
31025         * modules/posix_spawnattr_getflags: New file.
31026         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
31027         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
31028         module.
31029
31030         New module 'posix_spawnattr_init'.
31031         * modules/posix_spawnattr_init: New file.
31032         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
31033         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
31034         module.
31035
31036         New module 'posix_spawn_file_actions_destroy'.
31037         * modules/posix_spawn_file_actions_destroy: New file.
31038         * lib/spawn_faction_destroy.c: New file, from GNU libc with
31039         modifications.
31040         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
31041         the new module.
31042
31043         New module 'posix_spawn_file_actions_addopen'.
31044         * modules/posix_spawn_file_actions_addopen: New file.
31045         * lib/spawn_faction_addopen.c: New file, from GNU libc with
31046         modifications.
31047         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
31048         the new module.
31049
31050         New module 'posix_spawn_file_actions_adddup2'.
31051         * modules/posix_spawn_file_actions_adddup2: New file.
31052         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
31053         modifications.
31054         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
31055         the new module.
31056
31057         New module 'posix_spawn_file_actions_addclose'.
31058         * modules/posix_spawn_file_actions_addclose: New file.
31059         * lib/spawn_faction_addclose.c: New file, from GNU libc with
31060         modifications.
31061         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
31062         the new module.
31063
31064         New module 'posix_spawn_file_actions_init'.
31065         * modules/posix_spawn_file_actions_init: New file.
31066         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
31067         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
31068         new module.
31069
31070         New module 'posix_spawn-internal'.
31071         * modules/posix_spawn-internal: New file.
31072         * lib/spawn_int.h: New file, from GNU libc with modifications.
31073         * lib/spawni.c: New file, from GNU libc with modifications.
31074         * m4/posix_spawn.m4: New file.
31075
31076         New module 'spawn'.
31077         * modules/spawn: New file.
31078         * lib/spawn.in.h: New file, from GNU libc with modifications.
31079         * m4/spawn_h.m4: New file.
31080         * doc/posix-headers/spawn.texi: Mention the new module.
31081
31082 2008-09-28  Bruno Haible  <bruno@clisp.org>
31083
31084         * modules/sched-tests: New file.
31085         * tests/test-sched.c: New file.
31086
31087         New module 'sched'.
31088         * modules/sched: New file.
31089         * lib/sched.in.h: New file.
31090         * m4/sched_h.m4: New file.
31091         * doc/posix-headers/sched.texi: Mention the new module.
31092
31093 2008-09-27  Eric Blake  <ebb9@byu.net>
31094
31095         Fix previous patch, and tweak references to $0.
31096         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
31097         (func_version, func_gnulib_dir): Don't call this program
31098         gnulib-tool.
31099         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
31100         with using $0 in function.
31101         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
31102         (func_fatal_error): Reuse the name the user invoked us with.
31103
31104 2008-09-27  Bruno Haible  <bruno@clisp.org>
31105
31106         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
31107         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
31108         (gl_ICONV_H): Not here.
31109         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31110         instead of assigning ICONV_H directly.
31111
31112         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
31113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
31114         WCHAR_H directly.
31115
31116 2008-09-27  Bruno Haible  <bruno@clisp.org>
31117
31118         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
31119         * modules/arpa_inet (Depends-on): Add link-warning.
31120         (Makefile.am): Insert the definition of GL_LINK-WARNING.
31121         * modules/unistd (Makefile.am): Likewise.
31122
31123 2008-09-26  Bruno Haible  <bruno@clisp.org>
31124
31125         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
31126         variables.
31127         (func_version): Essentially copied from gnulib-tool.
31128         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
31129         func_readlink): Copied from gnulib-tool.
31130
31131 2008-09-26  Bruno Haible  <bruno@clisp.org>
31132
31133         * gnulib-tool (func_version): Change directory to $gnulib_dir before
31134         invoking git-version-gen.
31135
31136 2008-09-26  Bruno Haible  <bruno@clisp.org>
31137
31138         * posix-modules: Update to directory names changed on 2008-01-19.
31139         Remove commas in output before splitting into words. No more need to
31140         avoid 'ftruncate' since 2007-02-19.
31141
31142 2008-09-26  Bruno Haible  <bruno@clisp.org>
31143
31144         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
31145
31146 2008-09-26  Bruno Haible  <bruno@clisp.org>
31147
31148         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
31149         * modules/fwriteerror (Depends-on): Add errno.
31150
31151 2008-09-26  Bruno Haible  <bruno@clisp.org>
31152
31153         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
31154         * tests/test-vc-list-files-cvs.sh: Likewise.
31155
31156 2008-09-26  Bruno Haible  <bruno@clisp.org>
31157
31158         * doc/posix-headers/sys_resource.texi: Reorder items.
31159
31160 2008-09-26  Jim Meyering  <meyering@redhat.com>
31161
31162         fts: tweak inode comparison function
31163         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
31164         inode numbers, as documented.
31165
31166         fts: sort dirent entries on inode number before traversing
31167         This avoids a quadratic, seek-related performance penalty when
31168         operating on a directory containing many entries (measurable at 10k;
31169         3.5 hours at 2 million entries with a cold cache) on certain types
31170         of file systems, including ext3 and ext4, but not tmpfs.
31171         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
31172         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
31173         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
31174         (fs_handles_readdir_ordered_dirents_efficiently): New function.
31175         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
31176         (fts_build): Set the stat.st_ino member from D_INO.
31177         If it is likely to be useful, sort dirent entries on inode number.
31178
31179         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
31180         and the struct statfs.f_type member.
31181         * modules/fts (Depends-on): Add d-ino.
31182
31183 2008-09-26  Bruno Haible  <bruno@clisp.org>
31184
31185         * modules/sigpipe-die (Depends-on): Add sigpipe.
31186
31187         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
31188         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
31189         and GNULIB_STDIO_H_SIGPIPE are set.
31190         * lib/stdio-write.c: New file.
31191         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
31192         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31193         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31194         REPLACE_STDIO_WRITE_FUNCS.
31195         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
31196         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31197         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31198         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31199         * modules/stdio (Files): Add lib/stdio-write.c.
31200         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
31201         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
31202         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
31203         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
31204         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
31205         REPLACE_FPRINTF_POSIX.
31206         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
31207         REPLACE_PRINTF_POSIX.
31208         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
31209         REPLACE_VFPRINTF_POSIX.
31210         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
31211         REPLACE_VPRINTF_POSIX.
31212         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
31213         SIGPIPE issue.
31214         * doc/posix-functions/fputc.texi: Likewise.
31215         * doc/posix-functions/fputs.texi: Likewise.
31216         * doc/posix-functions/fwrite.texi: Likewise.
31217         * doc/posix-functions/printf.texi: Likewise.
31218         * doc/posix-functions/putc.texi: Likewise.
31219         * doc/posix-functions/putchar.texi: Likewise.
31220         * doc/posix-functions/puts.texi: Likewise.
31221         * doc/posix-functions/vfprintf.texi: Likewise.
31222         * doc/posix-functions/vprintf.texi: Likewise.
31223
31224         * modules/safe-write (Depends-on): Add write.
31225
31226         * modules/sigpipe-tests: New file.
31227         * tests/test-sigpipe.c: New file.
31228         * tests/test-sigpipe.sh: New file.
31229
31230         * modules/write: New file.
31231         * lib/unistd.in.h: Include <sys/types.h>.
31232         (write): New declaration.
31233         * lib/write.c: New file.
31234         * m4/write.m4: New file.
31235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31236         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
31237         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
31238         GNULIB_WRITE, REPLACE_WRITE.
31239         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
31240         and the SIGPIPE issue.
31241
31242         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
31243         (raise): New declaration.
31244         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
31245         (ext_signal): New function.
31246         (rpl_raise): New function.
31247         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
31248         GNULIB_SIGNAL_H_SIGPIPE.
31249         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
31250         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
31251
31252         * modules/sigpipe: New file.
31253         * m4/sigpipe.m4: New file.
31254
31255 2008-09-25  Derek Price  <derek@ximbiot.com>
31256             Bruno Haible  <bruno@clisp.org>
31257
31258         * gnulib-tool (func_import): Report all license incompatibilities, not
31259         just the first one.
31260
31261 2008-09-25  Bruno Haible  <bruno@clisp.org>
31262
31263         * gnulib-tool (func_import): When computing the edits, consider not
31264         only the Makefile.ams that exist but also those that will be generated.
31265
31266 2008-09-25  Simon Josefsson  <simon@josefsson.org>
31267
31268         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
31269         fixes gnulib-tool --test warning about duplicate dependency.
31270
31271 2008-09-25  Bruno Haible  <bruno@clisp.org>
31272
31273         * gnulib-tool: Don't ask the user to perform edits in the generated
31274         Makefile.ams.
31275         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
31276         apply to the Makefile.am being generated.
31277         (func_emit_tests_Makefile_am): Execute edits that apply to the
31278         Makefile.am being generated.
31279         (func_import): Setup list of Makefile.am edits before emitting the
31280         Makefile.ams, not at the end.
31281         (func_create_testdir): Update.
31282         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31283
31284 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31285
31286         * gnulib-tool (func_import): Store the --tests-base option in the
31287         comment in gnulib-cache.m4.
31288
31289 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
31290
31291         * NEWS: Document increased portability that sys_select now provides.
31292
31293         * lib/sys_select.in.h: Install select wrapper.
31294         * lib/sys_socket.in.h: Use more descriptive name when there is no
31295         select wrapper.
31296         * lib/winsock-select.c: New.
31297         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
31298         Require gl_HEADER_SYS_SOCKET.
31299         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
31300         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
31301         * tests/test-sys_select.c: Add functional tests.
31302
31303 2008-09-24  Eric Blake  <ebb9@byu.net>
31304
31305         open, fopen: close fd leak in last patch
31306         * lib/open.c (rpl_open): Close fd before returning error.
31307         * lib/fopen.c (rpl_fopen): Close fd before returning error.
31308         * doc/posix-functions/open.texi (open): Document that Irix also
31309         has the bug.
31310         * doc/posix-functions/fopen.texi (fopen): Likewise.
31311         Reported by Paolo Bonzini.
31312
31313 2008-09-24  Bruno Haible  <bruno@clisp.org>
31314
31315         Ensure that a filename ending in a slash cannot be used to access a
31316         non-directory.
31317         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
31318         to check whether it's really a directory.
31319         * lib/fopen.c: Include fcntl.h, unistd.h.
31320         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
31321         and fdopen().
31322         * modules/fopen (Depends-on): Add unistd.
31323         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
31324         * tests/test-fopen.c (main): Likewise.
31325         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
31326         * doc/posix-functions/fopen.texi: Likewise.
31327         Reported by Eric Blake.
31328
31329 2008-09-23  Eric Blake  <ebb9@byu.net>
31330
31331         c-stack: avoid compiler optimizations when provoking overflow
31332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
31333         recursion harder to optimize, to ensure a stack overflow occurs.
31334         * tests/test-c-stack.c (recurse): Likewise.
31335         Borrowed from libsigsegv.
31336
31337         c-stack: work around Irix sigaltstack bug
31338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
31339         whether sigaltstack uses wrong end of stack_t (copied in part from
31340         libsigsegv).
31341         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
31342         Irix bug, without requiring an over-allocation.
31343         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
31344         bug.
31345
31346         fopen: document mingw bug on directories
31347         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
31348         not allowing a stream visiting a directory, even though reading
31349         from such a stream is not portable.
31350
31351 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31352
31353         * lib/poll.c: Rewrite.
31354         * modules/poll: Depend on alloca.
31355
31356 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31357
31358         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
31359         instead define prototypes for a full set of wrappers.  Ensure
31360         that Cygwin does not use the compatibility code, which is only
31361         for MinGW.
31362         * lib/winsock.c: New.
31363         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
31364         * modules/sys_socket: Add lib/winsock.c.
31365
31366         * modules/poll-tests: Add errno and perror.
31367         * tests/test-poll.c: Use ioctl, not ioctlsocket.
31368
31369 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
31370
31371         * tests/test-poll.c: Downgrade minimum needed Winsock version.
31372
31373 2008-09-23  Bruno Haible  <bruno@clisp.org>
31374
31375         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
31376         * doc/glibc-functions/*: Likewise.
31377
31378 2008-09-23  Simon Josefsson  <simon@josefsson.org>
31379
31380         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
31381         success.
31382
31383 2008-09-22  Eric Blake  <ebb9@byu.net>
31384             Bruno Haible  <bruno@clisp.org>
31385
31386         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
31387         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
31388         supply %A but mishandle pseudo-NaN.
31389         Reported by Simon Josefsson.
31390
31391 2008-09-21  Bruno Haible  <bruno@clisp.org>
31392
31393         * tests/test-lock.c (main): Tweak skip message.
31394         * tests/test-tls.c (main): Likewise.
31395
31396 2008-09-21  Bruno Haible  <bruno@clisp.org>
31397
31398         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
31399         whether 'struct sigaction' has sa_sigaction here...
31400         (gl_PREREQ_SIG_HANDLER_H): ... not here.
31401         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
31402
31403 2008-09-21  Bruno Haible  <bruno@clisp.org>
31404
31405         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
31406         section.
31407         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
31408         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
31409         the new section.
31410         (Support for obsolete systems lacking POSIX:2001): New section.
31411         (String handling <string.h>): Move strdup to the new section.
31412         Suggested by Simon Josefsson and Paolo Bonzini.
31413
31414 2008-09-21  Bruno Haible  <bruno@clisp.org>
31415
31416         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
31417         exponents in %e and %g results on 'long double'. Needed for mingw's
31418         improved *printf functions.
31419         * tests/test-vasprintf-posix.c (test_function): Likewise.
31420         * tests/test-snprintf-posix.h (test_function): Likewise.
31421         * tests/test-sprintf-posix.h (test_function): Likewise.
31422         Reported by Eric Blake.
31423
31424 2008-09-21  Bruno Haible  <bruno@clisp.org>
31425
31426         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
31427         * tests/test-sprintf-posix.h (test_function): Likewise.
31428
31429 2008-09-21  Bruno Haible  <bruno@clisp.org>
31430
31431         * modules/getpass (Depends-on): Add strdup-posix.
31432
31433         New module 'strdup-posix'.
31434         * modules/strdup-posix: New file.
31435         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
31436         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
31437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31438         REPLACE_STRDUP.
31439         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
31440         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
31441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31442         strdup-posix.
31443
31444         * modules/strdup (Depends-on): Remove malloc-posix.
31445
31446 2008-09-20  Bruno Haible  <bruno@clisp.org>
31447
31448         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
31449         Wildenhues.
31450
31451 2008-09-20  Bruno Haible  <bruno@clisp.org>
31452
31453         Ensure that wint_t gets defined on IRIX 5.3.
31454         * lib/wchar.in.h (wint_t): Define if not defined by the system.
31455         * lib/wctype.in.h (wint_t): Likewise.
31456         (__wctype_wint_t): Remove type.
31457         (isw*): Use wint_t instead of __wctype_wint_t.
31458         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
31459         * modules/wchar (Files): Add m4/wint_t.m4.
31460         (Makefile.am): Substitute HAVE_WINT_T.
31461         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
31462         * tests/test-wctype.c: Check that wint_t is defined.
31463         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
31464         * doc/posix-headers/wctype.texi: Likewise.
31465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31466
31467 2008-09-18  Bruno Haible  <bruno@clisp.org>
31468
31469         * gnulib-tool (func_exit): Update comment.
31470
31471 2008-09-18  Simon Josefsson  <simon@josefsson.org>
31472
31473         * modules/getaddrinfo (Depends-on): Remove strdup, this module
31474         assumes strdup exists and does not depend on strdup to return
31475         ENOMEM on out of memory conditions.
31476
31477 2008-09-18  Bruno Haible  <bruno@clisp.org>
31478
31479         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
31480         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
31481         digits for the exponent.
31482
31483 2008-09-18  Jim Meyering  <meyering@redhat.com>
31484             Bruno Haible  <bruno@clisp.org>
31485
31486         * lib/vasnprintf.c (decimal_point_char): Define also if
31487         NEED_PRINTF_INFINITE_LONG_DOUBLE.
31488
31489 2008-09-16  Bruno Haible  <bruno@clisp.org>
31490         and Eric Blake  <ebb9@byu.net>
31491
31492         vasnprintf: support Irix 5.3
31493         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
31494         that mishandle long double infinity.
31495         Reported by Tom G. Christensen.
31496
31497 2008-09-16  Bruno Haible  <bruno@clisp.org>
31498
31499         * doc/glibc-functions/scandir.texi: Mention the function is missing on
31500         Solaris 9.
31501         * doc/glibc-functions/alphasort.texi: Likewise.
31502         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
31503
31504 2008-09-16  Jim Meyering  <meyering@redhat.com>
31505
31506         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
31507         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
31508         a umask modification leak out of a subshell.  Otherwise, the
31509         opensolaris /bin/sh would be accepted and thus cause unwarranted
31510         failures in the coreutils test suite.
31511
31512 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
31513
31514         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
31515         to succeed.
31516
31517 2008-09-16  Jim Meyering  <meyering@redhat.com>
31518
31519         avoid spurious test failure when library is built without ACL support
31520         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
31521         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
31522         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
31523         * tests/test-copy-acl.sh: Likewise.
31524
31525 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31526
31527         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
31528         based on character occurrence counts.
31529
31530 2008-09-15  Eric Blake  <ebb9@byu.net>
31531
31532         tests: avoid some compiler warnings
31533         * tests/test-memchr.c (main): Pass NULL indirectly.
31534         * tests/test-closein.c (main): Avoid unused variable.
31535
31536 2008-09-15  Bruno Haible  <bruno@clisp.org>
31537
31538         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
31539         are missing on OpenBSD 4.0 individually.
31540         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31541
31542 2008-09-15  Bruno Haible  <bruno@clisp.org>
31543
31544         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
31545         * doc/posix-functions/strerror.texi: Mention also Cygwin.
31546         * doc/posix-functions/perror.texi: Likewise.
31547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
31548         is missing.
31549         Reported by Eric Blake.
31550
31551         * lib/errno.in.h: Use replacement values >= 2000.
31552         Reported by Eric Blake.
31553
31554 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31555
31556         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
31557         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
31558         limit.
31559         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
31560         compareseq was aborted.
31561
31562 2008-09-14  Bruno Haible  <bruno@clisp.org>
31563
31564         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
31565         yvec_edit_count.
31566         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
31567         (fstrcmp_bounded): Simplify result computation accordingly.
31568
31569 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31570
31571         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
31572         (fstrcmp): Define in terms of fstrcmp_bounded.
31573         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
31574         lower_bound argument.
31575         Return quickly if the result is certainly < lower_bound.
31576         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
31577
31578 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31579
31580         * lib/diffseq.h (EARLY_ABORT): New macro.
31581         (compareseq): Change return type to bool. Return true when EARLY_ABORT
31582         evaluates to true.
31583
31584 2008-09-14  Bruno Haible  <bruno@clisp.org>
31585
31586         * modules/perror-tests: New file.
31587         * tests/test-perror.sh: New file.
31588         * tests/test-perror.c: New file.
31589
31590         New module 'perror'.
31591         * lib/stdio.in.h (perror): New declaration.
31592         * lib/perror.c: New file.
31593         * m4/perror.m4: New file.
31594         * modules/perror: New file.
31595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
31596         * doc/posix-functions/perror.texi: Mention the perror module.
31597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
31598         REPLACE_PERROR.
31599         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
31600         REPLACE_PERROR.
31601
31602 2008-09-14  Bruno Haible  <bruno@clisp.org>
31603
31604         * modules/stdio (Makefile.am): Reorder to match the order in
31605         lib/stdio.in.h.
31606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31607
31608 2008-09-13  Bruno Haible  <bruno@clisp.org>
31609
31610         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
31611
31612 2008-09-13  Bruno Haible  <bruno@clisp.org>
31613
31614         Extend strerror to cover the added errno values.
31615         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
31616         (rpl_strerror): Provide error messages for the added errno values and
31617         for the WSA* values.
31618         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
31619         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
31620         strerror.
31621         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
31622         * modules/strerror (Depends-on): Add errno.
31623         * doc/posix-functions/strerror.texi: Document the change.
31624         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
31625         and EOVERFLOW.
31626
31627 2008-09-13  Bruno Haible  <bruno@clisp.org>
31628
31629         * modules/EOVERFLOW: Remove file.
31630         * m4/eoverflow.m4: Remove file.
31631         * modules/EOVERFLOW-tests: Remove file.
31632         * tests/test-EOVERFLOW.c: Remove file.
31633         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
31634         * modules/ftell (Depends-on): Likewise.
31635         * modules/getdelim (Depends-on): Likewise.
31636         * modules/getugroups (Depends-on): Likewise.
31637         * modules/poll (Depends-on): Likewise.
31638         * modules/snprintf (Depends-on): Likewise.
31639         * modules/sprintf-posix (Depends-on): Likewise.
31640         * modules/vasnprintf (Depends-on): Likewise.
31641         * modules/vasprintf (Depends-on): Likewise.
31642         * modules/vfprintf-posix (Depends-on): Likewise.
31643         * modules/vsnprintf (Depends-on): Likewise.
31644         * modules/vsprintf-posix (Depends-on): Likewise.
31645         * modules/xvasprintf (Depends-on): Likewise.
31646         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31647         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
31648         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
31649         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
31650         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31651         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
31652         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
31653         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
31654         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31655         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
31656         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
31657         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
31658         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31659         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
31660         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
31661         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
31662         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31663         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
31664         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
31665         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
31666         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31667         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
31668         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
31669         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
31670         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
31671         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31672         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
31673         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
31674         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
31675         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
31676         * MODULES.html.sh: Remove EOVERFLOW.
31677         * NEWS: Mention the change.
31678
31679 2008-09-13  Bruno Haible  <bruno@clisp.org>
31680
31681         * modules/errno-tests: New file.
31682         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
31683
31684         * lib/errno.in.h: New file.
31685         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
31686         * modules/errno: New file.
31687         * doc/posix-headers/errno.texi: Update documentation.
31688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
31689
31690 2008-09-13  Bruno Haible  <bruno@clisp.org>
31691
31692         * tests/test-poll.c: Use #if for native Windows, rather than testing
31693         __MSVCRT__.
31694
31695 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31696             Bruno Haible  <bruno@clisp.org>
31697
31698         * lib/glob.c: Don't include <pwd.h> on native Windows.
31699         (WINDOWS32): New macro.
31700         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
31701
31702 2008-09-13  Bruno Haible  <bruno@clisp.org>
31703
31704         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
31705         (ETIMEDOUT): Remove macro.
31706         (glthread_cond_timedwait_multithreaded): New declaration.
31707         (glthread_cond_timedwait): Use it.
31708         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
31709         (glthread_cond_timedwait_multithreaded): New function.
31710
31711 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31712
31713         * modules/poll-tests: Do not check for io.h.
31714         * tests/test-poll.c: Check for __MSVCRT__ instead.
31715
31716 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31717
31718         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
31719         * modules/poll-tests: Add inet_pton, stdbool, sockets.
31720         * tests/test-poll.c: Use them.  Use _pipe on Windows.
31721
31722 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31723
31724         * modules/poll-tests: New.
31725         * tests/test-poll.c: New.
31726
31727 2008-09-12  Eric Blake  <ebb9@byu.net>
31728
31729         frexp: test for NetBSD failure on -0.0
31730         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
31731         not all, bugs from NetBSD 3.0 have been fixed.
31732         * doc/posix-functions/frexp.texi (frexp): Document bug.
31733         Reported by Thomas Klausner.
31734
31735         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
31736         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
31737         literal -0.0.
31738         Reported by Jonathan C. Patschke <jp@centtech.com>.
31739
31740 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31741
31742         * lib/glthread/cond.h: Use dummy implementation also if
31743         USE_WIN32_THREADS.
31744
31745 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31746
31747         * modules/fnmatch-posix (License): Change to LGPLv2+.
31748         * modules/fnmatch-gnu (License): Likewise.
31749
31750 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31751
31752         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
31753
31754 2008-09-11  Jim Meyering  <meyering@redhat.com>
31755
31756         * users.txt: Add gtk-vnc.
31757
31758 2008-09-08  Simon Josefsson  <simon@josefsson.org>
31759
31760         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
31761         rotate amounts.
31762
31763         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
31764         required for 16-bit and 8-bit rotates.
31765         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
31766         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
31767         UINT8_MAX instead of hard-coded constants.
31768         Suggested by Paul Eggert.
31769
31770 2008-09-07  Bruno Haible  <bruno@clisp.org>
31771
31772         * tests/test-striconveh.c (main): Check behaviour when converting from
31773         UTF-7.
31774
31775         Make striconveh work better with stateful encodings.
31776         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
31777         that iconv does not increment the inptr when returning -1/EINVAL.
31778
31779 2008-09-07  Bruno Haible  <bruno@clisp.org>
31780
31781         * build-aux/config.rpath: Update according to libtool-2.2.6.
31782         * build-aux/config.libpath: Likewise.
31783
31784 2008-09-06  Bruno Haible  <bruno@clisp.org>
31785
31786         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
31787         * lib/freadptr.c (freadptr): Likewise.
31788         * lib/freadseek.c (freadptrinc): Likewise.
31789         Reported by Simon Josefsson.
31790
31791 2008-09-06  Bruno Haible  <bruno@clisp.org>
31792
31793         * modules/freadptr (License): Change to LGPLv2+.
31794         * modules/freadseek (License): Likewise.
31795         Suggested by Eric Blake.
31796
31797         * modules/memchr2 (License): Change to LGPLv2+.
31798         Approved by Eric Blake.
31799
31800 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31801             Bruno Haible  <bruno@clisp.org>
31802
31803         Make gnulib-tool work with native 'sed' on AIX.
31804         * gnulib-tool (sed_noop): New variable.
31805         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
31806         func_add_or_update, func_create_testdir): Use it to initialize sed
31807         script variables.
31808         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31809
31810 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
31811             Bruno Haible  <bruno@clisp.org>
31812
31813         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
31814         also works after #include directives.
31815
31816 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
31817
31818         getdate.y: reject an out-of-range timezone value
31819         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
31820         the range [-24...+24].  When specified with only one or two digits,
31821         * tests/test-getdate.c: Tests for the fix.
31822         * doc/getdate.texi: Document this change.
31823
31824 2008-09-03  Bruno Haible  <bruno@clisp.org>
31825
31826         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
31827
31828 2008-09-02  Simon Josefsson  <simon@josefsson.org>
31829
31830         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
31831         <bruce.korb@gmail.com> with ideas from Ben Pfaff
31832         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
31833         Blake <ebb9@byu.net>.
31834
31835         * tests/test-bitrotate.c: Add more test vectors.
31836
31837 2008-09-02  Eric Blake  <ebb9@byu.net>
31838
31839         vasnprintf-posix: handle large precision via %.*d
31840         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
31841         when handling it ourselves.
31842         * tests/test-vasnprintf-posix.c (test_function): Add test.
31843         * tests/test-snprintf-posix.h (test_function): Likewise.
31844         * tests/test-sprintf-posix.h (test_function): Likewise.
31845         * tests/test-vasprintf-posix.c (test_function): Likewise.
31846         Reported by Alain Guibert.
31847
31848 2008-09-01  Eric Blake  <ebb9@byu.net>
31849
31850         c-stack: make configure-time check more robust
31851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
31852         successful sigaction call.
31853         Reported by Tom G. Christensen.
31854
31855 2008-09-01  Bruno Haible  <bruno@clisp.org>
31856
31857         New module 'findprog-lgpl'.
31858         * modules/findprog-lgpl: New file.
31859         * lib/findprog-lgpl.c: New file.
31860         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
31861         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
31862         to decide whether to use strdup or xstrdup, concatenated_filename or
31863         xconcatenated_filename.
31864
31865 2008-09-01  Bruno Haible  <bruno@clisp.org>
31866
31867         Split module 'concat-filename' into 'concat-filename' (LGPL) and
31868         'xconcat-filename' (GPL).
31869         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
31870         (License): Change to LGPLv2+.
31871         * modules/xconcat-filename: New file.
31872         * lib/concat-filename.h (concatenated_filename): Change specification.
31873         (xconcatenated_filename): New declaration.
31874         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
31875         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
31876         memory situations.
31877         * lib/xconcat-filename.c: New file.
31878         * NEWS: Mention the change.
31879         * lib/findprog.c: Include concat-filename.h, not filename.h.
31880         (find_in_path): Use xconcatenated_filename instead of
31881         concatenated_filename.
31882         * lib/javacomp.c: Include concat-filename.h, not filename.h.
31883         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31884         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31885         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31886         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
31887         instead of concatenated_filename.
31888         * lib/javaexec.c: Include concat-filename.h, not filename.h.
31889         (execute_java_class): Use xconcatenated_filename instead of
31890         concatenated_filename.
31891         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
31892         * modules/javacomp (Depends-on): Likewise.
31893         * modules/javaexec (Depends-on): Likewise.
31894
31895 2008-09-01  Bruno Haible  <bruno@clisp.org>
31896
31897         Split module 'filename' into 'filename' and 'concat-filename'.
31898         * modules/filename: Keep only lib/filename.h.
31899         (License): Change to LGPLv2+.
31900         * modules/concat-filename: New file, extracted from modules/filename.
31901         * lib/filename.h (concatenated_filename): Remove declaration.
31902         * lib/concat-filename.h: New file, extracted from lib/filename.h.
31903         * lib/concat-filename.c: Include concat-filename.h.
31904         * NEWS: Mention the change.
31905
31906 2008-09-01  Simon Josefsson  <simon@josefsson.org>
31907
31908         * lib/bitrotate.h (rotl8, rotr8): Add.
31909
31910         * modules/bitrotate (configure.ac): Need
31911         AC_REQUIRE([AC_C_INLINE]).
31912         (Description): Mention stdint.h.  Reported by Bruno Haible
31913         <bruno@clisp.org>.
31914
31915         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
31916         Paolo Bonzini <bonzini@gnu.org>.
31917
31918 2008-08-31  Bruno Haible  <bruno@clisp.org>
31919
31920         Assume Solaris specific bi-arch conventions on Solaris systems.
31921         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
31922         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
31923         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
31924         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
31925         like acl_libdirstem.
31926         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
31927         acl_libdirstem.
31928         * NEWS: Mention the change.
31929         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
31930
31931 2008-08-31  Jim Meyering  <meyering@redhat.com>
31932
31933         * lib/strftime.h: Add comments describing the two added arguments.
31934
31935         remove duplicate #include directives
31936         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
31937         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
31938
31939 2008-08-31  Bruno Haible  <bruno@clisp.org>
31940
31941         New module 'sigpipe-die'.
31942         * modules/sigpipe-die: New file.
31943         * lib/sigpipe-die.h: New file.
31944         * lib/sigpipe-die.c: New file.
31945         * MODULES.html.sh (Signal handling): Add sigpipe-die.
31946
31947 2008-08-31  Bruno Haible  <bruno@clisp.org>
31948
31949         Don't override previously installed signal handlers.
31950         * lib/fatal-signal.c (saved_sigactions): New variable.
31951         (uninstall_handlers): Reset the signal to the saved handler, not
31952         to SIG_DFL (except when ignored).
31953         (install_handlers): Save the previous handlers.
31954
31955 2008-08-30  Bruno Haible  <bruno@clisp.org>
31956
31957         * gnulib-tool (func_reset_sigpipe): New function.
31958         (func_get_automake_snippet, func_modules_transitive_closure,
31959         func_import): Invoke it before a join command that reads from stdin,
31960         to avoid "echo: write error: Broken pipe" error messages on stderr.
31961         Reported by Sam Steingold <sds@gnu.org>.
31962
31963 2008-08-30  Bruno Haible  <bruno@clisp.org>
31964
31965         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
31966         Code copied from m4/open.m4.
31967         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
31968         access and the filename ends in a slash. Code copied from lib/open.c.
31969         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
31970         * tests/test-fopen.c (main): Check against bug with trailing slash.
31971
31972 2008-08-29  Bruno Haible  <bruno@clisp.org>
31973
31974         Avoid some "gcc -pedantic" warnings.
31975         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
31976         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
31977         * lib/dirent.in.h: Likewise.
31978         * lib/fcntl.in.h: Likewise.
31979         * lib/float.in.h: Likewise.
31980         * lib/iconv.in.h: Likewise.
31981         * lib/inttypes.in.h: Likewise.
31982         * lib/locale.in.h: Likewise.
31983         * lib/math.in.h: Likewise.
31984         * lib/netinet_in.in.h: Likewise.
31985         * lib/search.in.h: Likewise.
31986         * lib/signal.in.h: Likewise.
31987         * lib/stdarg.in.h: Likewise.
31988         * lib/stdint.in.h: Likewise.
31989         * lib/stdio.in.h: Likewise.
31990         * lib/stdlib.in.h: Likewise.
31991         * lib/string.in.h: Likewise.
31992         * lib/strings.in.h: Likewise.
31993         * lib/sys_select.in.h: Likewise.
31994         * lib/sys_socket.in.h: Likewise.
31995         * lib/sys_stat.in.h: Likewise.
31996         * lib/sys_time.in.h: Likewise.
31997         * lib/sysexits.in.h: Likewise.
31998         * lib/time.in.h: Likewise.
31999         * lib/unistd.in.h: Likewise.
32000         * lib/wchar.in.h: Likewise.
32001         * lib/wctype.in.h: Likewise.
32002         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
32003         * modules/fchdir (Makefile.am): Likewise.
32004         * modules/fcntl (Makefile.am): Likewise.
32005         * modules/float (Makefile.am): Likewise.
32006         * modules/iconv_open (Makefile.am): Likewise.
32007         * modules/inttypes (Makefile.am): Likewise.
32008         * modules/locale (Makefile.am): Likewise.
32009         * modules/math (Makefile.am): Likewise.
32010         * modules/netinet_in (Makefile.am): Likewise.
32011         * modules/search (Makefile.am): Likewise.
32012         * modules/signal (Makefile.am): Likewise.
32013         * modules/stdarg (Makefile.am): Likewise.
32014         * modules/stdint (Makefile.am): Likewise.
32015         * modules/stdio (Makefile.am): Likewise.
32016         * modules/stdlib (Makefile.am): Likewise.
32017         * modules/string (Makefile.am): Likewise.
32018         * modules/strings (Makefile.am): Likewise.
32019         * modules/sys_select (Makefile.am): Likewise.
32020         * modules/sys_socket (Makefile.am): Likewise.
32021         * modules/sys_stat (Makefile.am): Likewise.
32022         * modules/sys_time (Makefile.am): Likewise.
32023         * modules/sysexits (Makefile.am): Likewise.
32024         * modules/time (Makefile.am): Likewise.
32025         * modules/unistd (Makefile.am): Likewise.
32026         * modules/wchar (Makefile.am): Likewise.
32027         * modules/wctype (Makefile.am): Likewise.
32028         Reported by Reuben Thomas <rrt@sc3d.org>.
32029
32030 2008-08-29  Bruno Haible  <bruno@clisp.org>
32031
32032         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
32033         any more.
32034
32035 2008-08-29  Simon Josefsson  <simon@josefsson.org>
32036
32037         * MODULES.html.sh (Misc): Add bitrotate.
32038
32039         * modules/bitrotate: New file.
32040
32041         * lib/bitrotate.h: New file.
32042
32043         * modules/bitrotate-tests: New file.
32044
32045         * tests/test-bitrotate.c: New file.
32046
32047         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
32048         on the bitrotate module.
32049
32050         * lib/arctwo.c: Use new bitrotate module.
32051
32052 2008-08-29  Jim Meyering  <meyering@redhat.com>
32053
32054         bootstrap: merge changes from coreutils
32055         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
32056         of copied files.  Remove a kludge, now that this is fixed.
32057         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
32058         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
32059         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
32060
32061 2008-08-29  Bruno Haible  <bruno@clisp.org>
32062
32063         * MODULES.html.sh: Remove --cvs-urls option.
32064
32065 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
32066
32067         maint.mk: adjust to file name change
32068         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
32069
32070 2008-08-28  Jim Meyering  <meyering@redhat.com>
32071
32072         * modules/getndelim2 (License): Relicense to LGPLv2+.
32073         Approved by Richard Stallman for the version of 1995, and by
32074         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
32075
32076 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
32077
32078         * lib/getdelim.c (flockfile, funlockfile): Make all of them
32079         dummy if one is not available.  Do not touch them if
32080         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
32081         (getc_maybe_unlocked): New.
32082         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
32083
32084 2008-08-26  Eric Blake  <ebb9@byu.net>
32085
32086         doc/INSTALL: resync from autoconf
32087         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
32088         (INSTALL_PRELUDE): Delete; this is done more efficiently by
32089         moving...
32090         * install.texi [!autoconf]: ...here.  Resync from autoconf.
32091         * INSTALL: Regenerate.
32092         * INSTALL.ISO: New file.
32093         * INSTALL.UTF-8: Likewise.
32094
32095 2008-08-26  Jim Meyering  <meyering@redhat.com>
32096
32097         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
32098         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
32099         these definitions conditional, so that they may be overridden, too.
32100
32101 2008-08-26  Bruno Haible  <bruno@clisp.org>
32102
32103         Generate INSTALL file variants with prettier quotes.
32104         * doc/Makefile (INSTALL_PRELUDE): New macro.
32105         (INSTALL): Use it.
32106         (INSTALL.ISO, INSTALL.UTF-8): New rules.
32107
32108 2008-08-26  Bruno Haible  <bruno@clisp.org>
32109
32110         Run makeinfo in an English locale.
32111         * doc/Makefile (MAKEINFO): New variable.
32112
32113 2008-08-26  Bruno Haible  <bruno@clisp.org>
32114
32115         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
32116         Suggested by Eric Blake.
32117
32118 2008-08-25  Bruno Haible  <bruno@clisp.org>
32119
32120         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
32121
32122 2008-08-25  Eric Blake  <ebb9@byu.net>
32123
32124         c-stack: test that stack overflow can be caught
32125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
32126         that platform allows handling stack overflow; at least OS/2 EMX
32127         has sigaltstack, but crashes before transferring control to
32128         handler on stack overflow.
32129         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
32130         check for HAVE_STACK_OVERFLOW_HANDLING.
32131         Reported by Elbert Pol.
32132
32133 2008-08-25  Bruno Haible  <bruno@clisp.org>
32134
32135         * doc/posix-functions/strftime.texi: Fix description of strftime
32136         module.
32137
32138 2008-08-24  Bruno Haible  <bruno@clisp.org>
32139
32140         * tests/uniwidth/test-uc_width2.c: New file.
32141         * tests/uniwidth/test-uc_width2.sh: New file.
32142         * modules/uniwidth/width-tests (Files): Add the new files.
32143         (TESTS): Add uniwidth/test-uc_width2.sh.
32144         (TESTS_ENVIRONMENT): New variable.
32145         (check_PROGRAMS): Add test-uc_width2.
32146         (test_uc_width2_SOURCES): New variable.
32147
32148         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
32149         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
32150         not 0x00AB.
32151         Reported by Alexander V. Lukyanov <lav@netis.ru>.
32152
32153 2008-08-22  Eric Blake  <ebb9@byu.net>
32154
32155         test-lock, test-tls: mention why a test is skipped
32156         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
32157         skipped.
32158         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
32159
32160         count-one-bits: relax license
32161         * modules/count-one-bits (License): Relicense to LGPLv2+.
32162         Suggested by Ludovic Courtès, approved by Ben Pfaff.
32163
32164 2008-08-22  Andreas Schwab  <schwab@suse.de>
32165
32166         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32167         Remove spurious space in assignment.
32168
32169 2008-08-21  Simon Josefsson  <simon@josefsson.org>
32170
32171         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
32172         Paul Eggert <eggert@CS.UCLA.EDU>.
32173
32174 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
32175
32176         * modules/gettext: Add m4/threadlib.m4.
32177
32178 2008-08-19  Eric Blake  <ebb9@byu.net>
32179
32180         test-c-stack: fix compilation failure on FreeBSD 5.0
32181         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
32182         headers before <sys/resource.h>.
32183         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
32184         the bug.
32185         Reported by Nelson H. F. Beebe.
32186
32187         strverscmp: migrate from "strverscmp.h" to <string.h>
32188         * modules/string (Makefile.am): Add new hooks.
32189         * modules/strverscmp (Files): Remove strverscmp.h.
32190         (Depends-on): Add string.
32191         (configure.ac): Add indicator.
32192         (Include): Mention new header.
32193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
32194         defaults.
32195         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
32196         results.
32197         * lib/strverscmp.h: Delete.
32198         * lib/string.in.h (strverscmp): Provide declaration, when needed.
32199         * tests/test-strverscmp.c (includes): Adjust client.
32200         * lib/check-version.c (includes): Likewise.
32201         * NEWS: Document the change.
32202
32203         strverscmp: add unit test
32204         * modules/strverscmp-tests: New file.
32205         * tests/test-strverscmp.c: Likewise.
32206
32207 2008-08-19  Simon Josefsson  <simon@josefsson.org>
32208
32209         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
32210         regarding Windows crypto stuff, from Mono.
32211
32212 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
32213
32214         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
32215         if present, for intel RND.  Return error on failures.
32216
32217 2008-08-18  Ben Pfaff  <blp@gnu.org>
32218
32219         gitlog-to-changelog: give better diagnostic for failed pipe-open
32220         * build-aux/gitlog-to-changelog: Improve error message: suggest
32221         that the version of Git may be too old.
32222
32223 2008-08-18  Simon Josefsson  <simon@josefsson.org>
32224
32225         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
32226         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
32227
32228 2008-08-18  Bruno Haible  <bruno@clisp.org>
32229
32230         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
32231         pthread_in_use().
32232
32233 2008-08-18  Bruno Haible  <bruno@clisp.org>
32234
32235         * lib/glthread/threadlib.c: Include <pthread.h>.
32236
32237 2008-08-18  Bruno Haible  <bruno@clisp.org>
32238
32239         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
32240         glthread_recursive_lock_* macros.
32241         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
32242         Fix syntax error.
32243
32244 2008-08-18  Bruno Haible  <bruno@clisp.org>
32245
32246         * lib/glthread/thread.c: Avoid forcing a context switch right after
32247         thread creation.
32248
32249 2008-08-17  Bruno Haible  <bruno@clisp.org>
32250
32251         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
32252         * lib/glthread/thread.h: Provide Win32 specific implementation.
32253         * modules/thread (Files): Add lib/glthread/thread.c.
32254         (Depends-on): Add lock.
32255         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
32256
32257 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32258
32259         New module 'yield'.
32260         * modules/yield: New file.
32261         * lib/glthread/yield.h: New file.
32262         * m4/yield.m4: New file.
32263         * MODULES.html.sh (Multithreading): Add yield.
32264
32265 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32266
32267         New module 'thread'.
32268         * modules/thread: New file.
32269         * lib/glthread/thread.h: New file.
32270         * m4/thread.m4: New file.
32271         * MODULES.html.sh (Multithreading): Add thread.
32272
32273 2008-08-17  Bruno Haible  <bruno@clisp.org>
32274
32275         * lib/glthread/lock.h: Include <stdlib.h> always.
32276         * lib/glthread/tls.h: Likewise.
32277         * lib/glthread/cond.h: Likewise.
32278
32279 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32280
32281         New module 'cond'.
32282         * modules/cond: New file.
32283         * lib/glthread/cond.h: New file.
32284         * lib/glthread/cond.c: New file.
32285         * m4/cond.m4: New file.
32286         * MODULES.html.sh (Multithreading): Add cond.
32287
32288 2008-08-16  Eric Blake  <ebb9@byu.net>
32289
32290         c-stack: fix regression on Irix 5.3 from 2008-06-21
32291         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
32292         sa_sigaction...
32293         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
32294         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
32295         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
32296         * modules/signal (Makefile.am): Use the value.
32297         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
32298         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
32299         * doc/posix-headers/signal.texi (signal.h): Document this
32300         portability issue.
32301         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
32302         Reported by Tom G. Christensen.
32303
32304 2008-08-17  Bruno Haible  <bruno@clisp.org>
32305
32306         New module 'threadlib'.
32307         * modules/threadlib: New file.
32308         * lib/glthread/threadlib.c: New file, extracted from
32309         lib/glthread/lock.c.
32310         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
32311         functions.
32312         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
32313         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
32314         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
32315         macros.
32316         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
32317         (gl_DISABLE_THREADS): Remove macro.
32318         * modules/lock (Files): Remove build-aux/config.rpath.
32319         (Depends-on): Remove havelib. Add threadlib.
32320         (configure.ac-early): Remove section.
32321         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
32322         * modules/tls (Depends-on): Remove lock. Add threadlib.
32323         (Link): New section, copied from threadlib.
32324         * MODULES.html.sh (Multithreading): Add threadlib.
32325
32326 2008-08-14  Bruno Haible  <bruno@clisp.org>
32327
32328         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
32329         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
32330         glthread_rwlock_unlock, glthread_rwlock_destroy,
32331         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
32332         glthread_recursive_lock_destroy): Define as macros always.
32333         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
32334         glthread_lock_lock.
32335         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
32336         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
32337         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
32338         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
32339         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
32340         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
32341         (glthread_recursive_lock_lock_func): Renamed from
32342         glthread_recursive_lock_lock.
32343         (glthread_recursive_lock_unlock_func): Renamed from
32344         glthread_recursive_lock_unlock.
32345         (glthread_recursive_lock_destroy_func): Renamed from
32346         glthread_recursive_lock_destroy.
32347
32348 2008-08-14  Bruno Haible  <bruno@clisp.org>
32349
32350         * lib/glthread/lock.h: Renamed from lib/lock.h.
32351         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
32352         * lib/glthread/tls.h: Renamed from lib/tls.h.
32353         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
32354         * lib/fstrcmp.c: Update includes.
32355         * lib/strsignal.c: Update includes.
32356         * modules/lock (Files, Makefile.am): Update.
32357         (Include): Change to "glthread/lock.h".
32358         * modules/tls (Files, Makefile.am): Update.
32359         (Include): Change to "glthread/tls.h".
32360         * tests/test-lock.c: Update includes.
32361         * tests/test-tls.c: Update includes.
32362         * NEWS: Mention the renamed header files.
32363
32364 2008-08-11  Jim Meyering  <meyering@redhat.com>
32365
32366         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
32367
32368 2008-08-11  Eric Blake  <ebb9@byu.net>
32369
32370         test-c-stack: avoid C99-ism
32371         * tests/test-c-stack.c (main): Fix whitespace, move declaration
32372         before statement.
32373         Reported by Alain Guibert.
32374
32375 2008-08-10  Jim Meyering  <meyering@redhat.com>
32376
32377         ensure that return value of uinttostr et al are not ignored
32378         * lib/inttostr.h (__GNUC_PREREQ): Define.
32379         (__attribute_warn_unused_result__): Define.
32380         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
32381
32382 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
32383
32384         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
32385         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
32386
32387 2008-08-07  Jim Meyering  <meyering@redhat.com>
32388
32389         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
32390
32391         * modules/mkstemp (License): Relicense under LGPLv2+.
32392         * modules/tempname (License): Likewise.
32393
32394 2008-08-06  Bruno Haible  <bruno@clisp.org>
32395
32396         * lib/poll.c (poll): Further micro-optimization.
32397
32398 2008-08-06  Jim Meyering  <meyering@redhat.com>
32399
32400         inet_pton.c: use locale-independent tolower
32401         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
32402         (inet_pton6): Use c_tolower rather than tolower.
32403         * modules/inet_pton (Depends-on): Add c-ctype.
32404
32405 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
32406
32407         * lib/poll.c (poll): Avoid division when timeout is 0, cache
32408         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
32409
32410 2008-08-06  Jim Meyering  <meyering@redhat.com>
32411
32412         * modules/inet_pton (License): Relicense under LGPLv2+.
32413
32414 2008-08-03  Bruno Haible  <bruno@clisp.org>
32415
32416         Additional non-aborting API for lock and tls.
32417         * lib/lock.h: Include <errno.h>.
32418         (glthread_lock_init): New macro/function.
32419         (gl_lock_init): Define as wrapper around glthread_lock_init.
32420         (glthread_lock_lock): New macro/function.
32421         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
32422         (glthread_lock_unlock): New macro/function.
32423         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
32424         (glthread_lock_destroy): New macro/function.
32425         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
32426         (glthread_rwlock_init): New macro/function.
32427         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
32428         (glthread_rwlock_rdlock): New macro/function.
32429         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
32430         (glthread_rwlock_wrlock): New macro/function.
32431         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
32432         (glthread_rwlock_unlock): New macro/function.
32433         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
32434         (glthread_rwlock_destroy): New macro/function.
32435         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
32436         (glthread_recursive_lock_init): New macro/function.
32437         (gl_recursive_lock_init): Define as wrapper around
32438         glthread_recursive_lock_init.
32439         (glthread_recursive_lock_lock): New macro/function.
32440         (gl_recursive_lock_lock): Define as wrapper around
32441         glthread_recursive_lock_lock.
32442         (glthread_recursive_lock_unlock): New macro/function.
32443         (gl_recursive_lock_unlock): Define as wrapper around
32444         glthread_recursive_lock_unlock.
32445         (glthread_recursive_lock_destroy): New macro/function.
32446         (gl_recursive_lock_destroy): Define as wrapper around
32447         glthread_recursive_lock_destroy.
32448         (glthread_once): New macro/function.
32449         (gl_once): Define as wrapper around glthread_once.
32450         Update function declarations.
32451         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
32452         glthread_rwlock_init. Return error code.
32453         (glthread_rwlock_rdlock_multithreaded): Renamed from
32454         glthread_rwlock_rdlock. Return error code.
32455         (glthread_rwlock_wrlock_multithreaded): Renamed from
32456         glthread_rwlock_wrlock. Return error code.
32457         (glthread_rwlock_unlock_multithreaded): Renamed from
32458         glthread_rwlock_unlock. Return error code.
32459         (glthread_rwlock_destroy_multithreaded): Renamed from
32460         glthread_rwlock_destroy. Return error code.
32461         (glthread_recursive_lock_init_multithreaded): Renamed from
32462         glthread_recursive_lock_init. Return error code.
32463         (glthread_recursive_lock_lock_multithreaded): Renamed from
32464         glthread_recursive_lock_lock. Return error code.
32465         (glthread_recursive_lock_unlock_multithreaded): Renamed from
32466         glthread_recursive_lock_unlock. Return error code.
32467         (glthread_recursive_lock_destroy_multithreaded): Renamed from
32468         glthread_recursive_lock_destroy. Return error code.
32469         (glthread_once_call): Make static.
32470         (glthread_once_multithreaded): Renamed from glthread_once.
32471         * lib/tls.h: Include <errno.h>.
32472         (glthread_tls_key_init): New macro/function.
32473         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
32474         (glthread_tls_set): New macro/function.
32475         (gl_tls_set): Define as wrapper around glthread_tls_set.
32476         (glthread_tls_key_destroy): New macro/function.
32477         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
32478         Update function declarations.
32479         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
32480         glthread_tls_get.
32481         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
32482
32483 2008-08-04  Eric Blake  <ebb9@byu.net>
32484
32485         gnumakefile: use space, not TAB, outside of targets
32486         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
32487
32488 2008-08-02  Jim Meyering  <meyering@redhat.com>
32489
32490         getdate.y: avoid locale-dependent date parsing failure
32491         In Turkish locales, getdate would fail to recognize keywords
32492         containing a lowercase "i".  The solution is not to rely on
32493         locale-sensitive case-conversion.
32494         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
32495         (lookup_word): Use c_toupper in place of toupper.
32496         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
32497         Reported by Vefa Bicakci <bicave@superonline.com> in
32498         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
32499         * modules/getdate (Depends-on): Add c-ctype.
32500
32501 2008-08-02  Bruno Haible  <bruno@clisp.org>
32502
32503         * gnulib-tool (func_import): When updating or creating a .gitignore
32504         file, prepend each added line with a slash, and ignore leading slashes
32505         from the existing lines.
32506         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32507
32508 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32509
32510         Portability fix for GNU make 3.79.1.
32511         * top/GNUmakefile: Avoid 'else COND', which older GNU make
32512         versions do not understand.
32513
32514 2008-08-01  Bruno Haible  <bruno@clisp.org>
32515
32516         Work around bug of HP-UX 10.20 cc with -0.0 literal.
32517         * tests/test-isnanf.h (zero): New variable.
32518         (main): Avoid literal -0.0f.
32519         * tests/test-isnand.h (zero): New variable.
32520         (main): Avoid literal -0.0.
32521         * tests/test-isnanl.h (zero): New variable.
32522         (main): Avoid literal -0.0L.
32523         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
32524         (test_float, test_double, test_long_double): Avoid literals -0.0f,
32525         -0.0, -0.0L.
32526         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
32527         (test_signbitd): Avoid literal -0.0.
32528         (test_signbitl): Avoid literal -0.0L.
32529         * tests/test-ceilf1.c (zero): New variable.
32530         (main): Avoid literal -0.0f.
32531         * tests/test-ceill.c (zero): New variable.
32532         (main): Avoid literal -0.0L.
32533         * tests/test-floorf1.c (zero): New variable.
32534         (main): Avoid literal -0.0f.
32535         * tests/test-floorl.c (zero): New variable.
32536         (main): Avoid literal -0.0L.
32537         * tests/test-roundf1.c (zero): New variable.
32538         (main): Avoid literal -0.0f.
32539         * tests/test-round1.c (zero): New variable.
32540         (main): Avoid literal -0.0.
32541         * tests/test-roundl.c (zero): New variable.
32542         (main): Avoid literal -0.0L.
32543         * tests/test-truncf1.c (zero): New variable.
32544         (main): Avoid literal -0.0f.
32545         * tests/test-trunc1.c (zero): New variable.
32546         (main): Avoid literal -0.0.
32547         * tests/test-truncl.c (zero): New variable.
32548         (main): Avoid literal -0.0L.
32549         * tests/test-frexp.c (zero): New variable.
32550         (main): Avoid literal -0.0.
32551         * tests/test-frexpl.c (zero): New variable.
32552         (main): Avoid literal -0.0L.
32553         * tests/test-ldexpl.c (zero): New variable.
32554         (main): Avoid literal -0.0L.
32555         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32556         (zerod, zerol): New variables.
32557         (test_function): Avoid literals -0.0, -0.0L.
32558         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
32559         (zerod, zerol): New variables.
32560         (test_function): Avoid literals -0.0, -0.0L.
32561         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32562         (zerod, zerol): New variables.
32563         (test_function): Avoid literals -0.0, -0.0L.
32564         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
32565         (zerod, zerol): New variables.
32566         (test_function): Avoid literals -0.0, -0.0L.
32567         * tests/test-strtod.c (zero): New variable.
32568         (main): Avoid literal -0.0.
32569         Reported by Jonathan C. Patschke <jp@centtech.com>.
32570
32571 2008-07-31  Jim Meyering  <meyering@redhat.com>
32572
32573         sha256.h: correct definition of SHA224_DIGEST_SIZE
32574         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
32575         Reported by Paulie Pena IV <paulie4@gmail.com>.
32576         Define as 224 / 8, rather than as a literal.
32577         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
32578         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
32579         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
32580
32581 2008-07-31  Bruno Haible  <bruno@clisp.org>
32582
32583         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
32584         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
32585         Reported by Jonathan Patschke <jp@centtech.com>.
32586
32587 2008-07-31  Bruno Haible  <bruno@clisp.org>
32588
32589         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
32590         Reported by Paolo Bonzini <bonzini@gnu.org>.
32591
32592 2008-07-30  Eric Blake  <ebb9@byu.net>
32593
32594         test-strtod: allow compilation without -lm
32595         * tests/test-strtod.c (main): Avoid link dependence on fabs.
32596         Reported by Dennis Clarke <blastwave@gmail.com>.
32597
32598 2008-07-28  Jim Meyering  <meyering@redhat.com>
32599
32600         bootstrap: work also when there are no .po files in po/
32601         * build-aux/bootstrap (update_po_files): Complete the change
32602         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
32603
32604 2008-07-27  Jim Meyering  <meyering@redhat.com>
32605
32606         * users.txt: Add zile.
32607
32608 2008-07-26  Ben Pfaff  <blp@gnu.org>
32609
32610         Add missing dependencies on new m4/exponent[fdl].m4 files.
32611         * modules/isnanf-nolibm: Add m4/exponentf.m4.
32612         * modules/isnand-nolibm: Add m4/exponentd.m4.
32613         * modules/isnanl-nolibm: Add m4/exponentl.m4.
32614         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
32615         m4/isnan[fdl].m4, because the macros actually used moved.
32616         Reported by Jim Meyering.
32617
32618 2008-07-14  Ben Pfaff  <blp@gnu.org>
32619
32620         Add isinf module.
32621         * lib/isinf.c: New file.
32622         * lib/math.in.h: Define isinf macro if we have decided to replace
32623         it.
32624         * m4/isinf.m4: New file.
32625         * m4/math_h.m4: Initialize and substitute variables for isinf
32626         module.
32627         * modules/isinf: New file.
32628         * modules/isinf-tests: New file.
32629         * modules/math: Add substitutions for new module.
32630         * tests/test-isinf.c: New file.
32631         * doc/posix-functions/isinf.texi: Mention new module.
32632         * MODULES.html.sh: Mention new module.
32633
32634 2008-07-14  Ben Pfaff  <blp@gnu.org>
32635
32636         Factor out some macros for use by additional modules.
32637         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
32638         exponentf.m4.
32639         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
32640         exponentd.m4.
32641         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
32642         file exponentl.m4.
32643         * m4/exponentf.m4: New file.
32644         * m4/exponentd.m4: New file.
32645         * m4/exponentl.m4: New file.
32646         * modules/isnanf: Use new file m4/exponentf.m4.
32647         * modules/isnand: Use new file m4/exponentd.m4.
32648         * modules/isnanl: Use new file m4/exponentl.m4.
32649
32650 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
32651
32652         mktime.c: normalize tp->tm_isdst value to -1/0/1.
32653         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
32654         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
32655         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
32656
32657         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
32658         readlink on platforms without PATH_MAX.
32659
32660 2008-07-21  Eric Blake  <ebb9@byu.net>
32661
32662         Warn, not fail, on stale version.
32663         * top/GNUmakefile (_curr-ver): Tone down previous patch.
32664
32665         Don't allow installation with stale devel version number.
32666         * top/GNUmakefile (_is-install-target): New macro.
32667         (_curr-ver): Forbid installation with stale version number.
32668
32669 2008-07-20  Bruno Haible  <bruno@clisp.org>
32670
32671         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
32672         TESTS_ENVIRONMENT.
32673         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
32674
32675 2008-07-20  Bruno Haible  <bruno@clisp.org>
32676
32677         * lib/c-stack.h (c_stack_action): Add documentation.
32678         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
32679
32680 2008-07-20  Bruno Haible  <bruno@clisp.org>
32681
32682         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
32683         * modules/readlink (License): Likewise.
32684
32685 2008-07-17  Eric Blake  <ebb9@byu.net>
32686
32687         * modules/c-stack (Link): Fix typo.
32688
32689         Make c-stack use libsigsegv, when available.
32690         * modules/c-stack (Depends-on): Add libsigsegv.
32691         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
32692         needed.
32693         * lib/c-stack.c (SIGSTKSZ): Define fallback.
32694         (segv_handler, overflow_handler, c_stack_action)
32695         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
32696         implementation when libsigsegv is available, but only when using
32697         the library is necessary.
32698         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
32699         comment, explaining why XSI check fails on Linux.
32700         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
32701         * tests/test-c-stack2.sh: Tweak skip message.
32702         * NEWS: Document new link-time requirements.
32703
32704 2008-07-16  Eric Blake  <ebb9@byu.net>
32705
32706         c-stack: Expose false positives when not using libsigsegv.
32707         * modules/c-stack-tests (Files): Expand test.
32708         * tests/test-c-stack.c (main): Add means to conditionally trigger
32709         non-overflow SIGSEGV.
32710         * tests/test-c-stack2.sh: New file.
32711
32712 2008-07-14  Bruno Haible  <bruno@clisp.org>
32713
32714         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
32715         Reported by Eric Blake.
32716
32717 2008-07-14  Sam Steingold  <sds@gnu.org>
32718             Bruno Haible  <bruno@clisp.org>
32719
32720         New module libsigsegv.
32721         * modules/libsigsegv: New file.
32722         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
32723         modifications.
32724         * MODULES.html.sh (Signal handling): New section.
32725
32726 2008-07-14  Bruno Haible  <bruno@clisp.org>
32727
32728         * modules/unictype/ctype-* (Description): Add the word "function".
32729         Improves the resulting doc in MODULES.html.
32730
32731 2008-07-12  Ben Pfaff  <blp@gnu.org>
32732
32733         Add longlong module.
32734         * modules/longlong: New file.
32735
32736 2008-07-12  Bruno Haible  <bruno@clisp.org>
32737
32738         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
32739         to empty.
32740
32741 2008-07-10  Ben Pfaff  <blp@gnu.org>
32742
32743         Add isnan module.
32744         * doc/posix-functions/isnan.texi: Mention new module.
32745         * lib/math.in.h: Define isnan macro if we have decided to replace
32746         it.
32747         * m4/isnan.m4: New file.
32748         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
32749         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
32750         also.
32751         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
32752         redundancy.
32753         * m4/math_h.m4: Initialize and substitute variables for isnan
32754         module.
32755         * modules/isnan: New file.
32756         * modules/isnan-tests: New file.
32757         * modules/math: Add substitutions for new module.
32758         * tests/test-isnan.c: New file.
32759         * MODULES.html.sh: Mention new module.
32760
32761 2008-07-10  Ben Pfaff  <blp@gnu.org>
32762
32763         Add isnanf module.
32764         * lib/isnanf.m4: New file.
32765         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
32766         (gl_HAVE_ISNANF_IN_LIBM): New macro.
32767         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
32768         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
32769         * modules/isnanf: New file.
32770         * modules/isnanf-tests: New file.
32771         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
32772         files.
32773         * tests/test-isnanf-nolibm.c: factored most of its contents into
32774         new file tests/test-isnanf.h.
32775         * tests/test-isnanf.h: New file.
32776         * tests/test-isnanf.c: New file.
32777         * MODULES.html.sh: Mention new module.
32778         * doc/glibc-functions/isnanf.texi: Mention new module.
32779
32780 2008-07-10  Ben Pfaff  <blp@gnu.org>
32781
32782         Add isnand module.
32783         * lib/isnand.h: New file.
32784         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
32785         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
32786         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
32787         functionality also.
32788         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
32789         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
32790         (gl_HAVE_ISNAND_IN_LIBM): New macro.
32791         * modules/isnand: New file.
32792         * modules/isnand-tests: New file.
32793         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
32794         files.
32795         * tests/test-isnand-nolibm.c: factored most of its contents into
32796         new file tests/test-isnand.h.
32797         * tests/test-isnand.h: New file.
32798         * tests/test-isnand.c: New file.
32799         * MODULES.html.sh: Mention new module.
32800
32801 2008-07-10  Ben Pfaff  <blp@gnu.org>
32802
32803         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
32804         * lib/isnand.h: Rename lib/isnand-nolibm.h.
32805         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
32806         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
32807         * modules/isnanf-nolibm: Update references to renamed files.
32808         * modules/isnand-nolibm: Likewise.
32809         * modules/isnanf-nolibm-tests: Likewise.
32810         * modules/isnand-nolibm-tests: Likewise.
32811         * lib/frexp.c: Likewise.
32812         * lib/isfinite.c: Likewise.
32813         * lib/signbitd.c: Likewise.
32814         * lib/signbitf.c: Likewise.
32815         * lib/vasnprintf.c: Likewise.
32816         * tests/test-ceilf1.c: Likewise.
32817         * tests/test-ceilf2.c: Likewise.
32818         * tests/test-floorf1.c: Likewise.
32819         * tests/test-floorf2.c: Likewise.
32820         * tests/test-frexp.c: Likewise.
32821         * tests/test-round1.c: Likewise.
32822         * tests/test-round2.c: Likewise.
32823         * tests/test-roundf1.c: Likewise.
32824         * tests/test-strtod.c: Likewise.
32825         * tests/test-trunc1.c: Likewise.
32826         * tests/test-trunc2.c: Likewise.
32827         * tests/test-truncf1.c: Likewise.
32828         * tests/test-truncf2.c: Likewise.
32829         * NEWS: Mention the renamed header files.
32830
32831 2008-07-11  Jim Meyering  <meyering@redhat.com>
32832
32833         vc-list-files: make the last-resort awk code more portable
32834         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
32835         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
32836         does not support it.
32837
32838 2008-07-10  Eric Blake  <ebb9@byu.net>
32839
32840         Work with tar's bootstrap.
32841         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
32842         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
32843         an m4 comment.
32844
32845 2008-07-09  Jim Meyering  <meyering@redhat.com>
32846
32847         posix-shell.m4: fix typo that made this test malfunction
32848         * m4/posix-shell.m4: Remove capitalization in variable name.
32849
32850 2008-07-08  Bruno Haible  <bruno@clisp.org>
32851
32852         * m4/onceonly.m4: Update comments.
32853         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32854
32855 2008-07-04  Jim Meyering  <meyering@redhat.com>
32856
32857         * users.txt: Add vc-dwim.
32858         (bison, coreutils): Use the gitweb URL.
32859
32860 2008-07-03  Jim Meyering  <meyering@redhat.com>
32861
32862         * users.txt: Add libffcall.  From Sam Steingold.
32863
32864 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
32865
32866         getdate.y: do not ignore TZ with relative day, month or year offset
32867         * lib/getdate.y (get_date): Move the tz-handling block to follow the
32868         relative-date-handling, since otherwise, the latter would clobber the
32869         sole output (an updated Start value) of the tz-handling block.
32870         * tests/test-getdate.c: Tests for the fix
32871
32872 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32873
32874         Recognize 'foo_LIBRARIES += libgnu.a'.
32875         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
32876         makefile snippet has already specified an installation location,
32877         also using '+='.
32878
32879 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
32880
32881         getdate.y: factor out common actions
32882         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
32883         Use them in place of open-coded actions.
32884
32885 2008-07-01  Simon Josefsson  <simon@josefsson.org>
32886
32887         Add self-test for getdate module.
32888         * modules/getdate-tests: New file.
32889         * tests/test-getdate.c: New file.
32890
32891 2008-06-29  Bruno Haible  <bruno@clisp.org>
32892
32893         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
32894         .gitignore.
32895         Reported by Sylvain Beucler <beuc@beuc.net>.
32896
32897 2008-06-29  Bruno Haible  <bruno@clisp.org>
32898
32899         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
32900         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
32901
32902 2008-06-29  Bruno Haible  <bruno@clisp.org>
32903
32904         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
32905         EXTRA_DIST.
32906         Reported by Sylvain Beucler <beuc@beuc.net>.
32907
32908 2008-06-26  Jim Meyering  <meyering@redhat.com>
32909
32910         make several modules depend on the "open" module
32911         This provides slightly increased consistency when opening-for-write
32912         the name of a non-directory spelled with a trailing slash.
32913         * modules/chdir-safer: Likewise.
32914         * modules/chown: Likewise.
32915         * modules/clean-temp: Likewise.
32916         * modules/copy-file: Likewise.
32917         * modules/fchdir: Likewise.
32918         * modules/fcntl-safer: Likewise.
32919         * modules/pipe: Likewise.
32920         * modules/utime: Likewise.
32921         Prompted by Eric Blake and Bruno Haible.
32922
32923 2008-06-24  Andreas Schwab  <schwab@suse.de>
32924
32925         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
32926         literals can be used as initializers for global variables.
32927
32928 2008-06-23  Eric Blake  <ebb9@byu.net>
32929
32930         Make gnulib-cache.m4 easier to diff.
32931         * gnulib-tool (func_import): Allow newlines when reading cached
32932         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
32933
32934 2008-06-23  Bruno Haible  <bruno@clisp.org>
32935
32936         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
32937         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
32938         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
32939         m4/signalblocking.m4.
32940         (gl_PREREQ_SIGACTION): Don't invoke it.
32941         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
32942         gl_PREREQ_SIG_HANDLER_H.
32943         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32944         Don't check for sigaction here.
32945
32946 2008-06-23  Bruno Haible  <bruno@clisp.org>
32947
32948         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
32949         (install_handlers): Don't set the SA_RESETHAND flag.
32950
32951 2008-06-23  Bruno Haible  <bruno@clisp.org>
32952
32953         * m4/sigaction.m4: Comment fixes.
32954         * lib/signal.in.h: Likewise.
32955
32956 2008-06-23  Eric Blake  <ebb9@byu.net>
32957
32958         Fix typo.
32959         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
32960
32961         Avoid SA_ namespace.
32962         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
32963         Reported by Ralf Wildenhues.
32964
32965         Avoid test failure due to SA_RESTORER.
32966         * tests/test-sigaction.c (SA_MASK): New macro.
32967         (main): Avoid failing due to extension flags being set.
32968         Reported by Jim Meyering.
32969
32970         Revert use of sig-handler.h in sigprocmask.c.
32971         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
32972         it requires the existence of struct sigaction.
32973         * lib/sigprocmask.c (handler_t): Restore typedef.
32974         (rpl_signal, old_handlers): Use local type.
32975
32976 2008-06-22  Bruno Haible  <bruno@clisp.org>
32977
32978         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
32979         conditionally.
32980         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32981
32982 2008-06-22  Bruno Haible  <bruno@clisp.org>
32983
32984         * doc/posix-functions/siginterrupt.texi: Move note.
32985
32986         * lib/signal.in.h (SA_RESTART): New macro.
32987         * lib/sigaction.c: Update comment.
32988
32989         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
32990
32991         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
32992         (gl_PREREQ_SIGPROCMASK): Invoke it.
32993         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
32994
32995         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
32996
32997         * lib/sigprocmask.c: Update a comment.
32998
32999 2008-06-21  Eric Blake  <ebb9@byu.net>
33000
33001         Use sigaction module rather than signal().
33002         * modules/c-stack (Depends-on): Add sigaction.
33003         * modules/fatal-signal (Depends-on): Likewise.
33004         * modules/nanosleep (Depends-on): Likewise.
33005         * modules/sigprocmask (Files): Add sig-handler.h.
33006         * modules/sigaction (Files): Likewise.
33007         * lib/sig-handler.h (get_handler): New file, suggested by Paul
33008         Eggert.
33009         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
33010         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
33011         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33012         (init_fatal_signals): Likewise.
33013         * lib/nanosleep.c (rpl_nanosleep): Likewise.
33014         (siginterrupt): Delete fallback.
33015         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
33016         instead.
33017         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
33018         siginterrupt.
33019
33020         New module sigaction, for mingw.
33021         * modules/sigaction: New module...
33022         * modules/sigaction-tests: ...and its test.
33023         * m4/sigaction.m4: New file.
33024         * lib/sigaction.c: Likewise.
33025         * tests/test-sigaction.c: Likewise.
33026         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
33027         * modules/signal (Makefile.am): Likewise.
33028         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
33029         needed.
33030         * doc/posix-headers/signal.texi (signal.h): Mention provided
33031         types.
33032         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
33033         that sigaction is preferable.
33034         * doc/posix-functions/sigaction.texi (sigaction): Mention new
33035         module.
33036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33037         sigaction.
33038
33039         Improve robustness of sigprocmask by overriding signal.
33040         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
33041         is in use.
33042         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
33043         (SIGKILL, SIGSTOP): Provide fallbacks.
33044         (rpl_signal): Implement.
33045         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
33046         signal can be called inside handlers.
33047
33048         Fix nanosleep module on mingw.
33049         * modules/nanosleep (Depends-on): Add sys_select.
33050         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
33051
33052         Fix licensing of sigprocmask.
33053         * modules/raise (License): Relicense as LGPL.
33054
33055 2008-06-21  Bruno Haible  <bruno@clisp.org>
33056
33057         * lib/propername.c (proper_name_utf8): Don't use the transliterated
33058         result if it contains question marks.
33059         Reported by Michael Geng <linux@michaelgeng.de>.
33060
33061 2008-06-19  Bruno Haible  <bruno@clisp.org>
33062
33063         Fix CVS-ism.
33064         * doc/gnulib.texi: Include updated-stamp.texi.
33065         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
33066         (updated-stamp.texi): New rule.
33067         (gnulib.info): Depend on it.
33068         * doc/.gitignore: Add updated-stamp.texi.
33069         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
33070
33071 2008-06-19  Bruno Haible  <bruno@clisp.org>
33072
33073         * doc/Makefile (gnulib.info): Update and simplify dependencies.
33074         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33075
33076 2008-06-19  Eric Blake  <ebb9@byu.net>
33077
33078         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
33079         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
33080         Reported by Stepan Kasal.
33081
33082 2008-06-18  Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/fatal-signal.c (init_fatal_signals): Add comment.
33085         Reported by Eric Blake.
33086
33087 2008-06-18  Eric Blake  <ebb9@byu.net>
33088
33089         Work around cygwin 1.5.25 strsignal bug.
33090         * tests/test-strsignal.c: Allow for const char *.
33091         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
33092
33093 2008-06-18  Simon Josefsson  <simon@josefsson.org>
33094
33095         * users.txt: Update URL to article and add author/date
33096         information.
33097
33098 2008-06-17  Bruno Haible  <bruno@clisp.org>
33099
33100         New macro gl_DISABLE_THREADS.
33101         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
33102         if the user did not pass --enable-threads or --disable-threads option.
33103         (gl_DISABLE_THREADS): New macro.
33104         Reported by Eric Blake <ebb9@byu.net>.
33105
33106 2008-06-17  Bruno Haible  <bruno@clisp.org>
33107
33108         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
33109         when the macro ignores it.
33110         Based on a patch by Eric Blake <ebb9@byu.net>.
33111
33112 2008-06-17  Bruno Haible  <bruno@clisp.org>
33113
33114         * modules/tls (License): Change to LGPLv2+.
33115         Reported by Eric Blake.
33116
33117 2008-06-17  Eric Blake  <ebb9@byu.net>
33118
33119         Simplify c-stack prerequisites.
33120         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
33121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
33122         no longer requires <ucontext.h> to exist.  Optimize setrlimit
33123         check.
33124         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
33125         <sys/resource.h>.
33126
33127         Move c-stack test into testsuite.
33128         * modules/c-stack-tests: New file.
33129         * lib/c-stack.c [DEBUG]: Move test program...
33130         * tests/test-c-stack.c: ...into this new file.  Skip rather than
33131         fail test if sigaltstack is lacking.
33132         * tests/test-c-stack.sh: New driver file.
33133
33134 2008-06-16  Eric Blake  <ebb9@byu.net>
33135
33136         Use raise module consistently.
33137         * modules/fatal-signal (Depends-on): Add raise.
33138         * modules/sigprocmask (Depends-on): Likewise.
33139         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
33140         * lib/sigprocmask.c (sigprocmask): Likewise.
33141         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33142         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
33143
33144         Fix compliance bug in sigpending.
33145         * lib/sigprocmask.c (sigpending): Return pending array via
33146         parameter, not return value.
33147
33148 2008-06-14  Eric Blake  <ebb9@byu.net>
33149
33150         Improve obstack-printf test code.
33151         * tests/test-obstack-printf.c (test_function): Fix comment, and
33152         simplify usage of obstack_* in macros.  Add a test for coverage.
33153         Reported by Bruno Haible.
33154
33155 2008-06-14  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
33158         array size as a constant, not as a const variable.
33159         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
33160         AC_USE_SYSTEM_EXTENSIONS.
33161         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33162         Test whether the obstack_printf function actually exists.
33163         * modules/obstack-printf (Depends-on): Add extensions.
33164         (Include): Remove obstack.h.
33165         * modules/obstack-printf-posix (Depends-on): Add extensions.
33166         (Include): Remove obstack.h.
33167
33168 2008-06-13  Eric Blake  <ebb9@byu.net>
33169
33170         Add obstack-printf and obstack-printf-posix modules.
33171         * modules/obstack-printf: New file.
33172         * modules/obstack-printf-posix: Likewise.
33173         * MODULES.html.sh (Misc): Mention them.
33174         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33175         Likewise.
33176         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33177         Likewise.
33178         * modules/stdio (Makefile.am): Accomodate new modules.
33179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33180         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
33181         Declare.
33182         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
33183         functions.
33184         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
33185         (gl_REPLACE_OBSTACK_PRINTF): New macros
33186         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
33187         * tests/test-obstack-printf.c: New file.
33188         * modules/obstack-printf-tests: Likewise.
33189         * modules/obstack-printf-posix-tests: Likewise.
33190
33191 2008-06-11  Bruno Haible  <bruno@clisp.org>
33192
33193         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
33194         * lib/open.c: Include errno.h.
33195         (open): Fail when attempting to write to a file that has a trailing
33196         slash.
33197         * tests/test-open.c (main): Test against trailing slash bug.
33198         * doc/posix-functions/open.texi: Mention the trailing slash bug.
33199
33200 2008-06-10  Bruno Haible  <bruno@clisp.org>
33201
33202         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
33203         for $? to work inside the trap command, with various /bin/sh-s.
33204         * tests/test-vc-list-files-cvs.sh: Likewise.
33205
33206 2008-06-10  Bruno Haible  <bruno@clisp.org>
33207
33208         * lib/acl-internal.h: Don't include gettext.h here.
33209         * lib/set-mode-acl.c: Include gettext.h here.
33210         * lib/copy-acl.c: Likewise.
33211
33212 2008-06-10  Bruno Haible  <bruno@clisp.org>
33213
33214         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
33215         * lib/wait-process.c (wait_subprocess): Likewise.
33216         * lib/execute.h (execute): Add termsigp argument.
33217         * lib/execute.c (execute): Likewise.
33218         * lib/csharpcomp.c (compile_csharp_using_pnet,
33219         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
33220         * lib/csharpexec.c (execute_csharp_using_pnet,
33221         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
33222         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
33223         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
33224         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
33225         is_jikes_present): Update.
33226         * lib/javaexec.c (execute_java_class): Update.
33227         * lib/javaversion.c (execute_and_read_line): Update.
33228         * NEWS: Document the changes.
33229         Reported by Eric Blake.
33230
33231 2008-06-10  Eric Blake  <ebb9@byu.net>
33232
33233         Add missing include.
33234         * tests/test-strstr.c (includes): Add <signal.h>.
33235         * tests/test-strcasestr.c (includes): Likewise.
33236         * tests/test-memmem.c (includes): Likewise.
33237
33238 2008-06-10  Bruno Haible  <bruno@clisp.org>
33239
33240         * lib/wait-process.c (wait_subprocess): Add an assertion.
33241
33242 2008-06-10  Bruno Haible  <bruno@clisp.org>
33243
33244         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
33245
33246 2008-06-10  Bruno Haible  <bruno@clisp.org>
33247
33248         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
33249         using alarm().
33250         * tests/test-strcasestr.c (main): Likewise.
33251         * tests/test-strstr.c (main): Likewise.
33252
33253 2008-06-09  Bruno Haible  <bruno@clisp.org>
33254
33255         Work around the Solaris 10 ACE ACLs ABI change.
33256         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
33257         declare if ACL_NO_TRIVIAL is present.
33258         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
33259         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
33260         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
33261         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
33262         define if ACL_NO_TRIVIAL is present.
33263         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
33264         and use the current ABI.
33265         (file_has_acl): Use same #if condition as elsewhere.
33266         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
33267         in use, and use the current ABI.
33268         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
33269         Reported by Jim Meyering.
33270
33271 2008-06-09  Eric Blake  <ebb9@byu.net>
33272
33273         Work around environments that (stupidly) ignore SIGALRM.
33274         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
33275         before using alarm().
33276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33277         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33278         Reported by Ian Beckwith <ianb@erislabs.net>.
33279
33280         Produce autobuild blurb earlier in log.
33281         * modules/autobuild (configure.ac-early): Move AB_INIT here.
33282
33283 2008-06-09  Jim Meyering  <meyering@redhat.com>
33284         and OndÅ™ej Vašík  <ovasik@redhat.com>
33285
33286         utimens.c: correct kernel bug work-around
33287         OndÅ™ej Vašík found that the invalid return value of 280 indicates
33288         failure, not success, and the kernel bug we're trying to work
33289         around affects not just the utimensat call, but also the fallback
33290         futimens call.
33291         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
33292         not success.
33293         [HAVE_FUTIMENS]: Use the same work-around, here.
33294
33295 2008-06-09  Jim Meyering  <meyering@redhat.com>
33296
33297         add more guards around definition of ACE_-related code
33298         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
33299         ALLOW and ACE_OWNER are also defined.
33300
33301 2008-06-08  Bruno Haible  <bruno@clisp.org>
33302
33303         * lib/acl-internal.h: Add me as co-author.
33304         * lib/file-has-acl.c: Likewise.
33305         * lib/set-mode-acl.c: Likewise.
33306         * lib/copy-acl.c: Likewise.
33307
33308 2008-06-08  Bruno Haible  <bruno@clisp.org>
33309
33310         Add support for AIX ACLs.
33311         * lib/acl-internal.h (acl_nontrivial): New declaration.
33312         * lib/file-has-acl.c (acl_nontrivial): New function.
33313         (file_has_acl): Add implementation using AIX 4 ACL API.
33314         * lib/set-mode-acl.c (qset_acl): Likewise.
33315         * lib/copy-acl.c (qcopy_acl): Likewise.
33316
33317 2008-06-08  Bruno Haible  <bruno@clisp.org>
33318
33319         Add support for HP-UX ACLs.
33320         * lib/acl-internal.h (acl_nontrivial): New declaration.
33321         * lib/file-has-acl.c (acl_nontrivial): New function.
33322         (file_has_acl): Add implementation using HP-UX 11 ACL API.
33323         * lib/set-mode-acl.c (qset_acl): Likewise.
33324         * lib/copy-acl.c (qcopy_acl): Likewise.
33325
33326 2008-06-08  Bruno Haible  <bruno@clisp.org>
33327
33328         Add support for Cygwin ACLs.
33329         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
33330         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
33331         the chmod_or_fchmod call.
33332         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
33333
33334 2008-06-08  Bruno Haible  <bruno@clisp.org>
33335
33336         Fix bug with setuid modes in Solaris 10+ code.
33337         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
33338         succeeded, when the mode contains some special bits.
33339
33340 2008-06-08  Bruno Haible  <bruno@clisp.org>
33341
33342         Add support for Solaris 7..10 ACLs.
33343         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
33344         declarations.
33345         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
33346         functions.
33347         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
33348         * lib/set-mode-acl.c (qset_acl): Likewise.
33349         * lib/copy-acl.c (qcopy_acl): Likewise.
33350
33351 2008-06-08  Bruno Haible  <bruno@clisp.org>
33352
33353         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
33354         declaration.
33355         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
33356         (acl_access_nontrivial): Remove MacOS X case.
33357         (file_has_acl): Use acl_extended_nontrivial.
33358         * lib/copy-acl.c (qcopy_acl): Likewise.
33359
33360 2008-06-08  Bruno Haible  <bruno@clisp.org>
33361
33362         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
33363
33364 2008-06-08  Jim Meyering  <meyering@redhat.com>
33365
33366         * modules/acl (Maintainer): Add Bruno Haible.
33367
33368 2008-06-07  Bruno Haible  <bruno@clisp.org>
33369
33370         Improve support for Tru64 ACLs.
33371         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
33372         ACL on OSF/1.
33373
33374 2008-06-07  Bruno Haible  <bruno@clisp.org>
33375
33376         Add support for MacOS X ACLs.
33377         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
33378         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
33379         * lib/set-mode-acl.c (qset_acl): Likewise.
33380         * lib/copy-acl.c (qcopy_acl): Likewise.
33381
33382 2008-06-07  Bruno Haible  <bruno@clisp.org>
33383
33384         Fix memory leak introduced on 2008-05-22.
33385         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
33386         use.
33387
33388 2008-06-07  Bruno Haible  <bruno@clisp.org>
33389
33390         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
33391         to construct an empty ACL.
33392
33393 2008-06-07  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
33396         precisely.
33397         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
33398
33399 2008-06-07  Bruno Haible  <bruno@clisp.org>
33400
33401         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
33402         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
33403
33404 2008-06-07  Bruno Haible  <bruno@clisp.org>
33405
33406         * doc/posix-functions/_setjmp.texi: Explain the use of this function
33407         regardless of POSIX.
33408         * doc/posix-functions/_longjmp.texi: Likewise.
33409         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
33410         SystemV platform in this case.
33411
33412 2008-06-06  Eric Blake  <ebb9@byu.net>
33413
33414         Document abort() bugs.
33415         * doc/posix-functions/abort.texi (abort): Mention anomalies.
33416
33417         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
33418         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
33419         sigsetjmp.
33420         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
33421         siglongjmp, but only as a macro.
33422         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
33423         is obsolete.
33424         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
33425
33426         Tweak documentation to cover cygwin argz bugs.
33427         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
33428         argz bug fix; no code change needed since no cygwin releases
33429         occurred between the last fix and the bug being tested.
33430         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
33431         module and recently fixed cygwin bugs.
33432         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
33433         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
33434         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
33435         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33436         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
33437         Likewise.
33438         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
33439         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
33440         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
33441         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
33442         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
33443         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
33444         Likewise.
33445
33446         Avoid gcc warning on cygwin.
33447         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
33448         !ACL_NO_TRIVIAL]: Avoid unused variable.
33449
33450 2008-06-05  Eric Blake  <ebb9@byu.net>
33451
33452         Be tolerant of UNKNOWN version in gnulib-tool test dir.
33453         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
33454         git-version-gen fails to come up with a version.
33455         Reported by Simon Josefsson.
33456
33457 2008-06-05  Jim Meyering  <meyering@redhat.com>
33458             Paul Eggert  <eggert@cs.ucla.edu>
33459
33460         utimens.c: work around a probable Linux kernel bug
33461         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
33462         appears to be a kernel bug that causes utimensat to return 280
33463         instead of 0, indicating success.
33464
33465 2008-06-04  Bruno Haible  <bruno@clisp.org>
33466
33467         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
33468         2008-06-01 commit.
33469
33470 2008-06-04  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
33473         * lib/file-has-acl.c (acl_access_nontrivial): New function.
33474         (file_has_acl): Use it. Save errno afterwards.
33475         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
33476
33477 2008-06-03  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
33480         draft code. Simplify #ifs.
33481         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
33482         Put Solaris code after POSIX-draft code. Fix comments regarding
33483         Solaris 10, HP-UX. Mention Cygwin.
33484         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
33485
33486 2008-06-03  Eric Blake  <ebb9@byu.net>
33487
33488         Provide fallback for older kernels.
33489         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
33490         Provide runtime fallback if kernel lacks support.
33491         Reported by Mike Frysinger.
33492
33493 2008-06-02  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
33496         it exists.
33497
33498 2008-06-02  Bruno Haible  <bruno@clisp.org>
33499
33500         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
33501         * lib/copy-acl.c (qcopy_acl): Update comment.
33502
33503 2008-06-02  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
33506         like ACL APIs.
33507
33508 2008-06-02  Bruno Haible  <bruno@clisp.org>
33509
33510         * tests/test-file-has-acl.sh: Use different code for Cygwin.
33511         * tests/test-set-mode-acl.sh: Likewise.
33512         * tests/test-copy-acl.sh: Likewise.
33513         * tests/test-copy-file.sh: Likewise.
33514
33515 2008-06-02  Bruno Haible  <bruno@clisp.org>
33516
33517         * tests/test-file-has-acl.sh: Remove unused code.
33518
33519 2008-06-01  Bruno Haible  <bruno@clisp.org>
33520
33521         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
33522         (copy_acl): Just a wrapper around qcopy_acl that emits the error
33523         messages.
33524         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
33525
33526 2008-06-01  Bruno Haible  <bruno@clisp.org>
33527
33528         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
33529         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
33530         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
33531         APIs.
33532         * modules/acl-tests (configure.ac): Remove tests now contained in
33533         m4/acl.m4.
33534
33535 2008-06-02  Jim Meyering  <meyering@redhat.com>
33536
33537         announce-gen: use a better key-server host name
33538         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
33539         it may be more consistently reliable.  Suggested by Werner Koch
33540         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
33541
33542 2008-06-01  Bruno Haible  <bruno@clisp.org>
33543
33544         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
33545         Reported by Voroskoi Andras <voroskoi@gmail.com>.
33546
33547 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
33548
33549         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
33550
33551 2008-06-01  Bruno Haible  <bruno@clisp.org>
33552
33553         New ACL tests.
33554         * tests/test-file-has-acl.sh: New file.
33555         * tests/test-file-has-acl.c: New file.
33556         * tests/test-set-mode-acl.sh: New file.
33557         * tests/test-set-mode-acl.c: New file.
33558         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
33559         * tests/test-copy-acl.c: New file.
33560         * modules/acl-tests: New file, based on modules/copy-file-tests.
33561         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
33562         (Depends-on): Add acl-tests.
33563         (configure.ac): Remove checks.
33564         (Makefile.am): Don't create test-sameacls program here any more.
33565
33566 2008-06-01  Bruno Haible  <bruno@clisp.org>
33567
33568         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
33569         * tests/test-sameacls.c: Include progname.h.
33570         (main): Invoke set_program_name. Portability fixes for MacOS X,
33571         Solaris, HP-UX.
33572
33573 2008-06-01  Bruno Haible  <bruno@clisp.org>
33574
33575         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
33576         function.
33577         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
33578
33579 2008-06-01  Bruno Haible  <bruno@clisp.org>
33580
33581         * modules/rpmatch (Depends-on): Add strdup.
33582
33583 2008-06-01  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/pipe.c: Include unistd-safer.h.
33586         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
33587         * modules/pipe (Depends-on): Add unistd-safer.
33588
33589 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33590
33591         * modules/autobuild (configure.ac): Call AB_INIT.
33592
33593 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33594
33595         * tests/test-getaddrinfo.c: Don't print debug messages by default.
33596         Suggested by Bruno Haible <bruno@clisp.org>.
33597
33598 2008-05-30  Simon Josefsson  <simon@josefsson.org>
33599
33600         * tests/test-base64.c: Cast size_t to unsigned long when invoking
33601         printf.  Use %lu instead of %d.  Reported by Bruno Haible
33602         <bruno@clisp.org>.
33603
33604 2008-05-29  Eric Blake  <ebb9@byu.net>
33605
33606         Prefer new POSIX 200x interfaces over futimesat.
33607         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
33608         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
33609         when available.
33610         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
33611
33612 2008-05-28  Bruno Haible  <bruno@clisp.org>
33613
33614         * modules/stpcpy (License): Change to LGPLv2+.
33615         Requested by David Lutterkort <dlutter@redhat.com>.
33616
33617 2008-05-27  Bruno Haible  <bruno@clisp.org>
33618
33619         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
33620         current mingw.
33621         Reported by Jose E. Marchesi <jemarch@gnu.org>.
33622
33623 2008-05-27  Bruno Haible  <bruno@clisp.org>
33624
33625         * modules/iconv_open (Link): New section, from module 'iconv'.
33626         * modules/striconv (Link): Likewise.
33627         * modules/striconveh (Link): Likewise.
33628         * modules/xstriconv (Link): Likewise.
33629         * modules/unicodeio (Link): Likewise.
33630         * modules/propername (Link): Likewise.
33631         Reported by Jim Meyering.
33632
33633 2008-05-26  Jim Meyering  <meyering@redhat.com>
33634
33635         sha256: do not artificially restrict buffer length to be < 2^32
33636         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
33637         uint32_t to size_t.
33638         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
33639         to match.
33640
33641         avoid unaligned access errors, e.g., on sparc
33642         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
33643         direct access through a possibly-unaligned uint64* pointer.
33644         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
33645         direct access through a possibly-unaligned uint32* pointer.
33646         Prompted by this patch from Tom "spot" Callaway:
33647         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
33648
33649         sha512.c: fix typo in comment
33650         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
33651
33652 2008-05-25  Bruno Haible  <bruno@clisp.org>
33653
33654         * lib/set-mode-acl.c: Renamed from lib/acl.c.
33655         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
33656         (Makefile.am): Update lib_SOURCES.
33657
33658 2008-05-25  Bruno Haible  <bruno@clisp.org>
33659
33660         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
33661
33662 2008-05-25  Jim Meyering  <meyering@redhat.com>
33663
33664         useless-if-before-free: freed expr may have white-space differences
33665         * build-aux/useless-if-before-free: Recognize cases in which the
33666         freed expression differs from the tested one in embedded white
33667         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
33668         $1 was used, so we can't make any regexp shy.  Improved tests now
33669         detect this.
33670
33671         useless-if-before-free: accept white space in the expression.
33672         * build-aux/useless-if-before-free: For now, any white space
33673         in the expression must be identical in the free argument.
33674
33675         useless-if-before-free: efficiency tweak
33676         * build-aux/useless-if-before-free: Make the expression-matching
33677         regexp "shy".
33678         Make the *outer* regexp shy, not the expr-matching one.
33679
33680         update code-in-comment to accept cast of free arg
33681         * build-aux/useless-if-before-free: Update regexp.
33682
33683 2008-05-25  Bruno Haible  <bruno@clisp.org>
33684
33685         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
33686         * modules/copy-file-tests (Files, Makefile.am): Update.
33687         * tests/test-copy-file.c (func_test_copy): Update.
33688
33689 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
33690
33691         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
33692
33693 2008-05-23  Bruno Haible  <bruno@clisp.org>
33694
33695         Improve support for ACLs on OSF/1.
33696         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
33697         Remove fallback for unknown flavors of ACLs.
33698
33699 2008-05-22  Bruno Haible  <bruno@clisp.org>
33700
33701         Add support for ACLs on OSF/1.
33702         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
33703         replacements.
33704         (acl_free_text): New macro fallback.
33705         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
33706         acl_free.
33707         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
33708         acl_free_text function. Require AC_C_INLINE.
33709
33710 2008-05-22  Bruno Haible  <bruno@clisp.org>
33711
33712         Make copy_acl work on MacOS X 10.5.
33713         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
33714         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
33715         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
33716         If MODE_INSIDE_ACL, don't assume that every system has the same text
33717         representation for ACLs as FreeBSD.
33718         * lib/copy-acl.c (copy_acl): Add support for platforms with
33719         !MODE_INSIDE_ACL.
33720         * lib/file-has-acl.c (file_has_acl): Likewise.
33721         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
33722         FreeBSD, MacOS X, or IRIX, respectively.
33723
33724 2008-05-22  Bruno Haible  <bruno@clisp.org>
33725
33726         * lib/acl.h: Don't include <sys/acl.h>.
33727         (GETACLCNT): Move fallback to lib/acl-internal.h.
33728         * lib/acl-internal.h: Include <sys/acl.h> here.
33729         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
33730
33731 2008-05-22  Bruno Haible  <bruno@clisp.org>
33732
33733         Split off copy_acl function to separate file.
33734         * lib/copy-acl.c: New file, extracted from lib/acl.c.
33735         * lib/acl.c (copy_acl): Moved function to separate file.
33736         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
33737         * modules/acl (Files): Add lib/copy-acl.c.
33738         (Makefiles.am): Augment lib_SOURCES.
33739
33740 2008-05-22  Bruno Haible  <bruno@clisp.org>
33741
33742         * modules/copy-file-tests: New file.
33743         * tests/test-copy-file.sh: New file.
33744         * tests/test-copy-file.c: New file.
33745         * tests/test-copy-file-sameacls.c: New file.
33746
33747 2008-05-22  Eric Blake  <ebb9@byu.net>
33748
33749         Avoid gcc warning.
33750         * tests/test-memcmp.c (main): Pass NULL indirectly.
33751
33752 2008-05-21  Bruno Haible  <bruno@clisp.org>
33753
33754         Add reference doc about ACLs.
33755         * doc/acl-resources.txt: New file.
33756         * doc/acl-cygwin.txt: New file.
33757
33758 2008-05-21  Bruno Haible  <bruno@clisp.org>
33759
33760         Avoid one more warning from gcc.
33761         * lib/vasnprintf.c (IF_LINT): Update comments.
33762         (VASNPRINTF): Use it also for the 'prefix' array initializer.
33763
33764 2008-05-21  Jim Meyering  <meyering@redhat.com>
33765
33766         avoid a warning from gcc
33767         * lib/vasnprintf.c (IF_LINT): Define.
33768         (scale10_round_decimal_long_double):
33769         Use it to avoid a "may be used uninitialized" warning.
33770         (scale10_round_decimal_double): Likewise.
33771
33772 2008-05-21  Simon Josefsson  <simon@josefsson.org>
33773
33774         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
33775         declared.
33776
33777 2008-05-20  Bruno Haible  <bruno@clisp.org>
33778
33779         * tests/test-memcmp.c (main): Test also the sign of the result. Test
33780         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
33781
33782 2008-05-20  Simon Josefsson  <simon@josefsson.org>
33783
33784         * modules/memcmp-tests: New file.
33785         * tests/test-memcmp.c: New file.
33786
33787 2008-05-19  Bruno Haible  <bruno@clisp.org>
33788
33789         * modules/propername (Notice, configure.ac): Put quoted "..." into
33790         --keyword option.
33791         * lib/propername.h: Update comments accordingly.
33792         Reported by Eric Blake.
33793
33794 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
33795
33796         * modules/getpass-gnu (Depends-on): Add fseeko.
33797
33798 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33799
33800         * modules/base64-tests: New file.
33801
33802 2008-05-19  Bo Borgerson <gigabo@gmail.com>
33803
33804         * lib/base64.c (base64_decode_ctx): If a decode context structure
33805         was passed in use it to ignore newlines.  If a context structure
33806         was _not_ passed in, continue to treat newlines as garbage (this
33807         is the historical behavior).  Formerly base64_decode.
33808         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33809         takes a decode context structure.
33810         * lib/base64.h (base64_decode): Macro for four-argument calls.
33811         (base64_decode_alloc): Likewise.
33812         * lib/base64.c (base64_decode_ctx): If a decode context structure
33813         was passed in use it to ignore newlines.  If a context structure
33814         was _not_ passed in, continue to treat newlines as garbage (this
33815         is the historical behavior).  Formerly base64_decode.
33816         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
33817         takes a decode context structure.
33818         * lib/base64.h (base64_decode): Macro for four-argument calls.
33819         (base64_decode_alloc): Likewise.
33820
33821 2008-05-19  Jim Meyering  <meyering@redhat.com>
33822
33823         avoid a warning from gcc
33824         * lib/trim.c (IF_LINT): Define.
33825         (trim2): Use it to avoid a "may be used uninitialized" warning.
33826
33827         Fix doc typo.
33828         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
33829
33830 2008-05-19  Bruno Haible  <bruno@clisp.org>
33831
33832         * doc/glibc-functions/getpass.texi: Document limits of other
33833         implementations.
33834
33835 2008-05-19  Simon Josefsson  <simon@josefsson.org>
33836             Bruno Haible <bruno@clisp.org>
33837
33838         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
33839
33840 2008-05-18  Bruno Haible  <bruno@clisp.org>
33841
33842         * modules/propername: New file, from GNU gettext.
33843         * lib/propername.h: New file, from GNU gettext.
33844         * lib/propername.c: New file, from GNU gettext.
33845         * MODULES.html.sh (Internationalization functions): Add propername.
33846
33847 2008-05-16  Jim Meyering  <meyering@redhat.com>
33848             Bruno Haible  <bruno@clisp.org>
33849
33850         Avoid some warnings from "gcc -Wshadow".
33851         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
33852
33853 2008-05-15  Eric Blake  <ebb9@byu.net>
33854
33855         Extend previous patch to cygwin 1.7.0.
33856         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
33857         fast implementation in cygwin >= 1.7.0.
33858         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33860
33861 2008-05-15  Bruno Haible  <bruno@clisp.org>
33862
33863         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
33864         implementation in glibc >= 2.9.
33865         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33867
33868 2008-05-15  Bruno Haible  <bruno@clisp.org>
33869
33870         * MODULES.html.sh (Internationalization functions): Remove linebreak.
33871         (Unicode string functions): Add unilbrk/*.
33872         Reported by Karl Berry.
33873
33874 2008-05-15  Eric Blake  <ebb9@byu.net>
33875
33876         Fix violation of <stdbool.h> replacement in regex.
33877         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
33878         * lib/regexec.c (re_search_internal): Likewise.
33879         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
33880
33881 2008-05-15  Jim Meyering  <meyering@redhat.com>
33882
33883         avoid distracting test output when git or cvs is not found
33884         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
33885         * tests/test-vc-list-files-git.sh: Likewise.
33886
33887 2008-05-15  Eric Blake  <ebb9@byu.net>
33888
33889         Glibc finally accepted the memmem speedup code, bugzilla #5514.
33890         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
33891         glibc version.
33892         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
33893         * doc/posix-functions/strstr.texi (strstr): Likewise.
33894         * lib/str-two-way.h (MAX): Sychronize with glibc.
33895
33896 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
33897
33898         * lib/regcomp.c (optimize_utf8): Add a note on why we test
33899         opr.ctx_type.
33900         (calc_first): Initialize constraint field.
33901         (duplicate_node_closure): Use it instead of special casing ANCHORS.
33902         Fix grammar.
33903         (duplicate_node): Merge constraint field for all node types.
33904         (calc_eclosure_iter): Look at constraint field for all node types.
33905         * lib/regex_internal.c (create_cd_newstate): Don't look at
33906         opr.ctx_type.
33907
33908 2008-05-14  Bruno Haible  <bruno@clisp.org>
33909
33910         Help GCC to do better code generation.
33911         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
33912         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
33913         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
33914         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
33915         Declare with attribute 'malloc' if supported.
33916
33917 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
33918
33919         use "echo STR|wc -c" rather than unportable "expr length STR"
33920         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
33921         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
33922
33923 2008-05-14  Jim Meyering  <meyering@redhat.com>
33924
33925         use dd ibs=$n count=1 ... rather than less-portable head -c$n
33926         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
33927         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
33928         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
33929         via Collin Lasse.
33930
33931 2008-05-14  Eric Blake  <ebb9@byu.net>
33932
33933         Avoid quadratic growth in gl_LIBSOURCES.
33934         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
33935         Suggested by Bruno Haible.
33936
33937         Test xmemdup0.
33938         * modules/xmemdup0-tests: New file.
33939         * tests/test-xmemdup0.c: Likewise.
33940
33941 2008-05-13  Eric Blake  <ebb9@byu.net>
33942
33943         Split xmemdup0 into its own module.
33944         * modules/xmemdup0: New file.
33945         * lib/xmemdup0.h: Likewise.
33946         * lib/xmemdup0.c: Likewise.
33947         * MODULES.html.sh (Memory management functions): Add xmemdup0.
33948         * lib/xalloc.h (xmemdup0): Remove.
33949         * lib/xmalloc.c (xmemdup0): Likewise.
33950
33951 2008-05-13  Eric Blake  <ebb9@byu.net>
33952             Bruno Haible  <bruno@clisp.org>
33953
33954         Reduce number of forks required during autoconf.
33955         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
33956         and gl_LIBSOURCES_DIR.
33957         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
33958         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
33959         m4_syscmd per file.
33960         <m4_foreach_w>: Move...
33961         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
33962
33963 2008-05-13  Eric Blake  <ebb9@byu.net>
33964
33965         * gnulib-tool: Fix various comment typos.
33966
33967 2008-05-12  Bruno Haible  <bruno@clisp.org>
33968
33969         Tailor the linebreaking algorithm.
33970         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
33971
33972 2008-05-12  Bruno Haible  <bruno@clisp.org>
33973
33974         Update to Unicode 5.0.0.
33975         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33976         LBP_JV, LBP_JT. Redistribute values.
33977         (unilbrk_table): Change size.
33978         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
33979         Unicode TR#14 rev. 22.
33980         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
33981         LBP_JV, LBP_JT. Redistribute values.
33982         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
33983         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
33984         Update.
33985         * lib/unilbrk/lbrkprop1.h: Regenerated.
33986         * lib/unilbrk/lbrkprop2.h: Regenerated.
33987         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
33988         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
33989         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
33990         Likewise.
33991         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
33992         Likewise.
33993         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
33994         result.
33995         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
33996         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
33997         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
33998         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
33999         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
34000         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
34001
34002 2008-05-11  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
34005
34006 2008-05-11  Bruno Haible  <bruno@clisp.org>
34007
34008         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
34009         * modules/unilbrk/gen-lbrk: New file.
34010
34011 2008-05-11  Bruno Haible  <bruno@clisp.org>
34012
34013         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
34014         * m4/sha512.m4 (gl_SHA512): Likewise.
34015
34016 2008-05-11  Jim Meyering  <meyering@redhat.com>
34017
34018         New modules: crypto/sha256, crypto/sha512 (from coreutils)
34019         * modules/crypto/sha256: New file.
34020         * modules/crypto/sha512: Likewise.
34021         * lib/sha256.c: Likewise.
34022         * lib/sha256.h: Likewise.
34023         * lib/sha512.c: Likewise.
34024         * lib/sha512.h: Likewise.
34025         * lib/u64.h: Likewise.
34026         * m4/sha256.m4: Likewise.
34027         * m4/sha512.m4: Likewise.
34028         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
34029
34030 2008-05-10  Bruno Haible  <bruno@clisp.org>
34031
34032         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
34033         (Input/Output <stdio.h>): Add xprintf.
34034         (Signal handling <signal.h>): Add strsignal.
34035         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
34036         (Core language properties): Add func.
34037         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
34038         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
34039         strings.
34040         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
34041         (Input/output): New section.
34042         (File system functions): Add openat-die, stat-macros.
34043         (Networking functions): Add sockets.
34044         (Unicode string functions): Add unictype/*.
34045         (Support for building libraries and executables): Add gperf.
34046         (Support for building documentation): Add agpl-3.0.
34047         (Misc): Add nocrash.
34048
34049 2008-05-10  Bruno Haible  <bruno@clisp.org>
34050
34051         * modules/unictype/gen-ctype: New file.
34052
34053 2008-05-10  Jim Meyering  <meyering@redhat.com>
34054
34055         Make chdir-safer.c more efficient on a system with no symlinks.
34056         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
34057         also if ELOOP is zero.  Suggested by Bruno Haible.
34058
34059         Make chdir-safer.c slightly safer.
34060         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
34061         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
34062
34063         Avoid compile failure on systems without ELOOP (like mingw).
34064         * lib/chdir-safer.c (ELOOP): Define if not already defined.
34065         Reported by Bruno Haible.
34066
34067 2008-05-10  Bruno Haible  <bruno@clisp.org>
34068
34069         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
34070         (is_utf8_encoding): Use a case-insensitive comparison.
34071         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
34072         streq.
34073
34074 2008-05-10  Bruno Haible  <bruno@clisp.org>
34075
34076         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
34077         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
34078         * lib/unilbrk/ulc-common.h (iconv_string_length,
34079         iconv_string_keeping_offsets): Remove declarations.
34080         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
34081         Don't include <iconv.h>, streq.h, xsize.h.
34082         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
34083         conversion.
34084         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
34085         <iconv.h>, streq.h, xsize.h.
34086         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
34087         conversion.
34088         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
34089         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
34090         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
34091         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
34092
34093 2008-05-10  Bruno Haible  <bruno@clisp.org>
34094
34095         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
34096         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
34097
34098         * modules/unilbrk/u32-width-linebreaks-tests: New file.
34099         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
34100
34101         * modules/unilbrk/u16-width-linebreaks-tests: New file.
34102         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
34103
34104         * modules/unilbrk/u8-width-linebreaks-tests: New file.
34105         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
34106
34107         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
34108         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
34109
34110         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
34111         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
34112
34113         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
34114         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
34115
34116         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
34117         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
34118
34119 2008-05-10  Bruno Haible  <bruno@clisp.org>
34120
34121         Split up 'linebreak' module.
34122         * lib/unilbrk.h: New file, based on lib/linebreak.h.
34123         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
34124         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
34125         modifications.
34126         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
34127         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
34128         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
34129         lib/linebreak.c.
34130         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
34131         lib/linebreak.c.
34132         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
34133         lib/linebreak.c.
34134         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
34135         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
34136         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
34137         lib/linebreak.c.
34138         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
34139         lib/linebreak.c.
34140         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
34141         lib/linebreak.c.
34142         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
34143         lib/linebreak.c.
34144         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
34145         lib/linebreak.c.
34146         * modules/unilbrk/base: New file.
34147         * modules/unilbrk/tables: New file.
34148         * modules/unilbrk/u8-possible-linebreaks: New file.
34149         * modules/unilbrk/u16-possible-linebreaks: New file.
34150         * modules/unilbrk/u32-possible-linebreaks: New file.
34151         * modules/unilbrk/ulc-common: New file.
34152         * modules/unilbrk/ulc-possible-linebreaks: New file.
34153         * modules/unilbrk/u8-width-linebreaks: New file.
34154         * modules/unilbrk/u16-width-linebreaks: New file.
34155         * modules/unilbrk/u32-width-linebreaks: New file.
34156         * modules/unilbrk/ulc-width-linebreaks: New file.
34157         * lib/linebreak.h: Remove file.
34158         * lib/linebreak.c: Remove file.
34159         * m4/linebreak.m4: Remove file.
34160         * modules/linebreak: Remove file.
34161         * NEWS: Mention the changes.
34162
34163 2008-05-09  Eric Blake  <ebb9@byu.net>
34164
34165         Add xmemdup0.
34166         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
34167         implementation.
34168         * lib/xmalloc.c (xmemdup0): New C implementation.
34169
34170 2008-05-08  Bruno Haible  <bruno@clisp.org>
34171
34172         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
34173
34174 2008-05-07  Eric Blake  <ebb9@byu.net>
34175
34176         Support cross-compilation of <wctype.h>.
34177         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
34178         AC_CACHE_CHECK.
34179
34180 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
34181
34182         * build-aux/vc-list-files: Add support for bzr.
34183
34184 2008-05-03  Jim Meyering  <meyering@redhat.com>
34185
34186         avoid failed assertion with tight malloc
34187         * tests/test-getndelim2.c: Correct an off-by-one assertion.
34188
34189 2008-05-03  Simon Josefsson  <simon@josefsson.org>
34190
34191         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
34192         are needed from arpa/inet.h.
34193         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
34194         Reported by Bruno Haible.
34195
34196 2008-05-02  Jim Meyering  <meyering@redhat.com>
34197
34198         avoid compilation error on FreeBSD 6
34199         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
34200
34201 2008-05-01  Jim Meyering  <meyering@redhat.com>
34202
34203         useless-if-before-free: correct --help's exit status description
34204         * build-aux/useless-if-before-free (usage): Like grep, exit 0
34205         for one or more matches, etc.  Reported by Bruno Haible.
34206
34207         vc-list-files: make the stand-alone gnulib test work
34208         * modules/vc-list-files-tests (configure.ac):
34209         Define and AC_SUBST abs_aux_dir.
34210         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
34211         $(abs_top_srcdir) to each script and having each of them
34212         duplicate the work of setting PATH, set PATH here, using
34213         the new variable, abs_aux_dir instead.
34214         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
34215         * tests/test-vc-list-files-git.sh: Likewise.
34216         Reported by Bruno Haible.
34217
34218 2008-05-01  Bruno Haible  <bruno@clisp.org>
34219
34220         * lib/getndelim2.c (getndelim2): Fix newsize computation during
34221         reallocation. Rename 'done' to 'found_delimiter'.
34222
34223 2008-05-01  Jim Meyering  <meyering@redhat.com>
34224
34225         vc-list-files: accommodate /bin/sh like the one from Solaris 10
34226         * build-aux/vc-list-files: Use `...`, not $(...).
34227
34228 2008-04-30  Jim Meyering  <meyering@redhat.com>
34229
34230         add tests for vc-list-files
34231         * modules/vc-list-files-tests: New module.
34232         * tests/test-vc-list-files-cvs.sh: New file.
34233         * tests/test-vc-list-files-git.sh: New file.
34234
34235         avoid a warning from gcc
34236         * lib/getndelim2.c (IF_LINT): Define.
34237         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
34238
34239         vc-list-files: work properly with build-aux/cvsu, too
34240         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
34241         to all cvs-based clauses.
34242
34243         vc-list-files: work properly in the CVS+awk case, too
34244         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
34245
34246         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
34247         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
34248         take more than one file argument, so .  Add quotes, just in case $dir
34249         ever contains a shell meta-character.  Prompted by Soren Hansen in
34250         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
34251
34252 2008-04-29  Eric Blake  <ebb9@byu.net>
34253
34254         Optimize getndelim2 to use block operations when possible.
34255         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
34256         freadseek, and memchr2.
34257         * lib/getndelim2.c (getndelim2): Use them for block reads.
34258
34259 2008-04-29  Bruno Haible  <bruno@clisp.org>
34260
34261         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
34262         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34263         * modules/inet_ntop (Depends-on): Add extensions.
34264         * modules/inet_pton (Depends-on): Likewise.
34265         Reported by Simon Josefsson.
34266
34267 2008-04-29  Jim Meyering  <meyering@redhat.com>
34268
34269         When the is more than one match in a block, match all of them.
34270         * build-aux/useless-if-before-free: Iterate through each block
34271         until there are no more matches.
34272
34273         Fix broken useless-if-before-free script.
34274         * build-aux/useless-if-before-free: Fix typo: missing "?" after
34275         the expression to match cast of argument to free-like function.
34276
34277 2008-04-29  Eric Blake  <ebb9@byu.net>
34278
34279         Use new header.
34280         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
34281
34282 2008-04-29  Jim Meyering  <meyering@redhat.com>
34283
34284         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
34285         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
34286         by gnulib to exist and to declare e.g., inet_ntop.
34287         Don't include "inet_ntop.h", now removed.
34288
34289         * m4/arpa_inet_h.m4: Remove trailing blanks.
34290
34291 2008-04-29  Eric Blake  <ebb9@byu.net>
34292
34293         Silence valgrind on safe reads beyond potential array bounds.
34294         * lib/rawmemchr.valgrind: New file.
34295         * lib/strchrnul.valgrind: Likewise.
34296         * modules/rawmemchr (Files): Distribute new file.
34297         * modules/strchrnul (Files): Likewise.
34298         Suggested by Bruno Haible.
34299
34300 2008-04-29  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
34303         (inet_ntop, inet_pton): Change portability warning's wording.
34304         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
34305         Invoke gl_CHECK_NEXT_HEADERS.
34306         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
34307         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
34308         set ARPA_INET_H.
34309         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34310         * modules/arpa_inet (Description): No longer only for systems that
34311         lack it.
34312         (Depends-on): Add include_next.
34313         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
34314         HAVE_ARPA_INET_H.
34315
34316 2008-04-29  Jim Meyering  <meyering@redhat.com>
34317
34318         * modules/mkdir (License): Re-license as LGPLv2+.
34319
34320 2008-04-29  Bruno Haible  <bruno@clisp.org>
34321
34322         * modules/rawmemchr (Maintainer): Set to Eric.
34323         * modules/strchrnul (Maintainer): Likewise.
34324
34325 2008-04-29  Simon Josefsson  <simon@josefsson.org>
34326
34327         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
34328         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
34329
34330         * modules/arpa_inet (arpa/inet.h): Use them.
34331
34332 2008-04-28  Eric Blake  <ebb9@byu.net>
34333
34334         Test getndelim2.
34335         * modules/getndelim2-tests: New file.
34336         * tests/test-getndelim2.c: Likewise.
34337         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
34338         stream.
34339         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
34340
34341         * MODULES.html.sh: Document new module.
34342
34343 2008-04-20  Bruno Haible  <bruno@clisp.org>
34344
34345         * lib/c-stack.c (die): Use raise.
34346         * modules/c-stack (Depends-on): Add raise.
34347
34348 2008-04-28  Bruno Haible  <bruno@clisp.org>
34349
34350         Expect rpmatch to be declared.
34351         * lib/yesno.c (rpmatch): Remove declaration.
34352
34353         Declare rpmatch.
34354         * lib/stdlib.in.h (rpmatch): New declaration.
34355         * lib/rpmatch.c: Include <stdlib.h> first.
34356         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
34357         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
34358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
34359         HAVE_RPMATCH.
34360         * modules/rpmatch (Depends-on): Add stdlib, extensions.
34361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34362         (Include): Set to <stdlib.h>.
34363         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
34364         HAVE_RPMATCH.
34365         * NEWS: Document the change.
34366
34367 2008-04-28  Bruno Haible  <bruno@clisp.org>
34368
34369         Change rpmatch to use nl_langinfo when appropriate.
34370         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
34371         (N_): New macro.
34372         (localized_pattern): New function/macro.
34373         (try): Remove match, nomatch arguments. Copy the pattern into safe
34374         memory before caching it.
34375         (rpmatch): Use localized_pattern. Add translator comments.
34376         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
34377         Suggested by Eric Blake.
34378         * modules/rpmatch (Depends-on): Add stdbool.
34379
34380 2008-04-28  Eric Blake  <ebb9@byu.net>
34381
34382         Add rawmemchr module, matching glibc.
34383         * modules/string (Makefile.am): New indicator.
34384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
34385         * lib/string.in.h (rawmemchr): Declare when appropriate.
34386         * modules/rawmemchr: New file.
34387         * m4/rawmemchr.m4: Likewise.
34388         * lib/rawmemchr.c: Likewise.
34389         * modules/rawmemchr-tests: Likewise.
34390         * tests/test-rawmemchr.c: Likewise.
34391         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
34392         module.
34393         * modules/strchrnul (Depends-on): Add rawmemchr.
34394         * lib/strchrnul.c (strchrnul): Optimize a corner case.
34395
34396         Whitespace cleanup.
34397         * tests/test-strchrnul.c: Reindent.
34398         * lib/strchrnul.c: Likewise.
34399
34400         Optimize and test strchrnul.
34401         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
34402         * modules/strchrnul-tests: New file.
34403         * tests/test-strchrnul.c: Likewise.
34404
34405         Remove intprops dependency.
34406         * modules/memchr (Depends-on): Remove intprops.
34407         * modules/memrchr (Depends-on): Likewise.
34408         * modules/memchr2 (Depends-on): Likewise.
34409         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
34410         * lib/memrchr.c (__memrchr): Likewise.
34411         * lib/memrchr2.c (memchr2): Likewise.
34412         Reported by Simon Josefsson.
34413
34414 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34415
34416         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
34417         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34418
34419 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34420
34421         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
34422
34423         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
34424
34425         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
34426
34427         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
34428         declarations.
34429         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
34430
34431         * m4/inet_pton.m4: Don't check for header files.
34432
34433         * m4/inet_ntop.m4: Don't check for header files.
34434
34435 2008-04-28  Simon Josefsson  <simon@josefsson.org>
34436
34437         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
34438         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
34439         trigger for cygwin).
34440         Reported by Bruno Haible  <bruno@clisp.org>.
34441
34442 2008-04-28  Bruno Haible  <bruno@clisp.org>
34443
34444         * doc/posix-functions/strdup.texi: Mention mingw problem.
34445
34446 2008-04-27  Bruno Haible  <bruno@clisp.org>
34447
34448         * modules/stat-time-tests (Depends-on): Add sleep.
34449         * tests/test-stat-time.c (force_unlink): New function.
34450         (cleanup): Use it.
34451         (test_mtime): Remove the ctime related tests.
34452         (test_ctime): New function, containing the ctime related tests.
34453         (main): Call test_ctime, except on native Windows platforms.
34454
34455 2008-04-27  Bruno Haible  <bruno@clisp.org>
34456
34457         * lib/rpmatch.c (rpmatch): Add some comments.
34458         Reported by James Youngman <jay@gnu.org>.
34459
34460 2008-04-27  Bruno Haible  <bruno@clisp.org>
34461
34462         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
34463         quiet NaNs.
34464
34465 2008-04-27  Bruno Haible  <bruno@clisp.org>
34466
34467         Make test-yesno.sh work on mingw.
34468         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
34469         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
34470         (main): Set stdin to binary mode.
34471         * modules/yesno-tests (Depends-on): Add binary-io.
34472
34473 2008-04-27  Bruno Haible  <bruno@clisp.org>
34474
34475         Fix 'isfinite' on x86, x86_64, ia64 platforms.
34476         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
34477         argument that lie outside the IEEE 854 domain.
34478         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
34479         (gl_ISFINITE): Use it.
34480         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
34481
34482 2008-04-27  Bruno Haible  <bruno@clisp.org>
34483
34484         Allow local renaming in config.h.
34485         * lib/memrchr.c (memrchr): Don't undefine outside libc.
34486
34487 2008-04-27  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/memchr.c (__memchr): Change type of 'i'.
34490         * lib/memchr2.c (memchr2): Likewise.
34491
34492 2008-04-26  Eric Blake  <ebb9@byu.net>
34493         and Bruno Haible  <bruno@clisp.org>
34494
34495         Optimize and test memrchr.
34496         * modules/memrchr (Depends-on): Add intprops.
34497         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
34498         * modules/memrchr-tests: New file.
34499         * tests/test-memrchr.c: New file.
34500
34501 2008-04-26  Bruno Haible  <bruno@clisp.org>
34502
34503         Add tentative support for DragonFly BSD.
34504         * lib/stdio-impl.h: Add macros for DragonFly BSD.
34505         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
34506         fp.
34507         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34508         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
34509         * lib/fpurge.c (fpurge): Likewise.
34510         * lib/freadable.c (freaadable): Likewise.
34511         * lib/freadahead.c (freadahead): Likewise.
34512         * lib/freading.c (freading): Likewise.
34513         * lib/freadptr.c (freadptr): Likewise.
34514         * lib/freadseek.c (freadptrinc): Likewise.
34515         * lib/fseeko.c (fseeko): Likewise.
34516         * lib/fseterr.c (fseterr): Likewise.
34517         * lib/fwritable.c (fwritable): Likewise.
34518         * lib/fwriting.c (fwriting): Likewise.
34519
34520 2008-04-26  Bruno Haible  <bruno@clisp.org>
34521
34522         * lib/stdio-impl.h: New file.
34523         * lib/fbufmode.c: Include stdio-impl.h.
34524         (fbufmode): Use fp_, remove redundant #defines.
34525         * lib/fflush.c: Include stdio-impl.h.
34526         (clear_ungetc_buffer): Remove redundant #defines.
34527         * lib/fpurge.c: Include stdio-impl.h.
34528         (fpurge): Remove redundant #defines.
34529         * lib/freadable.c: Include stdio-impl.h.
34530         (freadable): Remove redundant #defines.
34531         * lib/freadahead.c: Include stdio-impl.h.
34532         (freadahead): Remove redundant #defines.
34533         * lib/freading.c: Include stdio-impl.h.
34534         (freading): Remove redundant #defines.
34535         * lib/freadptr.c: Include stdio-impl.h.
34536         (freadptr): Remove redundant #defines.
34537         * lib/freadseek.c: Include stdio-impl.h.
34538         (freadptrinc): Remove redundant #defines.
34539         * lib/fseeko.c: Include stdio-impl.h.
34540         (rpl_fseeko): Remove redundant #defines.
34541         * lib/fseterr.c: Include stdio-impl.h.
34542         (fseterr): Remove redundant #defines.
34543         * lib/fwritable.c: Include stdio-impl.h.
34544         (fwritable: Remove redundant #defines.
34545         * lib/fwriting.c: Include stdio-impl.h.
34546         (fwriting): Remove redundant #defines.
34547         * modules/fbufmode (Files): Add lib/stdio-impl.h.
34548         * modules/fflush (Files): Likewise.
34549         * modules/fpurge (Files): Likewise.
34550         * modules/freadable (Files): Likewise.
34551         * modules/freadahead (Files): Likewise.
34552         * modules/freading (Files): Likewise.
34553         * modules/freadptr (Files): Likewise.
34554         * modules/freadseek (Files): Likewise.
34555         * modules/fseeko (Files): Likewise.
34556         * modules/fseterr (Files): Likewise.
34557         * modules/fwritable (Files): Likewise.
34558         * modules/fwriting (Files): Likewise.
34559
34560 2008-04-26  Bruno Haible  <bruno@clisp.org>
34561
34562         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
34563         restore_seek_optimization, update_fpos_cache): New functions, extracted
34564         from rpl_fflush.
34565         (rpl_fflush): Use them.
34566         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
34567         (gl_REPLACE_FFLUSH): Use it.
34568
34569 2008-04-26  Bruno Haible  <bruno@clisp.org>
34570
34571         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
34572         on Solaris.
34573         * tests/test-xstrtoimax.sh: Likewise.
34574         * tests/test-xstrtoumax.sh: Likewise.
34575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34576
34577 2008-04-26  Bruno Haible  <bruno@clisp.org>
34578
34579         * modules/memchr-tests: New file.
34580         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
34581
34582 2008-04-26  Eric Blake  <ebb9@byu.net>
34583             Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/memchr.c: Include intprops.h.
34586         (__memchr): Optimize parallel detection of matching bytes. Rename local
34587         variables. Add explanatory comments.
34588
34589 2008-04-26  Bruno Haible  <bruno@clisp.org>
34590
34591         Fix module 'memchr', broken since 2000-10-28.
34592         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
34593
34594 2008-04-26  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
34597         comments.
34598
34599 2008-04-25  Eric Blake  <ebb9@byu.net>
34600
34601         Use native fstatat on cygwin 1.7.0.
34602         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
34603         first.
34604
34605 2008-04-23  Eric Blake  <ebb9@byu.net>
34606
34607         Improve memchr2 performance.
34608         * lib/memchr2.c (memchr2): Further optimize parallel detection of
34609         NUL bytes.
34610         * modules/memchr2 (Depends-on): Use intprops.h.
34611
34612 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34613
34614         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
34615         an inline function instead of a CPP macro.  Patch by Ben Pfaff
34616         <blp@cs.stanford.edu>.
34617
34618 2008-04-23  Simon Josefsson  <simon@josefsson.org>
34619
34620         * lib/arpa_inet.in.h: New file.
34621
34622         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
34623         (Makefile.am): Sed in substitute header file.
34624
34625         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
34626         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
34627
34628         * modules/inet_ntop (configure.ac): Use
34629         gl_ARPA_INET_MODULE_INDICATOR.
34630
34631         * modules/inet_pton (configure.ac): Use
34632         gl_ARPA_INET_MODULE_INDICATOR.
34633
34634 2008-04-22  Jim Meyering  <meyering@redhat.com>
34635
34636         * modules/verify (License): Re-license as LGPLv2+.
34637
34638 2008-04-22  Simon Josefsson  <simon@josefsson.org>
34639
34640         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
34641         parameter to void* as per POSIX standard (MinGW uses char*).
34642
34643 2008-04-21  Bruno Haible  <bruno@clisp.org>
34644
34645         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34646         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34647         Define to replacements if REPLACE_ISWCNTRL is 1.
34648         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
34649         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
34650         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
34651         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
34652         what it fixes.
34653         * doc/posix-functions/iswalpha.texi: Likewise.
34654         * doc/posix-functions/iswblank.texi: Likewise.
34655         * doc/posix-functions/iswcntrl.texi: Likewise.
34656         * doc/posix-functions/iswdigit.texi: Likewise.
34657         * doc/posix-functions/iswgraph.texi: Likewise.
34658         * doc/posix-functions/iswlower.texi: Likewise.
34659         * doc/posix-functions/iswprint.texi: Likewise.
34660         * doc/posix-functions/iswpunct.texi: Likewise.
34661         * doc/posix-functions/iswspace.texi: Likewise.
34662         * doc/posix-functions/iswupper.texi: Likewise.
34663         * doc/posix-functions/iswxdigit.texi: Likewise.
34664         Reported by Alain Guibert.
34665
34666 2008-04-21  Bruno Haible  <bruno@clisp.org>
34667
34668         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
34669         Patch by Alain Guibert.
34670
34671 2008-04-21  Bruno Haible  <bruno@clisp.org>
34672
34673         Fix test failures on mingw.
34674         * tests/test-xstrtol.c (print_no_progname): New function.
34675         (main): Install it in error_print_progname hook.
34676         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
34677         * tests/test-xstrtoimax.sh: Likewise.
34678         * tests/test-xstrtoumax.sh: Likewise.
34679
34680 2008-04-21  Bruno Haible  <bruno@clisp.org>
34681
34682         Fix test failure on mingw.
34683         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
34684
34685 2008-04-21  Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
34688         Actually assign a value.
34689
34690 2008-04-20  Bruno Haible  <bruno@clisp.org>
34691
34692         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
34693         take 2.
34694         * lib/canonicalize.c (canonicalize_file_name): Elide if the
34695         'canonicalize-lgpl' module is also used.
34696         * lib/canonicalize-lgpl.c: Undo last change.
34697         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
34698
34699 2008-04-20  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
34702         config.h. Provide _mkdir based fallback for mingw.
34703         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
34704         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
34705         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
34706         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
34707         rather than defining mkdir in config.h.
34708         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
34709         (gl_SYS_STAT_H_DEFAULTS): New macro.
34710         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
34711         HAVE_IO_H any more.
34712         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
34713         HAVE_DECL_MKDIR and HAVE_IO_H.
34714
34715 2008-04-20  Bruno Haible  <bruno@clisp.org>
34716
34717         * lib/isapipe.c: Port to native Windows platforms.
34718
34719 2008-04-20  Bruno Haible  <bruno@clisp.org>
34720
34721         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
34722
34723 2008-04-21  Eric Blake  <ebb9@byu.net>
34724
34725         Work around preprocessors that don't handle UINTMAX_MAX.
34726         * lib/memchr2.c (memchr2): Avoid embedded #if.
34727         Reported by Alain Guibert, fix suggested by Bruno Haible.
34728
34729 2008-04-21  Simon Josefsson  <simon@josefsson.org>
34730
34731         * doc/posix-functions/strftime.texi (strftime): Explain better
34732         Windows incompatibility.  Suggested by Micah Cowan
34733         <micah@cowan.name>.
34734
34735 2008-04-20  Bruno Haible  <bruno@clisp.org>
34736
34737         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
34738         unistr/u8-mblen.
34739
34740 2008-04-20  Bruno Haible  <bruno@clisp.org>
34741
34742         Fix test failure on platforms with non-GNU iconv.
34743         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
34744         (U_TO_U8): Use it, rather than u16_to_u8.
34745         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
34746         units at the end of the input string.
34747         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
34748
34749 2008-04-20  Bruno Haible  <bruno@clisp.org>
34750
34751         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
34752         when the resulting length is 0.
34753         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
34754
34755 2008-04-20  Bruno Haible  <bruno@clisp.org>
34756
34757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
34758         works.
34759         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
34760
34761 2008-04-20  Bruno Haible  <bruno@clisp.org>
34762
34763         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
34764         * modules/tsearch-tests (configure.ac): Test for initstate function.
34765
34766 2008-04-20  Bruno Haible  <bruno@clisp.org>
34767
34768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
34769         for nlink_t if missing.
34770         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
34771
34772 2008-04-19  Bruno Haible  <bruno@clisp.org>
34773
34774         Work around snprintf bug on Linux libc5.
34775         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
34776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34777         gl_SNPRINTF_SIZE1.
34778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34779         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
34780         that test failed.
34781         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34782         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
34783         * modules/snprintf (Files): Add m4/printf.m4.
34784         * modules/vsnprintf (Files): Likewise.
34785         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
34786         * doc/posix-functions/vsnprintf.texi: Likewise.
34787
34788 2008-04-19  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
34791         from 0.0058 to less than 10^-7.
34792
34793 2008-04-19  Bruno Haible  <bruno@clisp.org>
34794
34795         Fix rounding when a precision is given.
34796         * lib/vasnprintf.c (is_borderline): New function.
34797         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
34798         9...9x.
34799         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
34800         %e, %g.
34801         * tests/test-vasprintf-posix.c (test_function): Likewise.
34802         * tests/test-snprintf-posix.h (test_function): Likewise.
34803         * tests/test-sprintf-posix.h (test_function): Likewise.
34804         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
34805         * tests/test-printf-posix.h (test_function): Likewise.
34806         * tests/test-printf-posix.output: Update.
34807         Reported by John Darrington <john@darrington.wattle.id.au> via
34808         Ben Pfaff <blp@cs.stanford.edu>.
34809
34810 2008-04-18  Simon Josefsson  <simon@josefsson.org>
34811
34812         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
34813         Suggested by Bruno Haible <bruno@clisp.org>.
34814
34815 2008-04-17  Bruno Haible  <bruno@clisp.org>
34816
34817         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
34818         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
34819         implementation.
34820         Patch by Bruce Merry <bmerry@gmail.com>.
34821
34822 2008-04-17  Simon Josefsson  <simon@josefsson.org>
34823
34824         * doc/posix-functions/strftime.texi (strftime): Mention that %e
34825         doesn't work under Windows.
34826
34827 2008-04-16  Bruno Haible  <bruno@clisp.org>
34828
34829         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
34830         New macros.
34831         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
34832         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
34833         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
34834         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
34835         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
34836         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
34837         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
34838         macros.
34839         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
34840         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
34841         Northern Sotho, Uighur.
34842
34843 2008-04-16  Bruno Haible  <bruno@clisp.org>
34844
34845         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
34846         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
34847         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
34848         Reported by Daniel Bergström <daniel@octocode.com>.
34849
34850 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
34851             Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
34854         function.
34855         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
34856         New functions, mostly extracted from gl_locale_name_default.
34857         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
34858
34859 2008-04-16  Eric Blake  <ebb9@byu.net>
34860
34861         Adjust strtod detection to catch glibc 2.7 bug.
34862         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
34863         Reported by John Gatewood Ham.
34864
34865 2008-04-16  Bruno Haible  <bruno@clisp.org>
34866
34867         Add tentative support for Linux libc5.
34868         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
34869         * lib/fpurge.c (fpurge): Likewise.
34870         * lib/freadable.c (freadable): Likewise.
34871         * lib/freadahead.c (freadahead): Likewise.
34872         * lib/freading.c (freading): Likewise.
34873         * lib/freadptr.c (freadptr): Likewise.
34874         * lib/freadseek.c (freadptrinc): Likewise.
34875         * lib/fseeko.c (rpl_fseeko): Likewise.
34876         * lib/fseterr.c (fseterr): Likewise.
34877         * lib/fwritable.c (fwritable): Likewise.
34878         * lib/fwriting.c (fwriting): Likewise.
34879         Reported by Alain Guibert <alguibert+bts@free.fr>.
34880
34881 2008-04-15  Bruno Haible  <bruno@clisp.org>
34882
34883         * modules/mathl (configure.ac): Define module indicator.
34884
34885 2008-04-15  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/logl.c (logl): Remove unused variables.
34888
34889 2008-04-15  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
34892         fails.
34893
34894 2008-04-15  Bruno Haible  <bruno@clisp.org>
34895
34896         * lib/trim.c (trim2): Fix argument of isspace() macro.
34897
34898 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
34899
34900         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
34901         to 0.
34902         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
34903
34904 2008-04-14  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
34907         AC_LANG_PROGRAM argument.
34908         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
34909         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
34910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34911         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34912         * m4/math_h.m4 (gl_MATH_H): Likewise.
34913         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
34914         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34915         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34916         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
34917         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
34918         * m4/regex.m4 (gl_REGEX): Likewise.
34919         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
34920         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
34921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34922         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
34923         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34924         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34927
34928 2008-04-14  Jim Meyering  <meyering@redhat.com>
34929
34930         test-strtod: fix typos: s/abs/fabs/
34931         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
34932
34933 2008-04-13  Bruno Haible  <bruno@clisp.org>
34934
34935         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
34936         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
34937         module is also used and while not building the reloc-wrapper.
34938
34939 2008-04-13  Bruno Haible  <bruno@clisp.org>
34940
34941         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
34942
34943 2008-04-13  Bruno Haible  <bruno@clisp.org>
34944
34945         Fix AIX compilation failure introduced on 2008-04-02.
34946         * tests/test-frexp.c (exp): Undefine before redefining.
34947         * tests/test-frexpl.c (exp): Likewise.
34948
34949 2008-04-13  Bruno Haible  <bruno@clisp.org>
34950
34951         Work around a HP-UX stdio bug.
34952         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
34953         * tests/test-ftello.c (main): Likewise.
34954         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
34955         * doc/posix-functions/ftello.texi: Likewise.
34956
34957 2008-04-13  Bruno Haible  <bruno@clisp.org>
34958
34959         Make test-signbit pass on HP-UX/hppa.
34960         * tests/test-signbit.c (minus_zerol): New variable.
34961         (test_signbitl): Use it.
34962
34963 2008-04-13  Bruno Haible  <bruno@clisp.org>
34964
34965         Make truncl work on OSF/1 4.0.
34966         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
34967         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34968         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
34969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
34970         HAVE_DECL_TRUNCL.
34971         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
34972         HAVE_DECL_TRUNCL.
34973         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
34974
34975 2008-04-13  Bruno Haible  <bruno@clisp.org>
34976
34977         * lib/unictype.h: Remove trailing comma from enumeration definitions.
34978
34979 2008-04-13  Bruno Haible  <bruno@clisp.org>
34980
34981         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
34982         expression, so as to avoid HP-UX 11 cc compiler bug.
34983
34984 2008-04-13  Bruno Haible  <bruno@clisp.org>
34985
34986         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
34987
34988 2008-04-13  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/git-merge-changelog.c: Remove empty declaration outside of
34991         functions.
34992
34993 2008-04-13  Bruno Haible  <bruno@clisp.org>
34994
34995         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
34996
34997 2008-04-13  Bruno Haible  <bruno@clisp.org>
34998
34999         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
35000         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
35001         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
35002         also if it exists but lacks definitions of the SHUT_* macros.
35003         * modules/sys_socket (Description): Update.
35004         Reported by Elbert Pol <e.pol@chello.nl>.
35005
35006 2008-04-13  Bruno Haible  <bruno@clisp.org>
35007
35008         * lib/localcharset.c (OS2): Don't redefine if already defined.
35009         Reported by Elbert Pol <e.pol@chello.nl>.
35010
35011 2008-04-13  Bruno Haible  <bruno@clisp.org>
35012
35013         * lib/binary-io.h [__EMX__]: Include <io.h>.
35014         Reported by Elbert Pol <e.pol@chello.nl>.
35015
35016 2008-04-12  Bruno Haible  <bruno@clisp.org>
35017
35018         * lib/fpucw.h: Enable the definitions also for x86_64.
35019         Needed for NetBSD/x86_64.
35020         Reported by Thomas Klausner <tk@giga.or.at>.
35021
35022 2008-04-12  Bruno Haible  <bruno@clisp.org>
35023
35024         * tests/test-strtod.c: Include isnand.h.
35025         (main): Use isnand instead of isnan.
35026         Reported by Jim Meyering.
35027
35028 2008-04-12  Bruno Haible  <bruno@clisp.org>
35029
35030         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
35031         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35032
35033 2008-04-12  Jim Meyering  <meyering@redhat.com>
35034
35035         * m4/math_h.m4 (gl_MATH_H): Fix typos.
35036
35037 2008-04-12  Bruno Haible  <bruno@clisp.org>
35038
35039         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
35040         Reported by Elbert Pol <e.pol@chello.nl>.
35041
35042 2008-04-12  Eric Blake  <ebb9@byu.net>
35043
35044         Work around Solaris 10 math.h bug.
35045         * m4/math_h.m4 (gl_MATH_H): Check for bug.
35046         (gl_MATH_H_DEFAULTS): Set up default.
35047         * modules/math (Makefile.am): Replace new indicators.
35048         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
35049         * tests/test-math.c (main): Test this.
35050         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
35051         * doc/posix-headers/math.texi (math.h): Mention bug.
35052         Reported by Nelson H. F. Beebe and Jim Meyering.
35053
35054 2008-04-11  Bruno Haible  <bruno@clisp.org>
35055
35056         Adapt to future versions of Apple GCC.
35057         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
35058         Reported by Peter O'Gorman <peter@pogma.com>.
35059
35060 2008-04-11  Bruno Haible  <bruno@clisp.org>
35061
35062         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
35063
35064 2008-04-11  Bruno Haible  <bruno@clisp.org>
35065
35066         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
35067
35068         * modules/getaddrinfo-tests (Makefile.am): Define
35069         test_getaddrinfo_LDADD.
35070
35071 2008-04-11  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
35074         (init): Fix syntax error.
35075         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
35076         is declared.
35077
35078 2008-04-11  Bruno Haible  <bruno@clisp.org>
35079
35080         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
35081         * modules/glob (Depends-on): Add stdbool.
35082
35083 2008-04-11  Bruno Haible  <bruno@clisp.org>
35084
35085         * lib/trim.c: Include <string.h>.
35086
35087 2008-04-11  Eric Blake  <ebb9@byu.net>
35088
35089         Avoid compile failure on OS/2.
35090         * lib/regex_internal.h (internal_function): Disable optimization
35091         on OS/2 (__EMX__), where it caused compiler error.
35092         Reported by Elbert Pol.
35093
35094 2008-04-11  Bruno Haible  <bruno@clisp.org>
35095
35096         Flush the standard error stream before aborting. Needed on mingw.
35097         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
35098         * tests/test-array_list.c (ASSERT): Likewise.
35099         * tests/test-array_oset.c (ASSERT): Likewise.
35100         * tests/test-avltree_list.c (ASSERT): Likewise.
35101         * tests/test-avltree_oset.c (ASSERT): Likewise.
35102         * tests/test-avltreehash_list.c (ASSERT): Likewise.
35103         * tests/test-binary-io.c (ASSERT): Likewise.
35104         * tests/test-byteswap.c (ASSERT): Likewise.
35105         * tests/test-c-ctype.c (ASSERT): Likewise.
35106         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
35107         * tests/test-c-strcasestr.c (ASSERT): Likewise.
35108         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
35109         * tests/test-c-strstr.c (ASSERT): Likewise.
35110         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
35111         * tests/test-canonicalize.c (ASSERT): Likewise.
35112         * tests/test-carray_list.c (ASSERT): Likewise.
35113         * tests/test-ceilf1.c (ASSERT): Likewise.
35114         * tests/test-ceilf2.c (ASSERT): Likewise.
35115         * tests/test-ceill.c (ASSERT): Likewise.
35116         * tests/test-count-one-bits.c (ASSERT): Likewise.
35117         * tests/test-fbufmode.c (ASSERT): Likewise.
35118         * tests/test-fflush2.c (ASSERT): Likewise.
35119         * tests/test-floorf1.c (ASSERT): Likewise.
35120         * tests/test-floorf2.c (ASSERT): Likewise.
35121         * tests/test-floorl.c (ASSERT): Likewise.
35122         * tests/test-fopen.c (ASSERT): Likewise.
35123         * tests/test-fpending.c (ASSERT): Likewise.
35124         * tests/test-fprintf-posix.c (ASSERT): Likewise.
35125         * tests/test-fpurge.c (ASSERT): Likewise.
35126         * tests/test-freadable.c (ASSERT): Likewise.
35127         * tests/test-freadahead.c (ASSERT): Likewise.
35128         * tests/test-freading.c (ASSERT): Likewise.
35129         * tests/test-freadptr.c (ASSERT): Likewise.
35130         * tests/test-freadptr2.c (ASSERT): Likewise.
35131         * tests/test-freadseek.c (ASSERT): Likewise.
35132         * tests/test-freopen.c (ASSERT): Likewise.
35133         * tests/test-frexp.c (ASSERT): Likewise.
35134         * tests/test-frexpl.c (ASSERT): Likewise.
35135         * tests/test-fseek.c (ASSERT): Likewise.
35136         * tests/test-fseeko.c (ASSERT): Likewise.
35137         * tests/test-fstrcmp.c (ASSERT): Likewise.
35138         * tests/test-ftell.c (ASSERT): Likewise.
35139         * tests/test-ftello.c (ASSERT): Likewise.
35140         * tests/test-func.c (ASSERT): Likewise.
35141         * tests/test-fwritable.c (ASSERT): Likewise.
35142         * tests/test-fwriting.c (ASSERT): Likewise.
35143         * tests/test-getdelim.c (ASSERT): Likewise.
35144         * tests/test-getline.c (ASSERT): Likewise.
35145         * tests/test-i-ring.c (ASSERT): Likewise.
35146         * tests/test-iconv-utf.c (ASSERT): Likewise.
35147         * tests/test-iconv.c (ASSERT): Likewise.
35148         * tests/test-isfinite.c (ASSERT): Likewise.
35149         * tests/test-isnand.c (ASSERT): Likewise.
35150         * tests/test-isnanf.c (ASSERT): Likewise.
35151         * tests/test-isnanl.h (ASSERT): Likewise.
35152         * tests/test-ldexpl.c (ASSERT): Likewise.
35153         * tests/test-linked_list.c (ASSERT): Likewise.
35154         * tests/test-linkedhash_list.c (ASSERT): Likewise.
35155         * tests/test-localename.c (ASSERT): Likewise.
35156         * tests/test-lseek.c (ASSERT): Likewise.
35157         * tests/test-mbscasecmp.c (ASSERT): Likewise.
35158         * tests/test-mbscasestr1.c (ASSERT): Likewise.
35159         * tests/test-mbscasestr2.c (ASSERT): Likewise.
35160         * tests/test-mbscasestr3.c (ASSERT): Likewise.
35161         * tests/test-mbscasestr4.c (ASSERT): Likewise.
35162         * tests/test-mbschr.c (ASSERT): Likewise.
35163         * tests/test-mbscspn.c (ASSERT): Likewise.
35164         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
35165         * tests/test-mbspbrk.c (ASSERT): Likewise.
35166         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
35167         * tests/test-mbsrchr.c (ASSERT): Likewise.
35168         * tests/test-mbsspn.c (ASSERT): Likewise.
35169         * tests/test-mbsstr1.c (ASSERT): Likewise.
35170         * tests/test-mbsstr2.c (ASSERT): Likewise.
35171         * tests/test-mbsstr3.c (ASSERT): Likewise.
35172         * tests/test-memchr2.c (ASSERT): Likewise.
35173         * tests/test-memmem.c (ASSERT): Likewise.
35174         * tests/test-open.c (ASSERT): Likewise.
35175         * tests/test-printf-frexp.c (ASSERT): Likewise.
35176         * tests/test-printf-frexpl.c (ASSERT): Likewise.
35177         * tests/test-printf-posix.c (ASSERT): Likewise.
35178         * tests/test-quotearg.c (ASSERT): Likewise.
35179         * tests/test-rbtree_list.c (ASSERT): Likewise.
35180         * tests/test-rbtree_oset.c (ASSERT): Likewise.
35181         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
35182         * tests/test-round1.c (ASSERT): Likewise.
35183         * tests/test-roundf1.c (ASSERT): Likewise.
35184         * tests/test-roundl.c (ASSERT): Likewise.
35185         * tests/test-signbit.c (ASSERT): Likewise.
35186         * tests/test-sleep.c (ASSERT): Likewise.
35187         * tests/test-snprintf-posix.c (ASSERT): Likewise.
35188         * tests/test-snprintf.c (ASSERT): Likewise.
35189         * tests/test-sprintf-posix.c (ASSERT): Likewise.
35190         * tests/test-stat-time.c (ASSERT): Likewise.
35191         * tests/test-strcasestr.c (ASSERT): Likewise.
35192         * tests/test-strerror.c (ASSERT): Likewise.
35193         * tests/test-striconv.c (ASSERT): Likewise.
35194         * tests/test-striconveh.c (ASSERT): Likewise.
35195         * tests/test-striconveha.c (ASSERT): Likewise.
35196         * tests/test-strsignal.c (ASSERT): Likewise.
35197         * tests/test-strstr.c (ASSERT): Likewise.
35198         * tests/test-strtod.c (ASSERT): Likewise.
35199         * tests/test-trunc1.c (ASSERT): Likewise.
35200         * tests/test-trunc2.c (ASSERT): Likewise.
35201         * tests/test-truncf1.c (ASSERT): Likewise.
35202         * tests/test-truncf2.c (ASSERT): Likewise.
35203         * tests/test-truncl.c (ASSERT): Likewise.
35204         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
35205         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
35206         * tests/test-vasnprintf.c (ASSERT): Likewise.
35207         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
35208         * tests/test-vasprintf.c (ASSERT): Likewise.
35209         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
35210         * tests/test-vprintf-posix.c (ASSERT): Likewise.
35211         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
35212         * tests/test-vsnprintf.c (ASSERT): Likewise.
35213         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
35214         * tests/test-wcwidth.c (ASSERT): Likewise.
35215         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
35216         * tests/test-xprintf-posix.c (ASSERT): Likewise.
35217         * tests/test-xvasprintf.c (ASSERT): Likewise.
35218         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
35219         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
35220         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
35221         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
35222         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
35223         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
35224         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
35225         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
35226         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
35227         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
35228         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
35229         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
35230         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
35231         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
35232         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
35233         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
35234         * tests/unictype/test-block_list.c (ASSERT): Likewise.
35235         * tests/unictype/test-block_of.c (ASSERT): Likewise.
35236         * tests/unictype/test-block_test.c (ASSERT): Likewise.
35237         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
35238         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
35239         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
35240         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
35241         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
35242         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
35243         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
35244         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
35245         * tests/unictype/test-combining.c (ASSERT): Likewise.
35246         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
35247         * tests/unictype/test-digit.c (ASSERT): Likewise.
35248         * tests/unictype/test-mirror.c (ASSERT): Likewise.
35249         * tests/unictype/test-numeric.c (ASSERT): Likewise.
35250         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
35251         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
35252         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
35253         * tests/unictype/test-scripts.c (ASSERT): Likewise.
35254         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
35255         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
35256         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
35257         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
35258         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
35259         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
35260         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
35261         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
35262         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
35263         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
35264         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
35265         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
35266         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
35267         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
35268         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
35269         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
35270         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
35271         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
35272         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
35273         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
35274         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
35275         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
35276         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
35277         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
35278         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
35279         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
35280         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
35281         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
35282         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
35283         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
35284         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
35285         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
35286         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
35287         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
35288         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
35289         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
35290         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
35291         Reported by Eric Blake.
35292
35293 2008-04-11  Bruno Haible  <bruno@clisp.org>
35294
35295         * lib/wchar.in.h: Tweak comment.
35296
35297 2008-04-11  Bruno Haible  <bruno@clisp.org>
35298
35299         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
35300         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
35301         gl_COMMON.
35302         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
35303
35304 2008-04-11  Bruno Haible  <bruno@clisp.org>
35305
35306         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
35307
35308 2008-04-11  Simon Josefsson  <simon@josefsson.org>
35309
35310         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
35311         of attempting to use non-existing /dev/*random.  Based on patch
35312         from Adam Strzelecki <ono@java.pl> in
35313         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
35314
35315 2008-04-08  Bruno Haible  <bruno@clisp.org>
35316
35317         Add tentative support for emx+gcc.
35318         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
35319         * lib/fpurge.c (fpurge): Likewise.
35320         * lib/freadable.c (freadable): Likewise.
35321         * lib/freadahead.c (freadahead): Likewise.
35322         * lib/freading.c (freading): Likewise.
35323         * lib/freadptr.c (freadptr): Likewise.
35324         * lib/freadseek.c (freadptrinc): Likewise.
35325         * lib/fseeko.c (rpl_fseeko): Likewise.
35326         * lib/fseterr.c (fseterr): Likewise.
35327         * lib/fwritable.c (fwritable): Likewise.
35328         * lib/fwriting.c (fwriting): Likewise.
35329         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
35330
35331 2008-04-09  Eric Blake  <ebb9@byu.net>
35332
35333         Avoid some autoconf warnings.
35334         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
35335         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
35336         * m4/afs.m4 (gl_AFS): Likewise.
35337         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
35338         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
35339         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35340         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
35341         (gl_INTEGER_TYPE_SUFFIX): Likewise.
35342         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
35343         (AC_CHECK_DECLS_ONCE): Likewise.
35344         Rename file...
35345         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
35346         gnulib-tool requires autoconf 2.59 or better.
35347         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
35348
35349 2008-04-08  Eric Blake  <ebb9@byu.net>
35350
35351         Use 'git describe --match' if present (added in git 1.5.5).
35352         * build-aux/git-version-gen: Limit result to tags that match 'v*'
35353         if possible.
35354
35355 2008-04-08  Bruno Haible  <bruno@clisp.org>
35356
35357         Add tentative support for OpenServer.
35358         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
35359         _ptr, _cnt.
35360         * lib/fpurge.c (fpurge): Likewise.
35361         * lib/freadable.c (freadable): Likewise.
35362         * lib/freadahead.c (freadahead): Likewise.
35363         * lib/freading.c (freading): Likewise.
35364         * lib/freadptr.c (freadptr): Likewise.
35365         * lib/freadseek.c (freadptrinc): Likewise.
35366         * lib/fseeko.c (rpl_fseeko): Likewise.
35367         * lib/fseterr.c (fseterr): Likewise.
35368         * lib/fwritable.c (fwritable): Likewise.
35369         * lib/fwriting.c (fwriting): Likewise.
35370         Reported by Roger Cornelius <rac@tenzing.org> and
35371         Brian K. White <brian@aljex.com>.
35372
35373 2008-04-06  Jim Meyering  <meyering@redhat.com>
35374
35375         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
35376
35377 2008-04-06  Bruno Haible  <bruno@clisp.org>
35378
35379         Avoid possible error with non-ASCII bytes in UTF-8 locales.
35380         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
35381         * tests/test-printf-posix.sh: Likewise.
35382         * tests/test-vfprintf-posix.sh: Likewise.
35383         * tests/test-vprintf-posix.sh: Likewise.
35384         * tests/test-xprintf-posix.sh: Likewise.
35385
35386 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35387
35388         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
35389         hide error from 'ls', needed on OS/2.
35390         Report by Elbert Pol <elbert.pol@gmail.com>.
35391
35392 2008-04-04  Eric Blake  <ebb9@byu.net>
35393
35394         Make test-fseeko.c failures meaningful.
35395         * tests/test-fseeko.c: Print line number on failure.
35396         * tests/test-fseek.c: Likewise.
35397         Reported by Nelson H. F. Beebe.
35398
35399         Improve strtod bug detection check.
35400         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
35401         required for Solaris 10.
35402         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
35403
35404 2008-04-04  Bruno Haible  <bruno@clisp.org>
35405
35406         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
35407         by m4/setenv.m4.
35408
35409 2008-04-03  Eric Blake  <ebb9@byu.net>
35410
35411         Ensure sane .version contents.
35412         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
35413         version string.
35414         * build-aux/git-version-gen: Improve documentation.
35415
35416         Make GNU make output nicer.
35417         * top/GNUmakefile [!_have-Makefile]: Add dependency on
35418         MAKECMDGOALS to enforce message for all command line targets.  Set
35419         srcdir for use in maint.mk.
35420
35421         Another maintainer tweak.
35422         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
35423         a target that regenerates version.
35424
35425 2008-04-03  Jim Meyering  <meyering@redhat.com>
35426
35427         vc-list-files: don't cause coreutils "make po-check" failure
35428         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
35429
35430 2008-04-03  Eric Blake  <ebb9@byu.net>
35431
35432         Allow VPATH usage of vc-list-files.
35433         * build-aux/vc-list-files (scriptversion): Add timestamp.
35434         (options): Add --help, --version, -C.
35435         (CVS): Support installed cvsu.
35436
35437 2008-04-02  Bruno Haible  <bruno@clisp.org>
35438
35439         Avoid some "statement with no effect" warnings from gcc.
35440         * tests/test-wctype.c (main): Explicitly ignore unused values.
35441         Reported by Jim Meyering.
35442
35443 2008-04-02  Jim Meyering  <meyering@redhat.com>
35444
35445         Avoid some warnings from "gcc -Wshadow".
35446         * tests/test-frexp.c (exp): Define to a different identifier.
35447         * tests/test-frexpl.c (exp): Likewise.
35448
35449 2008-04-03  Jim Meyering  <meyering@redhat.com>
35450
35451         bootstrap: remove dangling *.[ch] symlinks from lib
35452         * build-aux/bootstrap [dangling symlink removal]: Move find's
35453         -depth option to precede all others, to avoid a warning.
35454         Remove *.[ch] files too, and from "$source_base" (usually lib/).
35455
35456 2008-04-02  Bruno Haible  <bruno@clisp.org>
35457
35458         Avoid some warnings from "gcc -Wshadow".
35459         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
35460         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
35461         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
35462         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
35463         Reported by Jim Meyering.
35464
35465 2008-04-01  Bruno Haible  <bruno@clisp.org>
35466
35467         Fix test to work on IRIX 6.5 with cc.
35468         * tests/test-math.c (numeric_equal): New function.
35469         (main): Use it.
35470
35471 2008-04-01  Bruno Haible  <bruno@clisp.org>
35472
35473         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
35474
35475 2008-04-01  Bruno Haible  <bruno@clisp.org>
35476
35477         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
35478         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35479         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
35480         (Depends-on): Remove math.
35481
35482         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
35483         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35484         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
35485         (Depends-on): Remove math.
35486
35487         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
35488         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35489         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
35490         (Depends-on): Remove math.
35491         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
35492         (Depends-on): Remove math.
35493
35494         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
35495         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
35496         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
35497         (Depends-on): Remove math.
35498         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
35499         (Depends-on): Remove math.
35500
35501         * tests/test-round1.c: Include nan.h.
35502         (main): Use NaNd instead of NAN.
35503         * modules/round-tests (Files): Add tests/nan.h.
35504
35505         * tests/test-trunc1.c: Include nan.h.
35506         (main): Use NaNd instead of NAN.
35507         * modules/trunc-tests (Files): Add tests/nan.h.
35508
35509         * tests/test-roundf1.c: Include nan.h.
35510         (main): Use NaNf instead of NAN.
35511         * modules/roundf-tests (Files): Add tests/nan.h.
35512
35513         * tests/test-truncf1.c: Include nan.h.
35514         (main): Use NaNf instead of NAN.
35515         * modules/truncf-tests (Files): Add tests/nan.h.
35516
35517         * tests/test-ceilf1.c: Include nan.h.
35518         (main): Use NaNf instead of NAN.
35519         * modules/ceilf-tests (Files): Add tests/nan.h.
35520
35521         * tests/test-floorf1.c: Include nan.h.
35522         (main): Use NaNf instead of NAN.
35523         * modules/floorf-tests (Files): Add tests/nan.h.
35524
35525         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
35526         (main): Use NaNf instead of NAN.
35527         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
35528
35529         * tests/test-isnand.c: Include nan.h instead of <math.h>.
35530         (main): Use NaNd instead of NAN.
35531         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
35532
35533         * tests/test-frexp.c: Include nan.h.
35534         (main): Use NaNd instead of NAN.
35535         * modules/frexp-tests (Files): Add tests/nan.h.
35536
35537         * lib/isnan.c: Don't include <math.h>.
35538         (FUNC): Don't use NAN macro.
35539         * modules/isnand-nolibm (Depends-on): Remove math.
35540         * modules/isnanf-nolibm (Depends-on): Remove math.
35541         * modules/isnanl (Depends-on): Remove math.
35542         * modules/isnanl-nolibm (Depends-on): Remove math.
35543
35544         * tests/nan.h: New file.
35545
35546 2008-04-01  Eric Blake  <ebb9@byu.net>
35547
35548         Fix typos.
35549         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
35550         values to be the right type.
35551
35552         For now, cater to gnulib strtod inaccuracies.
35553         * tests/test-strtod.c (main): Allow 1-ulp error on expected
35554         fractional results.  While not as nice from a QoI perspective, it
35555         is a quicker patch than correctly implementing decimal to binary
35556         rounding.
35557
35558 2008-03-31  Eric Blake  <ebb9@byu.net>
35559
35560         Guarantee a definition of NAN.
35561         * lib/math.in.h (NAN): Define if missing.
35562         * tests/test-math.c (main): Test it.
35563         * doc/posix-headers/math.texi (math.h): Document this.
35564         * lib/isnan.c (rpl_isnand): Use it.
35565         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
35566         * tests/test-floorf1.c (NaN): Likewise.
35567         * tests/test-frexp.c (NaN): Likewise.
35568         * tests/test-isnand.c (NaN): Likewise.
35569         * tests/test-isnanf.c (NaN): Likewise.
35570         * tests/test-round1.c (NaN): Likewise.
35571         * tests/test-roundf1.c (NaN): Likewise.
35572         * tests/test-snprintf-posix.h (NaN): Likewise.
35573         * tests/test-sprintf-posix.h (NaN): Likewise.
35574         * tests/test-trunc1.c (NaN): Likewise.
35575         * tests/test-truncf1.c (NaN): Likewise.
35576         * tests/test-vasnprintf-posix.c (NaN): Likewise.
35577         * tests/test-vasprintf-posix.c (NaN): Likewise.
35578         * modules/isnand-nolibm (Depends-on): Add math.
35579         * modules/isnanf-nolibm (Depends-on): Likewise.
35580         * modules/isnanl (Depends-on): Likewise.
35581         * modules/isnanl-nolibm (Depends-on): Likewise.
35582         * modules/snprintf-posix-tests (Depends-on): Likewise.
35583         * modules/sprintf-posix-tests (Depends-on): Likewise.
35584         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
35585         * modules/vsprintf-posix-tests (Depends-on): Likewise.
35586         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
35587         * modules/vasprintf-posix-tests (Depends-on): Likewise.
35588
35589 2008-03-31  Bruno Haible  <bruno@clisp.org>
35590
35591         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
35592         * doc/posix-functions/strtod.texi: Likewise.
35593
35594 2008-03-31  Bruno Haible  <bruno@clisp.org>
35595
35596         * tests/test-strtod.c (main): Don't use C99 syntax.
35597
35598 2008-03-31  Bruno Haible  <bruno@clisp.org>
35599
35600         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
35601         Reported by Eric Blake.
35602
35603 2008-03-31  Jim Meyering  <meyering@redhat.com>
35604
35605         Don't compare actual signbit return values.
35606         * tests/test-strtod.c (main): Rather, compare only their
35607         zero/non-zero nature.
35608
35609 2008-03-31  Eric Blake  <ebb9@byu.net>
35610
35611         More strtod documentation.
35612         * doc/posix-functions/strtod.texi (strtod): Interpret more test
35613         failures as distinct bugs.
35614
35615 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35616
35617         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
35618         Problem reported by Erik Benada in
35619         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
35620
35621 2008-03-30  Bruno Haible  <bruno@clisp.org>
35622
35623         * tests/test-strtod.c: Add comments about which assertion fails on which
35624         platform.
35625         * doc/posix-functions/strtod.texi: Add info about many more platforms.
35626
35627 2008-03-30  Eric Blake  <ebb9@byu.net>
35628
35629         Test signbit behavior on zeros.
35630         * tests/test-signbit.c (test_signbitf): Add tests for zero.
35631         (test_signbitd, test_signbitl): Likewise.
35632
35633         More strtod touchups.
35634         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
35635         sign of negative underflow, for now.  Use .5, not .1.
35636         * doc/posix-functions/strtod.texi (strtod): Mention these
35637         limitations.
35638         Reported by Jim Meyering.
35639
35640 2008-03-30  Bruno Haible  <bruno@clisp.org>
35641
35642         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
35643         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
35644
35645 2008-03-30  Bruno Haible  <bruno@clisp.org>
35646
35647         Avoid failure when attempting to return empty iconv results on some
35648         platforms.
35649         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
35650         allocation, don't report ENOMEM when the resulting string is empty.
35651
35652 2008-03-30  Bruno Haible  <bruno@clisp.org>
35653
35654         Fix buffer overrun.
35655         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
35656         Don't consider the width for tmp_length. Check count against tmp_length
35657         before doing the padding. Ensure enough allocation during padding.
35658
35659 2008-03-30  Eric Blake  <ebb9@byu.net>
35660
35661         strtod touchups.
35662         * lib/strtod.c (strtod): Avoid compiler warnings.
35663         Reported by Jim Meyering.
35664
35665 2008-03-30  Bruno Haible  <bruno@clisp.org>
35666
35667         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
35668         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
35669         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
35670         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
35671         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
35672         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
35673         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
35674         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
35675
35676         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
35677         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
35678         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
35679         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
35680         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
35681         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
35682         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
35683         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
35684
35685         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
35686         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
35687         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
35688         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
35689         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
35690         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
35691         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
35692         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
35693
35694         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
35695         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
35696
35697         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
35698         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
35699
35700         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
35701         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
35702
35703         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
35704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
35705         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
35706
35707         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
35708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
35709         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
35710
35711         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
35712         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
35713         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
35714
35715         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
35716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
35717         * modules/vasprintf (Depends-on): Add EOVERFLOW.
35718
35719         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
35720         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
35721         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
35722         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
35723         (Depends-on): Add EOVERFLOW.
35724         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
35725         (Depends-on): Add EOVERFLOW.
35726         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35727         (Depends-on): Add EOVERFLOW.
35728         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
35729         (Depends-on): Add EOVERFLOW.
35730         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35731         (Depends-on): Add EOVERFLOW.
35732         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
35733         (Depends-on): Add EOVERFLOW.
35734         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35735         (Depends-on): Add EOVERFLOW.
35736         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
35737         (Depends-on): Add EOVERFLOW.
35738
35739         * lib/sprintf.c (EOVERFLOW): Remove fallback.
35740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
35741         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
35742
35743         * lib/snprintf.c (EOVERFLOW): Remove fallback.
35744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
35745         * modules/snprintf (Depends-on): Add EOVERFLOW.
35746
35747         * lib/poll.c (EOVERFLOW): Remove fallback.
35748         * modules/poll (Depends-on): Add EOVERFLOW.
35749
35750         * lib/getugroups.c (EOVERFLOW): Remove fallback.
35751         * modules/getugroups (Depends-on): Add EOVERFLOW.
35752
35753         * lib/getdelim.c (EOVERFLOW): Remove fallback.
35754         * modules/getdelim (Depends-on): Add EOVERFLOW.
35755
35756         * lib/ftell.c (EOVERFLOW): Remove fallback.
35757         * modules/ftell (Depends-on): Add EOVERFLOW.
35758
35759         * lib/fprintf.c (EOVERFLOW): Remove fallback.
35760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
35761         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
35762
35763         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
35764
35765         * modules/EOVERFLOW-tests: New file.
35766         * tests/test-EOVERFLOW.c: New file.
35767
35768         * modules/EOVERFLOW: New file.
35769         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
35770
35771 2008-03-30  Bruno Haible  <bruno@clisp.org>
35772
35773         Fix bug introduced on 2007-06-10.
35774         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
35775         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
35776
35777 2008-03-30  Bruno Haible  <bruno@clisp.org>
35778
35779         Improve freadseek's efficiency after ungetc.
35780         * lib/freadseek.c: Include freadahead.h.
35781         (freadptrinc): New function, extracted from freadseek.
35782         (freadseek): Use it in a loop. Use freadahead to determine the number
35783         of loop iterations.
35784         * modules/freadseek (Depends-on): Add freadahead.
35785         (configure.ac): Require AC_C_INLINE.
35786
35787 2008-03-30  Bruno Haible  <bruno@clisp.org>
35788
35789         * lib/freadseek.c (freadseek): Don't ignore the return value of
35790         freadptr.
35791
35792 2008-03-29  Eric Blake  <ebb9@byu.net>
35793
35794         Add hex float support.
35795         * modules/strtod (Depends-on): Add c-ctype.
35796         (Link): Mention POW_LIB.
35797         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
35798         whitespace between 'e' and exponent.
35799         * tests/test-strtod.c (main): Enable hex float tests.
35800         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
35801         now provides.
35802
35803         Document various strtod bugs, with some fixes.
35804         * doc/posix-functions/strtod.texi (strtod): Document bugs with
35805         "-0x", "inf", "nan", and hex constants.
35806         * doc/posix-functions/atof.texi (atof): Likewise.
35807         * modules/stdlib (Makefile.am): Support strtod.
35808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35809         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
35810         detect additional strtod bugs.
35811         * lib/stdlib.in.h (rpl_strtod): Add declarations.
35812         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
35813         bool where appropriate.  Parse 'inf' and 'nan'.
35814         * tests/test-strtod.c: New file.
35815         * modules/strtod (Depends-on): Add stdbool, stdlib.
35816         (configure.ac): Turn on module indicator.
35817         * modules/strtod-tests: New module.
35818
35819 2008-03-29  Eric Blake  <ebb9@byu.net>
35820
35821         Fix ftell on mingw.
35822         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
35823         * modules/ftell-tests (Depends-on): Add binary-io.
35824         * modules/ftello-tests (Depends-on): Likewise.
35825         * tests/test-ftell.c (main): Enhance test to cover behavior after
35826         ungetc.  Enforce binary mode.
35827         * tests/test-ftello.c (main): Likewise.
35828
35829         Pass test-freadseek on cygwin.
35830         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
35831         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
35832         ungetc buffer.
35833
35834         * tests/test-fflush2.c (main): Fix typo.
35835
35836 2008-03-29  Bruno Haible  <bruno@clisp.org>
35837
35838         * tests/test-fflush2.c (main): Temporarily disable the contents of
35839         this test.
35840         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
35841         Reported by Eric Blake.
35842
35843 2008-03-28  Simon Josefsson  <simon@josefsson.org>
35844
35845         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
35846         (GC_SHA224_DIGEST_SIZE): Add.
35847
35848         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
35849         (gc_hash_digest_length): Likewise.
35850         (gc_hash_buffer): Likewise.
35851
35852 2008-03-25  Bruno Haible  <bruno@clisp.org>
35853
35854         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
35855         detail which gettext release to use.
35856         Reported by Simon Josefsson.
35857
35858 2008-03-26  Jim Meyering  <meyering@redhat.com>
35859
35860         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
35861         * modules/gnumakefile (clean-GNUmakefile): Also, use
35862         test ... && ... || : syntax rather than if-then ... fi.
35863
35864         gnumakefile: Don't double-quote-expand $(VPATH) value.
35865         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
35866
35867 2008-03-24  Eric Blake  <ebb9@byu.net>
35868
35869         Alter GNUmakefile to install into top directory.
35870         * modules/maintainer-makefile: Split, and add dependency...
35871         * modules/gnumakefile: to this new module.
35872         * build-aux/GNUmakefile: Move...
35873         * top/GNUmakefile: ...here.
35874         * build-aux/maint.mk: Move...
35875         * top/maint.mk: ...here.
35876         * MODULES.html.sh (Support for maintaining...): Document new
35877         module.
35878
35879 2008-03-23  Bruno Haible  <bruno@clisp.org>
35880
35881         * gnulib-tool: New options --vc-files, --no-vc-files.
35882         (func_usage): Document them.
35883         (vc_files): New variable.
35884         (func_import): Consider vc_files.
35885         (func_create_testdir): Set vc_files to empty.
35886         Suggested by Jim Meyering and Karl Berry.
35887
35888 2008-03-23  Bruno Haible  <bruno@clisp.org>
35889
35890         Fix regex compilation error on HP-UX 11.
35891         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
35892         * modules/regex (Files): Add m4/mbstate_t.m4.
35893         Reported by Ton Voon <ton.voon@altinity.com>.
35894
35895 2008-03-23  Bruno Haible  <bruno@clisp.org>
35896
35897         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
35898
35899 2008-03-23  Eric Blake  <ebb9@byu.net>
35900             Bruno Haible  <bruno@clisp.org>
35901
35902         Install files from top/ in the destination directory.
35903         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35904         augmentation also for the files from top/.
35905         (func_import, func_create_testdir): Rewrite file names:
35906         top/filename -> filename.
35907
35908 2008-03-23  Bruno Haible  <bruno@clisp.org>
35909
35910         Tweak "gnulib --version" output.
35911         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
35912
35913 2008-03-23  Bruno Haible  <bruno@clisp.org>
35914
35915         Tweak "gnulib --version" output.
35916         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
35917         rather than contents of ChangeLog, when possible.
35918
35919 2008-03-21  Eric Blake  <ebb9@byu.net>
35920
35921         More --version tweaks.
35922         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
35923         date of last ChangeLog entry.
35924
35925 2008-03-21  Jim Meyering  <meyering@redhat.com>
35926
35927         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
35928
35929 2008-03-20  Eric Blake  <ebb9@byu.net>
35930
35931         VPATH fix.
35932         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
35933
35934 2008-03-20  Simon Josefsson  <simon@josefsson.org>
35935
35936         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
35937         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
35938
35939 2008-03-20  Eric Blake  <ebb9@byu.net>
35940
35941         Sync GNUmakefile with coreutils.
35942         * build-aux/GNUmakefile (have-Makefile): Rename...
35943         (_have-Makefile): ...to this, for namespace consideration.
35944         (GNUmakefile.cfg): Include, if present.
35945         (_autoreconf): Define a default.
35946         (_is-dist-target): New rule for rebuilds to pick up intra-release
35947         version.
35948         (maint-cfg.mk): Rename...
35949         (cfg.mk): ...to this.
35950
35951 2008-03-18  Jim Meyering  <meyering@redhat.com>
35952
35953         New script and module: mktempd
35954         * MODULES.html.sh (maint+release support): Add mktempd.
35955         * build-aux/mktempd: New file.
35956         * modules/mktempd: New file.
35957
35958 2008-03-15  Jim Meyering  <meyering@redhat.com>
35959
35960         Undo last change.
35961         * lib/sha1.c, lib/md5.c: 63 != ~63.
35962         Reported by Andreas Schwab.
35963
35964         sha1.c, md5.c: Hoist a redundant expression.
35965         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
35966         "ctx->buflen" only once, before calling *_process_block.
35967         * lib/md5.c (md5_process_bytes): Likewise.
35968
35969 2008-03-14  Eric Blake  <ebb9@byu.net>
35970
35971         Bump copyright year in files generated by gnulib-tool.
35972         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
35973         gnulib-tool, rather than hard-coding it.
35974
35975         Fix 'gnulib-tool --version' output to work with git.
35976         * gnulib-tool (func_gnulib_dir): New function, extracted from...
35977         (startup): ...here.
35978         (func_version): Use it to invoke git-version-gen, rather than
35979         relying on CVS keyword expansion.  Modernize wording.
35980         (cvsdatestamp, last_checkin_date, version): Kill unused
35981         variables.
35982
35983 2008-03-12  Jim Meyering  <meyering@redhat.com>
35984
35985         Recognize optional cast of the argument to free.
35986         * build-aux/useless-if-before-free: Update regexps.
35987
35988         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
35989
35990 2008-03-11  Bruno Haible  <bruno@clisp.org>
35991
35992         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
35993         by a single package.
35994         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
35995         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
35996         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
35997         Reported by Sam Steingold <sds@gnu.org>.
35998
35999 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36000
36001         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
36002         repositories.
36003
36004 2008-03-11  Bruno Haible  <bruno@clisp.org>
36005
36006         Avoid conflicts between local macro definitions.
36007         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36008         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
36009
36010 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
36011             Bruno Haible  <bruno@clisp.org>
36012
36013         Make va_copy work with some version of xlc on AIX 5.1.
36014         * lib/stdarg.in.h: New file.
36015         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
36016         On AIX, use a <stdarg.h> file substitute.
36017         * modules/stdarg (Files): Add lib/stdarg.in.h.
36018         (Depends-on): Add include_next.
36019         (Makefile.am): Build a stdarg.h substitute if requested.
36020         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
36021
36022 2008-03-10  Bruno Haible  <bruno@clisp.org>
36023
36024         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
36025         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36026         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36027
36028 2008-03-10  Bruno Haible  <bruno@clisp.org>
36029
36030         * modules/stdlib (Depends-on): Add include_next, remove
36031         absolute-header.
36032
36033 2008-03-09  Bruno Haible  <bruno@clisp.org>
36034
36035         * lib/freadahead.h (freadahead): Document more precisely.
36036         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
36037         the sum of both buffer sizes.
36038         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
36039         * NEWS: Document the change.
36040
36041 2008-03-09  Bruno Haible  <bruno@clisp.org>
36042
36043         Extend freadptr to return also the buffer size.
36044         * lib/freadptr.h (freadptr): Add sizep argument.
36045         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
36046         (freadptr): Add sizep argument. Determine buffer size like freadahead
36047         does.
36048         * tests/test-freadptr.c: Don't include freadahead.h.
36049         (main): Adapt for new calling convention of freadptr.
36050         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
36051         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
36052         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
36053         tests/test-freadptr2.sh.
36054         (Depends): Remove freadahead.
36055         (TESTS): Add test-freadptr2.sh.
36056         (check_PROGRAMS): Add test-freadptr2.
36057
36058 2008-03-09  Bruno Haible  <bruno@clisp.org>
36059
36060         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
36061         Report and solution by Simon Josefsson.
36062
36063 2008-03-06  Bruno Haible  <bruno@clisp.org>
36064
36065         Make fflush after ungetc work on BSD platforms.
36066         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
36067         * tests/test-fflush2.c: New file.
36068         * tests/test-fflush2.sh: New file.
36069         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
36070         tests/test-fflush2.c.
36071         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
36072         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
36073
36074 2008-03-06  Eric Blake  <ebb9@byu.net>
36075
36076         Likewise for ftello.
36077         * modules/ftello (Dependencies): Add extensions.
36078         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
36079
36080 2008-03-06  Bruno Haible  <bruno@clisp.org>
36081
36082         * modules/fseeko (Dependencies): Add extensions.
36083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
36084         Needed on glibc systems.
36085
36086 2008-03-06  Bruno Haible  <bruno@clisp.org>
36087
36088         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
36089         email address.
36090         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36091
36092 2008-03-06  Bruno Haible  <bruno@clisp.org>
36093
36094         * users.txt: Add libgnupdf.
36095
36096 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
36097
36098         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
36099         (Header File Substitutes, Function Substitutes,
36100         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
36101         (Build robot for gnulib): Fix typo.
36102
36103 2008-03-06  Bruno Haible  <bruno@clisp.org>
36104
36105         * doc/gnulib-tool.texi (VCS Issues): Small updates.
36106         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
36107
36108 2008-03-06  Bruno Haible  <bruno@clisp.org>
36109
36110         * doc/func.texi: New file, extracted from doc/gnulib.texi.
36111         * doc/gnulib.texi: Include it.
36112
36113 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36114
36115         * modules/func (License): Change license to unlimited; there was
36116         no LGPL parts in the module anyway.
36117
36118 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36119
36120         * modules/__func__: Renamed to modules/func.
36121         * modules/__func__-tests: Renamed to modules/func-tests.
36122         * tests/test-__func__.c: Renamed to tests/test-func.c.
36123         * m4/__func__.m4: Renamed to m4/func.m4.
36124         * doc/gnulib.texi (__func__): Section renamed to func.
36125         Suggested by Eric Blake <ebb9@byu.net>.
36126
36127 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36128
36129         * doc/gnulib.texi (__func__): Use C99 terminology when talking
36130         about __func__.  Make example self-contained.  Suggested by Eric
36131         Blake <ebb9@byu.net>.
36132
36133         * tests/test-__func__.c (main): Avoid extraneous () around __func.
36134         Suggested by Eric Blake <ebb9@byu.net>.
36135
36136 2008-03-06  Simon Josefsson  <simon@josefsson.org>
36137
36138         * modules/__func__: New file.
36139         * modules/__func__-tests: New file.
36140         * tests/test-__func__.c: New file.
36141         * m4/__func__.m4: New file.
36142         * doc/gnulib.texi (__func__): Document __func__ module.
36143
36144 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36145
36146         * modules/byteswap (License): Re-license as LGPLv2+.
36147
36148 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36149
36150         * doc/Makefile: Add pdf target.
36151
36152 2008-03-05  Simon Josefsson  <simon@josefsson.org>
36153
36154         * modules/inline (License): Use 'unlimited', since there are only
36155         *.m4 files in this module.
36156
36157 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36158             Bruno Haible  <bruno@clisp.org>
36159
36160         Add support for HP C 7.1 on OpenVMS 8.3.
36161         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
36162
36163 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
36164
36165         Update VMS specifics.
36166         * lib/getopt.c [VMS]: Remove include of unixlib.h.
36167
36168 2008-03-02  Jim Meyering  <meyering@redhat.com>
36169
36170         Remove the last dependency on the "free" module.
36171         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
36172         Reported by Bob Proulx.
36173
36174         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
36175
36176         Remove useless "if" tests before free.  Deprecate "free" module.
36177         * doc/posix-functions/free.texi: Mention that this
36178         module is no longer useful.
36179         * modules/free (Notice): Say this module is obsolete.
36180         * modules/readutmp (Depends-on): Remove free.
36181         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
36182         * lib/putenv.c (putenv): Likewise.
36183         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
36184         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
36185         * tests/test-c-strcasestr.c (main): Likewise.
36186         * tests/test-c-strstr.c (main): Likewise.
36187         * tests/test-mbscasestr1.c (main): Likewise.
36188         * tests/test-mbscasestr2.c (main): Likewise.
36189         * tests/test-mbsstr1.c (main): Likewise.
36190         * tests/test-mbsstr2.c (main): Likewise.
36191         * tests/test-memmem.c (main): Likewise.
36192         * tests/test-strcasestr.c (main): Likewise.
36193         * tests/test-striconv.c (main): Likewise.
36194         * tests/test-striconveh.c (main): Likewise.
36195         * tests/test-striconveha.c (main): Likewise.
36196         * tests/test-strstr.c (main): Likewise.
36197
36198         * build-aux/git-version-gen: Adjust a comment and the Usage string.
36199
36200         bootstrap: sync from coreutils again
36201         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
36202
36203 2008-03-01  Jim Meyering  <meyering@redhat.com>
36204
36205         bootstrap: sync from coreutils
36206         * build-aux/bootstrap (update_po_files): Copy a .po file into place
36207         also when the target doesn't exist.
36208
36209 2008-03-01  Eric Blake  <ebb9@byu.net>
36210
36211         Fix bugs in last patch.
36212         * lib/memchr2.c (memchr2): Fix typo.
36213         * tests/test-memchr2.c: Test previous bug, and don't use GNU
36214         extension.
36215         Reported by Bruce Korb.
36216
36217         New module 'memchr2'.
36218         * modules/memchr2: New file.
36219         * modules/memchr2-tests: Likewise.
36220         * lib/memchr2.h: Likewise.
36221         * lib/memchr2.c: Likewise, based on memchr.c.
36222         * tests/test-memchr2.c: New test.
36223         * MODULES.html.sh (String handling): Add memchr2.
36224
36225 2008-02-29  Bruno Haible  <bruno@clisp.org>
36226
36227         * modules/freadseek-tests: New file.
36228         * tests/test-freadseek.sh: New file.
36229         * tests/test-freadseek.c: New file.
36230
36231         New module 'freadseek'.
36232         * modules/freadseek: New file.
36233         * lib/freadseek.h: New file.
36234         * lib/freadseek.c: New file.
36235         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
36236
36237 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
36238
36239         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
36240         wydawca.
36241
36242         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
36243         program_invocation_name and program_invocation_short_name are
36244         present.
36245
36246 2008-02-28  Bruno Haible  <bruno@clisp.org>
36247
36248         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
36249         * tests/test-freadptr.sh: Also test non-seekable stdin.
36250
36251 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
36252
36253         * build-aux/bootstrap (source_base, m4_base)
36254         (doc_base, tests_base): New variables.
36255         (gnulib_tool_options): Do not hardcode base directories, use
36256         the above variables instead.
36257
36258 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
36259
36260         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
36261
36262 2008-02-28  Bruno Haible  <bruno@clisp.org>
36263
36264         * modules/freadptr-tests: New file.
36265         * tests/test-freadptr.sh: New file.
36266         * tests/test-freadptr.c: New file.
36267
36268         New module 'freadptr'.
36269         * modules/freadptr: New file.
36270         * lib/freadptr.h: New file.
36271         * lib/freadptr.c: New file.
36272         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
36273
36274 2008-02-26  Karl Berry  <karl@freefriends.org>
36275
36276         Sync from Libtool:
36277         * libltdl/argz.c (argz_add, argz_count): New functions.
36278         * libltdl/argz.in.h: Declare them.
36279         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
36280
36281 2008-02-22  Bruno Haible  <bruno@clisp.org>
36282
36283         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
36284         is a pointer type.  Needed for HP-UX 10.
36285         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
36286         * doc/posix-functions/gmtime_r.texi: Likewise.
36287         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
36288
36289 2008-02-24  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/environ-tests: New file.
36292         * tests/test-environ.c: New file.
36293
36294         New module 'environ'.
36295         * modules/environ: New file.
36296         * lib/unistd.in.h (environ): New declaration.
36297         * m4/environ.m4: New file.
36298         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
36299         after use.
36300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
36301         HAVE_DECL_ENVIRON.
36302         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
36303         HAVE_DECL_ENVIRON.
36304         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
36305         wrong claim that 'environ' is missing on some systems.
36306         * modules/execute (Depends-on): Add environ.
36307         * lib/execute.c (environ): Remove fallback declaration.
36308         * modules/pipe (Depends-on): Add environ.
36309         * lib/pipe.c (environ): Remove fallback declaration.
36310         * modules/setenv (Depends-on): Add environ.
36311         * lib/setenv.c (environ): Remove fallback declaration.
36312         * modules/unsetenv (Depends-on): Add environ.
36313         * lib/unsetenv.c (environ): Remove fallback declaration.
36314         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
36315         m4/environ.m4.
36316         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
36317         (gl_PREREQ_UNSETENV): Likewise.
36318
36319 2008-02-24  Bruno Haible  <bruno@clisp.org>
36320
36321         * doc/posix-functions/environ.texi: Document the MacOS X problem.
36322
36323 2008-02-20  Bob Proulx  <bob@proulx.com>
36324
36325         Enable use of older two part flavor 'git describe'.
36326         * build-aux/git-version-gen: If using the older two part flavor of
36327         git version then recreate the third part now present in the
36328         newer three part flavor of git describe.
36329
36330 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
36331
36332         * lib/fts.c (fts_build): Typo correction to comment.
36333
36334 2008-02-17  Bruno Haible  <bruno@clisp.org>
36335
36336         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
36337         generating no-op conflicts.
36338
36339 2008-02-17  Bruno Haible  <bruno@clisp.org>
36340
36341         Speed up by 10%.
36342         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
36343         result_entries, rather than an index-based loop.
36344
36345 2008-02-17  Bruno Haible  <bruno@clisp.org>
36346
36347         Speed up by 25%.
36348         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
36349         'hashcode_cached'.
36350         (entry_create): New function.
36351         (entry_hashcode): Use the cached hashcode if possible.
36352         (read_changelog_file, try_split_merged_entry): Use entry_create.
36353
36354 2008-02-17  Bruno Haible  <bruno@clisp.org>
36355
36356         Speed up from O(n^2) to O(n) for long ChangeLog files.
36357         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
36358         (read_changelog_file): Change implementation of entries_reversed list
36359         to rbtreehash.
36360         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
36361
36362 2008-02-17  Bruno Haible  <bruno@clisp.org>
36363
36364         New option --split-merged-entry.
36365         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
36366         (find_paragraph_end, try_split_merged_entry): New functions.
36367         (long_options): Add option --split-merged-entry.
36368         (usage): Document option --split-merged-entry.
36369         (main): Implement option --split-merged-entry.
36370         Reported by Eric Blake.
36371
36372 2008-02-17  Bruno Haible  <bruno@clisp.org>
36373
36374         * lib/git-merge-changelog.c: Include c-strstr.h.
36375         (main): Support the "git pull --rebase" situation.
36376         * modules/git-merge-changelog (Depends-on): Add c-strstr.
36377         Reported by Eric Blake.
36378
36379 2008-02-16  Eric Blake  <ebb9@byu.net>
36380
36381         Avoid doubling \ in common case of "c-maybe" quoting style.
36382         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
36383         eliding outer quotes.
36384         * lib/quotearg.h: Document this.
36385         * tests/test-quotearg.c (result_strings, inputs, results_g)
36386         (flag_results, locale_results): Test it by adding a new string to
36387         each test group.
36388         (compare_strings): Test new string.
36389
36390 2008-02-13  Eric Blake  <ebb9@byu.net>
36391
36392         Avoid trigraph quoting in default output.
36393         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
36394         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
36395         unless explicitly requested.
36396         * tests/test-quotearg.c (flag_results, main): Add additional tests.
36397
36398 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
36399
36400         Don't rely on signed integer overflowing to negative value.
36401         * lib/getugroups.c (getugroups): Include <limits.h>.
36402         Instead, compare against INT_MAX, and increment only if the test passes.
36403
36404 2008-02-13  Jim Meyering  <meyering@redhat.com>
36405         and Eric Blake  <ebb9@byu.net>
36406
36407         Avoid shadowing warning and compile errors on Linux.
36408         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
36409         forwarding macros on Linux.
36410         (dcgettext): Define a stub, for Linux.
36411         (results_g, main): Avoid warnings.
36412
36413 2008-02-12  Eric Blake  <ebb9@byu.net>
36414
36415         Silence warning in last patch.
36416         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
36417
36418         Quotearg part 4: add tests, fix c-maybe colon quoting.
36419         * lib/quotearg.h: Improve documentation.
36420         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
36421         escapes when adding outer quotes.  When quoting trigraphs, use
36422         valid C notation.  When quoting NUL, omit extra characters if next
36423         character is not digit.  Alter prototype.
36424         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
36425         callers.
36426         * modules/quotearg-tests: New module.
36427         * tests/test-quotearg.c: New test.
36428
36429 2008-02-07  Eric Blake  <ebb9@byu.net>
36430
36431         Quotearg part 3: add flag to control outer quote elision.
36432         * lib/quotearg.h (c_maybe_quoting_style): New style.
36433         (enum quoting_flags): Better documentation of flags.
36434         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
36435         c-maybe style.
36436         (quotearg_buffer_restyled): Handle new flag to elide outer
36437         quotes.
36438
36439         Quotearg part 2: add flag that can control NUL elision.
36440         * lib/quotearg.h (set_quoting_flags): New prototype.
36441         * lib/quotearg.c (struct quoting_options): Add flag field.
36442         (set_quoting_flags): New function.
36443         (quotearg_buffer_restyled): Add flags parameter.
36444         (quotearg_alloc_mem): Set the flag if length cannot be returned.
36445         (quotearg_n_options): Set the flag, since length cannot be
36446         returned.
36447         (quoting_options_from_style): Default flags correctly.
36448
36449         Quotearg part 1: more wrappers, restore quotearg_char state.
36450         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
36451         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
36452         (quotearg_colon_mem): New wrappers.
36453         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
36454         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
36455         functions.
36456         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
36457         (quotearg_colon_mem): New functions.
36458
36459 2008-02-11  Bruno Haible  <bruno@clisp.org>
36460
36461         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
36462         library in the current directory: it does not work with parallel make.
36463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36464
36465 2008-02-11  Bruno Haible  <bruno@clisp.org>
36466
36467         * .gitattributes: New file.
36468
36469 2008-02-11  Jim Meyering  <meyering@redhat.com>
36470
36471         useless-if-before-free: Fix reversed exit values.
36472         * build-aux/useless-if-before-free: Use correct values
36473         for EXIT_MATCH and EXIT_NO_MATCH.
36474
36475         * build-aux/useless-if-before-free: Close stdout carefully.
36476
36477 2008-02-10  Bruno Haible  <bruno@clisp.org>
36478
36479         New module 'git-merge-changelog'.
36480         * modules/git-merge-changelog: New file.
36481         * lib/git-merge-changelog.c: New file.
36482
36483 2008-02-10  Jim Meyering  <meyering@redhat.com>
36484
36485         useless-if-before-free: New option: --list (-l).
36486
36487         useless-if-before-free: Don't exit immediately upon open failure.
36488         * build-aux/useless-if-before-free: Exit 2 for errors.
36489         Upon failure to open a file, don't exit immediately.
36490         Rather, just warn and continue with any remaining files.
36491
36492 2008-02-10  Bruno Haible  <bruno@clisp.org>
36493
36494         New abstract list operation 'node_set_value'.
36495         * lib/gl_list.h (gl_list_node_set_value): New function.
36496         (struct gl_list_implementation): New field node_set_value.
36497         * lib/gl_list.c (gl_list_node_set_value): New function.
36498         * lib/gl_array_list.c (gl_array_node_set_value): New function.
36499         (gl_array_list_implementation): Update.
36500         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
36501         (gl_carray_list_implementation): Update.
36502         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
36503         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36504         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36505         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
36506         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36507         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36508         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36509         Update.
36510         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36511         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
36512         (gl_sublist_list_implementation): Update.
36513
36514 2008-02-10  Bruno Haible  <bruno@clisp.org>
36515
36516         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
36517         Needed when ELEMENT is #defined to 'some_type *'.
36518
36519 2008-02-10  Jim Meyering  <meyering@redhat.com>
36520
36521         New script and module: useless-if-before-free
36522         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
36523         * build-aux/useless-if-before-free: New file.
36524         * modules/useless-if-before-free: New file.
36525
36526         * build-aux/gitlog-to-changelog: Use committer date, not author date.
36527
36528         xstrtol_error: Fix typo.
36529         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
36530         s/exit_failure/exit_status/.
36531
36532 2008-02-09  Jim Meyering  <meyering@redhat.com>
36533
36534         New script and module: gitlog-to-changelog
36535         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
36536         * modules/gitlog-to-changelog: New file.
36537         * build-aux/gitlog-to-changelog: New file.
36538
36539 2008-02-08  Jim Meyering  <meyering@redhat.com>
36540
36541         Avoid two "parameter unused" warnings.
36542         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
36543         Mark "st" as used.
36544
36545         Use "git COMMAND", not "git-COMMAND".
36546         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
36547         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
36548         * build-aux/git-version-gen: Use "git status", not "git-status".
36549
36550 2008-02-07  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
36553         Avoids a crash on Windows Vista.
36554         Reported by Adam Strzelecki <ono@java.pl> via
36555         Simon Josefsson <simon@josefsson.org>.
36556
36557 2008-02-06  Bruno Haible  <bruno@clisp.org>
36558
36559         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
36560         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
36561         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
36562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
36563         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36565         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
36566         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
36567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36574         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
36575         left-adjust flag.
36576         * tests/test-snprintf-posix.h (test_function): Likewise.
36577         * tests/test-sprintf-posix.h (test_function): Likewise.
36578         * tests/test-vasprintf-posix.c (test_function): Likewise.
36579         * doc/posix-functions/fprintf.texi: Update.
36580         * doc/posix-functions/printf.texi: Update.
36581         * doc/posix-functions/snprintf.texi: Update.
36582         * doc/posix-functions/sprintf.texi: Update.
36583         * doc/posix-functions/vfprintf.texi: Update.
36584         * doc/posix-functions/vprintf.texi: Update.
36585         * doc/posix-functions/vsnprintf.texi: Update.
36586         * doc/posix-functions/vsprintf.texi: Update.
36587         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36588
36589 2008-02-06  Bruno Haible  <bruno@clisp.org>
36590
36591         Fix bug introduced on 2008-01-26.
36592         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
36593
36594 2008-02-06  Bruno Haible  <bruno@clisp.org>
36595
36596         Fix bug introduced on 2007-06-10.
36597         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
36598         !NEED_PRINTF_FLAG_ZERO.
36599
36600 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
36601
36602         getloadavg: use libperfstat on AIX5
36603         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
36604
36605 2008-02-03  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/diffseq.h: Add comments about required #includes.
36608         Reported by Michael Biggs <gnulib@doubleplum.net>.
36609
36610 2008-02-01  Bruno Haible  <bruno@clisp.org>
36611
36612         * users.txt: Add gnuit.
36613
36614 2008-01-31  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/md4.c (set_uint32): Mark as inline.
36617         * lib/md5.c (set_uint32): Likewise.
36618         * lib/sha1.c (set_uint32): Likewise.
36619         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
36620         * m4/md5.m4 (gl_MD5): Likewise.
36621         * m4/sha1.m4 (gl_SHA1): Likewise.
36622
36623 2008-01-31  Jim Meyering  <meyering@redhat.com>
36624
36625         Use "sizeof VAR", rather than a literal "4".
36626         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
36627         * lib/md4.c (md4_read_ctx): Likewise.
36628         * lib/sha1.c (sha1_read_ctx): Likewise.
36629
36630 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36631
36632         * tests/test-sha1.c: New file, based on test-md5.c.
36633
36634         * modules/crypto/sha1-tests: New file.
36635
36636 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36637
36638         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
36639
36640 2008-01-31  Jim Meyering  <meyering@redhat.com>
36641
36642         Prefer "sizeof v" over the equivalent "4".
36643         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
36644         * lib/md5.c (set_uint32): Likewise.
36645         * lib/sha1.c (set_uint32): Likewise.
36646
36647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36648
36649         * lib/sha1.c (set_uint32): Mark function as static.
36650
36651 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36652
36653         md2: clarify comments to say that alignment is not required.
36654         * lib/md2.h: Remove warning about alignment in comment.
36655         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
36656         never been required.
36657
36658 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36659
36660         md4: adapt alignment constraint fix from sha1.
36661         * lib/md4.c (set_uint32): New function, from sha1.c
36662         (md4_read_ctx): Use it.
36663         (md4_finish_ctx): Doc fix.
36664         * lib/md4.h: Doc fix.
36665
36666 2008-01-31  Simon Josefsson  <simon@josefsson.org>
36667
36668         md5: adapt alignment constraint fix from sha1.
36669         * lib/md5.c (set_uint32): New function, from sha1.c
36670         (md5_read_ctx): Use it.
36671         (md5_finish_ctx): Doc fix.
36672         * lib/md5.h: Doc fix.
36673
36674 2008-01-30  Peter Palfrader  <weasel@debian.org>
36675
36676         sha1: remove the result buffer alignment constraint
36677         * lib/sha1.c (set_uint32): New function.
36678         (sha1_read_ctx): Rewrite to remove the result buffer alignment
36679         constraint.
36680         (sha1_finish_ctx): Remove comment warning about alignment constraint.
36681         * lib/sha1.h: Likewise.
36682
36683 2008-01-30  Andreas Schwab  <schwab@suse.de>
36684             Bruno Haible  <bruno@clisp.org>
36685
36686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
36687         correct definition of LDBL_MIN_EXP.
36688
36689 2008-01-30  Karl Berry  <karl@gnu.org>
36690
36691         * config/srclist-update: try to preserve x bit on updates.
36692         * config/srclistvars.sh: update for karl.
36693
36694 2008-01-29  Jim Meyering  <meyering@redhat.com>
36695
36696         vasnprintf.c: Avoid warning about unused label
36697         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
36698         "overflow" label definition and associated code with the
36699         same cpp condition that guards the sole use of that label.
36700
36701 2008-01-26  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
36704         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
36705         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
36706         * lib/isnanl-nolibm.h (isnanl): Likewise.
36707         Reported by Paul Eggert <eggert@cs.ucla.edu>.
36708
36709 2008-01-26  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
36712         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
36713
36714 2008-01-26  Bruno Haible  <bruno@clisp.org>
36715
36716         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
36717         GCC >= 4.0 built-in.
36718         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
36719
36720 2008-01-26  Bruno Haible  <bruno@clisp.org>
36721
36722         Rename isnan, applicable to 'double' only, to isnand.
36723         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
36724         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
36725         (configure.ac): Update.
36726         (Include): Replace "isnan.h" with "isnand.h".
36727         * m4/isnand.m4: Renamed from m4/isnan.m4.
36728         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
36729         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
36730         instead of isnan.c.
36731         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
36732         instead of HAVE_ISNAN_IN_LIBC.
36733         (isnand): Renamed from isnan.
36734         * lib/isnand.c: New file.
36735         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
36736         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
36737         (Makefile.am): Update.
36738         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
36739         Include isnand.h instead of isnan.h.
36740         (main): Test isnand instead of isnan.
36741         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
36742         isnan-nolibm.
36743         * modules/frexp (Depends-on): Likewise.
36744         * modules/frexp-tests (Depends-on): Likewise.
36745         * modules/frexp-nolibm (Depends-on): Likewise.
36746         * modules/frexp-nolibm-tests (Depends-on): Likewise.
36747         * modules/isfinite (Depends-on): Likewise.
36748         * modules/round-tests (Depends-on): Likewise.
36749         * modules/signbit (Depends-on): Likewise.
36750         * modules/signbit-tests (Depends-on): Likewise.
36751         * modules/snprintf-posix (Depends-on): Likewise.
36752         * modules/sprintf-posix (Depends-on): Likewise.
36753         * modules/trunc-tests (Depends-on): Likewise.
36754         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36755         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36756         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36757         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36758         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36759         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36760         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36761         * modules/vasnprintf-posix (Depends-on): Likewise.
36762         * modules/vasprintf-posix (Depends-on): Likewise.
36763         * modules/vfprintf-posix (Depends-on): Likewise.
36764         * modules/vsnprintf-posix (Depends-on): Likewise.
36765         * modules/vsprintf-posix (Depends-on): Likewise.
36766         * lib/frexp.c: Include isnand.h instead of isnan.h.
36767         (ISNAN): Set to isnand instead of isnan.
36768         * lib/isfinite.c: Include isnand.h instead of isnan.h.
36769         (gl_isfinited): Use isnand instead of isnan.
36770         * lib/signbitd.c: Include isnand.h instead of isnan.h.
36771         (gl_signbitd): Use isnand instead of isnan.
36772         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
36773         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
36774         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
36775         (main): Use isnand instead of isnan.
36776         * tests/test-round1.c: Include isnand.h.
36777         (main): Use isnand instead of isnan.
36778         * tests/test-round2.c: Include isnand.h instead of isnan.h.
36779         (ISNAN): Set to isnand instead of isnan.
36780         * tests/test-trunc1.c: Include isnand.h.
36781         (main): Use isnand instead of isnan.
36782         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
36783         (equal): Use isnand instead of isnan.
36784         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
36785         isnand-nolibm.
36786         * NEWS: Mention the change.
36787
36788 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36789             Bruno Haible  <bruno@clisp.org>
36790
36791         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
36792         the GCC builtins for signbits are present and set
36793         REPLACE_SIGNBIT_USING_GCC if so.
36794         * lib/math.in.h (signbit): Define using GCC builtins if
36795         REPLACE_SIGNBIT_USING_GCC is set.
36796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
36797         REPLACE_SIGNBIT_USING_GCC.
36798         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
36799
36800 2008-01-25  Jim Meyering  <meyering@redhat.com>
36801
36802         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
36803         * lib/poll.c: Include <config.h>, not "config.h".
36804         * tests/test-getaddrinfo.c: Likewise.
36805
36806 2008-01-25  Simon Josefsson  <simon@josefsson.org>
36807
36808         * modules/sockets-tests: New file.
36809
36810 2008-01-24  Simon Josefsson  <simon@josefsson.org>
36811
36812         * modules/sockets: New module, can be used to call WSA_Startup and
36813         WSA_Cleanup when needed.
36814
36815         * lib/sockets.h, lib/sockets.c: New files.
36816
36817         * m4/sockets.m4: New file.
36818
36819         * tests/test-sockets.c: New file.
36820
36821 2008-01-19  Bruno Haible  <bruno@clisp.org>
36822
36823         * doc/posix-headers: Renamed from doc/headers.
36824         * doc/posix-functions: Renamed from doc/functions.
36825         * doc/gnulib.texi: Update.
36826
36827 2008-01-19  Bruno Haible  <bruno@clisp.org>
36828
36829         * doc/glibc-functions/strcasestr.texi: Include contents of
36830         doc/functions/strcasestr.texi, fixing the list of platforms.
36831         * doc/functions/strcasestr.texi: Remove file.
36832
36833 2008-01-19  Bruno Haible  <bruno@clisp.org>
36834
36835         * doc/glibc-functions/memmem.texi: Include contents of
36836         doc/functions/memmem.texi.
36837         * doc/functions/memmem.texi: Remove file.
36838
36839 2008-01-18  Bruno Haible  <bruno@clisp.org>
36840
36841         * doc/glibc-functions/*.texi: New files.
36842         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
36843         to use the new files.
36844
36845 2008-01-17  Bruno Haible  <bruno@clisp.org>
36846
36847         * tests/test-gethostname.c (main): Fix printf statement.
36848
36849 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36850
36851         * modules/gethostname-tests: New file.
36852
36853         * tests/test-gethostname.c: New file.
36854
36855 2008-01-17  Simon Josefsson  <simon@josefsson.org>
36856
36857         * lib/gethostname.c: Include string.h unconditionally, strncpy is
36858         used by the UNAME case.  Reported by Bruno Haible
36859         <bruno@clisp.org>.
36860
36861 2008-01-17  Eric Blake  <ebb9@byu.net>
36862
36863         Convert c-strcasestr to be more efficient.
36864         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
36865         (Depends-on): Add c-strcase, remove malloca, strnlen.
36866         * tests/test-c-strcasestr.c (main): Enhance test.
36867         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
36868
36869 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36870
36871         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
36872         Use it in creating po/Makevars.
36873
36874 2008-01-15  Simon Josefsson  <simon@josefsson.org>
36875
36876         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
36877         Applications that requires it should initialize libgcrypt
36878         manually.
36879
36880 2008-01-16  Simon Josefsson  <simon@josefsson.org>
36881
36882         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
36883
36884 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36885
36886         Fix problem with getdate on mingw32 reported by Simon Josefsson
36887         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
36888         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
36889         tzname", when deciding whether to declare tzname.
36890         * lib/strftime.c (tzname): Likewise.
36891
36892 2008-01-15  Bruno Haible  <bruno@clisp.org>
36893
36894         Work around a MacOS X 10.5 bug in frexpl().
36895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
36896         * doc/functions/frexpl.texi: Document the bug.
36897         Reported by Elias Pipping <pipping@gentoo.org>.
36898
36899 2008-01-14  Eric Blake  <ebb9@byu.net>
36900
36901         Touch up previous patch.
36902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
36903         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
36904
36905         Convert strcasestr module to use Two-Way algorithm.
36906         * modules/strcasestr-simple: New module, based on the old
36907         strcasestr, but with Two-Way rather than KMP.
36908         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
36909         * lib/string.in.h (rpl_strcasestr): Declare.
36910         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
36911         performance.
36912         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
36913         * modules/string (Makefile.am): Support strcasestr.
36914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36915         * modules/strcasestr-tests (Depends-on): Check for alarm.
36916         * tests/test-strcasestr.c: Augment test.
36917         * lib/str-two-way.h: Clean up stray macro.
36918         * NEWS: Document new module.
36919         * MODULES.html.sh (string handling): Likewise.
36920         * doc/functions/strcasestr.texi: New file.
36921         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
36922         here, since it is not a POSIX function.
36923
36924 2008-01-14  Colin Watson  <cjwatson@debian.org>
36925             Bruno Haible  <bruno@clisp.org>
36926
36927         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
36928         works fine; if not, set REPLACE_STRSIGNAL.
36929         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
36930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36931         REPLACE_STRSIGNAL.
36932         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
36933         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
36934         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
36935
36936 2008-01-14  Bruno Haible  <bruno@clisp.org>
36937
36938         * modules/strsignal (Include): Change to <string.h>.
36939
36940 2008-01-14  Colin Watson  <cjwatson@debian.org>
36941
36942         * modules/argp (Notice): Add a notice recommending to change
36943         XGETTEXT_OPTIONS.
36944         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
36945
36946 2008-01-13  Colin Watson  <cjwatson@debian.org>
36947
36948         * modules/strsignal-tests: New file.
36949         * tests/test-strsignal.c: New file.
36950
36951         * lib/strsignal.c: New file, from glibc with modifications.
36952         * lib/siglist.h: New file, from glibc with modifications.
36953         * lib/string.in.h (strsignal): New declaration.
36954         * m4/strsignal.m4: New file.
36955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36956         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
36957         * modules/strsignal: New file.
36958         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
36959         HAVE_DECL_STRSIGNAL.
36960
36961 2008-01-13  Bruno Haible  <bruno@clisp.org>
36962
36963         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
36964         locale encoding is not ASCII. Needed for OpenBSD 4.0.
36965         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36966         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36967
36968 2008-01-13  Bruno Haible  <bruno@clisp.org>
36969
36970         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
36971         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
36972         * lib/argp.h (__attribute__): Likewise.
36973         * lib/c-stack.c (__attribute__): Likewise.
36974         * lib/error.h (__attribute__): Likewise.
36975         * lib/fts.c (__attribute__): Likewise.
36976         * lib/openat.h (__attribute__): Likewise.
36977         * lib/stdio.in.h (__attribute__): Likewise.
36978         * lib/string.in.h (__attribute__): Likewise.
36979         * lib/utimens.c (__attribute__): Likewise.
36980         * lib/vasnprintf.h (__attribute__): Likewise.
36981         * lib/xalloc.h (__attribute__): Likewise.
36982         * lib/xprintf.h (__attribute__): Likewise.
36983         * lib/xstrtol.h (__attribute__): Likewise.
36984         * lib/xvasprintf.h (__attribute__): Likewise.
36985
36986 2008-01-12  Bruno Haible  <bruno@clisp.org>
36987
36988         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
36989         * doc/glibc-headers/a.out.texi: New file.
36990         * doc/glibc-headers/aliases.texi: New file.
36991         * doc/glibc-headers/alloca.texi: New file.
36992         * doc/glibc-headers/ar.texi: New file.
36993         * doc/glibc-headers/argp.texi: New file.
36994         * doc/glibc-headers/argz.texi: New file.
36995         * doc/glibc-headers/byteswap.texi: New file.
36996         * doc/glibc-headers/crypt.texi: New file.
36997         * doc/glibc-headers/endian.texi: New file.
36998         * doc/glibc-headers/envz.texi: New file.
36999         * doc/glibc-headers/err.texi: New file.
37000         * doc/glibc-headers/error.texi: New file.
37001         * doc/glibc-headers/execinfo.texi: New file.
37002         * doc/glibc-headers/fpu_control.texi: New file.
37003         * doc/glibc-headers/fstab.texi: New file.
37004         * doc/glibc-headers/fts.texi: New file.
37005         * doc/glibc-headers/getopt.texi: New file.
37006         * doc/glibc-headers/ieee754.texi: New file.
37007         * doc/glibc-headers/ifaddrs.texi: New file.
37008         * doc/glibc-headers/libintl.texi: New file.
37009         * doc/glibc-headers/mcheck.texi: New file.
37010         * doc/glibc-headers/mntent.texi: New file.
37011         * doc/glibc-headers/obstack.texi: New file.
37012         * doc/glibc-headers/paths.texi: New file.
37013         * doc/glibc-headers/printf.texi: New file.
37014         * doc/glibc-headers/pty.texi: New file.
37015         * doc/glibc-headers/resolv.texi: New file.
37016         * doc/glibc-headers/shadow.texi: New file.
37017         * doc/glibc-headers/sysexits.texi: New file.
37018         * doc/glibc-headers/ttyent.texi: New file.
37019
37020 2008-01-12  Jim Meyering  <meyering@redhat.com>
37021
37022         announce-gen: emit Gnulib's git-based version string.
37023         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
37024         New option --gnulib-version=V, where V is expected to be
37025         the output of running git describe in the gnulib directory.
37026         (get_tool_versions): Request feedback on xdelta.  I suspect it's
37027         not useful, and plan to stop publishing an xdelta file with each
37028         coreutils release.
37029
37030         * build-aux/announce-gen: Also check for lzma-compressed files.
37031
37032 2008-01-11  Bruno Haible  <bruno@clisp.org>
37033
37034         * tests/test-memmem.c (main): Increase maximum allowed time.
37035         * tests/test-strstr.c (main): Likewise.
37036
37037 2008-01-11  Bruno Haible  <bruno@clisp.org>
37038
37039         * doc/functions/memmem.texi: Add more precisions about platforms.
37040         * doc/functions/strstr.texi: Likewise.
37041
37042 2008-01-10  Eric Blake  <ebb9@byu.net>
37043
37044         * m4/strstr.m4: Delete cruft from copy-n-paste.
37045         Reported by Bruno Haible.
37046
37047 2008-01-10  Bruno Haible  <bruno@clisp.org>
37048
37049         Make c-strstr rely on strstr.
37050         * lib/c-strstr.c: Don't include str-kmp.h.
37051         (c_strstr): Define in terms of strstr.
37052         * modules/c-strstr (Files): Remove lib/str-kmp.h.
37053         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
37054
37055 2008-01-10  Bruno Haible  <bruno@clisp.org>
37056
37057         * doc/gnulib.texi (String Functions in C Locale): New section.
37058         * doc/c-ctype.texi: New file.
37059         * doc/c-strcase.texi: New file.
37060         * doc/c-strcaseeq.texi: New file.
37061         * doc/c-strcasestr.texi: New file.
37062         * doc/c-strstr.texi: New file.
37063         * doc/c-strtod.texi: New file.
37064         * doc/c-strtold.texi: New file.
37065
37066 2008-01-10  Eric Blake  <ebb9@byu.net>
37067
37068         * lib/relocatable.h: Fix a comment.
37069
37070 2008-01-10  Eric Blake  <ebb9@byu.net>
37071
37072         Share two-way algorithm.
37073         * lib/str-two-way.h: New file, merged from...
37074         * lib/memmem.c: ...here...
37075         * lib/strstr.c: ...and here.
37076         * modules/memmem (Files): Use it.
37077         * modules/strstr (Files): Likewise.
37078
37079         Avoid quadratic strstr implementations.
37080         * lib/strstr.c: New file.
37081         * m4/strstr.m4: Likewise.
37082         * modules/strstr: Likewise.
37083         * modules/strstr-tests: Likewise.
37084         * tests/test-strstr.c: Likewise.
37085         * lib/string.in.h (rpl_strstr): Declare.
37086         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
37087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
37088         * modules/string (Makefile.am): Likewise.
37089         * MODULES.html.sh (string handling): Mention new module.
37090         * doc/functions/strstr.texi (strstr): Document the bug.
37091
37092 2008-01-10  Bruno Haible  <bruno@clisp.org>
37093
37094         * lib/relocatable.h (relocate): State whether result is freshly
37095         allocated or not.
37096         * lib/relocatable.c (relocate): Return a freshly allocated string
37097         instead of a pointer to a privately held string.
37098         Reported by Sylvain Beucler <beuc@gnu.org>.
37099
37100 2008-01-10  Colin Watson  <cjwatson@debian.org>
37101
37102         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
37103         s/S_ISNLK/S_ISLNK/.
37104
37105 2008-01-09  Bruno Haible  <bruno@clisp.org>
37106
37107         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
37108         and other files.
37109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
37110         if it's only a guess.
37111         * modules/memmem: Simplify by depending on memmem-simple.
37112
37113 2008-01-09  Bruno Haible  <bruno@clisp.org>
37114
37115         Work around OpenBSD 4.0 tdelete() bug.
37116         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
37117         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
37118         macros and don't redefine the enum values.
37119         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
37120         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
37121         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
37122
37123 2008-01-09  Bruno Haible  <bruno@clisp.org>
37124
37125         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
37126         (main): Don't perform the tests if setlocale did not install a UTF-8
37127         locale. Needed on OpenBSD 4.0.
37128         * modules/wcwidth-tests (Depends-on): Add localcharset.
37129
37130 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37131
37132         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
37133         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
37134         * NEWS: announce this.
37135         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
37136
37137 2008-01-09  Simon Josefsson  <simon@josefsson.org>
37138         and Eric Blake  <ebb9@byu.net>
37139
37140         Add memmem-simple module.
37141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
37142         (gl_FUNC_MEMMEM): Separate performance from presence checks.
37143         * modules/memmem-simple: New file.
37144         * modules/memmem (Description): Tweak.
37145         * MODULES.html.sh (string handling): Mention new module.
37146         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
37147         addressed by memmem-simple.
37148         * NEWS: Document the difference.
37149
37150 2008-01-09  Eric Blake  <ebb9@byu.net>
37151
37152         Give gcc some memmem optimization hints.
37153         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
37154         (strcasestr): Declare as pure.
37155         * modules/memmem (Maintainer): Claim my implementation.
37156
37157 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37158
37159         Support AIX 6.1 and higher.
37160         * build-aux/config.libpath: Likewise.
37161         * build-aux/config.rpath: Likewise.
37162
37163 2008-01-08  Jim Meyering  <meyering@redhat.com>
37164             Bruno Haible  <bruno@clisp.org>
37165
37166         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
37167         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
37168         Reported by Peter Fales in
37169         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
37170
37171 2008-01-08  Bruno Haible  <bruno@clisp.org>
37172
37173         * modules/unictype/category-of (Depends-on): Add
37174         unictype/category-none.
37175         * modules/unictype/category-and-tests (Depends-on): Add
37176         unictype/category-{L,N,Lu,Nd}.
37177         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
37178         * modules/unictype/category-or-tests (Depends-on): Add
37179         unictype/category-{L,N}.
37180         * modules/unictype/category-name-tests (Depends-on): Add
37181         unictype/category-{Z,Nl}.
37182         Reported by Simon Josefsson.
37183
37184 2008-01-08  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
37187         convention better.
37188         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
37189         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
37190         Reported by Peter Miller <millerp@canb.auug.org.au>.
37191
37192 2008-01-08  Eric Blake  <ebb9@byu.net>
37193
37194         Rewrite memmem to guarantee linear complexity without malloc.
37195         * lib/memmem.c (memmem): Use Two-Way rather than
37196         Knuth-Morris-Pratt, to allow O(1) space usage.
37197         (critical_factorization, two_way_short_needle)
37198         (two_way_long_needle): New functions.
37199         (knuth_morris_pratt): Delete.
37200         * modules/memmem (Depends-on): No longer need malloca or stdbool.
37201         Add stdint.
37202         * tests/test-memmem.c (main): Add tests for periodic needle and
37203         sublinear performance.
37204         * doc/functions/memmem.texi (memmem): Document other deficiencies
37205         in cygwin and older glibc.
37206
37207 2008-01-08  Bruno Haible  <bruno@clisp.org>
37208
37209         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
37210         augmentation.
37211
37212 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
37213
37214         Add a configure time option: --disable-acl.
37215         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
37216         AC_ARG_ENABLE(acl).
37217
37218 2008-01-06  Simon Josefsson  <simon@josefsson.org>
37219
37220         * tests/test-localename.c: Don't include obsolete "setenv.h".
37221
37222         * modules/localename-tests (Depends-on): Need unsetenv.
37223
37224 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37225
37226         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
37227
37228 2008-01-06  Colin Watson  <cjwatson@debian.org>
37229
37230         * users.txt: Add man-db.
37231
37232 2008-01-07  Bruno Haible  <bruno@clisp.org>
37233
37234         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
37235         previous section name.
37236
37237 2008-01-07  Bruno Haible  <bruno@clisp.org>
37238
37239         * lib/progname.c (set_program_name): Don't strip off a leading
37240         "lt-" prefix outside a .libs directory.
37241         Suggested by Paul Eggert.
37242
37243 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
37244             Bruno Haible  <bruno@clisp.org>
37245
37246         Improve memory cleanup in 'relocatable' module.
37247         * lib/relocatable.h (compute_curr_prefix): Change return type to
37248         'char *'.
37249         * lib/relocatable.c (compute_curr_prefix): Change return type to
37250         'char *'. Free curr_installdir after use.
37251         (relocate): Free curr_prefix_better after use.
37252         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
37253
37254 2008-01-01  Bruno Haible  <bruno@clisp.org>
37255
37256         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
37257         failure on older glibc systems.
37258         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37259
37260 2008-01-05  Eric Blake  <ebb9@byu.net>
37261
37262         Avoid quadratic system memmem.
37263         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
37264         Reported by Ralf Wildenhues.
37265
37266         Fix memmem test for mingw.
37267         * modules/memmem-tests (configure.ac): Check for alarm.
37268         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
37269         it.
37270         * doc/functions/memmem.texi: New file.
37271         * doc/gnulib.texi (Function Substitutes): Add memmem.
37272         Reported by Bruno Haible.
37273
37274 2008-01-04  Bruno Haible  <bruno@clisp.org>
37275
37276         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
37277         Require gl_HEADER_STRINGS_H_DEFAULTS, not
37278         gl_HEADER_STRING_H_DEFAULTS.
37279
37280 2008-01-04  Eric Blake  <ebb9@byu.net>
37281
37282         Shorten duration of memmem test.
37283         * tests/test-memmem.c (main): Use alarm to declare failure if test
37284         is taking too long.
37285         Reported by Ralf Wildenhues.
37286
37287 2007-12-21  Simon Josefsson  <simon@josefsson.org>
37288
37289         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
37290         string, needed by strerror.
37291
37292 2008-01-03  Colin Watson  <cjwatson@debian.org>
37293             Bruno Haible  <bruno@clisp.org>
37294
37295         * doc/gnulib-tool.texi (Localization): New section.
37296
37297 2008-01-02  Bruno Haible  <bruno@clisp.org>
37298
37299         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
37300         variables to 'unsigned char *' type.
37301         Reported by Paul Eggert.
37302
37303 2008-01-02  Jim Meyering  <jim@meyering.net>
37304
37305         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
37306
37307 2007-12-31  Jim Meyering  <jim@meyering.net>
37308
37309         Avoid use of private FTS type name.
37310         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
37311
37312 2007-12-30  Karl Berry  <karl@gnu.org>
37313
37314         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
37315         work around defect in Texinfo and/or the standalone Info browser.
37316
37317 2007-12-30  Bruno Haible  <bruno@clisp.org>
37318
37319         Unify 5 copies of the KMP code.
37320         * lib/str-kmp.h: New file.
37321         * lib/c-strcasestr.c: Include str-kmp.h.
37322         (knuth_morris_pratt): Remove function.
37323         (c_strcasestr): Update.
37324         * lib/c-strstr.c: Include str-kmp.h.
37325         (knuth_morris_pratt): Remove function.
37326         (c_strcasestr): Update.
37327         * lib/mbscasestr.c: Include str-kmp.h.
37328         (knuth_morris_pratt_unibyte): Remove function.
37329         * lib/mbsstr.c: Include str-kmp.h.
37330         (knuth_morris_pratt_unibyte): Remove function.
37331         * lib/strcasestr.c: Include str-kmp.h.
37332         (knuth_morris_pratt): Remove function.
37333         (strcasestr): Update.
37334         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
37335         * modules/c-strstr (Files): Likewise.
37336         * modules/mbscasestr (Files): Likewise.
37337         * modules/mbsstr (Files): Likewise.
37338         * modules/strcasestr (Files): Likewise.
37339         Suggested by Paul Eggert.
37340
37341 2007-12-30  Bruno Haible  <bruno@clisp.org>
37342
37343         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
37344         defined.
37345
37346 2007-12-30  Bruno Haible  <bruno@clisp.org>
37347
37348         * lib/xmalloca.h: Include xalloc.h.
37349         (xnmalloca): New macro.
37350
37351 2007-12-30  Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/malloca.h (nmalloca): New macro.
37354         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
37355         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
37356         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
37357         knuth_morris_pratt_multibyte): Likewise.
37358         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
37359         knuth_morris_pratt_multibyte): Likewise.
37360         * lib/memmem.c (knuth_morris_pratt): Likewise.
37361         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
37362
37363 2007-12-25  Bruno Haible  <bruno@clisp.org>
37364
37365         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
37366         * lib/glob.c: Don't include openat.h.
37367         (link_exists2_p): Add back the code that deals with the
37368         !GLOB_ALTDIRFUNC case.
37369         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
37370         let it do the filename concatenation.
37371         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
37372         * modules/glob (Depends-on): Remove openat.
37373
37374 2007-12-31  Bruno Haible  <bruno@clisp.org>
37375
37376         * modules/dirfd (License): Change to LGPLv2+.
37377         Approved by Jim Meyering.
37378
37379 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37380
37381         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
37382         when multiplying M by sizeof (size_t).
37383
37384 2007-12-10  Martin Lambers  <marlam@marlam.de>
37385
37386         Override getpagesize on mingw.
37387         * lib/getpagesize.c: New file.
37388         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
37389         * modules/getpagesize (Files): Add lib/getpagesize.c.
37390         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
37391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37392         REPLACE_GETPAGESIZE.
37393         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
37394
37395 2007-12-25  Bruno Haible  <bruno@clisp.org>
37396
37397         * modules/localcharset (Notice): New field.
37398         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
37399         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
37400
37401 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37402             Bruno Haible  <bruno@clisp.org>
37403
37404         Avoid using the syntax symbol() in formatted documentation.
37405         * MODULES.html.sh (func_module): When replacing symbol() with a
37406         hyperlink, remove the parentheses. Show an error if some remain.
37407         Recognize and render the '...' syntax.
37408         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
37409         Rework. Add paragraph about GCC's inlining.
37410         * doc/alloca.texi: Likewise.
37411         * doc/error.texi: Remove parentheses from symbol reference.
37412         * doc/gnulib-intro.texi: Likewise.
37413         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
37414         * modules/fnmatch (Description): Reword to say "the ... function".
37415         * modules/full-read (Description): Likewise.
37416         * modules/full-write (Description): Likewise.
37417         * modules/safe-read (Description): Likewise.
37418         * modules/safe-write (Description): Likewise.
37419         * modules/strchrnul (Description): Likewise.
37420         * modules/trim (Description): Likewise.
37421         * modules/error (Description): Remove parentheses from symbol
37422         references.
37423         * modules/verror (Description): Likewise.
37424         Reported by Karl Berry.
37425
37426 2007-12-25  Bruno Haible  <bruno@clisp.org>
37427
37428         Fixup after 2007-10-16 commit.
37429         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
37430
37431 2007-12-24  Bruno Haible  <bruno@clisp.org>
37432
37433         Make --enable-relocatable work with DESTDIR.
37434         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
37435         to compute installdir from destprog.
37436         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
37437         also set the RELOC_DESTDIR variable.
37438         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37439
37440 2007-12-24  Bruno Haible  <bruno@clisp.org>
37441
37442         Fix link error due to xalloc_die().
37443         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
37444         of xreadlink.
37445         * lib/relocwrapper.c: Update comments.
37446         * build-aux/install-reloc: Remove xreadlink.c from file list.
37447         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
37448         xreadlink.c.
37449         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37450
37451 2007-12-24  Bruno Haible  <bruno@clisp.org>
37452
37453         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
37454         * lib/setenv.h: Remove file.
37455         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
37456         lib/setenv.h.
37457         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
37458         (Depends-on): Add stdlib.
37459         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
37460         gl_FUNC_UNSETENV.
37461         (Include): Replace setenv.h with <stdlib.h>.
37462         * modules/unsetenv: New file.
37463         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
37464         * lib/unsetenv.c: Include <stdlib.h> first.
37465         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
37466         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
37467         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
37468         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
37469         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
37470         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
37472         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
37473         * doc/functions/unsetenv.texi: Update.
37474         * modules/xsetenv (Depends-on): Add unsetenv.
37475         * modules/getdate (Depends-on): Likewise.
37476         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
37477         * lib/xsetenv.c: Don't include setenv.h.
37478         * lib/getdate.y: Likewise.
37479         * lib/relocwrapper.c: Likewise.
37480         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
37481         (Depends-on): Add stdlib.
37482         * NEWS: Mention the changes.
37483         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
37484
37485 2007-12-23  Bruno Haible  <bruno@clisp.org>
37486
37487         * lib/memmem.c (memmem): Use lowercase variable names. Tab
37488         indentation.
37489
37490 2007-12-23  Bruno Haible  <bruno@clisp.org>
37491
37492         * lib/c-strcasestr.c: Add more comments.
37493         * lib/c-strstr.c: Likewise.
37494         * lib/mbscasestr.c: Likewise.
37495         * lib/mbsstr.c: Likewise.
37496         * lib/strcasestr.c: Likewise.
37497         * lib/memmem.c: Likewise.
37498
37499 2007-12-23  Bruno Haible  <bruno@clisp.org>
37500
37501         * tests/test-memmem.c: Include <string.h> first.
37502
37503 2007-12-22  Bruno Haible  <bruno@clisp.org>
37504
37505         * gnulib-tool (func_create_testdir): Change $auxdir while generating
37506         the contents of $testsbase.
37507         Reported by Ralf Wildenhues.
37508
37509 2007-12-22  Bruno Haible  <bruno@clisp.org>
37510
37511         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
37512         two variables local_ldadd_before, local_ldadd_last.
37513
37514 2007-12-20  Eric Blake  <ebb9@byu.net>
37515
37516         Work around circular library issue when cross-compiling.
37517         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
37518         that progname.o does not need to pull in rpl_memcmp.
37519
37520 2007-12-19  Eric Blake  <ebb9@byu.net>
37521
37522         Fix memmem to avoid O(n^2) worst-case complexity.
37523         * lib/memmem.c (knuth_morris_pratt): New function.
37524         (memmem): Use it if first few naive iterations fail.
37525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
37526         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
37527         * modules/memchr (License): Likewise.
37528         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
37529         malloca.
37530         * tests/test-memmem.c: Rewrite, borrowing ideas from
37531         test-mbsstr1.c; the old version wouldn't even compile!
37532         * modules/memmem-tests: New file.
37533         * lib/string.in.h (rpl_memmem): Add declaration.
37534         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
37535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
37536         REPLACE_MEMMEM.
37537
37538 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37539
37540         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
37541         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
37542         before any system include files, and undef after them all.  This
37543         should fix a problem on VMS reported by John E. Malmberg in
37544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
37545
37546 2007-12-17  Eric Blake  <ebb9@byu.net>
37547
37548         Revert addition of verify, for BSD/OS.
37549         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
37550         can't handle large files, for the sake of obsolete platforms.
37551         * modules/fseeko (Depends-on): Remove verify.
37552         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
37553         * doc/functions/ftello.texi (ftello): Likewise.
37554         * doc/functions/fgetpos.texi (fgetpos): Likewise.
37555         Reported by Larry Jones.
37556
37557 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
37558
37559         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
37560         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
37561
37562 2007-12-17  Jim Meyering  <meyering@redhat.com>
37563
37564         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
37565         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
37566         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
37567         * modules/getcwd (Depends-on): Add openat.
37568         Reported by Petr Salinger.
37569
37570 2007-12-17  Bruno Haible  <bruno@clisp.org>
37571
37572         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
37573         avoid a segmentation fault of the configure test on x86_64 systems.
37574
37575 2007-12-15  Jim Meyering  <meyering@redhat.com>
37576
37577         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
37578
37579 2007-12-13  Eric Blake  <ebb9@byu.net>
37580
37581         Another fseek test.
37582         * tests/test-fseek.c (main): Also test ungetc handling.
37583         * tests/test-fseeko.c (main): Likewise.
37584         * modules/fseeko (Depends-on): Add verify.
37585         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
37586         large.
37587         Reported by Larry Jones.
37588
37589         Fix fseeko on mingw.
37590         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
37591         seek.
37592
37593         Beef up fseek tests.
37594         * tests/test-fseek.c (main): Also test eof handling.
37595         * tests/test-fseeko.c (main): Likewise.
37596         Reported by Larry Jones.
37597
37598 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
37599
37600         Fix fseeko on BSD-based platforms.
37601         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
37602         successful seek.
37603
37604 2007-12-12  Eric Blake  <ebb9@byu.net>
37605
37606         Allow circular dependency of separate libtests.a
37607         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
37608         when use_libtests.
37609
37610 2007-12-11  Eric Blake  <ebb9@byu.net>
37611
37612         Fix bug with -0.0L in previous patch.
37613         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
37614         * tests/test-isnan.c (main): Also test on zeroes.
37615         * tests/test-isnanf.c (main): Likewise.
37616         * tests/test-isnanl.h (main): Likewise.
37617
37618         Detect pseudo-denormals on x86 even when cross-compiling.
37619         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
37620         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
37621         invalid bit patterns that happen to satisfy ==.
37622
37623         Avoid link failures with separate libtests.a.
37624         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
37625         last, to satisfy circular dependencies.
37626
37627 2007-12-11  Eric Blake  <ebb9@byu.net>
37628         and Bruno Haible  <bruno@clisp.org>
37629
37630         Fix OpenBSD 4.0 <float.h> handling of long double.
37631         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
37632         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
37633         * doc/headers/float.texi (float.h): Document OpenBSD bug.
37634
37635 2007-12-11  Jim Meyering  <meyering@redhat.com>
37636
37637         * users.txt: Add libvirt.
37638
37639         Support versions of autoconf prior to 2.59c.
37640         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
37641         if it is not already defined.
37642
37643 2007-12-09  Bruno Haible  <bruno@clisp.org>
37644
37645         Let 'gnulib-tool --import' collect sources needed for the tests in
37646         tests/ rather than in lib/.
37647         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
37648         argument. If true, add rules to generate libtests.a, and put libtests.a
37649         into $(LDADD). Consider source files in subdirectories and set
37650         uses_subdirs.
37651         (func_emit_initmacro_start, func_emit_initmacro_end,
37652         func_emit_initmacro_done): Pass all arguments explicitly.
37653         (func_import): Determine two module lists main_modules,
37654         testsrelated_modules. Determine use_libtests. Determine two variables
37655         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
37656         instead of just sed_transform_lib_file. Determine two variables
37657         main_files and testsrelated_files. Compute 'files' as the union of
37658         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
37659         func_add_or_update. In the generated gnulib-comp.m4, collect the
37660         object files for tests/ in different variables than those for lib/.
37661         Substitute LIBTESTS_LIBDEPS.
37662         (func_create_testdir): Combine the uses_subdirs results from
37663         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
37664
37665 2007-12-09  Bruno Haible  <bruno@clisp.org>
37666
37667         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
37668         the build-aux directory.
37669
37670 2007-12-09  Bruno Haible  <bruno@clisp.org>
37671
37672         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
37673         introduced on 2006-09-09.
37674
37675 2007-12-07  Jim Meyering  <meyering@redhat.com>
37676
37677         Let these macros work also with autoconf-2.59.
37678         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
37679         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
37680         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37681
37682 2007-12-06  Jim Meyering  <meyering@redhat.com>
37683
37684         Avoid a configure-time syntax error in gl_FUNC_ACL.
37685         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
37686         function in each branch, before testing the cache variable.
37687
37688 2007-12-04  Eric Blake  <ebb9@byu.net>
37689
37690         Make scripts executable.
37691         * build-aux/config.guess: Add execute permissions.
37692         * build-aux/config.sub: Likewise.
37693         * build-aux/gendocs.sh: Likewise.
37694
37695         Fix frexp on mingw.
37696         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
37697         cross-compiling.
37698         * doc/functions/frexp.texi (frexp): Document the bug.
37699
37700         Make cygwin fseeko check more reliable.
37701         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
37702         version numbers, rather than unrelated feature check.
37703         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
37704         * doc/functions/ftello.texi (ftello): Likewise.
37705         Reported by Bruno Haible.
37706
37707         * m4/strerror.m4: Bump version number.
37708
37709 2007-12-03  Bruno Haible  <bruno@clisp.org>
37710
37711         * doc/functions/mprotect.texi: Mention the mingw problem.
37712
37713 2007-12-03  Eric Blake  <ebb9@byu.net>
37714
37715         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
37716         REPLACE_STRERROR is initialized before this macro.
37717
37718 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37719
37720         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
37721         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
37722         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
37723         put -lsec in even for programs other than 'ls'.  This fixes a problem
37724         for gettext reported by Bruno Haible in
37725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
37726         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
37727         Add support for Solaris 10.  This isn't efficient, but should get the
37728         job done for now.
37729
37730 2007-12-03  James Youngman  <jay@gnu.org>
37731
37732         * doc/regexprops-generic.texi: change "an close-group" to "a
37733         close-group" and "illegal" to "not allowed".
37734
37735 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37736
37737         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
37738         pr_byname.h. Needed for the rare case when the maintainer has done
37739         "make maintainer-clean" in the source directory and then attempts a
37740         build outside the source directory.
37741         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
37742         scripts_byname.h.
37743
37744 2007-12-02  Martin Lambers <marlam@marlam.de>
37745             Bruno Haible  <bruno@clisp.org>
37746
37747         * lib/getpagesize.h: Remove file.
37748         * lib/unistd.in.h: Include declaration of getpagesize here.
37749         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
37750         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
37751         HAVE_SYS_PARAM_H.
37752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
37753         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37754         * modules/getpagesize (Files): Remove lib/getpagesize.h.
37755         (Depends-on): Add unistd.
37756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37757         (Include): Use <unistd.h> instead of getpagesize.h.
37758         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
37759         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
37760         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
37761         gl_GETPAGESIZE invocation, already handled by module dependency.
37762         * lib/pagealign_alloc.c: Don't include getpagesize.h.
37763
37764 2007-12-02  Bruno Haible  <bruno@clisp.org>
37765
37766         * modules/strings-tests: New file.
37767         * tests/test-strings.c: New file.
37768
37769         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
37770         * lib/strings.in.h: New file.
37771         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
37772         * m4/strings_h.m4: New file.
37773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
37774         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
37775         * modules/strings: New file.
37776         * modules/string (Makefile.am): Update.
37777         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
37778         Reported by Karl Berry.
37779
37780 2007-12-01  Eric Blake  <ebb9@byu.net>
37781
37782         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
37783         accomodate fix in cygwin 1.5.25.
37784
37785 2007-12-01  Jim Meyering  <meyering@redhat.com>
37786
37787         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
37788         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
37789         that would inhibit utf8-optimization of a regexp containing line-
37790         or buffer-anchors, e.g., `^', `$'.
37791
37792 2007-11-30  Bruno Haible  <bruno@clisp.org>
37793
37794         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
37795         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
37796         glthread_recursive_lock_init.
37797         * lib/lock.c (glthread_recursive_lock_init)
37798         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
37799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37800
37801 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
37802
37803         New function qset_acl, like set_acl but with syscall semantics.
37804         * lib/acl.h (qset_acl): New decl.
37805         * lib/acl.c (qset_acl): New function.
37806         (set_acl): Use new function.  Use more-consistent diagnostics.
37807
37808 2007-11-28  Jim Meyering  <meyering@redhat.com>
37809
37810         * modules/physmem (License): Change from GPL to LGPLv2+.
37811
37812 2007-11-26  Bruno Haible  <bruno@clisp.org>
37813
37814         * lib/vasnprintf.c (decode_long_double): Don't abort if the
37815         'long double' type has excess precision.
37816         Reported by Jim Meyering in
37817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
37818
37819 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37820
37821         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
37822         Sync from <http://gnu.org/licenses>.
37823         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
37824         with license text from same location.
37825         * doc/maintain.texi, doc/standards.texi:  Sync from
37826         <http://savannah.gnu.org/projects/gnustandards>.
37827
37828 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
37829         and Jim Meyering  <meyering@redhat.com>
37830
37831         Adjust getdate' grammar to accept a slightly more regular language.
37832         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
37833         Before, the former was rejected.
37834         * lib/getdate.y (digits_to_date_time): New function, factored
37835         out of ...
37836         (number): ...here.  Just call digits_to_date_time.
37837         (hybrid): New non-terminal to handle an <unsigned number,
37838         signed relative offset> sequence consistently.
37839
37840 2007-11-18  Jim Meyering  <meyering@redhat.com>
37841
37842         Pull my changes from coreutils:
37843         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
37844         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
37845         use of $gnulib_tool_option_extras, so that it's separated from the
37846         preceding argument.
37847
37848         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
37849         * build-aux/bootstrap (cp_mark_as_generated): Create any required
37850         parent destination directories before copying a file into place.
37851
37852 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37853
37854         bootstrap: work also with 4-argument variant of AC_INIT
37855         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
37856
37857 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37858
37859         Port test-getaddrinfo to Solaris.
37860         Problem reported by Bruno Haible in
37861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
37862         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
37863         explanation of setting 'hints'.
37864         Don't reject an implementation merely because it returns EAI_SERVICE.
37865         (EAI_SERVICE): Define to 0 if not defined.
37866
37867 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37868
37869         The license of gnu-make and posix-shell is now "GPLed build tool".
37870         * modules/gnu-make (License): Likewise.
37871         * modules/posix-shell (License): Likewise.
37872
37873         New module posix-shell, for determining a POSIX shell
37874         or perhaps something that is close enough to a POSIX shell.
37875         * m4/posix-shell.m4: New file.
37876         * modules/posix-shell: New file.
37877
37878         * MODULES.html.sh: Mention new module.
37879
37880         New module gnu-make, for determining whether we're using GNU Make.
37881         * m4/gnu-make.m4: New file.
37882         * modules/gnu-make: New file.
37883         * MODULES.html.sh: Mention new module.
37884
37885 2007-11-14  Jim Meyering  <meyering@redhat.com>
37886
37887         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
37888         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
37889         use this macro to create a function _definition_.
37890         Remove useless "#undef ARGMATCH_DIE".
37891
37892 2007-11-14  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/config.charset: Update for OpenBSD 4.1.
37895         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
37896
37897 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
37898
37899         Document 64-bit #if problems in stdint.texi.
37900         * doc/headers/stdint.texi (stdint.h): Mention problems with
37901         64-bit-#if, and how to work around them.
37902
37903         Don't insist on 'long long int' support in the preprocessor.  It
37904         breaks too many things.  For example, PRIdMAX still uses a 'long
37905         long int' format with the latest Sun compiler, even though
37906         HAVE_LONG_LONG_INT isn't defined due to that compiler's
37907         preprocessor problem.  This causes the latest coreutils to dump
37908         core on Solaris 10 sparc with the Sun C compiler.
37909         Instead, fix the 2007-10-16 problem in a different way, by evaluating
37910         the troublesome expressions at configure-time, not at #if-time.
37911         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
37912         preprocessor.
37913         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
37914         compile-time C checks, done at 'configure'-time.
37915         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
37916         * modules/inttypes (Makefile): Substitute the new symbols that
37917         gl_INTTYPES_H now generates.
37918         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
37919
37920 2007-11-12  Bruno Haible  <bruno@clisp.org>
37921
37922         Tests for Unicode character classification functions.
37923
37924         * modules/unictype/bidicategory-byname-tests: New file.
37925         * modules/unictype/bidicategory-name-tests: New file.
37926         * modules/unictype/bidicategory-of-tests: New file.
37927         * modules/unictype/bidicategory-test-tests: New file.
37928         * modules/unictype/block-list-tests: New file.
37929         * modules/unictype/block-of-tests: New file.
37930         * modules/unictype/block-test-tests: New file.
37931         * modules/unictype/category-C-tests: New file.
37932         * modules/unictype/category-Cc-tests: New file.
37933         * modules/unictype/category-Cf-tests: New file.
37934         * modules/unictype/category-Cn-tests: New file.
37935         * modules/unictype/category-Co-tests: New file.
37936         * modules/unictype/category-Cs-tests: New file.
37937         * modules/unictype/category-L-tests: New file.
37938         * modules/unictype/category-Ll-tests: New file.
37939         * modules/unictype/category-Lm-tests: New file.
37940         * modules/unictype/category-Lo-tests: New file.
37941         * modules/unictype/category-Lt-tests: New file.
37942         * modules/unictype/category-Lu-tests: New file.
37943         * modules/unictype/category-M-tests: New file.
37944         * modules/unictype/category-Mc-tests: New file.
37945         * modules/unictype/category-Me-tests: New file.
37946         * modules/unictype/category-Mn-tests: New file.
37947         * modules/unictype/category-N-tests: New file.
37948         * modules/unictype/category-Nd-tests: New file.
37949         * modules/unictype/category-Nl-tests: New file.
37950         * modules/unictype/category-No-tests: New file.
37951         * modules/unictype/category-P-tests: New file.
37952         * modules/unictype/category-Pc-tests: New file.
37953         * modules/unictype/category-Pd-tests: New file.
37954         * modules/unictype/category-Pe-tests: New file.
37955         * modules/unictype/category-Pf-tests: New file.
37956         * modules/unictype/category-Pi-tests: New file.
37957         * modules/unictype/category-Po-tests: New file.
37958         * modules/unictype/category-Ps-tests: New file.
37959         * modules/unictype/category-S-tests: New file.
37960         * modules/unictype/category-Sc-tests: New file.
37961         * modules/unictype/category-Sk-tests: New file.
37962         * modules/unictype/category-Sm-tests: New file.
37963         * modules/unictype/category-So-tests: New file.
37964         * modules/unictype/category-Z-tests: New file.
37965         * modules/unictype/category-Zl-tests: New file.
37966         * modules/unictype/category-Zp-tests: New file.
37967         * modules/unictype/category-Zs-tests: New file.
37968         * modules/unictype/category-and-not-tests: New file.
37969         * modules/unictype/category-and-tests: New file.
37970         * modules/unictype/category-byname-tests: New file.
37971         * modules/unictype/category-name-tests: New file.
37972         * modules/unictype/category-none-tests: New file.
37973         * modules/unictype/category-of-tests: New file.
37974         * modules/unictype/category-or-tests: New file.
37975         * modules/unictype/category-test-withtable-tests: New file.
37976         * modules/unictype/combining-class-tests: New file.
37977         * modules/unictype/ctype-alnum-tests: New file.
37978         * modules/unictype/ctype-alpha-tests: New file.
37979         * modules/unictype/ctype-blank-tests: New file.
37980         * modules/unictype/ctype-cntrl-tests: New file.
37981         * modules/unictype/ctype-digit-tests: New file.
37982         * modules/unictype/ctype-graph-tests: New file.
37983         * modules/unictype/ctype-lower-tests: New file.
37984         * modules/unictype/ctype-print-tests: New file.
37985         * modules/unictype/ctype-punct-tests: New file.
37986         * modules/unictype/ctype-space-tests: New file.
37987         * modules/unictype/ctype-upper-tests: New file.
37988         * modules/unictype/ctype-xdigit-tests: New file.
37989         * modules/unictype/decimal-digit-tests: New file.
37990         * modules/unictype/digit-tests: New file.
37991         * modules/unictype/mirror-tests: New file.
37992         * modules/unictype/numeric-tests: New file.
37993         * modules/unictype/property-alphabetic-tests: New file.
37994         * modules/unictype/property-ascii-hex-digit-tests: New file.
37995         * modules/unictype/property-bidi-arabic-digit-tests: New file.
37996         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
37997         * modules/unictype/property-bidi-block-separator-tests: New file.
37998         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
37999         * modules/unictype/property-bidi-common-separator-tests: New file.
38000         * modules/unictype/property-bidi-control-tests: New file.
38001         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
38002         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
38003         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
38004         * modules/unictype/property-bidi-european-digit-tests: New file.
38005         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
38006         * modules/unictype/property-bidi-left-to-right-tests: New file.
38007         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
38008         * modules/unictype/property-bidi-other-neutral-tests: New file.
38009         * modules/unictype/property-bidi-pdf-tests: New file.
38010         * modules/unictype/property-bidi-segment-separator-tests: New file.
38011         * modules/unictype/property-bidi-whitespace-tests: New file.
38012         * modules/unictype/property-byname-tests: New file.
38013         * modules/unictype/property-combining-tests: New file.
38014         * modules/unictype/property-composite-tests: New file.
38015         * modules/unictype/property-currency-symbol-tests: New file.
38016         * modules/unictype/property-dash-tests: New file.
38017         * modules/unictype/property-decimal-digit-tests: New file.
38018         * modules/unictype/property-default-ignorable-code-point-tests: New file.
38019         * modules/unictype/property-deprecated-tests: New file.
38020         * modules/unictype/property-diacritic-tests: New file.
38021         * modules/unictype/property-extender-tests: New file.
38022         * modules/unictype/property-format-control-tests: New file.
38023         * modules/unictype/property-grapheme-base-tests: New file.
38024         * modules/unictype/property-grapheme-extend-tests: New file.
38025         * modules/unictype/property-grapheme-link-tests: New file.
38026         * modules/unictype/property-hex-digit-tests: New file.
38027         * modules/unictype/property-hyphen-tests: New file.
38028         * modules/unictype/property-id-continue-tests: New file.
38029         * modules/unictype/property-id-start-tests: New file.
38030         * modules/unictype/property-ideographic-tests: New file.
38031         * modules/unictype/property-ids-binary-operator-tests: New file.
38032         * modules/unictype/property-ids-trinary-operator-tests: New file.
38033         * modules/unictype/property-ignorable-control-tests: New file.
38034         * modules/unictype/property-iso-control-tests: New file.
38035         * modules/unictype/property-join-control-tests: New file.
38036         * modules/unictype/property-left-of-pair-tests: New file.
38037         * modules/unictype/property-line-separator-tests: New file.
38038         * modules/unictype/property-logical-order-exception-tests: New file.
38039         * modules/unictype/property-lowercase-tests: New file.
38040         * modules/unictype/property-math-tests: New file.
38041         * modules/unictype/property-non-break-tests: New file.
38042         * modules/unictype/property-not-a-character-tests: New file.
38043         * modules/unictype/property-numeric-tests: New file.
38044         * modules/unictype/property-other-alphabetic-tests: New file.
38045         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
38046         * modules/unictype/property-other-grapheme-extend-tests: New file.
38047         * modules/unictype/property-other-id-continue-tests: New file.
38048         * modules/unictype/property-other-id-start-tests: New file.
38049         * modules/unictype/property-other-lowercase-tests: New file.
38050         * modules/unictype/property-other-math-tests: New file.
38051         * modules/unictype/property-other-uppercase-tests: New file.
38052         * modules/unictype/property-paired-punctuation-tests: New file.
38053         * modules/unictype/property-paragraph-separator-tests: New file.
38054         * modules/unictype/property-pattern-syntax-tests: New file.
38055         * modules/unictype/property-pattern-white-space-tests: New file.
38056         * modules/unictype/property-private-use-tests: New file.
38057         * modules/unictype/property-punctuation-tests: New file.
38058         * modules/unictype/property-quotation-mark-tests: New file.
38059         * modules/unictype/property-radical-tests: New file.
38060         * modules/unictype/property-sentence-terminal-tests: New file.
38061         * modules/unictype/property-soft-dotted-tests: New file.
38062         * modules/unictype/property-space-tests: New file.
38063         * modules/unictype/property-terminal-punctuation-tests: New file.
38064         * modules/unictype/property-test-tests: New file.
38065         * modules/unictype/property-titlecase-tests: New file.
38066         * modules/unictype/property-unassigned-code-value-tests: New file.
38067         * modules/unictype/property-unified-ideograph-tests: New file.
38068         * modules/unictype/property-uppercase-tests: New file.
38069         * modules/unictype/property-variation-selector-tests: New file.
38070         * modules/unictype/property-white-space-tests: New file.
38071         * modules/unictype/property-xid-continue-tests: New file.
38072         * modules/unictype/property-xid-start-tests: New file.
38073         * modules/unictype/property-zero-width-tests: New file.
38074         * modules/unictype/scripts-tests: New file.
38075         * modules/unictype/syntax-c-ident-tests: New file.
38076         * modules/unictype/syntax-c-whitespace-tests: New file.
38077         * modules/unictype/syntax-java-ident-tests: New file.
38078         * modules/unictype/syntax-java-whitespace-tests: New file.
38079         * tests/unictype/test-bidi_byname.c: New file.
38080         * tests/unictype/test-bidi_name.c: New file.
38081         * tests/unictype/test-bidi_of.c: New file.
38082         * tests/unictype/test-bidi_test.c: New file.
38083         * tests/unictype/test-block_list.c: New file.
38084         * tests/unictype/test-block_of.c: New file.
38085         * tests/unictype/test-block_test.c: New file.
38086         * tests/unictype/test-categ_and.c: New file.
38087         * tests/unictype/test-categ_and_not.c: New file.
38088         * tests/unictype/test-categ_byname.c: New file.
38089         * tests/unictype/test-categ_name.c: New file.
38090         * tests/unictype/test-categ_none.c: New file.
38091         * tests/unictype/test-categ_of.c: New file.
38092         * tests/unictype/test-categ_or.c: New file.
38093         * tests/unictype/test-categ_test_withtable.c: New file.
38094         * tests/unictype/test-combining.c: New file.
38095         * tests/unictype/test-decdigit.c: New file.
38096         * tests/unictype/test-digit.c: New file.
38097         * tests/unictype/test-mirror.c: New file.
38098         * tests/unictype/test-numeric.c: New file.
38099         * tests/unictype/test-pr_byname.c: New file.
38100         * tests/unictype/test-pr_test.c: New file.
38101         * tests/unictype/test-predicate-part1.h: New file.
38102         * tests/unictype/test-predicate-part2.h: New file.
38103         * tests/unictype/test-scripts.c: New file.
38104         * tests/unictype/test-sy_c_ident.c: New file.
38105         * tests/unictype/test-sy_java_ident.c: New file.
38106
38107         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
38108         for Unicode 5.0.0.
38109         * tests/unictype/test-categ_Cc.c: Likewise.
38110         * tests/unictype/test-categ_Cf.c: Likewise.
38111         * tests/unictype/test-categ_Cn.c: Likewise.
38112         * tests/unictype/test-categ_Co.c: Likewise.
38113         * tests/unictype/test-categ_Cs.c: Likewise.
38114         * tests/unictype/test-categ_L.c: Likewise.
38115         * tests/unictype/test-categ_Ll.c: Likewise.
38116         * tests/unictype/test-categ_Lm.c: Likewise.
38117         * tests/unictype/test-categ_Lo.c: Likewise.
38118         * tests/unictype/test-categ_Lt.c: Likewise.
38119         * tests/unictype/test-categ_Lu.c: Likewise.
38120         * tests/unictype/test-categ_M.c: Likewise.
38121         * tests/unictype/test-categ_Mc.c: Likewise.
38122         * tests/unictype/test-categ_Me.c: Likewise.
38123         * tests/unictype/test-categ_Mn.c: Likewise.
38124         * tests/unictype/test-categ_N.c: Likewise.
38125         * tests/unictype/test-categ_Nd.c: Likewise.
38126         * tests/unictype/test-categ_Nl.c: Likewise.
38127         * tests/unictype/test-categ_No.c: Likewise.
38128         * tests/unictype/test-categ_P.c: Likewise.
38129         * tests/unictype/test-categ_Pc.c: Likewise.
38130         * tests/unictype/test-categ_Pd.c: Likewise.
38131         * tests/unictype/test-categ_Pe.c: Likewise.
38132         * tests/unictype/test-categ_Pf.c: Likewise.
38133         * tests/unictype/test-categ_Pi.c: Likewise.
38134         * tests/unictype/test-categ_Po.c: Likewise.
38135         * tests/unictype/test-categ_Ps.c: Likewise.
38136         * tests/unictype/test-categ_S.c: Likewise.
38137         * tests/unictype/test-categ_Sc.c: Likewise.
38138         * tests/unictype/test-categ_Sk.c: Likewise.
38139         * tests/unictype/test-categ_Sm.c: Likewise.
38140         * tests/unictype/test-categ_So.c: Likewise.
38141         * tests/unictype/test-categ_Z.c: Likewise.
38142         * tests/unictype/test-categ_Zl.c: Likewise.
38143         * tests/unictype/test-categ_Zp.c: Likewise.
38144         * tests/unictype/test-categ_Zs.c: Likewise.
38145         * tests/unictype/test-ctype_alnum.c: Likewise.
38146         * tests/unictype/test-ctype_alpha.c: Likewise.
38147         * tests/unictype/test-ctype_blank.c: Likewise.
38148         * tests/unictype/test-ctype_cntrl.c: Likewise.
38149         * tests/unictype/test-ctype_digit.c: Likewise.
38150         * tests/unictype/test-ctype_graph.c: Likewise.
38151         * tests/unictype/test-ctype_lower.c: Likewise.
38152         * tests/unictype/test-ctype_print.c: Likewise.
38153         * tests/unictype/test-ctype_punct.c: Likewise.
38154         * tests/unictype/test-ctype_space.c: Likewise.
38155         * tests/unictype/test-ctype_upper.c: Likewise.
38156         * tests/unictype/test-ctype_xdigit.c: Likewise.
38157         * tests/unictype/test-decdigit.h: Likewise.
38158         * tests/unictype/test-digit.h: Likewise.
38159         * tests/unictype/test-numeric.h: Likewise.
38160         * tests/unictype/test-pr_alphabetic.c: Likewise.
38161         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
38162         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
38163         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
38164         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
38165         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
38166         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
38167         * tests/unictype/test-pr_bidi_control.c: Likewise.
38168         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
38169         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
38170         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
38171         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
38172         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
38173         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
38174         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
38175         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
38176         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
38177         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
38178         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
38179         * tests/unictype/test-pr_combining.c: Likewise.
38180         * tests/unictype/test-pr_composite.c: Likewise.
38181         * tests/unictype/test-pr_currency_symbol.c: Likewise.
38182         * tests/unictype/test-pr_dash.c: Likewise.
38183         * tests/unictype/test-pr_decimal_digit.c: Likewise.
38184         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
38185         * tests/unictype/test-pr_deprecated.c: Likewise.
38186         * tests/unictype/test-pr_diacritic.c: Likewise.
38187         * tests/unictype/test-pr_extender.c: Likewise.
38188         * tests/unictype/test-pr_format_control.c: Likewise.
38189         * tests/unictype/test-pr_grapheme_base.c: Likewise.
38190         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
38191         * tests/unictype/test-pr_grapheme_link.c: Likewise.
38192         * tests/unictype/test-pr_hex_digit.c: Likewise.
38193         * tests/unictype/test-pr_hyphen.c: Likewise.
38194         * tests/unictype/test-pr_id_continue.c: Likewise.
38195         * tests/unictype/test-pr_id_start.c: Likewise.
38196         * tests/unictype/test-pr_ideographic.c: Likewise.
38197         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
38198         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
38199         * tests/unictype/test-pr_ignorable_control.c: Likewise.
38200         * tests/unictype/test-pr_iso_control.c: Likewise.
38201         * tests/unictype/test-pr_join_control.c: Likewise.
38202         * tests/unictype/test-pr_left_of_pair.c: Likewise.
38203         * tests/unictype/test-pr_line_separator.c: Likewise.
38204         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
38205         * tests/unictype/test-pr_lowercase.c: Likewise.
38206         * tests/unictype/test-pr_math.c: Likewise.
38207         * tests/unictype/test-pr_non_break.c: Likewise.
38208         * tests/unictype/test-pr_not_a_character.c: Likewise.
38209         * tests/unictype/test-pr_numeric.c: Likewise.
38210         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
38211         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
38212         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
38213         * tests/unictype/test-pr_other_id_continue.c: Likewise.
38214         * tests/unictype/test-pr_other_id_start.c: Likewise.
38215         * tests/unictype/test-pr_other_lowercase.c: Likewise.
38216         * tests/unictype/test-pr_other_math.c: Likewise.
38217         * tests/unictype/test-pr_other_uppercase.c: Likewise.
38218         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
38219         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
38220         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
38221         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
38222         * tests/unictype/test-pr_private_use.c: Likewise.
38223         * tests/unictype/test-pr_punctuation.c: Likewise.
38224         * tests/unictype/test-pr_quotation_mark.c: Likewise.
38225         * tests/unictype/test-pr_radical.c: Likewise.
38226         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
38227         * tests/unictype/test-pr_soft_dotted.c: Likewise.
38228         * tests/unictype/test-pr_space.c: Likewise.
38229         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
38230         * tests/unictype/test-pr_titlecase.c: Likewise.
38231         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
38232         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
38233         * tests/unictype/test-pr_uppercase.c: Likewise.
38234         * tests/unictype/test-pr_variation_selector.c: Likewise.
38235         * tests/unictype/test-pr_white_space.c: Likewise.
38236         * tests/unictype/test-pr_xid_continue.c: Likewise.
38237         * tests/unictype/test-pr_xid_start.c: Likewise.
38238         * tests/unictype/test-pr_zero_width.c: Likewise.
38239         * tests/unictype/test-sy_c_whitespace.c: Likewise.
38240         * tests/unictype/test-sy_java_whitespace.c: Likewise.
38241
38242 2007-11-12  Bruno Haible  <bruno@clisp.org>
38243
38244         Unicode character classification functions.
38245         * lib/unictype.h: New file.
38246         * modules/unictype/base: New file.
38247         * modules/unictype/category-L: New file.
38248         * modules/unictype/category-Lu: New file.
38249         * modules/unictype/category-Ll: New file.
38250         * modules/unictype/category-Lt: New file.
38251         * modules/unictype/category-Lm: New file.
38252         * modules/unictype/category-Lo: New file.
38253         * modules/unictype/category-M: New file.
38254         * modules/unictype/category-Mn: New file.
38255         * modules/unictype/category-Mc: New file.
38256         * modules/unictype/category-Me: New file.
38257         * modules/unictype/category-N: New file.
38258         * modules/unictype/category-Nd: New file.
38259         * modules/unictype/category-Nl: New file.
38260         * modules/unictype/category-No: New file.
38261         * modules/unictype/category-P: New file.
38262         * modules/unictype/category-Pc: New file.
38263         * modules/unictype/category-Pd: New file.
38264         * modules/unictype/category-Ps: New file.
38265         * modules/unictype/category-Pe: New file.
38266         * modules/unictype/category-Pi: New file.
38267         * modules/unictype/category-Pf: New file.
38268         * modules/unictype/category-Po: New file.
38269         * modules/unictype/category-S: New file.
38270         * modules/unictype/category-Sm: New file.
38271         * modules/unictype/category-Sc: New file.
38272         * modules/unictype/category-Sk: New file.
38273         * modules/unictype/category-So: New file.
38274         * modules/unictype/category-Z: New file.
38275         * modules/unictype/category-Zs: New file.
38276         * modules/unictype/category-Zl: New file.
38277         * modules/unictype/category-Zp: New file.
38278         * modules/unictype/category-C: New file.
38279         * modules/unictype/category-Cc: New file.
38280         * modules/unictype/category-Cf: New file.
38281         * modules/unictype/category-Cs: New file.
38282         * modules/unictype/category-Co: New file.
38283         * modules/unictype/category-Cn: New file.
38284         * modules/unictype/category-or: New file.
38285         * modules/unictype/category-of: New file.
38286         * modules/unictype/category-test: New file.
38287         * modules/unictype/category-test-withtable: New file.
38288         * modules/unictype/category-byname: New file.
38289         * modules/unictype/category-none: New file.
38290         * modules/unictype/category-and: New file.
38291         * modules/unictype/category-and-not: New file.
38292         * modules/unictype/category-name: New file.
38293         * modules/unictype/combining-class: New file.
38294         * modules/unictype/category-all: New file.
38295         * modules/unictype/bidicategory-all: New file.
38296         * modules/unictype/bidicategory-byname: New file.
38297         * modules/unictype/bidicategory-name: New file.
38298         * modules/unictype/bidicategory-of: New file.
38299         * modules/unictype/bidicategory-test: New file.
38300         * modules/unictype/decimal-digit: New file.
38301         * modules/unictype/digit: New file.
38302         * modules/unictype/numeric: New file.
38303         * modules/unictype/mirror: New file.
38304         * modules/unictype/property-white-space: New file.
38305         * modules/unictype/property-alphabetic: New file.
38306         * modules/unictype/property-other-alphabetic: New file.
38307         * modules/unictype/property-not-a-character: New file.
38308         * modules/unictype/property-default-ignorable-code-point: New file.
38309         * modules/unictype/property-other-default-ignorable-code-point: New
38310         file.
38311         * modules/unictype/property-deprecated: New file.
38312         * modules/unictype/property-logical-order-exception: New file.
38313         * modules/unictype/property-variation-selector: New file.
38314         * modules/unictype/property-private-use: New file.
38315         * modules/unictype/property-unassigned-code-value: New file.
38316         * modules/unictype/property-uppercase: New file.
38317         * modules/unictype/property-other-uppercase: New file.
38318         * modules/unictype/property-lowercase: New file.
38319         * modules/unictype/property-other-lowercase: New file.
38320         * modules/unictype/property-titlecase: New file.
38321         * modules/unictype/property-soft-dotted: New file.
38322         * modules/unictype/property-id-start: New file.
38323         * modules/unictype/property-other-id-start: New file.
38324         * modules/unictype/property-id-continue: New file.
38325         * modules/unictype/property-other-id-continue: New file.
38326         * modules/unictype/property-xid-start: New file.
38327         * modules/unictype/property-xid-continue: New file.
38328         * modules/unictype/property-pattern-white-space: New file.
38329         * modules/unictype/property-pattern-syntax: New file.
38330         * modules/unictype/property-join-control: New file.
38331         * modules/unictype/property-grapheme-base: New file.
38332         * modules/unictype/property-grapheme-extend: New file.
38333         * modules/unictype/property-other-grapheme-extend: New file.
38334         * modules/unictype/property-grapheme-link: New file.
38335         * modules/unictype/property-bidi-control: New file.
38336         * modules/unictype/property-bidi-left-to-right: New file.
38337         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
38338         * modules/unictype/property-bidi-arabic-right-to-left: New file.
38339         * modules/unictype/property-bidi-european-digit: New file.
38340         * modules/unictype/property-bidi-eur-num-separator: New file.
38341         * modules/unictype/property-bidi-eur-num-terminator: New file.
38342         * modules/unictype/property-bidi-arabic-digit: New file.
38343         * modules/unictype/property-bidi-common-separator: New file.
38344         * modules/unictype/property-bidi-block-separator: New file.
38345         * modules/unictype/property-bidi-segment-separator: New file.
38346         * modules/unictype/property-bidi-whitespace: New file.
38347         * modules/unictype/property-bidi-non-spacing-mark: New file.
38348         * modules/unictype/property-bidi-boundary-neutral: New file.
38349         * modules/unictype/property-bidi-pdf: New file.
38350         * modules/unictype/property-bidi-embedding-or-override: New file.
38351         * modules/unictype/property-bidi-other-neutral: New file.
38352         * modules/unictype/property-hex-digit: New file.
38353         * modules/unictype/property-ascii-hex-digit: New file.
38354         * modules/unictype/property-ideographic: New file.
38355         * modules/unictype/property-unified-ideograph: New file.
38356         * modules/unictype/property-radical: New file.
38357         * modules/unictype/property-ids-binary-operator: New file.
38358         * modules/unictype/property-ids-trinary-operator: New file.
38359         * modules/unictype/property-zero-width: New file.
38360         * modules/unictype/property-space: New file.
38361         * modules/unictype/property-non-break: New file.
38362         * modules/unictype/property-iso-control: New file.
38363         * modules/unictype/property-format-control: New file.
38364         * modules/unictype/property-dash: New file.
38365         * modules/unictype/property-hyphen: New file.
38366         * modules/unictype/property-punctuation: New file.
38367         * modules/unictype/property-line-separator: New file.
38368         * modules/unictype/property-paragraph-separator: New file.
38369         * modules/unictype/property-quotation-mark: New file.
38370         * modules/unictype/property-sentence-terminal: New file.
38371         * modules/unictype/property-terminal-punctuation: New file.
38372         * modules/unictype/property-currency-symbol: New file.
38373         * modules/unictype/property-math: New file.
38374         * modules/unictype/property-other-math: New file.
38375         * modules/unictype/property-paired-punctuation: New file.
38376         * modules/unictype/property-left-of-pair: New file.
38377         * modules/unictype/property-combining: New file.
38378         * modules/unictype/property-composite: New file.
38379         * modules/unictype/property-decimal-digit: New file.
38380         * modules/unictype/property-numeric: New file.
38381         * modules/unictype/property-diacritic: New file.
38382         * modules/unictype/property-extender: New file.
38383         * modules/unictype/property-ignorable-control: New file.
38384         * modules/unictype/property-test: New file.
38385         * modules/unictype/property-byname: New file.
38386         * modules/unictype/property-all: New file.
38387         * modules/unictype/scripts: New file.
38388         * modules/unictype/scripts-all: New file.
38389         * modules/unictype/block-of: New file.
38390         * modules/unictype/block-test: New file.
38391         * modules/unictype/block-list: New file.
38392         * modules/unictype/block-all: New file.
38393         * modules/unictype/syntax-c-whitespace: New file.
38394         * modules/unictype/syntax-java-whitespace: New file.
38395         * modules/unictype/syntax-c-ident: New file.
38396         * modules/unictype/syntax-java-ident: New file.
38397         * modules/unictype/ctype-alnum: New file.
38398         * modules/unictype/ctype-alpha: New file.
38399         * modules/unictype/ctype-cntrl: New file.
38400         * modules/unictype/ctype-digit: New file.
38401         * modules/unictype/ctype-graph: New file.
38402         * modules/unictype/ctype-lower: New file.
38403         * modules/unictype/ctype-print: New file.
38404         * modules/unictype/ctype-punct: New file.
38405         * modules/unictype/ctype-space: New file.
38406         * modules/unictype/ctype-upper: New file.
38407         * modules/unictype/ctype-xdigit: New file.
38408         * modules/unictype/ctype-blank: New file.
38409         * lib/unictype/bidi_byname.c: New file.
38410         * lib/unictype/bidi_name.c: New file.
38411         * lib/unictype/bidi_of.c: New file.
38412         * lib/unictype/bidi_test.c: New file.
38413         * lib/unictype/bitmap.h: New file.
38414         * lib/unictype/block_test.c: New file.
38415         * lib/unictype/blocks.c: New file.
38416         * lib/unictype/categ_C.c: New file.
38417         * lib/unictype/categ_Cc.c: New file.
38418         * lib/unictype/categ_Cf.c: New file.
38419         * lib/unictype/categ_Cn.c: New file.
38420         * lib/unictype/categ_Co.c: New file.
38421         * lib/unictype/categ_Cs.c: New file.
38422         * lib/unictype/categ_L.c: New file.
38423         * lib/unictype/categ_Ll.c: New file.
38424         * lib/unictype/categ_Lm.c: New file.
38425         * lib/unictype/categ_Lo.c: New file.
38426         * lib/unictype/categ_Lt.c: New file.
38427         * lib/unictype/categ_Lu.c: New file.
38428         * lib/unictype/categ_M.c: New file.
38429         * lib/unictype/categ_Mc.c: New file.
38430         * lib/unictype/categ_Me.c: New file.
38431         * lib/unictype/categ_Mn.c: New file.
38432         * lib/unictype/categ_N.c: New file.
38433         * lib/unictype/categ_Nd.c: New file.
38434         * lib/unictype/categ_Nl.c: New file.
38435         * lib/unictype/categ_No.c: New file.
38436         * lib/unictype/categ_P.c: New file.
38437         * lib/unictype/categ_Pc.c: New file.
38438         * lib/unictype/categ_Pd.c: New file.
38439         * lib/unictype/categ_Pe.c: New file.
38440         * lib/unictype/categ_Pf.c: New file.
38441         * lib/unictype/categ_Pi.c: New file.
38442         * lib/unictype/categ_Po.c: New file.
38443         * lib/unictype/categ_Ps.c: New file.
38444         * lib/unictype/categ_S.c: New file.
38445         * lib/unictype/categ_Sc.c: New file.
38446         * lib/unictype/categ_Sk.c: New file.
38447         * lib/unictype/categ_Sm.c: New file.
38448         * lib/unictype/categ_So.c: New file.
38449         * lib/unictype/categ_Z.c: New file.
38450         * lib/unictype/categ_Zl.c: New file.
38451         * lib/unictype/categ_Zp.c: New file.
38452         * lib/unictype/categ_Zs.c: New file.
38453         * lib/unictype/categ_and.c: New file.
38454         * lib/unictype/categ_and_not.c: New file.
38455         * lib/unictype/categ_byname.c: New file.
38456         * lib/unictype/categ_name.c: New file.
38457         * lib/unictype/categ_none.c: New file.
38458         * lib/unictype/categ_of.c: New file.
38459         * lib/unictype/categ_or.c: New file.
38460         * lib/unictype/categ_test.c: New file.
38461         * lib/unictype/combining.c: New file.
38462         * lib/unictype/ctype_alnum.c: New file.
38463         * lib/unictype/ctype_alpha.c: New file.
38464         * lib/unictype/ctype_blank.c: New file.
38465         * lib/unictype/ctype_cntrl.c: New file.
38466         * lib/unictype/ctype_digit.c: New file.
38467         * lib/unictype/ctype_graph.c: New file.
38468         * lib/unictype/ctype_lower.c: New file.
38469         * lib/unictype/ctype_print.c: New file.
38470         * lib/unictype/ctype_punct.c: New file.
38471         * lib/unictype/ctype_space.c: New file.
38472         * lib/unictype/ctype_upper.c: New file.
38473         * lib/unictype/ctype_xdigit.c: New file.
38474         * lib/unictype/decdigit.c: New file.
38475         * lib/unictype/digit.c: New file.
38476         * lib/unictype/identsyntaxmap.h: New file.
38477         * lib/unictype/mirror.c: New file.
38478         * lib/unictype/numeric.c: New file.
38479         * lib/unictype/pr_alphabetic.c: New file.
38480         * lib/unictype/pr_ascii_hex_digit.c: New file.
38481         * lib/unictype/pr_bidi_arabic_digit.c: New file.
38482         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
38483         * lib/unictype/pr_bidi_block_separator.c: New file.
38484         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
38485         * lib/unictype/pr_bidi_common_separator.c: New file.
38486         * lib/unictype/pr_bidi_control.c: New file.
38487         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
38488         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
38489         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
38490         * lib/unictype/pr_bidi_european_digit.c: New file.
38491         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
38492         * lib/unictype/pr_bidi_left_to_right.c: New file.
38493         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
38494         * lib/unictype/pr_bidi_other_neutral.c: New file.
38495         * lib/unictype/pr_bidi_pdf.c: New file.
38496         * lib/unictype/pr_bidi_segment_separator.c: New file.
38497         * lib/unictype/pr_bidi_whitespace.c: New file.
38498         * lib/unictype/pr_byname.c: New file.
38499         * lib/unictype/pr_byname.gperf: New file.
38500         * lib/unictype/pr_combining.c: New file.
38501         * lib/unictype/pr_composite.c: New file.
38502         * lib/unictype/pr_currency_symbol.c: New file.
38503         * lib/unictype/pr_dash.c: New file.
38504         * lib/unictype/pr_decimal_digit.c: New file.
38505         * lib/unictype/pr_default_ignorable_code_point.c: New file.
38506         * lib/unictype/pr_deprecated.c: New file.
38507         * lib/unictype/pr_diacritic.c: New file.
38508         * lib/unictype/pr_extender.c: New file.
38509         * lib/unictype/pr_format_control.c: New file.
38510         * lib/unictype/pr_grapheme_base.c: New file.
38511         * lib/unictype/pr_grapheme_extend.c: New file.
38512         * lib/unictype/pr_grapheme_link.c: New file.
38513         * lib/unictype/pr_hex_digit.c: New file.
38514         * lib/unictype/pr_hyphen.c: New file.
38515         * lib/unictype/pr_id_continue.c: New file.
38516         * lib/unictype/pr_id_start.c: New file.
38517         * lib/unictype/pr_ideographic.c: New file.
38518         * lib/unictype/pr_ids_binary_operator.c: New file.
38519         * lib/unictype/pr_ids_trinary_operator.c: New file.
38520         * lib/unictype/pr_ignorable_control.c: New file.
38521         * lib/unictype/pr_iso_control.c: New file.
38522         * lib/unictype/pr_join_control.c: New file.
38523         * lib/unictype/pr_left_of_pair.c: New file.
38524         * lib/unictype/pr_line_separator.c: New file.
38525         * lib/unictype/pr_logical_order_exception.c: New file.
38526         * lib/unictype/pr_lowercase.c: New file.
38527         * lib/unictype/pr_math.c: New file.
38528         * lib/unictype/pr_non_break.c: New file.
38529         * lib/unictype/pr_not_a_character.c: New file.
38530         * lib/unictype/pr_numeric.c: New file.
38531         * lib/unictype/pr_other_alphabetic.c: New file.
38532         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
38533         * lib/unictype/pr_other_grapheme_extend.c: New file.
38534         * lib/unictype/pr_other_id_continue.c: New file.
38535         * lib/unictype/pr_other_id_start.c: New file.
38536         * lib/unictype/pr_other_lowercase.c: New file.
38537         * lib/unictype/pr_other_math.c: New file.
38538         * lib/unictype/pr_other_uppercase.c: New file.
38539         * lib/unictype/pr_paired_punctuation.c: New file.
38540         * lib/unictype/pr_paragraph_separator.c: New file.
38541         * lib/unictype/pr_pattern_syntax.c: New file.
38542         * lib/unictype/pr_pattern_white_space.c: New file.
38543         * lib/unictype/pr_private_use.c: New file.
38544         * lib/unictype/pr_punctuation.c: New file.
38545         * lib/unictype/pr_quotation_mark.c: New file.
38546         * lib/unictype/pr_radical.c: New file.
38547         * lib/unictype/pr_sentence_terminal.c: New file.
38548         * lib/unictype/pr_soft_dotted.c: New file.
38549         * lib/unictype/pr_space.c: New file.
38550         * lib/unictype/pr_terminal_punctuation.c: New file.
38551         * lib/unictype/pr_test.c: New file.
38552         * lib/unictype/pr_titlecase.c: New file.
38553         * lib/unictype/pr_unassigned_code_value.c: New file.
38554         * lib/unictype/pr_unified_ideograph.c: New file.
38555         * lib/unictype/pr_uppercase.c: New file.
38556         * lib/unictype/pr_variation_selector.c: New file.
38557         * lib/unictype/pr_white_space.c: New file.
38558         * lib/unictype/pr_xid_continue.c: New file.
38559         * lib/unictype/pr_xid_start.c: New file.
38560         * lib/unictype/pr_zero_width.c: New file.
38561         * lib/unictype/scripts.c: New file.
38562         * lib/unictype/sy_c_ident.c: New file.
38563         * lib/unictype/sy_c_whitespace.c: New file.
38564         * lib/unictype/sy_java_ident.c: New file.
38565         * lib/unictype/sy_java_whitespace.c: New file.
38566
38567         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
38568         Unicode 5.0.0.
38569         * lib/unictype/blocks.h: Likewise.
38570         * lib/unictype/categ_C.h: Likewise.
38571         * lib/unictype/categ_Cc.h: Likewise.
38572         * lib/unictype/categ_Cf.h: Likewise.
38573         * lib/unictype/categ_Cn.h: Likewise.
38574         * lib/unictype/categ_Co.h: Likewise.
38575         * lib/unictype/categ_Cs.h: Likewise.
38576         * lib/unictype/categ_L.h: Likewise.
38577         * lib/unictype/categ_Ll.h: Likewise.
38578         * lib/unictype/categ_Lm.h: Likewise.
38579         * lib/unictype/categ_Lo.h: Likewise.
38580         * lib/unictype/categ_Lt.h: Likewise.
38581         * lib/unictype/categ_Lu.h: Likewise.
38582         * lib/unictype/categ_M.h: Likewise.
38583         * lib/unictype/categ_Mc.h: Likewise.
38584         * lib/unictype/categ_Me.h: Likewise.
38585         * lib/unictype/categ_Mn.h: Likewise.
38586         * lib/unictype/categ_N.h: Likewise.
38587         * lib/unictype/categ_Nd.h: Likewise.
38588         * lib/unictype/categ_Nl.h: Likewise.
38589         * lib/unictype/categ_No.h: Likewise.
38590         * lib/unictype/categ_P.h: Likewise.
38591         * lib/unictype/categ_Pc.h: Likewise.
38592         * lib/unictype/categ_Pd.h: Likewise.
38593         * lib/unictype/categ_Pe.h: Likewise.
38594         * lib/unictype/categ_Pf.h: Likewise.
38595         * lib/unictype/categ_Pi.h: Likewise.
38596         * lib/unictype/categ_Po.h: Likewise.
38597         * lib/unictype/categ_Ps.h: Likewise.
38598         * lib/unictype/categ_S.h: Likewise.
38599         * lib/unictype/categ_Sc.h: Likewise.
38600         * lib/unictype/categ_Sk.h: Likewise.
38601         * lib/unictype/categ_Sm.h: Likewise.
38602         * lib/unictype/categ_So.h: Likewise.
38603         * lib/unictype/categ_Z.h: Likewise.
38604         * lib/unictype/categ_Zl.h: Likewise.
38605         * lib/unictype/categ_Zp.h: Likewise.
38606         * lib/unictype/categ_Zs.h: Likewise.
38607         * lib/unictype/categ_of.h: Likewise.
38608         * lib/unictype/combining.h: Likewise.
38609         * lib/unictype/ctype_alnum.h: Likewise.
38610         * lib/unictype/ctype_alpha.h: Likewise.
38611         * lib/unictype/ctype_blank.h: Likewise.
38612         * lib/unictype/ctype_cntrl.h: Likewise.
38613         * lib/unictype/ctype_digit.h: Likewise.
38614         * lib/unictype/ctype_graph.h: Likewise.
38615         * lib/unictype/ctype_lower.h: Likewise.
38616         * lib/unictype/ctype_print.h: Likewise.
38617         * lib/unictype/ctype_punct.h: Likewise.
38618         * lib/unictype/ctype_space.h: Likewise.
38619         * lib/unictype/ctype_upper.h: Likewise.
38620         * lib/unictype/ctype_xdigit.h: Likewise.
38621         * lib/unictype/decdigit.h: Likewise.
38622         * lib/unictype/digit.h: Likewise.
38623         * lib/unictype/mirror.h: Likewise.
38624         * lib/unictype/numeric.h: Likewise.
38625         * lib/unictype/pr_alphabetic.h: Likewise.
38626         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
38627         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38628         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38629         * lib/unictype/pr_bidi_block_separator.h: Likewise.
38630         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38631         * lib/unictype/pr_bidi_common_separator.h: Likewise.
38632         * lib/unictype/pr_bidi_control.h: Likewise.
38633         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
38634         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
38635         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38636         * lib/unictype/pr_bidi_european_digit.h: Likewise.
38637         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38638         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38639         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38640         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38641         * lib/unictype/pr_bidi_pdf.h: Likewise.
38642         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
38643         * lib/unictype/pr_bidi_whitespace.h: Likewise.
38644         * lib/unictype/pr_combining.h: Likewise.
38645         * lib/unictype/pr_composite.h: Likewise.
38646         * lib/unictype/pr_currency_symbol.h: Likewise.
38647         * lib/unictype/pr_dash.h: Likewise.
38648         * lib/unictype/pr_decimal_digit.h: Likewise.
38649         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
38650         * lib/unictype/pr_deprecated.h: Likewise.
38651         * lib/unictype/pr_diacritic.h: Likewise.
38652         * lib/unictype/pr_extender.h: Likewise.
38653         * lib/unictype/pr_format_control.h: Likewise.
38654         * lib/unictype/pr_grapheme_base.h: Likewise.
38655         * lib/unictype/pr_grapheme_extend.h: Likewise.
38656         * lib/unictype/pr_grapheme_link.h: Likewise.
38657         * lib/unictype/pr_hex_digit.h: Likewise.
38658         * lib/unictype/pr_hyphen.h: Likewise.
38659         * lib/unictype/pr_id_continue.h: Likewise.
38660         * lib/unictype/pr_id_start.h: Likewise.
38661         * lib/unictype/pr_ideographic.h: Likewise.
38662         * lib/unictype/pr_ids_binary_operator.h: Likewise.
38663         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
38664         * lib/unictype/pr_ignorable_control.h: Likewise.
38665         * lib/unictype/pr_iso_control.h: Likewise.
38666         * lib/unictype/pr_join_control.h: Likewise.
38667         * lib/unictype/pr_left_of_pair.h: Likewise.
38668         * lib/unictype/pr_line_separator.h: Likewise.
38669         * lib/unictype/pr_logical_order_exception.h: Likewise.
38670         * lib/unictype/pr_lowercase.h: Likewise.
38671         * lib/unictype/pr_math.h: Likewise.
38672         * lib/unictype/pr_non_break.h: Likewise.
38673         * lib/unictype/pr_not_a_character.h: Likewise.
38674         * lib/unictype/pr_numeric.h: Likewise.
38675         * lib/unictype/pr_other_alphabetic.h: Likewise.
38676         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
38677         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
38678         * lib/unictype/pr_other_id_continue.h: Likewise.
38679         * lib/unictype/pr_other_id_start.h: Likewise.
38680         * lib/unictype/pr_other_lowercase.h: Likewise.
38681         * lib/unictype/pr_other_math.h: Likewise.
38682         * lib/unictype/pr_other_uppercase.h: Likewise.
38683         * lib/unictype/pr_paired_punctuation.h: Likewise.
38684         * lib/unictype/pr_paragraph_separator.h: Likewise.
38685         * lib/unictype/pr_pattern_syntax.h: Likewise.
38686         * lib/unictype/pr_pattern_white_space.h: Likewise.
38687         * lib/unictype/pr_private_use.h: Likewise.
38688         * lib/unictype/pr_punctuation.h: Likewise.
38689         * lib/unictype/pr_quotation_mark.h: Likewise.
38690         * lib/unictype/pr_radical.h: Likewise.
38691         * lib/unictype/pr_sentence_terminal.h: Likewise.
38692         * lib/unictype/pr_soft_dotted.h: Likewise.
38693         * lib/unictype/pr_space.h: Likewise.
38694         * lib/unictype/pr_terminal_punctuation.h: Likewise.
38695         * lib/unictype/pr_titlecase.h: Likewise.
38696         * lib/unictype/pr_unassigned_code_value.h: Likewise.
38697         * lib/unictype/pr_unified_ideograph.h: Likewise.
38698         * lib/unictype/pr_uppercase.h: Likewise.
38699         * lib/unictype/pr_variation_selector.h: Likewise.
38700         * lib/unictype/pr_white_space.h: Likewise.
38701         * lib/unictype/pr_xid_continue.h: Likewise.
38702         * lib/unictype/pr_xid_start.h: Likewise.
38703         * lib/unictype/pr_zero_width.h: Likewise.
38704         * lib/unictype/scripts.h: Likewise.
38705         * lib/unictype/scripts_byname.gperf: Likewise.
38706         * lib/unictype/sy_c_ident.h: Likewise.
38707         * lib/unictype/sy_c_whitespace.h: Likewise.
38708         * lib/unictype/sy_java_ident.h: Likewise.
38709         * lib/unictype/sy_java_whitespace.h: Likewise.
38710
38711         * lib/unictype/Makefile: New file.
38712         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
38713         glibc.
38714         * lib/unictype/3level.h: New file, copied from glibc.
38715         * lib/unictype/3levelbit.h: New file.
38716
38717 2007-11-11  Bruno Haible  <bruno@clisp.org>
38718
38719         * modules/gperf: New file.
38720         * modules/iconv_open (Depends-on): Add it.
38721         (Makefile.am): Remove the GPERF definition.
38722
38723 2007-11-11  Bruno Haible  <bruno@clisp.org>
38724
38725         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
38726         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
38727
38728 2007-11-11  Bruno Haible  <bruno@clisp.org>
38729
38730         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
38731         (usage): Remove function.
38732
38733 2007-11-11  Bruno Haible  <bruno@clisp.org>
38734
38735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
38736         gl_FUNC_CEILF_LIBS.
38737         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
38738         gl_FUNC_CEIL_LIBS.
38739         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
38740         gl_FUNC_CEILL_LIBS.
38741         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
38742         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
38743         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
38744
38745 2007-11-11  Bruno Haible  <bruno@clisp.org>
38746
38747         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
38748         roundf were declared but do not exist on functions.
38749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
38750         roundl were declared but do not exist on functions.
38751         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
38752         HAVE_FLOORL_AND_CEILL, respectively.
38753         Needed for Sun C on Solaris 10.
38754
38755 2007-11-11  Bruno Haible  <bruno@clisp.org>
38756
38757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
38758         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
38759         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
38760         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
38761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
38762         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
38763         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
38764         HAVE_DECL_ROUNDF.
38765         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
38766         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
38767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
38768         of HAVE_DECL_ROUND*.
38769         * modules/math (Makefile.am): Update.
38770
38771 2007-11-10  Bruno Haible  <bruno@clisp.org>
38772
38773         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
38774         ptrdiff_t as m4/intl.m4.
38775
38776 2007-11-10  Jim Meyering  <meyering@redhat.com>
38777
38778         Avoid link failure for the argmatch test.
38779         * tests/test-argmatch.c (usage): Define function to avoid a link
38780         failure: argmatch_die requires a usage function.
38781
38782 2007-11-09  Bruno Haible  <bruno@clisp.org>
38783
38784         * doc/functions/snprintf.texi: Mention BeOS deficiency.
38785         * doc/functions/vsnprintf.texi: Likewise.
38786         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
38787         with a size argument < 2.
38788
38789 2007-11-09  Bruno Haible  <bruno@clisp.org>
38790
38791         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
38792         buffer. Fixes an inefficiency introduced on 2007-11-03.
38793
38794 2007-11-09  Bruno Haible  <bruno@clisp.org>
38795
38796         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
38797         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
38798
38799 2007-11-08  Jim Meyering  <meyering@redhat.com>
38800
38801         Change cache variable name prefix "jm_" to "gl_" everywhere.
38802         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
38803         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
38804         * m4/uptime.m4: s/gl_/jm_/
38805
38806 2007-11-07  Bruno Haible  <bruno@clisp.org>
38807
38808         Update to GNU gettext 0.17.
38809         * m4/intl.m4: Update to GNU gettext 0.17.
38810         * m4/po.m4: Likewise.
38811         * modules/gettext (Files): Remove m4/ulonglong.m4.
38812         (configure.ac): Require gettext infrastructure from version 0.17.
38813
38814 2007-11-06  Bruno Haible  <bruno@clisp.org>
38815
38816         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
38817         symbolic values are not defined in a public header.
38818         * lib/freadable.c (freadable) [QNX]: Likewise.
38819         * lib/freadahead.c (freadahead) [QNX]: Likewise.
38820         * lib/freading.c (freading) [QNX]: Likewise.
38821         * lib/fseterr.c (fseterr) [QNX]: Likewise.
38822         * lib/fwritable.c (fwritable) [QNX]: Likewise.
38823         * lib/fwriting.c (fwriting) [QNX]: Likewise.
38824         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
38825         Reported by Alain Magloire.
38826
38827         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
38828
38829 2007-11-05  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
38832         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
38833         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
38834         Reported by Eric Blake.
38835
38836 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38837             Bruno Haible  <bruno@clisp.org>
38838
38839         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
38840         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
38841         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
38842         (malloc): Undefine also before including <stdlib.h>.
38843         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
38844         Needed on OSF/1 4.0.
38845
38846 2007-11-05  Jim Meyering  <meyering@redhat.com>
38847
38848         git-version-gen: sync from coreutils.
38849         * build-aux/git-version-gen: Add comments.
38850         Change the first '-' to '.' in the snapshot version string,
38851         e.g., 6.9-377-08144 -> 6.9.377-08144
38852         Remove first parameter.
38853         Don't declare a version "-dirty" merely because a time
38854         stamp has changed.
38855
38856 2007-11-04  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/lock.h: Protect all macro definitions containing an 'if'
38859         statement through a "do { ... } while (0)".
38860         * lib/tls.h: Likewise.
38861
38862 2007-11-04  Bruno Haible  <bruno@clisp.org>
38863
38864         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
38865
38866 2007-11-04  Bruno Haible  <bruno@clisp.org>
38867
38868         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
38869         * modules/fprintf-posix (Depends-on): Add nocrash.
38870         * modules/snprintf-posix (Depends-on): Likewise.
38871         * modules/sprintf-posix (Depends-on): Likewise.
38872         * modules/vasnprintf-posix (Depends-on): Likewise.
38873         * modules/vasprintf-posix (Depends-on): Likewise.
38874         * modules/vfprintf-posix (Depends-on): Likewise.
38875         * modules/vsnprintf-posix (Depends-on): Likewise.
38876         * modules/vsprintf-posix (Depends-on): Likewise.
38877         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38878         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38879         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38880         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38881         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38882         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38883         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38884
38885 2007-11-04  Bruno Haible  <bruno@clisp.org>
38886
38887         * modules/nocrash: New file.
38888         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
38889         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
38890
38891 2007-11-04  Bruno Haible  <bruno@clisp.org>
38892
38893         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
38894         precision handling.
38895         * tests/test-vasprintf-posix.c (test_function): Likewise.
38896         * tests/test-snprintf-posix.h (test_function): Likewise.
38897         * tests/test-sprintf-posix.h (test_function): Likewise.
38898
38899         Fix *printf behaviour for large precisions on mingw and BeOS.
38900         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
38901         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
38902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
38903         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38904         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38905         gl_PRINTF_PRECISION and test its result. Invoke
38906         gl_PREREQ_VASNPRINTF_PRECISION.
38907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38914         * doc/functions/fprintf.texi: Update.
38915         * doc/functions/printf.texi: Update.
38916         * doc/functions/snprintf.texi: Update.
38917         * doc/functions/sprintf.texi: Update.
38918         * doc/functions/vfprintf.texi: Update.
38919         * doc/functions/vprintf.texi: Update.
38920         * doc/functions/vsnprintf.texi: Update.
38921         * doc/functions/vsprintf.texi: Update.
38922
38923 2007-11-04  Bruno Haible  <bruno@clisp.org>
38924
38925         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
38926
38927 2007-11-04  Bruno Haible  <bruno@clisp.org>
38928
38929         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
38930         Reported by Sylvain Beucler <beuc@gnu.org>.
38931
38932 2007-11-03  Bruno Haible  <bruno@clisp.org>
38933
38934         * tests/test-fprintf-posix2.sh: New file.
38935         * tests/test-fprintf-posix2.c: New file.
38936         * modules/fprintf-posix-tests (Files): Add them.
38937         (TESTS): Add test-fprintf-posix2.sh.
38938         (configure.ac): Check for getrlimit and setrlimit.
38939         (check_PROGRAMS): Add test-fprintf-posix2.
38940
38941         * tests/test-printf-posix2.sh: New file.
38942         * tests/test-printf-posix2.c: New file.
38943         * modules/printf-posix-tests (Files): Add them.
38944         (TESTS): Add test-printf-posix2.sh.
38945         (configure.ac): Check for getrlimit and setrlimit.
38946         (check_PROGRAMS): Add test-printf-posix2.
38947
38948         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
38949         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
38950         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
38951         (decode_double): New function, copied from decode_long_double.
38952         (scale10_round_decimal_decoded): New function, extracted from
38953         scale10_round_decimal_long_double.
38954         (scale10_round_decimal_long_double): Use it.
38955         (scale10_round_decimal_double): New function.
38956         (floorlog10): New function.
38957         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
38958         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
38959         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38961         gl_PRINTF_ENOMEM and test its result. Invoke
38962         gl_PREREQ_VASNPRINTF_ENOMEM.
38963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38970         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
38971         * modules/snprintf-posix (Depends-on): Likewise.
38972         * modules/sprintf-posix (Depends-on): Likewise.
38973         * modules/vasnprintf-posix (Depends-on): Likewise.
38974         * modules/vasprintf-posix (Depends-on): Likewise.
38975         * modules/vfprintf-posix (Depends-on): Likewise.
38976         * modules/vsnprintf-posix (Depends-on): Likewise.
38977         * modules/vsprintf-posix (Depends-on): Likewise.
38978         * doc/functions/fprintf.texi: Update.
38979         * doc/functions/printf.texi: Update.
38980         * doc/functions/snprintf.texi: Update.
38981         * doc/functions/sprintf.texi: Update.
38982         * doc/functions/vfprintf.texi: Update.
38983         * doc/functions/vprintf.texi: Update.
38984         * doc/functions/vsnprintf.texi: Update.
38985         * doc/functions/vsprintf.texi: Update.
38986
38987 2007-11-03  Bruno Haible  <bruno@clisp.org>
38988
38989         * modules/frexp-nolibm-tests: New file.
38990
38991         * modules/frexp-nolibm: New file.
38992         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
38993
38994 2007-11-03  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
38997         value is C99 compliant.
38998         Needed for OSF/1 5.1.
38999
39000 2007-11-03  Bruno Haible  <bruno@clisp.org>
39001
39002         Fix out-of-memory handling of vasnprintf.
39003         * lib/printf-parse.c: Include <errno.h>.
39004         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
39005         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
39006         is already set.
39007
39008 2007-11-02  Eric Blake  <ebb9@byu.net>
39009
39010         Fix tests on cygwin.
39011         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
39012
39013 2007-11-01  Bruno Haible  <bruno@clisp.org>
39014
39015         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
39016         warning.
39017         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
39018         needed for POSIX compatibility.
39019
39020 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39021
39022         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
39023         for compatibility with GNU.
39024
39025 2007-11-01  Bruno Haible  <bruno@clisp.org>
39026
39027         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
39028         (putenv): Renamed from rpl_putenv. Change argument type from
39029         'const char *' to 'char *'.
39030         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
39031         of defining putenv in config.h, just set REPLACE_PUTENV.
39032         * modules/putenv (Depends-on): Add stdlib.
39033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39034         (Include): Use <stdlib.h>.
39035         * lib/stdlib.in.h (putenv): New declaration.
39036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
39037         REPLACE_PUTENV.
39038         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
39039         REPLACE_PUTENV.
39040         Needed for MacOS X 10.5.0.
39041         Reported by Peter O'Gorman <peter@pogma.com>.
39042
39043 2007-11-01  Jim Meyering  <meyering@redhat.com>
39044
39045         Treat an empty date string exactly like "0".
39046         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
39047         if the remaining date string (to be parsed) is empty, use "0".
39048         Reported by Mischa Molhoek and discussed in this thread:
39049         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
39050
39051 2007-10-31  Bruno Haible  <bruno@clisp.org>
39052
39053         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
39054         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
39055         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
39056         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
39057         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
39058         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
39059
39060 2007-10-31  Bruno Haible  <bruno@clisp.org>
39061
39062         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
39063         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
39064         (AC_TYPE_LONG_LONG_INT): Use it.
39065         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
39066         it as well.
39067         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
39068         to m4/longlong.m4.
39069         * modules/stdint (Files): Remove m4/ulonglong.m4.
39070         * modules/strtoull (Files): Use m4/longlong.m4 instead of
39071         m4/ulonglong.m4.
39072         * modules/strtoumax (Files): Likewise.
39073
39074 2007-10-30  Bruno Haible  <bruno@clisp.org>
39075
39076         * modules/xvasprintf-posix: New file.
39077         Suggested by Eric Blake.
39078
39079 2007-10-30  Bruno Haible  <bruno@clisp.org>
39080
39081         * modules/xprintf-posix-tests: New file.
39082         * tests/test-xprintf-posix.sh: New file.
39083         * tests/test-xprintf-posix.c: New file.
39084         * tests/test-xfprintf-posix.c: New file.
39085
39086         * modules/xprintf-posix: New file.
39087
39088 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39089
39090         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
39091         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
39092         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
39093
39094 2007-10-29  Bruno Haible  <bruno@clisp.org>
39095
39096         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
39097         contain the special marker '_cv_'.
39098         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39099         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39100         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39101         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
39102         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39103         Reported by Ralf Wildenhues.
39104
39105 2007-10-29  Bruno Haible  <bruno@clisp.org>
39106
39107         * gnulib-tool (func_import): When --lgpl is not specified, set
39108         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
39109         GPLv3.
39110         Reported by Simon Josefsson.
39111
39112 2007-10-28  Bruno Haible  <bruno@clisp.org>
39113
39114         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
39115         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
39116         HAVE_DECL_ISFINITE.
39117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39118         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
39119         HAVE_DECL_ISFINITE.
39120
39121 2007-10-28  Bruno Haible  <bruno@clisp.org>
39122
39123         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
39124         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
39125
39126 2007-10-28  Bruno Haible  <bruno@clisp.org>
39127
39128         Fix link errors with Sun C 5.0 on Solaris 10.
39129         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
39130         function is declared but not present in the compiler's libm.
39131         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
39132         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
39133         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
39134         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
39135         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
39136         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
39137         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
39138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
39139         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
39140         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
39141         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
39142         HAVE_DECL_FLOORL.
39143
39144 2007-10-28  Bruno Haible  <bruno@clisp.org>
39145
39146         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
39147         gl_FUNC_FLOORL. Cache the result.
39148         (gl_FUNC_FLOORL): Use it.
39149         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
39150         gl_FUNC_CEILL. Cache the result.
39151         (gl_FUNC_CEILL): Use it.
39152
39153         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
39154         gl_FUNC_FLOOR. Cache the result.
39155         (gl_FUNC_FLOOR): Use it.
39156         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
39157         gl_FUNC_CEIL. Cache the result.
39158         (gl_FUNC_CEIL): Use it.
39159
39160         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
39161         gl_FUNC_FLOORF. Cache the result.
39162         (gl_FUNC_FLOORF): Use it.
39163         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
39164         gl_FUNC_CEILF. Cache the result.
39165         (gl_FUNC_CEILF): Use it.
39166
39167 2007-10-28  Bruno Haible  <bruno@clisp.org>
39168
39169         * gnulib-tool: Allow specifying the LGPL version number through
39170         --lgpl=2 or --lgpl=3.
39171         (func_usage): Document --lgpl with argument.
39172         Handle --lgpl=... arguments.
39173         (func_import): Recognize also gl_LGPL calls with an argument. When
39174         --lgpl=2 is used and the module's license is just LGPL, report an
39175         error. Set sed_transform_lib_file according to the lgpl variable. In
39176         the generated files, use --lgpl or gl_LGPL invocations with argument,
39177         if necessary.
39178         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
39179         an LGPv2+ license.
39180         * doc/gnulib-tool.texi (Modified imports): Update explanation of
39181         gl_LGPL macro.
39182
39183 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39184             Bruno Haible  <bruno@clisp.org>
39185
39186         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
39187         (u16_uctomb_aux): Likewise.
39188         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
39189         !HAVE_INLINE.
39190         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
39191
39192 2007-10-28  Bruno Haible  <bruno@clisp.org>
39193
39194         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
39195         Invoke AM_GETTEXT_OPTION if it exists.
39196         * modules/vasprintf: Likewise.
39197         * modules/verror: Likewise.
39198         * modules/xprintf: Likewise.
39199         * modules/xvasprintf: Likewise.
39200
39201 2007-10-27  Ben Pfaff  <blp@gnu.org>
39202
39203         * lib/math.in.h: Define isfinite macro and prototypes for
39204         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
39205         implementations.
39206         * m4/math_h.m4: New substitutions for isfinite module.
39207         * lib/isfinite.c: New file.
39208         * m4/isfinite.m4: New file.
39209         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
39210         * modules/isfinite: New file.
39211         * modules/isfinite-tests: New file.
39212         * tests/tests-isfinite.c: New file.
39213         * doc/functions/isfinite.texi: Mention isfinite module.
39214         * MODULES.html.sh: Mention new module.
39215
39216 2007-10-27  Ben Pfaff  <blp@gnu.org>
39217
39218         Ralf Wildenhues reported that Tru64 4.0D declares the round
39219         functions but does not have definitions.
39220         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
39221         cannot be found in any library, set the output variable to
39222         "missing" instead of "".
39223         * m4/round.m4: Also use our substitute if we cannot find round in
39224         any library, even if it is declared.
39225         * m4/roundf.m4: Likewise for roundf.
39226         * m4/roundl.m4: Likewise for roundl.
39227         * lib/math.in.h: Undefine roundf, round, roundl before defining
39228         their replacements, to allow for hypothetical systems where these
39229         may be defined as macros but not available in libraries.
39230
39231 2007-10-27  Bruno Haible  <bruno@clisp.org>
39232
39233         * doc/gnulib.texi: Invoke @firstparagraphindent.
39234         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
39235         changes in gnulib.
39236         (Source changes): New section.
39237
39238 2007-10-26  Bruno Haible  <bruno@clisp.org>
39239
39240         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
39241         borrowed from autoconf.
39242
39243 2007-10-26  Bruno Haible  <bruno@clisp.org>
39244
39245         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
39246         strerror returned the empty string. Needed on HP-UX 11.00.
39247
39248 2007-10-24  Micah Cowan  <micah@cowan.name>
39249
39250         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
39251         * build-aux/bootstrap: Remove support for now-unnecessary option,
39252         --cvs-user, and envvars CVS_USER, CVS_RSH.
39253
39254 2007-10-24  Jim Meyering  <meyering@redhat.com>
39255
39256         Avoid diagnostics from sha1sum when there is no cached checksum.
39257         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
39258         if the po.s1 file hasn't been created yet.
39259
39260         * build-aux/bootstrap: Sync from coreutils:
39261         2007-10-24  Jim Meyering  <meyering@redhat.com>
39262         Get gnulib from the git repository, not from an obsolete cvs one.
39263         * build-aux/bootstrap: Suggestion from Micah Cowan.
39264         2007-10-04  Jim Meyering  <jim@meyering.net>
39265         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
39266         (update_po_files): Work also when there are no .po files in po/.
39267
39268 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39269
39270         * README: Append ".git" to git and cg examples.
39271         Problem reported by Benoit Sigoure.
39272
39273 2007-10-23  Micah Cowan  <micah@cowan.name>
39274
39275         * users.txt: Add wget.
39276
39277 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39278
39279         Fix linking of some unistdio tests on FreeBSD.
39280         * modules/unistdio/u16-vsnprintf-tests
39281         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
39282         * modules/unistdio/u16-vsprintf-tests
39283         (test_u16_vsnprintf1_LDADD): Likewise.
39284         * modules/unistdio/u32-vsnprintf-tests
39285         (test_u32_vsnprintf1_LDADD): Likewise.
39286         * modules/unistdio/u32-vsprintf-tests
39287         (test_u32_vsprintf1_LDADD): Likewise.
39288         * modules/unistdio/u8-vsnprintf-tests
39289         (test_u8_vsnprintf1_LDADD): Likewise.
39290         * modules/unistdio/u8-vsprintf-tests
39291         (test_u8_vsprintf1_LDADD): Likewise.
39292         * modules/unistdio/ulc-vsnprintf-tests
39293         (test_ulc_vsnprintf1_LDADD): Likewise.
39294         * modules/unistdio/ulc-vsprintf-tests
39295         (test_ulc_vsprintf1_LDADD): Likewise.
39296
39297         Fix linking of some uniconv tests on FreeBSD.
39298         * modules/uniconv/u16-conv-from-enc-tests
39299         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
39300         * modules/uniconv/u16-conv-to-enc-tests
39301         (test_u16_conv_to_enc_LDADD): Likewise.
39302         * modules/uniconv/u16-strconv-from-enc-tests
39303         (test_u16_strconv_from_enc_LDADD): Likewise.
39304         * modules/uniconv/u16-strconv-to-enc-tests
39305         (test_u16_strconv_to_enc_LDADD): Likewise.
39306         * modules/uniconv/u32-conv-from-enc-tests
39307         (test_u32_conv_from_enc_LDADD): Likewise.
39308         * modules/uniconv/u32-conv-to-enc-tests
39309         (test_u32_conv_to_enc_LDADD): Likewise.
39310         * modules/uniconv/u32-strconv-from-enc-tests
39311         (test_u32_strconv_from_enc_LDADD): Likewise.
39312         * modules/uniconv/u32-strconv-to-enc-tests
39313         (test_u32_strconv_to_enc_LDADD): Likewise.
39314         * modules/uniconv/u8-conv-from-enc-tests
39315         (test_u8_conv_from_enc_LDADD): Likewise.
39316         * modules/uniconv/u8-conv-to-enc-tests
39317         (test_u8_conv_to_enc_LDADD): Likewise.
39318         * modules/uniconv/u8-strconv-from-enc-tests
39319         (test_u8_strconv_from_enc_LDADD): Likewise.
39320         * modules/uniconv/u8-strconv-to-enc-tests
39321         (test_u8_strconv_to_enc_LDADD): Likewise.
39322
39323 2007-10-22  Bruno Haible  <bruno@clisp.org>
39324
39325         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
39326         size.
39327
39328 2007-10-22  Eric Blake  <ebb9@byu.net>
39329
39330         Tweak x*printf documentation.
39331         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
39332         variable name and comments.
39333         Suggested by Bruno Haible.
39334
39335 2007-10-22  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/acl.c (copy_acl): Fix file name in comment.
39338
39339 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39340
39341         Fix Tru64 problem with stdbool.h.
39342         * lib/stdbool.in.h (false, true):
39343         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
39344         Don't declare as an enum in this situation; it runs afoul of Tru64.
39345         Problem reported by Steven M. Schweda in
39346         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
39347
39348 2007-10-22  Eric Blake  <ebb9@byu.net>
39349
39350         Also wrap vf?printf.
39351         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
39352         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
39353         (xvprintf, xvfprintf): New functions.
39354
39355 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39356
39357         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
39358         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
39359
39360         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
39361         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
39362
39363 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39364
39365         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
39366         by Bruno Haible.
39367
39368 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39369
39370         * lib/getloadavg.c
39371         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
39372         Undef `sys' after including sys/table.h, for Tru64 4.0D.
39373
39374         * tests/test-i-ring.c: Work for C89.
39375
39376 2007-10-22  Bruno Haible  <bruno@clisp.org>
39377
39378         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
39379         -1u, in preprocessor expression, so that we don't test for the bug
39380         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
39381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
39382
39383 2007-10-22  Eric Blake  <ebb9@byu.net>
39384
39385         * tests/test-yesno.sh: Silence stderr during test.
39386
39387 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39388
39389         * modules/crypto/gc-camellia: New file.
39390
39391         * m4/gc-camellia.m4: New file.
39392
39393         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
39394
39395         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
39396
39397 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39398
39399         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
39400         --help to stdout.  Reported by sms@antinode.org (Steven
39401         M. Schweda).
39402
39403 2007-10-22  Simon Josefsson  <simon@josefsson.org>
39404
39405         * users.txt: Fix link to libksba.
39406
39407 2007-10-21  Ben Pfaff  <blp@gnu.org>
39408
39409         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
39410         round.c roundf implementation that depends on floorf and ceilf to
39411         be tested unconditionally.
39412
39413 2007-10-21  Ben Pfaff  <blp@gnu.org>
39414
39415         * m4/check-libm-func.m4: Removed.
39416         * m4/check-math-lib.m4: New file.
39417         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
39418         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
39419         definition and lack of AC_LIBOBJ([roundf]).
39420         * m4/roundl.m4: Ditto, and similarly for roundl.
39421         * modules/round: Reference new m4 file.
39422         * modules/roundf: Ditto.
39423         * modules/roundl: Ditto.
39424         * tests/test-round2.c (main): Use ROUND instead of round.
39425         Bug report from Bruno Haible.
39426
39427 2007-10-21  Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
39430         context.
39431
39432 2007-10-21  Bruno Haible  <bruno@clisp.org>
39433
39434         * tests/test-wcwidth.c (main): Allow negative result for some control
39435         characters.
39436
39437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
39438         Needed on OSF/1 5.1.
39439
39440 2007-10-21  Bruno Haible  <bruno@clisp.org>
39441
39442         * tests/test-floorf1.c: Include isnanf.h.
39443         (main): Use isnanf() instead of isnan().
39444         * tests/test-ceilf1.c: Include isnanf.h.
39445         (main): Use isnanf() instead of isnan().
39446         * tests/test-truncf1.c: Include isnanf.h.
39447         (main): Use isnanf() instead of isnan().
39448         * tests/test-roundf1.c: Include isnanf.h.
39449         (main): Use isnanf() instead of isnan().
39450
39451 2007-10-21  Eric Blake  <ebb9@byu.net>
39452
39453         * users.txt: Update URL for m4.
39454
39455 2007-10-21  Bruno Haible  <bruno@clisp.org>
39456
39457         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
39458
39459 2007-10-21  Bruno Haible  <bruno@clisp.org>
39460
39461         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
39462         Git's management files if the CVS files are not present.
39463
39464 2007-10-20  Bruno Haible  <bruno@clisp.org>
39465
39466         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
39467         gcc-3.4.x.
39468
39469 2007-10-20  Ben Pfaff  <blp@gnu.org>
39470
39471         * lib/math.in.h: Declare round, roundf, roundl if we are providing
39472         implementations.
39473         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
39474         * lib/round.c: New file.
39475         * lib/roundf.c: New file.
39476         * lib/roundl.c: New file.
39477         * m4/round.m4: New file.
39478         * m4/roundf.m4: New file.
39479         * m4/roundl.m4: New file.
39480         * m4/check-libm-func-m4: New file.
39481         * modules/math: Replace round, roundf, roundl related @VARS@ in
39482         math.in.h.
39483         * modules/round: New file.
39484         * modules/round-tests: New file.
39485         * modules/roundf: New file.
39486         * modules/roundf-tests: New file.
39487         * modules/roundl: New file.
39488         * modules/roundl-tests: New file.
39489         * tests/test-round1.c: New file.
39490         * tests/test-round2.c: New file.
39491         * tests/test-roundf1.c: New file.
39492         * tests/test-roundf2.c: New file.
39493         * tests/test-roundl.c: New file.
39494         * doc/functions/round.texi: Mention round module.
39495         * doc/functions/roundf.texi: Mention roundf module.
39496         * doc/functions/roundl.texi: Mention roundl module.
39497         * MODULES.html.sh: Mention new modules.
39498         Thanks to Bruno Haible for suggestions.
39499
39500 2007-10-20  Jim Meyering  <meyering@redhat.com>
39501
39502         * lib/xprintf.c: Include <config.h> unconditionally.
39503
39504         Change xprintf's license to GPL.
39505         * modules/xprintf (License): s/LGPL/GPL/, since this module
39506         depends on modules (exit and exitfail) which are GPL.
39507         Suggestion from Bruno Haible.
39508
39509         xprintf fixes.
39510         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
39511         Use a clearer diagnostic.
39512         Patch from Bruno Haible.
39513
39514 2007-10-20  Bruno Haible  <bruno@clisp.org>
39515
39516         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
39517         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
39518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39519
39520 2007-10-20  Bruno Haible  <bruno@clisp.org>
39521
39522         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
39523         precision in the comparison result > x - 1 or similar.
39524         * tests/test-ceilf2.c (correct_result_p): Likewise.
39525         * tests/test-truncf2.c (correct_result_p): Likewise.
39526         * tests/test-trunc2.c (correct_result_p): Likewise.
39527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39528
39529 2007-10-20  Bruno Haible  <bruno@clisp.org>
39530
39531         * modules/ceil: New file.
39532         * m4/ceil.m4: New file.
39533         * doc/functions/ceil.texi: Mention the 'ceil' module.
39534
39535 2007-10-20  Bruno Haible  <bruno@clisp.org>
39536
39537         * modules/floor: New file.
39538         * m4/floor.m4: New file.
39539         * doc/functions/floor.texi: Mention the 'floor' module.
39540
39541 2007-10-20  Bruno Haible  <bruno@clisp.org>
39542
39543         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
39544         of %a.
39545         * modules/floorf-tests (Depends-on): Likewise.
39546         * modules/truncf-tests (Depends-on): Likewise.
39547         * modules/trunc-tests (Depends-on): Likewise.
39548         Reported by Ben Pfaff.
39549
39550 2007-10-19  Jim Meyering  <meyering@redhat.com>
39551
39552         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
39553         Don't bother testing specific errno values.  Just test ferror.
39554
39555         New module: xprintf
39556         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
39557
39558 2007-10-19  Bruno Haible  <bruno@clisp.org>
39559
39560         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
39561         syntax.
39562         * modules/javaexec (Makefile.am): Likewise.
39563         * modules/relocatable-prog (Makefile.am): Likewise.
39564         Suggested by Jim Meyering.
39565
39566 2007-10-18  Bruno Haible  <bruno@clisp.org>
39567
39568         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
39569         Reported by Jim Meyering.
39570
39571 2007-10-18  Eric Blake  <ebb9@byu.net>
39572
39573         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
39574
39575 2007-10-18  Bruno Haible  <bruno@clisp.org>
39576
39577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
39578         the format string into writable memory. Needed in Fortify conditions.
39579
39580 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
39581             Bruno Haible  <bruno@clisp.org>
39582
39583         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
39584         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
39585         * modules/trim (Depends-on): Add mbchar.
39586         (configure.ac): Add gl_FUNC_MBRTOWC.
39587         (Makefile.am): Augment lib_SOURCES.
39588
39589 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39590
39591         Modify glob.c to use fstatat and dirfd, to simplify it.
39592         Suggested by Eric Blake.
39593         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
39594         Don't include <stdbool.h>; not used.
39595         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
39596         (link_exists_p): Simplify implementation, since we can now assume
39597         dirfd and fstatat.
39598         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
39599
39600 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39601
39602         * gnulib-tool (func_get_dependencies): Fix sed script to
39603         match only tests.
39604
39605 2007-10-17  Bruno Haible  <bruno@clisp.org>
39606
39607         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
39608         allow locale names without encoding suffix.
39609         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
39610         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39611
39612 2007-10-16  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
39615         * lib/getgroups.c (getgroups): Likewise.
39616         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
39617
39618 2007-10-16  Bruno Haible  <bruno@clisp.org>
39619
39620         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
39621         * modules/malloc-posix (License): Likewise.
39622         * modules/realloc-posix (License): Likewise.
39623         * modules/calloc-posix (License): Likewise.
39624         * modules/intprops (License): Change from GPL to LGPL, with
39625         Paul Eggert's approval.
39626
39627 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39628
39629         Merge glibc changes into lib/glob.c.
39630
39631         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
39632         2007-10-15 04:59:03 UTC.  Here are the changes:
39633
39634         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
39635
39636         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
39637
39638         * lib/glob.c: Add some branch prediction throughout.
39639
39640         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
39641
39642         [BZ #5103]
39643         * lib/glob.c (glob): Recognize patterns starting \/.
39644
39645         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
39646
39647         [BZ #3996]
39648         * lib/glob.c (attribute_hidden): Define if not defined.
39649         (glob): Unescape dirname, filename or username when needed and not
39650         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
39651         is NULL.  Handle unescaped [ in pattern without closing ].
39652         Don't pass GLOB_CHECK down to recursive glob for directories.
39653         (__glob_pattern_type): New function.
39654         (__glob_pattern_p): Implement using __glob_pattern_type.
39655         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
39656         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
39657         Remove unreachable code.
39658
39659         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
39660
39661         * lib/glob.c (glob_in_dir): Add some comments and asserts to
39662         explain why there are no leaks.
39663
39664         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
39665
39666         [BZ #3253]
39667         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
39668         time, rather allocate increasingly bigger arrays of pointers, if
39669         possible with alloca, if too large with malloc.
39670
39671 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39672
39673         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
39674         Problem reported by H.Merijn Brand in
39675         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
39676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
39677         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39678
39679 2007-10-15  Bruno Haible  <bruno@clisp.org>
39680
39681         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
39682         with explicit rpl_ prefix.
39683         * lib/fopen.c (fopen): Likewise.
39684         * lib/freopen.c (freopen): Likewise.
39685         * lib/iconv.c (iconv): Likewise.
39686         * lib/iconv_close.c (iconv_close): Likewise.
39687
39688 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39689
39690         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
39691
39692 2007-10-15  Bruno Haible  <bruno@clisp.org>
39693
39694         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
39695         <stddef.h> instead of <stdlib.h> since we only need NULL.
39696         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39697
39698 2007-10-15  Bruno Haible  <bruno@clisp.org>
39699
39700         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
39701         Replace paragraph talking about LIBOBJS.
39702         Reported by Colin Watson <cjwatson@debian.org>.
39703
39704 2007-10-15  Bruno Haible  <bruno@clisp.org>
39705
39706         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
39707         <stdlib.h> before using NULL.
39708
39709 2007-10-15  Simon Josefsson  <simon@josefsson.org>
39710
39711         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
39712         Reported by Albert Chin <china@thewrittenword.com>.
39713
39714 2007-10-14  Bruno Haible  <bruno@clisp.org>
39715
39716         * modules/iconv_open-utf-tests: New file.
39717         * tests/test-iconv-utf.c: New file.
39718
39719         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
39720         * modules/iconv_open-utf: New file.
39721         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
39722         (iconv, iconv_close): New declarations.
39723         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
39724         be defined.
39725         (iconv_open): Add special handling of conversion between UTF-8 and
39726         UTF-{16,32}{BE,LE}.
39727         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
39728         * lib/iconv_close.c: New file.
39729         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
39730         gl_FUNC_ICONV_OPEN.
39731         (gl_FUNC_ICONV_OPEN): Use it.
39732         (gl_FUNC_ICONV_OPEN_UTF): New macro.
39733         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
39734         and REPLACE_ICONV_UTF.
39735         * modules/iconv_open (Depends-on): Add c-strcase.
39736         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
39737         ICONV_CONST.
39738         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
39739
39740 2007-10-13  Albert Chin  <china@thewrittenword.com>
39741             Bruno Haible  <bruno@clisp.org>
39742
39743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
39744         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
39745
39746 2007-10-13  Bruno Haible  <bruno@clisp.org>
39747
39748         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
39749         defined, use the ISO C99 inline semantics.
39750         * lib/argp.h (ARGP_EI): Likewise.
39751
39752 2007-10-13  Bruno Haible  <bruno@clisp.org>
39753
39754         Handle 'inline' change in gcc 4.3.0.
39755         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
39756         argp_fmtstream_write, argp_fmtstream_set_lmargin,
39757         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
39758         argp_fmtstream_point): Disable 'extern' declaration if the function
39759         definition is going to be provided inline.
39760         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
39761         semantics, not the ISO C99 inline semantics.
39762         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
39763         'extern' declaration if the function definition is going to be provided
39764         inline.
39765         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
39766         the GNU C inline semantics, not the ISO C99 inline semantics. With
39767         GCC 4.2, avoid a warning.
39768
39769 2007-10-13  Bruno Haible  <bruno@clisp.org>
39770
39771         * lib/freading.h (freading): Enable the use of __freading for
39772         glibc >= 2.7.
39773         * lib/freading.c (freading): Likewise.
39774
39775 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39776
39777         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
39778         "warning: C99 inline functions are not supported; using GNU89".
39779
39780 2007-10-12  Bruno Haible  <bruno@clisp.org>
39781
39782         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
39783         of 2.
39784         * tests/test-ceilf2.c: New file.
39785         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
39786
39787         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
39788         * modules/ceilf-tests: Update.
39789
39790 2007-10-12  Bruno Haible  <bruno@clisp.org>
39791
39792         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
39793         of 2.
39794         * tests/test-floorf2.c: New file.
39795         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
39796
39797         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
39798         * modules/floorf-tests: Update.
39799
39800 2007-10-12  Bruno Haible  <bruno@clisp.org>
39801
39802         * tests/test-trunc2.c: New file.
39803         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
39804
39805         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
39806         * modules/trunc-tests: Update.
39807
39808 2007-10-12  Bruno Haible  <bruno@clisp.org>
39809
39810         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
39811         of 2.
39812         * tests/test-truncf2.c: New file.
39813         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
39814
39815         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
39816         * modules/truncf-tests: Update.
39817
39818 2007-10-11  Eric Blake  <ebb9@byu.net>
39819
39820         Don't claim strerror is broken on Interix.
39821         * doc/functions/strerror.texi (strerror): Known broken systems are
39822         now Solaris 8, and not Interix.
39823         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
39824         Interix on cross-compile.
39825         Reported by Martin Koeppe in
39826         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
39827
39828 2007-10-11  Bruno Haible  <bruno@clisp.org>
39829
39830         * modules/i-ring-tests: New file.
39831         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
39832         instead of assert.
39833
39834 2007-10-11  Bruno Haible  <bruno@clisp.org>
39835
39836         * modules/filenamecat-tests: New file.
39837         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
39838         * lib/filenamecat.c: Remove test code.
39839
39840 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39841
39842         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
39843
39844         * lib/strerror.c: Include <string.h> always, to test interface,
39845         and to remove the need for the dummy.
39846         Include intprops.h to compute width instead of doing it ourselves
39847         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
39848         (strerror): Define it to return NULL if there's no system strerror.
39849         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
39850         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
39851         ancient pre-strerror Unix systems well any more.  Saying "unknown
39852         system error" is enough.
39853         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
39854         simpler strerror.c implementation.
39855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
39856         Simplify the tests to reflect the simpler strerror implementation.
39857         * modules/strerror (Depends-on): Add intprops.
39858
39859 2007-10-09  Eric Blake  <ebb9@byu.net>
39860
39861         Silence test-fpending.
39862         * modules/fpending-tests (Files): Add wrapper script.
39863         * tests/test-fpending.sh: New file.
39864
39865 2007-10-09  Bruno Haible  <bruno@clisp.org>
39866
39867         * MODULES.html.sh (func_module): Don't create a hyperlink for
39868         function names like 'printf_frexp'.
39869         (Misc): Add crc, memxor.
39870         (Characteristics of floating types): New section.
39871         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
39872         isnanf-nolibm, signbit, trunc, truncf, truncl.
39873         (Enhancements for ISO C 99 functions): New subsection Input/output.
39874         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
39875         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
39876         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
39877         (Compatibility checks for POSIX:2001 functions): Add clock-time.
39878         (Enhancements for POSIX:2001 functions): Add chdir-long.
39879         (File system functions): Add areadlink, chdir-safer, read-file.
39880         Remove cycle-check.
39881         (File system as inode set): New section.
39882         (Date and time): Add gethrxtime.
39883         (Multithreading): Add openmp.
39884         (Internationalization functions): Add localename.
39885         (Unicode string functions): Add unistr/u*-mbsnlen.
39886         (Support for maintaining and releasing projects): Add git-version-gen.
39887         (Lone files): Remove directories.
39888
39889 2007-10-08  Ben Pfaff  <blp@gnu.org>
39890
39891         * lib/xmalloca.h: Fix typo in comment.
39892
39893 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39894
39895         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
39896         when avoiding problems with integer overflow.  Use a portable test
39897         instead.
39898
39899 2007-10-08  Simon Josefsson  <simon@josefsson.org>
39900
39901         * modules/dummy (License): Change to LGPLv2+.
39902         * modules/float (License): Likewise
39903         * modules/realloc (License): Likewise
39904         * modules/stdlib (License): Likewise
39905
39906 2007-10-07  Bruno Haible  <bruno@clisp.org>
39907
39908         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
39909         * floor.c (TWO_MANT_DIG): Likewise.
39910         * ceil.c (TWO_MANT_DIG): Likewise.
39911         Reported by Ben Pfaff.
39912
39913 2007-10-07  Bruno Haible  <bruno@clisp.org>
39914
39915         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
39916         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
39917         * lib/frexp.c (FUNC): Likewise.
39918         * lib/printf-frexp.h (printf_frexp): Likewise.
39919         * lib/printf-frexpl.h (printf_frexpl): Likewise.
39920         * lib/printf-frexp.c (FUNC): Likewise.
39921         Suggested by Jim Meyering.
39922
39923 2007-10-07  Jim Meyering  <meyering@redhat.com>
39924
39925         Make xnanosleep's integer overflow test more robust.
39926         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
39927         so that gcc-4.3.0 doesn't optimize away this test for overflow.
39928
39929 2007-10-07  Bruno Haible  <bruno@clisp.org>
39930
39931         * NEWS: Mention the license change.
39932
39933         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
39934         abbreviations in the modules files.
39935
39936         Change copyright notice from GPLv2+ to GPLv3+.
39937         * README: Change copyright notice.
39938         * MODULES.html.sh: Likewise.
39939         * build-aux/bootstrap.conf: Likewise.
39940         * build-aux/config.libpath: Likewise.
39941         * build-aux/csharpcomp.sh.in: Likewise.
39942         * build-aux/csharpexec.sh.in: Likewise.
39943         * build-aux/install-reloc: Likewise.
39944         * build-aux/javacomp.sh.in: Likewise.
39945         * build-aux/javaexec.sh.in: Likewise.
39946         * build-aux/ldd.sh.in: Likewise.
39947         * build-aux/reloc-ldflags: Likewise.
39948         * build-aux/relocatable.sh.in: Likewise.
39949         * build-aux/x-to-1.in: Likewise.
39950         * check-module: Likewise.
39951         * config/srclistvars.sh: Likewise.
39952         * gnulib-tool: Likewise.
39953         * lib/acl-internal.h: Likewise.
39954         * lib/acl.c: Likewise.
39955         * lib/acl.h: Likewise.
39956         * lib/acl_entries.c: Likewise.
39957         * lib/areadlink-with-size.c: Likewise.
39958         * lib/areadlink.c: Likewise.
39959         * lib/areadlink.h: Likewise.
39960         * lib/argmatch.c: Likewise.
39961         * lib/argmatch.h: Likewise.
39962         * lib/argp-ba.c: Likewise.
39963         * lib/argp-eexst.c: Likewise.
39964         * lib/argp-fmtstream.c: Likewise.
39965         * lib/argp-fmtstream.h: Likewise.
39966         * lib/argp-fs-xinl.c: Likewise.
39967         * lib/argp-help.c: Likewise.
39968         * lib/argp-namefrob.h: Likewise.
39969         * lib/argp-parse.c: Likewise.
39970         * lib/argp-pin.c: Likewise.
39971         * lib/argp-pv.c: Likewise.
39972         * lib/argp-pvh.c: Likewise.
39973         * lib/argp-xinl.c: Likewise.
39974         * lib/argp.h: Likewise.
39975         * lib/at-func.c: Likewise.
39976         * lib/atanl.c: Likewise.
39977         * lib/backupfile.c: Likewise.
39978         * lib/backupfile.h: Likewise.
39979         * lib/basename.c: Likewise.
39980         * lib/binary-io.h: Likewise.
39981         * lib/byteswap.in.h: Likewise.
39982         * lib/c-stack.c: Likewise.
39983         * lib/c-stack.h: Likewise.
39984         * lib/c-strcasestr.c: Likewise.
39985         * lib/c-strcasestr.h: Likewise.
39986         * lib/c-strstr.c: Likewise.
39987         * lib/c-strstr.h: Likewise.
39988         * lib/c-strtod.c: Likewise.
39989         * lib/calloc.c: Likewise.
39990         * lib/canon-host.c: Likewise.
39991         * lib/canon-host.h: Likewise.
39992         * lib/canonicalize-lgpl.c: Likewise.
39993         * lib/canonicalize.c: Likewise.
39994         * lib/canonicalize.h: Likewise.
39995         * lib/ceil.c: Likewise.
39996         * lib/ceilf.c: Likewise.
39997         * lib/ceill.c: Likewise.
39998         * lib/chdir-long.c: Likewise.
39999         * lib/chdir-long.h: Likewise.
40000         * lib/chdir-safer.c: Likewise.
40001         * lib/chdir-safer.h: Likewise.
40002         * lib/chown.c: Likewise.
40003         * lib/classpath.c: Likewise.
40004         * lib/classpath.h: Likewise.
40005         * lib/clean-temp.c: Likewise.
40006         * lib/clean-temp.h: Likewise.
40007         * lib/cloexec.c: Likewise.
40008         * lib/close-stream.c: Likewise.
40009         * lib/closein.c: Likewise.
40010         * lib/closein.h: Likewise.
40011         * lib/closeout.c: Likewise.
40012         * lib/closeout.h: Likewise.
40013         * lib/concat-filename.c: Likewise.
40014         * lib/copy-file.c: Likewise.
40015         * lib/copy-file.h: Likewise.
40016         * lib/count-one-bits.h: Likewise.
40017         * lib/crc.c: Likewise.
40018         * lib/crc.h: Likewise.
40019         * lib/creat-safer.c: Likewise.
40020         * lib/csharpcomp.c: Likewise.
40021         * lib/csharpcomp.h: Likewise.
40022         * lib/csharpexec.c: Likewise.
40023         * lib/csharpexec.h: Likewise.
40024         * lib/cycle-check.c: Likewise.
40025         * lib/cycle-check.h: Likewise.
40026         * lib/diacrit.c: Likewise.
40027         * lib/diacrit.h: Likewise.
40028         * lib/diffseq.h: Likewise.
40029         * lib/dirchownmod.c: Likewise.
40030         * lib/dirent.in.h: Likewise.
40031         * lib/dirfd.c: Likewise.
40032         * lib/dirfd.h: Likewise.
40033         * lib/dirname.c: Likewise.
40034         * lib/dirname.h: Likewise.
40035         * lib/dummy.c: Likewise.
40036         * lib/dup-safer.c: Likewise.
40037         * lib/dup2.c: Likewise.
40038         * lib/eealloc.h: Likewise.
40039         * lib/error.c: Likewise.
40040         * lib/error.h: Likewise.
40041         * lib/euidaccess.c: Likewise.
40042         * lib/exclude.c: Likewise.
40043         * lib/exclude.h: Likewise.
40044         * lib/execute.c: Likewise.
40045         * lib/execute.h: Likewise.
40046         * lib/exitfail.c: Likewise.
40047         * lib/exitfail.h: Likewise.
40048         * lib/expl.c: Likewise.
40049         * lib/fatal-signal.c: Likewise.
40050         * lib/fatal-signal.h: Likewise.
40051         * lib/fbufmode.c: Likewise.
40052         * lib/fbufmode.h: Likewise.
40053         * lib/fchdir.c: Likewise.
40054         * lib/fchmodat.c: Likewise.
40055         * lib/fchownat.c: Likewise.
40056         * lib/fcntl--.h: Likewise.
40057         * lib/fcntl-safer.h: Likewise.
40058         * lib/fcntl.in.h: Likewise.
40059         * lib/fd-safer.c: Likewise.
40060         * lib/fflush.c: Likewise.
40061         * lib/file-has-acl.c: Likewise.
40062         * lib/file-set.c: Likewise.
40063         * lib/file-type.c: Likewise.
40064         * lib/file-type.h: Likewise.
40065         * lib/fileblocks.c: Likewise.
40066         * lib/filemode.c: Likewise.
40067         * lib/filemode.h: Likewise.
40068         * lib/filename.h: Likewise.
40069         * lib/filenamecat.c: Likewise.
40070         * lib/filenamecat.h: Likewise.
40071         * lib/findprog.c: Likewise.
40072         * lib/findprog.h: Likewise.
40073         * lib/float.in.h: Likewise.
40074         * lib/floor.c: Likewise.
40075         * lib/floorf.c: Likewise.
40076         * lib/floorl.c: Likewise.
40077         * lib/fopen-safer.c: Likewise.
40078         * lib/fopen.c: Likewise.
40079         * lib/fpending.c: Likewise.
40080         * lib/fpending.h: Likewise.
40081         * lib/fprintf.c: Likewise.
40082         * lib/fprintftime.h: Likewise.
40083         * lib/fpucw.h: Likewise.
40084         * lib/fpurge.c: Likewise.
40085         * lib/fpurge.h: Likewise.
40086         * lib/freadable.c: Likewise.
40087         * lib/freadable.h: Likewise.
40088         * lib/freadahead.c: Likewise.
40089         * lib/freadahead.h: Likewise.
40090         * lib/freading.c: Likewise.
40091         * lib/freading.h: Likewise.
40092         * lib/free.c: Likewise.
40093         * lib/freopen.c: Likewise.
40094         * lib/frexp.c: Likewise.
40095         * lib/frexpl.c: Likewise.
40096         * lib/fseek.c: Likewise.
40097         * lib/fseterr.c: Likewise.
40098         * lib/fseterr.h: Likewise.
40099         * lib/fstatat.c: Likewise.
40100         * lib/fstrcmp.c: Likewise.
40101         * lib/fstrcmp.h: Likewise.
40102         * lib/fsusage.c: Likewise.
40103         * lib/fsusage.h: Likewise.
40104         * lib/ftell.c: Likewise.
40105         * lib/ftello.c: Likewise.
40106         * lib/fts-cycle.c: Likewise.
40107         * lib/fts.c: Likewise.
40108         * lib/fts_.h: Likewise.
40109         * lib/full-read.c: Likewise.
40110         * lib/full-read.h: Likewise.
40111         * lib/full-write.c: Likewise.
40112         * lib/full-write.h: Likewise.
40113         * lib/fwritable.c: Likewise.
40114         * lib/fwritable.h: Likewise.
40115         * lib/fwriteerror.c: Likewise.
40116         * lib/fwriteerror.h: Likewise.
40117         * lib/fwriting.c: Likewise.
40118         * lib/fwriting.h: Likewise.
40119         * lib/gcd.c: Likewise.
40120         * lib/gcd.h: Likewise.
40121         * lib/getcwd.c: Likewise.
40122         * lib/getdate.h: Likewise.
40123         * lib/getdate.y: Likewise.
40124         * lib/getdomainname.c: Likewise.
40125         * lib/getdomainname.h: Likewise.
40126         * lib/getgroups.c: Likewise.
40127         * lib/gethostname.c: Likewise.
40128         * lib/gethrxtime.c: Likewise.
40129         * lib/gethrxtime.h: Likewise.
40130         * lib/getloadavg.c: Likewise.
40131         * lib/getndelim2.c: Likewise.
40132         * lib/getndelim2.h: Likewise.
40133         * lib/getnline.c: Likewise.
40134         * lib/getnline.h: Likewise.
40135         * lib/getopt.c: Likewise.
40136         * lib/getopt.in.h: Likewise.
40137         * lib/getopt1.c: Likewise.
40138         * lib/getopt_int.h: Likewise.
40139         * lib/getpagesize.h: Likewise.
40140         * lib/getsubopt.c: Likewise.
40141         * lib/gettime.c: Likewise.
40142         * lib/getugroups.c: Likewise.
40143         * lib/getugroups.h: Likewise.
40144         * lib/getusershell.c: Likewise.
40145         * lib/gl_anyavltree_list1.h: Likewise.
40146         * lib/gl_anyavltree_list2.h: Likewise.
40147         * lib/gl_anyhash_list1.h: Likewise.
40148         * lib/gl_anyhash_list2.h: Likewise.
40149         * lib/gl_anylinked_list1.h: Likewise.
40150         * lib/gl_anylinked_list2.h: Likewise.
40151         * lib/gl_anyrbtree_list1.h: Likewise.
40152         * lib/gl_anyrbtree_list2.h: Likewise.
40153         * lib/gl_anytree_list1.h: Likewise.
40154         * lib/gl_anytree_list2.h: Likewise.
40155         * lib/gl_anytree_oset.h: Likewise.
40156         * lib/gl_anytreehash_list1.h: Likewise.
40157         * lib/gl_anytreehash_list2.h: Likewise.
40158         * lib/gl_array_list.c: Likewise.
40159         * lib/gl_array_list.h: Likewise.
40160         * lib/gl_array_oset.c: Likewise.
40161         * lib/gl_array_oset.h: Likewise.
40162         * lib/gl_avltree_list.c: Likewise.
40163         * lib/gl_avltree_list.h: Likewise.
40164         * lib/gl_avltree_oset.c: Likewise.
40165         * lib/gl_avltree_oset.h: Likewise.
40166         * lib/gl_avltreehash_list.c: Likewise.
40167         * lib/gl_avltreehash_list.h: Likewise.
40168         * lib/gl_carray_list.c: Likewise.
40169         * lib/gl_carray_list.h: Likewise.
40170         * lib/gl_linked_list.c: Likewise.
40171         * lib/gl_linked_list.h: Likewise.
40172         * lib/gl_linkedhash_list.c: Likewise.
40173         * lib/gl_linkedhash_list.h: Likewise.
40174         * lib/gl_list.c: Likewise.
40175         * lib/gl_list.h: Likewise.
40176         * lib/gl_oset.c: Likewise.
40177         * lib/gl_oset.h: Likewise.
40178         * lib/gl_rbtree_list.c: Likewise.
40179         * lib/gl_rbtree_list.h: Likewise.
40180         * lib/gl_rbtree_oset.c: Likewise.
40181         * lib/gl_rbtree_oset.h: Likewise.
40182         * lib/gl_rbtreehash_list.c: Likewise.
40183         * lib/gl_rbtreehash_list.h: Likewise.
40184         * lib/gl_sublist.c: Likewise.
40185         * lib/gl_sublist.h: Likewise.
40186         * lib/group-member.c: Likewise.
40187         * lib/group-member.h: Likewise.
40188         * lib/hard-locale.c: Likewise.
40189         * lib/hard-locale.h: Likewise.
40190         * lib/hash-pjw.c: Likewise.
40191         * lib/hash-pjw.h: Likewise.
40192         * lib/hash-triple.c: Likewise.
40193         * lib/hash.c: Likewise.
40194         * lib/hash.h: Likewise.
40195         * lib/human.c: Likewise.
40196         * lib/human.h: Likewise.
40197         * lib/i-ring.c: Likewise.
40198         * lib/i-ring.h: Likewise.
40199         * lib/idcache.c: Likewise.
40200         * lib/imaxabs.c: Likewise.
40201         * lib/imaxdiv.c: Likewise.
40202         * lib/inet_pton.c: Likewise.
40203         * lib/inet_pton.h: Likewise.
40204         * lib/intprops.h: Likewise.
40205         * lib/inttostr.c: Likewise.
40206         * lib/inttostr.h: Likewise.
40207         * lib/inttypes.in.h: Likewise.
40208         * lib/isapipe.c: Likewise.
40209         * lib/isdir.c: Likewise.
40210         * lib/isnan.c: Likewise.
40211         * lib/isnan.h: Likewise.
40212         * lib/isnanf.c: Likewise.
40213         * lib/isnanf.h: Likewise.
40214         * lib/isnanl-nolibm.h: Likewise.
40215         * lib/isnanl.c: Likewise.
40216         * lib/isnanl.h: Likewise.
40217         * lib/javacomp.c: Likewise.
40218         * lib/javacomp.h: Likewise.
40219         * lib/javaexec.c: Likewise.
40220         * lib/javaexec.h: Likewise.
40221         * lib/javaversion.c: Likewise.
40222         * lib/javaversion.h: Likewise.
40223         * lib/javaversion.java: Likewise.
40224         * lib/lbrkprop.h: Likewise.
40225         * lib/lchmod.h: Likewise.
40226         * lib/lchown.c: Likewise.
40227         * lib/ldexpl.c: Likewise.
40228         * lib/linebreak.c: Likewise.
40229         * lib/linebreak.h: Likewise.
40230         * lib/linebuffer.c: Likewise.
40231         * lib/linebuffer.h: Likewise.
40232         * lib/locale.in.h: Likewise.
40233         * lib/logl.c: Likewise.
40234         * lib/long-options.c: Likewise.
40235         * lib/long-options.h: Likewise.
40236         * lib/lstat.c: Likewise.
40237         * lib/lstat.h: Likewise.
40238         * lib/math.in.h: Likewise.
40239         * lib/mbchar.c: Likewise.
40240         * lib/mbchar.h: Likewise.
40241         * lib/mbfile.h: Likewise.
40242         * lib/mbiter.h: Likewise.
40243         * lib/mbscasecmp.c: Likewise.
40244         * lib/mbscasestr.c: Likewise.
40245         * lib/mbschr.c: Likewise.
40246         * lib/mbscspn.c: Likewise.
40247         * lib/mbslen.c: Likewise.
40248         * lib/mbsncasecmp.c: Likewise.
40249         * lib/mbsnlen.c: Likewise.
40250         * lib/mbspbrk.c: Likewise.
40251         * lib/mbspcasecmp.c: Likewise.
40252         * lib/mbsrchr.c: Likewise.
40253         * lib/mbssep.c: Likewise.
40254         * lib/mbsspn.c: Likewise.
40255         * lib/mbsstr.c: Likewise.
40256         * lib/mbstok_r.c: Likewise.
40257         * lib/mbswidth.c: Likewise.
40258         * lib/mbswidth.h: Likewise.
40259         * lib/mbuiter.h: Likewise.
40260         * lib/memcasecmp.c: Likewise.
40261         * lib/memcasecmp.h: Likewise.
40262         * lib/memchr.c: Likewise.
40263         * lib/memcmp.c: Likewise.
40264         * lib/memcoll.c: Likewise.
40265         * lib/memcoll.h: Likewise.
40266         * lib/memcpy.c: Likewise.
40267         * lib/memrchr.c: Likewise.
40268         * lib/mkancesdirs.c: Likewise.
40269         * lib/mkdir-p.c: Likewise.
40270         * lib/mkdir-p.h: Likewise.
40271         * lib/mkdir.c: Likewise.
40272         * lib/mkdirat.c: Likewise.
40273         * lib/mkdtemp.c: Likewise.
40274         * lib/mkstemp-safer.c: Likewise.
40275         * lib/mkstemp.c: Likewise.
40276         * lib/modechange.c: Likewise.
40277         * lib/modechange.h: Likewise.
40278         * lib/mountlist.c: Likewise.
40279         * lib/mountlist.h: Likewise.
40280         * lib/mpsort.c: Likewise.
40281         * lib/nanosleep.c: Likewise.
40282         * lib/obstack.c: Likewise.
40283         * lib/obstack.h: Likewise.
40284         * lib/open-safer.c: Likewise.
40285         * lib/open.c: Likewise.
40286         * lib/openat-die.c: Likewise.
40287         * lib/openat-priv.h: Likewise.
40288         * lib/openat-proc.c: Likewise.
40289         * lib/openat.c: Likewise.
40290         * lib/openat.h: Likewise.
40291         * lib/pagealign_alloc.c: Likewise.
40292         * lib/pagealign_alloc.h: Likewise.
40293         * lib/physmem.c: Likewise.
40294         * lib/physmem.h: Likewise.
40295         * lib/pipe-safer.c: Likewise.
40296         * lib/pipe.c: Likewise.
40297         * lib/pipe.h: Likewise.
40298         * lib/posixtm.c: Likewise.
40299         * lib/posixtm.h: Likewise.
40300         * lib/posixver.c: Likewise.
40301         * lib/printf-frexp.c: Likewise.
40302         * lib/printf-frexp.h: Likewise.
40303         * lib/printf-frexpl.c: Likewise.
40304         * lib/printf-frexpl.h: Likewise.
40305         * lib/printf.c: Likewise.
40306         * lib/progname.c: Likewise.
40307         * lib/progname.h: Likewise.
40308         * lib/progreloc.c: Likewise.
40309         * lib/putenv.c: Likewise.
40310         * lib/quote.c: Likewise.
40311         * lib/quote.h: Likewise.
40312         * lib/quotearg.c: Likewise.
40313         * lib/quotearg.h: Likewise.
40314         * lib/raise.c: Likewise.
40315         * lib/readline.c: Likewise.
40316         * lib/readline.h: Likewise.
40317         * lib/readlink.c: Likewise.
40318         * lib/readtokens.c: Likewise.
40319         * lib/readtokens.h: Likewise.
40320         * lib/readtokens0.c: Likewise.
40321         * lib/readtokens0.h: Likewise.
40322         * lib/readutmp.c: Likewise.
40323         * lib/readutmp.h: Likewise.
40324         * lib/realloc.c: Likewise.
40325         * lib/relocwrapper.c: Likewise.
40326         * lib/rename-dest-slash.c: Likewise.
40327         * lib/rename.c: Likewise.
40328         * lib/rmdir.c: Likewise.
40329         * lib/rpmatch.c: Likewise.
40330         * lib/safe-read.c: Likewise.
40331         * lib/safe-read.h: Likewise.
40332         * lib/safe-write.c: Likewise.
40333         * lib/safe-write.h: Likewise.
40334         * lib/same-inode.h: Likewise.
40335         * lib/same.c: Likewise.
40336         * lib/same.h: Likewise.
40337         * lib/save-cwd.c: Likewise.
40338         * lib/save-cwd.h: Likewise.
40339         * lib/savedir.c: Likewise.
40340         * lib/savedir.h: Likewise.
40341         * lib/savewd.c: Likewise.
40342         * lib/savewd.h: Likewise.
40343         * lib/search.in.h: Likewise.
40344         * lib/setenv.c: Likewise.
40345         * lib/setenv.h: Likewise.
40346         * lib/settime.c: Likewise.
40347         * lib/sh-quote.c: Likewise.
40348         * lib/sh-quote.h: Likewise.
40349         * lib/sig2str.c: Likewise.
40350         * lib/sig2str.h: Likewise.
40351         * lib/signal.in.h: Likewise.
40352         * lib/signbitd.c: Likewise.
40353         * lib/signbitf.c: Likewise.
40354         * lib/signbitl.c: Likewise.
40355         * lib/sigprocmask.c: Likewise.
40356         * lib/sincosl.c: Likewise.
40357         * lib/sleep.c: Likewise.
40358         * lib/sprintf.c: Likewise.
40359         * lib/sqrtl.c: Likewise.
40360         * lib/stat-time.h: Likewise.
40361         * lib/stdio--.h: Likewise.
40362         * lib/stdio-safer.h: Likewise.
40363         * lib/stdlib--.h: Likewise.
40364         * lib/stdlib-safer.h: Likewise.
40365         * lib/stdlib.in.h: Likewise.
40366         * lib/stpcpy.c: Likewise.
40367         * lib/stpncpy.c: Likewise.
40368         * lib/strchrnul.c: Likewise.
40369         * lib/strcspn.c: Likewise.
40370         * lib/strerror.c: Likewise.
40371         * lib/strftime.c: Likewise.
40372         * lib/strftime.h: Likewise.
40373         * lib/striconveh.c: Likewise.
40374         * lib/striconveh.h: Likewise.
40375         * lib/striconveha.c: Likewise.
40376         * lib/striconveha.h: Likewise.
40377         * lib/stripslash.c: Likewise.
40378         * lib/strnlen1.c: Likewise.
40379         * lib/strnlen1.h: Likewise.
40380         * lib/strtod.c: Likewise.
40381         * lib/strtoimax.c: Likewise.
40382         * lib/strtok_r.c: Likewise.
40383         * lib/strtol.c: Likewise.
40384         * lib/strtoll.c: Likewise.
40385         * lib/strtoul.c: Likewise.
40386         * lib/strtoull.c: Likewise.
40387         * lib/sysexits.in.h: Likewise.
40388         * lib/tempname.c: Likewise.
40389         * lib/tempname.h: Likewise.
40390         * lib/timespec.h: Likewise.
40391         * lib/tls.c: Likewise.
40392         * lib/tls.h: Likewise.
40393         * lib/tmpdir.c: Likewise.
40394         * lib/tmpdir.h: Likewise.
40395         * lib/tmpfile-safer.c: Likewise.
40396         * lib/tmpfile.c: Likewise.
40397         * lib/trigl.c: Likewise.
40398         * lib/trigl.h: Likewise.
40399         * lib/trim.c: Likewise.
40400         * lib/trim.h: Likewise.
40401         * lib/trunc.c: Likewise.
40402         * lib/truncf.c: Likewise.
40403         * lib/truncl.c: Likewise.
40404         * lib/tsearch.c: Likewise.
40405         * lib/unicodeio.c: Likewise.
40406         * lib/unicodeio.h: Likewise.
40407         * lib/unistd--.h: Likewise.
40408         * lib/unistd-safer.h: Likewise.
40409         * lib/unistdio/ulc-fprintf.c: Likewise.
40410         * lib/unistdio/ulc-vfprintf.c: Likewise.
40411         * lib/unlinkdir.c: Likewise.
40412         * lib/unlinkdir.h: Likewise.
40413         * lib/unlocked-io.h: Likewise.
40414         * lib/unsetenv.c: Likewise.
40415         * lib/userspec.c: Likewise.
40416         * lib/utime.c: Likewise.
40417         * lib/utimecmp.c: Likewise.
40418         * lib/utimecmp.h: Likewise.
40419         * lib/utimens.c: Likewise.
40420         * lib/verify.h: Likewise.
40421         * lib/verror.c: Likewise.
40422         * lib/verror.h: Likewise.
40423         * lib/version-etc-fsf.c: Likewise.
40424         * lib/version-etc.c: Likewise.
40425         * lib/version-etc.h: Likewise.
40426         * lib/vfprintf.c: Likewise.
40427         * lib/vprintf.c: Likewise.
40428         * lib/vsprintf.c: Likewise.
40429         * lib/w32spawn.h: Likewise.
40430         * lib/wait-process.c: Likewise.
40431         * lib/wait-process.h: Likewise.
40432         * lib/wcwidth.c: Likewise.
40433         * lib/write-any-file.c: Likewise.
40434         * lib/xalloc-die.c: Likewise.
40435         * lib/xalloc.h: Likewise.
40436         * lib/xasprintf.c: Likewise.
40437         * lib/xgetcwd.c: Likewise.
40438         * lib/xgetcwd.h: Likewise.
40439         * lib/xgetdomainname.c: Likewise.
40440         * lib/xgetdomainname.h: Likewise.
40441         * lib/xgethostname.c: Likewise.
40442         * lib/xmalloc.c: Likewise.
40443         * lib/xmalloca.c: Likewise.
40444         * lib/xmalloca.h: Likewise.
40445         * lib/xmemcoll.c: Likewise.
40446         * lib/xnanosleep.c: Likewise.
40447         * lib/xreadlink.c: Likewise.
40448         * lib/xreadlink.h: Likewise.
40449         * lib/xsetenv.c: Likewise.
40450         * lib/xsetenv.h: Likewise.
40451         * lib/xstriconv.c: Likewise.
40452         * lib/xstriconv.h: Likewise.
40453         * lib/xstrndup.c: Likewise.
40454         * lib/xstrndup.h: Likewise.
40455         * lib/xstrtod.c: Likewise.
40456         * lib/xstrtod.h: Likewise.
40457         * lib/xstrtol-error.c: Likewise.
40458         * lib/xstrtol.c: Likewise.
40459         * lib/xstrtol.h: Likewise.
40460         * lib/xtime.h: Likewise.
40461         * lib/xvasprintf.c: Likewise.
40462         * lib/xvasprintf.h: Likewise.
40463         * lib/yesno.c: Likewise.
40464         * lib/yesno.h: Likewise.
40465         * posix-modules: Likewise.
40466         * tests/test-alloca-opt.c: Likewise.
40467         * tests/test-arcfour.c: Likewise.
40468         * tests/test-arctwo.c: Likewise.
40469         * tests/test-argmatch.c: Likewise.
40470         * tests/test-argp-2.sh: Likewise.
40471         * tests/test-argp.c: Likewise.
40472         * tests/test-arpa_inet.c: Likewise.
40473         * tests/test-array_list.c: Likewise.
40474         * tests/test-array_oset.c: Likewise.
40475         * tests/test-atexit.c: Likewise.
40476         * tests/test-avltree_list.c: Likewise.
40477         * tests/test-avltree_oset.c: Likewise.
40478         * tests/test-avltreehash_list.c: Likewise.
40479         * tests/test-base64.c: Likewise.
40480         * tests/test-binary-io.c: Likewise.
40481         * tests/test-byteswap.c: Likewise.
40482         * tests/test-c-ctype.c: Likewise.
40483         * tests/test-c-strcasecmp.c: Likewise.
40484         * tests/test-c-strcasestr.c: Likewise.
40485         * tests/test-c-strncasecmp.c: Likewise.
40486         * tests/test-c-strstr.c: Likewise.
40487         * tests/test-canonicalize-lgpl.c: Likewise.
40488         * tests/test-canonicalize.c: Likewise.
40489         * tests/test-carray_list.c: Likewise.
40490         * tests/test-ceilf.c: Likewise.
40491         * tests/test-ceill.c: Likewise.
40492         * tests/test-count-one-bits.c: Likewise.
40493         * tests/test-crc.c: Likewise.
40494         * tests/test-dirname.c: Likewise.
40495         * tests/test-fbufmode.c: Likewise.
40496         * tests/test-fcntl.c: Likewise.
40497         * tests/test-fflush.c: Likewise.
40498         * tests/test-floorf.c: Likewise.
40499         * tests/test-floorl.c: Likewise.
40500         * tests/test-fopen.c: Likewise.
40501         * tests/test-fprintf-posix.c: Likewise.
40502         * tests/test-fprintf-posix.h: Likewise.
40503         * tests/test-fpurge.c: Likewise.
40504         * tests/test-freadable.c: Likewise.
40505         * tests/test-freadahead.c: Likewise.
40506         * tests/test-freading.c: Likewise.
40507         * tests/test-freopen.c: Likewise.
40508         * tests/test-frexp.c: Likewise.
40509         * tests/test-frexpl.c: Likewise.
40510         * tests/test-fseek.c: Likewise.
40511         * tests/test-fseeko.c: Likewise.
40512         * tests/test-fseterr.c: Likewise.
40513         * tests/test-fstrcmp.c: Likewise.
40514         * tests/test-ftell.c: Likewise.
40515         * tests/test-ftello.c: Likewise.
40516         * tests/test-fwritable.c: Likewise.
40517         * tests/test-fwriting.c: Likewise.
40518         * tests/test-getaddrinfo.c: Likewise.
40519         * tests/test-getpass.c: Likewise.
40520         * tests/test-gettimeofday.c: Likewise.
40521         * tests/test-hmac-md5.c: Likewise.
40522         * tests/test-hmac-sha1.c: Likewise.
40523         * tests/test-iconv.c: Likewise.
40524         * tests/test-iconvme.c: Likewise.
40525         * tests/test-inttypes.c: Likewise.
40526         * tests/test-isnan.c: Likewise.
40527         * tests/test-isnanf.c: Likewise.
40528         * tests/test-isnanl-nolibm.c: Likewise.
40529         * tests/test-isnanl.c: Likewise.
40530         * tests/test-isnanl.h: Likewise.
40531         * tests/test-ldexpl.c: Likewise.
40532         * tests/test-linked_list.c: Likewise.
40533         * tests/test-linkedhash_list.c: Likewise.
40534         * tests/test-locale.c: Likewise.
40535         * tests/test-localename.c: Likewise.
40536         * tests/test-lock.c: Likewise.
40537         * tests/test-lseek.c: Likewise.
40538         * tests/test-malloca.c: Likewise.
40539         * tests/test-math.c: Likewise.
40540         * tests/test-mbscasecmp.c: Likewise.
40541         * tests/test-mbscasestr1.c: Likewise.
40542         * tests/test-mbscasestr2.c: Likewise.
40543         * tests/test-mbscasestr3.c: Likewise.
40544         * tests/test-mbscasestr4.c: Likewise.
40545         * tests/test-mbschr.c: Likewise.
40546         * tests/test-mbscspn.c: Likewise.
40547         * tests/test-mbsncasecmp.c: Likewise.
40548         * tests/test-mbspbrk.c: Likewise.
40549         * tests/test-mbspcasecmp.c: Likewise.
40550         * tests/test-mbsrchr.c: Likewise.
40551         * tests/test-mbsspn.c: Likewise.
40552         * tests/test-mbsstr1.c: Likewise.
40553         * tests/test-mbsstr2.c: Likewise.
40554         * tests/test-mbsstr3.c: Likewise.
40555         * tests/test-md5.c: Likewise.
40556         * tests/test-memmem.c: Likewise.
40557         * tests/test-netinet_in.c: Likewise.
40558         * tests/test-open.c: Likewise.
40559         * tests/test-printf-frexp.c: Likewise.
40560         * tests/test-printf-frexpl.c: Likewise.
40561         * tests/test-printf-posix.c: Likewise.
40562         * tests/test-printf-posix.h: Likewise.
40563         * tests/test-rbtree_list.c: Likewise.
40564         * tests/test-rbtree_oset.c: Likewise.
40565         * tests/test-rbtreehash_list.c: Likewise.
40566         * tests/test-read-file.c: Likewise.
40567         * tests/test-rijndael.c: Likewise.
40568         * tests/test-search.c: Likewise.
40569         * tests/test-signbit.c: Likewise.
40570         * tests/test-sleep.c: Likewise.
40571         * tests/test-snprintf-posix.c: Likewise.
40572         * tests/test-snprintf-posix.h: Likewise.
40573         * tests/test-snprintf.c: Likewise.
40574         * tests/test-sprintf-posix.c: Likewise.
40575         * tests/test-sprintf-posix.h: Likewise.
40576         * tests/test-stat-time.c: Likewise.
40577         * tests/test-stdbool.c: Likewise.
40578         * tests/test-stdint.c: Likewise.
40579         * tests/test-stdio.c: Likewise.
40580         * tests/test-stdlib.c: Likewise.
40581         * tests/test-stpncpy.c: Likewise.
40582         * tests/test-strcasestr.c: Likewise.
40583         * tests/test-striconv.c: Likewise.
40584         * tests/test-striconveh.c: Likewise.
40585         * tests/test-striconveha.c: Likewise.
40586         * tests/test-string.c: Likewise.
40587         * tests/test-sys_select.c: Likewise.
40588         * tests/test-sys_socket.c: Likewise.
40589         * tests/test-sys_stat.c: Likewise.
40590         * tests/test-sys_time.c: Likewise.
40591         * tests/test-sysexits.c: Likewise.
40592         * tests/test-time.c: Likewise.
40593         * tests/test-tls.c: Likewise.
40594         * tests/test-trunc.c: Likewise.
40595         * tests/test-truncf.c: Likewise.
40596         * tests/test-truncl.c: Likewise.
40597         * tests/test-unistd.c: Likewise.
40598         * tests/test-vasnprintf-posix.c: Likewise.
40599         * tests/test-vasnprintf-posix2.c: Likewise.
40600         * tests/test-vasnprintf.c: Likewise.
40601         * tests/test-vasprintf-posix.c: Likewise.
40602         * tests/test-vasprintf.c: Likewise.
40603         * tests/test-verify.c: Likewise.
40604         * tests/test-vfprintf-posix.c: Likewise.
40605         * tests/test-vprintf-posix.c: Likewise.
40606         * tests/test-vsnprintf-posix.c: Likewise.
40607         * tests/test-vsnprintf.c: Likewise.
40608         * tests/test-vsprintf-posix.c: Likewise.
40609         * tests/test-wchar.c: Likewise.
40610         * tests/test-wctype.c: Likewise.
40611         * tests/test-wcwidth.c: Likewise.
40612         * tests/test-xstrtol.c: Likewise.
40613         * tests/test-xvasprintf.c: Likewise.
40614         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40615         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40616         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40617         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40618         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40619         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40620         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40621         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40622         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40623         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40624         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40625         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40626         * tests/uniname/test-uninames.c: Likewise.
40627         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40628         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
40629         * tests/unistdio/test-u16-printf1.h: Likewise.
40630         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40631         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40632         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40633         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40634         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40635         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40636         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40637         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
40638         * tests/unistdio/test-u32-printf1.h: Likewise.
40639         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40640         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40641         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40642         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40643         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40644         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40645         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40646         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
40647         * tests/unistdio/test-u8-printf1.h: Likewise.
40648         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40649         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40650         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40651         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40652         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40653         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40654         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40655         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
40656         * tests/unistdio/test-ulc-printf1.h: Likewise.
40657         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40658         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40659         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40660         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40661         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40662         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40663         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40664         * tests/uniwidth/test-u16-width.c: Likewise.
40665         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40666         * tests/uniwidth/test-u32-width.c: Likewise.
40667         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40668         * tests/uniwidth/test-u8-width.c: Likewise.
40669         * tests/uniwidth/test-uc_width.c: Likewise.
40670         * config/srclist-update: Likewise.
40671         (fixlicense): Update to GPLv3+.
40672
40673         Change copyright notice from LGPLv2.1+ to LGPLv3+.
40674         * tests/test-tsearch.c: Change copyright notice.
40675
40676         Change copyright notice from LGPLv2.0+ to LGPLv3+.
40677         * lib/c-strcaseeq.h: Change copyright notice.
40678         * lib/streq.h: Likewise.
40679         * lib/uniconv.h: Likewise.
40680         * lib/uniconv/u-conv-from-enc.h: Likewise.
40681         * lib/uniconv/u-conv-to-enc.h: Likewise.
40682         * lib/uniconv/u-strconv-from-enc.h: Likewise.
40683         * lib/uniconv/u-strconv-to-enc.h: Likewise.
40684         * lib/uniconv/u16-conv-from-enc.c: Likewise.
40685         * lib/uniconv/u16-conv-to-enc.c: Likewise.
40686         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
40687         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
40688         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
40689         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
40690         * lib/uniconv/u32-conv-from-enc.c: Likewise.
40691         * lib/uniconv/u32-conv-to-enc.c: Likewise.
40692         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
40693         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
40694         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
40695         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
40696         * lib/uniconv/u8-conv-from-enc.c: Likewise.
40697         * lib/uniconv/u8-conv-to-enc.c: Likewise.
40698         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
40699         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
40700         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
40701         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
40702         * lib/uniname.h: Likewise.
40703         * lib/uniname/uniname.c: Likewise.
40704         * lib/unistdio.h: Likewise.
40705         * lib/unistdio/u-asnprintf.h: Likewise.
40706         * lib/unistdio/u-asprintf.h: Likewise.
40707         * lib/unistdio/u-printf-args.c: Likewise.
40708         * lib/unistdio/u-printf-args.h: Likewise.
40709         * lib/unistdio/u-printf-parse.h: Likewise.
40710         * lib/unistdio/u-snprintf.h: Likewise.
40711         * lib/unistdio/u-sprintf.h: Likewise.
40712         * lib/unistdio/u-vasprintf.h: Likewise.
40713         * lib/unistdio/u-vsnprintf.h: Likewise.
40714         * lib/unistdio/u-vsprintf.h: Likewise.
40715         * lib/unistdio/u16-asnprintf.c: Likewise.
40716         * lib/unistdio/u16-asprintf.c: Likewise.
40717         * lib/unistdio/u16-printf-parse.c: Likewise.
40718         * lib/unistdio/u16-snprintf.c: Likewise.
40719         * lib/unistdio/u16-sprintf.c: Likewise.
40720         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
40721         * lib/unistdio/u16-u16-asprintf.c: Likewise.
40722         * lib/unistdio/u16-u16-snprintf.c: Likewise.
40723         * lib/unistdio/u16-u16-sprintf.c: Likewise.
40724         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
40725         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
40726         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
40727         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
40728         * lib/unistdio/u16-vasnprintf.c: Likewise.
40729         * lib/unistdio/u16-vasprintf.c: Likewise.
40730         * lib/unistdio/u16-vsnprintf.c: Likewise.
40731         * lib/unistdio/u16-vsprintf.c: Likewise.
40732         * lib/unistdio/u32-asnprintf.c: Likewise.
40733         * lib/unistdio/u32-asprintf.c: Likewise.
40734         * lib/unistdio/u32-printf-parse.c: Likewise.
40735         * lib/unistdio/u32-snprintf.c: Likewise.
40736         * lib/unistdio/u32-sprintf.c: Likewise.
40737         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
40738         * lib/unistdio/u32-u32-asprintf.c: Likewise.
40739         * lib/unistdio/u32-u32-snprintf.c: Likewise.
40740         * lib/unistdio/u32-u32-sprintf.c: Likewise.
40741         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
40742         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
40743         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
40744         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
40745         * lib/unistdio/u32-vasnprintf.c: Likewise.
40746         * lib/unistdio/u32-vasprintf.c: Likewise.
40747         * lib/unistdio/u32-vsnprintf.c: Likewise.
40748         * lib/unistdio/u32-vsprintf.c: Likewise.
40749         * lib/unistdio/u8-asnprintf.c: Likewise.
40750         * lib/unistdio/u8-asprintf.c: Likewise.
40751         * lib/unistdio/u8-printf-parse.c: Likewise.
40752         * lib/unistdio/u8-snprintf.c: Likewise.
40753         * lib/unistdio/u8-sprintf.c: Likewise.
40754         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
40755         * lib/unistdio/u8-u8-asprintf.c: Likewise.
40756         * lib/unistdio/u8-u8-snprintf.c: Likewise.
40757         * lib/unistdio/u8-u8-sprintf.c: Likewise.
40758         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
40759         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
40760         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
40761         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
40762         * lib/unistdio/u8-vasnprintf.c: Likewise.
40763         * lib/unistdio/u8-vasprintf.c: Likewise.
40764         * lib/unistdio/u8-vsnprintf.c: Likewise.
40765         * lib/unistdio/u8-vsprintf.c: Likewise.
40766         * lib/unistdio/ulc-asnprintf.c: Likewise.
40767         * lib/unistdio/ulc-asprintf.c: Likewise.
40768         * lib/unistdio/ulc-printf-parse.c: Likewise.
40769         * lib/unistdio/ulc-snprintf.c: Likewise.
40770         * lib/unistdio/ulc-sprintf.c: Likewise.
40771         * lib/unistdio/ulc-vasnprintf.c: Likewise.
40772         * lib/unistdio/ulc-vasprintf.c: Likewise.
40773         * lib/unistdio/ulc-vsnprintf.c: Likewise.
40774         * lib/unistdio/ulc-vsprintf.c: Likewise.
40775         * lib/unistr.h: Likewise.
40776         * lib/unistr/u-cpy-alloc.h: Likewise.
40777         * lib/unistr/u-cpy.h: Likewise.
40778         * lib/unistr/u-endswith.h: Likewise.
40779         * lib/unistr/u-move.h: Likewise.
40780         * lib/unistr/u-set.h: Likewise.
40781         * lib/unistr/u-startswith.h: Likewise.
40782         * lib/unistr/u-stpcpy.h: Likewise.
40783         * lib/unistr/u-stpncpy.h: Likewise.
40784         * lib/unistr/u-strcat.h: Likewise.
40785         * lib/unistr/u-strcpy.h: Likewise.
40786         * lib/unistr/u-strcspn.h: Likewise.
40787         * lib/unistr/u-strdup.h: Likewise.
40788         * lib/unistr/u-strlen.h: Likewise.
40789         * lib/unistr/u-strncat.h: Likewise.
40790         * lib/unistr/u-strncpy.h: Likewise.
40791         * lib/unistr/u-strnlen.h: Likewise.
40792         * lib/unistr/u-strpbrk.h: Likewise.
40793         * lib/unistr/u-strspn.h: Likewise.
40794         * lib/unistr/u-strstr.h: Likewise.
40795         * lib/unistr/u-strtok.h: Likewise.
40796         * lib/unistr/u16-check.c: Likewise.
40797         * lib/unistr/u16-chr.c: Likewise.
40798         * lib/unistr/u16-cmp.c: Likewise.
40799         * lib/unistr/u16-cpy-alloc.c: Likewise.
40800         * lib/unistr/u16-cpy.c: Likewise.
40801         * lib/unistr/u16-endswith.c: Likewise.
40802         * lib/unistr/u16-mblen.c: Likewise.
40803         * lib/unistr/u16-mbsnlen.c: Likewise.
40804         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40805         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40806         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40807         * lib/unistr/u16-mbtouc.c: Likewise.
40808         * lib/unistr/u16-mbtoucr.c: Likewise.
40809         * lib/unistr/u16-move.c: Likewise.
40810         * lib/unistr/u16-next.c: Likewise.
40811         * lib/unistr/u16-prev.c: Likewise.
40812         * lib/unistr/u16-set.c: Likewise.
40813         * lib/unistr/u16-startswith.c: Likewise.
40814         * lib/unistr/u16-stpcpy.c: Likewise.
40815         * lib/unistr/u16-stpncpy.c: Likewise.
40816         * lib/unistr/u16-strcat.c: Likewise.
40817         * lib/unistr/u16-strchr.c: Likewise.
40818         * lib/unistr/u16-strcmp.c: Likewise.
40819         * lib/unistr/u16-strcpy.c: Likewise.
40820         * lib/unistr/u16-strcspn.c: Likewise.
40821         * lib/unistr/u16-strdup.c: Likewise.
40822         * lib/unistr/u16-strlen.c: Likewise.
40823         * lib/unistr/u16-strmblen.c: Likewise.
40824         * lib/unistr/u16-strmbtouc.c: Likewise.
40825         * lib/unistr/u16-strncat.c: Likewise.
40826         * lib/unistr/u16-strncmp.c: Likewise.
40827         * lib/unistr/u16-strncpy.c: Likewise.
40828         * lib/unistr/u16-strnlen.c: Likewise.
40829         * lib/unistr/u16-strpbrk.c: Likewise.
40830         * lib/unistr/u16-strrchr.c: Likewise.
40831         * lib/unistr/u16-strspn.c: Likewise.
40832         * lib/unistr/u16-strstr.c: Likewise.
40833         * lib/unistr/u16-strtok.c: Likewise.
40834         * lib/unistr/u16-to-u32.c: Likewise.
40835         * lib/unistr/u16-to-u8.c: Likewise.
40836         * lib/unistr/u16-uctomb-aux.c: Likewise.
40837         * lib/unistr/u16-uctomb.c: Likewise.
40838         * lib/unistr/u32-check.c: Likewise.
40839         * lib/unistr/u32-chr.c: Likewise.
40840         * lib/unistr/u32-cmp.c: Likewise.
40841         * lib/unistr/u32-cpy-alloc.c: Likewise.
40842         * lib/unistr/u32-cpy.c: Likewise.
40843         * lib/unistr/u32-endswith.c: Likewise.
40844         * lib/unistr/u32-mblen.c: Likewise.
40845         * lib/unistr/u32-mbsnlen.c: Likewise.
40846         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40847         * lib/unistr/u32-mbtouc.c: Likewise.
40848         * lib/unistr/u32-mbtoucr.c: Likewise.
40849         * lib/unistr/u32-move.c: Likewise.
40850         * lib/unistr/u32-next.c: Likewise.
40851         * lib/unistr/u32-prev.c: Likewise.
40852         * lib/unistr/u32-set.c: Likewise.
40853         * lib/unistr/u32-startswith.c: Likewise.
40854         * lib/unistr/u32-stpcpy.c: Likewise.
40855         * lib/unistr/u32-stpncpy.c: Likewise.
40856         * lib/unistr/u32-strcat.c: Likewise.
40857         * lib/unistr/u32-strchr.c: Likewise.
40858         * lib/unistr/u32-strcmp.c: Likewise.
40859         * lib/unistr/u32-strcpy.c: Likewise.
40860         * lib/unistr/u32-strcspn.c: Likewise.
40861         * lib/unistr/u32-strdup.c: Likewise.
40862         * lib/unistr/u32-strlen.c: Likewise.
40863         * lib/unistr/u32-strmblen.c: Likewise.
40864         * lib/unistr/u32-strmbtouc.c: Likewise.
40865         * lib/unistr/u32-strncat.c: Likewise.
40866         * lib/unistr/u32-strncmp.c: Likewise.
40867         * lib/unistr/u32-strncpy.c: Likewise.
40868         * lib/unistr/u32-strnlen.c: Likewise.
40869         * lib/unistr/u32-strpbrk.c: Likewise.
40870         * lib/unistr/u32-strrchr.c: Likewise.
40871         * lib/unistr/u32-strspn.c: Likewise.
40872         * lib/unistr/u32-strstr.c: Likewise.
40873         * lib/unistr/u32-strtok.c: Likewise.
40874         * lib/unistr/u32-to-u16.c: Likewise.
40875         * lib/unistr/u32-to-u8.c: Likewise.
40876         * lib/unistr/u32-uctomb.c: Likewise.
40877         * lib/unistr/u8-check.c: Likewise.
40878         * lib/unistr/u8-chr.c: Likewise.
40879         * lib/unistr/u8-cmp.c: Likewise.
40880         * lib/unistr/u8-cpy-alloc.c: Likewise.
40881         * lib/unistr/u8-cpy.c: Likewise.
40882         * lib/unistr/u8-endswith.c: Likewise.
40883         * lib/unistr/u8-mblen.c: Likewise.
40884         * lib/unistr/u8-mbsnlen.c: Likewise.
40885         * lib/unistr/u8-mbtouc-aux.c: Likewise.
40886         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40887         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40888         * lib/unistr/u8-mbtouc.c: Likewise.
40889         * lib/unistr/u8-mbtoucr.c: Likewise.
40890         * lib/unistr/u8-move.c: Likewise.
40891         * lib/unistr/u8-next.c: Likewise.
40892         * lib/unistr/u8-prev.c: Likewise.
40893         * lib/unistr/u8-set.c: Likewise.
40894         * lib/unistr/u8-startswith.c: Likewise.
40895         * lib/unistr/u8-stpcpy.c: Likewise.
40896         * lib/unistr/u8-stpncpy.c: Likewise.
40897         * lib/unistr/u8-strcat.c: Likewise.
40898         * lib/unistr/u8-strchr.c: Likewise.
40899         * lib/unistr/u8-strcmp.c: Likewise.
40900         * lib/unistr/u8-strcpy.c: Likewise.
40901         * lib/unistr/u8-strcspn.c: Likewise.
40902         * lib/unistr/u8-strdup.c: Likewise.
40903         * lib/unistr/u8-strlen.c: Likewise.
40904         * lib/unistr/u8-strmblen.c: Likewise.
40905         * lib/unistr/u8-strmbtouc.c: Likewise.
40906         * lib/unistr/u8-strncat.c: Likewise.
40907         * lib/unistr/u8-strncmp.c: Likewise.
40908         * lib/unistr/u8-strncpy.c: Likewise.
40909         * lib/unistr/u8-strnlen.c: Likewise.
40910         * lib/unistr/u8-strpbrk.c: Likewise.
40911         * lib/unistr/u8-strrchr.c: Likewise.
40912         * lib/unistr/u8-strspn.c: Likewise.
40913         * lib/unistr/u8-strstr.c: Likewise.
40914         * lib/unistr/u8-strtok.c: Likewise.
40915         * lib/unistr/u8-to-u16.c: Likewise.
40916         * lib/unistr/u8-to-u32.c: Likewise.
40917         * lib/unistr/u8-uctomb-aux.c: Likewise.
40918         * lib/unistr/u8-uctomb.c: Likewise.
40919         * lib/unitypes.h: Likewise.
40920         * lib/uniwidth.h: Likewise.
40921         * lib/uniwidth/cjk.h: Likewise.
40922         * lib/uniwidth/u16-strwidth.c: Likewise.
40923         * lib/uniwidth/u16-width.c: Likewise.
40924         * lib/uniwidth/u32-strwidth.c: Likewise.
40925         * lib/uniwidth/u32-width.c: Likewise.
40926         * lib/uniwidth/u8-strwidth.c: Likewise.
40927         * lib/uniwidth/u8-width.c: Likewise.
40928         * lib/uniwidth/width.c: Likewise.
40929
40930 2007-10-07  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
40933         The file is still under LGPL (see modules/inttypes).
40934
40935 2007-10-06  Bruno Haible  <bruno@clisp.org>
40936
40937         * modules/trunc (Dependencies): Add 'extensions'.
40938         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
40939         Reported by Ben Pfaff <blp@gnu.org>.
40940
40941 2007-10-06  Bruno Haible  <bruno@clisp.org>
40942
40943         * modules/freopen-tests: New file.
40944         * tests/test-freopen.c: New file.
40945
40946         * modules/fopen-tests: New file.
40947         * tests/test-fopen.c: New file.
40948
40949         * modules/fopen: New file.
40950         * lib/fopen.c: New file.
40951         * m4/fopen.m4: New file.
40952         * modules/freopen: New file.
40953         * lib/freopen.c: New file.
40954         * m4/freopen.m4: New file.
40955         * lib/stdio.in.h (fopen, freopen): New declarations.
40956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
40957         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40958         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
40959         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
40960         * doc/functions/fopen.texi: Mention the 'fopen' module.
40961         * doc/functions/freopen.texi: Mention the 'freopen' module.
40962
40963 2007-10-06  Bruno Haible  <bruno@clisp.org>
40964
40965         * modules/open-tests: New file.
40966         * tests/test-open.c: New file.
40967
40968         * modules/open: New file.
40969         * lib/open.c: New file.
40970         * m4/open.m4: New file.
40971         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
40972         lib/open.c does.
40973         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
40974         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
40975         macros.
40976         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
40977         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
40978         REPLACE_OPEN.
40979         * doc/functions/open.texi: Mention the 'open' module.
40980
40981 2007-10-04  Bruno Haible  <bruno@clisp.org>
40982
40983         * modules/ceill-tests: New file.
40984         * tests/test-ceill.c: New file.
40985
40986         * modules/ceill: New file.
40987         * lib/ceill.c: Replace entire file.
40988         * m4/ceill.m4: New file.
40989         * lib/math.in.h (ceill): Replace declaration.
40990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
40991         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
40992         * doc/functions/ceill.texi: Mention the 'ceill' module.
40993         * modules/mathl (Files): Remove lib/ceill.c.
40994         (Depends-on): Add ceill.
40995
40996 2007-10-04  Bruno Haible  <bruno@clisp.org>
40997
40998         * modules/ceilf-tests: New file.
40999         * tests/test-ceilf.c: New file.
41000
41001         * modules/ceilf: New file.
41002         * lib/ceil.c: New file.
41003         * lib/ceilf.c: New file.
41004         * m4/ceilf.m4: New file.
41005         * lib/math.in.h (ceilf): New declaration.
41006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
41007         HAVE_DECL_CEILF.
41008         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
41009         HAVE_DECL_CEILF.
41010         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
41011
41012 2007-10-04  Bruno Haible  <bruno@clisp.org>
41013
41014         * modules/floorl-tests: New file.
41015         * tests/test-floorl.c: New file.
41016
41017         * modules/floorl: New file.
41018         * lib/floorl.c: Replace entire file.
41019         * m4/floorl.m4: New file.
41020         * lib/math.in.h (floorl): Replace declaration.
41021         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
41022         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
41023         * doc/functions/floorl.texi: Mention the 'floorl' module.
41024         * modules/mathl (Files): Remove lib/floorl.c.
41025         (Depends-on): Add floorl.
41026
41027 2007-10-04  Bruno Haible  <bruno@clisp.org>
41028
41029         * modules/floorf-tests: New file.
41030         * tests/test-floorf.c: New file.
41031
41032         * modules/floorf: New file.
41033         * lib/floor.c: New file.
41034         * lib/floorf.c: New file.
41035         * m4/floorf.m4: New file.
41036         * lib/math.in.h (floorf): New declaration.
41037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
41038         HAVE_DECL_FLOORF.
41039         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
41040         HAVE_DECL_FLOORF.
41041         * doc/functions/floorf.texi: Mention the 'floorf' module.
41042
41043 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
41044             Bruno Haible  <bruno@clisp.org>
41045
41046         Advertise for the Git server instead of the CVS server.
41047         * doc/gnulib-intro.texi (Steady Development): Mention the Git
41048         repository instead of the CVS one.
41049         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
41050         about all VCS systems generically.
41051         * doc/gnulib.texi (Introduction): Capitalize `Git'.
41052
41053 2007-10-04  Bruno Haible  <bruno@clisp.org>
41054
41055         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
41056         means.
41057         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
41058
41059 2007-10-04  Bruno Haible  <bruno@clisp.org>
41060
41061         * modules/truncl-tests: New file.
41062         * tests/test-truncl.c: New file.
41063
41064         * modules/truncl: New file.
41065         * lib/truncl.c: New file.
41066         * m4/truncl.m4: New file.
41067         * lib/math.in.h (truncl): New declaration.
41068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
41069         HAVE_DECL_TRUNCL.
41070         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
41071         HAVE_DECL_TRUNCL.
41072         * doc/functions/truncl.texi: Mention the 'truncl' module.
41073
41074 2007-10-04  Bruno Haible  <bruno@clisp.org>
41075
41076         * modules/truncf-tests: New file.
41077         * tests/test-truncf.c: New file.
41078
41079         * modules/truncf: New file.
41080         * lib/trunc.c: Make paramerizable through USE_* macros.
41081         * lib/truncf.c: New file.
41082         * m4/truncf.m4: New file.
41083         * lib/math.in.h (truncf): New declaration.
41084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
41085         HAVE_DECL_TRUNCF.
41086         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
41087         HAVE_DECL_TRUNCF.
41088         * doc/functions/truncf.texi: Mention the 'truncf' module.
41089
41090 2007-10-03  Bruno Haible  <bruno@clisp.org>
41091
41092         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41093         augmentation also for tests modules.
41094         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
41095         * modules/atexit-tests (Makefile.am): Likewise.
41096         * modules/binary-io-tests (Makefile.am): Likewise.
41097         * modules/c-strcase-tests (Makefile.am): Likewise.
41098         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
41099         * modules/canonicalize-tests (Makefile.am): Likewise.
41100         * modules/closein-tests (Makefile.am): Likewise.
41101         * modules/fprintf-posix-tests (Makefile.am): Likewise.
41102         * modules/freadahead-tests (Makefile.am): Likewise.
41103         * modules/fseek-tests (Makefile.am): Likewise.
41104         * modules/fseeko-tests (Makefile.am): Likewise.
41105         * modules/ftell-tests (Makefile.am): Likewise.
41106         * modules/ftello-tests (Makefile.am): Likewise.
41107         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
41108         * modules/isnanl-tests (Makefile.am): Likewise.
41109         * modules/lseek-tests (Makefile.am): Likewise.
41110         * modules/mbscasecmp-tests (Makefile.am): Likewise.
41111         * modules/mbscasestr-tests (Makefile.am): Likewise.
41112         * modules/mbschr-tests (Makefile.am): Likewise.
41113         * modules/mbscspn-tests (Makefile.am): Likewise.
41114         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
41115         * modules/mbspbrk-tests (Makefile.am): Likewise.
41116         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
41117         * modules/mbsrchr-tests (Makefile.am): Likewise.
41118         * modules/mbsspn-tests (Makefile.am): Likewise.
41119         * modules/mbsstr-tests (Makefile.am): Likewise.
41120         * modules/printf-posix-tests (Makefile.am): Likewise.
41121         * modules/snprintf-posix-tests (Makefile.am): Likewise.
41122         * modules/sprintf-posix-tests (Makefile.am): Likewise.
41123         * modules/tsearch-tests (Makefile.am): Likewise.
41124         * modules/uniname/uniname-tests (Makefile.am): Likewise.
41125         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
41126         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
41127         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
41128         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
41129         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
41130         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
41131         * modules/vprintf-posix-tests (Makefile.am): Likewise.
41132         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
41133         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
41134         * modules/xstrtoimax-tests (Makefile.am): Likewise.
41135         * modules/xstrtol-tests (Makefile.am): Likewise.
41136         * modules/xstrtoumax-tests (Makefile.am): Likewise.
41137         * modules/yesno-tests (Makefile.am): Likewise.
41138
41139 2007-10-03  Bruno Haible  <bruno@clisp.org>
41140
41141         * modules/trunc-tests: New file.
41142         * tests/test-trunc.c: New file.
41143
41144         * modules/trunc: New file.
41145         * lib/trunc.c: New file.
41146         * m4/trunc.m4: New file.
41147         * lib/math.in.h (trunc): New declaration.
41148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
41149         HAVE_DECL_TRUNC.
41150         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
41151         HAVE_DECL_TRUNC.
41152         * doc/functions/trunc.texi: Mention the 'trunc' module.
41153
41154 2007-10-03  Bruno Haible  <bruno@clisp.org>
41155
41156         * tests/test-fpending.c: New file, mostly copied
41157         from coreutils/lib/t-fpending.c.
41158         * modules/fpending-tests: New file.
41159
41160 2007-10-03  Bruno Haible  <bruno@clisp.org>
41161
41162         Port the stdio extensions to QNX (untested).
41163         * lib/fseterr.c (fseterr): Add support for QNX.
41164         * lib/fbufmode.c (fbufmode): Likewise.
41165         * lib/freadable.c (freadable): Likewise.
41166         * lib/fwritable.c (fwritable): Likewise.
41167         * lib/freading.c (freading): Likewise.
41168         * lib/fwriting.c (fwriting): Likewise.
41169         * lib/freadahead.c (freadahed): Likewise.
41170         * lib/fpurge.c (fpurge): Likewise.
41171         * lib/fseeko.c (rpl_fseeko): Likewise.
41172
41173 2007-10-03  Bruno Haible  <bruno@clisp.org>
41174             Jim Meyering  <jim@meyering.net>
41175             Eric Blake  <ebb9@byu.net>
41176
41177         * doc/relocatable.texi: Use @command instead of @program.
41178
41179 2007-10-02  Jim Meyering  <jim@meyering.net>
41180
41181         Perform one more "_.h" -> ".in.h" substitution.
41182         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
41183         instead of unistd_.h here, too.
41184
41185 2007-10-01  Bruno Haible  <bruno@clisp.org>
41186
41187         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
41188         Needed for the alloca-opt module.
41189
41190 2007-09-30  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/alloca.in.h: Renamed from lib/alloca_.h.
41193         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
41194         alloca_.h.
41195         * lib/argz.in.h: Renamed from lib/argz_.h.
41196         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
41197         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
41198         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
41199         byteswap_.h.
41200         * lib/dirent.in.h: Renamed from lib/dirent_.h.
41201         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
41202         dirent_.h.
41203         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
41204         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
41205         fcntl_.h.
41206         * lib/float.in.h: Renamed from lib/float_.h.
41207         * modules/float (Files, Makefile.am): Use float.in.h instead of
41208         float_.h.
41209         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
41210         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
41211         fnmatch_.h.
41212         * lib/getopt.in.h: Renamed from lib/getopt_.h.
41213         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
41214         getopt_.h.
41215         * lib/glob.in.h: Renamed from lib/glob_.h.
41216         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
41217         * lib/iconv.in.h: Renamed from lib/iconv_.h.
41218         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
41219         iconv_.h.
41220         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
41221         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
41222         inttypes_.h.
41223         * lib/locale.in.h: Renamed from lib/locale_.h.
41224         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
41225         locale_.h.
41226         * lib/math.in.h: Renamed from lib/math_.h.
41227         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
41228         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
41229         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
41230         of netinet_in_.h. Add dependency.
41231         * lib/poll.in.h: Renamed from lib/poll_.h.
41232         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
41233         * lib/search.in.h: Renamed from lib/search_.h.
41234         * modules/search (Files, Makefile.am): Use search.in.h instead of
41235         search_.h.
41236         * lib/signal.in.h: Renamed from lib/signal_.h.
41237         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
41238         _signal.h.
41239         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
41240         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
41241         stdbool_.h.
41242         * lib/stdint.in.h: Renamed from lib/stdint_.h.
41243         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
41244         stdint_.h.
41245         * lib/stdio.in.h: Renamed from lib/stdio_.h.
41246         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
41247         stdio_.h.
41248         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
41249         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
41250         stdlib_.h.
41251         * lib/string.in.h: Renamed from lib/string_.h.
41252         * modules/string (Files, Makefile.am): Use string.in.h instead of
41253         string_.h.
41254         * doc/gnulib-tool.texi (Initial import): Update.
41255         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
41256         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
41257         of sys_select_.h. Add dependency.
41258         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
41259         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
41260         of sys_socket_.h.
41261         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
41262         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
41263         sys_stat_.h.
41264         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
41265         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
41266         sys_time_.h.
41267         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
41268         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
41269         sysexits_.h.
41270         * lib/time.in.h: Renamed from lib/time_.h.
41271         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
41272         * lib/unistd.in.h: Renamed from lib/unistd_.h.
41273         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
41274         unistd_.h.
41275         * lib/wchar.in.h: Renamed from lib/wchar_.h.
41276         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
41277         wchar_.h.
41278         * lib/wctype.in.h: Renamed from lib/wctype_.h.
41279         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
41280         wctype_.h.
41281         * build-aux/bootstrap (slurp): Update.
41282         * lib/.cppi-disable: Update.
41283
41284 2007-09-30  Bruno Haible  <bruno@clisp.org>
41285
41286         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
41287         Needed on BeOS.
41288
41289 2007-09-30  Bruno Haible  <bruno@clisp.org>
41290
41291         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
41292
41293 2007-09-29  Bruno Haible  <bruno@clisp.org>
41294
41295         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
41296
41297 2007-09-29  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
41300         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
41301         * build-aux/install-reloc: Compile also areadlink.c.
41302         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
41303
41304 2007-09-29  Bruno Haible  <bruno@clisp.org>
41305
41306         * gnulib-tool (func_emit_initmacro_done): Indentation.
41307
41308 2007-09-29  Bruno Haible  <bruno@clisp.org>
41309
41310         * README: Add CVS checkout update instructions.
41311         Info from Bob Proulx <bob@proulx.com>.
41312
41313 2007-09-28  Eric Blake  <ebb9@byu.net>
41314
41315         Provide move-if-change.
41316         * build-aux/move-if-change: New file, based on best practice
41317         rather than any canonical upstream location.
41318
41319 2007-09-28  Jim Meyering  <jim@meyering.net>
41320
41321         Fix canonicalize loop-detection corner case.
41322         Do not attempt to stat the symlink values stored via seen_triple.
41323         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41324         on linux-2.6.18, (but not 2.6.22).
41325         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
41326         triple_compare.  The former compares dev,ino,filename, while the latter
41327         would actually stat dirname(filename) when dev and ino were equal.
41328         * lib/hash-triple.c: Install <string.h>.
41329         (STREQ): Define.
41330         (triple_compare_ino_str): New function.
41331         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41332
41333 2007-09-28  Eric Blake  <ebb9@byu.net>
41334
41335         Enforce that AC_REPLACE_FUNCS files exist.
41336         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
41337         override check for typos.
41338
41339         Fix test-closein on Solaris 10.
41340         * tests/test-closein.c (main): Don't assume stdin can be inherited
41341         closed on all systems.
41342         * tests/test-closein.sh: Likewise.
41343         Reported by Piotr Tarnowski.
41344
41345 2007-09-28  Jim Meyering  <jim@meyering.net>
41346
41347         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
41348
41349 2007-09-27  Jim Meyering  <jim@meyering.net>
41350
41351         canonicalize: Avoid a false-positive cycle failure.
41352         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
41353         Sort.  Remove cycle-check.
41354         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
41355         not cycle-check.h.
41356         (seen_triple): New function.
41357         (canonicalize_filename_mode): Use it instead of cycle-check.
41358         * tests/test-canonicalize.c: Add a test for this bug.
41359         * tests/test-canonicalize.sh: Set up and run the test.
41360
41361         New module, file-set, from coreutils.
41362         * modules/file-set: Define it.
41363         * lib/file-set.c, lib/file-set.h: Implement.
41364
41365         New module, hash-triple, from coreutils.
41366         * modules/hash-triple: Define it.
41367         * lib/hash-triple.c, lib/hash-triple.h: Implement.
41368
41369 2007-09-25  Eric Blake  <ebb9@byu.net>
41370
41371         Fix strerror on Interix.
41372         * lib/string_.h (strerror): Declare replacement.
41373         * doc/functions/strerror.texi (strerror): Document the Interix
41374         shortcoming.
41375         * modules/string (Makefile.am): Support new hooks.
41376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
41377         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
41378         gl_FUNC_STRERROR_SEPARATE.
41379         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
41380         * lib/strerror.c (rpl_strerror): Provide replacement.
41381         * modules/strerror (Depends-on): Add string.
41382         (configure.ac): Detect use of module.
41383         * tests/test-strerror.c: New file.
41384         * modules/strerror-tests: New test module.
41385         * modules/argp (Depends-on): Add strerror.
41386         * modules/error (Depends-on): Likewise.
41387         Reported by Martin Koeppe.
41388
41389 2007-09-24  Bruno Haible  <bruno@clisp.org>
41390
41391         * README: Update git instructions.
41392
41393 2007-09-24  Eric Blake  <ebb9@byu.net>
41394
41395         Revert fpending breakage from 2007-09-08.
41396         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
41397         __fpending.c.
41398
41399 2007-09-24  Jim Meyering  <jim@meyering.net>
41400
41401         filenamecat.c: Add a test.
41402         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
41403         showing how the function works when DIR is the empty string.
41404
41405 2007-09-21  Simon Josefsson  <simon@josefsson.org>
41406
41407         * tests/test-canonicalize.sh: Turn on executable bit.
41408
41409 2007-09-19  Eric Blake  <ebb9@byu.net>
41410
41411         * README: Update CVS instructions.
41412
41413 2007-09-18  Bruno Haible  <bruno@clisp.org>
41414
41415         * modules/areadlink: New file.
41416         * lib/areadlink.h (areadlink): New declaration.
41417         * lib/areadlink.c: New file, based on lib/xreadlink.c.
41418
41419 2007-09-17  Jim Meyering  <jim@meyering.net>
41420
41421         * lib/savewd.c (ESTALE) [!defined]: Define.
41422         Reported to be required on Interix by Martin Koeppe.
41423
41424 2007-09-17  Bruno Haible  <bruno@clisp.org>
41425
41426         * gnulib-tool (func_version): Use $version.
41427
41428 2007-09-16  Bruno Haible  <bruno@clisp.org>
41429
41430         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
41431         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
41432         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
41433         Reported by Greg Schafer <gschafer@zip.com.au>.
41434
41435 2007-09-15  Bruno Haible  <bruno@clisp.org>
41436
41437         * gnulib-tool (sed): Try a little harder to make bash understand the
41438         alias.
41439         Reported by Bruce Korb <bruce.korb@gmail.com>.
41440
41441 2007-09-13  Eric Blake  <ebb9@byu.net>
41442
41443         * ChangeLog: Remove conflict markers.
41444
41445 2007-09-13  Simon Josefsson  <simon@josefsson.org>
41446
41447         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
41448         Reported by Bruno Haible <bruno@clisp.org>.
41449
41450 2007-09-12  Bruno Haible  <bruno@clisp.org>
41451
41452         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
41453         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
41454         is not defined.
41455
41456 2007-09-12  Eric Blake  <ebb9@byu.net>
41457
41458         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
41459         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
41460         Autoconf definition.
41461         * modules/euidaccess (Depends-on): Add extensions, for
41462         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
41463         * modules/fnmatch (Depends-on): Likewise.
41464         * modules/getaddrinfo (Depends-on): Likewise.
41465         * modules/getdelim (Depends-on): Likewise.
41466         * modules/getline (Depends-on): Likewise.
41467         * modules/getsubopt (Depends-on): Likewise.
41468         * modules/gettext (Depends-on): Likewise.
41469         * modules/group-member (Depends-on): Likewise.
41470         * modules/mbchar (Depends-on): Likewise.
41471         * modules/memmem (Depends-on): Likewise.
41472         * modules/mempcpy (Depends-on): Likewise.
41473         * modules/memrchr (Depends-on): Likewise.
41474         * modules/pagealign_alloc (Depends-on): Likewise.
41475         * modules/readutmp (Depends-on): Likewise.
41476         * modules/stpcpy (Depends-on): Likewise.
41477         * modules/stpncpy (Depends-on): Likewise.
41478         * modules/strchrnul (Depends-on): Likewise.
41479         * modules/strndup (Depends-on): Likewise.
41480         * modules/strsep (Depends-on): Likewise.
41481         * modules/strverscmp (Depends-on): Likewise.
41482         * modules/vasprintf (Depends-on): Likewise.
41483         * modules/wcwidth (Depends-on): Likewise.
41484         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
41485         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
41486         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
41487         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
41488         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41489         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41490         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
41491         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41492         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
41493         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
41494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41495         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
41496         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
41497         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41498         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
41499         * m4/readutmp.m4 (gl_READUTMP): Likewise.
41500         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41501         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
41502         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41503         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
41504         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41505         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
41506         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
41507         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
41508         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
41509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41510         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
41511         so that lock.m4 can be used in gettext without extensions module.
41512
41513 2007-09-11  Bruno Haible  <bruno@clisp.org>
41514
41515         * m4/isc-posix.m4: Remove file.
41516         Suggested by Eric Blake.
41517
41518 2007-09-11  Eric Blake  <ebb9@byu.net>
41519
41520         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
41521
41522 2007-09-10  Bruno Haible  <bruno@clisp.org>
41523
41524         * posix-modules: Fix typo in error message.
41525         Reported by Matt <mkraai@beckman.com>.
41526
41527 2007-09-09  Bruno Haible  <bruno@clisp.org>
41528
41529         * doc/functions/getdelim.texi: Update list of platforms lacking the
41530         function.
41531         * doc/functions/getline.texi: Likewise.
41532
41533 2007-09-09  Jim Meyering  <jim@meyering.net>
41534
41535         * lib/hash.c (hash_initialize): Detect calloc failure.
41536         Reported by Bruno Haible.
41537
41538 2007-09-09  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
41541         malloc or realloc fails.
41542
41543 2007-09-09  Bruno Haible  <bruno@clisp.org>
41544
41545         * modules/getcwd (Depends-on): Add malloc-posix.
41546         * modules/glob (Depends-on): Likewise.
41547         * modules/putenv (Depends-on): Likewise.
41548         * modules/strdup (Depends-on): Likewise.
41549         * modules/getdelim (Depends-on): Add realloc-posix.
41550         * modules/read-file (Depends-on): Likewise.
41551
41552 2007-09-09  Bruno Haible  <bruno@clisp.org>
41553
41554         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
41555         (gl_FUNC_MALLOC_POSIX): Require it.
41556         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
41557         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
41558         * modules/realloc (Files): Add m4/malloc.m4.
41559         * modules/calloc (Files): Likewise.
41560
41561 2007-09-09  Bruno Haible  <bruno@clisp.org>
41562
41563         * modules/malloc-posix: New file.
41564         * modules/malloc (Depends-on): Add malloc-posix.
41565         * lib/malloc.c: Include errno.h.
41566         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
41567         and a POSIX-compatible malloc into a single function. Set ENOMEM
41568         when returning NULL.
41569         * m4/malloc.m4: New file.
41570         * doc/functions/malloc.texi: Mention the malloc-posix module.
41571         * lib/stdlib_.h (malloc): New declaration.
41572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41573         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
41574         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
41575         and HAVE_MALLOC_POSIX.
41576
41577 2007-09-09  Bruno Haible  <bruno@clisp.org>
41578
41579         * modules/realloc-posix: New file.
41580         * modules/realloc (Depends-on): Add realloc-posix.
41581         * lib/realloc.c: Include errno.h.
41582         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
41583         and a POSIX-compatible realloc into a single function. Set ENOMEM
41584         when returning NULL.
41585         * m4/realloc.m4: New file.
41586         * doc/functions/realloc.texi: Mention the realloc-posix module.
41587         * lib/stdlib_.h (realloc): New declaration.
41588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41589         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
41590         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
41591         and HAVE_REALLOC_POSIX.
41592
41593 2007-09-09  Bruno Haible  <bruno@clisp.org>
41594
41595         * modules/calloc-posix: New file.
41596         * modules/calloc (Depends-on): Add calloc-posix.
41597         * lib/calloc.c: Include errno.h.
41598         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
41599         and a POSIX-compatible calloc into a single function. Set ENOMEM
41600         when returning NULL.
41601         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
41602         * doc/functions/calloc.texi: Mention the calloc-posix module.
41603         * lib/stdlib_.h (calloc): New declaration.
41604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
41605         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
41606         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
41607         and HAVE_CALLOC_POSIX.
41608
41609 2007-09-09  Bruno Haible  <bruno@clisp.org>
41610
41611         Allow for modules to show an arbitrary notice.
41612         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
41613         * gnulib-tool: New option --extract-notice.
41614         (func_usage): Document it.
41615         (sed_extract_prog): Update.
41616         (func_get_notice): New function.
41617         (func_modules_notice): New function.
41618         (func_import, func_create_testdir): Invoke it.
41619         Suggested by Jim Meyering.
41620
41621 2007-09-09  Bruno Haible  <bruno@clisp.org>
41622
41623         * gnulib-tool: New options --verbose, --quiet.
41624         (func_usage): Document them.
41625         (verbose): New variable.
41626         (func_execute_command): New function.
41627         (func_import): Don't show the module list and the file list if
41628         $verbose < 0.
41629         (func_create_testdir): Likewise. Use func_execute_command.
41630         (func_create_megatestdir): Use func_execute_command.
41631
41632 2007-09-08  Bruno Haible  <bruno@clisp.org>
41633
41634         * gnulib-tool (func_import): Prefer rsync over wget when available,
41635         for fetching the PO files.
41636
41637 2007-09-08  Bruno Haible  <bruno@clisp.org>
41638
41639         * posix-modules: New file. Portions copied from gnulib-tool.
41640         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
41641
41642 2007-09-08  Jim Meyering  <jim@meyering.net>
41643
41644         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
41645         * lib/fpending.h: Rename from __fpending.h.
41646         * lib/fpending.c: Rename from __fpending.c.
41647         Include "fpending.h", not "__fpending.h".
41648         * lib/__fpending.h, lib/__fpending.c: Remove files.
41649         * modules/fpending (Files): Reflect new file names.
41650         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
41651
41652 2007-09-08  Bruno Haible  <bruno@clisp.org>
41653
41654         * m4/inttypes-h.m4: Remove stub file.
41655
41656 2007-09-07  Simon Josefsson  <simon@josefsson.org>
41657
41658         * doc/headers/stdint.texi: Discuss #include_next issue.
41659
41660 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41661
41662         * build-aux/bootstrap: Remove obsolete comment about wget --help.
41663
41664 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41665
41666         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
41667         in variable name.
41668
41669 2007-09-03  Jim Meyering  <jim@meyering.net>
41670
41671         New module: git-version-gen.
41672         * modules/git-version-gen: New file.
41673
41674         Import changes from coreutils for bootstrap script.
41675
41676         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
41677
41678         bootstrap: uses rsync to download the .po files
41679         * build-aux/bootstrap (po_download_command_format): New global.
41680         (download_po_files): Use rsync.
41681         (update_po_files): Don't remove .po files after download,
41682         so future rsync runs can take advantage of the copies.
41683
41684         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
41685
41686         Solve the unnecessary-.po-file-regeneration problem once and for all.
41687         * build-aux/bootstrap (download_po_files): New function, renamed from
41688         get_translations.  Now, downloads, but doesn't update LINGUAS.
41689         (update_po_files): New function.
41690
41691         bootstrap: Ignore more.
41692         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
41693         uniwidth to e.g., lib/.gitignore.
41694         (slurp): Handle the sys_stat_.h -> sys mapping, too.
41695
41696         * build-aux/bootstrap: New setting: vc_ignore.
41697         (insert_sorted_if_absent): Create $file if absent.
41698         Adapt to new, possibly empty, list: $vc_ignore.
41699
41700         bootstrap: generate more ignorable names
41701         * build-aux/bootstrap (slurp): When generating ignorable names,
41702         also map .sin to .sed, .gperf to .c, and .y to .c.
41703
41704 2007-09-03  Jim Meyering  <jim@meyering.net>
41705
41706         * build-aux/git-version-gen: New file, from coreutils.  For details, see
41707         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
41708
41709 2007-09-02  Bruno Haible  <bruno@clisp.org>
41710
41711         Fix mis-recognition of 'mcs' on QNX 6.
41712         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
41713         output contains the string "Mono".
41714         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
41715         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
41716
41717 2007-09-01  Bruno Haible  <bruno@clisp.org>
41718
41719         Fix collision between uniwidth/* and linebreak modules.
41720         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
41721         u32_width): Remove declarations.
41722         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
41723         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
41724         streq3, streq2, streq1, streq0): Remove functions.
41725         (STREQ): Remove macro.
41726         (is_cjk_encoding): Remove function.
41727         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
41728         (uc_width, u8_width, u16_width, u32_width): Remove functions.
41729         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
41730         * NEWS: Document the change.
41731
41732 2007-09-01  Bruno Haible  <bruno@clisp.org>
41733
41734         * lib/streq.h: Add double-inclusion guard.
41735
41736 2007-09-01  Karl Berry  <karl@gnu.org>
41737
41738         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
41739
41740 2007-08-28  Jim Meyering  <jim@meyering.net>
41741
41742         Rename mreadlink_with_size to areadlink_with_size.
41743         * NEWS: Document the change.
41744         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
41745         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
41746         * lib/mreadlink.h: Rename this to...
41747         * lib/areadlink.h: ...this.
41748         * modules/mreadlink-with-size: Rename this to...
41749         * modules/areadlink-with-size: ...this.
41750         * lib/canonicalize.c: Reflect the renaming.
41751         * modules/canonicalize: Likewise.
41752
41753 2007-08-26  Bruno Haible  <bruno@clisp.org>
41754
41755         * gnulib-tool (func_import): When deciding which files to remove,
41756         consider also dangling symbolic links.
41757         Reported by Eric Blake.
41758
41759 2007-08-26  Bruno Haible  <bruno@clisp.org>
41760
41761         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
41762
41763 2007-08-23  Simon Josefsson  <simon@josefsson.org>
41764
41765         * lib/readline.c: Don't include getline.h, the prototype is now
41766         found in stdio.h.
41767
41768 2007-08-23  Jim Meyering  <jim@meyering.net>
41769
41770         Getdelim touchup.
41771         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
41772         around the funlockfile call, since funlockfile never sets errno.
41773         Don't set errno upon failed realloc.
41774
41775 2007-08-22  Eric Blake  <ebb9@byu.net>
41776
41777         Getline touchups.
41778         * lib/getdelim.c (getdelim): Revert regression that required *n to
41779         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
41780         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
41781         getdelim, rather than whether implementation is missing.
41782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
41783         * lib/stdio_.h (getline): Also declare if replacement is
41784         required.
41785         * doc/functions/getdelim.texi: New file.
41786         * doc/functions/getline.texi: Likewise.
41787         * doc/gnulib.texi (Function Substitutes): Add new files.
41788         Reported by Bruno Haible.
41789
41790 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
41791
41792         * users.txt: Add Guile.
41793
41794 2007-08-22  Eric Blake  <ebb9@byu.net>
41795
41796         * tests/test-getdelim.c (main): Use remove, not unlink.
41797         * tests/test-getline.c (main): Likewise.
41798
41799         Move getline and getdelim into stdio.h, per POSIX 200x.
41800         * modules/getline (Files): Remove getline.h.
41801         (Depends-on): Add stdio.
41802         (configure.ac): Add module indicator.
41803         * modules/getdelim (Files): Remove getdelim.h.
41804         (Depends-on): Add stdio.
41805         (configure.ac): Add module indicator.
41806         * modules/stdio (Makefile.am): Work with new indicators.
41807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41808         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
41809         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41810         * lib/getdelim.h: Delete.
41811         * lib/getline.h: Delete.
41812         * lib/stdio_.h (getdelim, getline): Declare.
41813         * modules/getdelim-tests: New module.
41814         * modules/getline-tests: Likewise.
41815         * tests/test-getdelim.c: New file.
41816         * tests/test-getline.c: Likewise.
41817         * NEWS: Document the change.
41818         * lib/getline.c: Update choice of header.
41819         * lib/csharpcomp.c: Likewise.
41820         * lib/getpass.c: Likewise.
41821         * lib/javacomp.c: Likewise.
41822         * lib/javaversion.c: Likewise.
41823         * lib/yesno.c: Likewise.
41824         * lib/getdelim.c: Likewise.
41825         (getdelim): Set errno on failure, and avoid memory leak.
41826
41827 2007-08-19  Bruno Haible  <bruno@clisp.org>
41828
41829         * modules/closein (Depends-on): Add freadahead.
41830         * lib/closein.c: Include freadahead.h.
41831         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
41832         is zero.
41833
41834 2007-08-19  Bruno Haible  <bruno@clisp.org>
41835
41836         * modules/freadahead-tests: New file.
41837         * tests/test-freadahead.sh: New file.
41838         * tests/test-freadahead.c: New file.
41839
41840         * modules/freadahead: New file.
41841         * lib/freadahead.h: New file.
41842         * lib/freadahead.c: New file.
41843         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
41844         fbufmode, fpurge, freadable, fwritable.
41845
41846 2007-08-19  Eric Blake  <ebb9@byu.net>
41847
41848         Test yesno in combination with closein.
41849         * lib/yesno.c (yesno): Document use of stdin.
41850         * modules/yesno-tests (Files): New module.
41851         * tests/test-yesno.c (main): New file.
41852         * tests/test-yesno.sh: Likewise.
41853
41854 2007-08-19  Bruno Haible  <bruno@clisp.org>
41855
41856         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
41857         * lib/fseeko.c (rpl_fseeko): Likewise.
41858         * lib/fseterr.c (fseterr): Likewise.
41859
41860 2007-08-19  Bruno Haible  <bruno@clisp.org>
41861
41862         * tests/test-lseek.c (main): Disable a test for BeOS.
41863         * doc/functions/lseek.texi: Document the BeOS bug.
41864
41865 2007-08-19  Bruno Haible  <bruno@clisp.org>
41866             Eric Blake  <ebb9@byu.net>
41867
41868         * lib/lseek.c: Include <sys/stat.h>.
41869         (rpl_lseek): Add workaround code also for Unix platforms.
41870         Needed for BeOS.
41871         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
41872         * doc/functions/lseek.texi: Document BeOS definiency.
41873
41874 2007-08-18  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/fstrcmp-tests: New file.
41877         * tests/test-fstrcmp.c: New file.
41878
41879 2007-08-18  Bruno Haible  <bruno@clisp.org>
41880
41881         * modules/fstrcmp: New file, from GNU gettext with modifications.
41882         * lib/fstrcmp.h: New file, from GNU gettext.
41883         * lib/fstrcmp.c: New file, from GNU gettext.
41884         * MODULES.html.sh (String handling): Add fstrcmp.
41885
41886 2007-08-18  Bruno Haible  <bruno@clisp.org>
41887
41888         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
41889         'bool'.
41890         (diag, compareseq): Remove const from the ctxt argument.
41891         (USE_HEURISTIC): Undefine at the end.
41892
41893 2007-08-18  Jim Meyering  <jim@meyering.net>
41894
41895         New file: lib/idcache.h
41896         * NEWS: Mention the addition.
41897         * modules/idcache (Files): Add lib/idcache.h
41898         * lib/idcache.c: Include "idcache.h".
41899         Don't include <sys/types.h>.
41900         Add a FIXME comment.
41901         Move file-scoped "static" declarations to the top.
41902         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
41903
41904 2007-08-17  Bruno Haible  <bruno@clisp.org>
41905         and Paul Eggert  <eggert@cs.ucla.edu>
41906
41907         * MODULES.html.sh: Add diffseq.
41908         * modules/diffseq: New file.
41909         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
41910         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
41911
41912 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41913
41914         Import changes from coreutils for bootstrap script.
41915
41916         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
41917
41918         * build-aux/bootstrap (slurp): Work even in environments where
41919         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
41920         current code does not slurp files whose names start with ".", and
41921         this looks like it might be a troublesome area.
41922
41923         2007-07-11  Jim Meyering  <jim@meyering.net>
41924
41925         If there's a GPL vN copyright comment, require that N == 3.
41926
41927         2007-07-08  Jim Meyering  <jim@meyering.net>
41928
41929         Run the coreutils-specific code only if tests/Makefile.am.in exists.
41930         * build-aux/bootstrap (mam_template): Move definition out of loop.
41931
41932         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
41933
41934         * build-aux/bootstrap (symlink_to_dir): Rename function from
41935         symlink_to_gnulib.  Add a directory parameter.  Update all
41936         callers.
41937         (cp_mark_as_generated): Also check for -- and link to -- files in
41938         gl/.
41939
41940         2007-07-08  Jim Meyering  <jim@meyering.net>
41941
41942         Adapt to deeper hierarchy in gnulib.
41943         * build-aux/bootstrap (symlink_to_dir): If the destination
41944         directory doesn't exist, create it. This is required at least for
41945         "lib/uniwidth/cjk.h".
41946
41947         2007-05-15  Jim Meyering  <jim@meyering.net>
41948
41949         * build-aux/bootstrap: Now that generated Makefile.am files
41950         are no longer under version control, they must be created at
41951         bootstrap time.
41952
41953 2007-08-14  Ben Pfaff  <blp@gnu.org>
41954
41955         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
41956
41957 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41958
41959         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
41960         given the changes below.
41961         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
41962         even on hosts that have padding bits beyond the supported 64.
41963
41964 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
41967         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
41968         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
41969         depends on it.
41970         (xstrtol_error): Remove.
41971         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
41972         but with a different signature.
41973         (ATTRIBUTE_NORETURN, __attribute__): New macros.
41974         * lib/xstrtol-error.c: Include exitfail.h.
41975         (xstrtol_fatal): New function, with a different signature from the
41976         old xstrtol_error, so that the caller need not worry about passing
41977         in an exit status, or about storage management of the option argument.
41978         (xstrtol_error): Now a static function.  Redo signature to
41979         implement xstrtol_fatal.  Output the correct number of hyphens in
41980         front of the option so that the caller need not worry about
41981         storage management.
41982         (N_): New macro.
41983         (_): Remove; not used now.
41984         * modules/xstrtol: Depend on getopt.
41985         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
41986         of old STRTOL_FATAL_ERROR macro.
41987         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
41988         of test program.
41989         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
41990         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
41991
41992 2007-08-08  Eric Blake  <ebb9@byu.net>
41993
41994         * lib/xstrtol-error.c: Add missing include.
41995
41996         Move xstrtol messages into gnulib domain, when --pobase is used.
41997         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
41998         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
41999         * modules/xstrtol (Files): Distribute new file.
42000         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
42001         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
42002         * tests/test-xstrtol.c: ...into new file.
42003         * tests/test-xstrtoul.c: Also test xstrtoul.
42004         * tests/test-xstrtoimax.c: Also test xstrtoimax.
42005         * tests/test-xstrtoumax.c: Also test xstrtoumax.
42006         * tests/test-xstrtol.sh: Drive the tests.
42007         * tests/test-xstrtoimax.sh: Likewise.
42008         * tests/test-xstrtoumax.sh: Likewise.
42009         * modules/xstrtol-tests: New module.
42010         * modules/xstrtoimax-tests: Likewise.
42011         * modules/xstrtoumax-tests: Likewise.
42012
42013 2007-08-08  Jim Meyering  <jim@meyering.net>
42014
42015         New function: mfile_name_concat.
42016         * lib/filenamecat.c (mfile_name_concat): New function, just like
42017         file_name_concat, but return NULL upon failure rather than exiting
42018         with a diagnostic.
42019         * lib/filenamecat.h: Declare it.
42020
42021 2007-08-07  Bruno Haible  <bruno@clisp.org>
42022
42023         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
42024         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
42025         warning from gcc.
42026         Reported by Eric Blake.
42027
42028 2007-08-07  Simon Josefsson  <simon@josefsson.org>
42029
42030         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
42031         * modules/crypto/arcfour (License): Likewise.
42032         * modules/crypto/des-tests (License): Likewise.
42033         * modules/crypto/gc-arctwo-tests (License): Likewise.
42034         * modules/crypto/gc-des-tests (License): Likewise.
42035         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
42036         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
42037         * modules/crypto/gc-md2-tests (License): Likewise.
42038         * modules/crypto/gc-md4-tests (License): Likewise.
42039         * modules/crypto/gc-md5-tests (License): Likewise.
42040         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
42041         * modules/crypto/gc-rijndael-tests (License): Likewise.
42042         * modules/crypto/gc-sha1-tests (License): Likewise.
42043         * modules/crypto/gc-tests (License): Likewise.
42044         * modules/crypto/hmac-md5 (License): Likewise.
42045         * modules/crypto/hmac-sha1 (License): Likewise.
42046         * modules/crypto/md2-tests (License): Likewise.
42047         * modules/crypto/md4-tests (License): Likewise.
42048         * modules/crypto/md5 (License): Likewise.
42049         * modules/crypto/rijndael (License): Likewise.
42050         * modules/crypto/sha1 (License): Likewise.
42051         * modules/memxor (License): Likewise.
42052
42053 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
42054         and Bruno Haible  <bruno@clisp.org>
42055
42056         * NEWS: Describe interface changes to human, xstrtol.
42057         * lib/human.h: Include <xstrtol.h>.
42058         (human_options): Return enum strtol_error, not int.  Remove
42059         bool arg; take int * instead.
42060         * lib/human.c: Don't include "gettext.h".
42061         (_): Remove; no longer used.
42062         Don't include <xstrtol.h>, since human.h does it.
42063         (human_options): Adjust to abovementioned interface changes.
42064         Do not report error to stderr; that's now the caller's
42065         responsibility.
42066         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
42067         interface change.
42068         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
42069         Str, Argument_type_string.  All uses changed.  Put " argument"
42070         in diagnostics to make them clearer.  Change wording of suffix
42071         message for clarity.
42072         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
42073         Argument_type_string.
42074         (STRTOL_FATAL_WARN): Remove; no longer used.
42075         * modules/human (Depends-on): Remove gettext-h.
42076
42077 2007-08-06  Simon Josefsson  <simon@josefsson.org>
42078
42079         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
42080
42081 2007-07-31  Bruno Haible  <bruno@clisp.org>
42082
42083         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
42084         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
42085         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
42086
42087 2007-07-31  Bruno Haible  <bruno@clisp.org>
42088
42089         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
42090         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
42091
42092 2007-07-30  Bruno Haible  <bruno@clisp.org>
42093
42094         * modules/base64 (License): Use the synonymous term "LGPLv2+".
42095         * modules/c-ctype (License): Likewise.
42096         * modules/c-strcase (License): Likewise.
42097         * modules/check-version (License): Likewise.
42098         * modules/iconv (License): Likewise.
42099         * modules/iconv_open (License): Likewise.
42100         * modules/read-file (License): Likewise.
42101         * modules/striconv (License): Likewise.
42102         * modules/strverscmp (License): Likewise.
42103         * modules/vasprintf (License): Likewise.
42104         * modules/crypto/des (License): Likewise.
42105         * modules/crypto/gc (License): Likewise.
42106         * modules/crypto/gc-arcfour (License): Likewise.
42107         * modules/crypto/gc-arctwo (License): Likewise.
42108         * modules/crypto/gc-des (License): Likewise.
42109         * modules/crypto/gc-hmac-md5 (License): Likewise.
42110         * modules/crypto/gc-hmac-sha1 (License): Likewise.
42111         * modules/crypto/gc-md2 (License): Likewise.
42112         * modules/crypto/gc-md4 (License): Likewise.
42113         * modules/crypto/gc-md5 (License): Likewise.
42114         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
42115         * modules/crypto/gc-random (License): Likewise.
42116         * modules/crypto/gc-rijndael (License): Likewise.
42117         * modules/crypto/gc-sha1 (License): Likewise.
42118         * modules/crypto/md2 (License): Likewise.
42119         * modules/crypto/md4 (License): Likewise.
42120
42121 2007-07-30  Jim Meyering  <jim@meyering.net>
42122
42123         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
42124         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
42125         it has valid stat data.  This bug would cause du not to count the
42126         sizes of inaccessible directories.
42127         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
42128         in <http://bugzilla.redhat.com/250077>.
42129
42130 2007-07-25  Peter O'Gorman  <peter@pogma.com>
42131             Bruno Haible  <bruno@clisp.org>
42132
42133         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
42134         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
42135         #include_next, gives a diagnostic about it, but reports no error in
42136         the exit code.
42137         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42138
42139 2007-07-24  Ben Pfaff  <blp@gnu.org>
42140
42141         Improve name: "count-one-bits" is better than "popcount".
42142         * MODULES.html.sh: Update name.
42143         * lib/popcount.h: Renamed lib/count-one-bits.h.
42144         (popcount): Renamed count_one_bits.
42145         (popcountl): Renamed count_one_bits_l.
42146         (popcountll): Renamed count_one_bits_ll.
42147         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
42148         * modules/popcount: Renamed module/count-one-bits.
42149         * modules/popcount-tests: Renamed module/count-one-bits-tests.
42150         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
42151
42152 2007-07-23  Ben Pfaff  <blp@gnu.org>
42153
42154         * lib/popcount.h (popcount32): Reduce size of constants, to allow
42155         better code generation, and add U to large constants to avoid
42156         warnings, in non-GCC case.
42157         Suggested by Bruno Haible.
42158
42159 2007-07-23  Ben Pfaff  <blp@gnu.org>
42160
42161         * lib/popcount.h: Use verify_true instead of if...abort.
42162         * modules/popcount: Depend on verify module.
42163         Suggested by Jim Meyering.
42164
42165 2007-07-23  Bruno Haible  <bruno@clisp.org>
42166
42167         * gnulib-tool (func_import): Create a .cvsignore file also when the
42168         directory is not yet in CVS but the toplevel directory is. When
42169         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
42170         Reported by Karl Berry.
42171
42172 2007-07-22  Ben Pfaff  <blp@gnu.org>
42173
42174         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
42175         case.
42176         Suggested by Eric Blake.
42177
42178 2007-07-22  Ben Pfaff  <blp@gnu.org>
42179
42180         New module: popcount.
42181         * MODULES.html.sh: Add popcount.
42182         * modules/popcount: New file.
42183         * modules/popcount-tests: New file.
42184         * tests/test-popcount.c: New file.
42185         * lib/popcount.h: New file.
42186         * m4/popcount.m4: New file.
42187
42188 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
42189
42190         * build-aux/announce-gen: Update to GPLv3.
42191
42192         * build-aux/config.guess: Update from config.
42193
42194 2007-07-21  Bruno Haible  <bruno@clisp.org>
42195
42196         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
42197         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
42198
42199 2007-07-20  Jim Meyering  <jim@meyering.net>
42200
42201         * check-module: Diagnose a self-dependency.
42202
42203 2007-07-19  Bruno Haible  <bruno@clisp.org>
42204
42205         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
42206         empty.
42207         Reported by Eric Blake.
42208
42209 2007-07-18  Bruno Haible  <bruno@clisp.org>
42210
42211         * gnulib-tool: New options --po-base, --po-domain.
42212         (func_usage): Document them.
42213         (pobase, po_domain): New variables.
42214         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
42215         DEFAULT_TEXT_DOMAIN.
42216         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
42217         (func_import): Consider pobase and po_domain. Create a po/ directory.
42218         (func_create_testdir): Set pobase and po_domain to empty.
42219         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
42220         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
42221
42222 2007-07-18  Bruno Haible  <bruno@clisp.org>
42223
42224         * gnulib-tool (func_get_automake_snippet): Synthesize also an
42225         EXTRA_DIST augmentation for files in build-aux/.
42226
42227 2007-07-16  Bruno Haible  <bruno@clisp.org>
42228
42229         * modules/lseek (License): Use the synonymous term "LGPLv2+".
42230         * modules/getdelim (License): Likewise.
42231
42232 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42233
42234         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
42235         * modules/d-type (License): Likewise.
42236         * modules/extensions (License): Likewise.
42237         * modules/fnmatch (License): Likewise.
42238         * modules/fseeko (License): Likewise.
42239         * modules/getaddrinfo (License): Likewise.
42240         * modules/getline (License): Likewise.
42241         * modules/getlogin_r (License): Likewise.
42242         * modules/getpass (License): Likewise.
42243         * modules/gettimeofday (License): Likewise.
42244         * modules/glob (License): Likewise.
42245         * modules/inet_ntop (License): Likewise.
42246         * modules/malloc (License): Likewise.
42247         * modules/malloca (License): Likewise.
42248         * modules/memmem (License): Likewise.
42249         * modules/mempcpy (License): Likewise.
42250         * modules/memset (License): Likewise.
42251         * modules/minmax (License): Likewise.
42252         * modules/mktime (License): Likewise.
42253         * modules/netinet_in (License): Likewise.
42254         * modules/pathmax (License): Likewise.
42255         * modules/poll (License): Likewise.
42256         * modules/regex (License): Likewise.
42257         * modules/snprintf (License): Likewise.
42258         * modules/stdbool (License): Likewise.
42259         * modules/stdint (License): Likewise.
42260         * modules/stdio (License): Likewise.
42261         * modules/strcase (License): Likewise.
42262         * modules/strcasestr (License): Likewise.
42263         * modules/strdup (License): Likewise.
42264         * modules/string (License): Likewise.
42265         * modules/strndup (License): Likewise.
42266         * modules/strnlen (License): Likewise.
42267         * modules/strpbrk (License): Likewise.
42268         * modules/strptime (License): Likewise.
42269         * modules/strsep (License): Likewise.
42270         * modules/sys_select (License): Likewise.
42271         * modules/sys_socket (License): Likewise.
42272         * modules/sys_stat (License): Likewise.
42273         * modules/sys_time (License): Likewise.
42274         * modules/time (License): Likewise.
42275         * modules/time_r (License): Likewise.
42276         * modules/timegm (License): Likewise.
42277         * modules/unistd (License): Likewise.
42278         * modules/vsnprintf (License): Likewise.
42279         * modules/wctype (License): Likewise.
42280
42281 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42282
42283         * modules/argz (License): LGPLv2+.
42284
42285 2007-07-15  Karl Berry  <karl@gnu.org>
42286
42287         * doc/gnulib.texi: revise node structure per new fdl.texi.
42288
42289 2007-07-14  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
42292         the output file.
42293         * lib/uniname/uninames.h: Regenerated.
42294
42295 2007-07-14  Karl Berry  <karl@gnu.org>
42296
42297         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
42298         omitting sectioning and index commands.
42299
42300 2007-07-13  Bruno Haible  <bruno@clisp.org>
42301
42302         New gnulib-tool option --more-symlinks.
42303         * gnulib-tool (func_usage): Document --more-symlinks.
42304         (do_copyrights): New variable.
42305         Recognize option --more-symlinks.
42306         (func_import): Don't add a copyright notice transform to
42307         sed_transform_lib_file if do_copyrights is empty.
42308
42309 2007-07-13  Bruno Haible  <bruno@clisp.org>
42310
42311         * lib/vasnprintf.c (decimal_point_char): Define also if
42312         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
42313         && !NEED_PRINTF_DIRECTIVE_A.
42314         Reported by Clemens Koller <clemens.koller@anagramm.de> via
42315         Gary V. Vaughan <gary@gnu.org>.
42316
42317 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
42318
42319         * lib/inttypes_.h: Undo previous change, since it was fixed
42320         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
42321
42322 2007-07-13  Bruno Haible  <bruno@clisp.org>
42323
42324         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
42325         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
42326
42327 2007-07-13  Jim Meyering  <jim@meyering.net>
42328
42329         df: Don't fail for Tru64's "file-on-file mount".
42330         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
42331         so we fall through and use statfs instead.  Details here:
42332         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
42333         Reported by Albert Chin.
42334
42335 2007-07-13  Bruno Haible  <bruno@clisp.org>
42336
42337         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
42338         * modules/configmake (License): Likewise.
42339         * modules/gettext (License): Likewise.
42340         * modules/gettext-h (License): Likewise.
42341         * modules/include_next (License): Likewise.
42342         * modules/link-warning (License): Likewise.
42343         * modules/localcharset (License): Likewise.
42344         * modules/localename (License): Likewise.
42345         * modules/lock (License): Likewise.
42346         * modules/relocatable-lib-lgpl (License): Likewise.
42347         * modules/size_max (License): Likewise.
42348         * modules/vasnprintf (License): Likewise.
42349         * modules/wchar (License): Likewise.
42350         * modules/xsize (License): Likewise.
42351
42352 2007-07-13  Bruno Haible  <bruno@clisp.org>
42353
42354         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
42355         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
42356
42357 2007-07-12  Bruno Haible  <bruno@clisp.org>
42358
42359         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
42360         in the modules files.
42361
42362 2007-07-11  Karl Berry  <karl@gnu.org>
42363
42364         * MODULES.html.sh (func_module): use
42365          sed -e '\|^'"${includefile}"'$|d'
42366          instead of /.../d, to avoid errors on $includefile's containing /.
42367
42368 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42369
42370         * gnulib-tool (func_import): Avoid duplication of --avoid
42371         statements
42372         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
42373         names to `_' in variable names.
42374
42375 2007-07-10  Eric Blake  <ebb9@byu.net>
42376
42377         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
42378         * NEWS: Document this change.
42379
42380 2007-07-08  Bruno Haible  <bruno@clisp.org>
42381
42382         Update to Unicode 5.0.
42383         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
42384         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
42385         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
42386         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
42387         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
42388         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
42389         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
42390         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
42391         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
42392         U+10A3F, U+1D242..U+1D244.
42393         (nonspacing_table_ind): Update.
42394         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
42395         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
42396
42397 2007-07-08  Bruno Haible  <bruno@clisp.org>
42398
42399         Update to Unicode 5.0.
42400         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
42401         code transform. Extend the name index field of unicode_name_to_code and
42402         unicode_code_to_name from 16 to 24 bits.
42403         * lib/uniname/uniname.c (unicode_character_name,
42404         unicode_name_character): Add the range 0x12xxx to the code transform.
42405         * lib/uniname/uninames.h: Regenerated.
42406         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
42407
42408 2007-07-07  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/wcwidth-tests: New file.
42411         * tests/test-wcwidth.c: New file.
42412
42413         Work around MacOS X wcwidth() bug.
42414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
42415         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
42416         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
42417         original wcwidth in non-UTF-8 locales.
42418         * modules/wcwidth (Depends-on): Add localcharset, streq,
42419         uniwidth/width.
42420         * doc/functions/wcwidth.texi: Update.
42421
42422 2007-07-07  Bruno Haible  <bruno@clisp.org>
42423
42424         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
42425         (wcwidth): New declaration.
42426         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
42427         macros.
42428         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
42429         here. Prepare for creating <wchar.h> unconditionally.
42430         * modules/wchar (Depends-on): Add link-warning.
42431         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
42432         REPLACE_WCWIDTH, and GL_LINK_WARNING.
42433         * lib/wcwidth.h: Remove file.
42434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
42435         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
42436         * modules/wcwidth (Files): Remove lib/wcwidth.h.
42437         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
42438         (Include): Replace wcwidth.h with <wchar.h>.
42439         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
42440         * lib/mbchar.h: Don't include wcwidth.h.
42441         * lib/mbswidth.c: Likewise.
42442         * NEWS: Mention the change.
42443
42444 2007-07-07  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
42447         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
42448         definition with an external declaration.
42449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
42450         defined as a function. Remove AC_C_INLINE requirement.
42451         * modules/wcwidth (Files): Add lib/wcwidth.c.
42452         (Makefile.am): Remove redundant statement.
42453
42454 2007-07-07  Bruno Haible  <bruno@clisp.org>
42455
42456         * MODULES.html.sh (Unicode string functions): Add the new modules.
42457
42458         * tests/uniwidth/test-u32-strwidth.c: New file.
42459         * modules/uniwidth/u32-strwidth-tests: New file.
42460
42461         * lib/uniwidth/u32-strwidth.c: New file.
42462         * modules/uniwidth/u32-strwidth: New file.
42463
42464         * tests/uniwidth/test-u16-strwidth.c: New file.
42465         * modules/uniwidth/u16-strwidth-tests: New file.
42466
42467         * lib/uniwidth/u16-strwidth.c: New file.
42468         * modules/uniwidth/u16-strwidth: New file.
42469
42470         * tests/uniwidth/test-u8-strwidth.c: New file.
42471         * modules/uniwidth/u8-strwidth-tests: New file.
42472
42473         * lib/uniwidth/u8-strwidth.c: New file.
42474         * modules/uniwidth/u8-strwidth: New file.
42475
42476         * tests/uniwidth/test-u32-width.c: New file.
42477         * modules/uniwidth/u32-width-tests: New file.
42478
42479         * lib/uniwidth/u32-width.c: New file.
42480         * modules/uniwidth/u32-width: New file.
42481
42482         * tests/uniwidth/test-u16-width.c: New file.
42483         * modules/uniwidth/u16-width-tests: New file.
42484
42485         * lib/uniwidth/u16-width.c: New file.
42486         * modules/uniwidth/u16-width: New file.
42487
42488         * tests/uniwidth/test-u8-width.c: New file.
42489         * modules/uniwidth/u8-width-tests: New file.
42490
42491         * lib/uniwidth/u8-width.c: New file.
42492         * modules/uniwidth/u8-width: New file.
42493
42494         * tests/uniwidth/test-uc_width.c: New file.
42495         * modules/uniwidth/width-tests: New file.
42496
42497         * lib/uniwidth/width.c: New file, from GNU libiconv.
42498         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
42499         * modules/uniwidth/width: New file.
42500
42501         * lib/uniwidth.h: New file, from GNU libiconv.
42502         * modules/uniwidth/base: New file.
42503
42504 2007-07-07  Bruno Haible  <bruno@clisp.org>
42505
42506         * lib/uniname.h: New file, from GNU gettext.
42507         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
42508         * lib/uniname/uninames.h: New file, from GNU gettext.
42509         * lib/uniname/uniname.c: New file, from GNU gettext.
42510         * tests/uniname/test-uninames.sh: New file.
42511         * tests/uniname/test-uninames.c: New file, from GNU gettext.
42512         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
42513         * modules/uniname/base: New file.
42514         * modules/uniname/uniname: New file.
42515         * modules/uniname/uniname-tests: New file.
42516         * MODULES.html.sh (Unicode string functions): Add the new modules.
42517
42518 2007-07-06  Bruno Haible  <bruno@clisp.org>
42519
42520         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
42521
42522 2007-07-06  Bruno Haible  <bruno@clisp.org>
42523
42524         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
42525         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
42526         includes <cygwin/sys_time.h> which includes <sys/select.h> which
42527         include <sys/time.h>.
42528         Reported by Eric Blake.
42529
42530 2007-07-06  Eric Blake  <ebb9@byu.net>
42531
42532         Fix testing canonicalize on cygwin.
42533         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
42534         Revert patch from 2007-06-19.
42535         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
42536         canonicalize module is also in use.
42537         * tests/test-canonicalize.c: New file.
42538         * tests/test-canonicalize.sh: Likewise.
42539         * modules/canonicalize-tests: Likewise.
42540
42541 2007-07-06  Jim Meyering  <jim@meyering.net>
42542
42543         * lib/getugroups.c (getugroups): Detect getgrent failure.
42544         Adjust comment to reflect reality: this function may return -1.
42545
42546 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
42547
42548         * build-aux/bootstrap (TP_URL,get_translations): Update to use
42549         the new TP address.
42550         (usage): Fix typo
42551         (gnulib_mk): New variable.
42552
42553 2007-07-05  Jim Meyering  <jim@meyering.net>
42554
42555         Don't let endgrent clobber errno, no matter how improbable.
42556         * lib/getugroups.c (getugroups): Save and restore errno around
42557         endgrent call.
42558
42559         Close the group DB even when failing with 2^31 or more members.
42560         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
42561
42562 2007-07-04  Jim Meyering  <jim@meyering.net>
42563
42564         * lib/getugroups.h: New file.
42565         * lib/getugroups.c: Include "getugroups.h".
42566         Remove uses of "register" keyword.
42567         Move local variable, "cp", down into scope where used.
42568         Give "username" parameter the "const" attribute.
42569         * modules/getugroups (Files): Add lib/getugroups.h
42570
42571 2007-07-04  Karl Berry  <karl@gnu.org>
42572
42573         * MODULES.html.sh (func_all_modules): Complete rename of
42574         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
42575
42576 2007-07-02  Bruno Haible  <bruno@clisp.org>
42577
42578         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
42579         mode, when inttypes.h comes from gnulib.
42580         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42581
42582 2007-07-02  Simon Josefsson  <simon@josefsson.org>
42583
42584         * NEWS: Mention lgpl module name change.
42585
42586         * modules/lgpl-2.1: Renamed from lgpl.
42587
42588         * NEWS: Mention gpl module name change.
42589
42590         * modules/gpl-3.0: New file, based on gpl-2.0.
42591
42592         * modules/gpl-2.0: Renamed from gpl.
42593
42594         * modules/gpl: Fix filename, doc/gpl.texi is now found at
42595         doc/gpl-2.0.texi.
42596
42597 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42598
42599         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
42600         #define __STDC_LIMIT_MACROS temporarily while including
42601         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
42602         Problem reported by Joel E. Denny in
42603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
42604
42605 2007-07-01  Bruno Haible  <bruno@clisp.org>
42606
42607         * lib/unistdio.h: New file.
42608         * lib/unistdio/u-asnprintf.h: New file.
42609         * lib/unistdio/u-asprintf.h: New file.
42610         * lib/unistdio/u-printf-args.c: New file.
42611         * lib/unistdio/u-printf-args.h: New file.
42612         * lib/unistdio/u-printf-parse.h: New file.
42613         * lib/unistdio/u-snprintf.h: New file.
42614         * lib/unistdio/u-sprintf.h: New file.
42615         * lib/unistdio/u-vasprintf.h: New file.
42616         * lib/unistdio/u-vsnprintf.h: New file.
42617         * lib/unistdio/u-vsprintf.h: New file.
42618         * lib/unistdio/ulc-asnprintf.c: New file.
42619         * lib/unistdio/ulc-asprintf.c: New file.
42620         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
42621         * lib/unistdio/ulc-printf-parse.c: New file.
42622         * lib/unistdio/ulc-snprintf.c: New file.
42623         * lib/unistdio/ulc-sprintf.c: New file.
42624         * lib/unistdio/ulc-vasnprintf.c: New file.
42625         * lib/unistdio/ulc-vasprintf.c: New file.
42626         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
42627         * lib/unistdio/ulc-vsnprintf.c: New file.
42628         * lib/unistdio/ulc-vsprintf.c: New file.
42629         * lib/unistdio/u8-asnprintf.c: New file.
42630         * lib/unistdio/u8-asprintf.c: New file.
42631         * lib/unistdio/u8-printf-parse.c: New file.
42632         * lib/unistdio/u8-snprintf.c: New file.
42633         * lib/unistdio/u8-sprintf.c: New file.
42634         * lib/unistdio/u8-vasnprintf.c: New file.
42635         * lib/unistdio/u8-vasprintf.c: New file.
42636         * lib/unistdio/u8-vsnprintf.c: New file.
42637         * lib/unistdio/u8-vsprintf.c: New file.
42638         * lib/unistdio/u8-u8-asnprintf.c: New file.
42639         * lib/unistdio/u8-u8-asprintf.c: New file.
42640         * lib/unistdio/u8-u8-snprintf.c: New file.
42641         * lib/unistdio/u8-u8-sprintf.c: New file.
42642         * lib/unistdio/u8-u8-vasnprintf.c: New file.
42643         * lib/unistdio/u8-u8-vasprintf.c: New file.
42644         * lib/unistdio/u8-u8-vsnprintf.c: New file.
42645         * lib/unistdio/u8-u8-vsprintf.c: New file.
42646         * lib/unistdio/u16-asnprintf.c: New file.
42647         * lib/unistdio/u16-asprintf.c: New file.
42648         * lib/unistdio/u16-printf-parse.c: New file.
42649         * lib/unistdio/u16-snprintf.c: New file.
42650         * lib/unistdio/u16-sprintf.c: New file.
42651         * lib/unistdio/u16-vasnprintf.c: New file.
42652         * lib/unistdio/u16-vasprintf.c: New file.
42653         * lib/unistdio/u16-vsnprintf.c: New file.
42654         * lib/unistdio/u16-vsprintf.c: New file.
42655         * lib/unistdio/u16-u16-asnprintf.c: New file.
42656         * lib/unistdio/u16-u16-asprintf.c: New file.
42657         * lib/unistdio/u16-u16-snprintf.c: New file.
42658         * lib/unistdio/u16-u16-sprintf.c: New file.
42659         * lib/unistdio/u16-u16-vasnprintf.c: New file.
42660         * lib/unistdio/u16-u16-vasprintf.c: New file.
42661         * lib/unistdio/u16-u16-vsnprintf.c: New file.
42662         * lib/unistdio/u16-u16-vsprintf.c: New file.
42663         * lib/unistdio/u32-asnprintf.c: New file.
42664         * lib/unistdio/u32-asprintf.c: New file.
42665         * lib/unistdio/u32-printf-parse.c: New file.
42666         * lib/unistdio/u32-snprintf.c: New file.
42667         * lib/unistdio/u32-sprintf.c: New file.
42668         * lib/unistdio/u32-vasnprintf.c: New file.
42669         * lib/unistdio/u32-vasprintf.c: New file.
42670         * lib/unistdio/u32-vsnprintf.c: New file.
42671         * lib/unistdio/u32-vsprintf.c: New file.
42672         * lib/unistdio/u32-u32-asnprintf.c: New file.
42673         * lib/unistdio/u32-u32-asprintf.c: New file.
42674         * lib/unistdio/u32-u32-snprintf.c: New file.
42675         * lib/unistdio/u32-u32-sprintf.c: New file.
42676         * lib/unistdio/u32-u32-vasnprintf.c: New file.
42677         * lib/unistdio/u32-u32-vasprintf.c: New file.
42678         * lib/unistdio/u32-u32-vsnprintf.c: New file.
42679         * lib/unistdio/u32-u32-vsprintf.c: New file.
42680         * tests/unistdio/test-ulc-asnprintf1.c: New file.
42681         * tests/unistdio/test-ulc-asnprintf1.h: New file.
42682         * tests/unistdio/test-ulc-printf1.h: New file.
42683         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
42684         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
42685         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
42686         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
42687         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
42688         * tests/unistdio/test-ulc-vasprintf1.c: New file.
42689         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
42690         * tests/unistdio/test-ulc-vsprintf1.c: New file.
42691         * tests/unistdio/test-u8-asnprintf1.c: New file.
42692         * tests/unistdio/test-u8-asnprintf1.h: New file.
42693         * tests/unistdio/test-u8-printf1.h: New file.
42694         * tests/unistdio/test-u8-vasnprintf1.c: New file.
42695         * tests/unistdio/test-u8-vasnprintf2.c: New file.
42696         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
42697         * tests/unistdio/test-u8-vasnprintf3.c: New file.
42698         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
42699         * tests/unistdio/test-u8-vasprintf1.c: New file.
42700         * tests/unistdio/test-u8-vsnprintf1.c: New file.
42701         * tests/unistdio/test-u8-vsprintf1.c: New file.
42702         * tests/unistdio/test-u16-asnprintf1.c: New file.
42703         * tests/unistdio/test-u16-asnprintf1.h: New file.
42704         * tests/unistdio/test-u16-printf1.h: New file.
42705         * tests/unistdio/test-u16-vasnprintf1.c: New file.
42706         * tests/unistdio/test-u16-vasnprintf2.c: New file.
42707         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
42708         * tests/unistdio/test-u16-vasnprintf3.c: New file.
42709         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
42710         * tests/unistdio/test-u16-vasprintf1.c: New file.
42711         * tests/unistdio/test-u16-vsnprintf1.c: New file.
42712         * tests/unistdio/test-u16-vsprintf1.c: New file.
42713         * tests/unistdio/test-u32-asnprintf1.c: New file.
42714         * tests/unistdio/test-u32-asnprintf1.h: New file.
42715         * tests/unistdio/test-u32-printf1.h: New file.
42716         * tests/unistdio/test-u32-vasnprintf1.c: New file.
42717         * tests/unistdio/test-u32-vasnprintf2.c: New file.
42718         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
42719         * tests/unistdio/test-u32-vasnprintf3.c: New file.
42720         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
42721         * tests/unistdio/test-u32-vasprintf1.c: New file.
42722         * tests/unistdio/test-u32-vsnprintf1.c: New file.
42723         * tests/unistdio/test-u32-vsprintf1.c: New file.
42724         * modules/unistdio/base: New file.
42725         * modules/unistdio/u-printf-args: New file.
42726         * modules/unistdio/ulc-asnprintf: New file.
42727         * modules/unistdio/ulc-asprintf: New file.
42728         * modules/unistdio/ulc-fprintf: New file.
42729         * modules/unistdio/ulc-printf-parse: New file.
42730         * modules/unistdio/ulc-snprintf: New file.
42731         * modules/unistdio/ulc-sprintf: New file.
42732         * modules/unistdio/ulc-vasnprintf: New file.
42733         * modules/unistdio/ulc-vasprintf: New file.
42734         * modules/unistdio/ulc-vfprintf: New file.
42735         * modules/unistdio/ulc-vsnprintf: New file.
42736         * modules/unistdio/ulc-vsprintf: New file.
42737         * modules/unistdio/u8-asnprintf: New file.
42738         * modules/unistdio/u8-asprintf: New file.
42739         * modules/unistdio/u8-printf-parse: New file.
42740         * modules/unistdio/u8-snprintf: New file.
42741         * modules/unistdio/u8-sprintf: New file.
42742         * modules/unistdio/u8-vasnprintf: New file.
42743         * modules/unistdio/u8-vasprintf: New file.
42744         * modules/unistdio/u8-vsnprintf: New file.
42745         * modules/unistdio/u8-vsprintf: New file.
42746         * modules/unistdio/u8-u8-asnprintf: New file.
42747         * modules/unistdio/u8-u8-asprintf: New file.
42748         * modules/unistdio/u8-u8-snprintf: New file.
42749         * modules/unistdio/u8-u8-sprintf: New file.
42750         * modules/unistdio/u8-u8-vasnprintf: New file.
42751         * modules/unistdio/u8-u8-vasprintf: New file.
42752         * modules/unistdio/u8-u8-vsnprintf: New file.
42753         * modules/unistdio/u8-u8-vsprintf: New file.
42754         * modules/unistdio/u16-asnprintf: New file.
42755         * modules/unistdio/u16-asprintf: New file.
42756         * modules/unistdio/u16-printf-parse: New file.
42757         * modules/unistdio/u16-snprintf: New file.
42758         * modules/unistdio/u16-sprintf: New file.
42759         * modules/unistdio/u16-vasnprintf: New file.
42760         * modules/unistdio/u16-vasprintf: New file.
42761         * modules/unistdio/u16-vsnprintf: New file.
42762         * modules/unistdio/u16-vsprintf: New file.
42763         * modules/unistdio/u16-u16-asnprintf: New file.
42764         * modules/unistdio/u16-u16-asprintf: New file.
42765         * modules/unistdio/u16-u16-snprintf: New file.
42766         * modules/unistdio/u16-u16-sprintf: New file.
42767         * modules/unistdio/u16-u16-vasnprintf: New file.
42768         * modules/unistdio/u16-u16-vasprintf: New file.
42769         * modules/unistdio/u16-u16-vsnprintf: New file.
42770         * modules/unistdio/u16-u16-vsprintf: New file.
42771         * modules/unistdio/u32-asnprintf: New file.
42772         * modules/unistdio/u32-asprintf: New file.
42773         * modules/unistdio/u32-printf-parse: New file.
42774         * modules/unistdio/u32-snprintf: New file.
42775         * modules/unistdio/u32-sprintf: New file.
42776         * modules/unistdio/u32-vasnprintf: New file.
42777         * modules/unistdio/u32-vasprintf: New file.
42778         * modules/unistdio/u32-vsnprintf: New file.
42779         * modules/unistdio/u32-vsprintf: New file.
42780         * modules/unistdio/u32-u32-asnprintf: New file.
42781         * modules/unistdio/u32-u32-asprintf: New file.
42782         * modules/unistdio/u32-u32-snprintf: New file.
42783         * modules/unistdio/u32-u32-sprintf: New file.
42784         * modules/unistdio/u32-u32-vasnprintf: New file.
42785         * modules/unistdio/u32-u32-vasprintf: New file.
42786         * modules/unistdio/u32-u32-vsnprintf: New file.
42787         * modules/unistdio/u32-u32-vsprintf: New file.
42788         * modules/unistdio/ulc-asnprintf-tests: New file.
42789         * modules/unistdio/ulc-vasnprintf-tests: New file.
42790         * modules/unistdio/ulc-vasprintf-tests: New file.
42791         * modules/unistdio/ulc-vsnprintf-tests: New file.
42792         * modules/unistdio/ulc-vsprintf-tests: New file.
42793         * modules/unistdio/u8-asnprintf-tests: New file.
42794         * modules/unistdio/u8-vasnprintf-tests: New file.
42795         * modules/unistdio/u8-vasprintf-tests: New file.
42796         * modules/unistdio/u8-vsnprintf-tests: New file.
42797         * modules/unistdio/u8-vsprintf-tests: New file.
42798         * modules/unistdio/u16-asnprintf-tests: New file.
42799         * modules/unistdio/u16-vasnprintf-tests: New file.
42800         * modules/unistdio/u16-vasprintf-tests: New file.
42801         * modules/unistdio/u16-vsnprintf-tests: New file.
42802         * modules/unistdio/u16-vsprintf-tests: New file.
42803         * modules/unistdio/u32-asnprintf-tests: New file.
42804         * modules/unistdio/u32-vasnprintf-tests: New file.
42805         * modules/unistdio/u32-vasprintf-tests: New file.
42806         * modules/unistdio/u32-vsnprintf-tests: New file.
42807         * modules/unistdio/u32-vsprintf-tests: New file.
42808         * MODULES.html.sh (Unicode string functions): Add the new modules.
42809
42810 2007-07-01  Bruno Haible  <bruno@clisp.org>
42811
42812         * lib/sprintf.c (sprintf): Limit the available length estimation,
42813         to avoid address wraparound.
42814         * lib/vsprintf.c (vsprintf): Likewise.
42815         * modules/sprintf-posix (Dependencies): Add stdint.
42816         * modules/vsprintf-posix (Dependencies): Likewise.
42817
42818 2007-07-01  Bruno Haible  <bruno@clisp.org>
42819
42820         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
42821         Windows PATH as well. Conservative double-quoting. Comments.
42822
42823 2007-07-01  Bruno Haible  <bruno@clisp.org>
42824             Eric Blake  <ebb9@byu.net>
42825             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42826
42827         * gnulib-tool (self_abspathname): Fix algorithm to cope with
42828         empty components in $PATH, denoting '.'.
42829
42830 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42831
42832         * gnulib-tool: Fix indentation.
42833         (func_create_megatestdir): Likewise.
42834         Report by Bruno Haible.
42835
42836 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42837
42838         Sync from Automake.
42839         * build-aux/gnupload: Fix shell portability issues with for loops.
42840         Report by Karl Berry.
42841
42842 2007-06-29  Simon Josefsson  <simon@josefsson.org>
42843
42844         * build-aux/maint.mk (POURL): Use translationproject.org.
42845
42846 2007-06-27  Simon Josefsson  <simon@josefsson.org>
42847             Bruno Haible  <bruno@clisp.org>
42848
42849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
42850         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
42851         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
42852         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
42853         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
42854
42855 2007-06-27  Bruno Haible  <bruno@clisp.org>
42856
42857         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
42858         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
42859
42860 2007-06-26  Karl Berry  <karl@gnu.org>
42861
42862         * MODULES.html.sh: remove xreadlink-with-size.
42863
42864 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42865
42866         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
42867         method that I hope also handles the double-include problem noted
42868         by Bruno Haible in
42869         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
42870
42871 2007-06-23  Bruno Haible  <bruno@clisp.org>
42872
42873         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42874         Don't let the 'mostlyclean' target fail if the last subdirectory could
42875         not be removed.
42876         Reported by Karl Berry.
42877
42878 2007-06-23  Bruno Haible  <bruno@clisp.org>
42879
42880         * gnulib-tool (echo): Add a speedier workaround for ksh.
42881         * tests/test-echo.sh: Likewise.
42882
42883 2007-06-23  Bruno Haible  <bruno@clisp.org>
42884
42885         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
42886         * tests/test-echo.sh: Likewise.
42887
42888 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42889
42890         * gnulib-tool (IFS): Initialize early, so we don't set it to
42891         empty later.
42892         (self_abspathname): Rewrite algorithm to set it, reindent.
42893         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
42894         (func_create_megatestdir): Merge some sed scripts.
42895
42896 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
42897
42898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
42899         exposed by Sun Studio 11 cc on Solaris 8.
42900
42901 2007-06-22  Bruno Haible  <bruno@clisp.org>
42902
42903         * gnulib-tool (echo): Ensure the echo primitive does not interpret
42904         backslashes.
42905         * tests/test-echo.sh: New file.
42906
42907 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42908
42909         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
42910         simplify `sed_replace_build_aux' scripts, they are portable but
42911         echoing them with `echo' is not.
42912         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
42913
42914 2007-06-21  Karl Berry  <karl@gnu.org>
42915
42916         * config/srclist.txt: guess we can't handle the licenses via
42917         srclist at the moment.
42918
42919 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42920
42921         * MODULES.html.sh: Add include_next.
42922         * modules/include_next: New file.
42923
42924 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
42927         INCLUDE_NEXT.
42928         (gl_CHECK_NEXT_HEADERS): New macro.
42929         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
42930         the obsolescent gl_ABSOLUTE_HEADER.
42931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
42932         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
42933         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42934         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42935         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
42936         * m4/math_h.m4 (gl_MATH_H): Likewise.
42937         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42938         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42939         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
42940         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42941         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
42942         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
42943         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
42944         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
42947         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
42948         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42949         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
42950         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42951         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42952         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42953         * m4/inttypes.m4 (gl_INTTYPES_H): Define
42954         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
42955         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
42956         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
42957         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
42958         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
42959         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
42960         * lib/float_.h: Likewise.
42961         * lib/inttypes_.h: Likewise.
42962         * lib/math_.h: Likewise.
42963         * lib/search_.h: Likewise.
42964         * lib/signal_.h: Likewise.
42965         * lib/stdint_.h: Likewise.
42966         * lib/stdio_.h: Likewise.
42967         * lib/stdlib_.h: Likewise.
42968         * lib/string_.h: Likewise.
42969         * lib/sys_stat_.h: Likewise.
42970         * lib/sys_time_.h: Likewise.
42971         * lib/time_.h: Likewise.
42972         * lib/unistd_.h: Likewise.
42973         * lib/wchar_.h: Likewise.
42974         * lib/wctype_.h: Likewise.
42975         * lib/dirent_.h: Likewise.
42976         * lib/iconv_.h: Likewise.
42977         * lib/locale_.h: Likewise.
42978         * lib/netinet_in_.h: Likewise.
42979         * lib/sys_select_.h: Likewise.
42980         * lib/sys_socket_.h: Likewise.
42981         * lib/sysexits_.h: Likewise.
42982         * modules/fcntl (Depends-on): Depend on include_next, not
42983         absolute_header.
42984         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
42985         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
42986         * modules/fchdir: Likewise.
42987         * modules/float: Likewise.
42988         * modules/iconv_open: Likewise.
42989         * modules/inttypes: Likewise.
42990         * modules/locale: Likewise.
42991         * modules/math: Likewise.
42992         * modules/netinet_in: Likewise.
42993         * modules/search: Likewise.
42994         * modules/signal: Likewise.
42995         * modules/stdint: Likewise.
42996         * modules/stdio: Likewise.
42997         * modules/stdlib: Likewise.
42998         * modules/string: Likewise.
42999         * modules/sys_select: Likewise.
43000         * modules/sys_socket: Likewise.
43001         * modules/sys_stat: Likewise.
43002         * modules/sys_time: Likewise.
43003         * modules/sysexits: Likewise.
43004         * modules/time: Likewise.
43005         * modules/unistd: Likewise.
43006         * modules/wchar: Likewise.
43007         * modules/wctype: Likewise.
43008         * modules/sys_stat: Change maintainer to "all".
43009         * modules/unistd: Likewise.
43010
43011 2007-06-20  Karl Berry  <karl@gnu.org>
43012
43013         * config/srclist.txt: track www changes in license files.
43014
43015 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
43016
43017         * build-aux/bootstrap: Remove stray dot.
43018         Make sure build_aux settings are honored when linking
43019         gnulib_extra_files.
43020
43021 2007-06-19  Eric Blake  <ebb9@byu.net>
43022
43023         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43024         Allow compilation on cygwin.
43025
43026 2007-06-19  Jim Meyering  <jim@meyering.net>
43027
43028         xreadlink-with-size: Remove module.  No longer used.
43029         Ex-callers now use xreadlink or mreadlink-with-size.
43030         * modules/xreadlink-with-size: Remove module.
43031         * lib/xreadlink-with-size.c: Remove file.
43032         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
43033         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
43034         just before the function definition *is* accurate.
43035
43036         Eliminate one way canonicalize_filename_mode could exit.
43037         * lib/canonicalize.c (canonicalize_filename_mode):
43038         Use mreadlink_with_size, not xreadlink_with_size.
43039
43040 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
43041
43042         Detect porting problems to FreeBSD/arm, which has time_t wider than
43043         long int.  Original problem reported for GNU diff by Xin Li in
43044         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
43045         * modules/getdate (Depends-on): Add intprops, verify.
43046         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
43047         is an integer type no wider than long int.
43048
43049 2007-06-18  Jim Meyering  <jim@meyering.net>
43050
43051         New module: mreadlink-with-size.
43052         * MODULES.html.sh: Add mreadlink-with-size.
43053         * modules/mreadlink-with-size: New module
43054         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
43055         not xreadlink-with-size.
43056         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
43057
43058 2007-06-16  Bruno Haible  <bruno@clisp.org>
43059
43060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
43061         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
43062         Reported by Gary V. Vaughan <gary@gnu.org>.
43063
43064 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
43065
43066         Revamp lchown so that it lives in unistd.h where it belongs.
43067         * lib/lchown.h: Remove.
43068         * lib/dirchownmod.c: Don't include lib/lchown.h.
43069         * lib/fchownat.c: Likewise.
43070         * lib/openat.c: Likewise.
43071         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
43072         does not follow symlinks.
43073         (EOPNOTSUPP): Define if not defined.
43074         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
43075         is defined to 0.
43076         (lchown): New decl.
43077         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
43078         Do not check for lchown decl.
43079         Set REPLACE_LCHOWN.
43080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
43081         REPLACE_LCHOWN.
43082         * modules/chown: Make it clear it follows symlinks.
43083         * modules/lchown: Make it clear it doesn't follow symlinks.
43084         (Files): Remove lib/lchown.h
43085         (Depends-on): Add unistd.
43086         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
43087         (Include): Include <unistd.h>, not "lchown.h".
43088         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
43089         REPLACE_LCHOWN.
43090
43091 2007-06-15  Jim Meyering  <jim@meyering.net>
43092
43093         Change license (GPL to LGPL) of fsusage and dependents.
43094         * modules/fsusage (License): Change to LGPL.
43095         * modules/full-read (License): Likewise.
43096         * modules/full-write (License): Likewise.
43097         * modules/safe-read (License): Likewise.
43098         * modules/safe-write (License): Likewise.
43099
43100 2007-06-14  Ben Pfaff  <blp@gnu.org>
43101
43102         Missing part of allocsa -> malloca transition.
43103         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
43104         gl_MALLOCA.
43105
43106 2007-06-12  Bruno Haible  <bruno@clisp.org>
43107
43108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
43109         to ia64, x86_64, i386.
43110         Reported by Eric Blake.
43111
43112 2007-06-12  Bruno Haible  <bruno@clisp.org>
43113
43114         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
43115         cross-compiling to x86_64.
43116
43117 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
43118
43119         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
43120         glitch reported by Ralf Wildenhues in
43121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
43122
43123         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
43124         Vin Shelton.
43125
43126 2007-06-11  Bruno Haible  <bruno@clisp.org>
43127
43128         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
43129         replacement string.
43130         Reported by Eric Blake.
43131
43132 2007-06-10  Bruno Haible  <bruno@clisp.org>
43133
43134         Prepare vasnprintf code for use with Unicode strings.
43135         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
43136         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
43137         TYPE_U32_STRING.
43138         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
43139         a_u32_string variants.
43140         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43141         * lib/printf-args.c: Don't include config.h and the specification
43142         header if PRINTF_FETCHARGS is already defined.
43143         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
43144         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
43145         TYPE_U16_STRING, TYPE_U32_STRING.
43146         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
43147         u16_directive, u16_directives, u32_directive, u32_directives): New
43148         types.
43149         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
43150         New declarations.
43151         * lib/printf-parse.c: Don't include config.h and the specification
43152         header if PRINTF_PARSE is already defined. Eliminate the set of
43153         parameters for WIDE_CHAR_VERSION; the user of this file must provide
43154         them now. Include c-ctype.h.
43155         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
43156         directive and CHAR_T_ONLY_ASCII.
43157         * lib/vasnprintf.c: Don't include config.h and the specification header
43158         if VASNPRINTF is already defined.
43159         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
43160         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
43161         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
43162         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
43163         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
43164         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
43165         code accordingly.
43166         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
43167         pad_ourselves also in this case, with the 'c' and 's' directives, and
43168         with a different notion of "width".
43169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
43170
43171 2007-06-10  Bruno Haible  <bruno@clisp.org>
43172
43173         * modules/unistr/u32-mbsnlen: New file.
43174         * lib/unistr/u32-mbsnlen.c: New file.
43175
43176         * modules/unistr/u16-mbsnlen: New file.
43177         * lib/unistr/u16-mbsnlen.c: New file.
43178
43179         * modules/unistr/u8-mbsnlen: New file.
43180         * lib/unistr/u8-mbsnlen.c: New file.
43181
43182         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
43183         declarations.
43184
43185 2007-06-10  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/string_.h (mbsnlen): New declaration.
43188         * lib/mbsnlen.c: New file.
43189         * m4/mbsnlen.m4: New file.
43190         * modules/mbsnlen: New file.
43191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
43192         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
43193         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
43194
43195 2007-06-10  Bruno Haible  <bruno@clisp.org>
43196
43197         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
43198
43199 2007-06-10  Bruno Haible  <bruno@clisp.org>
43200
43201         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
43202         * lib/mbuiter.h: Likewise.
43203
43204 2007-06-10  Bruno Haible  <bruno@clisp.org>
43205
43206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
43207         declaration.
43208
43209 2007-06-10  Karl Berry  <karl@gnu.org>
43210
43211         * config/srclist.txt: remove gettext entries, Bruno prefers
43212         to update individually.
43213
43214 2007-06-10  Bruno Haible  <bruno@clisp.org>
43215
43216         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
43217         'maxlen'. Ensure only length + width bytes are allocated, not
43218         length + 1 + width.
43219
43220 2007-06-09  Bruno Haible  <bruno@clisp.org>
43221
43222         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
43223         (CHAR_T): Remove macro.
43224         (VASNPRINTF): Update.
43225
43226 2007-06-09  Bruno Haible  <bruno@clisp.org>
43227
43228         * MODULES.html.sh (Unicode string functions): Add the new modules.
43229
43230         * modules/uniconv/u32-conv-to-enc: New file.
43231         * lib/uniconv/u32-conv-to-enc.c: New file.
43232         * modules/uniconv/u32-conv-to-enc-tests: New file.
43233         * tests/uniconv/test-u32-conv-to-enc.c: New file.
43234
43235         * modules/uniconv/u16-conv-to-enc: New file.
43236         * lib/uniconv/u16-conv-to-enc.c: New file.
43237         * lib/uniconv/u-conv-to-enc.h: New file.
43238         * modules/uniconv/u16-conv-to-enc-tests: New file.
43239         * tests/uniconv/test-u16-conv-to-enc.c: New file.
43240
43241         * modules/uniconv/u8-conv-to-enc: New file.
43242         * lib/uniconv/u8-conv-to-enc.c: New file.
43243         * modules/uniconv/u8-conv-to-enc-tests: New file.
43244         * tests/uniconv/test-u8-conv-to-enc.c: New file.
43245
43246         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43247         u32_conv_to_encoding): New declarations.
43248
43249 2007-06-09  Bruno Haible  <bruno@clisp.org>
43250
43251         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
43252
43253 2007-06-09  Bruno Haible  <bruno@clisp.org>
43254
43255         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
43256         * modules/malloca: Renamed from modules/allocsa, updated.
43257         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
43258         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
43259         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
43260         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
43261         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
43262         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
43263         * modules/xmalloca: Renamed from modules/xallocsa, updated.
43264         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
43265         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
43266         * modules/c-strcasestr (Depends-on): Update.
43267         * lib/c-strcasestr.c: Update.
43268         * modules/c-strstr (Depends-on): Update.
43269         * lib/c-strstr.c: Update.
43270         * modules/canonicalize-lgpl (Depends-on): Update.
43271         * lib/canonicalize-lgpl.c: Update.
43272         * modules/clean-temp (Depends-on): Update.
43273         * lib/clean-temp.c: Update.
43274         * modules/csharpcomp (Depends-on): Update.
43275         * lib/csharpcomp.c: Update.
43276         * modules/csharpexec (Depends-on): Update.
43277         * lib/csharpexec.c: Update.
43278         * modules/javacomp (Depends-on): Update.
43279         * lib/javacomp.c: Update.
43280         * modules/javaexec (Depends-on): Update.
43281         * lib/javaexec.c: Update.
43282         * modules/mbscasestr (Depends-on): Update.
43283         * lib/mbscasestr.c: Update.
43284         * modules/mbsstr (Depends-on): Update.
43285         * lib/mbsstr.c: Update.
43286         * modules/setenv (Depends-on): Update.
43287         * lib/setenv.c: Update.
43288         * modules/strcasestr (Depends-on): Update.
43289         * lib/strcasestr.c: Update.
43290         * modules/striconveha (Depends-on): Update.
43291         * lib/striconveha.c: Update.
43292         * modules/relocatable-prog-wrapper (Files): Update.
43293         * lib/relocwrapper.c: Update.
43294         * build-aux/install-reloc: Update.
43295         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
43296
43297 2007-06-08  Bruno Haible  <bruno@clisp.org>
43298
43299         Port to uClibc.
43300         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
43301         * lib/fpurge.c (fpurge): Likewise.
43302         * lib/freading.c (freading): Likewise.
43303         * lib/fseeko.c (rpl_fseeko): Likewise.
43304         * lib/fseterr.c (fseterr): Likewise.
43305         * lib/fwriting.c (fwriting): Likewise.
43306         * tests/test-fflush.c (main): Avoid a failure on uClibc.
43307
43308 2007-06-08  Bruno Haible  <bruno@clisp.org>
43309
43310         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
43311         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
43312         * modules/gettext (Files): Add m4/intlmacosx.m4.
43313
43314 2007-06-07  Bruno Haible  <bruno@clisp.org>
43315
43316         * modules/localename-tests: New file.
43317         * tests/test-localename.c: New file.
43318
43319         New module 'localename'.
43320         * lib/localename.h: New file.
43321         * lib/localename.c: New file, from GNU gettext.
43322         * m4/localename.m4: New file.
43323         * modules/localename: New file.
43324
43325 2007-06-07  Bruno Haible  <bruno@clisp.org>
43326
43327         Work around the lack of <wchar.h> on some builds of uClibc.
43328         * doc/headers/wchar.texi: Update.
43329         * lib/wchar_.h: Include <wchar.h> only if it exists.
43330         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
43331         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
43332         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
43333         doesn't exist.
43334         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
43335         * modules/mbfile (Depends-on): Add wchar.
43336         * modules/mbiter (Depends-on): Likewise.
43337         * modules/mbuiter (Depends-on): Likewise.
43338         Reported by Simon Josefsson.
43339
43340 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43341
43342         Work around problem reported by Steven M. Schweda in
43343         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
43344         Tru64 5.1B with the Compaq compiler environment installed declares
43345         an 'isblank' function but does not define it in the C library.
43346         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
43347         * lib/regex_internal.h (isblank): Likewise.
43348         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
43349         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
43350
43351 2007-06-05  Bruno Haible  <bruno@clisp.org>
43352
43353         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
43354         ia64.
43355         * modules/printf-safe: New file.
43356         * modules/fprintf-posix (Depends-on): Add printf-safe.
43357         * modules/printf-posix (Depends-on): Likewise.
43358         * modules/snprintf-posix (Depends-on): Likewise.
43359         * modules/sprintf-posix (Depends-on): Likewise.
43360         * modules/vasnprintf-posix (Depends-on): Likewise.
43361         * modules/vasprintf-posix (Depends-on): Likewise.
43362         * modules/vfprintf-posix (Depends-on): Likewise.
43363         * modules/vprintf-posix (Depends-on): Likewise.
43364         * modules/vsnprintf-posix (Depends-on): Likewise.
43365         * modules/vsprintf-posix (Depends-on): Likewise.
43366         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43367         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
43368         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
43369         "no" on i386, x86_64, ia64.
43370         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
43374         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43375         on i386, x86_64, ia64.
43376         * tests/test-vasnprintf-posix.c: Include float.h.
43377         (LDBL80_WORDS): New macro.
43378         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43379         on i386, x86_64, ia64.
43380         * tests/test-vasprintf-posix.c: Include float.h.
43381         (LDBL80_WORDS): New macro.
43382         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
43383         on i386, x86_64, ia64.
43384         * tests/test-snprintf-posix.c: Include float.h.
43385         * tests/test-sprintf-posix.c: Likewise.
43386         * tests/test-vsnprintf-posix.c: Likewise.
43387         * tests/test-vsprintf-posix.c: Likewise.
43388
43389 2007-06-05  Bruno Haible  <bruno@clisp.org>
43390
43391         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
43392         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
43393         non-IEEE numbers on i386, x86_64, ia64.
43394         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
43395         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
43396         * tests/test-isnanl.h: Include float.h.
43397         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
43398
43399 2007-06-05  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
43402         also the %a / %A. Handle the %a / %A code before this extra handling.
43403
43404 2007-06-05  Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
43407         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
43408
43409 2007-06-05  Bruno Haible  <bruno@clisp.org>
43410
43411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
43412         typo in variable name.
43413
43414 2007-06-05  Eric Blake  <ebb9@byu.net>
43415
43416         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
43417         Reported by Simon Josefsson.
43418
43419 2007-06-04  Bruno Haible  <bruno@clisp.org>
43420
43421         Avoid test failures on some PowerPC platforms.
43422         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
43423         Define differently for PowerPC.
43424         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
43425         Reported by Gary V. Vaughan <gary@gnu.org>.
43426
43427 2007-06-02  Bruno Haible  <bruno@clisp.org>
43428
43429         Fix test-stdint failure on FreeBSD/ia64.
43430         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
43431         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
43432         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
43433         * doc/headers/stdint.texi: Update.
43434
43435 2007-06-01  Bruno Haible  <bruno@clisp.org>
43436
43437         * tests/test-binary-io.c (main): Pass a third argument to open().
43438         Reported by Gary V. Vaughan <gary@gnu.org>.
43439
43440 2007-06-01  Bruno Haible  <bruno@clisp.org>
43441
43442         * doc/functions/frexpl.texi: Update for mingw.
43443
43444 2007-06-01  Bruno Haible  <bruno@clisp.org>
43445
43446         * tests/test-lseek.c (main): Disable test of errno for invalid third
43447         argument.
43448         * doc/functions/lseek.texi: Update.
43449         Reported by Gary V. Vaughan <gary@gnu.org>.
43450
43451 2007-05-28  Bruno Haible  <bruno@clisp.org>
43452
43453         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
43454
43455 2007-05-31  Eric Blake  <ebb9@byu.net>
43456
43457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
43458         cross compiling.
43459
43460 2007-05-30  Eric Blake  <ebb9@byu.net>
43461         and Bruno Haible  <bruno@clisp.org>
43462
43463         Work around mingw test failures exposed by m4-1.4.9b.
43464         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
43465         * tests/test-unistd.c: Disable uid_t and git_t tests for the
43466         moment.
43467
43468 2007-05-30  Bruno Haible  <bruno@clisp.org>
43469
43470         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
43471         assuming that they are closed. Needed on HP-UX 11.
43472
43473 2007-05-29  Bruno Haible  <bruno@clisp.org>
43474
43475         Fix a problem with #include_next.
43476         * lib/dirent_.h: Split the double-inclusion guard.
43477         * lib/fcntl_.h: Likewise.
43478         * lib/float_.h: Likewise.
43479         * lib/iconv_.h: Likewise.
43480         * lib/inttypes_.h: Likewise.
43481         * lib/locale_.h: Likewise.
43482         * lib/math_.h: Likewise.
43483         * lib/netinet_in_.h: Likewise.
43484         * lib/search_.h: Likewise.
43485         * lib/signal_.h: Likewise.
43486         * lib/stdint_.h: Likewise.
43487         * lib/stdio_.h: Likewise.
43488         * lib/stdlib_.h: Likewise.
43489         * lib/string_.h: Likewise.
43490         * lib/sys_select_.h: Likewise.
43491         * lib/sys_socket_.h: Likewise.
43492         * lib/sys_stat_.h: Likewise.
43493         * lib/sys_time_.h: Likewise.
43494         * lib/sysexits_.h: Likewise.
43495         * lib/time_.h: Likewise.
43496         * lib/unistd_.h: Likewise.
43497         * lib/wchar_.h: Likewise.
43498         * lib/wctype_.h: Likewise.
43499
43500 2007-05-29  Bruno Haible  <bruno@clisp.org>
43501
43502         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
43503         for the moment.
43504
43505 2007-05-29  Bruno Haible  <bruno@clisp.org>
43506
43507         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
43508         invocation.
43509         Reported by Eric Blake.
43510
43511 2007-05-29  Bruno Haible  <bruno@clisp.org>
43512
43513         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
43514         compiling case.
43515
43516 2007-05-29  Eric Blake  <ebb9@byu.net>
43517             Bruno Haible  <bruno@clisp.org>
43518
43519         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
43520         cross compiles.
43521
43522 2007-05-28  Eric Blake  <ebb9@byu.net>
43523
43524         * modules/closein-tests (test_closein_LDADD): Support test on
43525         cygwin with libtool.
43526
43527 2007-05-28  Bruno Haible  <bruno@clisp.org>
43528
43529         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
43530         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
43531         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
43532         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
43533         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
43534         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
43535         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
43536         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
43537         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
43538
43539 2007-05-28  Eric Blake  <ebb9@byu.net>
43540
43541         Unconditionally include <config.h> in unit tests.
43542         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
43543         * tests/test-allocsa.c, tests/test-arcfour.c,
43544         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
43545         tests/test-array_list.c, tests/test-array_oset.c,
43546         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
43547         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
43548         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
43549         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
43550         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
43551         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
43552         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
43553         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
43554         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
43555         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
43556         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
43557         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
43558         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
43559         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
43560         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
43561         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
43562         test-md5.c, test-memmem.c, test-printf-posix.c,
43563         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
43564         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
43565         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
43566         test-strcasestr.c, test-striconv.c, test-striconveh.c,
43567         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
43568         test-vasnprintf-posix2.c, test-vasnprintf.c,
43569         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
43570         test-vfprintf-posix.c, test-vprintf-posix.c,
43571         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
43572         test-xvasprintf.c: Likewise.
43573
43574 2007-05-28  Bruno Haible  <bruno@clisp.org>
43575
43576         * gnulib-tool (func_import): Remember the --with-tests command-line
43577         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
43578         Reported by Eric Blake.
43579
43580 2007-05-28  Bruno Haible  <bruno@clisp.org>
43581
43582         * modules/ftell-tests: New file.
43583         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
43584         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
43585
43586         * lib/ftell.c: New file.
43587         * modules/ftell: New file.
43588         * m4/ftell.m4: New file.
43589         * doc/functions/ftell.texi: Update.
43590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
43591         REPLACE_FTELL.
43592         * lib/stdio_.h (rpl_ftell): New declaration.
43593         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
43594         REPLACE_FTELL.
43595
43596 2007-05-28  Eric Blake  <ebb9@byu.net>
43597
43598         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
43599
43600 2007-05-28  Bruno Haible  <bruno@clisp.org>
43601
43602         * modules/fseek-tests: New file.
43603         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
43604         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
43605
43606         * lib/fseek.c: New file.
43607         * modules/fseek: New file.
43608         * m4/fseek.m4: New file.
43609         * doc/functions/fseek.texi: Update.
43610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
43611         REPLACE_FSEEK.
43612         * lib/stdio_.h (rpl_fseek): New declaration.
43613         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
43614         REPLACE_FSEEK.
43615
43616 2007-05-28  Bruno Haible  <bruno@clisp.org>
43617
43618         * lib/stdio_.h (fflush): More comments.
43619
43620 2007-05-28  Bruno Haible  <bruno@clisp.org>
43621
43622         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
43623         runtime test.
43624
43625 2007-05-28  Eric Blake  <ebb9@byu.net>
43626
43627         Improve lseek module.
43628         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
43629         * lib/unistd_.h (lseek): Scale back link warning message.
43630         * tests/test-lseek.c: Beef up test.
43631         * tests/test-lseek.sh: Exercise more facets of lseek.
43632         Reported by Bruno Haible.
43633
43634 2007-05-28  Bruno Haible  <bruno@clisp.org>
43635
43636         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
43637         to define.
43638
43639 2007-05-27  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
43642
43643 2007-05-27  Bruno Haible  <bruno@clisp.org>
43644
43645         * modules/openmp: New file.
43646         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
43647         Noah Misch.
43648
43649 2007-05-26  Bruno Haible  <bruno@clisp.org>
43650
43651         * modules/chdir-long (Depends-on): Add fchdir.
43652         * modules/chdir-safer (Depends-on): Likewise.
43653         * modules/fts (Depends-on): Likewise.
43654         * modules/fts-lgpl (Depends-on): Likewise.
43655         * modules/openat (Depends-on): Likewise.
43656         * modules/savewd (Depends-on): Likewise.
43657
43658 2007-05-24  Eric Blake  <ebb9@byu.net>
43659
43660         Fix lseek on mingw.
43661         * modules/lseek: New module.
43662         * m4/lseek.m4: New file.
43663         * lib/lseek.c: New file.
43664         * modules/lseek-tests: New file.
43665         * tests/test-lseek.c: New file.
43666         * tests/test-lseek.sh: New file.
43667         * MODULES.html.sh: Document lseek module.
43668         * modules/fflush (Depends-on): Add lseek, fseeko.
43669         * modules/fseeko (Depends-on): Likewise.
43670         * modules/ftello (Depends-on): Likewise.
43671         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
43672         broken.
43673         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
43674         broken.
43675         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
43676         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
43677         * lib/ftello.c (rpl_ftello): Likewise.
43678         * tests/test-fseeko.c (main): Test this.
43679         * tests/test-fseeko.sh: Likewise.
43680         * tests/test-ftello.c (main): Likewise.
43681         * tests/test-ftello.sh: Likewise.
43682         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
43683         implies replacing fseek.
43684         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
43685         HAVE_FTELLO.
43686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
43687         * modules/unistd (Makefile.am): Likewise.
43688         * lib/unistd_.h (lseek): Declare a replacement.
43689         * doc/functions/lseek.texi (lseek): Document this fix.
43690         * doc/functions/fseek.texi (fseek): Likewise.
43691         * doc/functions/ftell.texi (ftell): Likewise.
43692
43693 2007-05-24  Bruno Haible  <bruno@clisp.org>
43694
43695         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
43696         in the printed representation of a NaN.
43697         * tests/test-vasprintf-posix.c (test_function): Likewise.
43698         * tests/test-snprintf-posix.h (test_function): Likewise.
43699         * tests/test-sprintf-posix.h (test_function): Likewise.
43700         Reported by Eric Blake.
43701
43702 2007-05-23  Eric Blake  <ebb9@byu.net>
43703
43704         Fix fseeko/ftello on cygwin 1.5.24.
43705         * doc/functions/fseeko.texi (fseeko): Document the fix.
43706         * doc/functions/ftello.texi (ftello): Document the fix.
43707         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
43708         * doc/functions/stdout.text (stdout): New file.
43709         * doc/functions/stderr.text (stderr): New file.
43710         * doc/gnulib.texi (Function Substitutes): Use new files.
43711         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
43712         prior to 1.7.0.
43713         * tests/test-ftello.c (main): Likewise for ftello.
43714         * tests/test-fseeko.sh: New file.
43715         * tests/test-ftello.sh: New file.
43716         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
43717         with seekable stdin.
43718         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
43719         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
43720         (gl_REPLACE_FSEEKO): New macro.
43721         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
43722         * modules/fseeko (Files): Distribute fseeko.c.
43723         * modules/ftello (Files): Distribute ftello.c.
43724         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
43725         mode.
43726         * lib/ftello.c (rpl_ftello): New file.
43727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
43728         fseeko, ftello.
43729         (gl_STDIN_LARGE_OFFSET): New macro.
43730         * modules/stdio (Makefile.am): Perform the replacement.
43731         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
43732
43733 2007-05-23  Bruno Haible  <bruno@clisp.org>
43734
43735         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
43736         GNULIB_POSIXCHECK is defined.
43737
43738 2007-05-21  Bruno Haible  <bruno@clisp.org>
43739
43740         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
43741         Check also the output for NaN arguments. When cross-compiling, guess
43742         no on IRIX.
43743         * lib/vasnprintf.c: Update comments.
43744         * tests/test-vasnprintf-posix.c (strisnan): New function.
43745         (test_function): Use it.
43746         * tests/test-vasprintf-posix.c (strisnan): New function.
43747         (test_function): Use it.
43748         * tests/test-snprintf-posix.h (strisnan): New function.
43749         (test_function): Use it.
43750         * tests/test-sprintf-posix.h (strisnan): New function.
43751         (test_function): Use it.
43752         Reported by Eric Blake.
43753
43754 2007-05-20  Bruno Haible  <bruno@clisp.org>
43755
43756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
43757         numbers that fails on BeOS.
43758         * doc/functions/frexpl.texi: Update.
43759
43760 2007-05-20  Jim Meyering  <jim@meyering.net>
43761
43762         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
43763         forced upon us by glibc-2.6.
43764
43765 2007-05-20  Bruno Haible  <bruno@clisp.org>
43766
43767         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
43768         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
43769         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
43770         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
43771         NEED_PRINTF_INFINITE.
43772         (is_infinitel): New function.
43773         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
43774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
43775         gl_PREREQ_VASNPRINTF_INFINITE.
43776         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
43777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43778         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
43779         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
43780         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
43781         gl_PREREQ_VASNPRINTF_INFINITE.
43782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43789         * doc/functions/fprintf.texi: Update.
43790         * doc/functions/printf.texi: Update.
43791         * doc/functions/snprintf.texi: Update.
43792         * doc/functions/sprintf.texi: Update.
43793         * doc/functions/vfprintf.texi: Update.
43794         * doc/functions/vprintf.texi: Update.
43795         * doc/functions/vsnprintf.texi: Update.
43796         * doc/functions/vsprintf.texi: Update.
43797
43798 2007-05-20  Bruno Haible  <bruno@clisp.org>
43799
43800         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
43801         was not found in libc.
43802         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
43803
43804 2007-05-20  Bruno Haible  <bruno@clisp.org>
43805
43806         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43807         printed as "-nan" instead of "nan".
43808         * tests/test-vasprintf-posix.c (test_function): Likewise.
43809         * tests/test-snprintf-posix.h (test_function): Likewise.
43810         * tests/test-sprintf-posix.h (test_function): Likewise.
43811         Needed for HP-UX 11.
43812
43813 2007-05-20  Jim Meyering  <jim@meyering.net>
43814
43815         Fix buggy test for the fchownat-deref bug.
43816         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
43817         symlink required for the run-test.  Without it, this test would
43818         always declare that fchownat doesn't work, and client code would
43819         unnecessarily use the replacement function with fixed libc.
43820         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
43821         Reported by Greg Schafer.
43822
43823 2007-05-19  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
43826         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
43827         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
43828         Needed for IRIX 6.5 and Solaris 2.5.1.
43829
43830 2007-05-19  Bruno Haible  <bruno@clisp.org>
43831
43832         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
43833         (test_function): Skip tests involving -0.0 on platforms where
43834         -0.0 = 0.0.
43835         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
43836         (test_function): Skip tests involving -0.0 on platforms where
43837         -0.0 = 0.0.
43838         * tests/test-snprintf-posix.h (have_minus_zero): New function.
43839         (test_function): Skip tests involving -0.0 on platforms where
43840         -0.0 = 0.0.
43841         * tests/test-sprintf-posix.h (have_minus_zero): New function.
43842         (test_function): Skip tests involving -0.0 on platforms where
43843         -0.0 = 0.0.
43844         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
43845         tests.
43846         * tests/test-printf-posix.h (test_function): Likewise.
43847         * tests/test-printf-posix.output: Remove all -0.0 related results.
43848         Needed for IRIX 6.5.
43849
43850 2007-05-19  Bruno Haible  <bruno@clisp.org>
43851
43852         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
43853         printed as "nan0x7fffffff" instead of "nan".
43854         * tests/test-vasprintf-posix.c (test_function): Likewise.
43855         * tests/test-snprintf-posix.h (test_function): Likewise.
43856         * tests/test-sprintf-posix.h (test_function): Likewise.
43857         * tests/test-fprintf-posix.h (NaN): Remove macro.
43858         (test_function): Remove all NaN related tests.
43859         * tests/test-printf-posix.h (NaN): Remove macro.
43860         (test_function): Remove all NaN related tests.
43861         * tests/test-printf-posix.output: Remove all NaN related results.
43862         Needed for IRIX 6.5.
43863
43864 2007-05-19  Bruno Haible  <bruno@clisp.org>
43865
43866         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
43867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
43868
43869 2007-05-19  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/float_.h: New file.
43872         * m4/float_h.m4: New file.
43873         * modules/float: New file.
43874         * modules/isnanl (Dependencies): Add float.
43875         * modules/isnanl-nolibm (Dependencies): Likewise.
43876         * modules/mathl (Dependencies): Likewise.
43877         * modules/printf-frexpl (Dependencies): Likewise.
43878         * modules/signbit (Dependencies): Likewise.
43879         * modules/vasnprintf (Dependencies): Likewise.
43880         * doc/headers/float.texi: Update.
43881
43882 2007-05-19  Jim Meyering  <jim@meyering.net>
43883
43884         * lib/utimens.c (gl_futimens): Rename from futimens,
43885         now that glibc-2.6 declares futimens.
43886         * lib/utimens.h: Likewise.
43887
43888 2007-05-19  Bruno Haible  <bruno@clisp.org>
43889
43890         Avoid test failures on mingw.
43891         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
43892         * tests/test-printf-posix.sh: Likewise.
43893         * tests/test-vfprintf-posix.sh: Likewise.
43894         * tests/test-vprintf-posix.sh: Likewise.
43895
43896 2007-05-19  Bruno Haible  <bruno@clisp.org>
43897
43898         Fix *printf result for NaN, Inf, -0.0 on mingw.
43899         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
43900         * lib/vasnprintf.c: Include math.h and isnan.h.
43901         (is_infinite_or_zero): New function.
43902         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
43903         values in the %f, %F, %e, %E, %g, %G directives.
43904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
43905         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43906         gl_PRINTF_INFINITE and test its result. Invoke
43907         gl_PREREQ_VASNPRINTF_INFINITE.
43908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43912         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43915         * doc/functions/fprintf.texi: Update.
43916         * doc/functions/printf.texi: Update.
43917         * doc/functions/snprintf.texi: Update.
43918         * doc/functions/sprintf.texi: Update.
43919         * doc/functions/vfprintf.texi: Update.
43920         * doc/functions/vprintf.texi: Update.
43921         * doc/functions/vsnprintf.texi: Update.
43922         * doc/functions/vsprintf.texi: Update.
43923
43924 2007-05-19  Bruno Haible  <bruno@clisp.org>
43925
43926         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
43927         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
43928         Instead of multiplying with 10^k, set extra_zeroes to k.
43929         (scale10_round_long_double): Remove function.
43930
43931 2007-05-18  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
43934         introduced on 2007-05-06.
43935
43936 2007-05-18  Bruno Haible  <bruno@clisp.org>
43937
43938         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
43939         %g directives.
43940         * tests/test-vasprintf-posix.c (test_function): Likewise.
43941         * tests/test-snprintf-posix.h (test_function): Likewise.
43942         * tests/test-sprintf-posix.h (test_function): Likewise.
43943
43944 2007-05-18  Bruno Haible  <bruno@clisp.org>
43945
43946         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
43947         (strmatch): New function.
43948         (test_function): Test the %f directive on numbers of various exponents.
43949         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
43950         (strmatch): New function.
43951         (test_function): Test the %f directive on numbers of various exponents.
43952         * tests/test-snprintf-posix.h (strmatch): New function.
43953         (test_function): Test the %f directive on numbers of various exponents.
43954         * tests/test-sprintf-posix.h (strmatch): New function.
43955         (test_function): Test the %f directive on numbers of various exponents.
43956         * tests/test-snprintf-posix.c (SIZEOF): New macro.
43957         * tests/test-sprintf-posix.c (SIZEOF): New macro.
43958         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
43959         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
43960
43961 2007-05-18  Bruno Haible  <bruno@clisp.org>
43962
43963         Add support for 'long double' number output.
43964         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
43965         * lib/vasnprintf.c: Include math.h and float+.h.
43966         (mp_limb_t): New type.
43967         (GMP_LIMB_BITS): New macro.
43968         (mp_twolimb_t): New type.
43969         (GMP_TWOLIMB_BITS): New macro.
43970         (mpn_t): New type.
43971         (multiply, divide, convert_to_decimal, decode_long_double,
43972         scale10_round_long_double, scale10_round_decimal_long_double,
43973         floorlog10l): New functions.
43974         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
43975         for the %f, %F, %e, %E, %g, %G directives.
43976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
43977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43978         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
43979         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
43980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43987         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
43988         * modules/snprintf-posix (Depends-on): Likewise.
43989         * modules/sprintf-posix (Depends-on): Likewise.
43990         * modules/vasnprintf-posix (Depends-on): Likewise.
43991         * modules/vasprintf-posix (Depends-on): Likewise.
43992         * modules/vfprintf-posix (Depends-on): Likewise.
43993         * modules/vsnprintf-posix (Depends-on): Likewise.
43994         * modules/vsprintf-posix (Depends-on): Likewise.
43995         * modules/vasnprintf (Files): Add lib/float+.h.
43996         * doc/functions/fprintf.texi: Update.
43997         * doc/functions/printf.texi: Update.
43998         * doc/functions/snprintf.texi: Update.
43999         * doc/functions/sprintf.texi: Update.
44000         * doc/functions/vfprintf.texi: Update.
44001         * doc/functions/vprintf.texi: Update.
44002         * doc/functions/vsnprintf.texi: Update.
44003         * doc/functions/vsprintf.texi: Update.
44004
44005 2007-05-18  Bruno Haible  <bruno@clisp.org>
44006
44007         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
44008
44009 2007-05-18  Bruno Haible  <bruno@clisp.org>
44010
44011         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
44012         for printing 64-bit integers. Needed for mingw.
44013
44014 2007-05-18  Bruno Haible  <bruno@clisp.org>
44015
44016         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44017         gl_FUNC_FREXPL_WORKS.
44018         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
44019
44020 2007-05-18  Bruno Haible  <bruno@clisp.org>
44021
44022         * modules/frexpl-nolibm-tests: New file.
44023
44024         * modules/frexpl-nolibm: New file.
44025         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
44026
44027 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44028
44029         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
44030         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44031         GCC 4.2, which otherwise issues a lot of warnings.
44032         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
44033         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
44034         Likewise.
44035         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
44036         * modules/iconv_open (iconv.h): Likewise.
44037         * modules/locale (locale.h): Likewise.
44038         * modules/netinet_in (netinet/in.h): Likewise.
44039         * modules/sys_select (sys_select.h): Likewise.
44040         * modules/sys_socket (sys/socket.h): Likewise.
44041         * modules/sys_stat (sys/stat.h): Likewise.
44042         * modules/sysexits (sysexits.h): Likewise.
44043         * modules/unistd (unistd.h): Likewise.
44044
44045 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44046
44047         * modules/closein-tests (Makefile.am): Distribute
44048         `test-closein.sh'.
44049
44050 2007-05-17  Bruno Haible  <bruno@clisp.org>
44051
44052         * tests/test-printf-posix.output: Renamed from
44053         tests/test-fprintf-posix.out.
44054         * modules/fprintf-posix-tests: Update.
44055         * modules/printf-posix-tests: Update.
44056         * modules/vfprintf-posix-tests: Update.
44057         * modules/vprintf-posix-tests: Update.
44058         * tests/test-fprintf-posix.sh: Update.
44059         * tests/test-printf-posix.sh: Update.
44060         * tests/test-vfprintf-posix.sh: Update.
44061         * tests/test-vprintf-posix.sh: Update.
44062         Reported by Ralf Wildenhues.
44063
44064 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44065
44066         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
44067         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
44068         GCC 4.2, which otherwise issues a lot of warnings.
44069         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
44070         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
44071         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
44072         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
44073         it should no longer be needed.
44074         * lib/string_.h: Likewise.
44075         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
44076         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
44077         * modules/inttypes (inttypes.h): Likewise.
44078         * modules/math (math.h): Likewise.
44079         * modules/search (search.h): Likewise.
44080         * modules/signal (signal.h): Likewise.
44081         * modules/stdint (stdint.h): Likewise.
44082         * modules/stdio (stdio.h): Likewise.
44083         * modules/stdlib (stdlib.h): Likewise.
44084         * modules/string (string.h): Likewise.
44085         * modules/sys_time (sys/time.h): Likewise.
44086         * modules/time (time.h): Likewise.
44087         * modules/wchar (wchar.h): Likewise.
44088         * modules/wctype (wtype.h): Likewise.
44089
44090 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44091
44092         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
44093
44094 2007-05-13  Bruno Haible  <bruno@clisp.org>
44095
44096         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
44097         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44098         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
44099         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44100         (gl_PREREQ_STRTOK_R): Don't require it here.
44101
44102 2007-05-13  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
44105         when used in C++ mode.
44106
44107 2007-05-12  Bruno Haible  <bruno@clisp.org>
44108
44109         * lib/linebuffer.h: Tweak doc.
44110         * lib/linebuffer.c: Likewise.
44111
44112 2007-05-12  James Youngman  <jay@gnu.org>
44113
44114         * lib/linebuffer.c (readlinebuffer_delim): New function,
44115         like readlinebuffer, but use a caller-specified delimiter.
44116         (readlinebuffer): Just call readlinebuffer_delim with '\n'
44117         as the delimiter.
44118         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
44119
44120 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44121
44122         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
44123         * modules/openat (Files): Remove openat-die.c.
44124         (Depends-on): Add openat-die.
44125         * modules/openat-die: New module.
44126
44127 2007-05-06  Bruno Haible  <bruno@clisp.org>
44128
44129         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
44130         Update with info about Cygwin.
44131         * doc/functions/fprintf.texi: Update.
44132         * doc/functions/printf.texi: Update.
44133         * doc/functions/snprintf.texi: Update.
44134         * doc/functions/sprintf.texi: Update.
44135         * doc/functions/vfprintf.texi: Update.
44136         * doc/functions/vprintf.texi: Update.
44137         * doc/functions/vsnprintf.texi: Update.
44138         * doc/functions/vsprintf.texi: Update.
44139         Reported by Eric Blake.
44140
44141 2007-05-06  Bruno Haible  <bruno@clisp.org>
44142
44143         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
44144         padding ourselves for the floating-point directives.
44145         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
44146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
44147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44148         gl_PRINTF_FLAG_ZERO and test its result. Invoke
44149         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
44150         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44157         * tests/test-snprintf-posix.h (test_function): Also check the width
44158         and some flags in the %f directive.
44159         * tests/test-sprintf-posix.h (test_function): Likewise.
44160         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44161         * tests/test-vasprintf-posix.c (test_function): Likewise.
44162         * doc/functions/fprintf.texi: Update.
44163         * doc/functions/printf.texi: Update.
44164         * doc/functions/snprintf.texi: Update.
44165         * doc/functions/sprintf.texi: Update.
44166         * doc/functions/vfprintf.texi: Update.
44167         * doc/functions/vprintf.texi: Update.
44168         * doc/functions/vsnprintf.texi: Update.
44169         * doc/functions/vsprintf.texi: Update.
44170
44171 2007-05-06  Bruno Haible  <bruno@clisp.org>
44172
44173         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
44174         pass the ' flag character to sprintf or snprintf.
44175         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
44176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
44177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44178         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
44179         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
44180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
44182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44187         * tests/test-snprintf-posix.h (test_function): Also check the grouping
44188         flag.
44189         * tests/test-sprintf-posix.h (test_function): Likewise.
44190         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44191         * tests/test-vasprintf-posix.c (test_function): Likewise.
44192         * doc/functions/fprintf.texi: Update.
44193         * doc/functions/printf.texi: Update.
44194         * doc/functions/snprintf.texi: Update.
44195         * doc/functions/sprintf.texi: Update.
44196         * doc/functions/vfprintf.texi: Update.
44197         * doc/functions/vprintf.texi: Update.
44198         * doc/functions/vsnprintf.texi: Update.
44199         * doc/functions/vsprintf.texi: Update.
44200
44201 2007-05-01  Bruno Haible  <bruno@clisp.org>
44202
44203         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
44204
44205 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
44206
44207         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
44208         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
44209
44210 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44211
44212         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
44213         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
44214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
44215
44216 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
44217
44218         * lib/argp-help.c (struct hol_entry): New member `ord'.
44219         (HOL_ENTRY_PTRCMP): Use ord for comparison
44220         (hol_sort): Initialize ord.
44221
44222 2007-05-01  Bruno Haible  <bruno@clisp.org>
44223
44224         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
44225         Reported by Eric Blake.
44226         * doc/gnulib.texi (Function Substitutes): Update.
44227
44228 2007-05-01  Bruno Haible  <bruno@clisp.org>
44229
44230         * doc/functions.texi: Remove file, now redundant through
44231         doc/functions/*.texi.
44232
44233 2007-05-01  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/argp (Depends-on): Add sleep.
44236
44237 2007-05-01  Bruno Haible  <bruno@clisp.org>
44238
44239         * modules/sleep-tests: New file.
44240         * tests/test-sleep.c: New file.
44241
44242         * modules/sleep: New file.
44243         * lib/sleep.c: New file.
44244         * m4/sleep.m4: New file.
44245         * lib/unistd_.h (sleep): New declaration.
44246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
44247         HAVE_SLEEP.
44248         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
44249         * doc/functions/sleep.texi: Document the sleep module.
44250
44251 2007-05-01  Bruno Haible  <bruno@clisp.org>
44252
44253         * lib/sigprocmask.h: Remove file.
44254         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
44255         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
44256         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
44257         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
44258         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
44259         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
44260         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
44261         HAVE_SIGSET_T as a shell variable.
44262         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
44263         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
44264         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
44265         (Depends-on): Add signal. Remove verify.
44266         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
44267         (Include): Mention <signal.h> instead of sigprocmask.h.
44268         * NEWS: Mention the change.
44269         * lib/fatal-signal.c: Don't include sigprocmask.h.
44270
44271 2007-05-01  Bruno Haible  <bruno@clisp.org>
44272
44273         * modules/signal: New file.
44274         * lib/signal_.h: New file.
44275         * m4/signal_h.m4: New file.
44276
44277 2007-05-01  Bruno Haible  <bruno@clisp.org>
44278
44279         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
44280         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
44281         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
44282         HAVE_WCTYPE_CTMP_BUG into wctype.h.
44283
44284 2007-05-01  Bruno Haible  <bruno@clisp.org>
44285
44286         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
44287         configure time.
44288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
44289         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
44290         * modules/sys_stat (Makefile.am): Substitute their values into
44291         sys/stat.h.
44292
44293 2007-05-01  Bruno Haible  <bruno@clisp.org>
44294
44295         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
44296         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
44297         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
44298
44299 2007-05-01  Bruno Haible  <bruno@clisp.org>
44300
44301         * doc/header/assert.texi: Undo last change: don't mention the gnulib
44302         'assert' module here.
44303
44304 2007-05-01  Bruno Haible  <bruno@clisp.org>
44305
44306         * doc/functions/*.texi: New files.
44307         * doc/functions/google-ranking.txt: New file.
44308         * doc/gnulib.texi (Function Substitutes): New chapter.
44309         (ctime, inet_ntoa): Remove sections.
44310         * doc/ctime.texi: Remove file.
44311         * doc/inet_ntoa.texi: Remove file.
44312         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
44313         dependencies.
44314         (%.info): New rule, specifying a --reference-limit.
44315
44316 2007-05-01  Bruno Haible  <bruno@clisp.org>
44317
44318         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
44319
44320 2007-05-01  Bruno Haible  <bruno@clisp.org>
44321
44322         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
44323         the portability of 'mkdir' to mingw systems.
44324
44325 2007-05-01  Bruno Haible  <bruno@clisp.org>
44326
44327         * doc/headers/google-ranking.txt: New file.
44328
44329 2007-04-30  Eric Blake  <ebb9@byu.net>
44330
44331         Prefer fseeko to fseek.
44332         * modules/getpass (Depends-on): Add fseeko.
44333         * lib/getpass.c (getpass): Use fseeko, not fseek.
44334
44335 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
44336
44337         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
44338         assumes the sorting is stable, while most qsort implementations
44339         are not.  Use argument addresses to ensure they never compare as
44340         equal.
44341
44342         * tests/test-argp-2.sh (usage-indent test): Fix output
44343         (func_compare): Restore diff options
44344         * tests/test-argp.c: Restore #include "progname.h"
44345
44346 2007-04-29  Bruno Haible  <bruno@clisp.org>
44347
44348         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
44349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44350         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
44351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44352         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
44353         (configure.ac): Define CHECK_SNPRINTF_POSIX.
44354         (TESTS, check_PROGRAMS): Add test-snprintf.
44355         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
44356         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
44357         (TESTS, check_PROGRAMS): Add test-vsnprintf.
44358         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
44359         assertions that fail on HP-UX, OSF/1, or IRIX.
44360         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
44361
44362 2007-04-29  Bruno Haible  <bruno@clisp.org>
44363
44364         * MODULES.html.sh (posix_functions): Remove 'contents'.
44365
44366 2007-04-29  Karl Berry  <karl@gnu.org>
44367
44368         * config/srclist.txt (gendocs_template_min): new entry.
44369
44370 2007-04-29  Bruno Haible  <bruno@clisp.org>
44371
44372         Work around fpurge bug on BSD systems.
44373         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
44374         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
44375         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
44376         fpurge to rpl_fpurge if the system already has this function.
44377         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
44378         the case where the system already has this function. Correct invariants
44379         on BSD systems.
44380         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
44381         BSD systems.
44382
44383 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44384
44385         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
44386         proposed by Sven Verdoolaege.
44387
44388         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
44389         options.
44390         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
44391         (usage and help tests): Update
44392
44393 2007-04-29  Bruno Haible  <bruno@clisp.org>
44394
44395         * tests/test-fflush.c (main): Use a file of size 17, not 10.
44396         Print more information in case of failure. Disable a test on BeOS.
44397
44398 2007-04-29  Bruno Haible  <bruno@clisp.org>
44399
44400         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
44401         This helps debugging on systems on which no gdb is available.
44402
44403 2007-04-29  Bruno Haible  <bruno@clisp.org>
44404
44405         * lib/freading.h: Improve comments.
44406         * lib/fwriting.h: Likewise.
44407         * tests/test-freading.c (main): Don't check freading immediately after
44408         repositioning. Needed for glibc.
44409
44410 2007-04-29  Bruno Haible  <bruno@clisp.org>
44411
44412         * lib/freading.c (freading): Trivial simplification.
44413
44414 2007-04-28  Bruno Haible  <bruno@clisp.org>
44415
44416         * tests/test-fwriting.c (main): Also test the interaction between
44417         fflush and fwriting.
44418         * modules/fwriting-tests (Depends-on): Add fflush.
44419
44420         * tests/test-freading.c (main): Also test the interaction between
44421         fflush and freading.
44422         * modules/freading-tests (Depends-on): Add fflush.
44423
44424 2007-04-28  Bruno Haible  <bruno@clisp.org>
44425
44426         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
44427         fseeko and ftello.
44428         Suggested by Eric Blake.
44429
44430 2007-04-28  Jim Meyering  <jim@meyering.net>
44431
44432         Avoid false-negative in gl_STDINT_H's C99 conformance test.
44433         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
44434         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
44435
44436 2007-04-27  Eric Blake  <ebb9@byu.net>
44437
44438         * doc/headers/assert.texi (assert.h): Document assert module use.
44439
44440 2007-04-27  Bruno Haible  <bruno@clisp.org>
44441
44442         * doc/headers/*.texi: New files.
44443         * doc/gnulib.texi (Header File Substitutes): New chapter.
44444         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
44445         dependencies.
44446         (standards.info ,standards.html, standards.dvi): Update dependencies.
44447         (mostlyclean, clean): New targets.
44448
44449 2007-04-27  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
44452         * modules/sysexits (Files, Makefile.am): Update.
44453
44454         * lib/sys_socket_.h: Renamed from lib/socket_.h.
44455         * modules/sys_socket (Files, Makefile.am): Update.
44456
44457         * lib/sys_stat_.h: Renamed from lib/stat_.h.
44458         * modules/sys_stat (Files, Makefile.am): Update.
44459
44460 2007-04-27  Eric Blake  <ebb9@byu.net>
44461
44462         * lib/freading.h: Improve comments.
44463         * lib/fwriting.h: Likewise.
44464         * lib/fflush.c: Likewise.
44465
44466         Fix closein for mingw.
44467         * modules/closein-tests: Add tests for closein.
44468         * tests/test-closein.c: New file.
44469         * tests/test-closein.sh: Likewise.
44470         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
44471         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
44472
44473 2007-04-27  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
44476         version is < 6.
44477         * lib/math_.h [__DECC]: Likewise.
44478         * lib/stdio_.h [__DECC]: Likewise.
44479         * lib/stdlib_.h [__DECC]: Likewise.
44480         * lib/string_.h [__DECC]: Likewise.
44481         * lib/time_.h [__DECC]: Likewise.
44482         * lib/wchar_.h [__DECC]: Likewise.
44483         * lib/wctype_.h [__DECC]: Likewise.
44484
44485 2007-04-27  Bruno Haible  <bruno@clisp.org>
44486
44487         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
44488
44489 2007-04-27  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/fflush.c: Add comments.
44492         * modules/fpurge-tests (Depends-on): Add fflush.
44493         * modules/freadable-tests (Depends-on): Likewise.
44494         * modules/fwritable-tests (Depends-on): Likewise.
44495
44496 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
44497
44498         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
44499         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
44500         Report by Bruno Haible <bruno@clisp.org>.
44501
44502 2007-04-26  Eric Blake  <ebb9@byu.net>
44503
44504         Fix fflush on mingw.
44505         * modules/fflush (Depends-on): Add freading.
44506         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
44507         but unread data.
44508
44509 2007-04-26  Eric Blake  <ebb9@byu.net>
44510         and Bruno Haible  <bruno@clisp.org>
44511
44512         Implement freading and fwriting.
44513         * lib/freading.c: New file.
44514         * lib/freading.h: Likewise.
44515         * m4/freading.m4: Likewise.
44516         * modules/freading: Likewise.
44517         * modules/freading-tests: Likewise.
44518         * tests/test-freading.c: Likewise.
44519         * lib/fwriting.c: New file.
44520         * lib/fwriting.h: Likewise.
44521         * m4/fwriting.m4: Likewise.
44522         * modules/fwriting: Likewise.
44523         * modules/fwriting-tests: Likewise.
44524         * tests/test-fwriting.c: Likewise.
44525         * MODULES.html.sh (File stream based Input/Output): Mention them.
44526
44527 2007-04-26  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
44530         'long' when we assume it.
44531         Suggested by Eric Blake.
44532
44533 2007-04-26  Bruno Haible  <bruno@clisp.org>
44534
44535         Ensure fseeko, ftello are declared on glibc systems.
44536         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
44537         * modules/fseeko (configure.ac-early): Likewise.
44538         * modules/ftello (configure.ac-early): Likewise.
44539         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
44540         AC_FUNC_FSEEKO for this.
44541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
44542         (gl_CHECK_FSEEKO): Remove macro.
44543
44544 2007-04-26  Bruno Haible  <bruno@clisp.org>
44545
44546         * tests/test-fflush.c (main): Also check the ftell result after
44547         fflush and fseek/fseeko.
44548         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
44549         file descriptor position cache in the stream.
44550         * lib/fseeko.c (rpl_fseeko): Likewise.
44551
44552 2007-04-26  Bruno Haible  <bruno@clisp.org>
44553
44554         * modules/fflush-tests (Depends-on): Add fseeko.
44555
44556 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
44557             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44558
44559         * lib/argz_.h: ensure error_t definition is obtained in same
44560         mechanism system argz.h would have.
44561         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
44562         argz facilities are known bad.  Err on the side of caution if
44563         cross-compiling.
44564
44565 2007-04-25  Eric Blake  <ebb9@byu.net>
44566
44567         * lib/fpurge.c (includes): Use stdlib.h for free.
44568         * tests/test-fflush.c (main): Also test fflush-fseeko.
44569
44570 2007-04-25  Bruno Haible  <bruno@clisp.org>
44571
44572         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
44573         * lib/fseeko.c: New file.
44574         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
44575         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
44576         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
44577         gl_FUNC_FSEEKO.
44578         (gl_FUNC_FSEEKO): Invoke it.
44579         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
44580         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
44581         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
44582
44583 2007-04-25  Bruno Haible  <bruno@clisp.org>
44584
44585         * modules/fflush (Depends-on): Add ftello.
44586
44587 2007-04-25  Bruno Haible  <bruno@clisp.org>
44588
44589         * modules/ftello-tests: New file.
44590         * tests/test-ftello.c: New file.
44591
44592         * modules/ftello: New file.
44593         * m4/ftello.m4: New file.
44594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
44595         HAVE_FTELLO.
44596         * lib/stdio_.h (ftello): New declaration.
44597         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
44598         HAVE_FTELLO.
44599
44600 2007-04-25  Bruno Haible  <bruno@clisp.org>
44601
44602         * modules/fseeko-tests: New file.
44603         * tests/test-fseeko.c: New file.
44604
44605         * modules/fseeko: New file.
44606         * m4/fseeko.m4: New file.
44607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
44608         HAVE_FSEEKO.
44609         * lib/stdio_.h (fseeko): New declaration.
44610         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
44611         HAVE_FSEEKO.
44612
44613 2007-04-25  Bruno Haible  <bruno@clisp.org>
44614
44615         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
44616
44617 2007-04-25  Bruno Haible  <bruno@clisp.org>
44618
44619         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
44620         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
44621         * tests/test-unistd.c: Likewise.
44622         * tests/test-fcntl.c: Likewise.
44623
44624 2007-04-23  Eric Blake  <ebb9@byu.net>
44625
44626         * lib/fflush.c: Fix missing include.
44627         Reported by Bruno Haible.
44628
44629 2007-04-23  Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
44632         Reported by Eric Blake.
44633
44634 2007-04-23  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
44637
44638 2007-04-23  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
44641
44642 2007-04-23  Bruno Haible  <bruno@clisp.org>
44643
44644         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
44645         Needed on HP-UX 11.
44646
44647 2007-04-16  Eric Blake  <ebb9@byu.net>
44648
44649         Make fflush rely on fpurge.
44650         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
44651         open coding all variants.
44652         * modules/fflush (Depends-on): Add fpurge and unistd.
44653         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
44654         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
44655
44656         Fix --with-tests compilation on cygwin.
44657         * modules/argmatch-tests (Makefile.am): List gnulib library first
44658         in LDADD.
44659         * modules/argp-tests (Makefile.am): Likewise.
44660         * modules/array-list-tests (Makefile.am): Likewise.
44661         * modules/array-oset-tests (Makefile.am): Likewise.
44662         * modules/avltree-list-tests (Makefile.am): Likewise.
44663         * modules/avltree-oset-tests (Makefile.am): Likewise.
44664         * modules/avltreehash-list-tests (Makefile.am): Likewise.
44665         * modules/carray-list-tests (Makefile.am): Likewise.
44666         * modules/dirname-tests (Makefile.am): Likewise.
44667         * modules/frexp-tests (Makefile.am): Likewise.
44668         * modules/isnanl-tests (Makefile.am): Likewise.
44669         * modules/linked-list-tests (Makefile.am): Likewise.
44670         * modules/linkedhash-list-tests (Makefile.am): Likewise.
44671         * modules/lock-tests (Makefile.am): Likewise.
44672         * modules/rbtree-list-tests (Makefile.am): Likewise.
44673         * modules/rbtree-oset-tests (Makefile.am): Likewise.
44674         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
44675         * modules/tls-tests (Makefile.am): Likewise.
44676         * modules/tsearch-tests (Makefile.am): Likewise.
44677         * modules/xvasprintf-tests (Makefile.am): Likewise.
44678
44679         Fix fpurge for cygwin.
44680         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
44681         value.
44682         * modules/fpurge-tests (Depends-on): Clean up trash.
44683
44684 2007-04-16  Simon Josefsson  <simon@josefsson.org>
44685
44686         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
44687
44688         * m4/autobuild.m4: Re-indent.
44689
44690 2007-04-13  Bruno Haible  <bruno@clisp.org>
44691
44692         * modules/fpurge-tests: New file.
44693         * tests/test-fpurge.c: New file.
44694
44695         * modules/fpurge: New file.
44696         * lib/fpurge.h: New file.
44697         * lib/fpurge.c: New file.
44698         * m4/fpurge.m4: New file.
44699
44700 2007-04-13  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/fbufmode-tests: New file.
44703         * tests/test-fbufmode.c: New file.
44704
44705         * modules/fbufmode: New file.
44706         * lib/fbufmode.h: New file.
44707         * lib/fbufmode.c: New file.
44708         * m4/fbufmode.m4: New file.
44709
44710 2007-04-13  Bruno Haible  <bruno@clisp.org>
44711
44712         * modules/fwritable-tests: New file.
44713         * tests/test-fwritable.c: New file.
44714
44715         * modules/fwritable: New file.
44716         * lib/fwritable.h: New file.
44717         * lib/fwritable.c: New file.
44718         * m4/fwritable.m4: New file.
44719
44720 2007-04-13  Bruno Haible  <bruno@clisp.org>
44721
44722         * modules/freadable-tests: New file.
44723         * tests/test-freadable.c: New file.
44724
44725         * modules/freadable: New file.
44726         * lib/freadable.h: New file.
44727         * lib/freadable.c: New file.
44728         * m4/freadable.m4: New file.
44729
44730 2007-04-13  Bruno Haible  <bruno@clisp.org>
44731
44732         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
44733         MOSTLYCLEANFILES.
44734
44735 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44736
44737         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
44738         gzip bootstrap.conf to avoid dragging in i18n machinery.
44739         (gnulib_tool_option): Use it.
44740
44741 2007-04-13  Bruno Haible  <bruno@clisp.org>
44742
44743         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
44744         %F directives.
44745         * tests/test-vasprintf-posix.c (test_function): Likewise.
44746         * tests/test-snprintf-posix.h (test_function): Likewise.
44747         * tests/test-sprintf-posix.h (test_function): Likewise.
44748         * tests/test-fprintf-posix.h (test_function): Likewise.
44749         * tests/test-printf-posix.h (test_function): Likewise.
44750         * tests/test-fprintf-posix.out: Likewise.
44751
44752 2007-04-13  Bruno Haible  <bruno@clisp.org>
44753
44754         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
44755         * modules/tls-tests (configure.ac): Likewise.
44756         Reported by Arto C. Nirkko <anirkko@insel.ch>.
44757
44758 2007-04-13  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/tls.c (glthread_tls_get): Fix return type.
44761         Patch by Arto C. Nirkko <anirkko@insel.ch>.
44762
44763 2007-04-12  Eric Blake  <ebb9@byu.net>
44764
44765         * modules/gettime (Depends-on): Remove gettime.
44766         Reported by Dmitry V. Levin.
44767
44768 2007-04-12  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/fflush (Include): Mention <stdio.h>.
44771         * modules/strtoimax (Include): Mention <inttypes.h>.
44772         * modules/strtoumax (Include): Likewise.
44773
44774 2007-04-12  Eric Blake  <ebb9@byu.net>
44775
44776         * .cvsignore: New file.
44777         * .gitignore: Likewise.
44778
44779 2007-04-12  Bruno Haible  <bruno@clisp.org>
44780
44781         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
44782         not before, since $(LDADD) often contains libgnu.a.
44783         * modules/striconv-tests (test_striconv_LDADD): Likewise.
44784         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
44785         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
44786         Needed on Cygwin.
44787
44788 2007-04-12  Eric Blake  <ebb9@byu.net>
44789
44790         Work around glibc's failure to flush stdin on fclose.
44791         * lib/closein.c (close_stdin): Flush stdin before closing.
44792
44793         Work around glibc's failure to reset seekable stdin on exit.
44794         * modules/closein: New module.
44795         * lib/closein.c: New file.
44796         * lib/closein.h: Likewise.
44797         * m4/closein.m4: Likewise.
44798         * MODULES.html.sh (File stream based Input/Output): Document it.
44799
44800 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44801
44802         * gnulib-tool: Rename generated 'autobuild' script to
44803         'do-autobuild' in --create-megatestdir output.
44804
44805         * doc/gnulib.texi (Build robot for gnulib): Fix.
44806
44807 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44808
44809         * modules/sysexits (Depends-on): Add absolute-header.
44810
44811 2007-04-12  Eric Blake  <ebb9@byu.net>
44812
44813         No need to preserve errno on success.
44814         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
44815         Reported by Bruno Haible.
44816
44817 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44818
44819         * MODULES.html.sh (Support for maintaining and releasing
44820         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
44821
44822 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44823
44824         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
44825
44826 2007-04-12  Simon Josefsson  <simon@josefsson.org>
44827
44828         * modules/autobuild: New module.
44829
44830         * m4/autobuild.m4: New file.
44831
44832 2007-04-11  Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
44835         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
44836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
44837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
44838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44839         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44840         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44842         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44843         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44844         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
44845         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44846         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
44848         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44849         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
44851         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44852         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
44854         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44855         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44856         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
44857         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44858         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
44860         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
44861         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
44862         Reported by Eric Blake.
44863
44864 2007-04-11  Bruno Haible  <bruno@clisp.org>
44865
44866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
44867
44868 2007-04-10  Bruno Haible  <bruno@clisp.org>
44869
44870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
44871         for NaN and Infinity. Needed on FreeBSD 6.1.
44872         * tests/test-vasnprintf-posix.c (test_function): Undo last change
44873         regarding results for "%010a" of Infinity and NaN.
44874         * tests/test-vasprintf-posix.c (test_function): Likewise.
44875         * tests/test-snprintf-posix.h (test_function): Likewise.
44876         * tests/test-sprintf-posix.h (test_function): Likewise.
44877         * tests/test-fprintf-posix.h (test_function): Likewise.
44878         * tests/test-printf-posix.h (test_function): Likewise.
44879         * tests/test-fprintf-posix.out: Likewise.
44880
44881 2007-04-10  Bruno Haible  <bruno@clisp.org>
44882
44883         * modules/locale-tests: New file.
44884         * tests/test-locale.c: New file.
44885
44886         * modules/locale: New file.
44887         * lib/locale_.h: New file.
44888         * m4/locale_h.m4: New file.
44889
44890 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
44891             Bruno Haible  <bruno@clisp.org>
44892
44893         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
44894         be determined, test for availability of the copysignf, copysign,
44895         copysignl functions.
44896         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
44897         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
44898         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
44899
44900 2007-04-09  Eric Blake  <ebb9@byu.net>
44901
44902         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
44903         * modules/stdio (Makefile.am): Support fflush.
44904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44905         * modules/fflush: New file.
44906         * lib/fflush.c: Likewise.
44907         * m4/fflush.m4: Likewise.
44908         * modules/fflush-tests: New test.
44909         * tests/test-fflush.c: Likewise.
44910         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
44911
44912 2007-04-06  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
44915         (VASNPRINTF): Use signbit for faster determination whether to print a
44916         minus sign.
44917         * modules/vasnprintf (Files): Remove lib/float+.h.
44918         * modules/fprintf-posix (Depends-on): Add signbit.
44919         * modules/snprintf-posix (Depends-on): Likewise.
44920         * modules/sprintf-posix (Depends-on): Likewise.
44921         * modules/vasnprintf-posix (Depends-on): Likewise.
44922         * modules/vasprintf-posix (Depends-on): Likewise.
44923         * modules/vfprintf-posix (Depends-on): Likewise.
44924         * modules/vsnprintf-posix (Depends-on): Likewise.
44925         * modules/vsprintf-posix (Depends-on): Likewise.
44926
44927 2007-04-06  Bruno Haible  <bruno@clisp.org>
44928
44929         * tests/test-frexp.c (main): Test also the sign bit of zero results.
44930         * tests/test-frexpl.c (main): Likewise.
44931         * tests/test-ldexpl.c (main): Likewise.
44932         * modules/frexp-tests (Depends-on): Add signbit.
44933         * modules/frexpl-tests (Depdends-on): Likewise.
44934         * modules/ldexpl-tests (Depdends-on): Likewise.
44935
44936 2007-04-06  Bruno Haible  <bruno@clisp.org>
44937
44938         * modules/signbit-tests: New file.
44939         * tests/test-signbit.c: New file.
44940
44941         * modules/signbit: New file.
44942         * lib/signbitf.c: New file.
44943         * lib/signbitd.c: New file.
44944         * lib/signbitl.c: New file.
44945         * m4/signbit.m4: New file.
44946         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
44947         (signbit): New macro.
44948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
44949         REPLACE_SIGNBIT.
44950         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
44951         REPLACE_FREXPL into math.h.
44952
44953 2007-04-06  Bruno Haible  <bruno@clisp.org>
44954
44955         * modules/isnanf-nolibm-tests: New file.
44956         * tests/test-isnanf.c: New file.
44957
44958         * modules/isnanf-nolibm: New file.
44959         * lib/isnanf.h: New file.
44960         * lib/isnanf.c: New file.
44961         * lib/isnan.c: Consider the USE_FLOAT macro.
44962         * m4/isnanf.m4: New file.
44963
44964 2007-04-06  Bruno Haible  <bruno@clisp.org>
44965
44966         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
44967         (Link): New section.
44968
44969         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
44970
44971 2007-04-06  Bruno Haible  <bruno@clisp.org>
44972
44973         Assume the 'long double' type.
44974         * m4/longdouble.m4: Remove file.
44975         * config/srclist.txt: Don't mention longdouble.m4.
44976         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
44977         * lib/float+.h: Likewise.
44978         * lib/frexp.c: Likewise.
44979         * lib/printf-args.h: Likewise.
44980         * lib/printf-args.c: Likewise.
44981         * lib/printf-frexp.c: Likewise.
44982         * lib/printf-parse.c: Likewise.
44983         * lib/vasnprintf.c: Likewise.
44984         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
44985         * m4/intl.m4: Likewise.
44986         * m4/isnanl.m4: Likewise.
44987         * m4/printf.m4: Likewise.
44988         * m4/printf-frexpl.m4: Likewise.
44989         * m4/vasnprintf.m4: Likewise.
44990         * modules/allocsa (Files): Remove m4/longdouble.m4.
44991         * modules/gettext (Files): Likewise.
44992         * modules/relocatable-prog-wrapper (Files): Likewise.
44993         * modules/vasnprintf (Files): Likewise.
44994         * modules/isnanl (Files): Likewise.
44995         (Include): Simplify.
44996         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
44997         (Include): Simplify.
44998         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
44999         (Include): Simplify.
45000         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
45001         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45002         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
45003         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45004         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45005         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45006         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
45007         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45008         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
45009         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45010         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
45011         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
45012         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
45013         * tests/test-isnanl.c: Likewise.
45014         * tests/test-snprintf-posix.h: Likewise.
45015         * tests/test-sprintf-posix.h: Likewise.
45016         * tests/test-vasnprintf-posix.c: Likewise.
45017         * tests/test-vasnprintf-posix2.c: Likewise.
45018         * tests/test-vasprintf-posix.c: Likewise.
45019
45020 2007-04-06  Bruno Haible  <bruno@clisp.org>
45021
45022         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
45023         * lib/math_.h [__DECC]: Include the overridden include file through
45024         #include_next, outside the double-inclusion guard.
45025         * lib/stdio_.h [__DECC]: Likewise.
45026         * lib/stdlib_.h [__DECC]: Likewise.
45027         * lib/string_.h [__DECC]: Likewise.
45028         * lib/time_.h [__DECC]: Likewise.
45029         * lib/wchar_.h [__DECC]: Likewise.
45030         * lib/wctype_.h [__DECC]: Likewise.
45031         * lib/inttypes_.h [__DECC]: Likewise.
45032         Reported by Albert Chin <china@thewrittenword.com> in
45033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
45034
45035 2007-04-04  Eric Blake  <ebb9@byu.net>
45036
45037         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
45038         1.5.x.
45039
45040 2007-04-04  Bruno Haible  <bruno@clisp.org>
45041
45042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
45043         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
45044
45045 2007-04-04  Bruno Haible  <bruno@clisp.org>
45046
45047         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
45048         results for "%010a" of Infinity and NaN.
45049         * tests/test-vasprintf-posix.c (test_function): Likewise.
45050         * tests/test-snprintf-posix.h (test_function): Likewise.
45051         * tests/test-sprintf-posix.h (test_function): Likewise.
45052         * tests/test-fprintf-posix.h (test_function): Remove these tests.
45053         * tests/test-printf-posix.h (test_function): Likewise.
45054         * tests/test-fprintf-posix.out: Update.
45055         Needed for FreeBSD 6.1.
45056
45057 2007-04-04  Bruno Haible  <bruno@clisp.org>
45058
45059         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
45060         directly used by the gnulib modules nor by gnulib-tool.
45061
45062 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
45063
45064         * DEPENDENCIES: Give overall description of version dependency
45065         desirability.  Use more-typical names for apps.
45066         Add shell, coreutils, diffutils, grep, tar, gzip.
45067
45068 2007-04-04  Simon Josefsson  <simon@josefsson.org>
45069
45070         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
45071
45072 2007-04-04  Karl Berry  <karl@gnu.org>
45073
45074         * MODULES.html.sh (func_module): missing '.
45075
45076 2007-04-03  Bruno Haible  <bruno@clisp.org>
45077
45078         * modules/argmatch-tests (Makefile.am): New variable
45079         test_argmatch_LDADD.
45080         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
45081         * modules/array-list-tests (Makefile.am): New variable
45082         test_array_list_LDADD.
45083         * modules/array-oset-tests (Makefile.am): New variable
45084         test_array_oset_LDADD.
45085         * modules/avltree-list-tests (Makefile.am): New variable
45086         test_avltree_list_LDADD.
45087         * modules/avltree-oset-tests (Makefile.am): New variable
45088         test_avltree_oset_LDADD.
45089         * modules/avltreehash-list-tests (Makefile.am): New variable
45090         test_avltreehash_list_LDADD.
45091         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
45092         test_canonicalize_lgpl_LDADD.
45093         * modules/carray-list-tests (Makefile.am): New variable
45094         test_carray_list_LDADD.
45095         * modules/dirname-tests (Makefile.am): New variable
45096         test_dirname_LDADD.
45097         * modules/linked-list-tests (Makefile.am): New variable
45098         test_linked_list_LDADD.
45099         * modules/linkedhash-list-tests (Makefile.am): New variable
45100         test_linkedhash_list_LDADD.
45101         * modules/rbtree-list-tests (Makefile.am): New variable
45102         test_rbtree_list_LDADD.
45103         * modules/rbtree-oset-tests (Makefile.am): New variable
45104         test_rbtree_oset_LDADD.
45105         * modules/rbtreehash-list-tests (Makefile.am): New variable
45106         test_rbtreehash_list_LDADD.
45107         * modules/xvasprintf-tests (Makefile.am): New variable
45108         test_xvasprintf_LDADD.
45109         Reported by Eric Blake.
45110
45111 2007-04-03  Eric Blake  <ebb9@byu.net>
45112
45113         * DEPENDENCIES: Weaken m4 requirements.
45114
45115 2007-04-03  Bruno Haible  <bruno@clisp.org>
45116
45117         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
45118         * modules/isnanl-tests (configure.ac): Likewise.
45119
45120 2007-04-03  Ben Pfaff  <blp@gnu.org>
45121
45122         * modules/iconv_open: Add $(srcdir)/ to source directory
45123         references in Makefile fragments that call gperf, to fix VPATH
45124         builds.
45125
45126 2007-04-03  Bruno Haible  <bruno@clisp.org>
45127
45128         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
45129         * lib/ldexpl.c: Undo last change.
45130
45131 2007-04-03  Bruno Haible  <bruno@clisp.org>
45132
45133         * modules/printf-frexpl (Depends-on): Undo last change.
45134         (Files): Add m4/ldexpl.m4.
45135
45136 2007-04-03  Bruno Haible  <bruno@clisp.org>
45137
45138         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
45139         * modules/isnanl (Link): New section.
45140
45141         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
45142         * modules/frexp (Link): New section.
45143
45144         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
45145         * modules/frexpl (Link): New section.
45146
45147         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
45148         * modules/ldexpl (Link): New section.
45149
45150 2007-04-03  Bruno Haible  <bruno@clisp.org>
45151
45152         * modules/TEMPLATE-EXTENDED: New file.
45153         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
45154
45155 2007-04-03  Bruno Haible  <bruno@clisp.org>
45156
45157         * DEPENDENCIES: New file.
45158         Suggested by Simon Josefsson.
45159
45160 2007-04-03  Bruno Haible  <bruno@clisp.org>
45161
45162         * doc/gnulib.texi: Escape @.
45163
45164 2007-04-03  James Youngman  <jay@gnu.org>
45165         and Paul Eggert  <eggert@cs.ucla.edu>
45166
45167         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
45168         birthtime on all systems that have birthtime, not just those which
45169         use st_birthtimensec rather than st_birthtim.  Putting zero in
45170         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
45171         that the birth time is not available for files on an NFS mount.
45172
45173 2007-04-03  Simon Josefsson  <simon@josefsson.org>
45174
45175         * modules/memxor: Move back from crypto/, suggested by Bruno.
45176         * modules/crypto/hmac-sha1: Fix memxor dependency.
45177
45178         * modules/crypto/gc: Moved from ../.
45179
45180 2007-04-02  Eric Blake  <ebb9@byu.net>
45181
45182         * lib/ldexpl.c (includes): Avoid libm.
45183
45184         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
45185
45186 2007-04-02  Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
45189         on IRIX.
45190
45191 2007-04-02  Bruno Haible  <bruno@clisp.org>
45192
45193         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
45194         x86 or x86_64 platforms running MacOS X.
45195         Reported by Ryan Schmidt <@ryandesign.com>.
45196
45197 2007-04-02  Bruno Haible  <bruno@clisp.org>
45198
45199         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
45200         i386.
45201
45202 2007-04-01  Simon Josefsson  <simon@josefsson.org>
45203
45204         * modules/crypto/arcfour: Moved from ../.
45205         * modules/crypto/arcfour-tests: Moved from ../.
45206         * modules/crypto/arctwo: Moved from ../.
45207         * modules/crypto/arctwo-tests: Moved from ../.
45208         * modules/crypto/des: Moved from ../.
45209         * modules/crypto/des-tests: Moved from ../.
45210         * modules/crypto/gc-arcfour: Moved from ../.
45211         * modules/crypto/gc-arcfour-tests: Moved from ../.
45212         * modules/crypto/gc-arctwo: Moved from ../.
45213         * modules/crypto/gc-arctwo-tests: Moved from ../.
45214         * modules/crypto/gc-des: Moved from ../.
45215         * modules/crypto/gc-des-tests: Moved from ../.
45216         * modules/crypto/gc-hmac-md5: Moved from ../.
45217         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
45218         * modules/crypto/gc-hmac-sha1: Moved from ../.
45219         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
45220         * modules/crypto/gc-md2: Moved from ../.
45221         * modules/crypto/gc-md2-tests: Moved from ../.
45222         * modules/crypto/gc-md4: Moved from ../.
45223         * modules/crypto/gc-md4-tests: Moved from ../.
45224         * modules/crypto/gc-md5: Moved from ../.
45225         * modules/crypto/gc-md5-tests: Moved from ../.
45226         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
45227         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
45228         * modules/crypto/gc-random: Moved from ../.
45229         * modules/crypto/gc-rijndael: Moved from ../.
45230         * modules/crypto/gc-rijndael-tests: Moved from ../.
45231         * modules/crypto/gc-sha1: Moved from ../.
45232         * modules/crypto/gc-sha1-tests: Moved from ../.
45233         * modules/crypto/gc-tests: Moved from ../.
45234         * modules/crypto/hmac-md5: Moved from ../.
45235         * modules/crypto/hmac-md5-tests: Moved from ../.
45236         * modules/crypto/hmac-sha1: Moved from ../.
45237         * modules/crypto/hmac-sha1-tests: Moved from ../.
45238         * modules/crypto/md2: Moved from ../.
45239         * modules/crypto/md2-tests: Moved from ../.
45240         * modules/crypto/md4: Moved from ../.
45241         * modules/crypto/md4-tests: Moved from ../.
45242         * modules/crypto/md5: Moved from ../.
45243         * modules/crypto/md5-tests: Moved from ../.
45244         * modules/crypto/memxor: Moved from ../.
45245         * modules/crypto/rijndael: Moved from ../.
45246         * modules/crypto/rijndael-tests: Moved from ../.
45247         * modules/crypto/sha1: Moved from ../.
45248
45249 2007-03-30  James Youngman  <jay@gnu.org>
45250
45251         * tests/test-stat-time.c (prepare_test): use chmod() rather than
45252         rename() to change the ctime of a file (because ctime is unaffected
45253         by rename on jfs2 on AIX 5.1).
45254         (main): Start by doing cleanup, in case a previous run failed leaving
45255         test files behind.
45256
45257 2007-03-31  Bruno Haible  <bruno@clisp.org>
45258
45259         Support old proprietary implementations of iconv.
45260         * modules/iconv_open: New file.
45261         * lib/iconv_.h: New file.
45262         * m4/iconv_h.m4: New file.
45263         * lib/iconv_open.c: New file.
45264         * lib/iconv_open-aix.gperf: New file.
45265         * lib/iconv_open-hpux.gperf: New file.
45266         * lib/iconv_open-irix.gperf: New file.
45267         * lib/iconv_open-osf.gperf: New file.
45268         * m4/iconv_open.m4: New file.
45269         * modules/linebreak (Depends-on): Add iconv_open.
45270         * modules/striconv (Depends-on): Likewise.
45271         * modules/striconveh (Depends-on): Likewise.
45272         * modules/unicodeio (Depends-on): Likewise.
45273         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
45274         (iconv_t)(-1).
45275         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
45276         conversion if cd is (iconv_t)(-1).
45277         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
45278         is not possible.
45279
45280 2007-03-31  Bruno Haible  <bruno@clisp.org>
45281
45282         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45283         work on Solaris either. Protect also second use of "autodetect_jp".
45284
45285 2007-03-31  Bruno Haible  <bruno@clisp.org>
45286
45287         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
45288         the function is not present.
45289
45290 2007-03-31  Bruno Haible  <bruno@clisp.org>
45291
45292         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
45293         the function is not present.
45294
45295 2007-03-31  Bruno Haible  <bruno@clisp.org>
45296
45297         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
45298         a bug in HP-UX iconv_open().
45299
45300 2007-03-31  Bruno Haible  <bruno@clisp.org>
45301
45302         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
45303         (Mathematics <math.h>): New section, add fpieee.
45304         (Input/output <stdio.h>): Add fseterr.
45305         (Mathematics <math.h>): New section, add printf-frexp.
45306         (Container data structures): Add sublist.
45307         (Core language properties): Add fpucw, inline.
45308         (Functions for greatest-width integer types <inttypes.h>): Add
45309         imaxabs, imaxdiv, inttypes.
45310         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
45311         isnanl-nolibm, ldexp.
45312         (Mathematics <math.h>): New section, add printf-frexpl.
45313         (Support for systems lacking POSIX:2001): Add fprintf-posix,
45314         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
45315         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
45316         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
45317         (Unicode string functions): Add unistr/u*-mbtoucr.
45318         (Java): Add javacomp-script, javaexec-script.
45319         (C#): Add csharpcomp-script, csharpexec-script.
45320         (Support for building libraries and executables): Add havelib,
45321         relocatable-*.
45322         (Support for maintaining and releasing projects): Renamed from
45323         'Support for maintaining and release projects'. Add announce-gen.
45324
45325 2007-03-31  Bruno Haible  <bruno@clisp.org>
45326
45327         * README: Talk primarily about git.
45328         (git and CVS): Renamed from CVS.
45329         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
45330         gnulib is available through git.
45331         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
45332
45333 2007-03-30  Bruno Haible  <bruno@clisp.org>
45334
45335         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
45336         * lib/poll_.h: Likewise.
45337         * lib/stat_.h: Likewise.
45338         * lib/sys_time_.h: Likewise.
45339         * lib/sysexit_.h: Likewise.
45340         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
45341         * lib/stdbool_.h: Likewise.
45342         * lib/byteswap_.h: Add double-inclusion guard.
45343
45344 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
45345
45346         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
45347
45348 2007-03-30  Karl Berry  <karl@gnu.org>
45349
45350         * config/srclist-update: double space after USA in the license
45351         substitution, since that's how it's usually (?) written.
45352
45353 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45354
45355         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
45356         reported by Bruno Haible.
45357
45358 2007-03-29  Bruno Haible  <bruno@clisp.org>
45359
45360         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
45361         a bug in AIX iconv().
45362
45363 2007-03-29  Bruno Haible  <bruno@clisp.org>
45364
45365         * modules/ldexpl-tests: New file.
45366         * tests/test-ldexpl.c: New file.
45367
45368 2007-03-29  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/ldexpl.c: Include fpucw.h.
45371         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
45372         multiplication.
45373         * modules/ldexpl (Depends-on): Add fpucw.
45374
45375 2007-03-29  Bruno Haible  <bruno@clisp.org>
45376
45377         * modules/ldexpl: New file.
45378         * m4/ldexpl.m4: New file.
45379         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
45380         set.
45381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
45382         REPLACE_LDEXPL.
45383         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
45384         REPLACE_LDEXPL.
45385         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45386         gl_FUNC_LDEXPL_WORKS.
45387         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
45388         * modules/mathl (Files): Remove lib/ldexpl.c.
45389         (Depends-on): Add ldexpl.
45390
45391 2007-03-29  Bruno Haible  <bruno@clisp.org>
45392
45393         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
45394
45395 2007-03-29  Bruno Haible  <bruno@clisp.org>
45396
45397         * tests/test-striconveh.c (main): Don't assume that a direct conversion
45398         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
45399         and possibly also HP-UX.
45400         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
45401         work on AIX, IRIX, HP-UX, OSF/1.
45402         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45403         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45404         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45405         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45406         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
45407         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45408
45409 2007-03-29  Bruno Haible  <bruno@clisp.org>
45410
45411         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
45412
45413 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45414
45415         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
45416         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
45417
45418 2007-03-29  Eric Blake  <ebb9@byu.net>
45419
45420         * lib/acl-internal.h: Remove redundant include.
45421         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
45422         Cygwin when a file is locked.
45423
45424 2007-03-29  Bruno Haible  <bruno@clisp.org>
45425
45426         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
45427         file.
45428         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
45429
45430 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
45431
45432         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
45433         try to remove a parent directory if the child couldn't be removed
45434         (except for the first rmdir, which could fail because the child
45435         doesn't exist).  Problem reported by Jeff Blaine in
45436         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
45437
45438 2007-03-28  Bruno Haible  <bruno@clisp.org>
45439
45440         * lib/striconveh.c (utf8conv_carefully): New function.
45441         (mem_cd_iconveh_internal): Invoke it.
45442
45443 2007-03-28  Bruno Haible  <bruno@clisp.org>
45444
45445         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
45446         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
45447         input.
45448         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
45449         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
45450         unistr/u8-uctomb.
45451
45452 2007-03-28  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/unistr/u8-mbtoucr: New file.
45455         * lib/unistr/u8-mbtoucr.c: New file.
45456         * modules/unistr/u16-mbtoucr: New file.
45457         * lib/unistr/u16-mbtoucr.c: New file.
45458         * modules/unistr/u16-mbtoucr: New file.
45459         * lib/unistr/u16-mbtoucr.c: New file.
45460         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
45461
45462 2007-03-27  Simon Josefsson  <simon@josefsson.org>
45463             Bruno Haible  <bruno@clisp.org>
45464
45465         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
45466         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
45467         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
45468
45469         * m4/stdio_h.m4: Add stubs for vasprintf too.
45470
45471         * modules/stdio: Support vasprintf in sed command.
45472
45473         * modules/vasprintf: Depend on stdio for prototypes.  Remove
45474         vasprintf.h.  Add stdio module indicator.
45475
45476         * lib/stdio_.h: Declare asprintf and vasprintf, based on
45477         vasprintf.h.
45478
45479         * lib/vasprintf.h: File removed.
45480
45481         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
45482         * lib/vasprintf.c: Ditto.
45483         * lib/xvasprintf.c: Ditto.
45484         * tests/test-vasprintf-posix.c: Ditto.
45485         * tests/test-vasprintf.c: Ditto.
45486
45487 2007-03-27  Bruno Haible  <bruno@clisp.org>
45488
45489         Make vasnprintf multithread-safe.
45490         * lib/vasnprintf.c (decimal_point_char): New function.
45491         (VASNPRINTF): Use it.
45492         Suggested by Simon Josefsson.
45493
45494 2007-03-27  Eric Blake  <ebb9@byu.net>
45495
45496         Support sub-second birthtime on cygwin.
45497         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
45498         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
45499         (get_stat_birthtime): Also work with st_birthtim.
45500
45501 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * lib/stat-time.h (USE_BIRTHTIME): Remove.
45504         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
45505         (get_stat_birthtime_ns): Do not try to use "spare" fields.
45506         (get_stat_birthtime_ns): Simplify compile-time tests.
45507         (get_stat_birthtime): Change the API to look like
45508         get_stat_mtime etc., except return a negative tv_nsec on error.
45509         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
45510         Don't check for "spare" fields.
45511         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
45512         or for struct stat.st_birthtime, as these tests aren't used.
45513         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
45514
45515 2007-03-27  Bruno Haible  <bruno@clisp.org>
45516
45517         * lib/stat-time.h: Include <sys/stat.h>.
45518
45519 2007-03-27  James Youngman  <jay@gnu.org>
45520
45521         * lib/stat-time.h (get_stat_birthtime): New function for
45522           retrieving st_birthtime as provided by UFS2 (hence *BSD).
45523         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
45524           and its variants.
45525         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
45526         * modules/stat-time-test: New file.
45527         * tests/test-stat-time.c: New test, devised by Bruno Haible.
45528
45529 2007-03-26  Bruno Haible  <bruno@clisp.org>
45530
45531         Better support of signalling NaNs.
45532         * lib/atanl.c: Include isnanl.h.
45533         (atanl): Perform test for NaN at the beginning of the function and
45534         through a call to isnanl.
45535         * lib/cosl.c: Include isnanl.h.
45536         (cosl): Perform test for NaN at the beginning of the function and
45537         through a call to isnanl.
45538         * lib/ldexpl.c: Include isnanl.h.
45539         (ldexpl): Perform test for NaN through a call to isnanl.
45540         * lib/logl.c: Include isnanl.h.
45541         (logl): Perform test for NaN at the beginning of the function and
45542         through a call to isnanl.
45543         * lib/sinl.c: Include isnanl.h.
45544         (sinl): Perform test for NaN at the beginning of the function and
45545         through a call to isnanl.
45546         * lib/sqrtl.c: Include isnanl.h.
45547         (sqrtl): Perform test for NaN at the beginning of the function and
45548         through a call to isnanl.
45549         * lib/tanl.c: Include isnanl.h.
45550         (tanl): Perform test for NaN at the beginning of the function and
45551         through a call to isnanl.
45552         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
45553         * modules/mathl (Depends-on): Add isnanl.
45554
45555 2007-03-26  Eric Blake  <ebb9@byu.net>
45556
45557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
45558         regression in logic sense of previous patch.
45559
45560 2007-03-26  Bruno Haible  <bruno@clisp.org>
45561
45562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
45563         unportable shell command "if ! ...".
45564         Reported by Ralf Wildenhues.
45565
45566 2007-03-25  Bruno Haible  <bruno@clisp.org>
45567
45568         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
45569         <sysexits.h> file, and only add EX_CONFIG.
45570         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
45571         absolute file name and whether it is sufficient. Substitute also
45572         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
45573         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
45574         ABSOLUTE_SYSEXITS_H into sysexits.h.
45575
45576 2007-03-25  Bruno Haible  <bruno@clisp.org>
45577
45578         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
45579         hints is NULL.
45580
45581 2007-03-25  Bruno Haible  <bruno@clisp.org>
45582
45583         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
45584         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
45585
45586 2007-03-25  Bruno Haible  <bruno@clisp.org>
45587
45588         * lib/vasnprintf.c: Include langinfo.h.
45589         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
45590         multithread-safe.
45591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
45592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
45593         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45594         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45596         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45597         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
45599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45600         Reported by Simon Josefsson.
45601
45602 2007-03-25  Bruno Haible  <bruno@clisp.org>
45603
45604         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
45605         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
45606         * modules/vasnprintf (Depends-on): Add stdint.
45607
45608 2007-03-25  Bruno Haible  <bruno@clisp.org>
45609
45610         * modules/fpieee: New file.
45611         * m4/fpieee.m4: New file.
45612         * modules/isnan-nolibm (Depends-on): Add fpieee.
45613         * modules/isnanl-nolibm (Depends-on): Add fpieee.
45614         * modules/isnanl (Depends-on): Add fpieee.
45615
45616 2007-03-25  Bruno Haible  <bruno@clisp.org>
45617
45618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
45619
45620 2007-03-25  Bruno Haible  <bruno@clisp.org>
45621
45622         Avoid test failures on IRIX 6.5.
45623         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
45624         (main): Use it.
45625         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
45626         macros.
45627         (main): Use them.
45628
45629 2007-03-25  Bruno Haible  <bruno@clisp.org>
45630
45631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
45632         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
45633         exists but doesn't work.
45634         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
45635         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
45636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
45637         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
45638
45639 2007-03-25  Bruno Haible  <bruno@clisp.org>
45640
45641         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
45642         returns inf. Needed on IRIX 6.5.
45643
45644 2007-03-25  Bruno Haible  <bruno@clisp.org>
45645
45646         * tests/test-frexpl.c: Include isnanl-nolibm.h.
45647         (main): Use isnanl instead of x != x idiom.
45648         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
45649
45650         * tests/test-frexp.c: Include isnan.h.
45651         (main): Use isnan instead of x != x idiom.
45652         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
45653
45654 2007-03-25  Bruno Haible  <bruno@clisp.org>
45655
45656         * tests/test-frexp.c (NaN): New function/macro.
45657         (main): Use it instead of 0.0 / 0.0.
45658         * tests/test-isnan.c (NaN): New function/macro.
45659         (main): Use it instead of 0.0 / 0.0.
45660         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
45661         (test_function): Use it instead of 0.0 / 0.0.
45662         * tests/test-vasprintf-posix.c (NaN): New function/macro.
45663         (test_function): Use it instead of 0.0 / 0.0.
45664         * tests/test-snprintf-posix.h (NaN): New function/macro.
45665         (test_function): Use it instead of 0.0 / 0.0.
45666         * tests/test-sprintf-posix.h (NaN): New function/macro.
45667         (test_function): Use it instead of 0.0 / 0.0.
45668         * tests/test-fprintf-posix.h (NaN): New function/macro.
45669         (test_function): Use it instead of 0.0 / 0.0.
45670         * tests/test-printf-posix.h (NaN): New function/macro.
45671         (test_function): Use it instead of 0.0 / 0.0.
45672
45673         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
45674
45675 2007-03-25  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
45678
45679 2007-03-25  Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/regexec.c (merge_state_with_log): Make static.
45682
45683 2007-03-25  Bruno Haible  <bruno@clisp.org>
45684
45685         * lib/trigl.c (kernel_rem_pio2): Make static.
45686
45687 2007-03-25  Bruno Haible  <bruno@clisp.org>
45688
45689         * lib/sincosl.c (sincosl_table): Make static.
45690
45691 2007-03-25  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
45694         if the compiler does not support C99.
45695
45696 2007-03-25  Bruno Haible  <bruno@clisp.org>
45697
45698         * modules/time (Makefile.am): Ensure all rule action lines start with a
45699         tab.
45700
45701 2007-03-24  Bruno Haible  <bruno@clisp.org>
45702
45703         * modules/tsearch-tests: New file.
45704         * tests/test-tsearch.sh: New file.
45705         * tests/test-tsearch.c: New file, mostly copied from glibc.
45706
45707         * modules/search-tests: New file.
45708         * tests/test-search.c: New file.
45709
45710         * modules/search: New file.
45711         * lib/search_.h: New file, incorporating lib/tsearch.h.
45712         * m4/search_h.m4: New file.
45713         * lib/tsearch.h: Remove file.
45714         * lib/tsearch.c: Include search.h instead of tsearch.h.
45715         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
45716         HAVE_TSEARCH.
45717         * modules/tsearch (Files): Remove lib/tsearch.h.
45718         (Depends-on): Add search.
45719         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
45720         (Include): Change tsearch.h into search.h.
45721
45722 2007-03-24  Bruno Haible  <bruno@clisp.org>
45723
45724         * modules/fpucw: New file.
45725         * lib/fpucw.h: New file.
45726         * lib/frexp.c: Include fpucw.h.
45727         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45728         (FUNC): Use them.
45729         * lib/printf-frexp.c: Include fpucw.h.
45730         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
45731         (FUNC): Use them.
45732         * lib/vasnprintf.c: Include fpucw.h.
45733         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
45734         'long double' calculations.
45735         * tests/test-frexpl.c: Include fpucw.h.
45736         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45737         * tests/test-printf-frexpl.c: Include fpucw.h.
45738         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
45739         * modules/frexpl (Depends-on): Add fpucw.
45740         * modules/printf-frexpl (Depends-on): Likewise.
45741         * modules/fprintf-posix (Depends-on): Likewise.
45742         * modules/snprintf-posix (Depends-on): Likewise.
45743         * modules/sprintf-posix (Depends-on): Likewise.
45744         * modules/vasnprintf-posix (Depends-on): Likewise.
45745         * modules/vasprintf-posix (Depends-on): Likewise.
45746         * modules/vfprintf-posix (Depends-on): Likewise.
45747         * modules/vsnprintf-posix (Depends-on): Likewise.
45748         * modules/vsprintf-posix (Depends-on): Likewise.
45749         * modules/frexpl-tests (Depends-on): Likewise.
45750         * modules/printf-frexpl-tests (Depends-on): Likewise.
45751
45752 2007-03-24  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/float+.h: New file.
45755         * lib/isnan.c: Include float+.h.
45756         (SIZE): New macro.
45757         (FUNC): Compare only SIZE bytes of the value.
45758         * lib/vasnprintf.c: Include float+.h.
45759         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
45760         SIZEOF_LDBL or SIZEOF_DBL bytes.
45761         * modules/isnan-nolibm (Files): Add lib/float+.h.
45762         * modules/isnanl-nolibm (Files): Add lib/float+.h.
45763         * modules/isnanl (Files): Add lib/float+.h.
45764         * modules/vasnprintf (Files): Add lib/float+.h.
45765
45766 2007-03-24  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
45769         include isnanl-nolibm.h.
45770
45771 2007-03-24  Bruno Haible  <bruno@clisp.org>
45772
45773         * tests/test-read-file.c (main): Don't produce spurious output for
45774         expected situations. Make the test fail if it encountered unexpected
45775         results.
45776
45777 2007-03-24  Bruno Haible  <bruno@clisp.org>
45778
45779         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
45780         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
45781
45782 2007-03-24  Bruno Haible  <bruno@clisp.org>
45783
45784         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
45785
45786 2007-03-24  Bruno Haible  <bruno@clisp.org>
45787
45788         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
45789         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
45790
45791         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
45792         * modules/utf8-ucs4: Turn into a symbolic link to module
45793         unistr/u8-mbtouc.
45794
45795         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
45796         utf8-ucs4-unsafe.
45797         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
45798         unistr/u8-mbtouc-unsafe.
45799
45800         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
45801         * modules/utf16-ucs4: Turn into a symbolic link to module
45802         unistr/u16-mbtouc.
45803
45804         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
45805         utf16-ucs4-unsafe.
45806         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
45807         unistr/u16-mbtouc-unsafe.
45808
45809         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
45810         * modules/ucs4-utf8: Turn into a symbolic link to module
45811         unistr/u8-ubtomb.
45812
45813         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
45814         * modules/ucs4-utf16: Turn into a symbolic link to module
45815         unistr/u16-ubtomb.
45816
45817 2007-03-24  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
45820         Enable the function only if HAVE_INLINE.
45821         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
45822         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45823         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
45824         Enable the function only if HAVE_INLINE.
45825         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
45826         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
45827         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
45828         Enable the function only if HAVE_INLINE.
45829         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
45830         Enable the function only if HAVE_INLINE.
45831         * modules/utf8-ucs4: Update.
45832         * modules/utf8-ucs4-unsafe: Update.
45833         * modules/utf16-ucs4: Update.
45834         * modules/utf16-ucs4-unsafe: Update.
45835         * modules/ucs4-utf8: Update.
45836         * modules/ucs4-utf16: Update.
45837
45838 2007-03-24  Bruno Haible  <bruno@clisp.org>
45839
45840         * lib/utf8-ucs4.h: Remove file.
45841         * lib/utf8-ucs4-unsafe.h: Remove file.
45842         * lib/utf16-ucs4.h: Remove file.
45843         * lib/utf16-ucs4-unsafe.h: Remove file.
45844         * lib/ucs4-utf8.h: Remove file.
45845         * lib/ucs4-utf16.h: Remove file.
45846         * lib/unistr.h: Include their previous contents.
45847         * m4/utf-ucs4.m4: Remove file.
45848         * m4/ucs4-utf.m4: Remove file.
45849         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
45850         (Depends-on): Add unistr/base.
45851         (configure.ac): Remove gl_UTF_UCS4.
45852         (Makefile.am): Update.
45853         (Include): Change to unistr.h.
45854         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
45855         (Depends-on): Add unistr/base.
45856         (configure.ac): Remove gl_UTF_UCS4.
45857         (Makefile.am): Update.
45858         (Include): Change to unistr.h.
45859         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
45860         (Depends-on): Add unistr/base.
45861         (configure.ac): Remove gl_UTF_UCS4.
45862         (Makefile.am): Update.
45863         (Include): Change to unistr.h.
45864         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
45865         (Depends-on): Add unistr/base.
45866         (configure.ac): Remove gl_UTF_UCS4.
45867         (Makefile.am): Update.
45868         (Include): Change to unistr.h.
45869         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
45870         (Depends-on): Add unistr/base.
45871         (configure.ac): Remove gl_UCS4_UTF.
45872         (Makefile.am): Update.
45873         (Include): Change to unistr.h.
45874         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
45875         (Depends-on): Add unistr/base.
45876         (configure.ac): Remove gl_UCS4_UTF.
45877         (Makefile.am): Update.
45878         (Include): Change to unistr.h.
45879         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
45880         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
45881         utf8-ucs4-unsafe.h.
45882         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
45883         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
45884         utf16-ucs4-unsafe.h.
45885         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
45886         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
45887         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
45888         * lib/unistr/u8-strchr.c: Likewise.
45889         * lib/unistr/u8-strrchr.c: Likewise.
45890         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
45891         * lib/unistr/u16-strchr.c: Likewise.
45892         * lib/unistr/u16-strrchr.c: Likewise.
45893         * lib/striconveh.c: Update.
45894         * lib/linebreak.c: Update.
45895
45896 2007-03-24  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
45899         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
45900
45901 2007-03-22  Bruno Haible  <bruno@clisp.org>
45902
45903         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
45904
45905 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
45906
45907         * MODULES.html.sh (File system functions): New module write-any-file.
45908         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
45909         * m4/write-any-file.m4: New files.
45910
45911 2007-03-23  Eric Blake  <ebb9@byu.net>
45912
45913         * gnulib-tool: Rearrange space-tab sequences, since some editors
45914         like to eat them.
45915
45916 2007-03-23  Eric Blake  <ebb9@byu.net>
45917
45918         * lib/version-etc.c (version_etc_va): Update license wording to
45919         be more concise.  Recommended by Richard Stallman.
45920
45921 2007-03-22  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/poll.c (MSG_PEEK): New fallback definition.
45924
45925 2007-03-22  Bruno Haible  <bruno@clisp.org>
45926
45927         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
45928         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
45929         (main): Update.
45930         Fixes a compilation error on BeOS.
45931
45932 2007-03-22  Bruno Haible  <bruno@clisp.org>
45933
45934         * modules/frexpl-tests: New file.
45935         * tests/test-frexpl.c: New file.
45936
45937         * modules/frexpl: New file.
45938         * m4/frexpl.m4: New file.
45939         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
45940         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
45941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
45942         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
45943         (Depends-on): Add frexpl. Remove isnanl-nolibm.
45944         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
45945
45946 2007-03-22  Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/frexpl.c: Share code with lib/frexp.c.
45949         * modules/mathl (Files): Add lib/frexp.c.
45950         (Depends-on): Add isnanl-nolibm.
45951
45952 2007-03-22  Bruno Haible  <bruno@clisp.org>
45953
45954         * modules/printf-frexp (Files): Add m4/frexp.m4.
45955         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
45956         only if the found frexp function actually works.
45957
45958 2007-03-22  Bruno Haible  <bruno@clisp.org>
45959
45960         * lib/frexp.c: Remove older implementation that uses divisions.
45961
45962 2007-03-21  Bruno Haible  <bruno@clisp.org>
45963
45964         * modules/frexp-tests: New file.
45965         * tests/test-frexp.c: New file.
45966
45967         * modules/frexp: New file.
45968         * lib/frexp.c: New file.
45969         * m4/frexp.m4: New file.
45970         * lib/math_.h (frexp): New declaration.
45971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
45972         REPLACE_FREXP.
45973         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
45974
45975 2007-03-21  Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/isnanl-tests: New file.
45978         * tests/test-isnanl.c: New file.
45979
45980         * modules/isnanl: New file.
45981         * lib/isnanl.h: New file.
45982         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
45983         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
45984         gl_FUNC_ISNANL_WORKS.
45985         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
45986         New macros.
45987
45988 2007-03-21  Bruno Haible  <bruno@clisp.org>
45989
45990         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
45991         lib/isnanl.h.
45992         (Include): Update.
45993         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
45994         * lib/vasnprintf.c: Update.
45995         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
45996         tests/test-isnanl.h, remove tests/test-isnanl.c.
45997         (Makefile.am): Update.
45998         * tests/test-isnanl-nolibm.c: New file.
45999         * tests/test-isnanl.h: New file.
46000         * tests/test-isnanl.c: Remove file.
46001
46002 2007-03-21  Jim Meyering  <jim@meyering.net>
46003
46004         When trying to open ".", treat ESTALE like EACCES.
46005         * lib/savewd.c (savewd_save): Resort to forking not just upon
46006         failure with EACCES, but also when errno is ESTALE.
46007
46008 2007-03-20  Bruno Haible  <bruno@clisp.org>
46009
46010         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
46011         Needed on AIX 5.1. Reported by Matthew Woehlke.
46012
46013 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46014
46015         Suggestions by Bruno Haible:
46016         * lib/acl-internal.h: Include "gettext.h" rather than rolling
46017         our own.
46018         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
46019         * modules/acl (Depends-on): Add gettext.
46020
46021 2007-03-19  Bruno Haible  <bruno@clisp.org>
46022
46023         * modules/iconvme: Remove file.
46024         * lib/iconvme.h: Remove file.
46025         * lib/iconvme.c: Remove file.
46026         * m4/iconvme.m4: Remove file.
46027
46028 2007-03-19  Bruno Haible  <bruno@clisp.org>
46029
46030         * doc/relocatable-maint.texi: Break long shell script line.
46031         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46032
46033 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46034
46035         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
46036         handle file_has_acl.
46037         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
46038         * lib/acl.c: Move header inclusions and related macro defns into
46039         lib/acl-internal.h.
46040         (S_ISLNK): Remove defn, since that's now done for us.
46041         (file_has_acl): Move to lib/file-has-acl.c.
46042         Call acl_trivial if available.  This is the crucial part of the fix.
46043         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
46044         shared within the library.  Rewrite a bit, partly to make it compatible
46045         with the GNU coding style.
46046         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
46047         Remove unnecessary double-quotes.
46048         Don't test for acl_to_text; the build will catch that.
46049         Replace acl_entries if it doesn't exist and it is needed.
46050         Check for -lsec and acl_trivial (as used on Solaris 10).
46051         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
46052         lib/file-has-acl.c.
46053         (Depends-on): Add sys_stat, for S_ISLNK.
46054
46055 2007-03-19  Ben Pfaff  <blp@gnu.org>
46056
46057         * doc/gnulib.texi: Fix typos.
46058         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
46059
46060 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
46061
46062         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
46063         If size is zero here, buf must be zero.
46064
46065 2007-03-19  Simon Josefsson  <simon@josefsson.org>
46066
46067         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
46068         <bruno@clisp.org>.
46069
46070 2007-03-18  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
46073         Suggested by Eric Blake.
46074
46075 2007-03-18  Ben Pfaff  <blp@gnu.org>
46076
46077         * doc/relocatable.texi: Recommend using as prefix a directory
46078         that does not exist and will never be created.  Based on
46079         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
46080         and others.
46081
46082 2007-03-17  Bruno Haible  <bruno@clisp.org>
46083
46084         * lib/fchownat.c: Include lchown.h.
46085
46086 2007-03-17  Bruno Haible  <bruno@clisp.org>
46087
46088         Fix endless loop when the given allocated size was > INT_MAX.
46089         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
46090         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
46091         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
46092         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
46093         * lib/sprintf.c (sprintf): Likewise.
46094
46095 2007-03-17  Bruno Haible  <bruno@clisp.org>
46096
46097         * tests/test-argp-2.sh (func_compare): Output a context diff.
46098
46099 2007-03-17  Bruno Haible  <bruno@clisp.org>
46100
46101         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
46102         locale's decimal-point character.
46103
46104 2007-03-17  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
46107         before comparing it. Needed because on some platforms (e.g. x86) a
46108         'long double' occupies less bytes than sizeof (long double).
46109
46110 2007-03-17  Bruno Haible  <bruno@clisp.org>
46111
46112         * tests/test-crc.c (main): Make printf statements 64-bit clean.
46113         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
46114         * tests/test-getaddrinfo.c (simple): Likewise.
46115         * tests/test-read-file.c (main): Likewise.
46116
46117 2007-03-17  Bruno Haible  <bruno@clisp.org>
46118
46119         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
46120
46121 2007-03-17  Bruno Haible  <bruno@clisp.org>
46122
46123         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
46124         unused variable.
46125
46126 2007-03-17  Bruno Haible  <bruno@clisp.org>
46127
46128         * tests/test-c-strcasecmp.c: Include c-strcase.h.
46129         * tests/test-c-strncasecmp.c: Likewise.
46130
46131 2007-03-17  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/stdlib (Depends-on): Add unistd.
46134         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
46135         Needed for MacOS X 10.3.
46136
46137 2007-03-17  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/unistr/u-strdup.h: Include <stdlib.h>.
46140
46141 2007-03-17  Bruno Haible  <bruno@clisp.org>
46142
46143         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
46144
46145 2007-03-17  Bruno Haible  <bruno@clisp.org>
46146
46147         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
46148         to reflect files copied from gnulib (with or without modifications).
46149         Suggested by Jim Meyering.
46150
46151 2007-03-17  Eric Blake  <ebb9@byu.net>
46152
46153         * NEWS: Document stdlib change from 2007-02-18.
46154
46155 2007-03-17  Jim Meyering  <jim@meyering.net>
46156
46157         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
46158         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
46159         someone uses a name containing shell meta-characters.
46160         Reported by Alfred M. Szmidt.
46161
46162         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
46163
46164 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46165
46166         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
46167         and copy gettext configuration files only if configure.ac contains
46168         a use of AM_GNU_GETTEXT_VERSION.
46169
46170 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
46171
46172         * build-aux/bootstrap (gnulib_name): New variable.
46173         (gnulib_tool_options): Use it.
46174
46175 2007-03-13  Simon Josefsson  <simon@josefsson.org>
46176
46177         * tests/test-des.c: Use new namespace.
46178
46179 2007-03-15  Bruno Haible  <bruno@clisp.org>
46180
46181         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
46182         Reported by James Youngman <jay@gnu.org>.
46183
46184 2007-03-15  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
46187         declared prototype. Needed with cc on OSF/1 5.1.
46188
46189 2007-03-15  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
46192         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
46193         (struct gl_list_implementation): Add dispose_fn argument to the
46194         'create_empty', 'create' methods.
46195         (struct gl_list_impl_base): Add field 'dispose_fn'.
46196         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
46197         argument.
46198         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
46199         dispose_fn argument.
46200         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
46201         dispose_fn on the dropped values.
46202         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
46203         dispose_fn argument.
46204         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
46205         dropped values.
46206         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
46207         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46208         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
46209         (gl_tree_remove_node): Call dispose_fn on the dropped value.
46210         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
46211         argument.
46212         (gl_tree_list_free): Call dispose_fn on the dropped values.
46213         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
46214         the dropped values.
46215         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46216         Add dispose_fn argument.
46217         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
46218         Call dispose_fn on the dropped values.
46219         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
46220         Add dispose_fn argument.
46221         (gl_sublist_create): Initialize the 'dispose_fn' field.
46222         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
46223         * tests/test-array_list.c (main): Update.
46224         * tests/test-carray_list.c (main): Update.
46225         * tests/test-avltree_list.c (main): Update.
46226         * tests/test-rbtree_list.c (main): Update.
46227         * tests/test-avltreehash_list.c (main): Update.
46228         * tests/test-rbtreehash_list.c (main): Update.
46229         * tests/test-linked_list.c (main): Update.
46230         * tests/test-linkedhash_list.c (main): Update.
46231         * tests/test-array_oset.c (main): Update.
46232
46233 2007-03-15  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
46236         (gl_oset_create_empty): Add dispose_fn argument.
46237         (struct gl_oset_implementation): Add dispose_fn argument to
46238         'create_empty' method.
46239         (struct gl_oset_impl_base): Add dispose_fn field.
46240         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
46241         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
46242         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
46243         values.
46244         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
46245         (gl_tree_oset_free): Call dispose_fn on the dropped values.
46246         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46247         dropped value.
46248         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
46249         dropped value.
46250         * tests/test-array_oset.c (main): Update.
46251         * tests/test-avltree_oset.c (main): Update.
46252         * tests/test-rbtree_oset.c (main): Update.
46253         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
46254
46255 2007-03-13  Bruno Haible  <bruno@clisp.org>
46256
46257         * tests/test-stdbool.c (i): Update after last patch.
46258
46259 2007-03-12  Bruno Haible  <bruno@clisp.org>
46260
46261         * lib/quotearg.c: Include <wctype.h> early, before the definition of
46262         the iswprint macro. Needed on Solaris 2.5.1.
46263
46264 2007-03-12  Bruno Haible  <bruno@clisp.org>
46265
46266         * tests/test-printf-frexp.c (main): Declare x as volatile.
46267
46268 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46269
46270         * doc/gnulib.texi (Build robot for gnulib): New section.
46271
46272 2007-03-12  Jim Meyering  <jim@meyering.net>
46273
46274         * build-aux/bootstrap: New file.
46275         * build-aux/bootstrap.conf: New file, from coreutils.
46276
46277 2007-03-11  Bruno Haible  <bruno@clisp.org>
46278
46279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
46280
46281 2007-03-12  Simon Josefsson  <simon@josefsson.org>
46282
46283         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
46284         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
46285         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
46286
46287 2007-03-11  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
46290         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
46291
46292 2007-03-11  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
46295         formula. Needed for SunPRO C 5.0.
46296
46297 2007-03-11  Bruno Haible  <bruno@clisp.org>
46298
46299         * modules/long-options (Depends-on): Add getopt.
46300
46301 2007-03-11  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/modechange (Depends-on): Add stdbool.
46304
46305 2007-03-11  Bruno Haible  <bruno@clisp.org>
46306
46307         * modules/i-ring (Depends-on): Add stdbool.
46308
46309 2007-03-11  Bruno Haible  <bruno@clisp.org>
46310
46311         * modules/gc-des (Depends-on): Add stdbool.
46312
46313 2007-03-11  Bruno Haible  <bruno@clisp.org>
46314
46315         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
46316
46317 2007-03-11  Bruno Haible  <bruno@clisp.org>
46318
46319         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
46320
46321 2007-03-11  Bruno Haible  <bruno@clisp.org>
46322
46323         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
46324
46325 2007-03-11  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/vasnprintf.c (sprintf): Undefine.
46328
46329 2007-03-11  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
46332         initializers in SunPRO C and Compaq C compilers.
46333
46334 2007-03-11  Bruno Haible  <bruno@clisp.org>
46335
46336         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
46337         decrementing code ANSI C compliant.
46338
46339 2007-03-11  Bruno Haible  <bruno@clisp.org>
46340
46341         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
46342         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
46343
46344 2007-03-11  Bruno Haible  <bruno@clisp.org>
46345
46346         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
46347         <stdbool.h> substitute doesn't pass.
46348
46349 2007-03-11  Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
46352
46353 2007-03-11  Bruno Haible  <bruno@clisp.org>
46354
46355         * gnulib-tool (func_create_megatestdir): Create also an autobuild
46356         script, for submission to autobuild.josefsson.org.
46357
46358 2007-03-10  Bruno Haible  <bruno@clisp.org>
46359
46360         * modules/canonicalize-lgpl-tests: New file.
46361         * tests/test-canonicalize-lgpl.sh: New file.
46362         * tests/test-canonicalize-lgpl.c: New file.
46363
46364         * modules/c-strcase-tests: New file.
46365         * tests/test-c-strcase.sh: New file.
46366         * tests/test-c-strcasecmp.c: New file.
46367         * tests/test-c-strncasecmp.c: New file.
46368
46369         * modules/atexit-tests: New file.
46370         * tests/test-atexit.sh: New file.
46371         * tests/test-atexit.c: New file.
46372
46373 2007-03-10  Bruno Haible  <bruno@clisp.org>
46374
46375         * tests/test-binary-io.sh: Use temporary filenames that are not so
46376         likely to clash with those of other tests (in a parallel make).
46377         * tests/test-binary-io.c: Likewise.
46378
46379 2007-03-10  Bruno Haible  <bruno@clisp.org>
46380
46381         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
46382         fallback; use #error instead.
46383         Suggested by Simon Josefsson.
46384
46385 2007-03-10  Bruno Haible  <bruno@clisp.org>
46386
46387         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
46388         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
46389         first and the last.
46390
46391 2007-03-10  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
46394
46395 2007-03-10  Bruno Haible  <bruno@clisp.org>
46396
46397         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
46398         "make distcheck".
46399         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
46400         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
46401         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
46402
46403 2007-03-10  Bruno Haible  <bruno@clisp.org>
46404
46405         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
46406         variable.
46407         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
46408         variable.
46409
46410 2007-03-09  Eric Blake  <ebb9@byu.net>
46411         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
46412
46413         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
46414         types are not being provided by gnulib.
46415         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
46416         types are supported.
46417
46418 2007-03-10  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/stdio_.h (__attribute__): New macro.
46421         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
46422         vsprintf): Specify __attribute__ __format__ for GCC.
46423         Suggested by Eric Blake.
46424
46425 2007-03-09  Bruno Haible  <bruno@clisp.org>
46426
46427         * modules/printf-posix-tests: New file.
46428         * tests/test-printf-posix.sh: New file.
46429         * tests/test-printf-posix.c: New file.
46430
46431         * modules/printf-posix: New file.
46432         * lib/printf.c: New file.
46433         * m4/printf-posix-rpl.m4: New file.
46434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
46435         REPLACE_PRINTF.
46436         * lib/stdio_.h (printf): New declaration.
46437         (format, __format__, ____printf____, ____scanf____, ____strftime____,
46438         ____strfmon____): New macros.
46439         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
46440         REPLACE_PRINTF.
46441
46442 2007-03-09  Bruno Haible  <bruno@clisp.org>
46443
46444         * tests/test-vasnprintf-posix2.sh: New file.
46445         * tests/test-vasnprintf-posix2.c: New file.
46446         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
46447         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46448         (Makefile.am): Activate test-vasnprintf-posix2.sh.
46449
46450         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
46451         a locale dependent decimal point, rather than always '.'.
46452
46453 2007-03-09  Eric Blake  <ebb9@byu.net>
46454
46455         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
46456         spite of platforms like Tandem/NSK that define it to -1.
46457
46458 2007-03-08  Bruno Haible  <bruno@clisp.org>
46459
46460         * modules/vprintf-posix-tests: New file.
46461         * tests/test-vprintf-posix.sh: New file.
46462         * tests/test-vprintf-posix.c: New file.
46463         * tests/test-printf-posix.h: New file.
46464
46465         * modules/vprintf-posix: New file.
46466         * lib/vprintf.c: New file.
46467         * m4/vprintf-posix.m4: New file.
46468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
46469         REPLACE_VPRINTF.
46470         * lib/stdio_.h (vprintf): New declaration.
46471         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
46472         REPLACE_VPRINTF.
46473
46474 2007-03-08  Bruno Haible  <bruno@clisp.org>
46475
46476         * modules/fprintf-posix-tests: New file.
46477         * tests/test-fprintf-posix.sh: New file.
46478         * tests/test-fprintf-posix.c: New file.
46479
46480         * modules/fprintf-posix: New file.
46481         * lib/fprintf.c: New file.
46482         * m4/fprintf-posix.m4: New file.
46483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
46484         REPLACE_FPRINTF.
46485         * lib/stdio_.h (fprintf): New declaration.
46486         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
46487         REPLACE_FPRINTF.
46488
46489 2007-03-08  Bruno Haible  <bruno@clisp.org>
46490
46491         * modules/vfprintf-posix-tests: New file.
46492         * tests/test-vfprintf-posix.sh: New file.
46493         * tests/test-vfprintf-posix.c: New file.
46494         * tests/test-fprintf-posix.h: New file.
46495         * tests/test-fprintf-posix.out: New file.
46496
46497         * modules/vfprintf-posix: New file.
46498         * lib/vfprintf.c: New file.
46499         * m4/vfprintf-posix.m4: New file.
46500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
46501         REPLACE_VFPRINTF.
46502         * lib/stdio_.h (vfprintf): New declaration.
46503         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
46504         REPLACE_VFPRINTF.
46505
46506 2007-03-08  Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
46509
46510 2007-03-08  Bruno Haible  <bruno@clisp.org>
46511
46512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
46513         instead of 'expr' invocations.
46514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46519         Suggested by Paul Eggert.
46520
46521 2007-03-08  Bruno Haible  <bruno@clisp.org>
46522
46523         * modules/fseterr-tests: New file.
46524         * tests/test-fseterr.c: New file.
46525
46526         * modules/fseterr: New file.
46527         * lib/fseterr.h: New file.
46528         * lib/fseterr.c: New file.
46529
46530 2007-03-08  Bruno Haible  <bruno@clisp.org>
46531
46532         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
46533         * lib/getopt_.h: Likewise.
46534         * lib/mbswidth.h: Likewise.
46535         * lib/setenv.h: Likewise.
46536         * lib/vasnprintf.h: Likewise.
46537         * lib/vasprintf.h: Likewise.
46538         * lib/verror.h: Likewise.
46539         * lib/xsetenv.h: Likewise.
46540         * lib/xvasprintf.h: Likewise.
46541
46542 2007-03-08  Jim Meyering  <jim@meyering.net>
46543
46544         * users.txt: Add parted.
46545
46546         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
46547
46548 2007-03-07  Bruno Haible  <bruno@clisp.org>
46549
46550         * m4/printf.m4: Make the shell script snippets copy&pastable.
46551
46552 2007-03-02  Bruno Haible  <bruno@clisp.org>
46553
46554         * lib/netinet_in_.h: New file.
46555         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
46556         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
46557         * modules/netinet_in (Files): Add lib/netinet_in_.h.
46558         (Depends-on): Add absolute-header.
46559         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
46560         into netinet/in.h.
46561
46562 2007-03-03  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/sys_select_.h: New file.
46565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
46566         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
46567         * modules/sys_select (Files): Add lib/sys_select_.h.
46568         (Depends-on): Add absolute-header.
46569         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
46570         into sys/select.h.
46571
46572 2007-03-02  Bruno Haible  <bruno@clisp.org>
46573
46574         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
46575         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
46576         values.
46577         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
46578         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
46579         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
46580         * modules/sys_socket (Depends-on): Add absolute-header.
46581         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
46582         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
46583         (Include): Remove requirement of inclusion of <sys/types.h>.
46584
46585 2007-03-02  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/byteswap_.h (bswap_32): Fix formula.
46588
46589 2007-03-06  Bruno Haible  <bruno@clisp.org>
46590
46591         * modules/sprintf-posix-tests: New file.
46592         * tests/test-sprintf-posix.c: New file.
46593
46594         * modules/sprintf-posix: New file.
46595         * lib/sprintf.c: New file.
46596         * m4/sprintf-posix.m4: New file.
46597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
46598         REPLACE_SPRINTF.
46599         * lib/stdio_.h (sprintf): New declaration.
46600         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
46601         REPLACE_SPRINTF.
46602
46603 2007-03-06  Bruno Haible  <bruno@clisp.org>
46604
46605         * modules/vsprintf-posix-tests: New file.
46606         * tests/test-vsprintf-posix.c: New file.
46607         * tests/test-sprintf-posix.h: New file.
46608
46609         * modules/vsprintf-posix: New file.
46610         * lib/vsprintf.c: New file.
46611         * m4/vsprintf-posix.m4: New file.
46612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
46613         REPLACE_VSPRINTF.
46614         * lib/stdio_.h (vsprintf): New declaration.
46615         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
46616         REPLACE_VSPRINTF.
46617
46618 2007-03-06  Bruno Haible  <bruno@clisp.org>
46619
46620         * modules/vsnprintf (Depend-on): Remove minmax.
46621
46622 2007-03-06  Bruno Haible  <bruno@clisp.org>
46623
46624         * modules/snprintf-posix-tests: New file.
46625         * tests/test-snprintf-posix.c: New file.
46626
46627         * modules/snprintf-posix: New file.
46628         * m4/snprintf-posix.m4: New file.
46629         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
46630         gl_FUNC_SNPRINTF.
46631         (gl_FUNC_SNPRINTF): Invoke it.
46632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
46633         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
46634         is set.
46635         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
46636
46637 2007-03-06  Bruno Haible  <bruno@clisp.org>
46638
46639         * modules/vsnprintf-posix-tests: New file.
46640         * tests/test-vsnprintf-posix.c: New file.
46641         * tests/test-snprintf-posix.h: New file.
46642
46643         * modules/vsnprintf-posix: New file.
46644         * m4/vsnprintf-posix.m4: New file.
46645         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
46646         gl_FUNC_VSNPRINTF.
46647         (gl_FUNC_VSNPRINTF): Invoke it.
46648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
46649         * lib/stdio_.h (vsnprintf): Define as a replacement if
46650         REPLACE_VSNPRINTF is set.
46651         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
46652
46653 2007-03-06  Bruno Haible  <bruno@clisp.org>
46654
46655         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
46656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
46657
46658 2007-03-06  Bruno Haible  <bruno@clisp.org>
46659
46660         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
46661         (asinl): Declare also if HAVE_DECL_ASINL is set.
46662         (atanl): Declare also if HAVE_DECL_ATANL is set.
46663         (ceill): Declare also if HAVE_DECL_CEILL is set.
46664         (cosl): Declare also if HAVE_DECL_COSL is set.
46665         (expl): Declare also if HAVE_DECL_EXPL is set.
46666         (floorl): Declare also if HAVE_DECL_FLOORL is set.
46667         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
46668         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
46669         (logl): Declare also if HAVE_DECL_LOGL is set.
46670         (sinl): Declare also if HAVE_DECL_SINL is set.
46671         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
46672         (tanl): Declare also if HAVE_DECL_TANL is set.
46673         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
46674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
46675         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
46676         declaration of frexpl, ldexpl.
46677         * modules/printf-frexpl (Depends-on): Add math.
46678         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
46679
46680 2007-03-05  Bruno Haible  <bruno@clisp.org>
46681
46682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
46683         frexpl and ldexpl are declared.
46684         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
46685
46686 2007-03-05  Bruno Haible  <bruno@clisp.org>
46687
46688         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
46689         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
46690
46691 2007-03-05  Bruno Haible  <bruno@clisp.org>
46692
46693         * lib/stdio_.h: Include <stddef.h>.
46694
46695 2007-03-05  Bruno Haible  <bruno@clisp.org>
46696
46697         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
46698
46699 2007-03-05  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
46702         NetBSD 4, from Ralf Wildenhues.
46703
46704 2007-03-04  Bruno Haible  <bruno@clisp.org>
46705
46706         * lib/vasprintf.h: Update #if logic for the case when the functions
46707         exist but are overridden.
46708
46709 2007-03-04  Bruno Haible  <bruno@clisp.org>
46710
46711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
46712         implementations: glibc-2.4 and MacOS X 10.3.
46713         * tests/test-vasnprintf-posix.c (test_function): Test also the case
46714         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
46715         * tests/test-vasprintf-posix.c (test_function): Likewise.
46716
46717 2007-03-04  Bruno Haible  <bruno@clisp.org>
46718
46719         * modules/vasprintf-posix-tests: New file.
46720         * tests/test-vasprintf-posix.c: New file.
46721
46722         * modules/vasprintf-posix: New file.
46723         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
46724         defined.
46725         * m4/vasprintf-posix.m4: New file.
46726         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
46727         gl_FUNC_VASPRINTF.
46728         (gl_FUNC_VASPRINTF): Invoke it.
46729         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
46730         here.
46731         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
46732
46733 2007-03-04  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
46736         REPLACE_GETTIMEOFDAY.
46737         * modules/sys_time (Makefile.am): Likewise.
46738         * m4/sys_time_h.m4: Likewise.
46739         * m4/gettimeofday.m4: Likewise.
46740
46741 2007-03-04  Bruno Haible  <bruno@clisp.org>
46742
46743         * modules/vasnprintf-posix-tests: New file.
46744         * tests/test-vasnprintf-posix.c: New file.
46745
46746         * modules/vasnprintf-posix: New file.
46747         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
46748         printf-frexpl.h.
46749         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
46750         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
46751         REPLACE_VASNPRINTF is defined.
46752         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
46753         gl_FUNC_VASNPRINTF.
46754         (gl_FUNC_VASNPRINTF): Invoke it.
46755         * m4/vasnprintf-posix.m4: New file.
46756         * m4/printf.m4: New file.
46757
46758 2007-03-04  Bruno Haible  <bruno@clisp.org>
46759
46760         Compile progreloc.c only if --enable-relocatable is specified.
46761         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
46762         if --enable-relocatable was specified.
46763         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
46764         lib_SOURCES.
46765
46766 2007-03-04  Jim Meyering  <jim@meyering.net>
46767
46768         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
46769         Use it consistently, rather than enumerating errno constants.
46770
46771 2007-03-04  Bruno Haible  <bruno@clisp.org>
46772
46773         * modules/xvasprintf-tests: New file.
46774         * tests/test-xvasprintf.c: New file.
46775
46776         * modules/vasprintf-tests: New file.
46777         * tests/test-vasprintf.c: New file.
46778
46779         * modules/vasnprintf-tests: New file.
46780         * tests/test-vasnprintf.c: New file.
46781
46782         * modules/vsnprintf-tests: New file.
46783         * tests/test-vsnprintf.c: New file.
46784
46785         * modules/snprintf-tests: New file.
46786         * tests/test-snprintf.c: New file.
46787
46788 2007-03-04  Bruno Haible  <bruno@clisp.org>
46789
46790         Compile relocatable.c only if --enable-relocatable is specified.
46791         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
46792         gl_RELOCATABLE_LIBRARY.
46793         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
46794         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
46795         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
46796         gl_RELOCATABLE_LIBRARY.
46797         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
46798         (Makefile.am): Remove lib_SOURCES.
46799         * modules/relocatable-lib-lgpl (configure.ac): Invoke
46800         gl_RELOCATABLE_LIBRARY.
46801         (Makefile.am): Remove lib_SOURCES.
46802         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
46803         always.
46804         * modules/relocatable-prog-wrapper (configure.ac): Invoke
46805         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
46806
46807 2007-03-04  Bruno Haible  <bruno@clisp.org>
46808
46809         * modules/argmatch-tests: New file.
46810         * tests/test-argmatch.c: New file.
46811
46812         * tests/test-allocsa.c (main): Halve the number of loop runs.
46813
46814         * modules/alloca-opt-tests: New file.
46815         * tests/test-alloca-opt.c: New file.
46816
46817 2007-03-04  Jim Meyering  <jim@meyering.net>
46818
46819         Work around difference between Linux ACLs and Solaris 10 ZFS.
46820         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
46821         for EINVAL.
46822
46823 2007-03-03  Bruno Haible  <bruno@clisp.org>
46824
46825         * modules/relocatable-prog (Depends-on): Add back progreloc's
46826         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
46827
46828 2007-03-03  Bruno Haible  <bruno@clisp.org>
46829
46830         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
46831         * modules/relocatable-lib: New file.
46832
46833 2007-03-03  Bruno Haible  <bruno@clisp.org>
46834
46835         * modules/relocatable-prog: Renamed from modules/relocatable.
46836         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
46837
46838 2007-03-03  Bruno Haible  <bruno@clisp.org>
46839
46840         * modules/relocatable-script (Files): Add doc/relocatable.texi,
46841         m4/relocatable-lib.m4.
46842         (Depends-on): Remove 'relocatable'.
46843         (configure.ac): Add gl_RELOCATABLE_NOP.
46844
46845 2007-03-03  Bruno Haible  <bruno@clisp.org>
46846
46847         * modules/relocatable-prog-wrapper: New file.
46848         * modules/relocatable (Depends-on): Add it. Remove all other
46849         dependencies except progname.
46850         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
46851
46852         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
46853         (gl_FUNC_STRERROR): Nop.
46854         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
46855
46856         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
46857         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
46858
46859         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
46860         (gl_FUNC_READLINK): Update.
46861
46862         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
46863
46864 2007-03-03  Bruno Haible  <bruno@clisp.org>
46865
46866         * lib/xreadlink.c: Include <unistd.h> unconditionally.
46867         * modules/xreadlink (Depends-on): Add unistd.
46868         * modules/xreadlink-with-size (Depends-on): Likewise.
46869
46870 2007-03-03  Bruno Haible  <bruno@clisp.org>
46871
46872         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
46873         extracted from gt_FUNC_SETENV.
46874         (gt_FUNC_SETENV): Remove macro.
46875         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
46876         remove gt_FUNC_SETENV.
46877
46878 2007-03-03  Bruno Haible  <bruno@clisp.org>
46879
46880         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
46881         ENABLE_RELOCATABLE here.
46882         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
46883
46884 2007-03-03  Bruno Haible  <bruno@clisp.org>
46885
46886         * modules/rbtreehash-list-tests (Depends-on): Add progname.
46887         * tests/test-rbtreehash_list.c: Include progname.h.
46888         (main): Call set_program_name.
46889
46890         * modules/rbtree-oset-tests (Depends-on): Add progname.
46891         * tests/test-rbtree_oset.c: Include progname.h.
46892         (main): Call set_program_name.
46893
46894         * modules/rbtree-list-tests (Depends-on): Add progname.
46895         * tests/test-rbtree_list.c: Include progname.h.
46896         (main): Call set_program_name.
46897
46898         * modules/linked-list-tests (Depends-on): Add progname.
46899         * tests/test-linked_list.c: Include progname.h.
46900         (main): Call set_program_name.
46901
46902 2007-03-03  Bruno Haible  <bruno@clisp.org>
46903
46904         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
46905         All uses of __restrict changed to _Restrict_.
46906         * lib/glob_.h (__restrict): Remove macro.
46907
46908 2007-03-02  Bruno Haible  <bruno@clisp.org>
46909
46910         * modules/gettext (configure.ac): Require gettext infrastructure
46911         from version 0.16.1.
46912
46913 2007-03-02  Bruno Haible  <bruno@clisp.org>
46914
46915         * modules/linkedhash-list-tests (Depends-on): Add progname.
46916         * tests/test-linkedhash_list.c: Include progname.h.
46917         (main): Call set_program_name.
46918
46919         * modules/carray-list-tests (Depends-on): Add progname.
46920         * tests/test-carray_list.c: Include progname.h.
46921         (main): Call set_program_name.
46922
46923         * modules/avltreehash-list-tests (Depends-on): Add progname.
46924         * tests/test-avltreehash_list.c: Include progname.h.
46925         (main): Call set_program_name.
46926
46927         * modules/avltree-oset-tests (Depends-on): Add progname.
46928         * tests/test-avltree_oset.c: Include progname.h.
46929         (main): Call set_program_name.
46930
46931         * modules/avltree-list-tests (Depends-on): Add progname.
46932         * tests/test-avltree_list.c: Include progname.h.
46933         (main): Call set_program_name.
46934
46935         * modules/array-oset-tests (Depends-on): Add progname.
46936         * tests/test-array_oset.c: Include progname.h.
46937         (main): Call set_program_name.
46938
46939         * modules/array-list-tests (Depends-on): Add progname.
46940         * tests/test-array_list.c: Include progname.h.
46941         (main): Call set_program_name.
46942
46943         * modules/argp-tests (Depends-on): Add progname.
46944         * tests/test-argp.c: Include argp.h first. Include progname.h.
46945         (main): Call set_program_name.
46946
46947 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
46948
46949         * doc/gnulib-tool.texi (Initial import): Reword description of
46950         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
46951         limited effect even if defined after the first system include.
46952
46953 2007-03-01  Bruno Haible  <bruno@clisp.org>
46954
46955         * build-aux/config.libpath: Update to libtool-1.5.22.
46956         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46957
46958 2007-03-01  Bruno Haible  <bruno@clisp.org>
46959
46960         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
46961         foo_CFLAGS.
46962         Reported by Ralf Wildenhues.
46963
46964 2007-03-01  Bruno Haible  <bruno@clisp.org>
46965
46966         * build-aux/install-reloc: Remove object files left over by some
46967         compilers.
46968         Reported by Ralf Wildenhues.
46969
46970 2007-03-01  Bruno Haible  <bruno@clisp.org>
46971
46972         * build-aux/install-reloc: Break long lines.
46973
46974 2007-03-01  Bruno Haible  <bruno@clisp.org>
46975
46976         * doc/relocatable.texi: Document that it may not work on OpenBSD.
46977         Reported by Ralf Wildenhues.
46978
46979 2007-03-01  Bruno Haible  <bruno@clisp.org>
46980
46981         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
46982         include ordering constraints.
46983
46984 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46985
46986         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
46987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
46988         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
46989         as another example.
46990         * lib/time_.h: Fix misspelling.
46991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46992         Require gl_HEADER_TIME_H_DEFAULTS.
46993         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
46994         * m4/time_r.m4 (gl_TIME_R): Likewise.
46995         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
46996
46997 2007-03-01  Bruno Haible  <bruno@clisp.org>
46998
46999         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
47000         * m4/utimens.m4 (gl_UTIMENS): Likewise.
47001
47002 2007-03-01  Jim Meyering  <jim@meyering.net>
47003
47004         * modules/xreadlink (Maintainer): Add my name.
47005         * modules/xreadlink-with-size (Depends-on): Alphabetize.
47006
47007 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
47008             Bruno Haible  <bruno@clisp.org>
47009
47010         * build-aux/install-reloc: Compile also c-ctype.c.
47011         * build-aux/relocatable.sh.in: New file.
47012         * doc/relocatable.texi: New file.
47013         * doc/relocatable-maint.texi: New file.
47014         * doc/gnulib.texi: Include relocatable-maint.texi.
47015         * lib/progreloc.c: Include unistd.h unconditionally.
47016         * lib/relocwrapper.c: Include unistd.h unconditionally.
47017         Include c-ctype.h.
47018         (add_dotbin): Use c_tolower.
47019         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
47020         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
47021         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
47022         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
47023         to m4/relocatable-lib.m4.
47024         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
47025         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
47026         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
47027         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
47028         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
47029         * modules/relocatable: New file.
47030         * modules/relocatable-lib: New file.
47031         * modules/relocatable-script: New file.
47032
47033 2007-02-28  Bruno Haible  <bruno@clisp.org>
47034
47035         Import --enable-relocatable infrastructure.
47036         * build-aux/config.libpath: New file, from GNU gettext.
47037         * build-aux/install-reloc: New file, from GNU gettext.
47038         * build-aux/reloc-ldflags: New file, from GNU gettext.
47039         * lib/relocatable.h: New file, from GNU gettext.
47040         * lib/relocatable.c: New file, from GNU gettext.
47041         * lib/relocwrapper.c: New file, from GNU gettext.
47042         * m4/relocatable.m4: New file, from GNU gettext.
47043
47044 2007-02-28  Bruno Haible  <bruno@clisp.org>
47045
47046         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
47047
47048         * modules/xreadlink: New file, from GNU gettext with modifications.
47049         * lib/xreadlink.c: New file, from GNU gettext.
47050         * lib/xreadlink.h: Add comments.
47051         (xreadlink): New declaration.
47052
47053         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
47054         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
47055         lib/xreadlink-with-size.c.
47056         (configure.ac): Remove gl_XREADLINK invocation.
47057         (Makefile.am): Augment lib_SOURCES.
47058         * m4/xreadlink.m4: Remove file.
47059         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
47060         (xreadlink_with_size): Renamed from xreadink.
47061         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
47062         * modules/canonicalize (Depends-on): Replace xreadlink with
47063         xreadlink-with-size.
47064         * lib/canonicalize.c (canonicalize_filename_mode): Update.
47065
47066 2007-02-25  Jim Meyering  <jim@meyering.net>
47067
47068         * build-aux/announce-gen: When complaining about excess arguments,
47069         list them.
47070
47071 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
47072
47073         * README: Document signed integer overflow situation more
47074         accurately.
47075
47076 2007-02-25  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
47079         'a' or 'A' conversion.
47080
47081 2007-02-25  Bruno Haible  <bruno@clisp.org>
47082
47083         * modules/filename: Renamed from modules/pathname.
47084         (Files): Replace lib/pathname.h with lib/filename.h. Replace
47085         lib/concatpath.c with lib/concat-filename.c.
47086         (Makefile.am): Update.
47087         (Include): Replace pathname.h with filename.h.
47088         * lib/filename.h: Renamed from lib/pathname.h.
47089         (concatenated_filename): Renamed from concatenated_pathname.
47090         * lib/concat-filename.c: Renamed from lib/concatpath.c.
47091         (concatenated_filename): Renamed from concatenated_pathname.
47092         * lib/findprog.c: Include filename.h instead of pathname.h.
47093         (find_in_path): Update.
47094         * lib/javacomp.c: Include filename.h instead of pathname.h.
47095         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47096         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47097         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47098         is_oldgcj_14_13_usable, is_javac_usable): Update.
47099         * lib/javaexec.c: Include filename.h instead of pathname.h.
47100         (execute_java_class): Update.
47101         * modules/findprog: Update.
47102         * modules/javacomp: Update.
47103         * modules/javaexec: Update.
47104         * MODULES.html.sh (File system functions): Add 'filename', remove
47105         'pathname'.
47106
47107 2007-02-25  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/printf-frexpl-tests: New file.
47110         * tests/test-printf-frexpl.c: New file.
47111
47112         * modules/printf-frexpl: New file.
47113         * lib/printf-frexpl.h: New file.
47114         * lib/printf-frexpl.c: New file.
47115         * m4/printf-frexpl.m4: New file.
47116
47117 2007-02-25  Bruno Haible  <bruno@clisp.org>
47118
47119         * modules/printf-frexp-tests: New file.
47120         * tests/test-printf-frexp.c: New file.
47121
47122         * modules/printf-frexp: New file.
47123         * lib/printf-frexp.h: New file.
47124         * lib/printf-frexp.c: New file.
47125         * m4/printf-frexp.m4: New file.
47126
47127 2007-02-25  Bruno Haible  <bruno@clisp.org>
47128
47129         Assume automake >= 1.10 for the tests.
47130         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
47131         * modules/arctwo-tests: Likewise.
47132         * modules/argp-tests: Likewise.
47133         * modules/avltree-list-tests: Likewise.
47134         * modules/avltree-oset-tests: Likewise.
47135         * modules/avltreehash-list-tests: Likewise.
47136         * modules/carray-list-tests: Likewise.
47137         * modules/crc-tests: Likewise.
47138         * modules/des-tests: Likewise.
47139         * modules/gc-arcfour-tests: Likewise.
47140         * modules/gc-arctwo-tests: Likewise.
47141         * modules/gc-des-tests: Likewise.
47142         * modules/gc-hmac-md5-tests: Likewise.
47143         * modules/gc-hmac-sha1-tests: Likewise.
47144         * modules/gc-md2-tests: Likewise.
47145         * modules/gc-md4-tests: Likewise.
47146         * modules/gc-md5-tests: Likewise.
47147         * modules/gc-pbkdf2-sha1-tests: Likewise.
47148         * modules/gc-rijndael-tests: Likewise.
47149         * modules/gc-sha1-tests: Likewise.
47150         * modules/gc-tests: Likewise.
47151         * modules/getaddrinfo-tests: Likewise.
47152         * modules/hmac-md5-tests: Likewise.
47153         * modules/hmac-sha1-tests: Likewise.
47154         * modules/linked-list-tests: Likewise.
47155         * modules/linkedhash-list-tests: Likewise.
47156         * modules/lock-tests: Likewise.
47157         * modules/md2-tests: Likewise.
47158         * modules/md4-tests: Likewise.
47159         * modules/md5-tests: Likewise.
47160         * modules/rbtree-list-tests: Likewise.
47161         * modules/rbtree-oset-tests: Likewise.
47162         * modules/rbtreehash-list-tests: Likewise.
47163         * modules/read-file-tests: Likewise.
47164         * modules/rijndael-tests: Likewise.
47165         * modules/stdint-tests: Likewise.
47166         * modules/tls-tests: Likewise.
47167
47168 2007-02-24  Bruno Haible  <bruno@clisp.org>
47169
47170         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
47171         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
47172         function; instead check whether isnan with a double argument links.
47173         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
47174         function; instead check whether isnan with a 'long double' argument
47175         links.
47176         Reported by Eric Blake <ebb9@byu.net>.
47177
47178 2007-02-24  Bruno Haible  <bruno@clisp.org>
47179
47180         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
47181         defined.
47182         * lib/isnanl.c: Remove all code. Just include isnan.c.
47183         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
47184
47185 2007-02-25  Jim Meyering  <jim@meyering.net>
47186
47187         Avoid conflicting types for 'unsetenv' on FreeBSD.
47188         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
47189         conflicting with FreeBSD's (5.0 and 6.1) function declaration
47190         in stdlib.h.
47191
47192 2007-02-24  Bruno Haible  <bruno@clisp.org>
47193
47194         * modules/isnanl-nolibm-tests: New file.
47195         * tests/test-isnanl.c: New file.
47196
47197         * modules/isnanl-nolibm: New file.
47198         * lib/isnanl.h: New file.
47199         * lib/isnanl.c: New file.
47200         * m4/isnanl.m4: New file.
47201
47202 2007-02-24  Bruno Haible  <bruno@clisp.org>
47203
47204         * modules/isnan-nolibm-tests: New file.
47205         * tests/test-isnan.c: New file.
47206
47207         * modules/isnan-nolibm: New file.
47208         * lib/isnan.h: New file.
47209         * lib/isnan.c: New file.
47210         * m4/isnan.m4: New file.
47211
47212 2007-02-24  Bruno Haible  <bruno@clisp.org>
47213
47214         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
47215         assume that an exponent fits in 20 bits.
47216
47217 2007-02-24  Jim Meyering  <jim@meyering.net>
47218
47219         * m4/regex.m4: Update the description of the configure-time option,
47220         --without-included-regex, to state accurately what the defaults are,
47221         and perhaps to give people an idea why using this option is risky.
47222
47223 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47224
47225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
47226         loops on small arguments.  This attempts to avoid the problem
47227         Bruno Haible reported for AIX 4.3.2 in
47228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
47229
47230 2007-02-23  Bruno Haible  <bruno@clisp.org>
47231
47232         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
47233         Needed for help2man.
47234
47235 2007-02-23  Karl Berry  <karl@gnu.org>
47236
47237         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
47238         exists, foo.h should be cvs-ignored, not committed.
47239
47240 2007-02-23  Eric Blake  <ebb9@byu.net>
47241
47242         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
47243         * lib/stat-time.h (includes): Likewise.
47244         * lib/utimecmp.c (includes): Likewise.
47245         * lib/utimens.h (includes): Likewise.
47246         * lib/getdate.y (includes): Also include "timespec.h" for use
47247         internal to the module.
47248         * modules/utimens (Depends-on): Revert yesterday's patch.
47249         * modules/nanosleep (Depends-on): Add missing dependency.
47250
47251 2007-02-22  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/glob.c: Don't include getlogin_r.h.
47254
47255 2007-02-22  Jim Meyering  <jim@meyering.net>
47256
47257         * modules/utimens (Depends-on): Add timespec, required for
47258         utimens.h's inclusion of timespec.h.
47259
47260 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
47261
47262         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
47263         long unreadable paths in GNU/Linux.  Problem reported by Andreas
47264         Schwab in
47265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
47266         I'll try to think of a better way to fix the Solaris problem.
47267
47268         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
47269         like glibc; on Solaris 10, it fails with errno == EINVAL.
47270         POSIX says the behavior is unspecified if the first argument is NULL,
47271         so play it safe and never pass NULL to the system getcwd.
47272
47273 2007-02-21  Jim Meyering  <jim@meyering.net>
47274
47275         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
47276         of gettimeofday.  It would conflict with the one now always
47277         provided via sys_time_.h.  Reported by Matthew Woehlke, as
47278         an IRIX 6.5 build failure.
47279
47280 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47281
47282         Minor fixups to port to Solaris 10 with Sun C 5.8.
47283         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
47284         * modules/getcwd (Depends-on): Add dirfd.
47285         * lib/putenv.c (putenv): #undef it.
47286         (rpl_putenv): New decl.
47287         (malloc, free): Include <stdlib.h> rather than prototyping separately.
47288
47289 2007-02-20  Bruno Haible  <bruno@clisp.org>
47290
47291         * modules/stdio-tests: New file.
47292         * tests/test-stdio.c: New file.
47293
47294         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
47295         (Depends-on): Add stdio.
47296         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47297         (Include): Use <stdio.h> instead of vsnprintf.h.
47298         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47299         HAVE_DECL_VSNPRINTF.
47300         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47301
47302         * modules/snprintf (Files): Remove lib/snprintf.h.
47303         (Depends-on): Add stdio.
47304         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47305         (Include): Use <stdio.h> instead of snprintf.h.
47306         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
47307         HAVE_DECL_SNPRINTF.
47308         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
47309         * lib/getaddrinfo.c: Likewise.
47310
47311         * modules/stdio: New file.
47312         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
47313         * lib/snprintf.h: Remove file.
47314         * lib/vsnprintf.h: Remove file.
47315         * lib/.cppi-disable: Remove snprintf.h.
47316         * m4/stdio_h.m4: New file.
47317         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
47318
47319 2007-02-20  Jim Meyering  <jim@meyering.net>
47320
47321         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
47322         used by e.g., mingw.  From Bruno Haible.
47323
47324 2007-02-19  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
47327         warnings.
47328         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47329
47330 2007-02-19  Bruno Haible  <bruno@clisp.org>
47331
47332         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
47333         from mingw users.
47334
47335 2007-02-19  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
47338         warnings.
47339         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
47340
47341 2007-02-19  Jim Meyering  <jim@meyering.net>
47342
47343         Don't use FD after a successful "fdopendir (fd)".
47344         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
47345         Reset it by calling dirfd on the just-obtained DIR*.
47346
47347         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
47348         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
47349
47350 2007-02-18  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/readlink.c: Include <unistd.h>.
47353         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
47354         HAVE_READLINK.
47355         * modules/readlink (Depends-on): Add unistd.
47356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47357         (Include): Add <unistd.h>.
47358
47359         * lib/getlogin_r.h: Remove file.
47360         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
47361         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
47362         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
47363         HAVE_DECL_GETLOGIN_R.
47364         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
47365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47366         (Include): Use <unistd.h> instead of getlogin_r.h.
47367
47368         * lib/getcwd.h: Remove file.
47369         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
47370         * lib/xgetcwd.c: Likewise.
47371         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
47372         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
47373         * modules/getcwd (Files): Remove lib/getcwd.h.
47374         (Depends-on): Add unistd.
47375         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47376         (Include): Use <unistd.h> instad of getcwd.h.
47377
47378         * lib/ftruncate.c: Include <unistd.h> first.
47379         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
47380         Set HAVE_FTRUNCATE.
47381         * modules/ftruncate (Depends-on): Add unistd.
47382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47383
47384         * lib/fchdir.c: Include <unistd.h> first.
47385         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
47386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
47387         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
47388         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47389         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
47390
47391         * lib/dup2.c: Include <unistd.h> first.
47392         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
47393         HAVE_DUP2.
47394         * modules/dup2 (Depends-on): Add unistd.
47395         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47396
47397         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
47398         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
47399         REPLACE_CHOWN. Don't define chown as a macro here.
47400         * modules/chown (Depends-on): Add unistd.
47401         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47402
47403         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
47404         Add definition for GL_LINK_WARNING.
47405         (chown, dup2): New declarations.
47406         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
47407         link warning.
47408         (ftruncate): New declaration.
47409         (getcwd): New declaration, taken from old getcwd.h.
47410         (getlogin_r): New declaration, taken from old getlogin_r.h.
47411         (readlink): New declaration.
47412         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
47413         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
47414         (gl_PREREQ_UNISTD): Remove macro.
47415         (gl_UNISTD_MODULE_INDICATOR): New macro.
47416         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
47417         many new variables. Don't set UNISTD_H.
47418         * modules/unistd (Description): Change.
47419         (Depends-on): Add link-warning.
47420         (configure.ac): Update.
47421         (Makefile.am): Create unistd.h always. Substitute many new variables
47422         into it.
47423
47424 2007-02-18  Bruno Haible  <bruno@clisp.org>
47425
47426         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
47427         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
47428         HAVE_GETSUBOPT.
47429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
47430         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
47431         * lib/getsubopt.h: Remove file.
47432         * modules/getsubopt (Files): Remove lib/getsubopt.h.
47433         (Depends-on): Add stdlib.
47434         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47435         (Includes): Use <stdlib.h> instead of getsubopt.h.
47436         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
47437         Set HAVE_GETSUBOPT.
47438         * lib/getsubopt.c: Don't include getsubopt.h.
47439
47440 2007-02-18  Bruno Haible  <bruno@clisp.org>
47441
47442         * modules/fchdir (Depends-on): Add dup2.
47443
47444 2007-02-18  Bruno Haible  <bruno@clisp.org>
47445
47446         * lib/stdlib_.h: Handle glibc's special invocation convention
47447         specially.
47448
47449 2007-02-18  Bruno Haible  <bruno@clisp.org>
47450
47451         * modules/stdlib-tests: New file.
47452         * tests/test-stdlib.c: New file.
47453
47454         * modules/mkstemp (Files): Remove lib/mkstemp.h.
47455         (Depends-on): Add stdlib.
47456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47457         (Includes): Use <stdlib.h> instead of mkstemp.h.
47458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47459         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
47460         * lib/mkstemp.c: Don't include mkstemp.h.
47461         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
47462         * lib/stdlib--.h: Don't include mkstemp.h.
47463
47464         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
47465         (Depends-on): Add stdlib.
47466         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47467         (Includes): Use <stdlib.h> instead of mkdtemp.h.
47468         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
47469         HAVE_MKDTEMP.
47470         * lib/mkdtemp.c: Don't include mkdtemp.h.
47471         * lib/clean-temp.c: Don't include mkdtemp.h.
47472
47473         * modules/exit (Files): Remove lib/exit.h.
47474         (Depends-on): Add stdlib.
47475         (Makefile.am): Remove lib_SOURCES.
47476         (Include): Use <stdlib.h> instead of exit.h.
47477         * lib/argmatch.c: Don't include exit.h.
47478         * lib/execute.c: Likewise.
47479         * lib/pagealign_alloc.c: Likewise.
47480         * lib/pipe.c: Likewise.
47481         * lib/wait-process.c: Likewise.
47482         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
47483         * lib/exitfail.c: Likewise.
47484         * lib/savewd.c: Likewise.
47485         * lib/xsetenv.c: Likewise.
47486
47487         * modules/stdlib: New file.
47488         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
47489         and extra comments about mkstemp().
47490         * lib/exit.h: Remove file.
47491         * lib/mkdtemp.h: Remove file.
47492         * lib/mkstemp.h: Remove file.
47493         * m4/stdlib_h.m4: New file.
47494         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
47495
47496 2007-02-18  Bruno Haible  <bruno@clisp.org>
47497
47498         * modules/math-tests: New file.
47499         * tests/test-math.c: New file.
47500
47501         * modules/math: New file.
47502         * modules/mathl (Files): Remove lib/mathl.h.
47503         (Depends-on): Add math.
47504         (Makefile.am): Don't mention mathl.h.
47505         (Include): Use <math.h> instead of mathl.h.
47506         * lib/math_.h: New file.
47507         * lib/mathl.h: Remove file.
47508         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
47509         mathl.h.
47510         * lib/asinl.c: Likewise.
47511         * lib/atanl.c: Likewise.
47512         * lib/ceill.c: Likewise.
47513         * lib/cosl.c: Likewise.
47514         * lib/expl.c: Likewise.
47515         * lib/floorl.c: Likewise.
47516         * lib/frexpl.c: Likewise.
47517         * lib/ldexpl.c: Likewise.
47518         * lib/logl.c: Likewise.
47519         * lib/sincosl.c: Likewise.
47520         * lib/sinl.c: Likewise.
47521         * lib/sqrtl.c: Likewise.
47522         * lib/tanl.c: Likewise.
47523         * lib/trigl.c: Likewise.
47524         * m4/math_h.m4: New file.
47525         * MODULES.html.sh (Mathematics): Add math.
47526
47527 2007-02-17  Bruno Haible  <bruno@clisp.org>
47528
47529         * modules/wctype-tests: New file.
47530         * tests/test-wctype.c: New file.
47531
47532         * modules/wchar-tests: New file.
47533         * tests/test-wchar.c: New file.
47534
47535         * modules/unistd-tests: New file.
47536         * tests/test-unistd.c: New file.
47537
47538         * modules/time-tests: New file.
47539         * tests/test-time.c: New file.
47540
47541         * modules/sysexits-tests: New file.
47542         * tests/test-sysexits.c: New file.
47543
47544         * modules/sys_time-tests: New file.
47545         * tests/test-sys_time.c: New file.
47546
47547         * modules/sys_stat-tests: New file.
47548         * tests/test-sys_stat.c: New file.
47549
47550         * modules/sys_socket-tests: New file.
47551         * tests/test-sys_socket.c: New file.
47552
47553         * modules/sys_select-tests: New file.
47554         * tests/test-sys_select.c: New file.
47555
47556         * modules/string-tests: New file.
47557         * tests/test-string.c: New file.
47558
47559         * modules/stdbool-tests: New file.
47560         * tests/test-stdbool.c: New file.
47561
47562         * modules/netinet_in-tests: New file.
47563         * tests/test-netinet_in.c: New file.
47564
47565         * modules/inttypes-tests: New file.
47566         * tests/test-inttypes.c: New file.
47567
47568         * modules/fcntl-tests: New file.
47569         * tests/test-fcntl.c: New file.
47570
47571         * modules/byteswap-tests: New file.
47572         * tests/test-byteswap.c: New file.
47573
47574         * modules/arpa_inet-tests: New file.
47575         * tests/test-arpa_inet.c: New file.
47576
47577 2007-02-17  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
47580         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
47581         if the corresponding module is not enabled. Emit link warnings if
47582         the function is used nevertheless.
47583         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
47584         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
47585         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
47586         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
47587         * modules/inttypes (Depends-on): Add link-warning.
47588         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47589         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
47590         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
47591         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
47592         * modules/imaxdiv (configure.ac): Likewise.
47593         * modules/strtoimax (configure.ac): Likewise.
47594         * modules/strtoumax (configure.ac): Likewise.
47595
47596 2007-02-17  Bruno Haible  <bruno@clisp.org>
47597
47598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
47599         gl_STRING_MODULE_INDICATOR_DEFAULTS.
47600         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
47601         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
47602
47603 2007-02-17  Bruno Haible  <bruno@clisp.org>
47604
47605         * modules/link-warning: New file.
47606         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
47607         * lib/string_.h (GL_LINK_WARNING): Remove definition.
47608         * modules/string (Depends-on): Add link-warning.
47609         (Makefile.am): Copy the contents of build-aux/link-warning.h into
47610         string.h.
47611         * MODULES.html.sh (Support for building libraries and executables): Add
47612         link-warning.
47613
47614 2007-02-17  Bruno Haible  <bruno@clisp.org>
47615
47616         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
47617         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
47618         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
47619         long lines.
47620
47621 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
47622             Bruno Haible  <bruno@clisp.org>
47623
47624         * modules/tmpfile: New file.
47625         * lib/tmpfile.c: New file.
47626         * m4/tmpfile.m4: New file.
47627         * MODULES.html.sh (func_all_modules): New section "Input/output".
47628
47629 2007-02-15  Bruno Haible  <bruno@clisp.org>
47630
47631         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
47632         (supports_delete_on_close): New function.
47633         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
47634
47635 2007-02-14  Bruno Haible  <bruno@clisp.org>
47636
47637         * modules/mbspcasecmp-tests: New file.
47638         * tests/test-mbspcasecmp.sh: New file.
47639         * tests/test-mbspcasecmp.c: New file.
47640
47641         New module mbspcasecmp.
47642         * modules/mbspcasecmp: New file.
47643         * lib/mbspcasecmp.c: New file.
47644         * lib/string_.h (strncasecmp): Change warning message.
47645         (mbspcasecmp): New declaration.
47646         * m4/mbspcasecmp.m4: New file.
47647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47648         GNULIB_MBSPCASECMP.
47649         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
47650         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
47651
47652 2007-02-14  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/mbsncasecmp-tests: New file.
47655         * tests/test-mbsncasecmp.sh: New file.
47656         * tests/test-mbsncasecmp.c: New file.
47657
47658         New module mbsncasecmp.
47659         * modules/mbsncasecmp: New file.
47660         * lib/mbsncasecmp.c: New file.
47661         * lib/string_.h (mbsncasecmp): New declaration.
47662         * m4/mbsncasecmp.m4: New file.
47663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47664         GNULIB_MBSNCASECMP.
47665         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
47666         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
47667
47668 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
47671         Verify that it doesn't overlap with our flags.
47672         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
47673         do not have the desired effect in multibyte locales; instead, use
47674         mbscasecmp.
47675         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
47676         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
47677         we don't require GNU fnmatch ourselves (if our users require it, they
47678         should do so explicitly).
47679
47680         Fix regex code so it doesn't rely on strcasecmp.
47681         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
47682         Otherwise, include gnulib's langinfo.h.
47683         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
47684         undesirable behavior in non-C locales.  Instead, rely on localecharset.
47685         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
47686         * modules/regex (FILES): Remove m4/codeset.m4.
47687         (Depends-on): Add localcharset.  Remove strcase.
47688
47689 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47690
47691         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
47692         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47693
47694 2007-02-13  Bruno Haible  <bruno@clisp.org>
47695
47696         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
47697         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47698
47699 2007-02-12  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47702         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
47703         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
47704         time warning rather than a link error.
47705
47706 2007-02-12  Bruno Haible  <bruno@clisp.org>
47707
47708         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
47709         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47711
47712 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47713
47714         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
47715         args, not 2.
47716
47717 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
47718
47719         New module 'time', so that apps can include <time.h> as per
47720         POSIX and GNU instead of separate include files like time_r.h
47721         and timegm.h.  This implementation tries out a simpler approach
47722         for replacing decls in standard include files (as compared to
47723         the string module), somewhat as an experiment.
47724
47725         * config/srclist.txt: Comment out mktime.c for now.
47726         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
47727         since it doesn't apply any more.  Use generic wording instead.
47728         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
47729         'time'.
47730         * lib/time_.h, m4/time_h.m4, modules/time: New files.
47731         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
47732         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
47733         Don't include <sys/types.h>; no longer needed since we assume C89.
47734         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
47735         * lib/strftime.c: Likewise.
47736         * lib/time_r.c: Likewise.
47737         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
47738         * lib/nanosleep.c: Include <time.h> first, to check interface.
47739         * lib/strptime.c: Likewise.
47740         * lib/time_r.c: Likewise.
47741         * lib/timegm.c: Likewise.
47742         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
47743         needed.
47744         * lib/timegm.c: Don't include timegm.h; no longer needed.
47745         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
47746         time.h now handles any problems in that area.
47747         (struct timespec, nanosleep): Remove; time.h now arranges for these.
47748         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
47749         that time.h defines struct timespec.
47750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
47751         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
47752         handles that.
47753         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
47754         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
47755         needed.  Set REPLACE_LOCALTIME.
47756         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
47757         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
47758         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
47759         nanosleep; time_h.m4 now does that.  Don't require
47760         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
47761         module handles this now.
47762         * modules/getdate (Depends-on): Remove timespec.  Add time.
47763         * modules/nanosleep (Depends-on): Likewise.
47764         * modules/stat-time (Depends-on): Likewise.
47765         * modules/nanosleep (Include): Include time.h, not timespec.h.
47766         * modules/strptime (Files): Remove lib/strptime.h.
47767         (Depends-on): Add extensions, time.
47768         (Include): Include time.h, not strptime.h.
47769         * modules/time_r (Files): Remove lib/time_r.h.
47770         (Depends-on): Add time.
47771         (Include): Include time.h, not time_r.h.
47772         * modules/timegm: Likewise.
47773         * modules/timespec (Description): Now does timespec-related decls
47774         of our own, instead of struct timespec itself.
47775         (Depends-on): Add time; remove extensions.
47776         (Maintainer): Add self.
47777         * modules/utimecmp (Depends-on): Add time; remove timespec.
47778         * modules/utimens (Depends-on): Likewise.
47779         * modules/xnanosleep (Depends-on): Likewise.
47780
47781 2007-02-11  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/c-strstr.c: Include allocsa.h.
47784         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47785         * lib/c-strcasestr.c: Include allocsa.h.
47786         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47787         * lib/strcasestr.c: Include allocsa.h.
47788         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
47789         * lib/mbsstr.c: Include allocsa.h.
47790         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47791         allocsa/freesa instead of malloc/free.
47792         * lib/mbscasestr.c: Include allocsa.h.
47793         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
47794         allocsa/freesa instead of malloc/free.
47795         * modules/c-strstr (Depends-on): Add allocsa.
47796         * modules/c-strcasestr (Depends-on): Likewise.
47797         * modules/strcasestr (Depends-on): Likewise.
47798         * modules/mbsstr (Depends-on): Likewise.
47799         * modules/mbscasestr (Depends-on): Likewise.
47800
47801 2007-02-11  Bruno Haible  <bruno@clisp.org>
47802
47803         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
47804
47805         * modules/mbsspn-tests: New file.
47806         * tests/test-mbsspn.sh: New file.
47807         * tests/test-mbsspn.c: New file.
47808
47809 2007-02-11  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
47812
47813         * modules/mbspbrk-tests: New file.
47814         * tests/test-mbspbrk.sh: New file.
47815         * tests/test-mbspbrk.c: New file.
47816
47817 2007-02-11  Bruno Haible  <bruno@clisp.org>
47818
47819         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
47820         unneeded cast.
47821
47822         * modules/mbscspn-tests: New file.
47823         * tests/test-mbscspn.sh: New file.
47824         * tests/test-mbscspn.c: New file.
47825
47826 2007-02-11  Bruno Haible  <bruno@clisp.org>
47827
47828         * modules/mbscasecmp-tests: New file.
47829         * tests/test-mbscasecmp.sh: New file.
47830         * tests/test-mbscasecmp.c: New file.
47831
47832 2007-02-11  Bruno Haible  <bruno@clisp.org>
47833
47834         Ensure O(n) worst-case complexity of mbscasestr.
47835         * lib/mbscasestr.c: Include stdbool.h.
47836         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47837         functions.
47838         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
47839         the bookkeeping indicates that it's worth it.
47840         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
47841
47842         * modules/mbscasestr-tests: New file.
47843         * tests/test-mbscasestr1.c: New file.
47844         * tests/test-mbscasestr2.sh: New file.
47845         * tests/test-mbscasestr2.c: New file.
47846         * tests/test-mbscasestr3.sh: New file.
47847         * tests/test-mbscasestr3.c: New file.
47848         * tests/test-mbscasestr4.sh: New file.
47849         * tests/test-mbscasestr4.c: New file.
47850         * m4/locale-tr.m4: New file.
47851
47852 2007-02-11  Bruno Haible  <bruno@clisp.org>
47853
47854         Ensure O(n) worst-case complexity of mbsstr.
47855         * lib/mbsstr.c: Include stdbool.h.
47856         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
47857         functions.
47858         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
47859         bookkeeping indicates that it's worth it.
47860         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
47861
47862         * modules/mbsstr-tests: New file.
47863         * tests/test-mbsstr1.c: New file.
47864         * tests/test-mbsstr2.sh: New file.
47865         * tests/test-mbsstr2.c: New file.
47866         * tests/test-mbsstr3.sh: New file.
47867         * tests/test-mbsstr3.c: New file.
47868         * m4/locale-fr.m4: New file.
47869
47870 2007-02-11  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/mbsrchr.c (mbsrchr): Fix bug.
47873
47874         * modules/mbsrchr-tests: New file.
47875         * tests/test-mbsrchr.sh: New file.
47876         * tests/test-mbsrchr.c: New file.
47877
47878 2007-02-11  Bruno Haible  <bruno@clisp.org>
47879
47880         * lib/mbschr.c (mbschr): Fix bug.
47881
47882         * modules/mbschr-tests: New file.
47883         * tests/test-mbschr.sh: New file.
47884         * tests/test-mbschr.c: New file.
47885         * m4/locale-zh.m4: New file.
47886
47887 2007-02-11  Bruno Haible  <bruno@clisp.org>
47888
47889         Support for copying multibyte string iterators.
47890         * lib/mbiter.h: Include <string.h>.
47891         (mbiter_multi_copy): New function.
47892         (mbi_copy): New macro.
47893         * lib/mbuiter.h: Include <string.h>.
47894         (mbuiter_multi_copy): New function.
47895         (mbui_copy): New macro.
47896
47897 2007-02-11  Bruno Haible  <bruno@clisp.org>
47898
47899         New module mbslen.
47900         * modules/mbslen: New file.
47901         * lib/mbslen.c: New file.
47902         * lib/string_.h (mbslen): New declaration.
47903         * m4/mbslen.m4: New file.
47904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47905         GNULIB_MBSLEN.
47906         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
47907         * MODULES.html.sh (Internationalization functions): Add mbslen.
47908
47909 2007-02-11  Bruno Haible  <bruno@clisp.org>
47910
47911         Ensure O(n) worst-case complexity of strcasestr substitute.
47912         * lib/strcasestr.c: Include stdbool.h.
47913         (knuth_morris_pratt): New function.
47914         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47915         bookkeeping indicates that it's worth it.
47916         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
47917
47918         * modules/strcasestr-tests: New file.
47919         * tests/test-strcasestr.c: New file.
47920
47921 2007-02-11  Bruno Haible  <bruno@clisp.org>
47922
47923         Ensure O(n) worst-case complexity of c_strcasestr.
47924         * lib/c-strcasestr.c: Include stdbool.h, string.h.
47925         (knuth_morris_pratt): New function.
47926         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
47927         the bookkeeping indicates that it's worth it.
47928         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
47929
47930         * modules/c-strcasestr-tests: New file.
47931         * tests/test-c-strcasestr.c: New file.
47932
47933 2007-02-11  Bruno Haible  <bruno@clisp.org>
47934
47935         Ensure O(n) worst-case complexity of c_strstr.
47936         * lib/c-strstr.c: Include stdbool.h, string.h.
47937         (knuth_morris_pratt): New function.
47938         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
47939         bookkeeping indicates that it's worth it.
47940         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
47941
47942         * lib/c-strstr.c: Complete rewrite for maintainability.
47943
47944         * modules/c-strstr-tests: New file.
47945         * tests/test-c-strstr.c: New file.
47946
47947 2007-02-11  Bruno Haible  <bruno@clisp.org>
47948
47949         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
47950         5.2.1 and earlier, whereby \055 was treated just like the range
47951         delimiter '-'.
47952         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47953
47954 2007-02-08  Bruno Haible  <bruno@clisp.org>
47955
47956         * modules/regex (Depends-on): Add stdbool.
47957         Reported by Dalibor Topic <robilad@kaffe.org>.
47958
47959 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47960
47961         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
47962         Prefer returning from main to exiting from it.
47963         Remove unnecessary parens after sizeof.
47964
47965 2007-02-05  Bruno Haible  <bruno@clisp.org>
47966
47967         New module mbssep.
47968         * modules/mbssep: New file.
47969         * lib/mbssep.c: New file.
47970         * lib/string_.h (strsep): Add a conditional link warning.
47971         (mbssep): New declaration.
47972         * m4/mbssep.m4: New file.
47973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47974         GNULIB_MBSSEP.
47975         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
47976         * MODULES.html.sh (Internationalization functions): Add mbssep.
47977
47978 2007-02-05  Bruno Haible  <bruno@clisp.org>
47979
47980         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
47981         Optimize search in case of 1 delimiter.
47982
47983 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47984
47985         * lib/acl.h: Include sys/types.h before sys/acl.h.
47986
47987 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
47988
47989         Merge upstream fix for glibc bugzilla #3957:
47990
47991         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
47992
47993         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
47994         bit for RE_HAT_LISTS_NOT_NEWLINE.
47995         (build_charclass_op): Remove bogus comment.
47996
47997 2007-02-05  Simon Josefsson  <simon@josefsson.org>
47998
47999         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
48000
48001 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48002
48003         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
48004         * lib/memmem.c [!defined _LIBC]: Include config.h.
48005
48006 2007-02-04  Bruno Haible  <bruno@clisp.org>
48007
48008         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
48009         warning message.
48010
48011 2007-02-04  Bruno Haible  <bruno@clisp.org>
48012
48013         New module mbstok_r.
48014         * modules/mbstok_r: New file.
48015         * lib/mbstok_r.c: New file.
48016         * lib/string_.h (strtok_r): Change argument names to match the
48017         comments. Add a conditional link warning.
48018         (mbstok_r): New declaration.
48019         * m4/mbstok_r.m4: New file.
48020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48021         GNULIB_MBSTOK_R.
48022         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
48023         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
48024
48025 2007-02-04  Bruno Haible  <bruno@clisp.org>
48026
48027         New module mbsspn.
48028         * modules/mbsspn: New file.
48029         * lib/mbsspn.c: New file.
48030         * lib/string_.h (strspn): Add a conditional link warning.
48031         (mbsspn): New declaration.
48032         * m4/mbsspn.m4: New file.
48033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48034         GNULIB_MBSSPN.
48035         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
48036         * MODULES.html.sh (Internationalization functions): Add mbsspn.
48037
48038 2007-02-04  Bruno Haible  <bruno@clisp.org>
48039
48040         New module mbspbrk.
48041         * modules/mbspbrk: New file.
48042         * lib/mbspbrk.c: New file.
48043         * lib/string_.h (strpbrk): Add a conditional link warning.
48044         (mbspbrk): New declaration.
48045         * m4/mbspbrk.m4: New file.
48046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48047         GNULIB_MBSPBRK.
48048         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
48049         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
48050
48051 2007-02-04  Bruno Haible  <bruno@clisp.org>
48052
48053         New module mbscspn.
48054         * modules/mbscspn: New file.
48055         * lib/mbscspn.c: New file.
48056         * lib/string_.h (strcspn): Add a conditional link warning.
48057         (mbscspn): New declaration.
48058         * m4/mbscspn.m4: New file.
48059         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48060         GNULIB_MBSCSPN.
48061         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
48062         * MODULES.html.sh (Internationalization functions): Add mbscspn.
48063
48064 2007-02-04  Bruno Haible  <bruno@clisp.org>
48065
48066         New module mbscasestr, reduced goal of strcasestr.
48067         * modules/mbscasestr: New file.
48068         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
48069         (mbscasestr): Renamed from strcasestr.
48070         * lib/strcasestr.c: Don't include mbuiter.h.
48071         (strcasestr): Remove support for multibyte locales.
48072         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
48073         Change the conditional link warning.
48074         (mbscasestr): New declaration.
48075         * m4/mbscasestr.m4: New file.
48076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
48077         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
48078         REPLACE_STRCASESTR.
48079         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
48080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48081         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48082         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
48083         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
48084         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
48085         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
48086         (Depends-on): Remove mbuiter.
48087         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
48088
48089 2007-02-04  Bruno Haible  <bruno@clisp.org>
48090
48091         Simplify handling of strncasecmp.
48092         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
48093         the conditional link warning.
48094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48095         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
48096         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
48097         * modules/strcase (configure.ac): Don't invoke
48098         gl_STRING_MODULE_INDICATOR.
48099         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
48100
48101 2007-02-04  Bruno Haible  <bruno@clisp.org>
48102
48103         New module mbscasecmp, reduced goal of strcasecmp.
48104         * modules/mbscasecmp: New file.
48105         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
48106         (mbscasecmp): Renamed from strcasecmp.
48107         * lib/strcasecmp.c: Don't include mbuiter.h.
48108         (strcasecmp): Remove support for multibyte locales.
48109         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
48110         Change the conditional link warning.
48111         (mbscasecmp): New declaration.
48112         * m4/mbscasecmp.m4: New file.
48113         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48114         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
48115         REPLACE_STRCASECMP.
48116         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
48117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48118         GNULIB_MBSCASECMP.
48119         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
48120         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
48121         * modules/strcase (Files): Remove m4/mbrtowc.m4.
48122         (Depends-on): Remove mbuiter.
48123         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
48124
48125 2007-02-04  Bruno Haible  <bruno@clisp.org>
48126
48127         New module mbsstr. Remove module strstr.
48128         * modules/mbsstr: New file.
48129         * modules/strstr: Remove file.
48130         * lib/mbsstr.c: Renamed from lib/strstr.c.
48131         (mbsstr): Renamed from strstr.
48132         * lib/string_.h (strstr): Remove declaration. Change the conditional
48133         link warning.
48134         (mbsstr): New declaration.
48135         * m4/mbsstr.m4: New file.
48136         * m4/strstr.m4: Remove file.
48137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48138         REPLACE_STRSTR.
48139         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
48140         Don't initialize GNULIB_STRSTR.
48141         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
48142         substitute GNULIB_STRSTR and REPLACE_STRSTR.
48143         * MODULES.html.sh (Internationalization functions): Add mbsstr.
48144         (Support for systems lacking ANSI C 89): Remove strstr.
48145
48146 2007-02-04  Bruno Haible  <bruno@clisp.org>
48147
48148         New module mbsrchr.
48149         * modules/mbsrchr: New file.
48150         * lib/mbsrchr.c: New file.
48151         * lib/string_.h (strrchr): Add a conditional link warning.
48152         (mbsrchr): New declaration.
48153         * m4/mbsrchr.m4: New file.
48154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48155         GNULIB_MBSRCHR.
48156         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
48157         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
48158
48159 2007-02-04  Bruno Haible  <bruno@clisp.org>
48160
48161         New module mbschr.
48162         * modules/mbschr: New file.
48163         * lib/mbschr.c: New file.
48164         * lib/string_.h (strchr): Add a conditional link warning.
48165         (mbschr): New declaration.
48166         * m4/mbschr.m4: New file.
48167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
48168         GNULIB_MBSCHR.
48169         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
48170         * MODULES.html.sh (Internationalization functions): Add mbschr.
48171
48172 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
48175
48176         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
48177
48178 2007-02-04  Bruno Haible  <bruno@clisp.org>
48179
48180         New module description section 'configure.ac-early'.
48181         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
48182         (func_get_autoconf_early_snippet): New function.
48183         (func_import, func_create_testdir): Use it. Remove special cases for
48184         modules 'extensions' and 'lock'.
48185         * modules/extensions (configure.ac-early): Require
48186         gl_USE_SYSTEM_EXTENSIONS.
48187         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
48188
48189 2007-02-04  Bruno Haible  <bruno@clisp.org>
48190
48191         Make use of gcj-4.3's -fsource and -ftarget option.
48192         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
48193         and if so try the options -fsource and -ftarget.
48194         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
48195         source_version, ftarget_option, target_version arguments.
48196         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
48197         (is_envjavac_oldgcj_14_14_usable): Renamed from
48198         is_envjavac_gcj_14_14_usable.
48199         (is_envjavac_oldgcj_14_13_usable): Renamed from
48200         is_envjavac_gcj_14_13_usable.
48201         (is_gcj_present): Update.
48202         (is_gcj_43, is_gcj43_usable): New functions.
48203         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
48204         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
48205         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
48206         try the options -fsource and -ftarget.
48207
48208 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48209
48210         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
48211         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
48212         larger value.
48213
48214 2007-02-03  Jim Meyering  <jim@meyering.net>
48215
48216         Give tools a better chance to allocate space for very large buffers.
48217         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
48218
48219         Make pwd and readlink work also when run with an unreadable parent dir
48220         on systems with openat support.
48221         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
48222         provided getcwd function, even when we have openat support.
48223         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
48224
48225 2007-02-02  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
48228         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
48229         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
48230         portability problems if one of these functions is only used on specific
48231         platforms.
48232         Reported by Paul Eggert.
48233
48234 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
48235
48236         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
48237         is causing more trouble than it's curing.
48238         * lib/regex_internal.h (__mempcpy): Remove.
48239         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
48240         (and make the code a tad smaller to boot).
48241         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
48242
48243 2007-02-02  Jim Meyering  <jim@meyering.net>
48244
48245         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
48246         section, not in the Makefile.am: one.
48247
48248 2007-02-02  Eric Blake  <ebb9@byu.net>
48249
48250         * lib/strchrnul.c: Always include config.h first.
48251
48252         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
48253         gnulib strstr is not necessary here.
48254
48255 2007-02-02  Simon Josefsson  <simon@josefsson.org>
48256
48257         * m4/socklen.m4: Fix typo.
48258
48259 2007-02-02  Eric Blake  <ebb9@byu.net>
48260
48261         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
48262         * modules/netinet_in (Makefile.am): Likewise.
48263
48264 2007-02-01  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/string_.h (GL_LINK_WARNING): New macro.
48267         (strcasecmp, strstr, strcasestr): If provided by the system,
48268         conditionally define as a macro that leads to a warning instead of to
48269         an error.
48270         (strncasecmp): Conditionally define as a macro that leads to a warning.
48271
48272 2007-02-01  Karl Berry  <karl@gnu.org>
48273
48274         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
48275
48276 2007-02-01  Bruno Haible  <bruno@clisp.org>
48277
48278         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
48279         renamings.
48280
48281 2007-02-01  Eric Blake  <ebb9@byu.net>
48282
48283         * modules/regex (Depends-on): Revert dependence on mempcpy.
48284         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
48285         module's definition of mempcpy.
48286         Reported by Paul Eggert.
48287
48288 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         * lib/string_.h: If the gnulib module XYZ is not present, undefine
48291         the symbol XYZ before redefining it.  This fixes a problem with
48292         programs that don't use XYZ, when compiled on systems that define
48293         XYZ to something else.
48294
48295 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
48296
48297         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
48298         occurs when "mkdir -m foo" creates a setgid directory that is (1)
48299         writeable to group or other and (2) is intended to have a special
48300         mode bit that is set or cleared.  In such a case, the directory
48301         should be neither group- nor other-writeable until the special
48302         mode bits are right.
48303
48304 2007-01-31  Eric Blake  <ebb9@byu.net>
48305
48306         * modules/mountlist (Depends-on): Add strstr.
48307
48308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
48309         bug.
48310         * modules/string (Makefile.am): Remove redundant replacement.
48311         * modules/regex (Depends-on): Add mempcpy.
48312
48313 2007-01-31  Bruno Haible  <bruno@clisp.org>
48314
48315         New module description field 'Link'.
48316         * gnulib-tool (func_usage): Document --extract-link-directive.
48317         (sed_extract_prog): Recognize 'Link' directive.
48318         (func_get_link_directive): New function.
48319         (func_import): Show summary of link directives.
48320         Handle --extract-link-directive option.
48321         * modules/acl (Link): New section.
48322         * modules/clock-time (Link): New section.
48323         * modules/euidaccess (Link): New section.
48324         * modules/gettext (Link): New section.
48325         * modules/iconv (Link): New section.
48326         * modules/lock (Link): New section.
48327         * modules/nanosleep (Link): New section.
48328         * modules/readline (Link): New section.
48329
48330 2007-01-27  Bruno Haible  <bruno@clisp.org>
48331
48332         Enforce the use of gnulib modules for unportable <string.h> functions.
48333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
48334         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
48335         (gl_HEADER_STRING_H_BODY): Require it.
48336         * lib/string_.h: If the gnulib module XYZ is not present, redefine
48337         the symbol XYZ to one that gives a link error.
48338         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
48339         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
48340         * modules/mempcpy (configure.ac): Likewise.
48341         * modules/memrchr (configure.ac): Likewise.
48342         * modules/stpcpy (configure.ac): Likewise.
48343         * modules/stpncpy (configure.ac): Likewise.
48344         * modules/strcase (configure.ac): Likewise.
48345         * modules/strcasestr (configure.ac): Likewise.
48346         * modules/strchrnul (configure.ac): Likewise.
48347         * modules/strdup (configure.ac): Likewise.
48348         * modules/strndup (configure.ac): Likewise.
48349         * modules/strnlen (configure.ac): Likewise.
48350         * modules/strpbrk (configure.ac): Likewise.
48351         * modules/strsep (configure.ac): Likewise.
48352         * modules/strstr (configure.ac): Likewise.
48353         * modules/strtok_r (configure.ac): Likewise.
48354
48355 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
48356
48357         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
48358
48359 2007-01-30  Jim Meyering  <jim@meyering.net>
48360
48361         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
48362
48363 2007-01-29  Bruno Haible  <bruno@clisp.org>
48364
48365         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
48366         * lib/execute.c: Likewise.
48367         * lib/pipe.c: Likewise.
48368         * lib/printf-args.h: Likewise.
48369         * lib/printf-args.c: Likewise.
48370         * lib/printf-parse.c: Likewise.
48371         * lib/vasnprintf.c: Likewise.
48372
48373 2007-01-29  Eric Blake  <ebb9@byu.net>
48374
48375         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
48376         declaration.
48377
48378 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
48379
48380         * lib/strptime.h (strptime): Use 'restrict' for args where
48381         POSIX requires this.
48382         * lib/strptime.c (strptime): Likewise.
48383         Change license notice from LGPL to GPL, since gnulib-tool will
48384         change this as needed.
48385         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
48386         defined.
48387         Include "strptime.h" first, to check interface.
48388         Do not #undef _LIBC and _NL_CURRENT.
48389         Do not include <stdlib.h>; no longer needed.
48390         Include "time_r.h" and declare ptime_locale_status
48391         only if _LIBC is not defined.
48392         (__P): Remove unused macro.
48393         (match_string): Bring back glibc version, but use it only if _LIBC
48394         is defined.
48395         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
48396         Remove unnecessary assertion and abort() call.
48397         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
48398         * m4/strptime.m4: Fix serial number comment.
48399         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
48400         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
48401         (Depends-on): Add time_r.
48402
48403 2007-01-29  Bruno Haible  <bruno@clisp.org>
48404
48405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48406         strptime.
48407         * modules/strptime (Depends-on): Add stdbool.
48408         * lib/strptime.h: Include <time.h> always. Add comments.
48409
48410 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48411
48412         * modules/strptime: New file.
48413         * lib/strptime.h: New file.
48414         * lib/strptime.c: New file.
48415         * m4/strptime.m4: New file.
48416
48417 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48418
48419         * MODULES.html.sh: New module mpsort.
48420         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
48421
48422         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
48423         a circularity problem with HP-UX ia64 reported by Bob Proulx in
48424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
48425         All uses changed.
48426         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
48427         All uses changed.
48428         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
48429         to _Restrict_.
48430         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
48431         the parameter matches the prototype.
48432
48433 2007-01-28  Jim Meyering  <jim@meyering.net>
48434
48435         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
48436         sys/time.h here, reverting that part of the previous patch:
48437         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
48438
48439 2007-01-28  Bruno Haible  <bruno@clisp.org>
48440
48441         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
48442         value of $(SYS_TIME_H).
48443         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
48444         remove it conditionally, too. [added by Jim Meyering]
48445         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
48446         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48447         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
48448         GETTIMEOFDAY_REPLACEMENT to 1.
48449
48450 2007-01-28  Bruno Haible  <bruno@clisp.org>
48451
48452         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
48453         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
48454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
48455         Set UNISTD_H instead of UNISTD_H2.
48456         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
48457
48458 2007-01-28  Bruno Haible  <bruno@clisp.org>
48459
48460         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
48461         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
48462
48463 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48464
48465         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
48466         (func_create_testdir): Ensure C locale for `grep' and `tr'
48467         character ranges.
48468         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
48469         ACLOCAL_AMFLAGS parsing state machine.
48470
48471 2007-01-27  Bruno Haible  <bruno@clisp.org>
48472
48473         * modules/unistr/base: Update.
48474
48475 2007-01-27  Bruno Haible  <bruno@clisp.org>
48476
48477         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
48478         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
48479         * modules/unistr/u32-mbtouc-unsafe: Renamed from
48480         modules/unistr/u32-mbtouc.
48481         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
48482         * lib/unistr.h: Update.
48483         * lib/linebreak.c: Update.
48484         * modules/unistr/u32-mbtouc: Renamed from
48485         modules/unistr/u32-mbtouc-safe.
48486         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
48487         * lib/unistr.h: Update.
48488         * lib/unistr/u32-to-u8.c: Update.
48489         * lib/unistr/u32-to-u16.c: Update.
48490
48491 2007-01-27  Bruno Haible  <bruno@clisp.org>
48492
48493         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
48494         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
48495         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
48496         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
48497         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
48498         * modules/unistr/u16-mbtouc-unsafe: Renamed from
48499         modules/unistr/u16-mbtouc.
48500         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
48501         * lib/unistr.h: Update.
48502         * lib/linebreak.c: Update.
48503         * modules/linebreak: Update.
48504         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
48505         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
48506         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
48507         * modules/unistr/u16-mbtouc: Renamed from
48508         modules/unistr/u16-mbtouc-safe.
48509         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
48510         * lib/unistr.h: Update.
48511         * lib/unistr/u16-to-u8.c: Update.
48512         * modules/unistr/u16-to-u8: Update.
48513         * lib/unistr/u16-to-u32.c: Update.
48514         * modules/unistr/u16-to-u32: Update.
48515
48516 2007-01-27  Bruno Haible  <bruno@clisp.org>
48517
48518         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
48519         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
48520         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
48521         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
48522         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
48523         * modules/unistr/u8-mbtouc-unsafe: Renamed from
48524         modules/unistr/u8-mbtouc.
48525         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
48526         * lib/unistr.h: Update.
48527         * lib/striconveh.c: Update.
48528         * modules/striconveh: Update.
48529         * lib/linebreak.c: Update.
48530         * modules/linebreak: Update.
48531         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
48532         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
48533         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
48534         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
48535         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
48536         * lib/unistr.h: Update.
48537         * lib/striconveh.c: Update.
48538         * modules/striconveh: Update.
48539         * lib/unistr/u8-to-u16.c: Update.
48540         * modules/unistr/u8-to-u16: Update.
48541         * lib/unistr/u8-to-u32.c: Update.
48542         * modules/unistr/u8-to-u32: Update.
48543
48544 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48545
48546         Sync from Libtool.
48547         * lib/argz.c: Do not include strings.h nor memory.h, include
48548         string.h unconditionally.  Patch by Simon Josefsson.
48549
48550 2007-01-27  Bruno Haible  <bruno@clisp.org>
48551
48552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
48553         from gl_HEADER_STRING_H_BODY.
48554         (gl_HEADER_STRING_H_BODY): Require it.
48555         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
48556         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48557         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48558         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48560         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
48561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48562         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48563         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
48564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48565         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48566         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
48567         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48568         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48570
48571 2007-01-27  Bruno Haible  <bruno@clisp.org>
48572
48573         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
48574         check_PROGRAMS into noinst_PROGRAMS.
48575         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
48576         check_PROGRAMS in this case.
48577         (func_import): Set for_test to false.
48578         (func_create_testdir): Set for_test to true.
48579
48580 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48581             Bruno Haible  <bruno@clisp.org>
48582
48583         * modules/strcasestr (Files): Remove lib/strcasestr.h.
48584         (Depends-on): Add string.
48585         (Includes): Use <string.h> instead of strcasestr.h.
48586         * modules/string (Makefile.am): Also substitute the value of
48587         REPLACE_STRCASESTR.
48588         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
48589         assume strcasestr is declared in <string.h> not <strings.h>. Also
48590         set REPLACE_STRCASESTR.
48591         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
48592         REPLACE_STRCASESTR.
48593         * lib/strcasestr.h: Remove file.
48594         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
48595         * lib/string_.h (strcasestr): New declaration.
48596
48597 2007-01-27  Bruno Haible  <bruno@clisp.org>
48598
48599         * lib/string_.h: Use 'extern'.
48600
48601 2007-01-27  Jim Meyering  <jim@meyering.net>
48602
48603         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
48604         of set-but-not-used local, "q".
48605
48606         * lib/mempcpy.c: Include <config.h> before <string.h>.
48607         This fixes a compilation error on HP-UX, due to the system's
48608         "restrict"-using mempcpy prototype.
48609
48610 2007-01-26  Bruno Haible  <bruno@clisp.org>
48611
48612         Small optimization.
48613         * lib/javacomp.c: Include c-strstr.h.
48614          (is_envjavac_gcj): Use c_strstr instead of strstr.
48615         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
48616
48617 2007-01-26  Bruno Haible  <bruno@clisp.org>
48618
48619         * MODULES.html.sh (Unicode string functions): Add the new modules.
48620
48621         * modules/uniconv/u32-strconv-to-locale: New file.
48622         * lib/uniconv/u32-strconv-to-locale.c: New file.
48623
48624         * modules/uniconv/u16-strconv-to-locale: New file.
48625         * lib/uniconv/u16-strconv-to-locale.c: New file.
48626
48627         * modules/uniconv/u8-strconv-to-locale: New file.
48628         * lib/uniconv/u8-strconv-to-locale.c: New file.
48629
48630         * modules/uniconv/u32-strconv-from-locale: New file.
48631         * lib/uniconv/u32-strconv-from-locale.c: New file.
48632
48633         * modules/uniconv/u16-strconv-from-locale: New file.
48634         * lib/uniconv/u16-strconv-from-locale.c: New file.
48635
48636         * modules/uniconv/u8-strconv-from-locale: New file.
48637         * lib/uniconv/u8-strconv-from-locale.c: New file.
48638
48639         * modules/uniconv/u32-strconv-to-enc: New file.
48640         * lib/uniconv/u32-strconv-to-enc.c: New file.
48641         * modules/uniconv/u32-strconv-to-enc-tests: New file.
48642         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
48643
48644         * modules/uniconv/u16-strconv-to-enc: New file.
48645         * lib/uniconv/u16-strconv-to-enc.c: New file.
48646         * lib/uniconv/u-strconv-to-enc.h: New file.
48647         * modules/uniconv/u16-strconv-to-enc-tests: New file.
48648         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
48649
48650         * modules/uniconv/u8-strconv-to-enc: New file.
48651         * lib/uniconv/u8-strconv-to-enc.c: New file.
48652         * modules/uniconv/u8-strconv-to-enc-tests: New file.
48653         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
48654
48655         * modules/uniconv/u32-strconv-from-enc: New file.
48656         * lib/uniconv/u32-strconv-from-enc.c: New file.
48657         * modules/uniconv/u32-strconv-from-enc-tests: New file.
48658         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
48659
48660         * modules/uniconv/u16-strconv-from-enc: New file.
48661         * lib/uniconv/u16-strconv-from-enc.c: New file.
48662         * modules/uniconv/u16-strconv-from-enc-tests: New file.
48663         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
48664
48665         * modules/uniconv/u8-strconv-from-enc: New file.
48666         * lib/uniconv/u8-strconv-from-enc.c: New file.
48667         * lib/uniconv/u-strconv-from-enc.h: New file.
48668         * modules/uniconv/u8-strconv-from-enc-tests: New file.
48669         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
48670
48671         * modules/uniconv/u32-conv-from-enc: New file.
48672         * lib/uniconv/u32-conv-from-enc.c: New file.
48673         * modules/uniconv/u32-conv-from-enc-tests: New file.
48674         * tests/uniconv/test-u32-conv-from-enc.c: New file.
48675
48676         * modules/uniconv/u16-conv-from-enc: New file.
48677         * lib/uniconv/u16-conv-from-enc.c: New file.
48678         * lib/uniconv/u-conv-from-enc.h: New file.
48679         * modules/uniconv/u16-conv-from-enc-tests: New file.
48680         * tests/uniconv/test-u16-conv-from-enc.c: New file.
48681
48682         * modules/uniconv/u8-conv-from-enc: New file.
48683         * lib/uniconv/u8-conv-from-enc.c: New file.
48684         * modules/uniconv/u8-conv-from-enc-tests: New file.
48685         * tests/uniconv/test-u8-conv-from-enc.c: New file.
48686
48687         * modules/uniconv/base: New file.
48688         * lib/uniconv.h: New file.
48689
48690 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48691
48692         * doc/gnulib-tool.texi (Initial import): Update to match current
48693         behavior with strdup module.
48694         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
48695         * lib/memmem.h: Remove; all uses removed.  This is now done
48696         by <string.h>.
48697         * lib/mempcpy.h: Likewise.
48698         * lib/memrchr.h: Likewise.
48699         * lib/stpcpy.h: Likewise.
48700         * lib/stpncpy.h: Likewise.
48701         * lib/strcase.h: Likewise.
48702         * lib/strchrnul.h: Likewise.
48703         * lib/strdup.h: Likewise.
48704         * lib/strndup.h: Likewise.
48705         * lib/strnlen.h: Likewise.
48706         * lib/strpbrk.h: Likewise.
48707         * lib/strsep.h: Likewise.
48708         * lib/strstr.h: Likewise.
48709         * lib/strtok_r.h: Likewise.
48710         * lib/string_.h: New file.
48711         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
48712         Rely on <string.h> instead.
48713         * lib/canon-host.c: Likewise.
48714         * lib/chdir-long.c: Likewise.
48715         * lib/concatpath.c: Likewise.
48716         * lib/exclude.c: Likewise.
48717         * lib/fchdir.c: Likewise.
48718         * lib/getaddrinfo.c: Likewise.
48719         * lib/getcwd.c: Likewise.
48720         * lib/getsubopt.c: Likewise.
48721         * lib/glob.c: Likewise.
48722         * lib/hard-locale.c: Likewise.
48723         * lib/iconvme.c: Likewise.
48724         * lib/javacomp.c: Likewise.
48725         * lib/mempcpy.c: Likewise.
48726         * lib/memrchr.c: Likewise.
48727         * lib/regex_internal.h: Likewise.
48728         * lib/stpncpy.c: Likewise.
48729         * lib/strcasecmp.c: Likewise.
48730         * lib/strchrnul.c: Likewise.
48731         * lib/strdup.c: Likewise.
48732         * lib/striconv.c: Likewise.
48733         * lib/striconveh.c: Likewise.
48734         * lib/striconveha.c: Likewise.
48735         * lib/strncasecmp.c: Likewise.
48736         * lib/strndup.c: Likewise.
48737         * lib/strnlen.c: Likewise.
48738         * lib/strsep.c: Likewise.
48739         * lib/strstr.c: Likewise.
48740         * lib/strtok_r.c: Likewise.
48741         * lib/userspec.c: Likewise.
48742         * lib/w32spawn.h: Likewise.
48743         * lib/xstrndup.c: Likewise.
48744         * lib/mountlist.c (strstr): Remove decl.
48745         * m4/string_h.m4: New file.
48746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
48747         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
48748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
48749         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
48750         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
48751         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
48752         Set REPLACE_STRCASECMP if necessary.
48753         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
48754         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
48755         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
48756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
48757         HAVE_DECL_STRDUP if necessary.
48758         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
48759         since gl_FUNC_STRNDUP does that now.
48760         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
48761         Check for decl here...
48762         (gl_PREREQ_STRNLEN): ... not here.
48763         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
48764         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
48765         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
48766         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
48767         necessary.
48768         * modules/string: New file.
48769         * modules/memmem (Files): Remove special-purpose include file.
48770         (Depends-on): Add string.
48771         (Include): Include <string.h>, not the removed file.
48772         * modules/mempcpy: Likewise.
48773         * modules/memrchr: Likewise.
48774         * modules/stpcpy: Likewise.
48775         * modules/stpncpy: Likewise.
48776         * modules/strcase: Likewise.
48777         * modules/strchrnul: Likewise.
48778         * modules/strdup: Likewise.
48779         * modules/strndup: Likewise.
48780         * modules/strnlen: Likewise.
48781         * modules/strpbrk: Likewise.
48782         * modules/strsep: Likewise.
48783         * modules/strstr: Likewise.
48784         * modules/strtok_r: Likewise.
48785         * tests/test-dirname.c: Don't include "strdup.h", since
48786         <string.h> now suffices.
48787         * tests/test-memmem.c: Don't include "memmem.h", since
48788         <string.h> now suffices.
48789
48790 2007-01-25  Bruno Haible  <bruno@clisp.org>
48791
48792         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
48793         *resultp is 0.
48794
48795         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
48796         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
48797         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
48798         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
48799
48800         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
48801         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
48802         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
48803         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
48804         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
48805         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
48806
48807 2007-01-24  Bruno Haible  <bruno@clisp.org>
48808
48809         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
48810         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
48811         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
48812         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
48813         gl_FUNC_FTS_CORE.
48814         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
48815         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
48816         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48817         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
48818         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
48819         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
48820         gl_FUNC_FCHOWNAT.
48821         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
48822         gl_FUNC_STRFTIME.
48823         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
48824         Reported by Ralf Wildenhues.
48825
48826 2007-01-24  Bruno Haible  <bruno@clisp.org>
48827
48828         Drop AC_REQUIRE calls that are redundant with the module dependencies.
48829         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
48830         gl_GETADDRINFO.
48831         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
48832         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
48833         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
48834
48835 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
48836
48837         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
48838         Don't use 'exit'; just return from 'main'.
48839         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
48840
48841         * lib/fnmatch_.h: Readjust white space and comments to match
48842         glibc, to avoid spurious diffs.
48843
48844 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48845
48846         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
48847         2004-12-01 change by Jakub Jelinek, since this code won't compile
48848         if !LIBC.  Problem reported by Bob Proulx.
48849
48850 2007-01-23  Bruno Haible  <bruno@clisp.org>
48851
48852         * lib/striconveh.c: Include c-strcaseeq.h.
48853         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
48854         * modules/striconveh (Depends-on): Add c-strcaseeq.
48855
48856 2007-01-23  Bruno Haible  <bruno@clisp.org>
48857
48858         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
48859
48860         * modules/c-strcaseeq: New file.
48861         * lib/c-strcaseeq.h: New file.
48862
48863         * modules/streq: New file.
48864         * lib/streq.h: New file.
48865
48866 2007-01-23  Bruno Haible  <bruno@clisp.org>
48867
48868         * modules/striconveha-tests: New file.
48869         * tests/test-striconveha.c: New file.
48870
48871         * lib/striconveha.h: Include <stdbool.h>.
48872         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
48873         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
48874         (mem_iconveha_notranslit): Renamed from mem_iconveha.
48875         (mem_iconveha): New function.
48876         (str_iconveha_notranslit): Renamed from str_iconveha.
48877         (str_iconveha): New function.
48878         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
48879         c-strcase.
48880
48881 2007-01-23  Bruno Haible  <bruno@clisp.org>
48882
48883         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
48884         encodings without forgiving before trying any encoding with handler.
48885         (str_iconveha): Try all encodings without forgiving before trying any
48886         encoding with handler.
48887
48888 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48889
48890         Import the following changes from libc.
48891
48892         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48893
48894         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
48895
48896         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
48897
48898         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
48899         normal_bracket label.
48900
48901         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
48902
48903         [BZ #361]
48904         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
48905         to normal_bracket after fetching the next character.
48906
48907 2007-01-22  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
48910         argument.
48911         * lib/striconveh.c (iconv_carefully_1): New function.
48912         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
48913         argument.
48914         (str_cd_iconveh): Update.
48915         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
48916         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
48917         * tests/test-striconveh.c (MAGIC): New macro.
48918         (new_offsets): New function.
48919         (main): Test call with and without offsets.
48920
48921 2007-01-22  Bruno Haible  <bruno@clisp.org>
48922
48923         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
48924         * modules/sys_select (Makefile.am): Likewise.
48925         * modules/sys_socket (Makefile.am): Likewise.
48926         * modules/sys_time (Makefile.am): Likewise.
48927
48928 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48929
48930         * modules/gettimeofday (License): Change from GPL to LGPL, since
48931         gettimeofday is a library function.
48932
48933 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48934
48935         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
48936
48937 2007-01-21  Bruno Haible  <bruno@clisp.org>
48938
48939         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
48940
48941 2007-01-21  Bruno Haible  <bruno@clisp.org>
48942
48943         * modules/striconveha: New file.
48944         * lib/striconveha.h: New file.
48945         * lib/striconveha.c: New file.
48946         * MODULES.html.sh (Internationalization functions): Add striconveha.
48947         * lib/striconv.c (str_iconv): Optimize the case of an empty input
48948         string.
48949         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
48950
48951 2007-01-21  Bruno Haible  <bruno@clisp.org>
48952
48953         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
48954         * lib/striconveh.c (str_iconveh): Likewise.
48955
48956 2007-01-21  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/striconveh.h (mem_iconveh): New declaration.
48959         * lib/striconveh.c (mem_iconveh): New function.
48960         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
48961
48962 2007-01-21  Bruno Haible  <bruno@clisp.org>
48963
48964         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
48965
48966         * lib/striconveh.h (mem_cd_iconveh): Change specification.
48967         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
48968         original result buffer.
48969         (str_cd_iconveh): Update.
48970         * tests/test-striconveh.c (main): Update.
48971
48972         * lib/striconv.h (mem_cd_iconv): Change specification.
48973         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
48974         result buffer.
48975         (str_cd_iconv): Update.
48976         * tests/test-striconv.c (main): Update.
48977
48978 2007-01-21  Bruno Haible  <bruno@clisp.org>
48979
48980         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
48981
48982 2007-01-20  Jim Meyering  <jim@meyering.net>
48983
48984         * lib/userspec.c (parse_with_separator): If a user or group string
48985         starts with "+", skip the corresponding name-to-ID look-up, since
48986         such a look-up must fail: user and group names may not include "+".
48987
48988 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
48989
48990         * lib/poll.c: Include sys/time.h and time.h unconditionally,
48991         since we now assume the sys_time module.
48992         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
48993         check for sys/time.h; no longer needed.
48994         * modules/poll (Depends-on): Depend on sys_time.
48995
48996 2007-01-18  Bruno Haible  <bruno@clisp.org>
48997
48998         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
48999         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49000
49001         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
49002         gettimeofday.
49003
49004         * tests/test-gettimeofday.c: Include <time.h>.
49005         (dummy): Remove variable.
49006
49007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
49008         gl_HEADER_SYS_TIME_H.
49009         (gl_HEADER_SYS_TIME_H): New macro.
49010
49011         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
49012         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49014         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
49015         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49016         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
49017         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
49018         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49019         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
49020         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
49021         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49022
49023         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
49024         last change; it caused a compilation error when cross-compiling to
49025         Cygwin.
49026
49027 2007-01-18  Jim Meyering  <jim@meyering.net>
49028
49029         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
49030         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
49031         than the race-prone "test -d sys || mkdir sys".
49032         (configure.ac): Use AC_PROG_MKDIR_P.
49033         * modules/sys_select: Likewise.
49034         * modules/sys_socket: Likewise.
49035         * modules/sys_time: Likewise.
49036
49037 2007-01-18  Eric Blake  <ebb9@byu.net>
49038
49039         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
49040         replace gettimeofday.
49041         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
49042         name, to avoid infinite recursion.
49043
49044 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
49045
49046         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
49047         module sys_time.
49048         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
49049         assume timespec.h defines struct timeval.
49050         * lib/settime.c: Likewise.
49051         * lib/utimens.c: Likewise.
49052         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
49053         since we now assume the gettimeofday module.
49054         * lib/tempname.c (__gen_tempname): Likewise.
49055         * lib/gettimeofday.h: Remove.
49056         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
49057         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
49058         Include <time.h>, for 'time()'.
49059         (localtime_buffer_addr): Also use this workaround if
49060         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
49061         to simplify the uses.  All uses changed.
49062         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
49063         that #undef is inside {}, and 'const' follows type name consistently.
49064         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
49065         (gettimeofday): Do not use the maximum possible value for
49066         tv->tv_usec, since that might break usages other than ls.c.
49067         Instead, we'll leave ls.c alone.  This undoes today's patch
49068         by Bruno.  Add a compile-time warning for 1s-clock resolution;
49069         we've never observed the problem but might as well keep the
49070         canary.
49071         * lib/nanosleep.c: Include timespec.h first, for interface check.
49072         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
49073         now assume the sys_time module.
49074         * lib/tempname.c: Likewise.
49075         * lib/timespec.h: Likewise.
49076         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
49077         needed.
49078         * lib/strftime.c: Likewise.
49079         * lib/timespec.h: Likewise.
49080         * lib/posixtm.c: Include posixtm.h first, for interface check.
49081         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
49082         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
49083         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
49084         * lib/sys_time_.h: New file.
49085         * lib/timespec.h (struct timespec): Use long int, not long.
49086         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49087         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
49088         Remove obsolescent call to AC_HEADER_TIME.
49089         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
49090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
49091         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
49092         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
49093         Likewise.
49094         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
49095         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
49096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
49097         into the sys_time module.  Check for gettimeofday just once.
49098         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
49099         for gettimeofday signature to just check the signature.  Merely
49100         compile it, since linking doesn't test signature.  Improve test for
49101         whether gettimeofday.o is actually needed.
49102         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
49103         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
49104         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
49105         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49106         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
49107         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
49108         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
49109         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
49110         than worrying about sys/time.h.
49111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49112         Don't bother worrying about TIME_WITH_SYS_TIME.
49113         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
49114         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
49115         * m4/sys_time_h.m4: New file.
49116         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
49117         Don't include sys/time.h.  Return from main rather than exiting.
49118         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
49119         all uses changed.
49120         * modules/gethrxtime (Depends-on): Add sys_time.
49121         * modules/gettime (Depends-on): Likewise.
49122         * modules/gettimeofday (Depends-on): Likewise.
49123         * modules/nanosleep (Depends-on): Likewise.
49124         * modules/settime (Depends-on): Likewise.
49125         * modules/tempname (Depends-on): Likewise.
49126         * modules/utimens (Depends-on): Likewise.
49127         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
49128         (Include:) Change back to <sys/time.h>.
49129         (Maintainer:) Add self.
49130         * modules/sys_time: New file.
49131         * modules/tempname (Depends-on): Add gettimeofday.
49132         * tests/test-gettimeofday.c: Include <sys/time.h>
49133         rather than gettimeofday.h.
49134
49135 2007-01-17  Bruno Haible  <bruno@clisp.org>
49136
49137         * gnulib-tool (func_get_license): Revert last patch. Instead, let
49138         the license default to GPL.
49139         (func_create_testdir): Don't complain if a module is LGPL and its
49140         tests module depends on GPLed modules.
49141
49142 2007-01-17  Bruno Haible  <bruno@clisp.org>
49143
49144         * lib/gettimeofday.c (gettimeofday): Add code for the case
49145         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
49146         maximum possible value for tv->tv_usec, rather than the minimum one.
49147
49148 2005-10-08  Martin Lambers  <marlam@marlam.de>
49149 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49150 2007-01-16  Bruno Haible  <bruno@clisp.org>
49151
49152         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
49153         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
49154         gl_FUNC_GETTIMEOFDAY.
49155         (Include): Add gettimeofday.h.
49156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
49157         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
49158         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
49159         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
49160         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
49161         * lib/gettimeofday.h: New file.
49162         * lib/gettimeofday.c: Include <sys/timeb.h>.
49163         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
49164         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
49165         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
49166         fall back on time().
49167
49168         * tests/test-gettimeofday.c: New file.
49169         * modules/gettimeofday-tests: New file.
49170
49171 2007-01-16  Eric Blake  <ebb9@byu.net>
49172
49173         * modules/fnmatch (Depends-on): Depend on wchar.
49174         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
49175         * m4/fnmatch.m4: Likewise.
49176         * modules/mbchar (Makefile.am): Assume <wchar.h>.
49177         * m4/mbchar.m4: Likewise.
49178         * modules/mbswidth (Depends-on): Depend on wchar.
49179         * lib/mbswidth.c: Assume <wchar.h>.
49180         * m4/mbswidth.m4: Likewise.
49181         * modules/quotearg (Depends-on): Depend on wchar.
49182         * lib/quotearg.c: Assume <wchar.h>.
49183         * m4/quotearg.m4: Likewise.
49184         * modules/regex (Depends-on): Depend on wchar.
49185         * lib/regex_internal.h: Assume <wchar.h>.
49186         * m4/regex.m4: Likewise.
49187         * modules/stdint (Depends-on): Depend on wchar.
49188         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
49189         * m4/stdint.m4: Likewise.
49190         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
49191         * modules/strftime (Depends-on): Depend on wchar.
49192         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
49193         * modules/strtol (Depends-on): Depend on wchar.
49194         * lib/strtol.c: Assume <wchar.h>.
49195         * modules/wcwidth (Depends-on): Depend on wchar.
49196         * lib/wcwidth.h: Assume <wchar.h>.
49197         * m4/wcwidth.m4: Likewise.
49198
49199 2007-01-16  Bruno Haible  <bruno@clisp.org>
49200
49201         * modules/csharpexec-script: New, created from...
49202         * modules/csharpexec: ... this.
49203
49204 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49205
49206         * modules/javaexec-script: New, created from...
49207         * modules/javaexec: ... this.
49208
49209 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49210
49211         * modules/poll (Dependencies): Add sys_select.
49212
49213 2007-01-15  Jim Meyering  <jim@meyering.net>
49214
49215         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
49216         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
49217         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
49218         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
49219
49220 2007-01-15  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/striconveh: New file.
49223         * lib/striconveh.h: New file.
49224         * lib/striconveh.c: New file.
49225         * MODULES.html.sh (Internationalization functions): Add striconveh.
49226
49227         * modules/striconveh-tests: New file.
49228         * tests/test-striconveh.c: New file.
49229
49230 2007-01-15  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
49233         not from GNU libiconv or GNU libc.
49234
49235 2007-01-15  Bruno Haible  <bruno@clisp.org>
49236
49237         * doc/gnulib-intro.texi (Copyright): Explain the different license
49238         terms for module descriptions, autoconf macros, tests, documentation.
49239
49240 2007-01-14  Bruno Haible  <bruno@clisp.org>
49241
49242         * modules/striconv-tests: New file.
49243         * tests/test-striconv.c: New file.
49244
49245 2007-01-14  Bruno Haible  <bruno@clisp.org>
49246
49247         * modules/iconv-tests: New file.
49248         * tests/test-iconv.c: New file.
49249
49250 2007-01-14  Bruno Haible  <bruno@clisp.org>
49251
49252         * gnulib-tool (func_get_license): For test modules, use the license of
49253         the main module.
49254
49255 2007-01-14  Bruno Haible  <bruno@clisp.org>
49256
49257         * modules/iconv (Include): Clarify that <iconv.h> can only be included
49258         if iconv is found to exist.
49259
49260 2007-01-14  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/c-ctype-tests: New file.
49263         * tests/test-c-ctype.c: New file.
49264
49265 2007-01-14  Bruno Haible  <bruno@clisp.org>
49266
49267         * modules/binary-io-tests: New file.
49268         * tests/test-binary-io.sh: New file.
49269         * tests/test-binary-io.c: New file.
49270
49271 2007-01-14  Bruno Haible  <bruno@clisp.org>
49272
49273         * modules/array-oset-tests: New file.
49274         * tests/test-array_oset.c: New file.
49275
49276 2007-01-14  Bruno Haible  <bruno@clisp.org>
49277
49278         * modules/array-list-tests: New file.
49279         * tests/test-array_list.c: New file.
49280
49281 2007-01-14  Bruno Haible  <bruno@clisp.org>
49282
49283         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
49284         and make.
49285         Reported by Simon Josefsson in
49286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
49287
49288 2007-01-14  Bruno Haible  <bruno@clisp.org>
49289
49290         * modules/allocsa-tests: New file.
49291         * tests/test-allocsa.c: New file.
49292
49293 2007-01-14  Bruno Haible  <bruno@clisp.org>
49294
49295         * modules/fchdir (Depends-on): Add absolute-header.
49296         * modules/unistd (Depends-on): Likewise.
49297
49298 2006-12-30  Bruno Haible  <bruno@clisp.org>
49299
49300         * modules/fchdir: New file.
49301         * modules/unistd (Files): Add lib/unistd_.h.
49302         (Makefile.am): Generate unistd.h from unistd_.h.
49303         * lib/fchdir.c: New file.
49304         * lib/dirent_.h: New file.
49305         * lib/unistd_.h: New file.
49306         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
49307         * m4/fchdir.m4: New file.
49308         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
49309         (gl_HEADER_UNISTD): Invoke it.
49310         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
49311         function.
49312         * lib/backupfile.c (opendir, closedir): Undefine.
49313         * lib/chown.c (open, close): Undefine.
49314         * lib/clean-temp.c (open, close): Undefine.
49315         * lib/copy-file.c (open, close): Undefine.
49316         * lib/execute.c (open, close): Undefine.
49317         * lib/fsusage.c (open, close): Undefine.
49318         * lib/gc-gnulib.c (open, close): Undefine.
49319         * lib/getcwd.c (opendir, closedir): Undefine.
49320         * lib/glob.c (opendir, closedir): Undefine.
49321         * lib/javacomp.c (open, close): Undefine.
49322         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
49323         * lib/openat-proc.c (open, close): Undefine.
49324         * lib/pagealign_alloc.c (open, close): Undefine.
49325         * lib/pipe.c (open, close): Undefine.
49326         * lib/progreloc.c (open, close): Undefine.
49327         * lib/savedir.c (opendir, closedir): Undefine.
49328         * lib/utime.c (open, close): Undefine.
49329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
49330
49331 2007-01-10  Bruno Haible  <bruno@clisp.org>
49332
49333         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
49334
49335 2007-01-12  Eric Blake  <ebb9@byu.net>
49336
49337         Provide a robust <wchar.h>.  Further simplifications are now
49338         possible in other modules, but not included here.
49339         * modules/wchar: New module.
49340         * m4/wchar.m4: New file.
49341         * lib/wchar_.h: Likewise.
49342         * modules/mbchar (Depends-on): Depend on wchar, as the first use
49343         of the new module.
49344         * MODULES.html.sh (Extended multibyte and wide character utilities):
49345         New section.
49346
49347 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
49350         to a reasonable default for memory allocation.
49351         (xreadlink): Don't allocate a huge buffer, to work around a buggy
49352         file system that reports garbage st_size values for symlinks.
49353         Problem reported by Liyang Hu.
49354
49355 2007-01-11  Simon Josefsson  <simon@josefsson.org>
49356
49357         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
49358         Emacs .#* auto-save files).
49359
49360 2007-01-11  Bruno Haible  <bruno@clisp.org>
49361
49362         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
49363         directory.
49364
49365 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49366
49367         Use @...@ consistently in lib/wctype_.h.
49368         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
49369         on it being set to 1 or 0.
49370         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
49371         go back to AC_SUBSTing it.
49372         * modules/wctype (Makefile.am): Undo previous change.
49373
49374 2007-01-10  Eric Blake  <ebb9@byu.net>
49375
49376         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
49377         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
49378         * modules/wctype (Makefile.am): Likewise.
49379         Reported by Chris McGuire.
49380
49381 2007-01-10  Jim Meyering  <jim@meyering.net>
49382
49383         fts.c: a small readability/maintainability improvement
49384         * lib/fts.c (fts_read): Make this code slightly more readable and
49385         maintainable by hoisting the "sp->fts_cur = p" assignments to
49386         immediately follow the statements that set P.  Derived from
49387         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
49388
49389 2007-01-10  Eric Blake  <ebb9@byu.net>
49390
49391         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
49392         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
49393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49394         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49395         Reported by Chris McGuire.
49396
49397 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49398
49399         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
49400         in sed script.
49401
49402 2007-01-09  Bruno Haible  <bruno@clisp.org>
49403
49404         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
49405         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
49406         variables.
49407         (func_module): Use them.
49408
49409 2007-01-09  Bruno Haible  <bruno@clisp.org>
49410
49411         * modules/unistr/base: New file.
49412         * lib/unistr.h: New file.
49413
49414         * modules/unistr/u8-to-u16: New file.
49415         * lib/unistr/u8-to-u16.c: New file.
49416
49417         * modules/unistr/u8-to-u32: New file.
49418         * lib/unistr/u8-to-u32.c: New file.
49419
49420         * modules/unistr/u16-to-u8: New file.
49421         * lib/unistr/u16-to-u8.c: New file.
49422
49423         * modules/unistr/u16-to-u32: New file.
49424         * lib/unistr/u16-to-u32.c: New file.
49425
49426         * modules/unistr/u32-to-u8: New file.
49427         * lib/unistr/u32-to-u8.c: New file.
49428
49429         * modules/unistr/u32-to-u16: New file.
49430         * lib/unistr/u32-to-u16.c: New file.
49431
49432         * modules/unistr/u8-check: New file.
49433         * modules/unistr/u16-check: New file.
49434         * modules/unistr/u32-check: New file.
49435         * lib/unistr/u8-check.c: New file.
49436         * lib/unistr/u16-check.c: New file.
49437         * lib/unistr/u32-check.c: New file.
49438
49439         * modules/unistr/u8-chr: New file.
49440         * modules/unistr/u16-chr: New file.
49441         * modules/unistr/u32-chr: New file.
49442         * lib/unistr/u8-chr.c: New file.
49443         * lib/unistr/u16-chr.c: New file.
49444         * lib/unistr/u32-chr.c: New file.
49445
49446         * modules/unistr/u8-cmp: New file.
49447         * modules/unistr/u16-cmp: New file.
49448         * modules/unistr/u32-cmp: New file.
49449         * lib/unistr/u8-cmp.c: New file.
49450         * lib/unistr/u16-cmp.c: New file.
49451         * lib/unistr/u32-cmp.c: New file.
49452
49453         * modules/unistr/u8-cpy: New file.
49454         * modules/unistr/u16-cpy: New file.
49455         * modules/unistr/u32-cpy: New file.
49456         * lib/unistr/u8-cpy.c: New file.
49457         * lib/unistr/u16-cpy.c: New file.
49458         * lib/unistr/u32-cpy.c: New file.
49459         * lib/unistr/u-cpy.h: New file.
49460
49461         * modules/unistr/u8-cpy-alloc: New file.
49462         * modules/unistr/u16-cpy-alloc: New file.
49463         * modules/unistr/u32-cpy-alloc: New file.
49464         * lib/unistr/u8-cpy-alloc.c: New file.
49465         * lib/unistr/u16-cpy-alloc.c: New file.
49466         * lib/unistr/u32-cpy-alloc.c: New file.
49467         * lib/unistr/u-cpy-alloc.h: New file.
49468
49469         * modules/unistr/u8-endswith: New file.
49470         * modules/unistr/u16-endswith: New file.
49471         * modules/unistr/u32-endswith: New file.
49472         * lib/unistr/u8-endswith.c: New file.
49473         * lib/unistr/u16-endswith.c: New file.
49474         * lib/unistr/u32-endswith.c: New file.
49475         * lib/unistr/u-endswith.h: New file.
49476
49477         * modules/unistr/u8-mblen: New file.
49478         * modules/unistr/u16-mblen: New file.
49479         * modules/unistr/u32-mblen: New file.
49480         * lib/unistr/u8-mblen.c: New file.
49481         * lib/unistr/u16-mblen.c: New file.
49482         * lib/unistr/u32-mblen.c: New file.
49483
49484         * modules/unistr/u8-mbtouc: New file.
49485         * modules/unistr/u16-mbtouc: New file.
49486         * modules/unistr/u32-mbtouc: New file.
49487         * lib/unistr/u8-mbtouc.c: New file.
49488         * lib/unistr/u16-mbtouc.c: New file.
49489         * lib/unistr/u32-mbtouc.c: New file.
49490
49491         * modules/unistr/u8-mbtouc-safe: New file.
49492         * modules/unistr/u16-mbtouc-safe: New file.
49493         * modules/unistr/u32-mbtouc-safe: New file.
49494         * lib/unistr/u8-mbtouc-safe.c: New file.
49495         * lib/unistr/u16-mbtouc-safe.c: New file.
49496         * lib/unistr/u32-mbtouc-safe.c: New file.
49497
49498         * modules/unistr/u8-move: New file.
49499         * modules/unistr/u16-move: New file.
49500         * modules/unistr/u32-move: New file.
49501         * lib/unistr/u8-move.c: New file.
49502         * lib/unistr/u16-move.c: New file.
49503         * lib/unistr/u32-move.c: New file.
49504         * lib/unistr/u-move.h: New file.
49505
49506         * modules/unistr/u8-next: New file.
49507         * modules/unistr/u16-next: New file.
49508         * modules/unistr/u32-next: New file.
49509         * lib/unistr/u8-next.c: New file.
49510         * lib/unistr/u16-next.c: New file.
49511         * lib/unistr/u32-next.c: New file.
49512
49513         * modules/unistr/u8-prev: New file.
49514         * modules/unistr/u16-prev: New file.
49515         * modules/unistr/u32-prev: New file.
49516         * lib/unistr/u8-prev.c: New file.
49517         * lib/unistr/u16-prev.c: New file.
49518         * lib/unistr/u32-prev.c: New file.
49519
49520         * modules/unistr/u8-set: New file.
49521         * modules/unistr/u16-set: New file.
49522         * modules/unistr/u32-set: New file.
49523         * lib/unistr/u8-set.c: New file.
49524         * lib/unistr/u16-set.c: New file.
49525         * lib/unistr/u32-set.c: New file.
49526         * lib/unistr/u-set.h: New file.
49527
49528         * modules/unistr/u8-startswith: New file.
49529         * modules/unistr/u16-startswith: New file.
49530         * modules/unistr/u32-startswith: New file.
49531         * lib/unistr/u8-startswith.c: New file.
49532         * lib/unistr/u16-startswith.c: New file.
49533         * lib/unistr/u32-startswith.c: New file.
49534         * lib/unistr/u-startswith.h: New file.
49535
49536         * modules/unistr/u8-stpcpy: New file.
49537         * modules/unistr/u16-stpcpy: New file.
49538         * modules/unistr/u32-stpcpy: New file.
49539         * lib/unistr/u8-stpcpy.c: New file.
49540         * lib/unistr/u16-stpcpy.c: New file.
49541         * lib/unistr/u32-stpcpy.c: New file.
49542         * lib/unistr/u-stpcpy.h: New file.
49543
49544         * modules/unistr/u8-stpncpy: New file.
49545         * modules/unistr/u16-stpncpy: New file.
49546         * modules/unistr/u32-stpncpy: New file.
49547         * lib/unistr/u8-stpncpy.c: New file.
49548         * lib/unistr/u16-stpncpy.c: New file.
49549         * lib/unistr/u32-stpncpy.c: New file.
49550         * lib/unistr/u-stpncpy.h: New file.
49551
49552         * modules/unistr/u8-strcat: New file.
49553         * modules/unistr/u16-strcat: New file.
49554         * modules/unistr/u32-strcat: New file.
49555         * lib/unistr/u8-strcat.c: New file.
49556         * lib/unistr/u16-strcat.c: New file.
49557         * lib/unistr/u32-strcat.c: New file.
49558         * lib/unistr/u-strcat.h: New file.
49559
49560         * modules/unistr/u8-strchr: New file.
49561         * modules/unistr/u16-strchr: New file.
49562         * modules/unistr/u32-strchr: New file.
49563         * lib/unistr/u8-strchr.c: New file.
49564         * lib/unistr/u16-strchr.c: New file.
49565         * lib/unistr/u32-strchr.c: New file.
49566
49567         * modules/unistr/u8-strcmp: New file.
49568         * modules/unistr/u16-strcmp: New file.
49569         * modules/unistr/u32-strcmp: New file.
49570         * lib/unistr/u8-strcmp.c: New file.
49571         * lib/unistr/u16-strcmp.c: New file.
49572         * lib/unistr/u32-strcmp.c: New file.
49573
49574         * modules/unistr/u8-strcpy: New file.
49575         * modules/unistr/u16-strcpy: New file.
49576         * modules/unistr/u32-strcpy: New file.
49577         * lib/unistr/u8-strcpy.c: New file.
49578         * lib/unistr/u16-strcpy.c: New file.
49579         * lib/unistr/u32-strcpy.c: New file.
49580         * lib/unistr/u-strcpy.h: New file.
49581
49582         * modules/unistr/u8-strcspn: New file.
49583         * modules/unistr/u16-strcspn: New file.
49584         * modules/unistr/u32-strcspn: New file.
49585         * lib/unistr/u8-strcspn.c: New file.
49586         * lib/unistr/u16-strcspn.c: New file.
49587         * lib/unistr/u32-strcspn.c: New file.
49588         * lib/unistr/u-strcspn.h: New file.
49589
49590         * modules/unistr/u8-strdup: New file.
49591         * modules/unistr/u16-strdup: New file.
49592         * modules/unistr/u32-strdup: New file.
49593         * lib/unistr/u8-strdup.c: New file.
49594         * lib/unistr/u16-strdup.c: New file.
49595         * lib/unistr/u32-strdup.c: New file.
49596         * lib/unistr/u-strdup.h: New file.
49597
49598         * modules/unistr/u8-strlen: New file.
49599         * modules/unistr/u16-strlen: New file.
49600         * modules/unistr/u32-strlen: New file.
49601         * lib/unistr/u8-strlen.c: New file.
49602         * lib/unistr/u16-strlen.c: New file.
49603         * lib/unistr/u32-strlen.c: New file.
49604         * lib/unistr/u-strlen.h: New file.
49605
49606         * modules/unistr/u8-strmblen: New file.
49607         * modules/unistr/u16-strmblen: New file.
49608         * modules/unistr/u32-strmblen: New file.
49609         * lib/unistr/u8-strmblen.c: New file.
49610         * lib/unistr/u16-strmblen.c: New file.
49611         * lib/unistr/u32-strmblen.c: New file.
49612
49613         * modules/unistr/u8-strmbtouc: New file.
49614         * modules/unistr/u16-strmbtouc: New file.
49615         * modules/unistr/u32-strmbtouc: New file.
49616         * lib/unistr/u8-strmbtouc.c: New file.
49617         * lib/unistr/u16-strmbtouc.c: New file.
49618         * lib/unistr/u32-strmbtouc.c: New file.
49619
49620         * modules/unistr/u8-strncat: New file.
49621         * modules/unistr/u16-strncat: New file.
49622         * modules/unistr/u32-strncat: New file.
49623         * lib/unistr/u8-strncat.c: New file.
49624         * lib/unistr/u16-strncat.c: New file.
49625         * lib/unistr/u32-strncat.c: New file.
49626         * lib/unistr/u-strncat.h: New file.
49627
49628         * modules/unistr/u8-strncmp: New file.
49629         * modules/unistr/u16-strncmp: New file.
49630         * modules/unistr/u32-strncmp: New file.
49631         * lib/unistr/u8-strncmp.c: New file.
49632         * lib/unistr/u16-strncmp.c: New file.
49633         * lib/unistr/u32-strncmp.c: New file.
49634
49635         * modules/unistr/u8-strncpy: New file.
49636         * modules/unistr/u16-strncpy: New file.
49637         * modules/unistr/u32-strncpy: New file.
49638         * lib/unistr/u8-strncpy.c: New file.
49639         * lib/unistr/u16-strncpy.c: New file.
49640         * lib/unistr/u32-strncpy.c: New file.
49641         * lib/unistr/u-strncpy.h: New file.
49642
49643         * modules/unistr/u8-strnlen: New file.
49644         * modules/unistr/u16-strnlen: New file.
49645         * modules/unistr/u32-strnlen: New file.
49646         * lib/unistr/u8-strnlen.c: New file.
49647         * lib/unistr/u16-strnlen.c: New file.
49648         * lib/unistr/u32-strnlen.c: New file.
49649         * lib/unistr/u-strnlen.h: New file.
49650
49651         * modules/unistr/u8-strpbrk: New file.
49652         * modules/unistr/u16-strpbrk: New file.
49653         * modules/unistr/u32-strpbrk: New file.
49654         * lib/unistr/u8-strpbrk.c: New file.
49655         * lib/unistr/u16-strpbrk.c: New file.
49656         * lib/unistr/u32-strpbrk.c: New file.
49657         * lib/unistr/u-strpbrk.h: New file.
49658
49659         * modules/unistr/u8-strrchr: New file.
49660         * modules/unistr/u16-strrchr: New file.
49661         * modules/unistr/u32-strrchr: New file.
49662         * lib/unistr/u8-strrchr.c: New file.
49663         * lib/unistr/u16-strrchr.c: New file.
49664         * lib/unistr/u32-strrchr.c: New file.
49665
49666         * modules/unistr/u8-strspn: New file.
49667         * modules/unistr/u16-strspn: New file.
49668         * modules/unistr/u32-strspn: New file.
49669         * lib/unistr/u8-strspn.c: New file.
49670         * lib/unistr/u16-strspn.c: New file.
49671         * lib/unistr/u32-strspn.c: New file.
49672         * lib/unistr/u-strspn.h: New file.
49673
49674         * modules/unistr/u8-strstr: New file.
49675         * modules/unistr/u16-strstr: New file.
49676         * modules/unistr/u32-strstr: New file.
49677         * lib/unistr/u8-strstr.c: New file.
49678         * lib/unistr/u16-strstr.c: New file.
49679         * lib/unistr/u32-strstr.c: New file.
49680         * lib/unistr/u-strstr.h: New file.
49681
49682         * modules/unistr/u8-strtok: New file.
49683         * modules/unistr/u16-strtok: New file.
49684         * modules/unistr/u32-strtok: New file.
49685         * lib/unistr/u8-strtok.c: New file.
49686         * lib/unistr/u16-strtok.c: New file.
49687         * lib/unistr/u32-strtok.c: New file.
49688         * lib/unistr/u-strtok.h: New file.
49689
49690         * modules/unistr/u8-uctomb: New file.
49691         * modules/unistr/u16-uctomb: New file.
49692         * modules/unistr/u32-uctomb: New file.
49693         * lib/unistr/u8-uctomb.c: New file.
49694         * lib/unistr/u16-uctomb.c: New file.
49695         * lib/unistr/u32-uctomb.c: New file.
49696
49697         * MODULES.html.sh (Unicode string functions): Add the new modules.
49698
49699 2007-01-08  Bruno Haible  <bruno@clisp.org>
49700
49701         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
49702         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
49703         subdirectories.
49704
49705 2007-01-08  Karl Berry  <karl@gnu.org>
49706
49707         * doc/error.texi: mention that main() fns must set program_name
49708         when progname is used.
49709
49710 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
49711
49712         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
49713         WCTYPE_H is empty, for the benefit of builds from non-distclean
49714         directories.  Problem reported by Eric Blake in
49715         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
49716
49717 2007-01-08  Bruno Haible  <bruno@clisp.org>
49718
49719         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
49720         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
49721         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
49722         PROVIDE_CANONICALIZE_FILENAME_MODE.
49723         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
49724
49725 2007-01-08  Bruno Haible  <bruno@clisp.org>
49726
49727         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
49728         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
49729         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
49730         * lib/fts.c: Likewise.
49731         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
49732
49733 2006-12-25  Bruno Haible  <bruno@clisp.org>
49734
49735         * modules/utf8-ucs4-safe: New file.
49736         * lib/utf8-ucs4-safe.h: New file.
49737         * lib/unistr/utf8-ucs4-safe.c: New file.
49738
49739         * modules/utf16-ucs4-safe: New file.
49740         * lib/utf16-ucs4-safe.h: New file.
49741         * lib/unistr/utf16-ucs4-safe.c: New file.
49742
49743         * MODULES.html.sh (Unicode string functions): Add the new modules.
49744
49745 2007-01-08  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
49748         (Depends-on): Add unitypes.
49749         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49750         (u8_mbtouc_aux): Move out to separate file.
49751         (u8_mbtouc): Use ucs4_t, uint8_t types.
49752         * lib/unistr/utf8-ucs4.c: New file.
49753
49754         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
49755         (Depends-on): Add unitypes.
49756         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
49757         (u16_mbtouc_aux): Move out to separate file.
49758         (u16_mbtouc): Use ucs4_t, uint16_t types.
49759         * lib/unistr/utf16-ucs4.c: New file.
49760
49761         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
49762         (Depends-on): Add unitypes.
49763         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
49764         (u8_uctomb_aux): Move out to separate file.
49765         (u8_uctomb): Use ucs4_t, uint8_t types.
49766         * lib/unistr/ucs4-utf8.c: New file.
49767
49768         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
49769         (Depends-on): Add unitypes.
49770         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
49771         (u16_uctomb_aux): Move out to separate file.
49772         (u16_uctomb): Use ucs4_t, uint16_t types.
49773         * lib/unistr/ucs4-utf16.c: New file.
49774
49775 2006-12-25  Bruno Haible  <bruno@clisp.org>
49776
49777         * modules/unitypes: New file.
49778         * lib/unitypes.h: New file.
49779         * MODULES.html.sh (func_all_modules): New section "Unicode string
49780         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
49781         this section. Add unitypes.
49782
49783 2007-01-08  Bruno Haible  <bruno@clisp.org>
49784
49785         Avoid variable names that conflict with those from libtool.
49786         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
49787         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
49788         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
49789         library_names_spec to acl_library_names_spec, hardcode_* to
49790         acl_hardcode_*.
49791         Reported by Ralf Wildenhues.
49792
49793 2007-01-08  Bruno Haible  <bruno@clisp.org>
49794
49795         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
49796         definition.
49797         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
49798         definition.
49799         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
49800         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
49801         definition.
49802         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
49803         definition.
49804         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
49805         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
49806         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
49807         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
49808         definition.
49809         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
49810         definition.
49811         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
49812         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
49813         GC_USE_<algorithm>.
49814         * lib/gc-libgcrypt.c: Likewise.
49815         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
49816         * modules/gc-arctwo (configure.ac): Likewise.
49817         * modules/gc-des (configure.ac): Likewise.
49818         * modules/gc-hmac-md5 (configure.ac): Likewise.
49819         * modules/gc-hmac-sha1 (configure.ac): Likewise.
49820         * modules/gc-md2 (configure.ac): Likewise.
49821         * modules/gc-md4 (configure.ac): Likewise.
49822         * modules/gc-md5 (configure.ac): Likewise.
49823         * modules/gc-random (configure.ac): Likewise.
49824         * modules/gc-rijndael (configure.ac): Likewise.
49825         * modules/gc-sha1 (configure.ac): Likewise.
49826
49827 2007-01-08  Bruno Haible  <bruno@clisp.org>
49828
49829         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
49830         macro definition.
49831         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
49832         definition.
49833         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
49834         definition.
49835         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
49836         * modules/fcntl-safer (configure.ac): Likewise.
49837         * modules/fopen-safer (configure.ac): Likewise.
49838         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
49839         GNULIB_FWRITEERROR macro definition.
49840
49841 2007-01-08  Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/gnulib-common.m4: New file.
49844         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
49845         (func_get_filelist): Add m4/gnulib-common.m4.
49846
49847 2007-01-08  Bruno Haible  <bruno@clisp.org>
49848
49849         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
49850         command.
49851
49852 2007-01-08  Jim Meyering  <jim@meyering.net>
49853
49854         Use a more robust test for a "can't happen" condition.
49855         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
49856         narrowed the st_size value.  Presuming the "can't happen" condition
49857         is true, that narrowing could conceivably convert an invalid st_size
49858         value into a valid one.  Instead, use a change based on Matthew
49859         Woehlke's original patch.
49860
49861         Slight readability improvement: use an assert-like macro
49862         in place of literal "abort ()" uses.
49863         * lib/fts.c (fts_assert): Define.
49864         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
49865         Use this macro instead of a bare 'abort'.
49866
49867 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
49868
49869         Don't worry about using IRIX 5.3's wctype.h broken definitions;
49870         simply work around them.
49871         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
49872         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
49873         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
49874         declaring.
49875         Don't bother to define as macros, since the standard doesn't require it.
49876         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
49877         longer worry about IRIX 5.3.
49878         (HAVE_WCTYPE_CTMP_BUG): Remove.
49879
49880 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49881
49882         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
49883         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
49884         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49885         Problems reported by Georg Schwarz for IRIX 5.3.
49886
49887         * gnulib-tool (autoconf_minversion): Take the maximum version number
49888         found, not the minimum.  Problem reported by James Youngman.
49889
49890 2007-01-03  Karl Berry  <karl@gnu.org>
49891
49892         * doc/error.texi: new file, explaining interaction with progname.
49893         * doc/gnulib.texi: include it.  Update copyright.
49894
49895 2007-01-03  Simon Josefsson  <simon@josefsson.org>
49896
49897         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
49898         AC_CANONICAL_HOST, to improve autobuild outputs.
49899
49900 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
49901             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49902
49903         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
49904         sockets, server sockets, and other file descriptors.  Count errors
49905         to compute the return value.  Reorder the code a bit to be easier
49906         to follow.  Don't set event bits that were not requested (except
49907         POLLERR and POLLHUP).
49908
49909 2007-01-01  Bruno Haible  <bruno@clisp.org>
49910
49911         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
49912
49913 2007-01-03  Jim Meyering  <jim@meyering.net>
49914
49915         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
49916
49917 2007-01-02  Bruno Haible  <bruno@clisp.org>
49918
49919         * modules/settime (Include): Require timespec.h.
49920         * modules/nanosleep (Include): Likewise.
49921
49922 2007-01-01  Bruno Haible  <bruno@clisp.org>
49923
49924         * gnulib-tool (func_emit_copyright_notice): Bump year.
49925         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
49926
49927 2007-01-01  Bruno Haible  <bruno@clisp.org>
49928
49929         Improve support for OpenBSD.
49930         * build-aux/config.rpath (libname_spec): Export.
49931         (library_names_spec): New variable. Export.
49932         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
49933         library_names_spec from the config.rpath output. Locate shared library
49934         through the name pattern in library_names_spec.
49935
49936 2007-01-01  Eric Blake  <ebb9@byu.net>
49937
49938         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
49939
49940 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
49941
49942         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
49943         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
49944         assume the C locale, and avoid an "eval" that could cause trouble.
49945         Problem with SORT reported by Bob Proulx.
49946
49947         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
49948         Define.  Trivial patch from Henning Nielsen Lund, originally
49949         sent to bug-grep@gnu.org today.
49950
49951 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49952
49953         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
49954         struct stat.  Problem reported by Henning Nielsen Lund.
49955         * lib/acl.c: Include acl.h first, to check interface.  Don't
49956         bother to include sys/types.h and sys/stat.h again.
49957
49958 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49959
49960         Import the following change from libc; problem reported by
49961         Sven Verdoolaege.
49962
49963         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
49964
49965         [BZ #1373]
49966         * lib/argp.h: Remove __NTH for __argp_usage inline function.
49967
49968 2006-12-28  Jim Meyering  <jim@meyering.net>
49969
49970         * build-aux/announce-gen: Do not assume that the package
49971         builds any of tar.gz, tar.bz2, and .xdelta files.
49972         Suggestion from Simon Josefsson.
49973
49974 2006-12-28  Simon Josefsson  <simon@josefsson.org>
49975
49976         * modules/announce-gen: New file.
49977
49978 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
49979
49980         * lib/mbchar.h: Just include <wctype.h>; the wctype module
49981         handles its gotchas now.
49982         * lib/mbswidth.c: Likewise.
49983         * lib/wcwidth.h: Likewise.
49984         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
49985         and iswcntrl; the wctype module does this stuff now.
49986         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49988         * modules/mbchar (Depends-on): Add wctype.
49989         * modules/mbswidth (Depends-on): Likewise.
49990         * modules/wcwidth (Depends-on): Likewise.
49991
49992 2006-12-27  Eric Blake  <ebb9@byu.net>
49993
49994         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
49995         module uses more than what <wctype.h> is required to provide.
49996
49997 2006-12-26  Eric Blake  <ebb9@byu.net>
49998
49999         * gnulib-tool (sed_extract_prog): Avoid space-tab.
50000
50001 2006-12-26  Eric Blake  <ebb9@byu.net>
50002
50003         * modules/absolute-header: New module.
50004         * modules/fcntl (Depends-on): Depend on it.
50005         * modules/inttypes (Depends-on): Likewise.
50006         * modules/stdint (Depends-on): Likewise.
50007         * modules/sys_stat (Depends-on): Likewise.
50008         * modules/wctype (Depends-on): Likewise.
50009         * MODULES.html.sh (Support for building libraries and
50010         executables): Document it.
50011
50012 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50013
50014         * gnulib-tool (SED): Remove, undoing previous change.
50015         The problem was that it broke coreutils on Solaris, because
50016         "sed --posix" leaked into a makefile.
50017         (sed): New alias, if 'alias' and GNU sed.
50018
50019 2006-12-24  Jim Meyering  <jim@meyering.net>
50020
50021         Work around an fchownat bug in glibc-2.4:
50022         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
50023         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
50024         in spite of the -P option.
50025         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
50026         New macros.
50027         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
50028         * modules/openat (Files): Add lib/fchownat.c.
50029         * lib/openat.c (fchownat): Don't define here.  Move to...
50030         * lib/fchownat.c: ...this new file.
50031
50032 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
50033
50034         Fix bug reported by Bruno Haible in
50035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
50036         where quotearg.c didn't compile on Mac OS X 10.2 because it
50037         lacks <wchar.h> and wint_t.
50038         * lib/wctype_.h (__wctype_wint_t): New type.
50039         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
50040         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
50041         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
50042         Arg is now of type __wctype_wint_t, not wint_t.
50043         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
50044         substitute HAVE_WINT_T.
50045         * modules/wctype (Files): Add m4/wint_t.m4.
50046         (wctype.h): Substitute HAVE_WINT_T.
50047
50048 2006-12-23  Bruno Haible  <bruno@clisp.org>
50049
50050         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
50051
50052 2006-12-23  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
50055         S_ISLNK.
50056         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
50057         mingw.
50058
50059 2006-12-22  Bruno Haible  <bruno@clisp.org>
50060
50061         * lib/copy-file.c: Include acl.h.
50062         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
50063         Close the file descriptors only after being done with copy_acl.
50064         * modules/copy-file (Depends-on): Add acl.
50065
50066 2006-12-22  Bruno Haible  <bruno@clisp.org>
50067
50068         * gnulib-tool (SED): New variable.
50069         Use $SED instead of sed everywhere.
50070
50071 2006-12-22  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/no-c++: New file.
50074         * m4/no-c++.m4: New file.
50075         * MODULES.html.sh (Support for building libraries and executables):
50076         Add no-c++.
50077
50078 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
50079
50080         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50081         Include <limits.h>, and use its INT_MAX to rewrite the
50082         j loop so that it does not overflow 'int'.  Problem reported by
50083         Ralf Wildenhues in
50084         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
50085         Play it safe by shifting left by 1 rather than multiplying by 2,
50086         as GCC is less likely to optimize this away when the value
50087         is signed (when it assumes overflow leads to undefined behavior).
50088         Also, don't assume time_t uses two's complement.
50089
50090 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
50091
50092         * MODULES.html.sh: New module wctype.
50093         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
50094         * lib/fnmatch.c: Don't bother to include <wchar.h> before
50095         <wctype.h>, since the new wctype module should fix this.
50096         * lib/quotearg.c: Include <wctype.h> unconditionally, since
50097         the wctype module should arrange for it.
50098         * lib/regex_internal.h: Likewise.
50099         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
50100         since the wctype module should handle this now.
50101         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
50102         * modules/fnmatch (Depends-on): Add wctype.
50103         * modules/quotearg (Depends-on): Likewise.
50104         * modules/regex (Depends-on): Likewise.
50105
50106 2006-12-19  Bruno Haible  <bruno@clisp.org>
50107
50108         * lib/strdup.h [C++]: Wrap definitions in extern "C".
50109         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
50110
50111 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50112
50113         * modules/savewd (Depends-on): Fix dependency on fcntl.
50114
50115 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50116
50117         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
50118         conforms to C99, rather than relying on the user's environment
50119         setting of STDINT_H.
50120
50121 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50122         and Eric Blake  <ebb9@byu.net>
50123
50124         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
50125         This is more consistent with the other defines here.
50126         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
50127         Port to z/OS.  Problem reported by Paul Gilmartin.
50128         Change local vars to use gl_ prefix rather than ac_.
50129         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
50130         with other defines.
50131         * modules/double-slash-root: New module.
50132         * modules/dirname (Files): Remove m4/double-slash-root.m4.
50133         (Depends-on): Add double-slash-root.
50134         * MODULES.html.sh (File system functions): Mention new module.
50135
50136 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
50137
50138         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
50139         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
50140         This is for the benefit of gzip, which doesn't do i18n.
50141
50142 2006-12-12  Jim Meyering  <jim@meyering.net>
50143
50144         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
50145         Reported by Andreas Schwab <schwab@suse.de>.
50146
50147 2006-12-12  Bruno Haible  <bruno@clisp.org>
50148
50149         Merge these changes.
50150         2006-09-05  Bruno Haible  <bruno@clisp.org>
50151         * lib/iconvme.c (iconv_string): No need to save and restore errno when
50152         iconv_alloc succeeded.
50153         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
50154         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
50155         test for " && dest " at the end - dest is always != NULL there. Call
50156         iconv with 4xNULL arguments initially, to reset the state. Call iconv
50157         with 2xNULL arguments, also to flush the state storage. Handle the
50158         IRIX iconv behaviour. Realloc the final result, to throw away unused
50159         memory.
50160
50161 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
50162
50163         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
50164         and fchmodat unconditionally, since glibc 2.4 has them.
50165         Problem reported by Arkadiusz Miskiewicz.
50166
50167 2006-12-10  Bruno Haible  <bruno@clisp.org>
50168
50169         * gnulib-tool (func_import): Show the include files only for those
50170         modules that are copied and specified.
50171         Reported by Karl Berry.
50172
50173 2006-12-08  Jim Meyering  <jim@meyering.net>
50174
50175         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
50176         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
50177
50178         * build-aux/announce-gen: Add two new options, both optional:
50179         --bootstrap-tools=TOOL_LIST
50180               a comma-separated list of tools, e.g.,
50181               autoconf,automake,bison,gnulib
50182         --gnulib-snapshot-date=DATE
50183               if gnulib is in the bootstrap tool list,
50184               then report this as the snapshot date.
50185               If not specified, use the current date/time.
50186               If you specify a date here, be sure it's UTC.
50187
50188 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50189
50190         * tests/test-argp-2.sh: Fix test to match actual output.
50191         (func_compare): Fix sed script to be portable.
50192
50193 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
50194
50195         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
50196         workaround for this case.  It is not autoconfigured now; offhand
50197         it's hard to see how to autoconfigure it.
50198
50199 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50200
50201         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
50202         a directory that is about to be chowned.  Such a directory's
50203         initial file permissions should permit the owner only and this
50204         should not be changed until after the chown, since the group and
50205         other bits would be incorrect if they granted permission before
50206         the chown.
50207
50208         Fix porting problem for iswctype reported by Georg Schwarz in:
50209         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
50210         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
50211         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
50212         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
50213         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50214
50215 2006-12-03  Jim Meyering  <jim@meyering.net>
50216
50217         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
50218         p->fts_statp may not yet be defined.
50219         (fts_read): Instead, set it in the caller, once p->fts_statp is
50220         sure to be defined, and corresponds to a top-level directory.
50221         This bug made du -x fail.  Here's the coreutils test case:
50222         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
50223         Reported by Mike Frysinger.
50224
50225 2006-12-01  Jim Meyering  <jim@meyering.net>
50226
50227         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
50228         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
50229         Reported by Simon Josefsson.
50230
50231 2006-11-30  Jim Meyering  <jim@meyering.net>
50232
50233         * m4/warning.m4: Use the all-permissive copyright notice
50234         recommended by RMS (rather than LGPL).
50235         * m4/vararrays.m4: Likewise.
50236         * m4/flexmember.m4: Likewise.
50237
50238 2006-11-29  Bruno Haible  <bruno@clisp.org>
50239
50240         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50241         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
50242         using +=.
50243         Reported by Simon Josefsson <simon@josefsson.org>.
50244
50245 2006-11-28  James Youngman <jay@gnu.org>
50246
50247         * README: Advise users that they might find the bug-gnulib@gnu.org
50248         and autotools-announce@gnu.org mailing lists useful.
50249
50250 2006-11-28  Bruno Haible  <bruno@clisp.org>
50251
50252         * m4/ptrdiff_max.m4: Remove file.
50253
50254 2006-11-21  Bruno Haible  <bruno@clisp.org>
50255
50256         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
50257         _AC_COMPUTE_INT.
50258         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50259         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
50260         _AC_COMPUTE_INT.
50261         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50262         * m4/size_max.m4 (gl_SIZE_MAX): 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-28  Jim Meyering  <jim@meyering.net>
50267
50268         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
50269         warning from "gcc -Wshadow" about shadowing the builtin.
50270
50271 2006-11-27  Bruno Haible  <bruno@clisp.org>
50272
50273         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
50274         _AC_COMPUTE_INT.
50275         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
50276
50277 2006-11-27  Bruno Haible  <bruno@clisp.org>
50278             Paul Eggert  <eggert@cs.ucla.edu>
50279
50280         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
50281
50282 2006-11-26  Bruno Haible  <bruno@clisp.org>
50283
50284         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50285         noinst_LTLIBRARIES.
50286
50287 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50288             Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
50291         if compiling with "gcc -ansi".
50292
50293 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         Fix some incompatibilities with gcc -ansi -pedantic.
50296         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
50297         if compiling pedantically with GCC, unless it's C99 or later.
50298         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
50299         it mishandles gcc -ansi -pedantic as well.
50300         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
50301         if gcc -pedantic.
50302         * lib/regexec.c (check_node_accept_bytes): Don't use auto
50303         initializers for struct if -pedantic, unless it's C99 or later.
50304
50305 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
50306
50307         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
50308         Don't close an fd more than once. Identical atimes indicate
50309         success, not failure.
50310
50311 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
50312
50313         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
50314
50315 2006-11-23  Jim Meyering  <jim@meyering.net>
50316
50317         * build-aux/announce-gen: New file.  From coreutils.
50318
50319 2006-11-22  Jim Meyering  <jim@meyering.net>
50320
50321         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
50322         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
50323         (fts_read): Use a temporary to narrow the overused st_size member
50324         before using it in a switch statement.  Reported by Matthew Woehlke.
50325
50326         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
50327         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
50328
50329 2006-11-20  Bruno Haible  <bruno@clisp.org>
50330
50331         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
50332         changequote instead of pairs of brackets.
50333         Reported by Andreas Schwab <schwab@suse.de>.
50334
50335 2006-11-21  Jim Meyering  <jim@meyering.net>
50336
50337         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
50338         so as to remain compatible with older compilers.
50339         Patch from Michael Deutschmann.
50340
50341 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * MODULES.html.sh (File system functions): Add openat.
50344
50345         * lib/openat.h (rpl_fstatat): New macro, if
50346         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
50347         (fstatat): Define to rpl_fstatat under the same conditions,
50348         unless COMPILING_FSTATAT.
50349         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
50350         seems to have the bug.
50351         * lib/fstatat.c: New file.
50352         * modules/openat (Files): Add it.
50353
50354 2006-11-20  Bruno Haible  <bruno@clisp.org>
50355
50356         * Makefile: New file.
50357
50358 2006-11-20  Jim Meyering  <jim@meyering.net>
50359
50360         The beginnings of syntax-related checks for gnulib.
50361         * lib/Makefile: New file.
50362         * lib/t-idcache: New script.  Ensure that the two halves of
50363         idcache.c stay in sync.
50364
50365         * lib/idcache.c: Adjust comments in user- and group- portions to
50366         be more accurate, and to be consistent with one another.
50367
50368 2006-11-20  Jim Meyering  <jim@meyering.net>
50369
50370         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
50371         continue using the flexible array member (thus, this module performs
50372         half as many malloc calls), with the addition that...
50373         (getgroup, getuser): Consistently record a non-match via an empty
50374         "name" string, and map an empty string match to a NULL return value.
50375         * modules/idcache (Depends-on): Re-add flexmember.
50376
50377         * lib/idcache.c (getuser): Remove all uses of the register keyword.
50378         (getuidbyname, getgroup, getgidbyname): Likewise.
50379
50380         Use cleaner syntax: NULL rather than 0.
50381         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
50382
50383 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
50386         It mishandled the case where the group was missing.
50387         Problem reported by Greg Schafer.
50388         * modules/idcache: Likewise.
50389
50390 2006-11-18  Jim Meyering  <jim@meyering.net>
50391
50392         * check-module (%exempt_header): Add exception for some
50393         conditionally-included headers.
50394
50395         * modules/i-ring (Depends-on): Add verify.
50396         (License): Change to LGPL.
50397
50398 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50399
50400         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
50401         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
50402         and inttostr.h.  Use snprintf rather than uinttostr, so that
50403         LGPLed code doesn't depend on GPLed.
50404
50405 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50406
50407         * modules/inline (License): Change from GPL to LGPL.
50408
50409 2006-11-17  Jim Meyering  <jim@meyering.net>
50410
50411         * modules/d-type (License): Switch to LGPL.
50412
50413 2006-11-15  Bruno Haible  <bruno@clisp.org>
50414
50415         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
50416
50417 2006-11-15  Eric Blake  <ebb9@byu.net>
50418
50419         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
50420         the module dependency.
50421
50422 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50423             Bruno Haible  <bruno@clisp.org>
50424
50425         * gnulib-tool (func_create_testdir): Add license consistency check.
50426
50427 2006-11-15  Eric Blake  <ebb9@byu.net>
50428
50429         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
50430         random "(cached)" in configure output.
50431
50432 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50433
50434         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
50435         test for conforming inttypes.h is both announced and cached.
50436
50437         * MODULES.html.sh (seen_modules, seen_files): New variables.
50438         (func_module): Rewrite to use a few less gnulib-tool and sed
50439         invocations.  Avoid a couple of quadratic algorithms for ...
50440         (missed_modules, missed_files): ... these, with ...
50441         (func_append, func_tmpdir): ... these new functions, from
50442         gnulib-tool.  Analogously, install traps for cleanup.
50443
50444         * tests/test-gc.c (main): Remove unused variables.
50445         * tests/test-read-file.c: Include stdlib.h, for 'free'.
50446
50447 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
50448
50449         * modules/inttostr (License): Change to LGPL.
50450
50451 2006-11-14  Eric Blake  <ebb9@byu.net>
50452
50453         * modules/tempname (License): Change to LGPL.
50454
50455 2006-11-14  Eric Blake  <ebb9@byu.net>
50456
50457         * doc/functions.texi (Function Portability): *printf functions on
50458         Cygwin now understand all POSIX size specifiers.
50459
50460 2006-11-14  Bruno Haible  <bruno@clisp.org>
50461
50462         * modules/c-ctype (License): Change to LGPL.
50463
50464 2006-11-12  Bruno Haible  <bruno@clisp.org>
50465
50466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50467         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
50468         for GNOME libraries, for which the include files are installed in
50469         subdirectories of $prefix/include.
50470
50471 2006-11-12  Bruno Haible  <bruno@clisp.org>
50472
50473         * m4/lib-link.m4: Require at least autoconf-2.54.
50474         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
50475         name to underscores for the --with option.
50476
50477 2006-11-13  Bruno Haible  <bruno@clisp.org>
50478
50479         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
50480         the tests directory.
50481         Reported by Ralf Wildenhues.
50482
50483 2006-11-13  Bruno Haible  <bruno@clisp.org>
50484
50485         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
50486         (func_emit_initmacro_end): Undo the override here.
50487         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
50488         Works around the famous automake error in coreutils.
50489
50490 2006-11-13  Eric Blake  <ebb9@byu.net>
50491
50492         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
50493         element, not its node.
50494
50495 2006-11-12  Bruno Haible  <bruno@clisp.org>
50496
50497         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
50498         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
50499
50500 2006-11-12  Bruno Haible  <bruno@clisp.org>
50501
50502         * gnulib-tool: New option --local-symlink.
50503         (func_usage): Document it.
50504         (lsymbolic): New variable.
50505         (func_import, func_create_testdir): If --symlink was not specified,
50506         test whether --local-symlink was specified and the file comes from
50507         the local_gnulib_dir.
50508
50509 2006-11-12  Bruno Haible  <bruno@clisp.org>
50510
50511         * gnulib-tool (func_ln): New function.
50512         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
50513
50514 2006-11-12  Bruno Haible  <bruno@clisp.org>
50515
50516         Finish support for source files in subdirectories.
50517         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
50518         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
50519         AUTOMAKE_OPTIONS.
50520         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
50521
50522 2006-11-12  Bruno Haible  <bruno@clisp.org>
50523
50524         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50525         EXTRA_lib_SOURCES augmentation.
50526         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
50527
50528 2006-11-12  Jim Meyering  <jim@meyering.net>
50529
50530         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
50531         file descriptors.  This also averts a failure on systems with
50532         native openat support when a traversed directory lacks "x" access.
50533         * lib/fts_.h: Include "i-ring.h"
50534         (struct FTS) [fts_fd_ring]: New member.
50535         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
50536         (FCHDIR): Add parentheses.
50537         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
50538         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
50539         When descending, rather than simply closing the previous
50540         fts_cwd_fd value, push that file descriptor onto the ring.
50541         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
50542         (fts_open): Initialize the new fd_ring member.
50543         (fts_close): Clear the ring.
50544         (fts_safe_changedir): When possible, use our new fd_ring to skip
50545         the diropen and fstat and dev/ino comparison that would normally
50546         accompany a virtual `chdir ("..")'.
50547
50548         * modules/fts (Depends-on): Add i-ring.
50549         * modules/i-ring: New module.
50550         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
50551         * m4/i-ring.m4: New file.
50552
50553 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50554
50555         * gnulib-tool (func_create_testdir): Fix replacement of
50556         `build-aux' in configure.ac.  Run autotools in gltests
50557         subdirectory.
50558         (func_create_testdir, func_create_megatestdir, test): There is
50559         no need for '--force' in most autotool invocations in a new
50560         tree.  Actually fail the whole test if any of the tools, or the
50561         configure or make stages fail.
50562
50563         Sync from Automake.
50564         * build-aux/gnupload: Revert last change.  Add pointer to upload
50565         instructions of the GNU Maintenance Instructions.
50566         Suggestion by Karl Berry.
50567
50568 2006-11-10  Jim Meyering  <jim@meyering.net>
50569
50570         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
50571
50572 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50573
50574         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
50575         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
50576         (bind_textdomain_codeset) [! ENABLE_NLS]:
50577         Evaluate all the arguments.  That way, callers get compatible behavior
50578         if the arguments have side effects.  Also, it avoids some GCC
50579         diagnostics in some cases; Joel E. Denny reported problems when Bison
50580         was configured with --enable-gcc-warnigs.
50581
50582 2006-11-10  Jim Meyering  <jim@meyering.net>
50583
50584         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
50585         relevant options in CFLAGS (like -O, -fno-inline) are taken into
50586         account.
50587
50588 2006-11-10  Jim Meyering  <jim@meyering.net>
50589
50590         * modules/inline: New file/module.
50591         * modules/xalloc (Files): Remove m4/inline.m4.
50592         (Depends-on): Add inline, instead.
50593         * modules/oset: Likewise.
50594         * modules/list: Likewise.
50595
50596 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50597
50598         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
50599         Problem reported by Matthew Woehlke.
50600
50601 2006-11-09  Bruno Haible  <bruno@clisp.org>
50602
50603         * lib/tempname.c (gen_tempname): Remove variant that invokes
50604         __gen_tempname.
50605         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
50606         __gen_tempname.
50607
50608 2006-11-08  Bruno Haible  <bruno@clisp.org>
50609
50610         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
50611         to 'yes' instead of 'cross-compiling'.
50612
50613 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
50614
50615         * lib/quotearg.h (quotearg_free): New decl.
50616         * lib/quotearg.c (quotearg_free): New function.
50617         (slot0, nslots, slotvec0, slotvec):
50618         Now file-scope so that quotearg_free can get at them.
50619
50620 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50621
50622         Sync from Automake.
50623         * build-aux/gnupload: Add missing 'gnu' to example URL.
50624         Report by Karl Berry.
50625
50626 2006-11-08  Bruno Haible  <bruno@clisp.org>
50627
50628         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
50629         Suggested by Paul Eggert.
50630
50631 2006-11-08  Jim Meyering  <jim@meyering.net>
50632
50633         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
50634         It's already included if !_LIBC.
50635         (fts_safe_changedir): Add a comment.
50636
50637 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50638
50639         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
50640         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
50641         Matthew Woehlke.
50642
50643         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
50644         definitions up, to avoid colliding with change below.
50645         (static_inline) [HAVE_INLINE]: New macro.
50646         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
50647         Provide extern decls when !HAVE_INLINE.  Do not define unless
50648         static_inline is defined, either by us or by xmalloc.c.  Use
50649         static_inline rather than static inline.
50650         (XCALLOC): Optimize sizeof(T) = 1 case.
50651         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
50652
50653 2006-11-07  Bruno Haible  <bruno@clisp.org>
50654
50655         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
50656         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
50657         AC_C_INLINE.
50658         * modules/xalloc (Files): Add m4/inline.m4.
50659
50660 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50661
50662         * README: Fix typo.
50663         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
50664         (Miscellanous Notes): ...from this.
50665
50666 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
50669         Mention that offsetof should be used instead of sizeof.
50670         From Bruno Haible.
50671
50672 2006-11-07  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
50675
50676 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50677
50678         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50679         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
50680         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50681         (gl_tree_add_before, gl_tree_add_after):
50682         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
50683         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
50684         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50685         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
50686         (gl_linked_add_after, gl_linked_add_at): Likewise.
50687         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
50688         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
50689         (gl_tree_add_before, gl_tree_add_after): Likewise.
50690         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
50691         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
50692         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
50693
50694 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50695
50696         * lib/gl_oset.h: Use C comment style, not C++ comment style.
50697
50698 2006-11-06  Bruno Haible  <bruno@clisp.org>
50699
50700         * m4/inline.m4: New file.
50701         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
50702         * modules/list (Files): Add m4/inline.m4.
50703         * modules/oset (Files): Likewise.
50704
50705 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
50706
50707         * lib/idcache.c: Include <stddef.h>, for offsetof.
50708         (struct userid.name): Change from char * to a flexible array member.
50709         All uses changed.
50710         * modules/idcache (Depends-on): Add flexmember.
50711
50712         * MODULES.html.sh (Core language properties): New module flexmember.
50713         * modules/flexmember, m4/flexmember.m4: New files.
50714
50715         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
50716         inline functions that are identical with the old xnmalloc_inline,
50717         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
50718         that we can avoid some unnecessary integer multiplications and
50719         divisions in the common case where the element size is known at
50720         compile time.
50721         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
50722         needed.
50723         (xnboundedmalloc): Remove.
50724         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
50725         arguments, for consistency with rest of this header.
50726         (xcharalloc): Rewrite using XNMALLOC.
50727         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
50728         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
50729         versions have been moved to lib/xalloc.h and renamed to be the
50730         non-*_inline versions.
50731         (xmalloc, xrealloc): Implement without reference to the xnmalloc
50732         and xnrealloc functions, since those functions are now inline and
50733         now call us.
50734         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
50735         renaming described above.
50736         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
50737         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
50738         captures the dependency in AC_C_INLINE.
50739
50740         New module canonicalize-lgpl, proposed by Charles Wilson in
50741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
50742         with a few small changes afterwards.
50743         * MODULES.html.sh (File system functions): New module
50744         canonicalize-lgpl.
50745         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
50746         and canonicalize_file_name.
50747         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
50748         * modules/canonicalize-lgpl: New files.
50749
50750 2006-11-05  Bruno Haible  <bruno@clisp.org>
50751
50752         * gnulib-tool (func_import, func_create_testdir): Create directories
50753         also for files in subdirectories of lib/.
50754
50755 2006-11-05  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
50758         ANSI C compliant.
50759
50760 2006-11-03  Bruno Haible  <bruno@clisp.org>
50761
50762         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
50763         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
50764         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
50765         (xnboundedmalloc): New inline function.
50766         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
50767         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
50768         xmalloc.
50769         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
50770         xmalloc.
50771         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
50772         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
50773         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
50774         xmalloc.
50775         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50776         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
50777         xmalloc.
50778         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
50779         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50780         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
50781         xmalloc.
50782         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
50783         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
50784         gl_tree_add_after): Use XMALLOC instead of xmalloc.
50785         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
50786         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
50787         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
50788         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
50789
50790 2006-11-03  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/c-ctype.h [C++]: Define functions without name mangling.
50793         * lib/fwriteerror.h [C++]: Likewise.
50794         * lib/gcd.h [C++]: Likewise.
50795         * lib/linebreak.h [C++]: Likewise.
50796
50797 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50798
50799         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
50800         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
50801         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
50802         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50803         Check for functions and headers just once.
50804         Check for declaration of canonicalize_file_name.
50805         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
50806
50807 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50808
50809         * gnulib-tool (func_import): Fix typo in actioncmd.
50810
50811 2006-11-02  Bruno Haible  <bruno@clisp.org>
50812
50813         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
50814         newline sequence in the Makefile.am snippet as a space, like "make"
50815         does.
50816         Reported by Roger Persson <perrog@gmail.com>.
50817
50818 2006-11-01  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
50821         already declared in <string.h>.
50822         * lib/strcase.h (strncasecmp): Don't declare it if yes.
50823
50824 2006-11-01  Bruno Haible  <bruno@clisp.org>
50825
50826         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
50827         * lib/strcase.h: Include <string.h>.
50828         (strcasecmp): Define to rpl_strcasecmp here.
50829
50830 2006-11-01  Bruno Haible  <bruno@clisp.org>
50831
50832         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
50833
50834 2006-11-01  Eric Blake  <ebb9@byu.net>
50835
50836         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
50837
50838         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
50839
50840 2006-10-29  Bruno Haible  <bruno@clisp.org>
50841
50842         Make it compile in C++ mode.
50843         * lib/full-write.c (full_rw): Add a cast.
50844
50845 2006-11-01  Bruno Haible  <bruno@clisp.org>
50846
50847         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
50848         be POSIX compliant.
50849         Reported by Roger Persson <perrog@gmail.com>.
50850
50851 2006-11-01  Eric Blake  <ebb9@byu.net>
50852
50853         * lib/getopt_.h: Fix comments.
50854
50855 2006-10-31  Eric Blake  <ebb9@byu.net>
50856
50857         * modules/tmpdir (Depends-on): Add sys_stat.
50858         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
50859         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
50860         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
50861         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
50862         tempname.
50863
50864 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
50865
50866         Avoid some C++ diagnostics reported by Bruno Haible.
50867         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
50868         xmalloc.
50869         (quotearg_alloc): Use xcharalloc rather than xmalloc.
50870         (struct slotvec): Move to top level.
50871         (quotearg_n_options): Rewrite to avoid xmalloc.
50872         * lib/xalloc.h (xcharalloc): New function.
50873         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
50874         [defined __cplusplus]: Add function template that provides result
50875         type propagation.  This part of the change is from Bruno Haible.
50876
50877 2006-10-29  Bruno Haible  <bruno@clisp.org>
50878
50879         Make it compile in C++ mode.
50880         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
50881         * lib/strnlen1.c (strnlen1): Cast memchr result.
50882         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
50883         * lib/clean-temp.c (string_equals, string_hash): Add casts.
50884         (create_temp_dir): Rename local variable 'template'.
50885         (compile_csharp_using_sscli): Add cast.
50886         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
50887         * lib/findprog.c (find_in_path): Likewise.
50888         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
50889         * lib/wait-process.c (register_slave_subprocess): Likewise.
50890
50891 2006-10-22  Bruno Haible  <bruno@clisp.org>
50892
50893         * modules/tsearch: New file.
50894         * lib/tsearch.h: New file.
50895         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
50896         * m4/tsearch.m4: New file.
50897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
50898
50899 2006-10-29  Eric Blake  <ebb9@byu.net>
50900
50901         * lib/arcfour.c: Assume config.h.
50902         * lib/arctwo.c: Likewise.
50903         * lib/base64.c: Likewise.
50904         * lib/check-version.c: Likewise.
50905         * lib/crc.c: Likewise.
50906         * lib/des.c: Likewise.
50907         * lib/gc-gnulib.c: Likewise.
50908         * lib/gc-libgcrypt.c: Likewise.
50909         * lib/gc-pbkdf2-sha1.c: Likewise.
50910         * lib/getaddrinfo.c: Likewise.
50911         * lib/getdelim.c: Likewise.
50912         * lib/getline.c: Likewise.
50913         * lib/hmac-md5.c: Likewise.
50914         * lib/hmac-sha1.c: Likewise.
50915         * lib/iconvme.c: Likewise.
50916         * lib/md2.c: Likewise.
50917         * lib/md4.c: Likewise.
50918         * lib/memxor.c: Likewise.
50919         * lib/read-file.c: Likewise.
50920         * lib/readline.c: Likewise.
50921         * lib/rijndael-alg-fst.c: Likewise.
50922         * lib/rijndael-api-fst.c: Likewise.
50923         * lib/xgetdomainname.c: Likewise.
50924
50925 2006-10-28  Eric Blake  <ebb9@byu.net>
50926
50927         * lib/xstrndup.c: Assume config.h.
50928
50929 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
50932         stat-macros.h is now for our own macros, whereas stat_h is for
50933         macros in the <sys/stat.h> name space.
50934         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
50935         (STAT_MACROS_H): Remove.
50936         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
50937         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
50938         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
50939         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
50940         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
50941         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
50942         Move these macros to ...
50943         * lib/stat_.h: here.  Don't include stat-macros.h.
50944         * lib/canonicalize.c: Don't include stat-macros.h.
50945         * lib/chown.c: Likewise.
50946         * lib/euidaccess.c: Likewise.
50947         * lib/file-type.c: Likewise.
50948         * lib/filemode.c: Likewise.
50949         * lib/glob.c: Likewise.
50950         * lib/isapipe.c: Likewise.
50951         * lib/lchown.c: Likewise.
50952         * lib/lstat.c: Likewise.
50953         * lib/mkdir-p.c: Likewise.
50954         * lib/rmdir.c: Likewise.
50955         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
50956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
50957         unless mkdir isn't declared, to speed up 'configure'.
50958         Always create sys/stat.h, since it's unlikely any real sys/stat.h
50959         would define all the S_* symbols.
50960         * modules/canonicalize (Depends-on):
50961         Depend on sys_stat, not stat-macros.
50962         * modules/chown: Likewise.
50963         * modules/euidaccess: Likewise.
50964         * modules/filemode: Likewise.
50965         * modules/file-type: Likewise.
50966         * modules/glob: Likewise.
50967         * modules/isapipe: Likewise.
50968         * modules/lchown: Likewise.
50969         * modules/lstat: Likewise.
50970         * modules/mkancesdirs: Likewise.
50971         * modules/rmdir: Likewise.
50972         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
50973         * modules/modechange: Likewise.
50974         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
50975         (configure.ac): Remove gl_STAT_MACROS.
50976         * modules/sys_stat (Depends-on): Remove stat-macros.
50977
50978 2006-10-27  Bruno Haible  <bruno@clisp.org>
50979
50980         * m4/signed.m4: Remove file.
50981         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
50982         invocation.
50983         * modules/vasnprintf (Files): Remove m4/signed.m4.
50984
50985 2006-10-27  Bruno Haible  <bruno@clisp.org>
50986
50987         Update to GNU gettext 0.16.
50988         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
50989         m4/inttypes-h.m4, m4/signed.m4.
50990         * m4/gettext.m4: Update to GNU gettext 0.16.
50991         * m4/intl.m4: New file, from GNU gettext.
50992         * m4/intldir.m4: New file, from GNU gettext.
50993         * config/srclist.txt: Update
50994
50995 2006-10-27  Eric Blake  <ebb9@byu.net>
50996
50997         * MODULES.html.sh: Document tempname.
50998         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
50999         dependencies.
51000         (Files): Move lib/tempname.c...
51001         * modules/tempname: ...to this new module.
51002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
51003         (gl_PREREQ_TEMPNAME): Move...
51004         * m4/tempname.m4: ...to this new file.
51005         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
51006         * modules/sys_stat (Depends-on): Add stat-macros.
51007         * lib/stat_.h (includes): Pick up stat macros.
51008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
51009         if stat macros are broken.
51010         * lib/tempname.c (includes): No need to include "stat-macros.h".
51011         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
51012         (direxists, __path_search) [!_LIBC]: Don't compile these in
51013         gnulib; the tmpdir module covers that.
51014         * lib/tempname.h: New file.
51015
51016 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
51017
51018         * COPYING: Explain how gnulib-tool converts licence headers.
51019         Almost all wording by Eric Blake.
51020
51021 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * lib/mbchar.h (is_basic_table): Make read-only.
51024         * lib/mbchar.c (is_basic_table): Likewise.
51025         Reported by John Darrington.
51026
51027 2006-10-25  Bruno Haible  <bruno@clisp.org>
51028
51029         * lib/progname.h (set_program_name): Undefine before defining.
51030
51031 2006-10-25  Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
51034         false for non-gcc C++ compilers.
51035         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51036
51037 2006-10-24  Bruno Haible  <bruno@clisp.org>
51038
51039         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
51040         iconv implementations like Irix iconv.
51041
51042 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51043
51044         * modules/vararrays: New file.
51045         * m4/vararrays.m4: New file, taken from diffutils.
51046         * MODULES.html.sh: New module vararrays.
51047
51048 2006-10-24  Karl Berry  <karl@gnu.org>
51049
51050         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
51051         Don't call GNU Unix.
51052
51053 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51054
51055         * users.txt: Add Libtool.
51056
51057         Sync from Libtool:
51058
51059         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51060
51061         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
51062         to gnulib's policy of including config.h unconditionally.
51063
51064 2006-10-24  Bruno Haible  <bruno@clisp.org>
51065
51066         * modules/wcwidth (Files): Add m4/wint_t.m4.
51067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
51068         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
51069
51070 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51071
51072         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
51073         to pacify GCC with some -W flags enabled.  Problem reported by
51074         Bruno Haible.
51075
51076 2006-10-24  Jim Meyering  <jim@meyering.net>
51077
51078         * MODULES.html.sh: Remove uinttostr.  It's not a module.
51079         Reported by Karl Berry.
51080
51081 2006-10-23  Bruno Haible  <bruno@clisp.org>
51082
51083         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
51084
51085 2006-10-24  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/gl_list.h: Use C comment style, not C++ comment style.
51088
51089 2006-10-23  Eric Blake  <ebb9@byu.net>
51090
51091         * lib/getaddrinfo.c (includes): Add missing include.
51092
51093 2006-10-23  Bruno Haible  <bruno@clisp.org>
51094             Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         Ability to rename obstack_free.
51097         * lib/obstack.h (__obstack_free): New macro. Declare instead of
51098         obstack_free.
51099         (obstack_free): Invoke the __obstack_free macro.
51100         * lib/obstack.c (obstack_free): Use __obstack_free macro.
51101
51102 2006-10-23  Bruno Haible  <bruno@clisp.org>
51103             Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
51106         __argc, __argv from the declaration. (They are defined as macros on
51107         mingw.)
51108
51109 2006-10-22  Bruno Haible  <bruno@clisp.org>
51110
51111         * doc/gnulib-intro.texi: New file.
51112         * doc/gnulib.texi: Include it.
51113
51114 2006-10-21  Bruno Haible  <bruno@clisp.org>
51115
51116         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
51117         "Introduction", "Miscellanous Notes", "Particular Modules".
51118
51119 2006-10-21  Bruno Haible  <bruno@clisp.org>
51120
51121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51122         Change mostlyclean-local rule to avoid sh syntax error from bash
51123         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
51124
51125 2006-10-23  Jim Meyering  <jim@meyering.net>
51126
51127         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
51128         in place of snprintf.
51129
51130         * modules/inttostr (Files): Add lib/uinttostr.c.
51131         * lib/uinttostr.c (inttostr): New file/function.
51132         * lib/inttostr.h (uinttostr): Declare.
51133         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
51134         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51135         Add uinttostr.
51136         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
51137
51138 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51139
51140         * lib/canonicalize.c (ELOOP): Define if not already defined.
51141         Problem reported by Bruno Haible in
51142         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
51143
51144 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
51147         Problem reported by Perry Smith and Ville Laurikari.
51148
51149         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
51150         uses.
51151
51152 2006-10-19  Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
51155         for mingw.
51156
51157 2006-10-19  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
51160         Needed for mingw.
51161
51162 2006-10-19  Bruno Haible  <bruno@clisp.org>
51163
51164         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
51165
51166 2006-10-19  Bruno Haible  <bruno@clisp.org>
51167
51168         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
51169         it.
51170
51171 2006-10-19  Bruno Haible  <bruno@clisp.org>
51172
51173         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
51174         invocation.
51175
51176 2006-10-19  Bruno Haible  <bruno@clisp.org>
51177
51178         * gnulib-tool (func_create_testdir): Don't include ftruncate and
51179         mountlist by default.
51180
51181 2006-10-16  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/c-strstr.c: Include c-strstr.h.
51184
51185 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51186
51187         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
51188         in a slash.
51189
51190 2006-10-18  Bruno Haible  <bruno@clisp.org>
51191
51192         * lib/lock.h [C++]: Wrap definitions in extern "C".
51193
51194 2006-10-18  Bruno Haible  <bruno@clisp.org>
51195
51196         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
51197         gl_LIBOBJS list.
51198
51199 2006-10-18  Bruno Haible  <bruno@clisp.org>
51200
51201         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
51202
51203 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
51204
51205         * lib/xstrtol.h: Include gettext.h.
51206         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
51207         Problem reported by Eric Blake.
51208         * modules/xstrtol (Depends-on): Add gettext-h.
51209
51210 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
51211
51212         * lib/strftime.c (advance): New macro.
51213         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
51214         incomplete type, so you can't add 0 to it.  Problem and patch
51215         reported by Eelco Dolstra for dietlibc.
51216
51217 2006-10-18  Jim Meyering  <jim@meyering.net>
51218
51219         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
51220         type for a local, and rename it: s/up/user_proc/.
51221
51222 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51223
51224         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
51225         READ_UTMP_USER_PROCESS.
51226         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
51227
51228 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
51231         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
51232
51233 2006-10-17  Eric Blake  <ebb9@byu.net>
51234
51235         * lib/sigprocmask.c (sigprocmask): Fix typo.
51236
51237         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
51238
51239         * modules/clean-temp (Makefile.am): Don't add to make output...
51240         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
51241         config.h.
51242
51243 2006-10-17  Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
51246         differently if DEFAULT_TEXT_DOMAIN is set.
51247
51248 2006-10-16  Bruno Haible  <bruno@clisp.org>
51249
51250         * lib/clean-temp.c: Include fwriteerror.h.
51251
51252 2006-10-16  Bruno Haible  <bruno@clisp.org>
51253
51254         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
51255
51256 2006-10-16  Bruno Haible  <bruno@clisp.org>
51257
51258         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
51259         * lib/sigprocmask.h: Include <sys/types.h>.
51260         (sigset_t): Use the system's definition if present.
51261
51262 2006-10-17  Eric Blake  <ebb9@byu.net>
51263
51264         * lib/xvasprintf.c (includes): Assume config.h.
51265         * lib/xasprintf.c (includes): Likewise.
51266
51267 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51268
51269         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
51270         at least as wide as intmax_t.
51271
51272 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
51273
51274         (Imported from Automake.)
51275         * build-aux/gnupload: Update to version 1.1 of directive file.
51276
51277 2006-10-16  Eric Blake  <ebb9@byu.net>
51278
51279         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
51280         match Automake 1.10a.
51281
51282 2006-10-14  Bruno Haible  <bruno@clisp.org>
51283
51284         * modules/sigprocmask: New file.
51285         * lib/sigprocmask.h: New file.
51286         * lib/sigprocmask.c: New file.
51287         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
51288         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
51289         request sigprocmask.o.
51290         (gl_PREREQ_SIGPROCMASK): New macro.
51291         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
51292         (Depends-on): Add sigprocmask.
51293         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
51294         gt_SIGNALBLOCKING. Test for 'raise' only once.
51295         * lib/fatal-signal.c: Include sigprocmask.h.
51296         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
51297         unblock_fatal_signals): Define always.
51298         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51299         sigprocmask.
51300
51301 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         Sync from Automake.
51304         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
51305         which incorrectly sets the mode of an existing destination
51306         directory.  In some cases the unpatched install-sh could do the
51307         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
51308         system.  We hope this is rare in practice, but it's clearly worth
51309         fixing.  Problem reported by Alex Unleashed in
51310         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
51311         Also, don't bother to check for -m bugs unless we're using -m;
51312         suggested by Stepan Kasal.
51313
51314 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51315
51316         Sync from Automake.
51317         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
51318         `-c' flag, so they appear at the same position as in %FASTDEP%
51319         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
51320         which ignores unknown options only after the first non-option.
51321         Bug report against M4 by Nelson H. F. Beebe.
51322
51323 2006-10-13  Jim Meyering  <jim@meyering.net>
51324
51325         Fix a bug in yesterday's change.
51326         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
51327         p->fts_statp->st_dev would be used uninitialized.
51328         Ensures that we always call fts_stat on the very first entry.
51329         Miklos Szeredi reported that find -xdev stopped working.
51330
51331 2006-10-12  Bruno Haible  <bruno@clisp.org>
51332
51333         * gnulib-tool (func_get_automake_snippet): Append an automatically
51334         computed EXTRA_DIST augmentation.
51335         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
51336         * modules/alloca-opt (Makefile.am): Likewise.
51337         * modules/allocsa (Makefile.am): Likewise.
51338         * modules/arcfour (Makefile.am): Likewise.
51339         * modules/arctwo (Makefile.am): Likewise.
51340         * modules/argmatch (Makefile.am): Likewise.
51341         * modules/argz (Makefile.am): Likewise.
51342         * modules/atexit (Makefile.am): Likewise.
51343         * modules/backupfile (Makefile.am): Likewise.
51344         * modules/byteswap (Makefile.am): Likewise.
51345         * modules/c-strtod (Makefile.am): Likewise.
51346         * modules/c-strtold (Makefile.am): Likewise.
51347         * modules/calloc (Makefile.am): Likewise.
51348         * modules/canon-host (Makefile.am): Likewise.
51349         * modules/canonicalize (Makefile.am): Likewise.
51350         * modules/chdir-long (Makefile.am): Likewise.
51351         * modules/chdir-safer (Makefile.am): Likewise.
51352         * modules/check-version (Makefile.am): Likewise.
51353         * modules/chown (Makefile.am): Likewise.
51354         * modules/cloexec (Makefile.am): Likewise.
51355         * modules/close-stream (Makefile.am): Likewise.
51356         * modules/closeout (Makefile.am): Likewise.
51357         * modules/crc (Makefile.am): Likewise.
51358         * modules/csharpexec (Makefile.am): Likewise.
51359         * modules/cycle-check (Makefile.am): Likewise.
51360         * modules/des (Makefile.am): Likewise.
51361         * modules/dev-ino (Makefile.am): Likewise.
51362         * modules/dirfd (Makefile.am): Likewise.
51363         * modules/dirname (Makefile.am): Likewise.
51364         * modules/dup2 (Makefile.am): Likewise.
51365         * modules/eealloc (Makefile.am): Likewise.
51366         * modules/error (Makefile.am): Likewise.
51367         * modules/euidaccess (Makefile.am): Likewise.
51368         * modules/exclude (Makefile.am): Likewise.
51369         * modules/exitfail (Makefile.am): Likewise.
51370         * modules/fcntl-safer (Makefile.am): Likewise.
51371         * modules/fcntl (Makefile.am): Likewise.
51372         * modules/file-type (Makefile.am): Likewise.
51373         * modules/fileblocks (Makefile.am): Likewise.
51374         * modules/filemode (Makefile.am): Likewise.
51375         * modules/filenamecat (Makefile.am): Likewise.
51376         * modules/fnmatch (Makefile.am): Likewise.
51377         * modules/fopen-safer (Makefile.am): Likewise.
51378         * modules/fpending (Makefile.am): Likewise.
51379         * modules/fprintftime (Makefile.am): Likewise.
51380         * modules/free (Makefile.am): Likewise.
51381         * modules/fsusage (Makefile.am): Likewise.
51382         * modules/ftruncate (Makefile.am): Likewise.
51383         * modules/fts (Makefile.am): Likewise.
51384         * modules/gc-arcfour (Makefile.am): Likewise.
51385         * modules/gc-des (Makefile.am): Likewise.
51386         * modules/gc-hmac-md5 (Makefile.am): Likewise.
51387         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
51388         * modules/gc-md4 (Makefile.am): Likewise.
51389         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51390         * modules/gc-sha1 (Makefile.am): Likewise.
51391         * modules/gc (Makefile.am): Likewise.
51392         * modules/getaddrinfo (Makefile.am): Likewise.
51393         * modules/getcwd (Makefile.am): Likewise.
51394         * modules/getdelim (Makefile.am): Likewise.
51395         * modules/getdomainname (Makefile.am): Likewise.
51396         * modules/getgroups (Makefile.am): Likewise.
51397         * modules/gethostname (Makefile.am): Likewise.
51398         * modules/gethrxtime (Makefile.am): Likewise.
51399         * modules/getline (Makefile.am): Likewise.
51400         * modules/getloadavg (Makefile.am): Likewise.
51401         * modules/getlogin_r (Makefile.am): Likewise.
51402         * modules/getndelim2 (Makefile.am): Likewise.
51403         * modules/getopt (Makefile.am): Likewise.
51404         * modules/getpagesize (Makefile.am): Likewise.
51405         * modules/getpass-gnu (Makefile.am): Likewise.
51406         * modules/getpass (Makefile.am): Likewise.
51407         * modules/getsubopt (Makefile.am): Likewise.
51408         * modules/gettime (Makefile.am): Likewise.
51409         * modules/gettimeofday (Makefile.am): Likewise.
51410         * modules/getugroups (Makefile.am): Likewise.
51411         * modules/getusershell (Makefile.am): Likewise.
51412         * modules/glob (Makefile.am): Likewise.
51413         * modules/group-member (Makefile.am): Likewise.
51414         * modules/hard-locale (Makefile.am): Likewise.
51415         * modules/hash (Makefile.am): Likewise.
51416         * modules/hmac-md5 (Makefile.am): Likewise.
51417         * modules/hmac-sha1 (Makefile.am): Likewise.
51418         * modules/human (Makefile.am): Likewise.
51419         * modules/idcache (Makefile.am): Likewise.
51420         * modules/imaxabs (Makefile.am): Likewise.
51421         * modules/imaxdiv (Makefile.am): Likewise.
51422         * modules/inet_ntop (Makefile.am): Likewise.
51423         * modules/inet_pton (Makefile.am): Likewise.
51424         * modules/intprops (Makefile.am): Likewise.
51425         * modules/inttostr (Makefile.am): Likewise.
51426         * modules/inttypes (Makefile.am): Likewise.
51427         * modules/isapipe (Makefile.am): Likewise.
51428         * modules/javaversion (Makefile.am): Likewise.
51429         * modules/lchmod (Makefile.am): Likewise.
51430         * modules/lchown (Makefile.am): Likewise.
51431         * modules/localcharset (Makefile.am): Likewise.
51432         * modules/long-options (Makefile.am): Likewise.
51433         * modules/lstat (Makefile.am): Likewise.
51434         * modules/malloc (Makefile.am): Likewise.
51435         * modules/mathl (Makefile.am): Likewise.
51436         * modules/mbchar (Makefile.am): Likewise.
51437         * modules/md2 (Makefile.am): Likewise.
51438         * modules/md4 (Makefile.am): Likewise.
51439         * modules/md5 (Makefile.am): Likewise.
51440         * modules/memcasecmp (Makefile.am): Likewise.
51441         * modules/memchr (Makefile.am): Likewise.
51442         * modules/memcmp (Makefile.am): Likewise.
51443         * modules/memcoll (Makefile.am): Likewise.
51444         * modules/memcpy (Makefile.am): Likewise.
51445         * modules/memmem (Makefile.am): Likewise.
51446         * modules/memmove (Makefile.am): Likewise.
51447         * modules/mempcpy (Makefile.am): Likewise.
51448         * modules/memrchr (Makefile.am): Likewise.
51449         * modules/memset (Makefile.am): Likewise.
51450         * modules/memxor (Makefile.am): Likewise.
51451         * modules/mkancesdirs (Makefile.am): Likewise.
51452         * modules/mkdir-p (Makefile.am): Likewise.
51453         * modules/mkdir (Makefile.am): Likewise.
51454         * modules/mkdtemp (Makefile.am): Likewise.
51455         * modules/mkstemp (Makefile.am): Likewise.
51456         * modules/mktime (Makefile.am): Likewise.
51457         * modules/modechange (Makefile.am): Likewise.
51458         * modules/mountlist (Makefile.am): Likewise.
51459         * modules/nanosleep (Makefile.am): Likewise.
51460         * modules/obstack (Makefile.am): Likewise.
51461         * modules/openat (Makefile.am): Likewise.
51462         * modules/pagealign_alloc (Makefile.am): Likewise.
51463         * modules/pathmax (Makefile.am): Likewise.
51464         * modules/physmem (Makefile.am): Likewise.
51465         * modules/poll (Makefile.am): Likewise.
51466         * modules/posixtm (Makefile.am): Likewise.
51467         * modules/posixver (Makefile.am): Likewise.
51468         * modules/putenv (Makefile.am): Likewise.
51469         * modules/quote (Makefile.am): Likewise.
51470         * modules/quotearg (Makefile.am): Likewise.
51471         * modules/raise (Makefile.am): Likewise.
51472         * modules/read-file (Makefile.am): Likewise.
51473         * modules/readline (Makefile.am): Likewise.
51474         * modules/readlink (Makefile.am): Likewise.
51475         * modules/readtokens (Makefile.am): Likewise.
51476         * modules/readutmp (Makefile.am): Likewise.
51477         * modules/realloc (Makefile.am): Likewise.
51478         * modules/regex (Makefile.am): Likewise.
51479         * modules/rename-dest-slash (Makefile.am): Likewise.
51480         * modules/rename (Makefile.am): Likewise.
51481         * modules/rijndael (Makefile.am): Likewise.
51482         * modules/rmdir (Makefile.am): Likewise.
51483         * modules/rpmatch (Makefile.am): Likewise.
51484         * modules/safe-read (Makefile.am): Likewise.
51485         * modules/safe-write (Makefile.am): Likewise.
51486         * modules/same-inode (Makefile.am): Likewise.
51487         * modules/same (Makefile.am): Likewise.
51488         * modules/save-cwd (Makefile.am): Likewise.
51489         * modules/savedir (Makefile.am): Likewise.
51490         * modules/setenv (Makefile.am): Likewise.
51491         * modules/settime (Makefile.am): Likewise.
51492         * modules/sha1 (Makefile.am): Likewise.
51493         * modules/sig2str (Makefile.am): Likewise.
51494         * modules/snprintf (Makefile.am): Likewise.
51495         * modules/stat-macros (Makefile.am): Likewise.
51496         * modules/stat-time (Makefile.am): Likewise.
51497         * modules/stdbool (Makefile.am): Likewise.
51498         * modules/stdint (Makefile.am): Likewise.
51499         * modules/stdlib-safer (Makefile.am): Likewise.
51500         * modules/stpcpy (Makefile.am): Likewise.
51501         * modules/stpncpy (Makefile.am): Likewise.
51502         * modules/strcase (Makefile.am): Likewise.
51503         * modules/strcasestr (Makefile.am): Likewise.
51504         * modules/strchrnul (Makefile.am): Likewise.
51505         * modules/strcspn (Makefile.am): Likewise.
51506         * modules/strdup (Makefile.am): Likewise.
51507         * modules/strerror (Makefile.am): Likewise.
51508         * modules/strftime (Makefile.am): Likewise.
51509         * modules/strndup (Makefile.am): Likewise.
51510         * modules/strnlen (Makefile.am): Likewise.
51511         * modules/strpbrk (Makefile.am): Likewise.
51512         * modules/strsep (Makefile.am): Likewise.
51513         * modules/strstr (Makefile.am): Likewise.
51514         * modules/strtod (Makefile.am): Likewise.
51515         * modules/strtoimax (Makefile.am): Likewise.
51516         * modules/strtok_r (Makefile.am): Likewise.
51517         * modules/strtol (Makefile.am): Likewise.
51518         * modules/strtoll (Makefile.am): Likewise.
51519         * modules/strtoul (Makefile.am): Likewise.
51520         * modules/strtoull (Makefile.am): Likewise.
51521         * modules/strtoumax (Makefile.am): Likewise.
51522         * modules/strverscmp (Makefile.am): Likewise.
51523         * modules/sys_socket (Makefile.am): Likewise.
51524         * modules/sys_stat (Makefile.am): Likewise.
51525         * modules/sysexits (Makefile.am): Likewise.
51526         * modules/time_r (Makefile.am): Likewise.
51527         * modules/timegm (Makefile.am): Likewise.
51528         * modules/timespec (Makefile.am): Likewise.
51529         * modules/tmpfile-safer (Makefile.am): Likewise.
51530         * modules/trim (Makefile.am): Likewise.
51531         * modules/unistd-safer (Makefile.am): Likewise.
51532         * modules/unlinkdir (Makefile.am): Likewise.
51533         * modules/unlocked-io (Makefile.am): Likewise.
51534         * modules/userspec (Makefile.am): Likewise.
51535         * modules/utime (Makefile.am): Likewise.
51536         * modules/utimecmp (Makefile.am): Likewise.
51537         * modules/utimens (Makefile.am): Likewise.
51538         * modules/vasnprintf (Makefile.am): Likewise.
51539         * modules/vasprintf (Makefile.am): Likewise.
51540         * modules/vsnprintf (Makefile.am): Likewise.
51541         * modules/xalloc (Makefile.am): Likewise.
51542         * modules/xgetcwd (Makefile.am): Likewise.
51543         * modules/xnanosleep (Makefile.am): Likewise.
51544         * modules/xreadlink (Makefile.am): Likewise.
51545         * modules/xstrtod (Makefile.am): Likewise.
51546         * modules/xstrtol (Makefile.am): Likewise.
51547         * modules/xstrtold (Makefile.am): Likewise.
51548         * modules/yesno (Makefile.am): Likewise.
51549         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
51550
51551 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * modules/error (Makefile.am): Distribute files through
51554         EXTRA_DIST, not lib_SOURCES.
51555
51556 2006-10-12  Eric Blake  <ebb9@byu.net>
51557
51558         * modules/error (Makefile.am): Distribute files in /lib.
51559         * modules/obstack (Makefile.am): Likewise.
51560
51561 2006-10-12  Bruno Haible  <bruno@clisp.org>
51562
51563         * modules/acl (Makefile.am): Distribute all files in lib/ through
51564         EXTRA_DIST.
51565         * modules/arcfour (Makefile.am): Likewise.
51566         * modules/arctwo (Makefile.am): Likewise.
51567         * modules/argmatch (Makefile.am): Likewise.
51568         * modules/argz (Makefile.am): Likewise.
51569         * modules/atexit (Makefile.am): Likewise.
51570         * modules/backupfile (Makefile.am): Likewise.
51571         * modules/c-strtod (Makefile.am): Likewise.
51572         * modules/c-strtold (Makefile.am): Likewise.
51573         * modules/calloc (Makefile.am): Likewise.
51574         * modules/canon-host (Makefile.am): Likewise.
51575         * modules/canonicalize (Makefile.am): Likewise.
51576         * modules/chdir-long (Makefile.am): Likewise.
51577         * modules/chdir-safer (Makefile.am): Likewise.
51578         * modules/check-version (Makefile.am): Likewise.
51579         * modules/chown (Makefile.am): Likewise.
51580         * modules/cloexec (Makefile.am): Likewise.
51581         * modules/close-stream (Makefile.am): Likewise.
51582         * modules/closeout (Makefile.am): Likewise.
51583         * modules/crc (Makefile.am): Likewise.
51584         * modules/cycle-check (Makefile.am): Likewise.
51585         * modules/des (Makefile.am): Likewise.
51586         * modules/dirfd (Makefile.am): Likewise.
51587         * modules/dirname (Makefile.am): Likewise.
51588         * modules/dup2 (Makefile.am): Likewise.
51589         * modules/euidaccess (Makefile.am): Likewise.
51590         * modules/exclude (Makefile.am): Likewise.
51591         * modules/exitfail (Makefile.am): Likewise.
51592         * modules/fcntl-safer (Makefile.am): Likewise.
51593         * modules/file-type (Makefile.am): Likewise.
51594         * modules/fileblocks (Makefile.am): Likewise.
51595         * modules/filemode (Makefile.am): Likewise.
51596         * modules/filenamecat (Makefile.am): Likewise.
51597         * modules/fnmatch (Makefile.am): Likewise.
51598         * modules/fopen-safer (Makefile.am): Likewise.
51599         * modules/fpending (Makefile.am): Likewise.
51600         * modules/fprintftime (Makefile.am): Likewise.
51601         * modules/free (Makefile.am): Likewise.
51602         * modules/fsusage (Makefile.am): Likewise.
51603         * modules/ftruncate (Makefile.am): Likewise.
51604         * modules/fts (Makefile.am): Likewise.
51605         * modules/gc (Makefile.am): Likewise.
51606         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
51607         * modules/getaddrinfo (Makefile.am): Likewise.
51608         * modules/getcwd (Makefile.am): Likewise.
51609         * modules/getdelim (Makefile.am): Likewise.
51610         * modules/getdomainname (Makefile.am): Likewise.
51611         * modules/getgroups (Makefile.am): Likewise.
51612         * modules/gethostname (Makefile.am): Likewise.
51613         * modules/gethrxtime (Makefile.am): Likewise.
51614         * modules/getline (Makefile.am): Likewise.
51615         * modules/getloadavg (Makefile.am): Likewise.
51616         * modules/getlogin_r (Makefile.am): Likewise.
51617         * modules/getopt (Makefile.am): Likewise.
51618         * modules/getpass (Makefile.am): Likewise.
51619         * modules/getpass-gnu (Makefile.am): Likewise.
51620         * modules/getsubopt (Makefile.am): Likewise.
51621         * modules/gettime (Makefile.am): Likewise.
51622         * modules/gettimeofday (Makefile.am): Likewise.
51623         * modules/getugroups (Makefile.am): Likewise.
51624         * modules/getusershell (Makefile.am): Likewise.
51625         * modules/glob (Makefile.am): Likewise.
51626         * modules/group-member (Makefile.am): Likewise.
51627         * modules/hard-locale (Makefile.am): Likewise.
51628         * modules/hash (Makefile.am): Likewise.
51629         * modules/hmac-md5 (Makefile.am): Likewise.
51630         * modules/hmac-sha1 (Makefile.am): Likewise.
51631         * modules/human (Makefile.am): Likewise.
51632         * modules/idcache (Makefile.am): Likewise.
51633         * modules/imaxabs (Makefile.am): Likewise.
51634         * modules/imaxdiv (Makefile.am): Likewise.
51635         * modules/inet_ntop (Makefile.am): Likewise.
51636         * modules/inet_pton (Makefile.am): Likewise.
51637         * modules/inttostr (Makefile.am): Likewise.
51638         * modules/isapipe (Makefile.am): Likewise.
51639         * modules/lchown (Makefile.am): Likewise.
51640         * modules/long-options (Makefile.am): Likewise.
51641         * modules/lstat (Makefile.am): Likewise.
51642         * modules/malloc (Makefile.am): Likewise.
51643         * modules/mathl (Makefile.am): Likewise.
51644         * modules/mbchar (Makefile.am): Likewise.
51645         * modules/md2 (Makefile.am): Likewise.
51646         * modules/md4 (Makefile.am): Likewise.
51647         * modules/md5 (Makefile.am): Likewise.
51648         * modules/memcasecmp (Makefile.am): Likewise.
51649         * modules/memchr (Makefile.am): Likewise.
51650         * modules/memcmp (Makefile.am): Likewise.
51651         * modules/memcoll (Makefile.am): Likewise.
51652         * modules/memcpy (Makefile.am): Likewise.
51653         * modules/memmem (Makefile.am): Likewise.
51654         * modules/memmove (Makefile.am): Likewise.
51655         * modules/mempcpy (Makefile.am): Likewise.
51656         * modules/memrchr (Makefile.am): Likewise.
51657         * modules/memset (Makefile.am): Likewise.
51658         * modules/memxor (Makefile.am): Likewise.
51659         * modules/mkancesdirs (Makefile.am): Likewise.
51660         * modules/mkdir (Makefile.am): Likewise.
51661         * modules/mkdir-p (Makefile.am): Likewise.
51662         * modules/mkdtemp (Makefile.am): Likewise.
51663         * modules/mkstemp (Makefile.am): Likewise.
51664         * modules/mktime (Makefile.am): Likewise.
51665         * modules/modechange (Makefile.am): Likewise.
51666         * modules/mountlist (Makefile.am): Likewise.
51667         * modules/nanosleep (Makefile.am): Likewise.
51668         * modules/openat (Makefile.am): Likewise.
51669         * modules/pagealign_alloc (Makefile.am): Likewise.
51670         * modules/physmem (Makefile.am): Likewise.
51671         * modules/poll (Makefile.am): Likewise.
51672         * modules/posixtm (Makefile.am): Likewise.
51673         * modules/posixver (Makefile.am): Likewise.
51674         * modules/putenv (Makefile.am): Likewise.
51675         * modules/quote (Makefile.am): Likewise.
51676         * modules/quotearg (Makefile.am): Likewise.
51677         * modules/raise (Makefile.am): Likewise.
51678         * modules/read-file (Makefile.am): Likewise.
51679         * modules/readline (Makefile.am): Likewise.
51680         * modules/readlink (Makefile.am): Likewise.
51681         * modules/readtokens (Makefile.am): Likewise.
51682         * modules/readutmp (Makefile.am): Likewise.
51683         * modules/realloc (Makefile.am): Likewise.
51684         * modules/regex (Makefile.am): Likewise.
51685         * modules/rename (Makefile.am): Likewise.
51686         * modules/rename-dest-slash (Makefile.am): Likewise.
51687         * modules/rijndael (Makefile.am): Likewise.
51688         * modules/rmdir (Makefile.am): Likewise.
51689         * modules/rpmatch (Makefile.am): Likewise.
51690         * modules/safe-read (Makefile.am): Likewise.
51691         * modules/safe-write (Makefile.am): Likewise.
51692         * modules/same (Makefile.am): Likewise.
51693         * modules/save-cwd (Makefile.am): Likewise.
51694         * modules/savedir (Makefile.am): Likewise.
51695         * modules/setenv (Makefile.am): Likewise.
51696         * modules/settime (Makefile.am): Likewise.
51697         * modules/sha1 (Makefile.am): Likewise.
51698         * modules/sig2str (Makefile.am): Likewise.
51699         * modules/snprintf (Makefile.am): Likewise.
51700         * modules/stdlib-safer (Makefile.am): Likewise.
51701         * modules/stpcpy (Makefile.am): Likewise.
51702         * modules/stpncpy (Makefile.am): Likewise.
51703         * modules/strcase (Makefile.am): Likewise.
51704         * modules/strcasestr (Makefile.am): Likewise.
51705         * modules/strchrnul (Makefile.am): Likewise.
51706         * modules/strcspn (Makefile.am): Likewise.
51707         * modules/strdup (Makefile.am): Likewise.
51708         * modules/strerror (Makefile.am): Likewise.
51709         * modules/strftime (Makefile.am): Likewise.
51710         * modules/strndup (Makefile.am): Likewise.
51711         * modules/strnlen (Makefile.am): Likewise.
51712         * modules/strpbrk (Makefile.am): Likewise.
51713         * modules/strsep (Makefile.am): Likewise.
51714         * modules/strstr (Makefile.am): Likewise.
51715         * modules/strtod (Makefile.am): Likewise.
51716         * modules/strtoimax (Makefile.am): Likewise.
51717         * modules/strtok_r (Makefile.am): Likewise.
51718         * modules/strtol (Makefile.am): Likewise.
51719         * modules/strtoll (Makefile.am): Likewise.
51720         * modules/strtoul (Makefile.am): Likewise.
51721         * modules/strtoull (Makefile.am): Likewise.
51722         * modules/strtoumax (Makefile.am): Likewise.
51723         * modules/strverscmp (Makefile.am): Likewise.
51724         * modules/time_r (Makefile.am): Likewise.
51725         * modules/timegm (Makefile.am): Likewise.
51726         * modules/tmpfile-safer (Makefile.am): Likewise.
51727         * modules/unistd-safer (Makefile.am): Likewise.
51728         * modules/unlinkdir (Makefile.am): Likewise.
51729         * modules/userspec (Makefile.am): Likewise.
51730         * modules/utime (Makefile.am): Likewise.
51731         * modules/utimecmp (Makefile.am): Likewise.
51732         * modules/utimens (Makefile.am): Likewise.
51733         * modules/vasnprintf (Makefile.am): Likewise.
51734         * modules/vasprintf (Makefile.am): Likewise.
51735         * modules/vsnprintf (Makefile.am): Likewise.
51736         * modules/xalloc (Makefile.am): Likewise.
51737         * modules/xgetcwd (Makefile.am): Likewise.
51738         * modules/xnanosleep (Makefile.am): Likewise.
51739         * modules/xreadlink (Makefile.am): Likewise.
51740         * modules/xstrtod (Makefile.am): Likewise.
51741         * modules/xstrtol (Makefile.am): Likewise.
51742         * modules/xstrtold (Makefile.am): Likewise.
51743         * modules/yesno (Makefile.am): Likewise.
51744
51745 2006-10-12  Jim Meyering  <jim@meyering.net>
51746
51747         * m4/getloadavg.m4: Revert the change below.
51748
51749         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
51750         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
51751         fail with a symlink, which is what coreutils' ./bootstrap now
51752         creates by default.
51753
51754 2006-10-12  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
51757         mingw.
51758         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
51759         MSVC and mingw explicitly.
51760
51761 2006-10-11  Simon Josefsson  <jas@extundo.com>
51762             Bruno Haible  <bruno@clisp.org>
51763
51764         Add support for multiple gnulib-tool invocations in the scope of a
51765         single configure.ac file.
51766         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
51767         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
51768         with the same contents as the _LIBADD variable.
51769         (func_emit_initmacro_start, func_emit_initmacro_end,
51770         func_emit_initmacro_done): New functions.
51771         (func_import, func_create_testdir): Invoke them. Allow the identifiers
51772         gl_LIBOBJS and gl_LTLIBOBJS.
51773
51774 2006-10-11  Bruno Haible  <bruno@clisp.org>
51775
51776         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
51777         (func_create_testdir): Don't create po/Makefile.am, don't invoke
51778         autoreconf. Instead, invoke autopoint explicitly but move back the
51779         *.m4 files from gnulib.
51780
51781 2006-10-11  Bruno Haible  <bruno@clisp.org>
51782
51783         * gnulib-tool (func_usage): Make module names after --create-testdir
51784         optional.
51785         (func_create_testdir): If no module was specified, use nearly all
51786         modules.
51787
51788 2006-10-12  Jim Meyering  <jim@meyering.net>
51789
51790         Big performance improvement for fts-based tools that use FTS_NOSTAT.
51791         Avoid spurious inode-mismatch problems on non-POSIX file systems.
51792         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
51793         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
51794         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
51795         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
51796         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
51797         (fts_set_stat_required): New function.
51798         (fts_open): Defer the calls to fts_stat, if possible or requested.
51799         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
51800         into fts_stat itself.
51801         (fts_read): Perform any required (deferred) fts_stat call.
51802         (fts_build): Likewise, for the directory we're about to open and read.
51803         In the readdir loop, carefully decide whether each entry will require
51804         an eventual call to fts_stat, using dirent.d_type info if available.
51805         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
51806         a command line argument into this function.  Update all callers.
51807         Map a return value of FTS_DOT to FTS_D for a command line argument.
51808         * modules/fts (Depends-on): Add d-type.  Alphabetize.
51809         Thanks to Miklos Szeredi for his tenacity and for the initial
51810         bug report about "find" failing on a FUSE-based file system.
51811
51812         * lib/fts.c (fts_open): Use consistent indentation.
51813
51814 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51815
51816         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
51817         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
51818         reported by Jim Meyering.  All uses of cache variables renamed
51819         to match Autoconf's.
51820         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
51821         the other one.
51822
51823         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
51824         Fix misspelling in diagnostic.
51825
51826 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
51829         defined.  Problem reported by Matthew Woehlke.
51830
51831         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
51832         Add support for Tandem NonStop R series.
51833         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
51834         Use new macro.
51835
51836         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
51837         (has_trailing_slash): Omit size arg; all callers changed.
51838         Omit 'inline', since it doesn't help performance and we'd
51839         need to configure it.
51840         Don't count //, ///, etc. as having a trailing slash.
51841         As a side effect, this removes a C99ism reported by Matthew Woehlke.
51842         (rpl_rename_dest_slash): On failure, use rename's errno rather
51843         than (in some cases) an incorrect or junk errno.
51844         Simplify code by removing need to compute length; this does
51845         cause it to make two passes instead of one over the file name,
51846         but it's worth it.
51847
51848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
51849         change, since Autoconf's version may no longer be appropriate now
51850         that we are using CVS Autoconf's version.  Add support for Tandem.
51851
51852 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51853             Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
51856         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
51857         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
51858         gl_AC_TYPE_LONG_LONG.
51859
51860         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
51861         instead of HAVE_LONG_LONG.
51862         * lib/printf-args.c (printf_fetchargs): Likewise.
51863         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
51864         * lib/vasnprintf.c (VASNPRINTF): Likewise.
51865         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
51866         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
51867         gl_AC_TYPE_LONG_LONG.
51868
51869 2006-10-11  Bruno Haible  <bruno@clisp.org>
51870
51871         * m4/longlong.m4: Add comments.
51872         * m4/ulonglong.m4: Likewise.
51873
51874 2006-10-10  Bruno Haible  <bruno@clisp.org>
51875
51876         Make it possible to #define stpcpy, strdup to aliases.
51877         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
51878         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
51879
51880 2006-10-10  Bruno Haible  <bruno@clisp.org>
51881
51882         Make it possible to #define gcd to an alias.
51883         * lib/gcd.c: Include config.h.
51884
51885 2006-10-10  Bruno Haible  <bruno@clisp.org>
51886
51887         Make it possible to #define c_isascii to an alias.
51888         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
51889         defined. Undefine the macros before defining them, to avoid gcc
51890         warnings.
51891         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
51892         define NO_C_CTYPE_MACROS early.
51893
51894 2006-10-10  Bruno Haible  <bruno@clisp.org>
51895
51896         Make it possible to #define set_program_name to an alias.
51897         * lib/progname.c: Don't undefine set_program_name; instead, undefine
51898         ENABLE_RELOCATABLE early.
51899
51900 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         Port to Tandem NSK OSS, which has 64-bit signed int but at most
51903         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
51904         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
51905         More generally, don't assume that 64-bit signed int is available
51906         if unsigned int is, and vice versa.
51907         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
51908         unsigned symbols, not on their signed counterparts.
51909         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
51910         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
51911         (UINT64_C, UINTMAX_C):
51912         Likewise.
51913         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
51914         unsigned counterparts.
51915         (Have_long_long, Unsigned): New macros.
51916         (Int): Renamed from INT.
51917         (strtoimax): Use the new macros.
51918         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
51919         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
51920         * modules/inttypes (inttypes.h): Substitute
51921         HAVE_UNSIGNED_LONG_LONG_INT.
51922         * modules/stdint (stdint.h): Likewise.
51923         (Files): Add m4/ulonglong.m4.
51924
51925 2006-10-10  Bruno Haible  <bruno@clisp.org>
51926
51927         Fix a gcc -Wshadow warning.
51928         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
51929         to 'bucket'.
51930         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
51931         gl_linked_indexof_from_to): Likewise.
51932         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
51933         Likewise.
51934         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
51935         Likewise.
51936         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
51937         Reported by Eric Blake.
51938
51939 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
51940
51941         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
51942         for NetBSD.  Problem reported by Bruno Haible.
51943
51944 2006-10-09  Jim Meyering  <jim@meyering.net>
51945
51946         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
51947         Patch from Bruno Haible.
51948
51949 2006-10-09  Jim Meyering  <jim@meyering.net>
51950
51951         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
51952         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
51953         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
51954
51955 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         Don't include <config.h> twice; this doesn't work in some cases,
51958         e.g., when config.h has "#define intmax_t long long int" and
51959         we include <config.h>, <inttypes.h>, <config.h> in that order.
51960         Problem reported by Matthew Woehlke in:
51961         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
51962         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
51963         * lib/fts-cycle.c: Don't include config.h.
51964         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
51965         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
51966         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
51967         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
51968         inttypes.h.
51969         * lib/xstrtoumax.c: Likewise.
51970         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
51971         __strtol and the like, so that this module is more like its siblings.
51972         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
51973         Remove; no longer needed now that we assume gnulib inttypes.h.
51974
51975 2006-10-08  Bruno Haible  <bruno@clisp.org>
51976
51977         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
51978         option.
51979
51980 2006-10-07  Jim Meyering  <jim@meyering.net>
51981
51982         * modules/inttypes (inttypes.h): Revert what seems to have been
51983         an inadvertent part of today's change: use "|", not "/" in the
51984         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
51985
51986 2006-10-07  Bruno Haible  <bruno@clisp.org>
51987
51988         * modules/sublist: New file.
51989
51990 2006-10-07  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
51993         * modules/argz (argz.h): Likewise.
51994         * modules/arpa_inet (arpa/inet.h): Likewise.
51995         * modules/byteswap (byteswap.h): Likewise.
51996         * modules/configmake (configmake.h): Likewise.
51997         * modules/fcntl (fcntl.h): Likewise.
51998         * modules/fnmatch (fnmatch.h): Likewise.
51999         * modules/getopt (getopt.h): Likewise.
52000         * modules/glob (glob.h): Likewise.
52001         * modules/inttypes (inttypes.h): Likewise.
52002         * modules/netinet_in (netinet/in.h): Likewise.
52003         * modules/poll (poll.h): Likewise.
52004         * modules/stdbool (stdbool.h): Likewise.
52005         * modules/stdint (stdint.h): Likewise.
52006         * modules/sys_select (sys/select.h): Likewise.
52007         * modules/sys_socket (sys/socket.h): Likewise.
52008         * modules/sys_stat (sys/stat.h): Likewise.
52009         * modules/sysexits (sysexits.h): Likewise.
52010         * modules/unistd (unistd.h): Likewise.
52011         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52012         Add a "DO NOT EDIT" comment to the generated file.
52013         (func_import): Likewise for gnulib-comp.m4.
52014
52015 2006-10-07  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/gl_sublist.h: New file.
52018         * lib/gl_sublist.c: New file.
52019
52020 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
52023         name (relative to the original working directory) and the file
52024         name component (relative to the temporary working directory).  All
52025         callers changed.
52026         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
52027         * lib/mkdir-p.c (make_dir_parents): Likewise.
52028         * lib/mkdir-p.h (make_dir_parents): Likewise.
52029
52030 2006-10-06  Eric Blake  <ebb9@byu.net>
52031
52032         Define several macros for use by the clean-temp module.
52033         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
52034         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
52035         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
52036
52037         * lib/clean-temp.h (close_stream_temp): New declaration.
52038         * lib/clean-temp.c (includes): Pull in headers according to what
52039         other modules are in use.
52040         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
52041
52042 2006-10-06  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
52045         instead of fopen, fwriteerror.
52046
52047 2006-10-06  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
52050         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
52051         int.
52052         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
52053         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
52054         Return an error indicator.
52055         Suggested by Eric Blake.
52056
52057 2006-10-06  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
52060         Reported by Eric Blake.
52061
52062 2006-10-06  Bruno Haible  <bruno@clisp.org>
52063
52064         * modules/closeout (Description): Mention stderr too.
52065
52066 2006-10-06  Bruno Haible  <bruno@clisp.org>
52067         and Paul Eggert  <eggert@cs.ucla.edu>
52068
52069         * lib/closeout.c (close_stdout): Also close stderr.
52070         * lib/closeout.h: Update comment.
52071
52072 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52073
52074         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
52075         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
52076         * lib/dirchownmod.c: Include lchown.h.
52077         * lib/lchown.c: Don't include files that lchown.h now includes.
52078         Don't declare chown, since lchown.h now does that.
52079         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
52080         (lchown): Define to rpl_chown if lchown is declared but
52081         does not exist.  Declare using a prototype if lchown is not
52082         declared.  Add a copyright notice.
52083         * lib/mkstemp.h: Include <unistd.h>.
52084         * lib/openat.c: Include lchown.h.
52085
52086         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
52087         we now test for that separately.
52088         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
52089         rather than O_NOFOLLOW, when testing whether it's possible to
52090         avoid a race condition reliably.
52091         * lib/savewd.c (savewd_chdir): Likewise.
52092
52093         Remove macros that are no longer needed now that stdint.h is
52094         reliable.
52095         * lib/fsusage.c (UINTMAX_MAX): Remove.
52096         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
52097         * lib/utimecmp.c (SIZE_MAX): Remove.
52098
52099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
52100
52101         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
52102         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
52103         O_NOATIME works.
52104
52105 2006-10-05  Bruno Haible  <bruno@clisp.org>
52106
52107         * lib/gl_list.h (gl_sortedlist_search_from_to,
52108         gl_sortedlist_indexof_from_to): New declarations.
52109         (gl_list_implementation): New fields sortedlist_search_from_to,
52110         sortedlist_indexof_from_to.
52111         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
52112         inline functions.
52113         * lib/gl_list.c (gl_sortedlist_search_from_to,
52114         gl_sortedlist_indexof_from_to): New functions.
52115         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
52116         function.
52117         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
52118         (gl_array_sortedlist_search_from_to): New function.
52119         (gl_array_list_implementation): Update.
52120         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
52121         function.
52122         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
52123         (gl_carray_sortedlist_search_from_to): New function.
52124         (gl_carray_list_implementation): Update.
52125         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
52126         gl_linked_sortedlist_indexof_from_to): New functions.
52127         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52128         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52129         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
52130         gl_tree_sortedlist_indexof_from_to): New functions.
52131         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52132         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52133         Update.
52134         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52135         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
52136         Update.
52137
52138 2006-10-05  Bruno Haible  <bruno@clisp.org>
52139
52140         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
52141         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
52142         (struct gl_list_implementation): Add fields search_from_to,
52143         indexof_from_to. Remove fields search, indexof.
52144         (gl_list_search): Use the search_from_to method.
52145         (gl_list_search_from, gl_list_search_from_to): New functions.
52146         (gl_list_indexof): Use the indexof_from_to method.
52147         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52148         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
52149         (gl_list_search_from, gl_list_search_from_to): New functions.
52150         (gl_list_indexof): Use the indexof_from_to method.
52151         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
52152         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
52153         gl_array_indexof. Add start_index, end_index arguments.
52154         (gl_array_search_from_to): Renamed from gl_array_search. Add
52155         start_index, end_index arguments.
52156         (gl_array_remove, gl_array_list_implementation): Update.
52157         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
52158         gl_carray_indexof. Add start_index, end_index arguments.
52159         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
52160         start_index, end_index arguments.
52161         (gl_carray_remove, gl_carray_list_implementation): Update.
52162         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
52163         gl_linked_search. Add start_index, end_index arguments.
52164         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
52165         start_index, end_index arguments.
52166         (gl_linked_remove): Update.
52167         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52168         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52169         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
52170         field to 'size_t'.
52171         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
52172         gl_tree_search. Add start_index, end_index arguments.
52173         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52174         start_index, end_index arguments.
52175         (gl_tree_remove): Update.
52176         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52177         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52178         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
52179         function.
52180         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
52181         gl_tree_search. Add start_index, end_index arguments.
52182         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
52183         start_index, end_index arguments.
52184         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52185         Update.
52186         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52187
52188 2006-10-05  Bruno Haible  <bruno@clisp.org>
52189
52190         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
52191
52192         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
52193         fwriteerror_temp): New declarations.
52194         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
52195         (descriptors): New variable.
52196         (cleanup): First, close the descriptors.
52197         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
52198         fclose_temp, fwriteerror_temp): New functions.
52199
52200 2006-10-04  Jim Meyering  <jim@meyering.net>
52201
52202         * lib/fts.c (fts_open): Tiny comment change.
52203
52204 2006-10-04  Bruno Haible  <bruno@clisp.org>
52205
52206         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
52207         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
52208         gl_LOCK_BODY.
52209         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
52210         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
52211         gl_LOCK_EARLY_BODY.
52212         (gl_LOCK): Require gl_LOCK_BODY.
52213
52214 2006-10-04  Bruno Haible  <bruno@clisp.org>
52215
52216         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
52217         (gl_oset_search_atleast): New declaration.
52218         (struct gl_oset_implementation): Add field 'search_atleast'.
52219         (gl_oset_search_atleast): New inline function.
52220         * lib/gl_oset.c (gl_oset_search_atleast): New function.
52221         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
52222         (gl_array_oset_implementation): Update.
52223         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
52224         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
52225         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
52226
52227 2006-10-04  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
52230
52231 2006-10-03  Bruno Haible  <bruno@clisp.org>
52232
52233         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
52234         from gl_avltreehash_list_implementation.
52235
52236 2006-10-03  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/gl_oset.c (gl_oset_add): Fix return type.
52239
52240 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
52241
52242         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
52243
52244 2006-10-02  Eric Blake  <ebb9@byu.net>
52245
52246         * modules/strnlen (Depends-on): Add extensions.
52247
52248 2006-10-02  Eric Blake  <ebb9@byu.net>
52249
52250         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
52251         definition in 2.60+.
52252
52253 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
52254
52255         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
52256         checks.
52257
52258 2006-10-02  Bruno Haible  <bruno@clisp.org>
52259
52260         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
52261         to the AUTOMAKE_OPTIONS.
52262         Reported by Jim Meyering.
52263
52264 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52265
52266         Work around bug in Solaris 10 /proc file system:
52267         /proc/self/fd/NNN/.. isn't the parent directory of
52268         the directory whose file descriptor is NNN.  This needs to
52269         be worked around at run time, not compile time, since a
52270         program might be built on Solaris 8, where things work, and
52271         run on Solaris 10.
52272         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
52273         to use the following interface instead:
52274         (OPENAT_BUFFER_SIZE): New macro.
52275         (openat_proc_name): New function.
52276         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
52277         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
52278         Likewise.
52279         * lib/openat-proc.c: New file.
52280         * modules/openat (Files): Add lib/openat-proc.c.
52281         (Depends-on): Add same-inode, stdbool.
52282         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
52283
52284 2006-09-29  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
52287         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
52288         argument. Set stdout_closed before testing for ferror, not after.
52289         (fwriteerror, fwriteerror_no_ebadf): New functions.
52290
52291 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52292
52293         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
52294
52295 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
52296
52297         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
52298         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
52299
52300 2006-09-28  Jim Meyering  <jim@meyering.net>
52301
52302         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
52303         Include <unistd.h>.
52304
52305 2006-09-28  Bruno Haible  <bruno@clisp.org>
52306
52307         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
52308         * modules/linkedhash-list (Depends-on): Likewise.
52309         * modules/rbtreehash-list (Depends-on): Likewise.
52310
52311 2006-09-28  Bruno Haible  <bruno@clisp.org>
52312
52313         * lib/strndup.h: Simplify the redefinition of strndup.
52314         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
52315         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
52316
52317 2006-09-28  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
52320         * lib/gl_linkedhash_list.c: Likewise.
52321         * lib/gl_rbtreehash_list.c: Likewise.
52322
52323 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52324
52325         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
52326         getaddrinfo.
52327
52328         * lib/__fpending.h: Don't include <stdio_ext.h> unless
52329         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
52330         it causes <stdio_ext.h> to cause a compile-time error.
52331         Problem reported by Nelson H. F. Beebe.
52332         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
52333         of HAVE_DECL___PENDING.
52334
52335         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
52336         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
52337         declaration.
52338
52339 2006-09-27  Jim Meyering  <jim@meyering.net>
52340
52341         This file could end up with a definition for a function
52342         named __strndup, rather than rpl_strndup on a system with
52343         incomplete weak_alias support.
52344         * lib/strndup.c (strndup): Rename from __strndup.
52345         Remove #defines that used to map __strndup to strndup.
52346         Don't use K&R prototypes.
52347         Remove LIBC-related code, since this file is not sync'd with glibc.
52348         * lib/strndup.h: Revamp, accordingly.
52349         * m4/strndup.m4: Modernize.
52350
52351 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52352
52353         * modules/savewd (Depends-on): Add 'raise'.
52354         * lib/savewd.c: Include <signal.h>, for 'raise'.
52355
52356 2006-09-26  Jim Meyering  <jim@meyering.net>
52357
52358         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
52359         when we detect Darwin 8.7.0's acl_get_file bug.
52360         Rearrange to perform the new (below) run-test while $LIBS
52361         contains any acl-related library.  Set USE_ACL at the end.
52362         (gl_ACL_GET_FILE): New function.
52363
52364 2006-09-26  Eric Blake  <ebb9@byu.net>
52365
52366         * lib/verror.c: Include <config.h> unconditionally.
52367
52368 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
52369
52370         * modules/clock-time (Maintainer): Add self.
52371         * modules/getlogin_r (Depends-on): Add extensions.
52372
52373 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52374
52375         * modules/clock-time: New module.
52376         * modules/nanosleep (Depends-on): Add clock-time.
52377         * modules/gethrxtime (Depends-on): Likewise.
52378         * modules/gettime (Depends-on): Likewise.
52379         * modules/settime (Depends-on): Likewise.
52380
52381         * modules/fts-lgpl: Depend on openat.
52382         * modules/mkancesdirs: Depend on savewd.
52383         * modules/mkdir-p: Likewise.
52384
52385 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52386
52387         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
52388
52389         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
52390         `gl_have_arbitrary_file_name_length_limit' to
52391         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
52392         actually works between configure runs.
52393
52394 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52395             Bruno Haible  <bruno@clisp.org>
52396
52397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
52398
52399 2006-09-25  Jim Meyering  <jim@meyering.net>
52400
52401         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
52402         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
52403
52404 2006-09-25  Eric Blake  <ebb9@byu.net>
52405
52406         * gnulib-tool (func_import, func_create_testdir): Fix typos in
52407         exec's in 2006-09-18 patch when shuffling fds.
52408
52409 2006-09-25  Bruno Haible  <bruno@clisp.org>
52410
52411         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
52412         Reported by Jim Meyering.
52413
52414 2006-09-24  Jim Meyering  <jim@meyering.net>
52415
52416         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
52417         compare a pointer against a literal "0".  That caused failures with
52418         at least HP-UX's hpcc.
52419
52420 2006-09-22  Simon Josefsson  <jas@extundo.com>
52421
52422         * modules/gc-sha1:
52423         * modules/gc-md4:
52424         * modules/gc-hmac-sha1:
52425         * modules/gc-hmac-md5:
52426         * modules/gc-des:
52427         * modules/gc-arcfour: Distribute more files.
52428
52429 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52430
52431         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
52432         (gl_linked_iterator_from_to): Initialize struct completely.
52433         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
52434         (gl_tree_iterator_from_to): Likewise
52435         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
52436         * lib/gl_array_list.c [lint] (gl_array_iterator)
52437         (gl_array_iterator_from_to): Likewise.
52438         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
52439         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
52440         (gl_carray_iterator_from_to): Likewise.
52441
52442         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
52443         * lib/md4.c (md4_process_block): Remove unused variable.
52444         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
52445         parentheses for clarity.
52446
52447 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52448
52449         * modules/bison-i18n (Depends-on): Add gettext.
52450
52451 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52452
52453         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
52454         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
52455         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
52456         also add missing comma that caused broken test.
52457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
52458         stdlib.h, for `abort'.
52459         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
52460         variables.
52461         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
52462         include unistd.h if present, for `rmdir'.
52463         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
52464         variables.
52465         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
52466         in the process include standard headers for prototypes.
52467         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
52468         gets declared on GNU/Linux.
52469         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
52470         unistd.h, for `rmdir'.
52471         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
52472
52473         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
52474         always true.
52475         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
52476
52477         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
52478
52479 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52480
52481         * gnulib-tool (func_version): Create output all at once.  This
52482         may help avoid triggering unnecessary SIGPIPEs, and at any
52483         rate it doesn't hurt.
52484
52485 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52486             Bruno Haible  <bruno@clisp.org>
52487
52488         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
52489         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52490         * m4/signed.m4 (bh_C_SIGNED): Likewise.
52491
52492         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
52493         (gl_FUNC_VASPRINTF): Invoke it.
52494
52495 2006-09-22  Bruno Haible  <bruno@clisp.org>
52496
52497         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
52498         getloadavg.c as first argument.
52499
52500 2006-09-22  Bruno Haible  <bruno@clisp.org>
52501
52502         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
52503         at the beginning of the gl_INIT macro.
52504         * modules/getloadavg (configure.ac): Pass $gl_source_base to
52505         gl_GETLOADAVG.
52506
52507 2006-09-22  Bruno Haible  <bruno@clisp.org>
52508
52509         * gnulib-tool (func_create_megatestdir): Don't include the config-h
52510         module.
52511         Suggested by Ralf Wildenhues.
52512
52513 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         Import this patch from libc:
52516
52517         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
52518
52519         * lib/regex_internal.c (re_string_reconstruct): Handle
52520         offset < pstr->valid_raw_len && pstr->offsets_needed case.
52521         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
52522         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
52523         re_string_context_at.
52524
52525         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
52526         now requires it.
52527         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
52528         gl_REGEX now does it for us.
52529         (gl_REGEX): Add test taken from
52530         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
52531
52532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
52533         Check that large offsets work.  Modernize Autoconf usages.
52534         Prefer "yes" to mean a good thing rather than a bad.
52535         Don't put "#define mkstemp" in config.h, as this might interfere
52536         with standard system headers that "#define mkstemp mkstemp64".
52537
52538         * modules/mkstemp (Depends-on): Add extensions, so that
52539         mkstemp is visible on some platforms.
52540         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
52541         (Include): Change to "mkstemp.h" from <stdlib.h>.
52542         (Files): Add mkstemp.h.
52543
52544         * lib/mkstemp.h: New file, since some standard headers
52545         #define mkstemp.
52546         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
52547         Include "mkstemp.h".
52548         Make the _LIBC code resemble glibc original more,
52549         e.g., use K&R style.
52550         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
52551         (mkstemp): Remove, since mkstemp.h does this for us.
52552         * lib/stdlib--.h: Include mkstemp.h.
52553
52554         Import this patch from libc:
52555
52556         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52557
52558         * lib/tempname.c (__gen_tempname): Change attempts_min
52559         into a macro.  Use preprocessor to decide how to initialize
52560         attempts [Coverity CID 67].
52561
52562 2006-09-20  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/mkdtemp.c: Import from libc.
52565         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
52566                 * sysdeps/posix/tempname.c (__gen_tempname): Change
52567                 attempts_min into a macro.  Use preprocessor to decide how to
52568                 initialize attempts [Coverity CID 67].
52569         2001-11-27  Paul Eggert  <eggert@twinsun.com>
52570                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
52571                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
52572
52573 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52574
52575         * gnulib-tool (func_exit): New function, to allow to pass the
52576         exit status portably through the trap.  Use everywhere.
52577         (--help, --version): Signal a write error.
52578         (trap): catch SIGPIPE, for write errors.
52579         Exit at the end of the trap, with the correct exit status.
52580
52581 2006-09-19  Karl Berry  <karl@gnu.org>
52582
52583         * doc/gnulib.texi: note about the license texinfo files.
52584
52585 2006-09-19  Eric Blake  <ebb9@byu.net>
52586
52587         * gnulib-tool: Avoid space-tab.
52588
52589 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52590
52591         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
52592         that prevented coreutils 6.1 from building.  Problem reported
52593         by Petter Reinholdtsen.
52594
52595 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         * gnulib-tool (avoidlist): Fix typo that broke options like
52598         --avoid=lock that are used by coreutils bootstrap.
52599
52600 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
52601
52602         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
52603         more systematically.
52604
52605 2006-09-18  Jim Meyering  <jim@meyering.net>
52606
52607         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
52608
52609 2006-09-18  Bruno Haible  <bruno@clisp.org>
52610
52611         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
52612
52613 2006-09-18  Bruno Haible  <bruno@clisp.org>
52614
52615         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
52616         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
52617         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
52618         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
52619         * m4/gettext.m4: Require autoconf >= 2.52.
52620         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
52621         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
52622         of gl_cv_header_inttypes_h.
52623
52624 2006-09-18  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/javaversion.c: Include configmake.h.
52627
52628 2006-09-18  Bruno Haible  <bruno@clisp.org>
52629
52630         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
52631         avoid that the while loops be executed in a subshell.
52632
52633 2006-09-18  Bruno Haible  <bruno@clisp.org>
52634
52635         * MODULES.html.sh (func_module): Break long lines.
52636         Suggested by Bruce Korb <bkorb@gnu.org>.
52637
52638 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52639
52640         Speed up by a factor of 1.12.
52641         * gnulib-tool (nl): New variable.
52642         (func_import): Rewrite include directive extraction to only read each
52643         directive once.
52644
52645 2006-09-17  Bruno Haible  <bruno@clisp.org>
52646
52647         * modules/javaversion (Makefile.am): Remove DEFS setting.
52648         (Depends-on): Add configmake, for PKGDATADIR definition.
52649
52650 2006-09-17  Bruno Haible  <bruno@clisp.org>
52651
52652         * gnulib-tool (func_create_testdir): Rewrite all files at once.
52653
52654 2006-09-17  Bruno Haible  <bruno@clisp.org>
52655
52656         * gnulib-tool (func_append): New function, stolen from libtool.m4.
52657         (func_modules_transitive_closure, func_modules_add_dummy,
52658         func_modules_to_filelist, func_import, func_create_testdir,
52659         func_create_megatestdir, ...): Use it wherever possible.
52660         Suggested by Ralf Wildenhues.
52661
52662 2006-09-16  Karl Berry  <karl@gnu.org>
52663
52664         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
52665         to avoid sectioning errors.
52666         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
52667         [ifinfo]: blank line after @center-ed titles.
52668         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
52669         Spell FSF address consistently with others.
52670         (These changes approved by rms.)
52671
52672 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52673
52674         Speed up by a factor of 1.61.
52675         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
52676         already checked module names again.
52677
52678 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52679
52680         Speed up by a factor of 1.13.
52681         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
52682         for new_files, and the input to func_add_or_update.
52683
52684 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52685
52686         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
52687         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
52688
52689 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52690
52691         * modules/mkancesdirs (Depends-on): Add fcntl.
52692         * modules/savewd: New file.
52693         * MODULES.html.sh (File system functions): Add savewd.
52694
52695         * modules/configmake (Makefile.am): Add support for the
52696         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
52697
52698 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52699
52700         * m4/savewd.m4: New file.
52701
52702 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
52703
52704         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
52705         (dirchownmod): New arg FD.  All callers changed.
52706         Use FD rather than opening the directory ourself, as opening is
52707         now the caller's responsibility.
52708         * lib/dirchownmod.h: Likewise.
52709         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
52710         hosts that require <sys/types.h> before <sys/stat.h>.  Include
52711         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
52712         (test_dir): Remove.
52713         (mkancesdirs): Return length of prefix of FILE that has already
52714         been made, or -2 if there is a child doing the work.  Redo
52715         algorithm so that it is O(N) rather than O(N**2).  Optimize away
52716         ".", and treat ".." specially since it might stray back into
52717         already-created areas.  Use a subprocess if necessary.  New arg
52718         WD; all users changed.  MAKE_DIR function should now return 1
52719         if it creates a directory that is not readable.  Return -2 if
52720         a child process is spun off.
52721         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
52722         Adjust signature to match code.
52723         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
52724         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
52725         all users changed.
52726         * lib/savewd.c, lib/savewd.h: New files.
52727
52728 2006-09-15  Jim Meyering  <jim@meyering.net>
52729
52730         * modules/rename-dest-slash: New module.
52731         * MODULES.html.sh (posix_compat): Add it here.
52732
52733         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
52734
52735 2006-09-15  Jim Meyering  <jim@meyering.net>
52736
52737         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
52738         file.
52739
52740         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
52741
52742 2006-09-15  Jim Meyering  <jim@meyering.net>
52743
52744         * lib/rename-dest-slash.c (has_trailing_slash): Use
52745         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
52746         (rpl_rename_dest_slash): Perform the cheaper trailing slash
52747         test before testing whether SRC is a directory.
52748         Suggestions from Bruno Haible.
52749
52750         Avoid a warning about an unused variable.
52751         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
52752         into the #ifdef block where it's used.
52753
52754         * lib/rename-dest-slash.c: New file.
52755
52756 2006-09-14  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/allocsa.c: Include <config.h> unconditionally.
52759         * lib/asnprintf.c: Likewise.
52760         * lib/asprintf.c: Likewise.
52761         * lib/c-strcasecmp.c: Likewise.
52762         * lib/c-strcasestr.c: Likewise.
52763         * lib/c-strncasecmp.c: Likewise.
52764         * lib/c-strstr.c: Likewise.
52765         * lib/classpath.c: Likewise.
52766         * lib/clean-temp.c: Likewise.
52767         * lib/concatpath.c: Likewise.
52768         * lib/copy-file.c: Likewise.
52769         * lib/csharpcomp.c: Likewise.
52770         * lib/csharpexec.c: Likewise.
52771         * lib/execute.c: Likewise.
52772         * lib/fatal-signal.c: Likewise.
52773         * lib/findprog.c: Likewise.
52774         * lib/fwriteerror.c: Likewise.
52775         * lib/gl_array_list.c: Likewise.
52776         * lib/gl_array_oset.c: Likewise.
52777         * lib/gl_avltree_list.c: Likewise.
52778         * lib/gl_avltree_oset.c: Likewise.
52779         * lib/gl_avltreehash_list.c: Likewise.
52780         * lib/gl_carray_list.c: Likewise.
52781         * lib/gl_linked_list.c: Likewise.
52782         * lib/gl_linkedhash_list.c: Likewise.
52783         * lib/gl_list.c: Likewise.
52784         * lib/gl_oset.c: Likewise.
52785         * lib/gl_rbtree_list.c: Likewise.
52786         * lib/gl_rbtree_oset.c: Likewise.
52787         * lib/gl_rbtreehash_list.c: Likewise.
52788         * lib/imaxabs.c: Likewise.
52789         * lib/imaxdiv.c: Likewise.
52790         * lib/javacomp.c: Likewise.
52791         * lib/javaexec.c: Likewise.
52792         * lib/javaversion.c: Likewise.
52793         * lib/linebreak.c: Likewise.
52794         * lib/localcharset.c: Likewise.
52795         * lib/lock.c: Likewise.
52796         * lib/mbchar.c: Likewise.
52797         * lib/mbswidth.c: Likewise.
52798         * lib/mkdtemp.c: Likewise.
52799         * lib/pipe.c: Likewise.
52800         * lib/printf-args.c: Likewise.
52801         * lib/printf-parse.c: Likewise.
52802         * lib/progname.c: Likewise.
52803         * lib/progreloc.c: Likewise.
52804         * lib/readlink.c: Likewise.
52805         * lib/sh-quote.c: Likewise.
52806         * lib/stpcpy.c: Likewise.
52807         * lib/stpncpy.c: Likewise.
52808         * lib/strcasecmp.c: Likewise.
52809         * lib/strcasestr.c: Likewise.
52810         * lib/strcspn.c: Likewise.
52811         * lib/striconv.c: Likewise.
52812         * lib/strncasecmp.c: Likewise.
52813         * lib/strnlen1.c: Likewise.
52814         * lib/strstr.c: Likewise.
52815         * lib/strtok_r.c: Likewise.
52816         * lib/tls.c: Likewise.
52817         * lib/tmpdir.c: Likewise.
52818         * lib/unicodeio.c: Likewise.
52819         * lib/unsetenv.c: Likewise.
52820         * lib/vasnprintf.c: Likewise.
52821         * lib/vasprintf.c: Likewise.
52822         * lib/wait-process.c: Likewise.
52823         * lib/xallocsa.c: Likewise.
52824         * lib/xsetenv.c: Likewise.
52825         * lib/xstriconv.c: Likewise.
52826
52827 2006-09-13  Simon Josefsson  <jas@extundo.com>
52828
52829         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
52830         that internally, suggested by Ralf Wildenhues
52831         <Ralf.Wildenhues@gmx.de>.
52832
52833 2006-09-13  Simon Josefsson  <jas@extundo.com>
52834
52835         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
52836         @LIBOBJS@.
52837         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52838
52839 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * lib/_fpending.c: Include <config.h> unconditionally, since we no
52842         longer worry about uses that don't define HAVE_CONFIG_H.
52843         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
52844         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
52845         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
52846         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
52847         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
52848         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
52849         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
52850         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
52851         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
52852         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
52853         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
52854         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
52855         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
52856         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
52857         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
52858         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
52859         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
52860         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
52861         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
52862         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
52863         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
52864         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
52865         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
52866         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
52867         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
52868         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
52869         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
52870         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
52871         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
52872         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
52873         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
52874         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
52875         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
52876         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
52877         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
52878         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
52879         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
52880         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
52881         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
52882         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
52883         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
52884         Likewise.
52885
52886 2006-09-13  Eric Blake  <ebb9@byu.net>
52887
52888         * lib/getopt.c: Fix typo in last commit.
52889
52890 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52891
52892         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
52893         dgettext.
52894
52895 2006-09-12  Jim Meyering  <jim@meyering.net>
52896
52897         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
52898         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
52899         Reported by Nelson H. F. Beebe.
52900
52901 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52902
52903         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
52904         program_invocation_name and program_invocation_short_name are
52905         initialized.
52906         * lib/argp-namefrob.h: Move declarations of program_invocation_name
52907         and program_invocation_short_name to argp.h, so they are visible
52908         to user programs.
52909         * lib/argp.h: Likewise
52910
52911 2006-09-10  Bruno Haible  <bruno@clisp.org>
52912
52913         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52914         m4/inttypes_h.m4, m4/uintmax_t.m4.
52915
52916 2006-09-10  Bruno Haible  <bruno@clisp.org>
52917
52918         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
52919         gl_AC_TYPE_UINTMAX_T.
52920
52921 2006-09-10  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
52924
52925 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52926
52927         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
52928         convention.  Text proposed by Bruno Haible.
52929         (struct argp_option): Document the use of N_() wrappers.
52930
52931         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
52932         '\v', and translate the two parts separately, instead of feeding
52933         the whole string to gettext.  This allows to exclude
52934         '\v' from the strings visible to the translator by writing doc
52935         strings as N_("..") "\v" N_("..").
52936
52937 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         * config/srclist.txt: Undo latest change; the bug was fixed.
52940
52941 2006-09-09  Bruno Haible  <bruno@clisp.org>
52942
52943         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
52944         assignments if building a library without libtool.
52945         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
52946         in func_emit_lib_Makefile_am.
52947         (func_import): When building a static library libfoo.a, arrange to
52948         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
52949         (func_create_testdir): Likewise.
52950         * modules/gc (configure.ac, Makefile.am): If building statically,
52951         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
52952         * modules/iconvme (configure.ac, Makefile.am): Likewise.
52953         * modules/striconv (configure.ac, Makefile.am): Likewise.
52954         Based on a suggestion by Ralf Wildenhues.
52955
52956 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
52959         Check for unistd.h too, since Autoconf doesn't assume POSIX.
52960         Also:
52961
52962         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52963         Add year_2050_test to catch glibc bug 2821
52964         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52965
52966         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52967         Prefer #ifdef to #if.
52968
52969         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
52970         Return from 'main' instead of calling 'exit'.
52971
52972 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52973
52974         * lib/mktime.c (guess_time_tm): Fix bug where mktime
52975         returned the maximum time_t value rather than (time_t) -1.
52976         Problem originally reported by William Bardwell
52977         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
52978
52979         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52980         Moved to here ...
52981         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
52982         ... from here.
52983
52984 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
52987         2821 is fixed.
52988
52989 2006-09-08  Jim Meyering  <jim@meyering.net>
52990
52991         Don't make generated files read-only.  That would bother too many
52992         people.  However, do retain the ability to work when targets are
52993         read-only: remove the destination and temporary files before writing
52994         them (when generated via sed or echo), or by using the -f option for
52995         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
52996         * modules/alloca-opt, modules/argz, modules/arpa_inet:
52997         * modules/byteswap, modules/configmake, modules/fcntl:
52998         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
52999         * modules/localcharset, modules/netinet_in, modules/poll:
53000         * modules/stdbool, modules/stdint, modules/sys_select:
53001         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53002
53003 2006-09-08  Jim Meyering  <jim@meyering.net>
53004
53005         Avoid new build failure on FreeBSD 6.0.
53006         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
53007         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
53008         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
53009
53010 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53011
53012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
53013
53014 2006-09-07  Jim Meyering  <jim@meyering.net>
53015
53016         Fix global typo in last change: use chmod u-w, not chmod u-x.
53017         Spotted by Paul Eggert and Bruce Korb.
53018         * modules/alloca-opt, modules/argz, modules/arpa_inet:
53019         * modules/byteswap, modules/configmake, modules/fcntl:
53020         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
53021         * modules/localcharset, modules/netinet_in, modules/poll:
53022         * modules/stdbool, modules/stdint, modules/sys_select:
53023         * modules/sys_socket, modules/sys_stat, modules/sysexits:
53024
53025 2006-09-06  Jim Meyering  <jim@meyering.net>
53026
53027         Make generated files be read-only.
53028         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
53029         Ensure that each generated file is now read-only.
53030         * modules/argz: Likewise.
53031         * modules/arpa_inet: Likewise.
53032         * modules/byteswap: Likewise.
53033         * modules/configmake: Likewise.
53034         * modules/fcntl: Likewise.
53035         * modules/fnmatch: Likewise.
53036         * modules/getopt: Likewise.
53037         * modules/glob: Likewise.
53038         * modules/inttypes: Likewise.
53039         * modules/netinet_in: Likewise.
53040         * modules/poll: Likewise.
53041         * modules/stdbool: Likewise.
53042         * modules/stdint: Likewise.
53043         * modules/sys_select: Likewise.
53044         * modules/sys_socket: Likewise.
53045         * modules/sys_stat: Likewise.
53046         * modules/sysexits: Likewise.
53047         * modules/localcharset: Same as above, but continue using temporary
53048         file named "t-$@" (why different?) rather than the "$@-t" used
53049         everywhere else.
53050
53051         * modules/sysexits (Makefile.am): Replace literal occurrences
53052         of "sysexit.h" more readable, and more consistent, "$@".
53053
53054 2006-09-06  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/striconv: New file.
53057         * modules/xstriconv: New file.
53058         * MODULES.html.sh (Internationalization functions): Add striconv,
53059         xstriconv.
53060
53061 2006-09-06  Bruno Haible  <bruno@clisp.org>
53062
53063         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
53064         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
53065         not using libtool correctly.
53066
53067 2006-09-06  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/striconv.h: New file.
53070         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
53071         iconvstring.c.
53072         * lib/xstriconv.h: New file.
53073         * lib/xstriconv.c: New file.
53074
53075 2006-09-06  Bruno Haible  <bruno@clisp.org>
53076
53077         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
53078         lib_..._LDFLAGS.
53079
53080 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53081
53082         * lib/argz_.h: Sync from Libtool.
53083
53084         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
53085                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53086
53087         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
53088
53089 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53090
53091         * modules/trim: New file.
53092
53093 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
53094
53095         * lib/trim.h: New file.
53096         * lib/trim.c: New file.
53097
53098 2006-09-05  Bruno Haible  <bruno@clisp.org>
53099
53100         * MODULES.html.sh (String handling): Add trim.
53101
53102 2006-09-04  Karl Berry  <karl@gnu.org>
53103
53104         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
53105         until next release.
53106
53107 2006-09-03  Bruno Haible  <bruno@clisp.org>
53108
53109         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
53110         correctly.
53111
53112 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53113
53114         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
53115         not gl_GETLOADAVG.  Omit unneeded semicolons.
53116         Problems reported by Ralf Wildenhues in
53117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53118         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
53119         at the end, which is the usual gnulib style.
53120
53121         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
53122         of doing all the work ourselves.
53123         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
53124         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
53125
53126 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53127
53128         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
53129         Problem reported by Ralf Wildenhues in
53130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
53131
53132         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
53133         HAVE_STRUCT_STATFS_F_FSTYPENAME.
53134
53135 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
53138         yesterday's patch by changing test -n to test -z.
53139
53140 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53141
53142         * modules/getloadavg (Files): Add m4/getloadavg.m4.
53143         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
53144         the former is now obsolescent.
53145
53146         * modules/chdir-long (Depends-on): Add fcntl.
53147
53148 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
53151         obsolescent, and programs should use gnulib instead.
53152         * m4/getloadavg.m4: New file, with contents taken from Autoconf
53153         but with prefixes changed.
53154
53155 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
53158         or stdbool.h, because they might not exist while configuring.
53159
53160         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
53161         Don't include unistd.h or limits.h; not needed, since chdir-long.h
53162         does that for us.
53163         (O_DIRECTORY): Remove.
53164
53165 2006-08-31  Eric Blake  <ebb9@byu.net>
53166
53167         * gnulib-tool: Don't let emacs change spaces to TAB.
53168
53169 2006-08-31  Bruno Haible  <bruno@clisp.org>
53170
53171         * gnulib-tool: When calling func_import more than once, do it in a
53172         subshell.
53173         Reported by Eric Blake <ebb9@byu.net>.
53174
53175 2006-08-31  Bruno Haible  <bruno@clisp.org>
53176
53177         * gnulib-tool (nl): Remove variable.
53178         (sed_transform_lib_file): Use more robust test for config-h module.
53179         (func_import): Fix typo in 2006-08-25 patch.
53180
53181 2006-08-31  Bruno Haible  <bruno@clisp.org>
53182
53183         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
53184         specified, augment Makefile.am variables instead of assigning them.
53185
53186 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53187
53188         Work around a bug in both the Linux and SunOS 64-bit kernels:
53189         nanosleep mishandles sleeps for longer than 2**31 seconds.
53190         Problem reported by Frank v Waveren in
53191         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
53193         Check for nanosleep bug.
53194         (LIB_NANOSLEEP): Append clock_gettime library if needed.
53195
53196 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53197
53198         Work around a bug in both the Linux and SunOS 64-bit kernels:
53199         nanosleep mishandles sleeps for longer than 2**31 seconds.
53200         Problem reported by Frank v Waveren in
53201         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
53202         * lib/nanosleep.c (BILLION): New constant.
53203         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
53204         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
53205         implementation.
53206
53207 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53208
53209         * modules/nanosleep (Depends-on): Add gettime.
53210
53211 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
53212         and Simon Josefsson  <jas@extundo.com>
53213         and Oskar Liljeblad  <oskar@osk.mine.nu>
53214
53215         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
53216         * gnulib-tool (func_import): New license type 'unmodifiable license
53217         text'.
53218         * modules/fdl: Use it.  Longer description.
53219         * module/gpl, module/lgpl: New files.
53220
53221 2006-08-30  Jim Meyering  <jim@meyering.net>
53222
53223         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
53224         shadowing the parameter.
53225
53226 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53227
53228         Sync from Libtool:
53229
53230         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53231
53232         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
53233         sharing with gnulib.  Report by Eric Blake.
53234
53235 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * modules/isapipe: New file.
53238         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
53239
53240 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         * modules/configmake (Makefile.am): Add a comment, and omit
53243         the CONFIGMAKE_ prefix from generated macro names.  Suggested
53244         by Bruno Haible.
53245
53246 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53247
53248         * m4/isapipe.m4: New file.
53249
53250 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
53251
53252         * lib/isapipe.c, lib/isapipe.h: New files.
53253
53254 2006-08-29  Jim Meyering  <jim@meyering.net>
53255
53256         * modules/configmake (Makefile.am): Make configmake.h depend on
53257         Makefile.  Otherwise, a stale configmake.h could hang around.
53258
53259 2006-08-29  Eric Blake  <ebb9@byu.net>
53260
53261         * lib/error.c (error_at_line, print_errno_message): Match libc, after
53262         resolution of upstream bug 3044.
53263
53264 2006-08-29  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/localcharset (Depends-on): Add configmake.
53267         (Makefile.am): Remove setting of LIBDIR through DEFS.
53268
53269 2006-08-29  Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
53272         defined.
53273
53274 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         * modules/fcntl: New file.
53277         * modules/chdir-safer (Depends-on): Add fcntl.
53278         * modules/fts: Likewise.
53279         * modules/mkdir-p: Likewise.
53280
53281         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
53282         This undoes the most recent change, since we're now addressing the
53283         problem in a different way.
53284
53285         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
53286         into output, since the output might be called Makefile.am even
53287         if $makefile_name is something different.
53288         (func_import): Use $makefile_am rather than
53289         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
53290         empty.
53291
53292         * modules/inttypes (Files): Add m4/inttypes-h.m4.
53293
53294 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
53297         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
53298         recent change to stdint.m4, since we're now addressing the problem in a
53299         different way.
53300
53301 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         * m4/fcntl_h.m4: New file.
53304
53305 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
53306
53307         * lib/fcntl_.h: New file.
53308         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
53309         the fcntl module.
53310         * lib/dirchownmod.c: Likewise.
53311         * lib/fts.c: Likewise.
53312
53313         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
53314         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
53315         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
53316         just before including <inttypes.h>, to avoid circular inclusion.
53317
53318 2006-08-28  Jim Meyering  <jim@meyering.net>
53319
53320         * doc/visibility.texi: Actually read and correct the grammar of the
53321         sentence affected by yesterday's change.
53322
53323 2006-08-28  Eric Blake  <ebb9@byu.net>
53324
53325         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
53326         needs wrapper.
53327
53328 2006-08-28  Eric Blake  <ebb9@byu.net>
53329
53330         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
53331
53332 2006-08-28  Eric Blake  <ebb9@byu.net>
53333
53334         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
53335
53336 2006-08-28  Bruno Haible  <bruno@clisp.org>
53337
53338         * modules/c-strstr: New file, from GNU gettext.
53339         * MODULES.html.sh (String handling): Add c-strstr.
53340
53341 2006-08-28  Bruno Haible  <bruno@clisp.org>
53342
53343         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
53344         macros.
53345         Reported by Eric Blake.
53346
53347 2006-08-28  Bruno Haible  <bruno@clisp.org>
53348
53349         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
53350         (VASNPRINTF): Return a string of length > INT_MAX without failing.
53351         * lib/vasprintf.c: Include errno.h, limits.h.
53352         (EOVERFLOW): New fallback definition.
53353         (vasprintf): Test here whether the string length is > INT_MAX.
53354         * lib/vsnprintf.c: Include errno.h, limits.h.
53355         (EOVERFLOW): New fallback definition.
53356         (vsnprintf): Fix bug when generated string was too long for the buffer.
53357         Test here whether the string length is > INT_MAX.
53358
53359 2006-08-28  Bruno Haible  <bruno@clisp.org>
53360
53361         * lib/inttypes_.h (SCNX*): Remove definitions.
53362         Reported by Eric Blake.
53363
53364 2006-08-28  Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/c-strstr.h: New file, from GNU gettext.
53367         * lib/c-strstr.c: New file, from GNU gettext.
53368
53369 2006-08-28  Bruno Haible  <bruno@clisp.org>
53370
53371         * gnulib-tool: Reorder some statements.
53372
53373 2006-08-28  Bruno Haible  <bruno@clisp.org>
53374
53375         * gnulib-tool: New option --makefile-name.
53376         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
53377         $makefile_name.
53378         (func_import): Write $makefile_name to the cache file, and read it from
53379         there unless explicitly specified. Use $makefile_name as file name
53380         instead of Makefile.am. Adjust the recommendations accordingly.
53381
53382 2006-08-28  Bruno Haible  <bruno@clisp.org>
53383
53384         * gnulib-tool (func_verify_module): Check against misapplying patch.
53385
53386 2006-08-28  Bruno Haible  <bruno@clisp.org>
53387
53388         * gnulib-tool (func_relativize, func_relconcat): New functions.
53389         Give an error if --local-dir is given with --update.
53390         Remove trailing slashes from $local_gnulib_dir.
53391         (func_import): Store the relativized $local_gnulib_dir in
53392         gnulib-cache.m4, and read it from there if not specified explicitly.
53393
53394 2006-08-28  Bruno Haible  <bruno@clisp.org>
53395
53396         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
53397         is the current directory. Respect also $local_gnulib_dir.
53398
53399 2006-08-28  Bruno Haible  <bruno@clisp.org>
53400             Simon Josefsson  <jas@extundo.com>
53401
53402         BeOS portability.
53403         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
53404
53405 2006-08-27  Jim Meyering  <jim@meyering.net>
53406
53407         * doc/visibility.texi: Remove duplicate word: "pointer".
53408
53409 2006-08-26  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
53412         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
53413         (Makefile.am): Create inttypes.h from inttypes_.h.
53414         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
53415
53416         * modules/imaxabs: New file.
53417
53418         * modules/imaxdiv: New file.
53419
53420 2006-08-26  Bruno Haible  <bruno@clisp.org>
53421
53422         * m4/inttypes.m4: New file.
53423         * m4/_inttypes_h.m4: Remove file.
53424         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
53425         PRI_MACROS_BROKEN.
53426         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
53427
53428         * m4/imaxabs.m4: New file.
53429
53430         * m4/imaxdiv.m4: New file.
53431
53432 2006-08-26  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/inttypes_.h: New file.
53435         * lib/inttypes.h: Remove file.
53436         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
53437
53438         * lib/imaxabs.c: New file.
53439
53440         * lib/imaxdiv.c: New file.
53441
53442 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53443
53444         New config-h module, so that "make" output needn't be cluttered
53445         by -DHAVE_CONFIG_H.
53446         * MODULES.html.sh (Support for building libraries and executables):
53447         Add config-h.
53448         * modules/config-h: New file.
53449         * gnulib-tool (nl, sed_transform_lib_file): New vars.
53450         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
53451         the config-h module is used.
53452
53453         New configmake module, so that "make" output needn't be cluttered
53454         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
53455         * MODULES.html.sh (Support for building libraries and executables):
53456         Add configmake.
53457         * modules/configmake: New file.
53458
53459 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53460
53461         * m4/config-h.m4: New file.
53462
53463 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * config/srclist.txt: Add elisp-comp.
53466
53467 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         * MODULES.html.sh (Support for building libraries and executables):
53470         Add elisp-comp.
53471         * build-aux/elisp-comp: New file.
53472         * modules/elisp-comp: New file.
53473
53474 2006-08-24  Bruno Haible  <bruno@clisp.org>
53475
53476         * gnulib-tool (func_create_testdir): Use non-default values of
53477         sourcebase and m4base.
53478
53479 2006-08-24  Bruno Haible  <bruno@clisp.org>
53480
53481         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
53482         HTML structure.
53483
53484 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
53485
53486         * modules/openat (Depends-on): Add lchown.
53487
53488 2006-08-23  Bruno Haible  <bruno@clisp.org>
53489
53490         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
53491         of gl_LOCK_EARLY instead of gl_LOCK.
53492
53493 2006-08-23  Bruno Haible  <bruno@clisp.org>
53494
53495         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
53496         on OSF/1 to no.
53497         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
53498
53499 2006-08-23  Bruno Haible  <bruno@clisp.org>
53500
53501         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
53502         as unusable.
53503
53504         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
53505         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
53506         (gl_LOCK): New macro.
53507
53508 2006-08-22  Simon Josefsson  <jas@extundo.com>
53509
53510         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
53511         to md5 module.
53512
53513 2006-08-22  Simon Josefsson  <jas@extundo.com>
53514
53515         * MODULES.html.sh: Add "Support for maintaining and release
53516         projects".
53517
53518         * build-aux/gnupload: New file, from coreutils.
53519
53520 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53521
53522         Avoid the need for AC_LIBSOURCES in m4 macros.
53523         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
53524         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
53525         * modules/check-version (EXTRA_DIST): Add check-version.h.
53526         * modules/crc (EXTRA_DIST): Add crc.h.
53527         * modules/des (EXTRA_DIST): Add des.h.
53528         * modules/gc (EXTRA_DIST): Add gc.h.
53529         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
53530         * modules/getline (EXTRA_DIST): Add getline.h.
53531         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
53532         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
53533         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
53534         * modules/md2 (EXTRA_DIST): Add md2.h.
53535         * modules/md4 (EXTRA_DIST): Add md4.h.
53536         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
53537         * modules/read-file (EXTRA_DIST): Add read-file.h.
53538         * modules/readline (EXTRA_DIST): Add readline.h.
53539         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
53540         rijndael-api-fst.h.
53541
53542 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53543
53544         * m4/rijndael.m4 (gl_ARCFOUR):
53545         * m4/arctwo.m4 (gl_ARCTWO):
53546         * m4/check-version.m4 (gl_CHECK_VERSION):
53547         * m4/crc.m4 (gl_CRC):
53548         * m4/des.m4 (gl_DES):
53549         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
53550         * m4/gc.m4 (gl_GC):
53551         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
53552         * m4/getline.m4 (gl_FUNC_GETLINE):
53553         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
53554         * m4/hmac-md5.m4 (gl_HMAC_MD5):
53555         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
53556         * m4/md2.m4 (gl_MD2):
53557         * m4/md4.m4 (gl_MD4):
53558         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
53559         * m4/read-file.m4 (gl_FUNC_READ_FILE):
53560         * m4/readline.m4 (gl_FUNC_READLINE):
53561         * m4/rijndael.m4 (gl_RIJNDAEL):
53562         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53563         to get the necessary .h files and whatnot.
53564
53565 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
53566
53567         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
53568         gnulib rather than the other way around.
53569         * config/srclistvars.sh (COREUTILS): Remove.
53570
53571 2006-08-22  Jim Meyering  <jim@meyering.net>
53572
53573         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
53574
53575         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
53576
53577 2006-08-22  Eric Blake  <ebb9@byu.net>
53578
53579         * modules/regexprops-generic: New file.
53580         * MODULES.html.sh (Support for building documentation): List it.
53581
53582 2006-08-22  Eric Blake  <ebb9@byu.net>
53583
53584         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
53585         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53586         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
53587         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
53588
53589 2006-08-22  Bruno Haible  <bruno@clisp.org>
53590
53591         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
53592         and lib_LTLIBRARIES like the other lib_* variables.
53593
53594 2006-08-22  Bruno Haible  <bruno@clisp.org>
53595
53596         * build-aux/x-to-1.in: New file, from GNU gettext.
53597
53598 2006-08-22  Bruno Haible  <bruno@clisp.org>
53599
53600         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
53601         <utmpx.h> exists.
53602
53603 2006-08-22  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
53606         <utmpx.h> exists.
53607
53608 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53609
53610         BeOS portability.
53611         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
53612         exist.
53613         Problem reported by Bruno Haible.
53614
53615 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53616
53617         Avoid the need for AC_LIBSOURCES in m4 macros.
53618         * modules/acl (EXTRA_DIST): Add acl.h.
53619         * modules/argmatch (Files): Add m4/argmatch.m4.
53620         (configure.ac): Add gl_ARGMATCH.
53621         (EXTRA_DIST): Renamed from lib_SOURCES, for
53622         consistency with the other modules.  Remove argmatch.c.
53623         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
53624         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
53625         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
53626         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
53627         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
53628         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
53629         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
53630         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
53631         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
53632         * modules/closeout (EXTRA_DIST): Add closeout.h.
53633         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
53634         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
53635         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
53636         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
53637         dirname.h; remove basename.c and stripslash.c.
53638         * modules/exclude (EXTRA_DIST): Add exclude.h.
53639         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
53640         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
53641         * modules/file-type (EXTRA_DIST): Add file-type.h.
53642         * modules/filemode (EXTRA_DIST): Add filemode.h.
53643         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
53644         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53645         * modules/fpending (EXTRA_DIST): Add __fpending.h.
53646         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
53647         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
53648         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
53649         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
53650         * modules/getdate (EXTRA_DIST): Add getdate.c.
53651         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
53652         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
53653         * modules/getpass (EXTRA_DIST): Add getpass.h.
53654         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
53655         * modules/group-member (EXTRA_DIST): Add group-member.h.
53656         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
53657         * modules/hash (EXTRA_DIST): Add hash.h.
53658         * modules/human (EXTRA_DIST): Add human.h.
53659         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
53660         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
53661         * modules/lchown (EXTRA_DIST): Add lchown.h.
53662         * modules/long-options (EXTRA_DIST): Add long-options.h.
53663         * modules/lstat (EXTRA_DIST): Add lstat.h.
53664         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
53665         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
53666         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
53667         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
53668         * modules/memxor (EXTRA_DIST): Add memxor.h.
53669         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
53670         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
53671         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
53672         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
53673         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
53674         * modules/physmem (EXTRA_DIST): Add physmem.h.
53675         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
53676         * modules/posixver (EXTRA_DIST): Add posixver.h.
53677         * modules/quote (EXTRA_DIST): Add quote.h.
53678         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
53679         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
53680         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
53681         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
53682         regex_internal.h regexec.c.
53683         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
53684         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
53685         * modules/same (EXTRA_DIST): Add same.h.
53686         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
53687         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
53688         * modules/savedir (EXTRA_DIST): Add savedir.h.
53689         * modules/sha1 (EXTRA_DIST): Add sha1.h.
53690         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
53691         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
53692         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
53693         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
53694         * modules/strdup (EXTRA_DIST): Add strdup.h.
53695         * modules/strftime (EXTRA_DIST): Add strftime.h.
53696         * modules/strndup (EXTRA_DIST): Add strndup.h.
53697         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
53698         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
53699         * modules/time_r (EXTRA_DIST): Add time_r.h.
53700         * modules/timespec (EXTRA_DIST): Add timespec.h.
53701         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
53702         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
53703         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
53704         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
53705         * modules/userspec (EXTRA_DIST): Add userspec.h.
53706         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
53707         * modules/utimens (EXTRA_DIST): Add utimens.h.
53708         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
53709         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
53710         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
53711         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
53712         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
53713         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
53714         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
53715         * modules/yesno (EXTRA_DIST): Add yesno.h.
53716
53717 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
53718
53719         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
53720
53721         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
53722         * m4/dev-ino.m4, same-inode.m4: Remove.
53723
53724         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
53725         * m4/acl.m4 (AC_FUNC_ACL):
53726         * m4/backupfile.m4 (gl_BACKUPFILE):
53727         * m4/c-strtod.m4 (gl_C99_STRTOLD):
53728         * m4/canon-host.m4 (gl_CANON_HOST):
53729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
53730         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
53731         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
53732         * m4/cloexec.m4 (gl_CLOEXEC):
53733         * m4/close-stream.m4 (gl_CLOSE_STREAM):
53734         * m4/closeout.m4 (gl_CLOSEOUT):
53735         * m4/dirfd.m4 (gl_FUNC_DIRFD):
53736         * m4/dirname.m4 (gl_DIRNAME):
53737         * m4/exclude.m4 (gl_EXCLUDE):
53738         * m4/exitfail.m4 (gl_EXITFAIL):
53739         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
53740         * m4/file-type.m4 (gl_FILE_TYPE):
53741         * m4/filemode.m4 (gl_FILEMODE):
53742         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
53743         * m4/fpending.m4 (gl_FUNC_FPENDING):
53744         * m4/fprintftime.m4 (gl_FPRINTFTIME):
53745         * m4/fts.m4 (gl_FUNC_FTS):
53746         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
53747         * m4/getdate.m4 (gl_GETDATE):
53748         * m4/gethrxtime.m4 (gl_GETHRXTIME):
53749         * m4/getpagesize.m4 (gl_GETPAGESIZE):
53750         * m4/getpass.m4 (gl_FUNC_GETPASS):
53751         * m4/gettime.m4 (gl_GETTIME):
53752         * m4/getugroups.m4 (gl_GETUGROUPS):
53753         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
53754         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
53755         * m4/hard-locale.m4 (gl_HARD_LOCALE):
53756         * m4/hash.m4 (gl_HASH):
53757         * m4/idcache.m4 (gl_IDCACHE):
53758         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
53759         * m4/lchown.m4 (gl_FUNC_LCHOWN):
53760         * m4/long-options.m4 (gl_LONG_OPTIONS):
53761         * m4/lstat.m4 (gl_FUNC_LSTAT):
53762         * m4/md5.m4 (gl_MD5):
53763         * m4/memcasecmp.m4 (gl_MEMCASECMP):
53764         * m4/memcoll.m4 (gl_MEMCOLL):
53765         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
53766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
53767         * m4/memxor.m4 (gl_MEMXOR):
53768         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
53769         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
53770         * m4/modechange.m4 (gl_MODECHANGE):
53771         * m4/mountlist.m4 (gl_MOUNTLIST):
53772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53773         * m4/openat.m4 (gl_FUNC_OPENAT):
53774         * m4/pathmax.m4 (gl_PATHMAX):
53775         * m4/physmem.m4 (gl_PHYSMEM):
53776         * m4/posixtm.m4 (gl_POSIXTM):
53777         * m4/posixver.m4 (gl_POSIXVER):
53778         * m4/quote.m4 (gl_QUOTE):
53779         * m4/quotearg.m4 (gl_QUOTEARG):
53780         * m4/readtokens.m4 (gl_READTOKENS):
53781         * m4/readutmp.m4 (gl_READUTMP):
53782         * m4/regex.m4 (gl_REGEX):
53783         * m4/safe-read.m4 (gl_SAFE_READ):
53784         * m4/safe-write.m4 (gl_SAFE_WRITE):
53785         * m4/same.m4 (gl_SAME):
53786         * m4/save-cwd.m4 (gl_SAVE_CWD):
53787         * m4/savedir.m4 (gl_SAVEDIR):
53788         * m4/settime.m4 (gl_SETTIME):
53789         * m4/sha1.m4 (gl_SHA1):
53790         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
53791         * m4/stat-macros.m4 (gl_STAT_MACROS):
53792         * m4/stat-time.m4 (gl_STAT_TIME):
53793         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
53794         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
53795         * m4/strdup.m4 (gl_FUNC_STRDUP):
53796         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
53797         * m4/strndup.m4 (gl_FUNC_STRNDUP):
53798         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
53799         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
53800         * m4/time_r.m4 (gl_TIME_R):
53801         * m4/timespec.m4 (gl_TIMESPEC):
53802         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
53803         * m4/unlinkdir.m4 (gl_UNLINKDIR):
53804         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
53805         * m4/userspec.m4 (gl_USERSPEC):
53806         * m4/utimecmp.m4 (gl_UTIMECMP):
53807         * m4/utimens.m4 (gl_UTIMENS):
53808         * m4/xalloc.m4 (gl_XALLOC):
53809         * m4/xgetcwd.m4 (gl_XGETCWD):
53810         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
53811         * m4/xreadlink.m4 (gl_XREADLINK):
53812         * m4/xstrtod.m4 (gl_XSTRTOD):
53813         * m4/yesno.m4 (gl_YESNO):
53814         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
53815         to get the necessary .h files and whatnot.
53816
53817 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
53818             Bruno Haible  <bruno@clisp.org>
53819
53820         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
53821         /bin/sh understanding of '!' conditional negation.
53822
53823 2006-08-21  Jim Meyering  <jim@meyering.net>
53824
53825         * modules/openat (Depends-on): Really alphabetize.
53826
53827         * modules/acl (Depends-on): Add error and quote.
53828
53829         * check-module (find_included_lib_files): Add at-func.c to the
53830         ok-to-include-more-than-once white list.
53831
53832         * modules/openat (Depends-on): Add lstat.  Alphabetize.
53833
53834 2006-08-21  Bruno Haible  <bruno@clisp.org>
53835
53836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53837         Emit a pkgdata_DATA variable only if some snippets add contents to it.
53838         Reported by Martin Lambers <marlam@marlam.de>.
53839
53840 2006-08-21  Bruno Haible  <bruno@clisp.org>
53841
53842         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
53843         specify an installation location, don't emit a noinst_LIBRARIES or
53844         noinst_LTLIBRARIES assignment.
53845
53846 2006-08-21  Bruno Haible  <bruno@clisp.org>
53847
53848         BeOS portability.
53849         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
53850         BeOS has mbrtowc() but no <wctype.h>.
53851
53852 2006-08-21  Bruno Haible  <bruno@clisp.org>
53853
53854         BeOS portability.
53855         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
53856         exist.
53857
53858 2006-08-21  Bruno Haible  <bruno@clisp.org>
53859
53860         BeOS portability.
53861         * lib/mbchar.h: Include <wctype.h> only if it exists.
53862
53863 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53864
53865         Remove files that are no longer needed by their respective modules.
53866         * m4/obstack.m4: Remove.
53867         * m4/strerror_r.m4: Remove.
53868         * m4/uint32_t.m4: Remove.
53869         * m4/uintptr_t.m4: Remove.
53870         * m4/ullong_max.m4: Remove.
53871         * m4/xstrtoimax.m4: Remove.
53872         * m4/xstrtoumax.m4: Remove.
53873
53874         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
53875         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
53876         dependencies now capture this.
53877
53878         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
53879         Do not use AC_LIBSOURCES, since gnulib modules now do this.
53880         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
53881         * m4/human.m4 (gl_HUMAN): Likewise.
53882         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
53883         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
53884
53885         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
53886
53887         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
53888         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
53889         stdint.
53890         * m4/human.m4 (gl_HUMAN): Likewise.
53891         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
53892         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
53893         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53894         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53895         * m4/xstrtol (gl_XSTRTOL): Likewise.
53896
53897         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
53898         AC_TYPE_LONG_LONG_INT.
53899         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
53900         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
53901         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
53902         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
53903
53904         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
53905         on stdbool.
53906
53907         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
53908         (gl_PREREQ_XSTRTOUL): Remove.
53909
53910         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
53911
53912         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
53913         mode.
53914
53915 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53916
53917         Add and change modules to make it easier for coreutils to use
53918         gnulib-tool.
53919         * modules/backupfile (Files): Remove m4/d-ino.m4.
53920         (Depends-on): Add d-ino.
53921         * modules/cycle-check (Depends-on): Add stdint.
53922         (lib_SOURCES): Add cycle-check.h.
53923         * modules/d-ino: New module.
53924         * modules/d-type: New module.
53925         * modules/error (Files): Remove m4/strerror_r.m4.
53926         * modules/filemode (Files): Add m4/st_dm_mode.m4.
53927         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
53928         m4/inttypes_h.m4, m4/uintmax_t.m4.
53929         (Depends-on): Add stdint.
53930         (lib_SOURCES): Add fsusage.h.
53931         * modules/getcwd (Files): Remove d-ino.m4.
53932         (Depends-on): Add d-ino.
53933         * modules/getndelim2 (Depends-on): Add stdint.
53934         * modules/glob (Files): Remove m4/d-type.m4.
53935         (Depends-on): Add d-type.
53936         * modules/host-os: New module.
53937         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
53938         m4/inttypes_h.m4, m4/uintmax_t.m4.
53939         * Depends-on: Add stdint.
53940         (lib_SOURCES): Add human.h.
53941         * modules/inttostr (Files): Remove m4/intmax_t.m4,
53942         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
53943         m4/uintmax_t.m4, m4/ulonglong.m4.
53944         (Depends-on): Add stdint.
53945         (EXTRA_DIST): Add inttostr.h.
53946         * modules/lchmod: New module.
53947         * modules/link-follow: New module.
53948         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
53949         (Depends-on): Add lchmod.
53950         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
53951         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
53952         (Depends-on): Add stdint.
53953         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
53954         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
53955         (Depends-on): Add stdint.
53956         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
53957         * modules/perl: New module.
53958         * modules/regex (Depends-on): Add stdint.
53959         * modules/rmdir-errno: New module.
53960         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53961         m4/intmax_t.m4.
53962         (Depends-on): Add stdint.
53963         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
53964         m4/uintmax_t.m4.
53965         (Depends-on): Add stdint.
53966         * modules/unlink-busy: New module.
53967         * modules/utimecmp (Depends-on): Add stdint.
53968         * modules/uptime: New module.
53969         * modules/winsz-ioctl: New module.
53970         * modules/winsz-termios: New module.
53971         * modules/xnanosleep (Depends-on): Add nanosleep.
53972         * modules/ullong_max: Remove.
53973         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
53974         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
53975         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
53976         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
53977         (Depends-on): Add inttypes.
53978         (lib_SOURCES): Add xstrtol.h.
53979         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
53980         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
53981         * MODULES.html.sh: Move 'assert' into the assert section.
53982         Move 'dummy' into the linking section.
53983         Remove ullong_max.
53984         Add section for compatibility checks for POSIX:2001 functions,
53985         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
53986         winsz-ioctl, and winsz-termios into it.
53987         Add lchmod.
53988         Add top-level Misc section and put host-os, perl, and uptime
53989         into it.
53990
53991 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
53992
53993         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
53994         now assume the stdint module.  Do not include inttypes.h.
53995         * lib/fsusage.h: Likewise.
53996         * lib/getndelim2.c: Likewise.
53997         * lib/human.h: Likewise.
53998         * lib/inttostr.h: Likewise.
53999         * lib/obstack.c: Likewise.
54000         * lib/regex_internal.h: Likewise.
54001         * lib/tempname.c: Likewise.
54002         * lib/utimecmp.c: Likewise.
54003         * lib/xstrtol.h: Likewise.
54004
54005         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
54006
54007         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
54008         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
54009         * lib/xtime.h: Likewise.
54010
54011 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54012
54013         * modules/openat (Files): Add lib/fchmodat.c.
54014         Fixes problem reported by Jay Youngman.
54015
54016 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54017
54018         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
54019         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
54020
54021 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
54022             Bruno Haible  <bruno@clisp.org>
54023
54024         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
54025         and is a script that invokes bison. Tighten the code. Add comments.
54026
54027 2006-08-18  Jim Meyering  <jim@meyering.net>
54028
54029         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
54030         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
54031         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
54032         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
54033
54034 2006-08-18  Bruno Haible  <bruno@clisp.org>
54035
54036         * modules/bison-i18n: New file.
54037         * MODULES.html.sh (Internationalization functions): Add it.
54038
54039 2006-08-18  Bruno Haible  <bruno@clisp.org>
54040
54041         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
54042         sys/statvfs.h. When getmntinfo was found, check its declaration and
54043         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
54044
54045 2006-08-18  Bruno Haible  <bruno@clisp.org>
54046
54047         * m4/bison-i18n.m4: New file, from bison.
54048
54049 2006-08-18  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
54052         (ME_DUMMY): Treat "kernfs" as a dummy.
54053         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
54054
54055 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         Update from coreutils.
54058
54059         2006-08-15  Jim Meyering  <jim@meyering.net>
54060
54061         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
54062
54063         2006-01-17  Jim Meyering  <jim@meyering.net>
54064
54065         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
54066
54067         2006-01-11  Jim Meyering  <jim@meyering.net>
54068
54069         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
54070         Check for the lchmod function.
54071
54072 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54073
54074         Update from coreutils.
54075
54076         * lib/__fpending.h: Add copyright notice.
54077         * lib/fprintftime.h: Likewise.
54078         * lib/savedir.c: Use (C) in copyright notice.
54079         * lib/savedir.h: Likewise.
54080
54081         2006-08-15  Jim Meyering  <jim@meyering.net>
54082
54083         * lib/at-func.c: New file, with the logic of all emulated at-functions.
54084         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
54085         in support of the EXPECTED_ERRNO macro.
54086         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
54087         definitions.  Instead, define the appropriate symbols and include
54088         "at-func.c".
54089         * lib/mkdirat.c (mkdirat): Likewise.
54090         * lib/fchmodat.c (fchmodat): Likewise.
54091         (ENOSYS): Remove definition.
54092         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
54093         it.  Don't include "unistd--.h" -- it wasn't ever used.
54094
54095         2006-01-17  Jim Meyering  <jim@meyering.net>
54096
54097         Rewrite fts.c not to change the current working directory,
54098         by using openat, fstatat, fdopendir, etc..
54099
54100         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
54101         (HAVE_OPENAT_SUPPORT): Define.
54102         [_LIBC] (fchdir): Don't undef or define; no longer used.
54103         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
54104         Now, this `function' always succeeds, and consumes its file descriptor
54105         parameter -- so callers must not close such FDs.  Update callers.
54106         (diropen_fd, opendirat, cwd_advance_fd): New functions.
54107         (diropen): Add parameter, SP.  Adjust all callers.
54108         Implement using diropen_fd, rather than open.
54109         (fts_open): Initialize new member, fts_cwd_fd.
54110         Remove fts_rft-setting code.
54111         (fts_close): Close fts_cwd_fd, if necessary.
54112         (__opendir2): Define in terms of opendir or opendirat,
54113         depending on whether the FST_NOCHDIR flag is set.
54114         (fts_build): Since fts_safe_changedir consumes its FD, and since
54115         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
54116         and close the dup'd file descriptor upon failure.
54117         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
54118         (fts_safe_changedir): Tweak semantics to reflect that this function
54119         now calls cwd_advance_fd and hence consumes its FD argument.
54120         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
54121         [struct FTS] (fts_rft): Remove now-unused member.
54122         [struct FTS] (fts_cycle.state): Improve comment.
54123
54124         * lib/openat.c (openat_needs_fchdir): New function.
54125         * lib/openat.h (openat_needs_fchdir): Declare it.
54126
54127 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
54130         Problem and fix reported by Pádraig Brady in
54131         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
54132
54133 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54134
54135         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
54136
54137 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54138
54139         * lib/memcoll.c (memcoll): Optimize for the common case where the
54140         arguments are bytewise equal.
54141
54142 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * doc/regexprops-generic.texi: Add a copyright notice.
54145
54146 2006-08-15  Bruno Haible  <bruno@clisp.org>
54147
54148         * modules/tmpdir (License): Change to LGPL.
54149
54150 2006-08-15  Bruno Haible  <bruno@clisp.org>
54151
54152         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
54153         module.
54154
54155 2006-08-14  Simon Josefsson  <jas@extundo.com>
54156
54157         * config/srclist.txt: Add gnupload.
54158
54159 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         Change copyright notice from LGPL 2 to GPL 2, since that's the
54162         standard form used in the gnulib repository.
54163         * tests/test-lock.c: Likewise.
54164         * tests/test-stdint.c: Likewise.
54165         * tests/test-tls.c: Likewise.
54166
54167         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
54168         prelude-manager.  User shorter URLs for GNU projects, without '?'.
54169         Add copyright notice.
54170
54171         * check-module: Add copyright notice.  Output a copyright
54172         notice if "--version" is specified.
54173         * modules/COPYING: New file.
54174         * tests/test-getaddrinfo.c: Add copyright notice.
54175         * tests/test-verify.c: Likewise.
54176
54177 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54178
54179         Change copyright notice from LGPL 2 to GPL 2, since that's the
54180         standard form used in the gnulib repository.
54181         * lib/lock.c: LGPL -> GPL.
54182         * lib/lock.h: Likewise.
54183         * lib/strnlen1.c: Likewise.
54184         * lib/strnlen1.h: Likewise.
54185         * lib/tls.c: Likewise.
54186         * lib/tls.h: Likewise.
54187         * lib/tmpdir.c: Likewise.
54188
54189         * lib/TODO: Remove; this belongs only in coreutils.
54190
54191 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54192
54193         Add copyright notices to long-enough files that lack them, since
54194         otherwise the files aren't clearly free.  Use the same notice that
54195         getdate.texi already uses.
54196         * doc/alloca-opt.texi: Add copyright notice.
54197         * doc/alloca.texi: Likewise.
54198         * doc/ctime.texi: Likewise.
54199         * doc/functions.texi: Likewise.
54200         * doc/gcd.texi: Likewise.
54201         * doc/gnulib-tool.texi: Likewise.
54202         * doc/inet_ntoa.texi: Likewise.
54203         * doc/visibility.texi: Likewise.
54204
54205         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
54206         * doc/quote.texi: Add copyright notice.
54207
54208         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
54209         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
54210         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
54211         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
54212         is now obsolete, and give a pointer to the Sun list.
54213         Add copyright notice.
54214
54215 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54216
54217         * config/srclistvars.sh: Add copyright notice.
54218
54219 2006-08-14  Eric Blake  <ebb9@byu.net>
54220
54221         Import the following change from libc:
54222
54223         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
54224
54225         Upstream bug 2997.
54226         * lib/misc/error.c: Add space between program name and message if file
54227         name is missing.
54228
54229 2006-08-12  Karl Berry  <karl@gnu.org>
54230
54231         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
54232         remove, these originate in gnulib now.
54233
54234 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54235
54236         * doc/Makefile (standards.info standards.html standards.dvi):
54237         Also depend on make-stds.texi.
54238
54239 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
54242         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
54243
54244         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
54245         in wchar_t.  Problem reported by Eric Blake.
54246
54247         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
54248         LEN is smaller than SIZE.  Suggested by Bruno Haible.
54249         Also, help the compiler to keep LEN in a register.
54250
54251 2006-08-11  Eric Blake  <ebb9@byu.net>
54252
54253         * users.txt: Sort.  Add tar.
54254
54255 2006-08-11  Bruno Haible  <bruno@clisp.org>
54256
54257         * users.txt: New file.
54258
54259 2006-08-11  Bruno Haible  <bruno@clisp.org>
54260
54261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
54262         before <wchar.h>. Needed for OSF/1 and BSD/OS.
54263
54264 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54265
54266         * modules/snprintf (Depends-on): Remove minmax.
54267         (Maintainer): Add self and Bruno.
54268
54269 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54270
54271         * lib/.cppi-disable: Add snprintf.h, socket_.h.
54272         * lib/snprintf.c: Include <errno.h> and <limits.h>.
54273         (EOVERFLOW): Define if the system does not.
54274         Do not include "minmax.h"; it wasn't used.
54275         (snprintf): Don't assume size_t promotes to an unsigned type.
54276         Fix bug when generated string was too long for the buffer: the
54277         buffer's contents are supposed to be the initial prefix of the
54278         output.  Don't assume vasnprintf returns EOVERFLOW if the size
54279         exceeds INT_MAX; do the check ourselves.
54280
54281         Import the following changes from libc:
54282
54283         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
54284
54285         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
54286         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
54287         set wc to the byte which couldn't be converted.
54288         (re_string_reconstruct): Don't clear valid_raw_len before calling
54289         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
54290         tip_context using re_string_context_at.
54291
54292         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
54293
54294         * lib/posix/regex.h: g++ still cannot handled [restrict].
54295
54296         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
54297
54298         * lib/posix/regex.h: Remove special handling for VMS.
54299
54300 2006-08-10  Jim Meyering  <jim@meyering.net>
54301
54302         * modules/same-inode: New module.
54303         * modules/dev-ino: New module.
54304         * modules/cycle-check: Depend on these modules, rather than simply
54305         including their .h files.
54306         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
54307         required via m4/cycle-check.m4.
54308         * modules/same: Depend on new same-inode module, rather than
54309         including same-inode.h.
54310         * modules/chdir-safer: New file.
54311
54312         * modules/chown (Depends-on): Add stat-macros.
54313
54314 2006-08-10  Jim Meyering  <jim@meyering.net>
54315
54316         * m4/cycle-check.m4: New file.
54317         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
54318         * m4/dev-ino.m4, m4/same-inode.m4: New files.
54319
54320 2006-08-10  Eric Blake  <ebb9@byu.net>
54321
54322         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
54323         in from original proposal.
54324
54325 2006-08-10  Eric Blake  <ebb9@byu.net>
54326         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54327
54328         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
54329         namespace.
54330
54331 2006-08-10  Bruno Haible  <bruno@clisp.org>
54332
54333         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
54334         as well.
54335
54336 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         Sync from coreutils.
54339
54340         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
54341
54342         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
54343         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
54344
54345 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54346
54347         * modules/restrict: Remove; no longer needed now that we assume
54348         Autoconf 2.59 or later.
54349         * MODULES.html.sh: Remove 'restrict'.
54350         * modules/argp (Depends-on): Remove 'restrict'.
54351         * modules/base64 (Depends-on): Likewise.
54352         * modules/gc (Depends-on): Likewise.
54353         * modules/getaddrinfo (Depends-on): Likewise.
54354         * modules/glob (Depends-on): Likewise.
54355         * modules/inet_ntop (Depends-on): Likewise.
54356         * modules/inet_pton (Depends-on): Likewise.
54357         * modules/memxor (Depends-on): Likewise.
54358         * modules/regex (Depends-on): Likewise.
54359         * modules/strtok_r (Depends-on): Likewise.
54360         * modules/time_r (Depends-on): Likewise.
54361
54362 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54363
54364         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
54365         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
54366         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54367         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
54368         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
54369         * m4/memxor.m4 (gl_MEMXOR): Likewise.
54370         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
54371         gl_C_RESTRICT replaced by AC_C_RESTRICT.
54372
54373         Merge from coreutils.
54374         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
54375         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
54376         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54377         * m4/time_r.m4 (gl_TIME_R): Likewise.
54378
54379 2006-08-09  Karl Berry  <karl@gnu.org>
54380
54381         * config/srclist.txt: no more gettext-tools, per Bruno.
54382
54383 2006-08-08  Eric Blake  <ebb9@byu.net>
54384
54385         * modules/verror: New module.
54386         * MODULES.html.sh: Document it.
54387
54388 2006-08-08  Eric Blake  <ebb9@byu.net>
54389
54390         * lib/verror.h, lib/verror.c: New files.
54391
54392 2006-08-08  Eric Blake  <ebb9@byu.net>
54393
54394         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
54395         verror_at_line output complies with GNU Coding Standards even when
54396         file is NULL.
54397
54398 2006-08-07  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
54401         versions of AIX.
54402         Reported by Ralf Wildenhues.
54403
54404 2006-08-07  Bruno Haible  <bruno@clisp.org>
54405
54406         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
54407         in an AC_DEFUN. Needed so that the autoconf snippets can use
54408         AC_REQUIRE.
54409
54410 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54411
54412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54413         Initialize pkgdata_DATA.
54414         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
54415         overriding it.
54416
54417 2006-08-06  Eric Blake  <ebb9@byu.net>
54418
54419         * lib/error.h: Fold in some upstream changes from glibc.
54420         * lib/error.c: Likewise.
54421
54422 2006-08-04  Bruno Haible  <bruno@clisp.org>
54423
54424         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54425         Make the mostlyclean-local rule depend on mostlyclean-generic.
54426         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
54427
54428 2006-07-31  Bruno Haible  <bruno@clisp.org>
54429
54430         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
54431         <stdlib.h>, <string.h>.
54432
54433 2006-07-30  Bruno Haible  <bruno@clisp.org>
54434
54435         * modules/readlink (License): Change to LGPL.
54436
54437 2006-07-30  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/javaversion (Makefile.am): Distribute javaversion.java and
54440         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
54441         set PKGDATADIR to point to it.
54442
54443 2006-07-30  Bruno Haible  <bruno@clisp.org>
54444
54445         * modules/csharpexec (configure.ac): Comment out macro invocation.
54446         * modules/javaexec (configure.ac): Likewise.
54447         * modules/javacomp-script (configure.ac): Likewise.
54448
54449         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
54450
54451 2006-07-30  Bruno Haible  <bruno@clisp.org>
54452
54453         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
54454         linked-list.
54455
54456 2006-07-30  Bruno Haible  <bruno@clisp.org>
54457
54458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
54459
54460 2006-07-30  Bruno Haible  <bruno@clisp.org>
54461
54462         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54463         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
54464         get removed.
54465
54466 2006-07-29  Bruno Haible  <bruno@clisp.org>
54467
54468         Make it possible for gnulib-tool to work with locally modified or
54469         augmented gnulib repositories.
54470         * gnulib-tool (func_usage): Document --local-dir option.
54471         (local_gnulib_dir): New variable.
54472         Handle --local-dir option.
54473         (func_lookup_file): New function.
54474         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
54475         (func_get_description, func_get_filelist, func_get_description,
54476         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
54477         func_get_automake_snippet, func_get_include_directive,
54478         func_get_license, func_get_maintainer): Use func_lookup_file.
54479         (func_import, func_create_testdir): Use func_lookup_file.
54480
54481 2006-07-29  Bruno Haible  <bruno@clisp.org>
54482
54483         * modules/setenv (Depends-on): Add unistd.
54484
54485 2006-07-29  Bruno Haible  <bruno@clisp.org>
54486
54487         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
54488
54489 2006-07-29  Bruno Haible  <bruno@clisp.org>
54490
54491         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
54492
54493 2006-07-29  Bruno Haible  <bruno@clisp.org>
54494
54495         * gnulib-tool (import, update): If there is no Makefile.am, look at
54496         aclocal.m4, instead of bailing out.
54497
54498 2006-07-29  Bruno Haible  <bruno@clisp.org>
54499
54500         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
54501         Categorize the options by when they are useful.
54502
54503 2006-07-29  Bruno Haible  <bruno@clisp.org>
54504
54505         * gnulib-tool (func_usage): Document option --no-libtool.
54506         Handle option --no-libtool.
54507         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
54508         for changed semantics of $libtool variable.
54509         (func_import): Likewise. If libtool is not used, show this through
54510         an option --no-libtool.
54511         (func_create_testdir): Update.
54512
54513 2006-07-29  Bruno Haible  <bruno@clisp.org>
54514
54515         * gnulib-tool (func_import): Extend error message about missing
54516         --doc-base.
54517
54518 2006-07-29  Bruno Haible  <bruno@clisp.org>
54519
54520         * gnulib-tool (func_import): Don't create the $docbase directory if
54521         there is no file to store there.
54522
54523 2006-07-29  Bruno Haible  <bruno@clisp.org>
54524
54525         * gnulib-tool (autoconf_minversion): If a --dir option is given and
54526         relevant, look for configure.ac there, not in the current directory.
54527         Also use a simple search for AC_PREREQ, not "autoconf --trace".
54528
54529 2006-07-29  Bruno Haible  <bruno@clisp.org>
54530
54531         * gnulib-tool (SORT): New variable.
54532         (func_usage): Undocument --assume-autoconf option.
54533         Remove --assume-autoconf option handling.
54534         (autoconf_minversion): Determine from the contents of configure.ac.
54535         (func_import): Remove autoconf_minversion handling.
54536         Suggested by Eric Blake.
54537
54538 2006-07-29  Bruno Haible  <bruno@clisp.org>
54539
54540         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
54541
54542 2006-07-29  Bruno Haible  <bruno@clisp.org>
54543
54544         * config/srclist.txt (*setenv.[ch]): Remove rules.
54545
54546 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54547
54548         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
54549
54550 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54551
54552         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
54553         arpa/inet.h.
54554
54555 2006-07-28  Simon Josefsson  <jas@extundo.com>
54556
54557         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
54558         * modules/inet_pton (Depends-on): Likewise.
54559
54560 2006-07-28  Simon Josefsson  <jas@extundo.com>
54561
54562         * m4/netinet_in_h.m4: New file.
54563
54564 2006-07-28  Simon Josefsson  <jas@extundo.com>
54565
54566         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
54567         #include's.
54568
54569 2006-07-28  Simon Josefsson  <jas@extundo.com>
54570
54571         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
54572         #include's.
54573
54574 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
54577         setgid on directories only if they set these bits.
54578         * lib/modechange.h: Remove obsolete comment about masks.
54579
54580 2006-07-28  Eric Blake  <ebb9@byu.net>
54581
54582         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
54583         macro expansion.
54584
54585 2006-07-28  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
54588
54589 2006-07-28  Bruno Haible  <bruno@clisp.org>
54590
54591         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
54592
54593 2006-07-28  Bruno Haible  <bruno@clisp.org>
54594
54595         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54596         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54597         Define fallbacks.
54598         Avoids link error on FreeBSD 4.x.
54599         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54600
54601         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
54602         encoding.
54603         * lib/mbswidth.c (iswcntrl): Likewise.
54604
54605 2006-07-27  Bruno Haible  <bruno@clisp.org>
54606
54607         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
54608         test.
54609
54610 2006-07-27  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
54613         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
54614         defined.
54615
54616 2006-07-26  Eric Blake  <ebb9@byu.net>
54617
54618         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
54619
54620 2006-07-26  Eric Blake  <ebb9@byu.net>
54621
54622         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
54623         like mingw that lack mkstemp.
54624         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
54625         avoid compilation warning on mingw.
54626
54627 2006-07-26  Bruno Haible  <bruno@clisp.org>
54628
54629         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
54630         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
54631         INT_FAST*_MIN, INTPTR_MIN.
54632
54633 2006-07-25  Bruno Haible  <bruno@clisp.org>
54634
54635         * modules/version-etc (Depends-on): Add stdarg.
54636
54637 2006-07-25  Bruno Haible  <bruno@clisp.org>
54638
54639         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
54640         complex commands.
54641
54642 2006-07-25  Bruno Haible  <bruno@clisp.org>
54643
54644         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
54645         defined in <stdarg.h> or config.h.
54646
54647 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
54650         (gl_STDIO_SAFER): Remove.
54651
54652 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
54653
54654         * MODULES.html.sh (File stream based Input/Output):
54655         Add fopen-safer, tmpfile-safer; remove stdio-safer.
54656         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
54657         * modules/fopen-safer, modules/tmpfile-safer: New files.
54658         * modules/stdio-safer: Remove.
54659
54660 2006-07-24  Bruno Haible  <bruno@clisp.org>
54661
54662         * modules/tmpdir: New file.
54663         * MODULES.html.sh (File system functions): Add it.
54664
54665 2006-07-24  Bruno Haible  <bruno@clisp.org>
54666
54667         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
54668         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
54669
54670 2006-07-24  Bruno Haible  <bruno@clisp.org>
54671
54672         * modules/clean-temp: New file.
54673
54674 2006-07-24  Bruno Haible  <bruno@clisp.org>
54675
54676         * m4/tmpdir.m4: New file, from GNU gettext.
54677
54678 2006-07-24  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/tmpdir.h: New file, from GNU gettext.
54681         * lib/tmpdir.c: New file, from GNU gettext.
54682
54683 2006-07-24  Bruno Haible  <bruno@clisp.org>
54684
54685         * lib/clean-temp.h: New file, from GNU gettext.
54686         * lib/clean-temp.c: New file, from GNU gettext.
54687
54688 2006-07-23  Eric Blake  <ebb9@byu.net>
54689
54690         * modules/stdio-safer (Files): Add tmpfile-safer.c.
54691         (Depends-on): Add binary-io.
54692
54693 2006-07-23  Eric Blake  <ebb9@byu.net>
54694
54695         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
54696
54697 2006-07-23  Eric Blake  <ebb9@byu.net>
54698
54699         * lib/tmpfile-safer.c: New file.
54700         * lib/stdio-safer.h (fopen_safer): Add prototype.
54701         * lib/stdio--.h (tmpfile): Make safer.
54702
54703 2006-07-23  Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
54706         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
54707         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
54708         gl_linked_remove_at): Use it.
54709
54710 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54711         and Simon Josefsson <jas@extundo.com>
54712
54713         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
54714
54715         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
54716
54717 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54718
54719         * modules/close-stream: New file.
54720         * modules/closeout (Description): Make it clear that it exits
54721         with a diagnostic on error.
54722         (Depends-on): Add close-stream.  Remove fpending, stdbool.
54723         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
54724
54725 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         * m4/close-stream.m4: New file.
54728
54729 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * lib/close-stream.c, lib/close-stream.h: New files.
54732
54733 2006-07-22  Bruno Haible  <bruno@clisp.org>
54734
54735         Merge from GNU gettext 0.15.
54736
54737         2006-05-01  Bruno Haible  <bruno@clisp.org>
54738
54739                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
54740
54741         2006-07-22  Bruno Haible  <bruno@clisp.org>
54742
54743                 * modules/javaversion: New file.
54744                 * MODULES.html.sh (Java): Add javaversion.
54745
54746         2006-03-12  Bruno Haible  <bruno@clisp.org>
54747
54748                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
54749
54750         2005-12-04  Bruno Haible  <bruno@clisp.org>
54751
54752                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
54753                 (untested).
54754
54755         2006-06-21  Bruno Haible  <bruno@clisp.org>
54756
54757                 Avoid warnings from recent versions of mcs.
54758                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
54759                 -o, -L, -r any more. Use options documented since mcs-1.0
54760                 instead. Similarly for -g.
54761
54762         2005-12-04  Bruno Haible  <bruno@clisp.org>
54763
54764                 * build-aux/csharpcomp.sh.in: Suffix for resources is
54765                 .resources, not .resource.
54766
54767         2005-07-09  Bruno Haible  <bruno@clisp.org>
54768
54769                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
54770                 add a .dll suffix.
54771                 Reported by Mark Junker <mjscod@gmx.de>.
54772
54773         2006-07-22  Bruno Haible  <bruno@clisp.org>
54774
54775                 * modules/gettext: Upgrade to gettext-0.15.
54776                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
54777                 m4/visibility.m4.
54778                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
54779
54780 2006-07-22  Bruno Haible  <bruno@clisp.org>
54781
54782         Merge from GNU gettext 0.15.
54783
54784         2006-03-25  Bruno Haible  <bruno@clisp.org>
54785
54786                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
54787
54788         2006-07-21  Bruno Haible  <bruno@clisp.org>
54789
54790                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
54791                 "1.1".
54792
54793         2006-05-09  Bruno Haible  <bruno@clisp.org>
54794
54795                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
54796                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
54797                 for the conftestver execution.
54798
54799         2006-05-01  Bruno Haible  <bruno@clisp.org>
54800
54801                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
54802                 optional target-version argument. Verify that the compiler
54803                 groks source of the specified source-version, or add -source
54804                 option as necessary. Verify that the compiler produces
54805                 bytecode in the specified target-version, or add -target and
54806                 -source options as necessary. Make the result of the test
54807                 available as variable CONF_JAVAC. Also log error output in
54808                 config.log.
54809
54810         2006-03-11  Bruno Haible  <bruno@clisp.org>
54811
54812                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
54813
54814         2006-05-09  Bruno Haible  <bruno@clisp.org>
54815
54816                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
54817                 CLASSPATH_SEPARATOR to a semicolon.
54818
54819         2006-03-12  Bruno Haible  <bruno@clisp.org>
54820
54821                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
54822                 available as variable CONF_JAVA, for subsequent autoconf
54823                 tests. Also log error output in config.log.
54824
54825         2006-07-19  Bruno Haible  <bruno@clisp.org>
54826
54827                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
54828                 that getline works on glibc2 systems. Needed to avoid trouble
54829                 in relocatable.c.
54830                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
54831
54832         2005-12-04  Bruno Haible  <bruno@clisp.org>
54833
54834                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
54835                 launcher (untested).
54836
54837         2005-12-04  Bruno Haible  <bruno@clisp.org>
54838
54839                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
54840
54841         2006-07-22  Bruno Haible  <bruno@clisp.org>
54842
54843                 * gettext.m4: Update from GNU gettext-0.15.
54844                 * nls.m4: Likewise.
54845                 * po.m4: Likewise.
54846                 * inttypes-pri.m4: Likewise.
54847                 * inttypes-h.m4: Renamed from inttypes.m4.
54848                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
54849
54850 2006-07-22  Bruno Haible  <bruno@clisp.org>
54851
54852         Merge from GNU gettext 0.15.
54853
54854         2005-07-05  Bruno Haible  <bruno@clisp.org>
54855
54856                 * printf-args.c (printf_fetchargs): Work around broken
54857                 definition of wint_t on mingw.
54858
54859         2005-02-12  Bruno Haible  <bruno@clisp.org>
54860
54861                 * xallocsa.h: Add extern "C" for C++.
54862
54863         2006-05-17  Bruno Haible  <bruno@clisp.org>
54864
54865                 Cygwin portability.
54866                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
54867
54868         2006-04-30  Bruno Haible  <bruno@clisp.org>
54869
54870                 * progreloc.c: Include <mach-o/dyld.h> if available.
54871                 (find_executable): Use _NSGetExecutablePath when possible.
54872
54873         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54874
54875                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
54876                 function.
54877
54878         2005-12-29  Bruno Haible  <bruno@clisp.org>
54879
54880                 * progreloc.c (set_program_name_and_installdir): Fix
54881                 compilation error.
54882
54883         2005-12-04  Bruno Haible  <bruno@clisp.org>
54884
54885                 Cygwin portability.
54886                 * progreloc.c: Include <windows.h> also on Cygwin.
54887                 (find_executable): Add support for Cygwin.
54888                 (set_program_name_and_installdir): Handle also platforms with
54889                 nonempty EXEEXT.
54890
54891         2006-07-11  Bruno Haible  <bruno@clisp.org>
54892
54893                 * javacomp.c: Fix a comment.
54894                 Reported by Jim Meyering.
54895
54896         2006-04-30  Bruno Haible  <bruno@clisp.org>
54897
54898                 * javacomp.h (compile_java_class): Add source_version,
54899                 target_version arguments.
54900                 * javacomp.c: Rewritten to choose only a compiler that
54901                 respects the specified source_version and target_version.
54902
54903         2006-06-27  Bruno Haible  <bruno@clisp.org>
54904
54905                 Assume correct S_ISDIR macro.
54906                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
54907
54908         2006-07-22  Bruno Haible  <bruno@clisp.org>
54909
54910                 * javaversion.h: New file, from GNU gettext.
54911                 * javaversion.c: New file, from GNU gettext.
54912                 * javaversion.java: New file, from GNU gettext.
54913                 * javaversion.class: New file, from GNU gettext.
54914
54915         2006-05-17  Bruno Haible  <bruno@clisp.org>
54916
54917                 Cygwin portability.
54918                 * javaexec.c (execute_java_class): Test for jview program
54919                 also on Cygwin.
54920
54921         2006-04-09  Bruno Haible  <bruno@clisp.org>
54922
54923                 * fatal-signal.c: Don't include string.h.
54924                 (at_fatal_signal): Use a copying loop instead of memcpy.
54925
54926         2005-12-04  Bruno Haible  <bruno@clisp.org>
54927
54928                 * csharpexec.c: Add support for 'clix' launcher (untested).
54929                 (execute_csharp_using_sscli): New function.
54930                 (execute_csharp_program): Call it.
54931
54932         2006-06-21  Bruno Haible  <bruno@clisp.org>
54933
54934                 Avoid warnings from recent versions of mcs.
54935                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
54936                 -o, -L, -r any more. Use options documented since mcs-1.0
54937                 instead. Similarly for -g.
54938
54939         2005-07-09  Bruno Haible  <bruno@clisp.org>
54940
54941                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
54942                 add a .dll suffix.
54943                 Reported by Mark Junker <mjscod@gmx.de>.
54944
54945         2006-06-17  Bruno Haible  <bruno@clisp.org>
54946
54947                 * config.charset: Update for NetBSD 3.0.
54948
54949         2006-05-17  Bruno Haible  <bruno@clisp.org>
54950
54951                 Cygwin portability.
54952                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
54953
54954         2006-05-16  Bruno Haible  <bruno@clisp.org>
54955
54956                 * localcharset.c [CYGWIN]: Include <windows.h>.
54957                 (get_charset_aliases): For Cygwin, return the same CPxxx
54958                 aliases list as under WIN32.
54959                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
54960                 the environment variables. Fall back to GetACP().
54961
54962         2006-04-05  Bruno Haible  <bruno@clisp.org>
54963
54964                 * config.charset: Update Juan Manuel Guerrero's address.
54965
54966         2005-02-12  Bruno Haible  <bruno@clisp.org>
54967
54968                 * allocsa.h: Add extern "C" for C++.
54969
54970         2005-02-10  Bruno Haible  <bruno@clisp.org>
54971
54972                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
54973                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
54974
54975         2006-07-22  Bruno Haible  <bruno@clisp.org>
54976
54977                 * gettext.h: Update to GNU gettext-0.15.
54978
54979 2006-07-22  Bruno Haible  <bruno@clisp.org>
54980
54981         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
54982         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
54983         lib-prefix.m4, longdouble.m4, ssize_t.m4.
54984
54985 2006-07-21  Eric Blake  <ebb9@byu.net>
54986
54987         * modules/stdlib-safer: New file.
54988         * MODULES.html.sh (File stream based Input/Output): Add
54989         stdlib-safer.
54990
54991 2006-07-21  Eric Blake  <ebb9@byu.net>
54992
54993         * lib/stdlib-safer.h: New file from coreutils, required by
54994         stdlib--.h.
54995
54996 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
54997
54998         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
54999
55000 2006-07-20  Bruno Haible  <bruno@clisp.org>
55001
55002         * gnulib-tool: Recognize new option --assume-autoconf.
55003         (autoconf_minversion): New variable.
55004         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
55005
55006 2006-07-20  Bruno Haible  <bruno@clisp.org>
55007
55008         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
55009
55010 2006-07-19  Derek R. Price  <derek@ximbiot.com>
55011
55012         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
55013         Reindent and repaginate.
55014
55015 2006-07-19  Derek Price  <derek@ximbiot.com>
55016
55017         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
55018         Correct grammar.
55019
55020 2006-07-17  Bruno Haible  <bruno@clisp.org>
55021
55022         * modules/list: New file.
55023         * modules/array-list: New file.
55024         * modules/carray-list, modules/carray-list-tests: New files.
55025         * modules/linked-list, modules/linked-list-tests: New files.
55026         * modules/avltree-list, modules/avltree-list-tests: New files.
55027         * modules/rbtree-list, modules/rbtree-list-tests: New files.
55028         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
55029         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
55030         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
55031         * modules/oset: New file.
55032         * modules/array-oset: New file.
55033         * modules/avltree-oset, modules/avltree-oset-tests: New files.
55034         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
55035         * tests/test-carray_list.c: New file.
55036         * tests/test-linked_list.c: New file.
55037         * tests/test-avltree_list.c: New file.
55038         * tests/test-rbtree_list.c: New file.
55039         * tests/test-linkedhash_list.c: New file.
55040         * tests/test-avltreehash_list.c: New file.
55041         * tests/test-rbtreehash_list.c: New file.
55042         * tests/test-avltree_oset.c: New file.
55043         * tests/test-rbtree_oset.c: New file.
55044         * MODULES.html.sh (Container data structures): New section.
55045
55046 2006-07-17  Bruno Haible  <bruno@clisp.org>
55047
55048         * m4/gl_list.m4: New file.
55049
55050 2006-07-17  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/gl_list.h: New file.
55053         * lib/gl_list.c: New file.
55054         * lib/gl_array_list.h: New file.
55055         * lib/gl_array_list.c: New file.
55056         * lib/gl_carray_list.h: New file.
55057         * lib/gl_carray_list.c: New file.
55058         * lib/gl_linked_list.h: New file.
55059         * lib/gl_linked_list.c: New file.
55060         * lib/gl_anylinked_list1.h: New file.
55061         * lib/gl_anylinked_list2.h: New file.
55062         * lib/gl_avltree_list.h: New file.
55063         * lib/gl_avltree_list.c: New file.
55064         * lib/gl_anyavltree_list1.h: New file.
55065         * lib/gl_anyavltree_list2.h: New file.
55066         * lib/gl_rbtree_list.h: New file.
55067         * lib/gl_rbtree_list.c: New file.
55068         * lib/gl_anyrbtree_list1.h: New file.
55069         * lib/gl_anyrbtree_list2.h: New file.
55070         * lib/gl_anytree_list1.h: New file.
55071         * lib/gl_anytree_list2.h: New file.
55072         * lib/gl_linkedhash_list.h: New file.
55073         * lib/gl_linkedhash_list.c: New file.
55074         * lib/gl_anyhash_list1.h: New file.
55075         * lib/gl_anyhash_list2.h: New file.
55076         * lib/gl_avltreehash_list.h: New file.
55077         * lib/gl_avltreehash_list.c: New file.
55078         * lib/gl_rbtreehash_list.h: New file.
55079         * lib/gl_rbtreehash_list.c: New file.
55080         * lib/gl_anytreehash_list1.h: New file.
55081         * lib/gl_anytreehash_list2.h: New file.
55082
55083         * lib/gl_oset.h: New file.
55084         * lib/gl_oset.c: New file.
55085         * lib/gl_array_oset.h: New file.
55086         * lib/gl_array_oset.c: New file.
55087         * lib/gl_avltree_oset.h: New file.
55088         * lib/gl_avltree_oset.c: New file.
55089         * lib/gl_rbtree_oset.h: New file.
55090         * lib/gl_rbtree_oset.c: New file.
55091         * lib/gl_anytree_oset.h: New file.
55092
55093 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * m4/mkancesdirs.m4: New file.
55096         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
55097         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
55098         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
55099         it.
55100
55101 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55102
55103         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
55104         * lib/mkancesdirs.h: New files.
55105         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
55106         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
55107         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
55108         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
55109         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
55110         callers changed.  Revamp internals significantly, by not
55111         attempting to create directories that are temporarily more
55112         permissive than the final results.  Do not attempt to use
55113         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
55114         This removes some race conditions, fixes some bugs, and simplifies
55115         things.  Use new dirchownmod function to do owner and mode changes.
55116         * lib/mkdir-p.h: Likewise.
55117         * lib/modechange.c (octal_to_mode): New function.
55118         (struct mode_change): New member mentioned.
55119         (make_node_op_equals): New arg mentioned.  All callers changed.
55120         (mode_compile): Keep track of which mode bits the user has explicitly
55121         mentioned.
55122         (mode_adjust): New arg DIR, so that we implement the X op correctly.
55123         New arg PMODE_BITS, to keep track of which mode bits the user
55124         mentioned; it treats S_ISUID and S_ISGID speciall.
55125         All callers changed.
55126         * lib/modechange.h: Likewise.
55127
55128 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
55129
55130         * MODULES.html.sh: Add mkancestors.
55131         * modules/mkancesdirs: New module.
55132         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
55133         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
55134         The chdir-safer and afs files are now orphans; I'll remove them
55135         unless someone speaks up.
55136         Add lib/dirchownmod.c, lib/dirchownmod.h.
55137         (Depends-on): Remove alloca, chown, save-cwd, dirname.
55138         Add lchown, mkancesdirs.
55139         (Maintainer): Add self.
55140
55141 2006-07-15  Karl Berry  <karl@gnu.org>
55142
55143         * gnulib-tool: help message wording/arrangement.
55144
55145 2006-07-14  Simon Josefsson  <jas@extundo.com>
55146
55147         * doc/gnulib.texi (Libtool and Windows): New section.
55148
55149 2006-07-12  Simon Josefsson  <jas@extundo.com>
55150
55151         * modules/gendocs (License): Fix license, approved by Karl.
55152
55153 2006-07-12  Eric Blake  <ebb9@byu.net>
55154
55155         * MODULES.html.sh: Add gendocs.
55156
55157 2006-07-11  Eric Blake  <ebb9@byu.net>
55158
55159         * modules/fdl: New module, to install doc/fdl.texi.
55160         * MODULES.html.sh: Add new section for documentation modules.
55161         * gnulib-tool: Avoid space-tab.
55162         (--doc-base): New option, to manage files from doc.
55163
55164 2006-07-11  Eric Blake  <ebb9@byu.net>
55165
55166         * m4/absolute-header.m4: Fix comments to match recent change.
55167
55168 2006-07-11  Eric Blake  <ebb9@byu.net>
55169
55170         * gnulib-tool: List --doc-base before --tests-base.
55171
55172 2006-07-11  Derek R. Price  <derek@ximbiot.com>
55173
55174         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
55175
55176 2006-07-11  Bruno Haible  <bruno@clisp.org>
55177
55178         * README: Mention where to put documentation.
55179
55180 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55181
55182         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
55183
55184 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
55187         to stdint.m4.
55188
55189 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
55190
55191         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
55192         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
55193         "no/such/file/stdint.h" when there is no such file, so that
55194         the resulting C code can be parsed by dodgy compilers.
55195         Problems reported by Bob Proulx.
55196
55197 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55198
55199         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
55200         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55201         macros into the GNU _D_EXACT_NAMLEN.
55202         * lib/savedir.c:  Likewise.
55203         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
55204
55205 2006-07-10  Derek R. Price  <derek@ximbiot.com>
55206         and Paul Eggert  <eggert@cs.ucla.edu>
55207
55208         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
55209         * m4/savedir.m4:
55210         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
55211         macros into the GNU _D_EXACT_NAMLEN.
55212
55213 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
55216         around the absolute name, to work around a problem with the HP-UX
55217         11.23 native C compiler, reported by Bob Proulx.
55218
55219 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         * doc/maintain.texi, make-stds.texi: Sync from
55222         <http://savannah.gnu.org/projects/gnustandards>.
55223
55224 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
55227
55228 2006-07-09  Jim Meyering  <jim@meyering.net>
55229
55230         * m4/glob.m4: Remove a doubled word in a comment.
55231
55232 2006-07-09  Jim Meyering  <jim@meyering.net>
55233
55234         * lib/argp-pv.c: Remove a doubled word in a comment.
55235         * lib/check-version.c (check_version): Likewise.
55236         * lib/javacomp.c (compile_java_class): Likewise.
55237
55238 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55239
55240         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
55241         for the benefit of people using Autoconf 2.60.  If you want to
55242         support older Autoconf versions you can copy m4/onceonly_2_57.m4
55243         (or m4/onceonly.m4, if pre-2.57) manually.
55244
55245 2006-07-08  Jim Meyering  <jim@meyering.net>
55246
55247         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
55248         comment.
55249         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
55250         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
55251         comment.
55252
55253 2006-07-08  Jim Meyering  <jim@meyering.net>
55254
55255         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
55256
55257 2006-07-07  Simon Josefsson  <jas@extundo.com>
55258
55259         * tests/test-crc.c: Change expected crc value, the test vector
55260         were probably computed using the old broken crc.c?
55261
55262 2006-07-06  Simon Josefsson  <jas@extundo.com>
55263
55264         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
55265         now the canonical place for the M4 file).
55266
55267         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
55268         from the sys_socket dependency now.
55269
55270         * modules/inet_pton (Files): Ditto.
55271
55272         * modules/inet_ntop (Files): Ditto.
55273
55274 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55275
55276         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
55277         not gl_PREREQ_GETUSERSHELL.
55278
55279 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55280
55281         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
55282         with only one argument, for Autoconf 2.60.
55283         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
55284         expand to nothing, so add a shell command to avoid syntax error.
55285         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55286
55287 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55288
55289         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
55290
55291 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55292
55293         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
55294         no longer needed.  Check for isblank decl.
55295         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
55296         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
55297         of existence.
55298
55299 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * lib/getloadavg.c: Use __VMS, not VMS.
55302         * lib/getopt.c: Likewise.
55303         * lib/getpagesize.h: Likewise.
55304         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
55305         and probably does not work.
55306
55307 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55308
55309         * lib/.cppi-disable: Add wcwidth.
55310         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
55311         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
55312         (ISGRAPH): Remove.  All uses changed to isgraph.
55313         (FOLD) [!defined _LIBC]: Remove special case.
55314         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
55315         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
55316         HAVE_ISBLANK.
55317         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
55318         case.
55319
55320 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55321
55322         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
55323         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
55324         brackets.  Other minor changes to suppress some compiler
55325         warnings.
55326
55327 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55328         and Paul Eggert  <eggert@cs.ucla.edu>
55329
55330         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
55331         of invoking obsolescent AC_HEADER_DIRENT macro.
55332         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
55333         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
55334         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
55335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
55336         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
55337         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55338         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
55339         * m4/readdir.m4: Remove; no longer needed.
55340
55341 2006-07-06  Derek R. Price  <derek@ximbiot.com>
55342         and Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
55345         Don't worry about this obsolete case any more.
55346         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
55347         directories.
55348         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
55349         worry about this obsolete case any more.
55350         * lib/fts.c: Likewise.
55351         * lib/getcwd.c: Likewise.
55352         * lib/glob.h: Likewise.
55353         * lib/savedir.c: Likewise.
55354
55355 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55356
55357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
55358         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
55359         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
55360         needed.
55361         All uses removed.
55362         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55363         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55364         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
55365         needed.
55366         * m4/getdate.m4 (gl_GETDATE): Likewise.
55367         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55368         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55369         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55370         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55371         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
55372         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55373         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
55374         needed.
55375
55376 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55377
55378         * lib/memcasecmp.c: Include <limits.h>.
55379         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
55380         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
55381         Don't assume isdigit succeeds only on '0' through '9'.
55382
55383 2006-07-05  Eric Blake  <ebb9@byu.net>
55384
55385         * modules/getaddrinfo (Depends-on): Add snprintf.
55386
55387 2006-07-05  Eric Blake  <ebb9@byu.net>
55388
55389         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
55390         to avoid 'header present but could not be compiled' on cygwin.
55391
55392 2006-07-05  Eric Blake  <ebb9@byu.net>
55393
55394         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
55395         missing from netdb.h.
55396         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
55397
55398 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55399
55400         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
55401         no longer needed.
55402         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
55403         * m4/getdate.m4 (gl_GETDATE): Likewise.
55404         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
55405         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
55406         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
55407         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
55408         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55409
55410 2006-07-05  Derek R. Price  <derek@ximbiot.com>
55411
55412         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
55413         All uses of is_space replaced by isspace.
55414         * lib/exit.h: Don't talk about STDC_HEADERS.
55415         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
55416         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
55417         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
55418         replaced by isprint etc.
55419         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
55420         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55421         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
55422         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
55423         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
55424         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
55425
55426 2006-07-05  Bruno Haible  <bruno@clisp.org>
55427
55428         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
55429         the function exists, before testing against AIX.
55430         Reported by Martin Lambers <marlam@marlam.de>.
55431
55432 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
55435         From Mark D. Baushke.
55436
55437 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
55438
55439         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
55440         to the absolute name, not just one, to bypass Sun C 5.8's
55441         "warning: #include of /usr/include/... may be non-portable".
55442
55443 2006-07-04  Eric Blake  <ebb9@byu.net>
55444
55445         * modules/dirname-tests: New test module.
55446         * tests/test-dirname.c: New file, replacing dirname.c
55447         TEST_DIRNAME section that was recently deleted.
55448
55449 2006-07-04  Bruno Haible  <bruno@clisp.org>
55450
55451         Assume ANSI C header files and <ctype.h> functions.
55452         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
55453         (mbsnwidth): Use isprint, iscntrl instead.
55454
55455 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         Merge from coreutils.
55458         * MODULES.html.sh: Add xstrtold.
55459         * modules/xstrtold: New file.
55460         * modules/cycle-check (Files): Add lib/same-inode.h.
55461         * modules/dirname (Files): Add m4/double-slash-root.m4.
55462         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
55463         * modules/mkdir-p (Files): Add lib/same-inode.h.
55464         * modules/same (Files): Add lib/same-inode.h.
55465
55466 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55467
55468         * m4/absolute-header.m4: Renamed from full-header-path.m4.
55469         This is to keep the terminology clean; POSIX talks about
55470         "absolute pathnames", not "full pathnames", but the GNU
55471         Coding Standards say to use "path" for something else;
55472         so use "absolute" to keep both sides happy.
55473         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
55474         Set gl_absolute_header, not gl_full_header_path.
55475         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
55476         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
55477         All uses changed.
55478
55479         Merge from coreutils.
55480
55481         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55482
55483         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
55484         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
55485         want to require the building of c-strtod.o.
55486         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
55487         needs -lm directly.
55488         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
55489
55490         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55491
55492         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
55493         --as-needed option if available.  Problem reported by Albert Chin in
55494         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
55495         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
55496         cc merely issues a bunch of annoying warnings for --as-needed
55497         (this problem was reported by Bob Proulx).  Also, try linking with
55498         -lm to detect a bug in binutils 2.16 (this problem was reported
55499         by Ralf Wildenhues).
55500
55501         2006-06-18  Jim Meyering  <jim@meyering.net>
55502
55503         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
55504         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
55505         macro.
55506         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
55507         also check for glibc-2.4's abort-inducing bug.
55508
55509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
55510         Low-probability clean-up should be to use rmdir to get rid of
55511         the just-created directory, not unlink.
55512
55513         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
55514         configure fail, and request a bug report to inform us about it.
55515         Add a comment that, barring reports to the contrary, in 2007 we'll
55516         assume ftruncate is universally available.
55517
55518         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55519
55520         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
55521
55522         2006-03-12  Jim Meyering  <jim@meyering.net>
55523
55524         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
55525         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
55526         * m4/same.m4 (gl_SAME): Likewise.
55527         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
55528
55529         2006-03-11  Eric Blake  <ebb9@byu.net>
55530
55531         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
55532         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
55533         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
55534         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
55535
55536 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55537
55538         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
55539         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
55540         reported by Mark D. Baushke, one in
55541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
55542
55543         Merge from coreutils.
55544
55545         * lib/.cppi-disable: Add stdint_.h.
55546         * lib/.cvsignore: Add stdint.h.
55547
55548         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
55549
55550         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
55551         both double and long double versions.
55552         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
55553         * lib/xstrtold.c: New file.
55554         * lib/xstrtod.h (xstrtold): New decl.
55555
55556         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55557
55558         * lib/filemode.c (setst): Remove.
55559         (strmode): Rewrite to avoid setst.  This makes the code shorter,
55560         (arguably) clearer, and the generated code is a bit smaller on my
55561         Debian GNU/Linux stable x86 host.
55562
55563         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         * lib/filemode.c: Include "filemode.h" first, to test the interface.
55566         Assume that filemode.h includes sys/types.h and sys/stat.h.
55567         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
55568         (ftypelet): Reorder to put common cases first, for efficiency.
55569         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
55570         to do 'M'.
55571         (strmode): Renamed from mode_string, and now stores 12 bytes instead
55572         of 10, for compatibility with FreeBSD.  All callers changed.
55573         (filemodestring): Now stores 12 bytes instead of 10, and sets file
55574         types that can't be deduced solely from st_mode.  First arg is now a
55575         const pointer.
55576         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
55577         (strmode): Renamed from mode_string.
55578         (filemodestring): New decl.
55579         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
55580         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
55581         needed.
55582         (S_ISPORT, S_ISWHT): New macros, if not already defined.
55583
55584         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55585
55586         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
55587         fsusage.h now does that.  Include fsusage.h first, to test interface.
55588         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
55589         at most one method (the old code could have generated decls that
55590         didn't conform to C89, not that this was ever exercised).
55591         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
55592
55593         2006-03-19  Jim Meyering  <jim@meyering.net>
55594
55595         Work even in a chroot where d_ino values for entries in "/"
55596         don't match the stat.st_ino values for the same names.
55597         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
55598         number, iterate through all entries again, using lstat instead.
55599         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
55600         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
55601
55602         * lib/getcwd.c (__getcwd): Clarify a comment.
55603         Use memcpy in place of a call to strcpy.
55604
55605         2006-03-12  Jim Meyering  <jim@meyering.net>
55606
55607         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
55608         matches that of the current directory (which we're about to chdir ".."
55609         out of), then save the dev-ino of the parent, instead.
55610
55611         * lib/same-inode.h (SAME_INODE): New file/macro.
55612         * lib/chdir-safer.c (SAME_INODE): Remove definition.
55613         Include "same-inode.h", instead.
55614         * lib/same.c: Likewise.
55615         * lib/cycle-check.h: Include "same-inode.h".
55616         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
55617         * lib/cycle-check.c (SAME_INODE): Remove definition.
55618         * lib/root-dev-ino.h: Include "same-inode.h".
55619
55620         2006-03-11  Eric Blake  <ebb9@byu.net>
55621
55622         * lib/same.c (same_name): s/base_name/last_component/
55623         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
55624         * lib/filenamecat.c (file_name_concat): Likewise.
55625
55626         2006-03-11  Eric Blake  <ebb9@byu.net>,
55627                     Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
55630         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
55631         drive prefix.
55632         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
55633         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
55634         (last_component): New method.
55635         * lib/dirname.c (dir_len): Determine when drive letters need a
55636         subsequent slash.  Preserve // when it is special.
55637         (dir_name): Don't append dot when drive letter is absolute.
55638         [TEST_DIRNAME]: Move into a full-blown gnulib test.
55639         * lib/basename.c (base_name): New semantics - malloc the result.
55640         Preserve // when it is special.  Preserve relative files that look
55641         like drive letters.
55642         (base_len): Preserve // when it is special.
55643         (last_component): New method, similar to old base_name semantics.
55644         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
55645         base_name.  Strip redundant slashes from ///.
55646
55647 2006-07-03  Jim Meyering  <jim@meyering.net>
55648
55649         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
55650         macro is used before the first cycle_check call.
55651
55652 2006-07-03  Eric Blake  <ebb9@byu.net>
55653
55654         * modules/dirname (Depends-on): Add xstrndup.
55655
55656 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55657
55658         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
55659         test cases, so that config.log is a bit easier to follow.
55660
55661 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55662
55663         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
55664         both are 64 bits, since this seems to be the tradition, and this
55665         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
55666         we ever run into a host that prefers long long to long in this
55667         case, we'll need another configure-time test.  Problem reported by
55668         Jim Meyering.
55669
55670 2006-07-02  Eric Blake  <ebb9@byu.net>
55671
55672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
55673
55674 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         * modules/inttypes (Depends-on): No longer depends on stdint.
55677         * modules/stdint (Description): Say more about assumptions.
55678         Say that the fast types might differ.  Say macros are used.
55679         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
55680         (Makefile.am): Revise list of substituted symbols to match
55681         new stdint.m4.
55682         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
55683         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
55684         * tests/test-stdint.c (verify_same_types)
55685         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
55686         the code conforms to C99/C89.
55687         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
55688         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
55689
55690 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
55693         but fix a bug, by requiring at least 64 bits.
55694         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55695         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
55696         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
55697         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
55698
55699         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
55700         changes.  Make 2.59 a prerequisite.  Check and substitute for
55701         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
55702         inttypes.h.  Do not use special include files; just use the
55703         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
55704         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
55705         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
55706         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
55707         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
55708         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
55709         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
55710         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
55711         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
55712         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
55713         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
55714         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
55715         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
55716         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
55717         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
55718         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
55719         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
55720         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
55721         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
55722         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
55723         WINT_MAX.  Check for C99 conformance more strictly, by detecting
55724         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
55725         not check for things that C99 does not require, e.g., int8_t.  If
55726         a test isn't needed unless <stdint.h> isn't working, and is
55727         unlikely to be needed for any other reason, then don't do it
55728         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
55729         size_t, since we assume C89 freestanding at least.  Do not check
55730         for sig_atomic_t, wchar_t, or wint_t, since the code now does
55731         the right thing even if the types are not defined.  Instead use:
55732         (gl_STDINT_TYPE_PROPERTIES): New macro.
55733         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
55734         testing whether <sys/types.h> clashes, as Autoconf does this for
55735         us now.  All uses removed.
55736         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
55737         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
55738         (gl_CHECK_TYPE_SAME):
55739         Remove; no longer needed.
55740         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
55741         exists, since we'll return 0 anyway in that case.
55742         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
55743
55744 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
55747         possible collision with system files.
55748         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
55749         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
55750         WCHAR_MIN and WCHAR_MAX in this case.
55751         (<stddef.h>): Do not include; no longer needed.
55752         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
55753         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
55754         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
55755         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
55756         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
55757         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
55758         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
55759         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
55760         !defined(__c99))]: Include in this case too, since it's harmless
55761         now.
55762         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
55763         dangerous to do so.
55764         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
55765         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
55766         (_STDINT_MIN, _STDINT_MAX): New macros.
55767         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
55768         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
55769         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
55770         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
55771         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
55772         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
55773         macros, not typedefs; this simplifies things quite a bit.
55774         Use long int for all types narrower than int64_t.
55775         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
55776         Define in terms of long long int or int64_t or long int,
55777         not int64_t or int32_t.  This saves some compile-time testing.
55778         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
55779         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
55780         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
55781         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
55782         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
55783         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
55784         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
55785         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
55786         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
55787         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
55788         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55789         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55790         undef any previous version and define our own version, for
55791         simplicity and consistency with the new macros for types.
55792         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
55793         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
55794         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
55795         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
55796         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
55797         @WINT_T_SUFFIX@ to keep things simple here.
55798         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
55799         Simplify by assuming typical 8/16/32/64 host, since we're
55800         already doing that elsewhere anyway.
55801         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
55802         and assume long long int is 64 bits if available.  This
55803         speeds up 'configure'.
55804
55805 2006-07-01  Eric Blake  <ebb9@byu.net>
55806
55807         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
55808         Reported by Andreas Buening.
55809
55810 2006-07-01  Eric Blake  <ebb9@byu.net>
55811
55812         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
55813
55814 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
55815
55816         * lib/getaddrinfo.c: fixed typo
55817
55818 2006-06-29  Jim Meyering  <jim@meyering.net>
55819
55820         * modules/strftime (Maintainer): Add my name, since with the
55821         FPRINTFTIME changes strftime.c has forked from glibc.
55822
55823 2006-06-29  Eric Blake  <ebb9@byu.net>
55824
55825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
55826
55827 2006-06-29  Eric Blake  <ebb9@byu.net>
55828
55829         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
55830
55831 2006-06-29  Eric Blake  <ebb9@byu.net>
55832
55833         * lib/stat_.h: New file.
55834
55835 2006-06-29  Eric Blake  <ebb9@byu.net>
55836
55837         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
55838         unused static function.
55839
55840 2006-06-29  Eric Blake  <ebb9@byu.net>
55841
55842         * doc/functions.texi (Function Portability): Document missing lstat
55843         on mingw.
55844
55845 2006-06-29  Eric Blake  <ebb9@byu.net>
55846
55847         * MODULES.html.sh: Add sys_stat.
55848         * modules/sys_stat: New module.
55849         * modules/mkstemp (Depends-on): Add sys_stat.
55850
55851 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55852
55853         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
55854
55855 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55856
55857         * m4/c-bs-a.m4: Removed.
55858
55859 2006-06-29  Derek R. Price  <derek@ximbiot.com>
55860
55861         * lib/strftime.c: Assume strftime() exists.
55862
55863 2006-06-29  Derek Price  <derek@ximbiot.com>
55864
55865         * modules/c-bs-a: Removed - \a is C89.
55866         * MODULES.html.sh: Remove c-bs-a.
55867
55868 2006-06-29  Bruno Haible  <bruno@clisp.org>
55869
55870         * modules/wcwidth (License): Change to LGPL.
55871
55872 2006-06-28  Simon Josefsson  <jas@extundo.com>
55873
55874         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
55875         on _WIN32.
55876
55877         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
55878         getnameinfo.
55879
55880 2006-06-28  Simon Josefsson  <jas@extundo.com>
55881
55882         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
55883
55884 2006-06-28  Simon Josefsson  <jas@extundo.com>
55885
55886         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
55887         functions there.  It will succeed on Windows XP, but on Windows
55888         2000 and (presumably) earlier, it will fail, and use the internal
55889         re-implementation.
55890         (use_win32_p): New function.
55891         (getaddrinfo): Use strtoul on servname, to support numeric ports.
55892         Support AI_NUMERICSERV to disable getservbyname.
55893         (getnameinfo): New function, only supports
55894         NI_NUMERICHOST|NI_NUMERICSERV for now.
55895
55896         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
55897         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
55898         getnameinfo.
55899
55900 2006-06-28  Eric Blake  <ebb9@byu.net>
55901
55902         * modules/wcwidth: New file.
55903         * modules/mbchar (Depends-on): Add wcwidth.
55904         * modules/mbswidth (Depends-on): Add wcwidth.
55905         * MODULES.html.sh: Add wcwidth.
55906
55907 2006-06-28  Eric Blake  <ebb9@byu.net>
55908
55909         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
55910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
55911
55912 2006-06-28  Eric Blake  <ebb9@byu.net>
55913
55914         * lib/xvasprintf.h: Fix comments.
55915
55916 2006-06-28  Eric Blake  <ebb9@byu.net>
55917
55918         * lib/mbchar.h (wcwidth): Include wcwidth.h.
55919         * lib/mbswidth.c (wcwidth): Move from here...
55920         * lib/wcwidth.h: ...to this new file.
55921
55922 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55923
55924         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
55925
55926         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
55927         it's obsolete.
55928         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
55929
55930 2006-06-28  Derek R. Price  <derek@ximbiot.com>
55931
55932         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
55933         Autoconf 2.60 says this stuff was obsolete.
55934
55935 2006-06-28  Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/wcwidth (Files): Add m4/wchar_t.m4.
55938
55939 2006-06-28  Bruno Haible  <bruno@clisp.org>
55940
55941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
55942         gt_TYPE_WCHAR_T.
55943
55944 2006-06-28  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
55947         declaration for wcwidth.
55948         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
55949
55950 2006-06-28  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/mkdtemp.c [MINGW]: Include <io.h>.
55953         (mkdir): Define using _mkdir.
55954
55955 2006-06-28  Bruno Haible  <bruno@clisp.org>
55956
55957         * lib/getaddrinfo.h: Fix POSIX URL.
55958         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
55959         _WIN32.
55960         (use_win32_p): Make static.
55961         (getaddrinfo): Reject service name if it is empty or does not consist
55962         solely of decimal digits, or if its value is > 65535.
55963         (getnameinfo): Remove useless casts.
55964
55965 2006-06-27  Simon Josefsson  <jas@extundo.com>
55966
55967         * modules/sys_select: New file, suggested by Bruno Haible, Paul
55968         Eggert and Martin Lambers.
55969
55970 2006-06-27  Simon Josefsson  <jas@extundo.com>
55971
55972         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
55973         Eggert and Martin Lambers.
55974
55975 2006-06-27  Bruno Haible  <bruno@clisp.org>
55976
55977         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
55978         result to 0, not to empty.
55979         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
55980
55981 2006-06-27  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
55984
55985 2006-06-26  Simon Josefsson  <jas@extundo.com>
55986
55987         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
55988         present.
55989
55990 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
55991
55992         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
55993         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
55994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
55995
55996 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
55997
55998         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
55999
56000 2006-06-26  Bruno Haible  <bruno@clisp.org>
56001
56002         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
56003
56004 2006-06-26  Bruno Haible  <bruno@clisp.org>
56005
56006         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
56007
56008 2006-06-26  Bruno Haible  <bruno@clisp.org>
56009
56010         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
56011         SGI C compiler in pre-C99 mode.
56012         Suggested by Mark D. Baushke and Larry Jones.
56013
56014 2006-06-26  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
56017         WCHAR_MAX.
56018         Reported by Mark D. Baushke and Larry Jones.
56019
56020 2006-06-26  Bruno Haible  <bruno@clisp.org>
56021
56022         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
56023         in pre-C99 mode.
56024         Suggested by Mark D. Baushke and Larry Jones.
56025
56026 2006-06-23  Simon Josefsson  <jas@extundo.com>
56027             Bruno Haible  <bruno@clisp.org>
56028
56029         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
56030         Emit mostlyclean-local rule.
56031         (func_emit_tests_Makefile_am): Likewise.
56032         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
56033
56034 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
56035
56036         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
56037
56038 2006-06-23  Bruno Haible  <bruno@clisp.org>
56039
56040         * tests/test-stdint.c: Update to match ISO C 99 Technical
56041         Corrigendum 1.
56042
56043 2006-06-23  Bruno Haible  <bruno@clisp.org>
56044
56045         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
56046
56047 2006-06-23  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/stdint_.h: Treat IRIX like OpenBSD.
56050
56051 2006-06-23  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
56054         ISO C 99 Technical Corrigendum 1.
56055
56056 2006-06-22  Simon Josefsson  <jas@extundo.com>
56057
56058         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
56059         MinGW.
56060
56061 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56062
56063         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
56064         needed.  Some compiler complained about some of them.  Problem reported
56065         by Larry Jones in
56066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
56067
56068 2006-06-21  Simon Josefsson  <jas@extundo.com>
56069
56070         * tests/test-getaddrinfo.c: New file.
56071
56072         * modules/getaddrinfo-tests: New file.
56073
56074         * MODULES.html.sh: Add inet_pton.
56075
56076         * modules/inet_pton: New file.
56077
56078 2006-06-21  Simon Josefsson  <jas@extundo.com>
56079
56080         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
56081         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
56082         of using the (limited) gnulib implementation on Windows XP.
56083
56084         * m4/inet_pton.m4: New file.
56085
56086 2006-06-21  Simon Josefsson  <jas@extundo.com>
56087
56088         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
56089         variable.
56090
56091         * lib/socket_.h: Don't define WINVER.
56092
56093         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
56094         slightly modified to work in gnulib.
56095
56096 2006-06-21  Simon Josefsson  <jas@extundo.com>
56097
56098         * doc/gnulib.texi (Windows sockets): Add.
56099
56100 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * lib/read-file.c (fread_file): Start with buffer allocation of
56103         0 bytes rather than 1 byte; this simplifies the code.
56104         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
56105         code to free buffer and save/restore errno.
56106         (internal_read_file): Remove unused local.
56107
56108 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56109
56110         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
56111         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
56112         Problem reported by Denis Excoffier in
56113         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
56114
56115 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56116
56117         * modules/sys_socket, modules/socklen: Include sys/types since
56118         FreeBSD 4.x's sys/socket.h needs it.
56119
56120 2006-06-19  Simon Josefsson  <jas@extundo.com>
56121
56122         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
56123
56124 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
56127
56128 2006-06-19  Bruno Haible  <bruno@clisp.org>
56129
56130         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
56131         and FULL_PATH_INTTYPES_H in angle brackets.
56132         Reported by Mark D. Baushke <mdb@gnu.org>.
56133
56134 2006-06-17  Eric Blake  <ebb9@byu.net>
56135
56136         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
56137         errno.
56138
56139 2006-06-17  Bruno Haible  <bruno@clisp.org>
56140
56141         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
56142         <sys/inttypes.h>.
56143
56144 2006-06-17  Bruno Haible  <bruno@clisp.org>
56145
56146         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
56147         whether errno is declared. Assume <errno.h> declares errno.
56148
56149 2006-06-17  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
56152
56153 2006-06-17  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
56156         problem on Solaris 2.5.1.
56157
56158 2006-06-16  Eric Blake  <ebb9@byu.net>
56159
56160         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
56161         * lib/unicodeio.c [!defined errno]: Likewise.
56162         * lib/strtol.c [!defined errno]: Likewise.
56163         * lib/strtod.c [!defined errno]: Likewise.
56164
56165 2006-06-15  Eric Blake  <ebb9@byu.net>
56166
56167         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
56168
56169 2006-06-15  Eric Blake  <ebb9@byu.net>
56170
56171         * config/srclist.txt (ssize_t.m4): Lose sync.
56172
56173 2006-06-15  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/stdint (Files): Include m4/full-header-path.m4,
56176         m4/size_max.m4, m4/wchar_t.m4.
56177         (Makefile.am): Many more substitutions.
56178         * modules/stdint-tests: New file.
56179         * tests/test-stdint.c: New file.
56180
56181 2006-06-15  Bruno Haible  <bruno@clisp.org>
56182
56183         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
56184         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
56185         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
56186         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
56187         gl_CHECK_TYPE_SAME): New macros.
56188
56189 2006-06-15  Bruno Haible  <bruno@clisp.org>
56190
56191         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
56192
56193 2006-06-15  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/stdint_.h: Rewritten to be fully auto-configured.
56196         Fixes bug on HP-UX/IA64.
56197
56198 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
56199
56200         * lib/getdate.y (__attribute__): Don't define if already defined.
56201         Problem reported by Larry Jones.
56202         * lib/utimens.c (__attribute__): Likewise.
56203
56204 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
56205
56206         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
56207         reported by Andreas Schwab.
56208
56209 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56210             Bruno Haible  <bruno@clisp.org>
56211
56212         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
56213         check for the declaration of strnlen and a run test that exposes the
56214         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
56215         rpl_strndup.
56216
56217 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56218             Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
56221
56222 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56223
56224         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
56225         compile test, for Tru64 4.0D.
56226
56227 2006-05-28  Karl Berry  <karl@gnu.org>
56228
56229         * config/srclist.txt (printf-args.c): lose sync.
56230
56231 2006-05-26  Martin Lambers  <marlam@marlam.de>
56232
56233         * lib/getpass.c: Updates the test for the native W32 API, and adds
56234         missing includes, thus fixing compilation warnings.
56235
56236 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56237
56238         * lib/exclude.c (exclude_fnmatch): New function.
56239         (excluded_file_name): Call exclude_fnmatch.
56240         * lib/exclude.h (excluded_file_name): New prototype
56241
56242 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
56243
56244         * lib/tempname.c (small_open, large_open): New macros.
56245         (__open, __open64) [!_LIBC]: Remove.
56246         (__gen_tempname): Use small_open and large_open instead of __open
56247         and __open64.  This fixes a portability bug on HP-UX 11.11i
56248         reported by Simon Wing-Tang in
56249         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
56250
56251 2006-05-24  Bruno Haible  <bruno@clisp.org>
56252
56253         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
56254         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
56255         Reported by Thorsten Maerz <torte@netztorte.de> via
56256         Aaron Stone <aaron@serendipity.cx>.
56257
56258 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
56261         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
56262         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
56263         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
56264         not really conditional on the cache.
56265         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
56266
56267 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56268
56269         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
56270         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
56271         (my_usleep): Don't mishandle maximum value.
56272
56273 2006-05-19  Jim Meyering  <jim@meyering.net>
56274
56275         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
56276
56277 2006-05-17  Bruno Haible  <bruno@clisp.org>
56278
56279         Cygwin portability.
56280         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
56281
56282 2006-05-17  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/stdint_.h: Fix recognition of Cygwin.
56285
56286 2006-05-15  Bruno Haible  <bruno@clisp.org>
56287
56288         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
56289         on libtool patch by Ralf Wildenhues.
56290
56291 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56292
56293         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
56294         test for C99 conformance; (bool) 0.5 is an integer constant
56295         expression, but (bool) -0.5 is not.  Problem reported by Fedor
56296         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
56297
56298 2006-05-11  Simon Josefsson  <jas@extundo.com>
56299
56300         * m4/xvasprintf.m4: Fix obvious typo.
56301
56302 2006-05-11  Jim Meyering  <jim@meyering.net>
56303
56304         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
56305         James Lemley.
56306
56307 2006-05-10  Simon Josefsson  <jas@extundo.com>
56308
56309         * lib/md4.c: Typo fix, update copyright years.
56310         (K1, K2): Don't use L because it turn computations into 64-bit on
56311         64-bit platforms.
56312
56313 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
56314
56315         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
56316         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
56317         unwanted sign propagation, e.g., on hosts with 64-bit int.
56318         There still are some problems with reeelly weird theoretical hosts
56319         (e.g., 33-bit int) but it's not worth worrying about now.
56320         * lib/sha1.c (rol): Likewise.
56321         (K1, K2, K3, K4): Remove unnecessary L suffix.
56322
56323 2006-05-10  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/des.c: Cast to avoid warnings.
56326
56327 2006-05-09  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
56330         (Depends-on): Depend also on xsize, stdarg.
56331         (configure.ac): Add gl_XVASPRINTF.
56332
56333 2006-05-09  Bruno Haible  <bruno@clisp.org>
56334
56335         * m4/xvasprintf.m4: New file.
56336
56337 2006-05-09  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
56340         (EOVERFLOW): Define fallback value.
56341         (xstrcat): New function.
56342         (xvasprintf): Recognize the special case of a string concatenation.
56343
56344 2006-05-08  Eric Blake  <ebb9@byu.net>
56345
56346         * gnulib-tool (func_version): Base copyright year on CVS date.
56347         (func_emit_copyright_notice): New function.
56348         (func_emit_lib_Makefile_am): Use it.
56349         (func_emit_tests_Makefile_am): Likewise.
56350         (func_import): Likewise.
56351
56352 2006-05-08  Bruno Haible  <bruno@clisp.org>
56353
56354         * modules/stdarg: New file.
56355         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
56356
56357 2006-05-08  Bruno Haible  <bruno@clisp.org>
56358
56359         * m4/stdarg.m4: New file, from GNU gettext.
56360
56361 2006-05-08  Bruno Haible  <bruno@clisp.org>
56362
56363         * config/srclist.txt (build-aux/config.rpath): different from latest
56364         release.
56365
56366 2006-05-08  Bruno Haible  <bruno@clisp.org>
56367
56368         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
56369
56370 2006-05-05  Jim Meyering  <jim@meyering.net>
56371
56372         * m4/warning.m4: New file, derived from bison's file by the same name.
56373
56374 2006-05-03  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/stdint_.h: Shorter URL.
56377         * lib/inttypes.h: Likewise.
56378
56379 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56380
56381         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
56382
56383 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56384
56385         * lib/verify.h: Document the internals better.  Most of this change
56386         was written by Bruno Haible.
56387
56388 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56389
56390         * doc/verify.texi: New file, partly based on a proposal by
56391         Bruno Haible.
56392
56393 2006-05-02  Bruno Haible  <bruno@clisp.org>
56394
56395         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
56396         test from here...
56397         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
56398
56399 2006-04-29  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
56402         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
56403
56404 2006-04-29  Bruno Haible  <bruno@clisp.org>
56405
56406         * gnulib-tool: Make --update option actually work.
56407
56408 2006-04-29  Bruno Haible  <bruno@clisp.org>
56409
56410         * doc/gcd.texi: New file.
56411         * doc/gnulib.texi: Include it.
56412
56413 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * lib/getdate.y (get_date): When adding relative date, start with the
56416         initial time, not with the result of the first mktime call.
56417
56418 2006-04-25  Bruno Haible  <bruno@clisp.org>
56419
56420         * gnulib-tool (func_import): Output the include directives in three
56421         blocks, sorted separately.
56422         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56423
56424 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56425
56426         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
56427         to define main with arguments, for C++.  Reported by Eric Blake.
56428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
56429         Prefer 'int main ()' to 'int main (void)', for C++.
56430         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
56431         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
56432         for 'main', for C99 and C++.
56433
56434 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56435
56436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
56437         Don't assume that exit status -1 is valid.
56438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56439         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56440         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56441         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
56442         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
56443         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
56444         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
56445         functions can be used without declaring them, or that you can
56446         exit with status -1.
56447         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56448
56449 2006-04-24  Karl Berry  <karl@gnu.org>
56450
56451         * config/srclist.txt (longdouble.m4): sync lost.
56452
56453 2006-04-24  Eric Blake  <ebb9@byu.net>
56454
56455         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
56456
56457 2006-04-24  Bruno Haible  <bruno@clisp.org>
56458
56459         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
56460         poll() implementation in AIX.
56461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56462
56463 2006-04-24  Bruno Haible  <bruno@clisp.org>
56464
56465         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
56466         assigned exactly once.
56467
56468 2006-04-23  Claudio Fontana  <claudio@gnu.org>
56469             Bruno Haible  <bruno@clisp.org>
56470
56471         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
56472         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
56473         for AM_CPPFLAGS.
56474
56475 2006-04-23  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/copy-file: Depend on unistd.
56478         * modules/execute: Likewise.
56479         * modules/fatal-signal: Likewise.
56480         * modules/findprog: Likewise.
56481         * modules/mkdtemp : Likewise.
56482         * modules/pipe: Likewise.
56483         * modules/wait-process: Likewise.
56484
56485 2006-04-23  Bruno Haible  <bruno@clisp.org>
56486
56487         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
56488         condition was already detected.
56489         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56490
56491 2006-04-23  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/copy-file.c: Include <unistd.h> unconditionally.
56494         * lib/execute.c: Likewise.
56495         * lib/fatal-signal.c: Likewise.
56496         * lib/findprog.c: Likewise.
56497         * lib/mkdtemp.c: Likewise.
56498         * lib/pipe.h: Likewise.
56499         * lib/pipe.c: Likewise.
56500         * lib/wait-process.h: Likewise.
56501
56502 2006-04-23  Bruno Haible  <bruno@clisp.org>
56503
56504         * gnulib-tool (func_usage): Fix --import description. Document
56505         --update.
56506         (func_import): Create temporary file in a temporary directory, if
56507         --dry-run is specified. Silence errors from 'grep' when there are no
56508         m4 files in $m4dir.
56509         (func_create_testdir): Silence errors from 'grep' when there are no
56510         m4 files in $m4dir.
56511         Reported by Karl Berry <karl@freefriends.org>.
56512
56513 2006-04-20  Bruno Haible  <bruno@clisp.org>
56514
56515         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
56516         one argument, so that the code will be portable to Autoconf 2.60.
56517         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
56518         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56519         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
56520
56521 2006-04-19  Derek Price  <derek@ximbiot.com>
56522             Eric Blake  <ebb9@byu.net>
56523
56524         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
56525         rather than "/full/path.h".  Update comment to match.  Shorten &
56526         generalize m4_translit call via AS_TR_CPP.
56527
56528 2006-04-19  Derek Price  <derek@ximbiot.com>
56529             Eric Blake  <ebb9@byu.net>
56530
56531         * lib/inttypes.h: Correct grammar in comment.
56532
56533 2006-04-18  Derek Price  <derek@ximbiot.com>
56534             Paul Eggert  <eggert@cs.ucla.edu>
56535
56536         * modules/inttypes: New file.
56537         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
56538
56539 2006-04-18  Derek Price  <derek@ximbiot.com>
56540             Paul Eggert  <eggert@cs.ucla.edu>
56541
56542         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
56543         New files.
56544
56545 2006-04-18  Derek Price  <derek@ximbiot.com>
56546             Paul Eggert  <eggert@cs.ucla.edu>
56547
56548         * lib/inttypes.h: New file.
56549         * lib/strtoimax.c: Assume <inttypes.h>.
56550
56551 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
56552
56553         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
56554         isn't mounted.  Problem reported by Kir Kolyshkin.
56555
56556 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56557
56558         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
56559         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
56560         Derek R. Price.
56561         * lib/regex.h (RE_DUP_MAX): Update comment to match current
56562         implementation.
56563
56564 2006-04-12  Eric Blake  <ebb9@byu.net>
56565
56566         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
56567         is now done automatically by the corresponding Autoconf macro.
56568
56569 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
56570
56571         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
56572         time_r.h.
56573
56574 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56575
56576         Merge regex changes from libc, removing some of our
56577         POSIX-conformance changes that were rejected and redoing them in a
56578         less-intrusive way.
56579
56580         * lib/regcomp.c (re_compile_internal, init_dfa):
56581         Length arg is now size_t, not Idx.  All uses changed.
56582         (peek_token): Forward decl now says internal_function.
56583         (__re_error_msgid, __re_error_msgid_idx):
56584         Now static rather than extern with attribute_hidden.
56585         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
56586         For some reason libc prefers K&R style defns for external functions.
56587         (regerror) [!defined _LIBC]: Likewise.
56588         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
56589         (seek_collating_symbol_entry, lookup_collation_sequence_value):
56590         (build_range_exp, build_collating_symbol):
56591         Use K&R-style defn.
56592         (re_compile_fastmap): Use '\0' to memset, not 0.
56593         (utf8_sb_map): Make the calculations more obvious.
56594         (init_dfa, parse_bracket_exp, build_charclass_op):
56595         Call calloc and cast result, as glibc does.
56596         (init_word_char, fetch_token, peek_token, peek_token_bracket):
56597         (build_range_exp, build_collating_symbol):
56598         Now internal functions.
56599
56600         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
56601
56602         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
56603         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
56604         Don't depend on VMS; depend on __VMS instead, for POSIX
56605         namespace cleanness.
56606         (regoff_t): Define to ssize_t, not long int.
56607
56608         Remove the REG_ macros named below.  Instead, make the old names
56609         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
56610         __USE_GNU_REGEX.
56611         (REG_BACKSLASH_ESCAPE_IN_LISTS):
56612         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
56613         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
56614         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
56615         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
56616         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
56617         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
56618         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
56619         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
56620         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
56621         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
56622         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
56623         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
56624         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
56625         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
56626         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
56627         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
56628         (REG_NREGS):
56629         Remove.  All uses replaced by the old RE_* names.
56630         (RE_BACKSLASH_ESCAPE_IN_LISTS):
56631         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
56632         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
56633         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
56634         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
56635         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
56636         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
56637         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
56638         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
56639         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
56640         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
56641         Don't bother having these macros be independent of each others'
56642         values, since they no longer exist in the POSIX name space.
56643
56644         Rename the following member names back to their old names,
56645         unless !__USE_GNU_REGEX.  All uses changed back.
56646         (buffer): Renamed from re_buffer.
56647         (allocated): Renamed from re_allocated.
56648         (used): Renamed from re_used.
56649         (syntax): Renamed from re_syntax.
56650         (fastmap): Renamed from re_fastmap.
56651         (translate): Renamed from re_translate.
56652         (can_be_null): Renamed from re_can_be_null.
56653         (regs_allocated): Renamed from re_regs_allocated.
56654         (fastmap_accurate): Renamed from re_fastmap_accurate.
56655         (no_sub): Renamed from re_no_sub.
56656         (not_bol): Renamed from re_not_bol.
56657         (not_eol): Renamed from re_not_eol.
56658         (newline_anchor): Renamed from re_newline_anchor.
56659         (num_regs): Renamed from rm_num_regs.
56660         (start): Renamed from rm_start.
56661         (end): Renamed from rm_end.
56662
56663         (free_state): Move up a bit.
56664
56665         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
56666         #define to be empty.
56667         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
56668         when that is what is intended.
56669         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
56670         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
56671         (MAX): New macro.
56672         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
56673         All uses changed back to re_malloc, etc.  It's now the caller's
56674         responsibility to check for overflow; all callers changed.
56675         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
56676         (re_x2nrealloc): Remove.
56677         (free_state): Remove decl.
56678
56679         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
56680         (re_set_registers, re_exec):
56681         Use K&R-style defn.
56682
56683         2006-01-31  Roland McGrath  <roland@redhat.com>
56684
56685         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
56686         Reported by Mike Frysinger <vapier@gentoo.org>.
56687
56688         2006-01-15  Andreas Jaeger  <aj@suse.de>
56689
56690         [BZ #1950]
56691         * lib/regex_internal.c (re_string_reconstruct): Adjust for
56692         build_wcs_upper_buffer change.
56693         (build_wcs_upper_buffer): Change return type.
56694
56695         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
56696
56697         * lib/regex_internal.h: Include <stdint.h> if available.
56698
56699         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
56700
56701         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
56702
56703         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56704
56705         * lib/regcomp.c: Adjust for changed secondary hash function.
56706
56707         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
56708
56709         * lib/regex.h: Pretty printing.
56710         Clean up namespace a bit.
56711
56712         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
56713
56714         * lib/regexec.c (update_cur_sifted_state, check_arrival,
56715         check_arrival_add_next_nodes): Avoid using uninitialized variable.
56716
56717         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56718                     Ulrich Drepper  <drepper@redhat.com>
56719
56720         [BZ #1302]
56721         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
56722         changed.
56723         (bitset_word_t): Renamed from bitset_word.  All uses changed.
56724
56725         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
56726
56727         [BZ #281]
56728         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
56729         * lib/regcomp.c: Remove unnecessary uses of
56730         unsigned RE_TRANSLATE_TYPE.
56731         * lib/regex_internal.h: Likewise.
56732         * lib/regex_internal.c: Likewise.
56733         * lib/regexec.c: Likewise.
56734         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
56735
56736         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
56737
56738         * lib/regexec.c (find_recover_state): Remove unnecessary
56739         initialization.
56740         (transit_state_bkref): Make DFA a const pointer.
56741         (get_subexp): Likewise.
56742         (check_arrival): Likewise.
56743         (update_cur_sifted_state): Likewise.
56744         (re_search_internal): Likewise.
56745         (prune_impossible_nodes): Likewise.
56746         (acquire_init_state_context): Likewise.
56747         (proceed_next_node): Likewise.
56748         (set_regs): Likewise.
56749         (free_fail_stack_return): Likewise.
56750         (check_arrival_expand_ecl): Mark DFA parameter as const.
56751         (check_arrival_expand_ecl_sub): Likewise.
56752         (check_subexp_limits): Likewise.
56753         (sub_epsilon_src_nodes):  Likewise.
56754         (add_epsilon_src_nodes):  Likewise.
56755         (merge_state_array): Likewise.
56756         (update_regs): Likewise.
56757         (build_trtable): Likewise.
56758         (sift_states_backward): Mark MCTX parameter as const.
56759         (build_sifted_states): Likewise.
56760         (update_cur_sifted_state): Likewise.
56761         (sift_states_mkref): Likewise.
56762         (check_arrival_expand_ecl): Mark eclosure as const.
56763         (check_dst_limits_calc_pos_1): Likewise.
56764         * lib/regex_internal.h (re_match_context_t): Make dfa a const
56765         pointer.
56766
56767         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
56768
56769         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
56770         (transit_state_sb): Likewise.
56771         (transit_state_mb): Likewise.
56772         (sift_states_iter_mb): Likewise.
56773         (check_arrival_add_next_nodes): Likewise.
56774         (check_node_accept_bytes): Change first parameter to pointer-to-const.
56775         [_LIBC] (re_search_2_stub): Use mempcpy.
56776
56777         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
56778         mbrtowc for very simple UTF-8 case.
56779
56780         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
56781         a pointer-to-const.
56782         (re_acquire_state_context): Likewise.
56783         * lib/regex_internal.h: Adjust prototypes.
56784
56785         * lib/regex.c: Prevent using C++ compilers.
56786
56787         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
56788         (re_acquire_state_context): Likewise.
56789
56790 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56791
56792         * modules/regex (Depends-on): Add ssize_t.
56793
56794 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
56797         translation table.
56798
56799 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56800
56801         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
56802
56803 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
56804             Bruno Haible  <bruno@clisp.org>
56805
56806         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
56807         <sys/types.h> and <inttypes.h>.
56808
56809 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56810
56811         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
56812         `__error_t_defined', so argp.h will not typedef the former.
56813
56814 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
56817         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
56818         glibc names.  Even if glibc is changed to conform to POSIX, the
56819         traditional names will be available anyway, since regex depends on
56820         the extensions module.  Also, fix a longstanding typo in the
56821         implementation of Spencer ERE test #75 from grep 2.3.  Problems
56822         reported by Emanuele Giaquinta.  Also, change sense of cached
56823         variable, so that the message makes sense.
56824
56825 2006-03-24  Simon Josefsson  <jas@extundo.com>
56826
56827         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
56828         including some doc fixes.
56829         (base64_encode_alloc): Fix +1 bug on allocation failures.
56830
56831 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56832
56833         * lib/base64.c (base64_encode): Do not read past end of array with
56834         unsanitized input on systems with CHAR_BIT > 8.
56835
56836 2006-03-24  Eric Blake  <ebb9@byu.net>
56837
56838         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
56839
56840 2006-03-22  Karl Berry  <karl@gnu.org>
56841
56842         * config/srclist.txt (*setenv.[ch]): get from coreutils.
56843         * config/srclistvars.sh (COREUTILS): new var.
56844
56845 2006-03-17  Jim Meyering  <jim@meyering.net>
56846
56847         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
56848         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
56849
56850 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56851
56852         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
56853         no longer needs it.  Instead, check that regoff_t is as least
56854         as wide as ptrdiff_t.
56855
56856         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
56857         so that our regex.h stays compatible with the installed regex.
56858         This is helpful for installers who configure --without-included-regex.
56859         Problem reported by Emanuele Giaquinta.
56860
56861 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
56862
56863         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
56864         Typedef to long int, not to off_, as POSIX will likely change
56865         in that direction.
56866
56867 2006-03-15  Eric Blake  <ebb9@byu.net>
56868
56869         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
56870
56871 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56872
56873         * lib/argp-help.c (validate_uparams): Fix typo
56874         * lib/argp-parse.c (argp_default_options): Consistently begin help
56875         messages with a lowercase letter.
56876
56877 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
56878
56879         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
56880         overrun buffers and shouldn't be used (much as gets shouldn't be
56881         used).
56882         * lib/time_r.c (asctime_r, ctime_r): Likewise.
56883
56884 2006-03-08  Simon Josefsson  <jas@extundo.com>
56885
56886         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
56887         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56888
56889 2006-03-08  Simon Josefsson  <jas@extundo.com>
56890
56891         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
56892         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56893
56894 2006-03-08  Simon Josefsson  <jas@extundo.com>
56895
56896         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
56897         signal that configure disabled the device.
56898
56899 2006-03-08  Simon Josefsson  <jas@extundo.com>
56900
56901         * build-aux/maint.mk: Fix refresh-po, to handle no translated
56902         languages.
56903
56904 2006-03-07  Simon Josefsson  <jas@extundo.com>
56905
56906         * modules/getopt (Depends-on): Add unistd.
56907
56908         * modules/unistd: New file.
56909
56910 2006-03-07  Simon Josefsson  <jas@extundo.com>
56911
56912         * modules/gc-random: New file.
56913
56914 2006-03-07  Simon Josefsson  <jas@extundo.com>
56915
56916         * m4/unistd_h.m4: New file.
56917
56918 2006-03-07  Simon Josefsson  <jas@extundo.com>
56919
56920         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
56921         test to be side-effect free by storing the result in the cache
56922         variable gl_cv_lib_readline, and moving the assignment of
56923         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
56924         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56925
56926 2006-03-07  Simon Josefsson  <jas@extundo.com>
56927
56928         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
56929         error on missing devices (the functions will return an error).
56930
56931         * m4/gc.m4: Move random stuff to gc-random.m4
56932
56933 2006-03-07  Simon Josefsson  <jas@extundo.com>
56934
56935         * lib/unistd_.h: New file.
56936
56937 2006-03-07  Simon Josefsson  <jas@extundo.com>
56938
56939         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
56940
56941 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56942
56943         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
56944         Problem reported by Juan Manuel Guerrero.
56945
56946 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56947
56948         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
56949         the unistd module.
56950         * lib/getlogin_r.c: Likewise.
56951         * lib/getlogin_r.h: Likewise.
56952         * lib/glob.c: Likewise.
56953         * lib/pagealign_alloc.c: Likewise.
56954         * lib/unistd_.h: Remove; no longer needed.
56955
56956 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
56957
56958         * MODULES.html.sh (Support for systems lacking POSIX:2001):
56959         Add unistd.
56960         * modules/c-stack (Depends-on): Add unistd.
56961         * modules/getlogin_r: Likewise.
56962         * modules/glob: Likewise.
56963         * modules/pagealign_alloc: Likewise.
56964         * modules/unistd (Files): Remove lib/unistd_.h.
56965         (EXTRA_DIST): Remove.
56966         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
56967         need unistd_.h.
56968         (MOSTLYCLEANFILES): Remove unistd.h-t.
56969
56970 2006-03-03  Simon Josefsson  <jas@extundo.com>
56971
56972         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
56973
56974 2006-03-03  Simon Josefsson  <jas@extundo.com>
56975
56976         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
56977         libidn and bison.
56978
56979 2006-03-03  Simon Josefsson  <jas@extundo.com>
56980
56981         * build-aux/maint.mk: Add indent target.
56982
56983 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
56984
56985         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
56986         our replacement poll.h in any case, to avoid a differing
56987         declaration from a system header.  Seen on AIX.
56988
56989 2006-03-01  Simon Josefsson  <jas@extundo.com>
56990
56991         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
56992         <kasal@ucw.cz>.
56993
56994 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         * modules/gettime (Depends-on): Add extensions module.
56997         * modules/nanosleep (Depends-on): Likewise.
56998         * modules/settime (Depends-on): Likewise.
56999
57000 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
57003         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
57004         pedantically.
57005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57006         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
57007
57008         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
57009         not "==".  Reported by Ralf Wildenhues.
57010
57011 2006-03-01  Karl Berry  <karl@gnu.org>
57012
57013         * doc/Copyright/request-*: new files, synced from gnuorg.
57014
57015 2006-03-01  Karl Berry  <karl@gnu.org>
57016
57017         * config/srclist.txt (Copyright/*): new entries.
57018
57019 2006-02-28  Simon Josefsson  <jas@extundo.com>
57020
57021         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
57022
57023 2006-02-27  Simon Josefsson  <jas@extundo.com>
57024
57025         * lib/base64.h: Indent #define's.  From Jim Meyering
57026         <jim@meyering.net>.
57027
57028 2006-02-27  Jim Meyering  <jim@meyering.net>
57029
57030         Revert the change of 2006-02-24, so these files can continue
57031         to be sync'd from gettext.
57032         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
57033         of `config.h'.
57034
57035 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
57036
57037         * modules/intprops: New file.
57038         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57039         Add intprops.
57040         * modules/getloadavg (Files): Remove lib/intprops.h.
57041         (Depends-on): Add intprops.
57042         * modules/human: Likewise.
57043         * modules/inttostr: Likewise.
57044         * modules/openat: Likewise.
57045         * modules/sig2str: Likewise.
57046         * modules/userspec: Likewise.
57047         * modules/utimecmp: Likewise.
57048         * modules/xnanosleep: Likewise.
57049         * modules/xstrtol: Likewise.
57050
57051 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
57052
57053         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
57054         * modules/lock-tests (TESTS): Use $(EXEEXT).
57055         * modules/tls-tests: Likewise.
57056         * modules/argp-tests: Likewise.
57057         (check_PROGRAMS): New var, replacing...
57058         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
57059
57060 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57061
57062         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
57063         `config.h'.
57064
57065 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57066
57067         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
57068
57069 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57070
57071         Sync from coreutils.
57072         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
57073         gl_CHDIR_SAFER.
57074
57075 2006-02-22  Jim Meyering  <jim@meyering.net>
57076
57077         Sync from coreutils.
57078         * m4/chdir-safer.m4: New file.
57079
57080 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
57083         AT_FDCWD exceeds INT_MAX.
57084         * lib/openat.h (AT_FDCWD): Likewise.
57085
57086 2006-02-17  Eric Blake  <address@hidden>
57087
57088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
57089
57090 2006-02-16  Simon Josefsson  <jas@extundo.com>
57091
57092         * modules/getaddrinfo (Depends-on): Add sys_socket.
57093
57094 2006-02-15  Simon Josefsson  <jas@extundo.com>
57095
57096         * build-aux/maint.mk: Add dsyntax-check rule.
57097
57098 2006-02-15  Eric Blake  <ebb9@byu.net>
57099
57100         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
57101         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
57102         'present but cannot compile' warnings on cygwin.
57103         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
57104         use ws2tcpip.h if sys/socket.h works.
57105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
57106         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
57107
57108 2006-02-14  Simon Josefsson  <jas@extundo.com>
57109
57110         * modules/maintainer-makefile (Files): Rename.
57111
57112         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
57113         and (the local) Makefile.cfg to maint-cfg.mk.
57114
57115         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
57116         to the latter.
57117
57118         * modules/maintainer-makefile: New module.
57119
57120         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
57121         severaly stripped to make it possible to build it up from scratch
57122         with reliable tests.
57123
57124         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
57125         fixes to permit overriding the default actions when configure and
57126         makefile are not available.
57127
57128 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         Sync from coreutils.
57131         * modules/lstat (Depends-on): Don't depend on xalloc.
57132         (License): Change from GPL to LGPL, since this is now simply a
57133         replacement for a libc function.
57134
57135 2006-02-14  Jim Meyering  <jim@meyering.net>
57136
57137         Sync from coreutils.
57138
57139         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
57140         failure on deficient systems, and simplify gnulib lgpl dependencies.
57141         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
57142         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
57143
57144         * lib/xalloc-die.c: Remove unused definition of N_.
57145
57146 2006-02-14  Jim Meyering  <jim@meyering.net>
57147
57148         Sync from coreutils.
57149         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
57150         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
57151         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
57152         double-quote uses of that variable, to accommodate the rare case in
57153         which getmntent is available in none of the libraries checked.  This
57154         happens at least on FreeBSD 5.0.
57155
57156 2006-02-13  Simon Josefsson  <jas@extundo.com>
57157
57158         * gnulib-tool (Usage): Fix --import, from
57159         karl@freefriends.org (Karl Berry).
57160
57161 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
57162
57163         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
57164
57165 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
57166
57167         * lib/argp-namefrob.h: Restore changes accidentally lost during the
57168         "autoupdate" on 2005-12-12.
57169
57170 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57171
57172         * modules/closeout (Depends-on): Remove atexit.
57173
57174 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
57177         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
57178
57179 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57180
57181         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
57182         __EXTENSIONS__ if this causes compilation to fail.  Problem
57183         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
57184         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
57185
57186 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
57189         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
57190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
57191         All uses changed.
57192
57193 2006-01-26  Simon Josefsson  <jas@extundo.com>
57194
57195         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
57196         prototype is visible on mingw32.
57197
57198         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
57199         for mingw32.
57200
57201         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
57202         mingw32).
57203
57204 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
57207         attempt to open for write; this always fails, at least on POSIX
57208         hosts.  This reinstates the 2006-01-09 change, which was
57209         inadvertently removed.
57210
57211 2006-01-26  Bruno Haible  <bruno@clisp.org>
57212
57213         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
57214         Reported by Paul Eggert.
57215
57216 2006-01-26  Bruno Haible  <bruno@clisp.org>
57217             Paul Eggert  <eggert@cs.ucla.edu>
57218
57219         * lib/stdbool_.h (_Bool)
57220         [(! (defined __cplusplus || defined __BEOS__)
57221           && !defined __GNUC__
57222           && !(defined __HP_cc || defined __xlc__
57223                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
57224                || defined __sgi))]:
57225         #define to signed char in these cases too; this simplifies
57226         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
57227         etc., separately) and makes it more conservative.
57228
57229 2006-01-25  Simon Josefsson  <jas@extundo.com>
57230
57231         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
57232         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
57233         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
57234
57235 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57236
57237         * lib/argp-namefrob.h: Bugfix. Remove stray #
57238
57239 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57240
57241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
57242         so that we test the test.
57243         Check for yet another HP-UX cc bug involving *bool |= bool.
57244
57245 2006-01-25  Karl Berry  <karl@gnu.org>
57246
57247         * config/srclist.txt (vasnprintf.c): sync lost.
57248
57249 2006-01-25  Jim Meyering  <jim@meyering.net>
57250
57251         Sync from the stable (b5) branch of coreutils:
57252
57253         * lib/fts.c (fts_children): Don't let close() clobber errno from
57254         failed fchdir().
57255
57256         * lib/fts.c (fts_stat): When following a symlink-to-directory,
57257         don't necessarily interpret stat-fails+lstat-succeeds as indicating
57258         a dangling symlink.  That can also happen at least for ELOOP.
57259         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
57260         FYI, this bug predates the inclusion of fts.c in coreutils.
57261
57262         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
57263         in their own block, so pre-c99 compilers don't object.
57264
57265         Avoid the double-free (first in fts_read, second in fts_close) that
57266         would occur when an `active' directory is made inaccessible (e.g.,
57267         via chmod a-x) during a traversal.
57268         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57269         before returning.  Reproduce this failure by
57270         mkdir -p a/b; cd a; chmod a-x . b
57271         Reported by Stavros Passas.
57272
57273 2006-01-25  Jim Meyering  <jim@meyering.net>
57274
57275         * lib/fileblocks.c: Remove more useless parentheses.
57276         * lib/readutmp.h: Likewise.
57277
57278 2006-01-25  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
57281         warnings.
57282         Reported by Paul Eggert.
57283
57284 2006-01-25  Bruno Haible  <bruno@clisp.org>
57285
57286         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
57287         rid of a trap command. For Solaris sh.
57288         Reported by Mark D. Baushke <mdb@gnu.org>.
57289
57290 2006-01-24  Simon Josefsson  <jas@extundo.com>
57291
57292         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
57293         Bruno.
57294
57295 2006-01-24  Karl Berry  <karl@gnu.org>
57296
57297         * config/srclist.txt (argp-namefrob.h): sync lost.
57298
57299 2006-01-24  Jim Meyering  <jim@meyering.net>
57300
57301         * modules/openat (Files): Add lib/intprops.h.
57302         From Mark D. Baushke.
57303
57304 2006-01-24  Jim Meyering  <jim@meyering.net>
57305
57306         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
57307         Reported by Mark D. Baushke.
57308
57309 2006-01-24  Jim Meyering  <jim@meyering.net>
57310
57311         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
57312
57313 2006-01-24  Bruno Haible  <bruno@clisp.org>
57314
57315         * modules/strnlen (Maintainer): Change from glibc to all.
57316
57317 2006-01-24  Bruno Haible  <bruno@clisp.org>
57318
57319         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
57320         Patch by Paul Eggert.
57321
57322 2006-01-24  Bruno Haible  <bruno@clisp.org>
57323
57324         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
57325         already has it.
57326         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
57327         2005-11-26.
57328
57329         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
57330         'signed char' to avoid problems with the built-in _Bool type.
57331         Reported by Paul Eggert on 2005-11-26.
57332
57333 2006-01-24  Bruno Haible  <bruno@clisp.org>
57334
57335         * gnulib-tool (func_import): Avoid constructing complicated sed
57336         expressions inside backquote.
57337         Report and solution by Mark D. Baushke <mdb@gnu.org>.
57338
57339 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
57340
57341         These changes imported from libc.
57342         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
57343         test and two separate function calls.
57344         * lib/strndup.c (__strndup): Add libc_hidden_def.
57345
57346 2006-01-23  Simon Josefsson  <jas@extundo.com>
57347
57348         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
57349         Remove the test_*_SOURCES variable: automake infers it by default.
57350         * modules/tls-tests: Likewise.
57351
57352 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57353
57354         Work around porting bugs reported by Dieter in
57355         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
57356         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
57357         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
57358         Include "getopt.h" first, to check interface.
57359         (getenv): Declare only if defined HAVE_DECL_GETENV &&
57360         !HAVE_DECL_GETENV.
57361         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
57362         (__strndup): Revert to K&R-style function dfns, the glibc style.
57363         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
57364         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
57365         Include strnlen.h first, to get prototype properly.
57366         (strnlen): Renamed from __strnlen.
57367         Remove weak alias.
57368
57369 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
57372
57373 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         * config/srclist.txt: Adjust to reflect glibc reorganization.
57376         This affects only comments.
57377
57378 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57379
57380          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
57381          Reported by Bruce Korb <bkorb@gnu.org>.
57382
57383 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
57386         to pacify gcc -Wswitch-default.
57387
57388 2006-01-22  Bruno Haible  <bruno@clisp.org>
57389
57390         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
57391         temporary buffer for sprintf, take into account the precision also
57392         for 'd', 'i', 'u', 'o', 'x', 'X'.
57393
57394 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57395
57396         * modules/argp-tests: New module
57397         * tests/test-argp.c: New file
57398         * tests/test-argp-2.sh: New file
57399
57400 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
57401
57402         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
57403         (__argp_base_name): Removed
57404         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
57405         typo.
57406         (__argp_base_name): Provide macro definition or extern declaration
57407         depending on the configuration
57408
57409 2006-01-20  Simon Josefsson  <jas@extundo.com>
57410
57411         * modules/inet_ntop (Depends-on): Depend on sys_socket.
57412
57413 2006-01-20  Simon Josefsson  <jas@extundo.com>
57414
57415         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
57416
57417 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57418
57419         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
57420         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
57421         Suggested by Bruno Haible.
57422
57423 2006-01-20  Karl Berry  <karl@gnu.org>
57424
57425         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
57426         until changes propagate, I guess.
57427
57428 2006-01-19  Simon Josefsson  <jas@extundo.com>
57429
57430         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
57431
57432 2006-01-19  Simon Josefsson  <jas@extundo.com>
57433
57434         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
57435
57436 2006-01-19  Simon Josefsson  <jas@extundo.com>
57437
57438         * gnulib-tool: Set check_PROGRAMS.
57439
57440         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57441         modules/des-tests, modules/gc-arcfour-tests,
57442         modules/gc-arctwo-tests, modules/gc-des-tests,
57443         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57444         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57445         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57446         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57447         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57448         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
57449         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
57450         test_*_SOURCES.
57451
57452 2006-01-18  Simon Josefsson  <jas@extundo.com>
57453
57454         * modules/socklen (Depends-on): Depend on sys_socket.
57455
57456 2006-01-18  Simon Josefsson  <jas@extundo.com>
57457
57458         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
57459         modules/des-tests, modules/gc-arcfour-tests,
57460         modules/gc-arctwo-tests, modules/gc-des-tests,
57461         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
57462         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
57463         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
57464         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
57465         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
57466         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
57467         $(EXEEXT) to automake TESTS variable, for mingw32.
57468
57469 2006-01-17  Simon Josefsson  <jas@extundo.com>
57470
57471         * modules/socklen (Include): Need sys/socket.h.
57472
57473 2006-01-17  Bruno Haible  <bruno@clisp.org>
57474
57475         * modules/ssize_t (Include): Add <sys/types.h>.
57476
57477 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
57478
57479         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
57480         it's not portable and it doesn't work with cross-compiles.
57481         Problem reported by Bruno Haible.  Fix missing-$ typo in
57482         'test "gl_cv_ignore_unused_libraries" ...' that prevented
57483         -zignore from being used with Sun's C compiler.
57484
57485 2006-01-12  Simon Josefsson  <jas@extundo.com>
57486
57487         * lib/base64.c: Fix warning, reported by Bruno Haible
57488         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
57489
57490 2006-01-12  Bruno Haible  <bruno@clisp.org>
57491
57492         * modules/ldd: New file.
57493         * build-aux/ldd.sh.in: New file.
57494         * MODULES.html.sh (Support for building libraries and executables): Add
57495         ldd.
57496
57497 2006-01-12  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/ldd.m4: New file.
57500
57501 2006-01-12  Bruno Haible  <bruno@clisp.org>
57502
57503         * gnulib-tool (func_import, func_create_testdir): Don't go into an
57504         endless loop while replacing $auxdir with build-aux.
57505
57506 2006-01-11  Simon Josefsson  <jas@extundo.com>
57507
57508         * lib/stdint_.h (SIZE_MAX): Add missing (.
57509
57510 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         Sync from coreutils.
57513         * lib/md5.c: Fix commentary typos.
57514         (alignof, UNALIGNED_P): No need for a GCC-specific version.
57515         * lib/md5.h (__attribute__): Remove; unused.
57516         * lib/sha1.c: Fix commentary to match md5 better.
57517         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
57518         so that we don't need to worry about alignment.  All uses changed.
57519         This merges the 2005-10-28 md5 change into sha1.
57520
57521 2006-01-11  Jim Meyering  <jim@meyering.net>
57522
57523         Sync from coreutils.
57524         * lib/md5.c (OP): Fix spacing.
57525
57526 2006-01-11  Bruno Haible  <bruno@clisp.org>
57527
57528         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57529         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
57530         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
57531
57532 2006-01-11  Bruno Haible  <bruno@clisp.org>
57533
57534         Ensure automatic ordering between gl_LOCK and gl_ARGP.
57535         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
57536         the "early" section as well.
57537
57538 2006-01-11  Bruno Haible  <bruno@clisp.org>
57539
57540         Avoid "ar: no archive members specified" error on MacOS X.
57541         * gnulib-tool (func_modules_add_dummy): New function.
57542         (func_import, func_create_testdir): Invoke it.
57543
57544 2006-01-11  Bruno Haible  <bruno@clisp.org>
57545
57546         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
57547         with $auxdir in AC_CONFIG_FILES statements.
57548
57549 2006-01-11  Bruno Haible  <bruno@clisp.org>
57550
57551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57552         Initialize also noinst_HEADERS to empty.
57553
57554 2006-01-11  Bruno Haible  <bruno@clisp.org>
57555
57556         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
57557         variables.
57558         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
57559         autoreconf.
57560
57561 2006-01-11  Bruno Haible  <bruno@clisp.org>
57562
57563         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
57564         overridable by the user.
57565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57566
57567 2006-01-10  Simon Josefsson  <jas@extundo.com>
57568
57569         * modules/sys_socket: New file.
57570
57571 2006-01-10  Simon Josefsson  <jas@extundo.com>
57572
57573         * m4/sys_socket_h.m4: New file.
57574
57575 2006-01-10  Simon Josefsson  <jas@extundo.com>
57576
57577         * lib/socket_.h: New file.
57578
57579 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57580
57581         * modules/readutmp (Maintainer): Add myself.
57582
57583 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57584
57585         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
57586         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
57587         People who are still concerned with buggy memcmp implementations
57588         can invoke gl_FUNC_MEMCMP themselves.
57589
57590 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57591
57592         * lib/regex_internal.h (BITSET_WORD_BITS):
57593         Work around a bug in 64-bit PGC (before version 6.1-2), where the
57594         preprocessor mishandles large unsigned values as if they were signed.
57595         Problem reported by Claudio Fontana in
57596         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
57597
57598 2006-01-10  Jim Meyering  <jim@meyering.net>
57599
57600         Avoid the double-free (first in fts_read, second in fts_close) that
57601         would occur when an `active' directory is made inaccessible (e.g.,
57602         via chmod a-x) during a traversal.
57603         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
57604         before returning.  Reproduce this failure by
57605         mkdir -p a/b; cd a; chmod a-x . b
57606         Reported by Stavros Passas.
57607
57608         Sync from coreutils.
57609         * lib/sha1.c: Tweak grammar in a comment.
57610
57611 2006-01-10  Jim Meyering  <jim@meyering.net>
57612
57613         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
57614         Patch by Joerg Sonnenberger.
57615
57616 2006-01-10  Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/readutmp: Depend on module free.
57619         * modules/strtok_r: Depend on module restrict.
57620
57621 2006-01-10  Bruno Haible  <bruno@clisp.org>
57622
57623         * modules/gettext (configure.ac): Add an invocation of
57624         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
57625
57626 2006-01-10  Bruno Haible  <bruno@clisp.org>
57627
57628         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
57629         Reported by Werner Lemberg <wl@gnu.org>.
57630
57631 2006-01-10  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/localcharset.c: Update from GNU gettext.
57634
57635 2006-01-10  Bruno Haible  <bruno@clisp.org>
57636
57637         * lib/argp.h (__const): Remove macro. Use const instead.
57638         * lib/argp-fmtstream.h (__const): Likewise.
57639         * lib/glob_.h (__const): Remove macro.
57640         * lib/glob-libc.h: Use const instead of __const.
57641
57642 2006-01-10  Bruno Haible  <bruno@clisp.org>
57643
57644         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
57645         variable.
57646         Needed to avoid an automake error regarding the 'gettext' module.
57647
57648 2006-01-09  Simon Josefsson  <jas@extundo.com>
57649
57650         * modules/inet_ntop (Depends-on): Add restrict.
57651
57652 2006-01-09  Simon Josefsson  <jas@extundo.com>
57653
57654         * modules/gc-rijndael-tests (License): Put under LGPL.
57655
57656         * modules/gc-des-tests (License): Likewise.
57657
57658         * modules/gc-arcfour-tests (License): Likewise.
57659
57660         * modules/gc-arctwo-tests (License): Likewise.
57661
57662         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
57663
57664         * modules/gc-hmac-sha1-tests (Files): Likewise.
57665
57666         * modules/gc-hmac-md5-tests (License): Likewise.
57667
57668         * modules/gc-sha1-tests (License): Likewise.
57669
57670         * modules/gc-md5-tests (License): Likewise.
57671
57672         * modules/gc-md4-tests (License): Likewise.
57673
57674         * modules/gc-md2-tests (License): Likewise.
57675
57676         * modules/gc-tests (License): Likewise.
57677
57678         * modules/des-tests (License): Likewise.
57679
57680         * modules/md4-tests (License): Likewise.
57681
57682         * modules/md2-tests (License): Likewise.
57683
57684 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57685
57686         Sync from coreutils:
57687
57688         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
57689         * modules/lib-ignore: New file.
57690         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
57691         chdir-safer.m4, lchmod.m4.
57692         * modules/openat: Add mkdirat.c, openat-priv.h.
57693
57694 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57695
57696         Sync from coreutils.
57697         * m4/lib-ignore.m4: New file.
57698         * m4/lchmod.m4: New file.
57699
57700 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         Sync from coreutils.
57703         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
57704         for write access: POSIX says that must fail.
57705         * lib/fts.c (diropen): Likewise.
57706         * lib/save-cwd.c (save_cwd): Likewise.
57707         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
57708         well, for minor improvements on hosts that lack O_DIRECTORY.
57709         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
57710         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
57711         Fall back on chown if open failed with EACCES.
57712
57713         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
57714         Report an error at compile-time if only a 1-second nominal clock
57715         resolution is found.
57716
57717         * lib/lchmod.h: New file.
57718         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
57719         (make_dir_parents): Use lchown rather than chown, and
57720         lchmod rather than chmod.
57721
57722         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
57723         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
57724         "proc" reported by n0dalus.
57725
57726         * lib/mountlist.c: Include <limits.h>.
57727         (dev_from_mount_options)
57728         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
57729         New function.  It no longer assumes "dev=" has the System V meaning
57730         on Linux (since it doesn't).  It also parses "dev=" more carefully.
57731         (read_file_system_list)
57732         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
57733         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
57734         dev= in that case.
57735
57736         * lib/posixtm.h (PDS_PRE_2000): New macro.
57737         * lib/posixtm.c (year): Arg is now syntax_bits rather than
57738         allow_century.  All usages changed.  Reject dates outside the range
57739         1969-1999 if PDS_PRE_2000 is used.
57740
57741 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         Sync from coreutils.
57744         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
57745         (Time of day items): Mention the possibility of leap seconds.
57746         Problem reported by Dr. David Alan Gilbert.
57747
57748 2006-01-09  Jim Meyering  <jim@meyering.net>
57749
57750         Sync from coreutils.
57751
57752         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
57753
57754         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
57755
57756         * lib/modechange.c (mode_compile): Reject an invalid mode string
57757         that starts with an octal digit.  From Andreas Gruenbacher.
57758
57759         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
57760         and dup to open_safer and dup_safer, respectively.
57761         (openat_permissive): Fix typo in comment.
57762
57763         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
57764         "gettext.h"; either no longer needed or are guaranteed by openat.h.
57765         (_): Remove; no longer needed.
57766         (openat): Renamed from rpl_openat; no need for rpl_openat
57767         since openat.h renames openat for us.
57768         Replace most of the body with a call to openat_permissive,
57769         to avoid duplicate code.
57770         Port to (probably hypothetical) environments were mode_t is
57771         wider than int.
57772         (openat_permissive): Require mode arg, so that we can check
57773         types better.  Put it just after flags.  Change cwd failure
57774         indicator from pointer-to-bool to pointer-to-errno-value.
57775         All callers changed.
57776         Invoke openat_save_fail and/or openat_restore_fail if
57777         cwd_errno is null, so that openat can call us.
57778         (openat_permissive, fdopendir, fstatat, unlinkat):
57779         Simplify errno handling to avoid some duplicate code,
57780         as it's OK to set errno on success.
57781         * lib/openat.h: Revamp code so that function macros depend on
57782         __OPENAT_PREFIX only, not also on AT_FDCWD.
57783         (openat_ro): Remove.  Caller changed to use openat_permissive.
57784         (openat_permissive): Now a macro, if not a function.
57785         (openat_restore_fail, openat_save_fail): Now always functions,
57786         since mkdirat needs them even if __OPENAT_PREFIX is defined.
57787
57788         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
57789         and openat.c.
57790         * lib/mkdirat.c: Include openat-priv.h.
57791         Remove definitions of macros defined therein.
57792         * lib/openat.c: Likewise.
57793
57794         * lib/mkdirat.c (mkdirat): New file and function.
57795         * lib/openat.h (mkdirat): Declare.
57796
57797         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
57798
57799         * lib/openat.h (openat_permissive): Declare.
57800         (openat_ro): Define.
57801
57802         * lib/openat.c (EXPECTED_ERRNO): New macro.
57803         (openat_permissive): New function -- used in remove.c rewrite.
57804         (all functions): Set errno just before returning, only if there
57805         was an actual failure.
57806         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
57807
57808         Emulate openat-family functions using Linux's procfs, if possible.
57809         Idea and some code based on Ulrich Drepper's glibc changes.
57810
57811         * lib/openat.c: (BUILD_PROC_NAME): New macro.
57812         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
57813         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
57814         before falling back on save_cwd and restore_cwd.
57815         (fdopendir, fstatat, unlinkat): Likewise.
57816
57817         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
57818         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
57819
57820         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
57821         as second argument to va_arg.  Otherwise, some versions of gcc
57822         warn that `if this code is reached, the program will abort'.
57823
57824 2006-01-09  Jim Meyering  <jim@meyering.net>
57825
57826         Sync from coreutils.
57827         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
57828         Require openat-priv.h.
57829
57830 2006-01-09  Bruno Haible  <bruno@clisp.org>
57831
57832         * modules/strnlen (Include): Use strnlen.h.
57833
57834 2006-01-09  Bruno Haible  <bruno@clisp.org>
57835
57836         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
57837
57838 2006-01-09  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/sysexit_.h (EX_OK): New macro.
57841         Suggested by Martin Lambers <marlam@marlam.de>.
57842
57843 2006-01-09  Bruno Haible  <bruno@clisp.org>
57844
57845         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
57846         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
57847
57848 2006-01-09  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
57851         numbers.
57852
57853 2006-01-09  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
57856         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
57857         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
57858         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
57859
57860 2006-01-09  Bruno Haible  <bruno@clisp.org>
57861
57862         * build-aux/javacomp.sh.in: New file, moved from lib/.
57863         * modules/javacomp-script (Files): Update.
57864         (configure.ac): Add AC_CONFIG_FILES invocation.
57865         (EXTRA_DIST): Remove variable.
57866
57867         * build-aux/javaexec.sh.in: New file, moved from lib/.
57868         * modules/javaexec (Files): Update.
57869         (configure.ac): Add AC_CONFIG_FILES invocation.
57870         (EXTRA_DIST): Remove javaexec.sh.in.
57871
57872         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
57873         * modules/csharpcomp-script (Files): Update.
57874         (configure.ac): Add AC_CONFIG_FILES invocation.
57875         (EXTRA_DIST): Remove variable.
57876
57877         * build-aux/csharpexec.sh.in: New file, moved from lib/.
57878         * modules/csharpexec (Files): Update.
57879         (configure.ac): Add AC_CONFIG_FILES invocation.
57880         (EXTRA_DIST): Remove csharpexec.sh.in.
57881
57882 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57883
57884         Sync from coreutils.
57885
57886         Add POSIX ACL support
57887         * lib/acl.h (copy_acl, set_acl): Add declarations.
57888         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
57889         systems other than Linux.
57890         (chmod_or_fchmod): New function: use fchmod when possible,
57891         and chmod otherwise.
57892         (file_has_acl): Add a POSIX ACL implementation, with a
57893         Linux-specific subcase.
57894         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
57895         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
57896         acls are unsupported.
57897         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
57898         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
57899         are unsupported.
57900
57901 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
57902
57903         Sync from coreutils.
57904         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
57905
57906 2006-01-07  Bruno Haible  <bruno@clisp.org>
57907
57908         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
57909         gl_EARLY.
57910
57911 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * lib/strftime.c (tzname): Don't declare if it is already #defined.
57914         Problem reported for Mingw by Mark Junker.
57915
57916 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57917
57918         * README: Gnulib normally doesn't generate a tarball.
57919
57920 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
57921
57922         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
57923         long int, not int, for nanosecond counts, so that people who are
57924         used to POSIX struct timespec won't be surprised.  Reported by Jim
57925         Meyering.
57926
57927 2005-12-28  Bruno Haible  <bruno@clisp.org>
57928
57929         * build-aux/config.rpath: Update from GNU gettext.
57930
57931 2005-12-16  Jim Meyering  <jim@meyering.net>
57932
57933         * modules/fprintftime: New module.
57934         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
57935
57936 2005-12-16  Jim Meyering  <jim@meyering.net>
57937
57938         * m4/fprintftime.m4: New file.
57939
57940 2005-12-16  Jim Meyering  <jim@meyering.net>
57941
57942         * lib/fprintftime.c, lib/fprintftime.h: New files.
57943
57944 2005-12-15  Simon Josefsson  <jas@extundo.com>
57945
57946         * modules/socklen (configure.ac): Fix M4 macro name, to align with
57947         new m4/socklen.m4.
57948
57949 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57950
57951         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
57952         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
57953
57954 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57955
57956         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
57957         * lib/argp-help.c (fill_in_uparams): Check if the constructed
57958         struct uparams is valid. Fall back to the default values if it is
57959         not.
57960
57961 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57962
57963         * modules/argp (Files): Add argp-pin.c
57964         (Depends-on): dirname
57965         (lib_SOURCES): Add argp-pin.c
57966
57967 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57968
57969         * m4/argp.m4:  Check if program_invocation_name and
57970         program_invocation_short_name are declared and define appropriate
57971         macros if they are not.
57972
57973 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57974
57975         * lib/argp-help.c (__argp_base_name): New function
57976         (__argp_short_program_name): Rewrite using __argp_base_name
57977         * lib/argp-namefrob.h: Define program_invocation_name and
57978         program_invocation_short_name if requested
57979         (__argp_base_name): Add prototype
57980         * lib/argp-parse.c (argp_def): Use gettext wrappers
57981         (argp_default_parser): Use __argp_base_name
57982         * lib/argp-pin.c: New file. Defines program_invocation_name and
57983         program_invocation_short_name on systems that lack them.
57984
57985 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57986
57987         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
57988         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57989         porting problem reported by Georg Schwarz in
57990         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57991
57992 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
57995         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
57996         porting problem reported by Georg Schwarz in
57997         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
57998
57999 2005-12-05  Bruno Haible  <bruno@clisp.org>
58000
58001         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
58002         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
58003         Reported by Mark Junker <mjscod@gmx.de>.
58004
58005 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
58006
58007         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
58008         Use implementation from Albert Chin, with some
58009         comments/corrections by Stepan Kasal and myself.
58010
58011 2005-12-02  Bruno Haible  <bruno@clisp.org>
58012
58013         * gnulib-tool (func_import): Accept GPLed build tool modules when
58014         --lgpl is given.
58015         * modules/csharpcomp-script: New file.
58016         * modules/csharpcomp: Depend on it.
58017         * modules/javacomp-script: New file.
58018         * modules/javacomp: Depend on it.
58019         Suggested by Simon Josefsson.
58020
58021 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
58024         statement, to work around an HP-UX 10.20 compiler bug reported by
58025         Peter O'Gorman.
58026
58027 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58028
58029         * modules/savedir (Depends-on): Add openat.
58030
58031 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
58032
58033         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
58034         (uintmax_t) [defined uintmax_t]: Do not declare.
58035         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
58036         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
58037         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
58038         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
58039         sake of portability to weird hosts that C allows (though we don't
58040         know of any practical examples).
58041
58042         * lib/savedir.h (fdsavedir): New decl.
58043         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
58044         contains most of the former guts of savedir.
58045         (savedir): Use savedirstream.
58046         Include "openat.h".
58047
58048 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * modules/obstack (Files): Add m4/ulonglong.m4.
58051         Problem reported by Davide Angelocola.
58052
58053 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58054
58055         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
58056         coreutils no longer futzes with rounding modes.
58057
58058 2005-11-14  Jim Meyering  <jim@meyering.net>
58059
58060         * lib/mkstemp-safer.c: Include <config.h>, required for possible
58061         replacement of mkstemp.
58062
58063 2005-11-10  Simon Josefsson  <jas@extundo.com>
58064
58065         * lib/readline.c: Remove EOL.
58066
58067 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58068
58069         * modules/gethrxtime (Depends-on): Add gettime.
58070
58071 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58072
58073         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
58074         or gettimeofday; no longer needed.
58075
58076 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
58079         time business.
58080         (gethrxtime) [! (HAVE_NANOUPTIME
58081         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
58082         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
58083         our own approximation.
58084
58085 2005-11-08  Eric Blake  <ebb9@byu.net>
58086
58087         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58088
58089 2005-11-08  Eric Blake  <ebb9@byu.net>
58090
58091         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
58092
58093 2005-11-04  Bruno Haible  <bruno@clisp.org>
58094
58095         * gnulib-tool: Implement --update mode.
58096
58097 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58098
58099         Fix porting problem reported by Theodoros V. Kalamatianos.
58100         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
58101         Don't assume that futimes failing means we must fail.
58102
58103 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
58104
58105         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
58106         variables to suggest the intended function of the PATH_MAX check.
58107
58108 2005-10-30  Kean Johnston  <jkj@sco.com>
58109
58110         Trivial changes to support SCO systems.
58111         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
58112         as PATH_MAX.
58113         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
58114         where __ptr is null when no I/O is pending.
58115
58116 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
58119         leave errno alone.  Problem reported by Dmitry V. Levin.
58120
58121 2005-10-28  Simon Josefsson  <jas@extundo.com>
58122
58123         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
58124         Test more.
58125
58126         * tests/test-gc-md2.c, tests/test-md2.c: New files.
58127
58128         * modules/md2, modules/md2-tests: New files.
58129
58130 2005-10-28  Simon Josefsson  <jas@extundo.com>
58131
58132         * m4/inet_ntop.m4: More tests.
58133
58134         * m4/gc-md2.m4, md2.m4: New file.
58135
58136 2005-10-28  Simon Josefsson  <jas@extundo.com>
58137
58138         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
58139         "restrict" keywords, as per POSIX.  Protect the function
58140         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
58141         Don't use K&R prototypes.  Check the sprintf return values.
58142         Re-define EAFNOSUPPORT if not present.  Indent.
58143
58144         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
58145         suggested by Bruno Haible <bruno@clisp.org>.
58146
58147         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
58148
58149         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
58150
58151         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
58152         libgcrypt).
58153
58154         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
58155
58156         * lib/md2.h, lib/md2.c: New files.
58157
58158 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
58159
58160         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
58161         errno alone.  Problem reported by Frederic Jolliton.
58162
58163 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58164
58165         * modules/verify (License): Change from GPL to LGPL.  This is a
58166         tiny module and there are apparently near-equivalents that are
58167         under the BSD license.
58168
58169 2005-10-24  Simon Josefsson  <jas@extundo.com>
58170
58171         * modules/sha1: Relicense to LGPL.
58172
58173 2005-10-24  Simon Josefsson  <jas@extundo.com>
58174
58175         * lib/md4.h: Shrink buffer size, now that we changed the type.
58176
58177 2005-10-23  Simon Josefsson  <jas@extundo.com>
58178
58179         * gnulib-tool (func_import): Fix --tests-base.
58180
58181 2005-10-22  Simon Josefsson  <jas@extundo.com>
58182
58183         * modules/arcfour (Depends-on): Need stdint.
58184
58185 2005-10-22  Simon Josefsson  <jas@extundo.com>
58186
58187         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
58188         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
58189
58190 2005-10-22  Simon Josefsson  <jas@extundo.com>
58191
58192         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
58193         suggested by Bruno Haible <bruno@clisp.org>.
58194
58195 2005-10-22  Simon Josefsson  <jas@extundo.com>
58196
58197         * lib/crc.h: Include stddef.h, for size_t.
58198
58199 2005-10-22  Simon Josefsson  <jas@extundo.com>
58200
58201         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
58202         arcfour_context struct (simplify test vector testing in GNU
58203         Shishi).
58204
58205 2005-10-21  Simon Josefsson  <jas@extundo.com>
58206
58207         * modules/des, modules/des-tests: New files.
58208
58209         * modules/gc-des, modules/gc-des-tests: New files.
58210
58211         * tests/test-des.c, tests/test-gc-des.c: New file.
58212
58213 2005-10-21  Simon Josefsson  <jas@extundo.com>
58214
58215         * modules/arctwo, modules/arctwo-tests: New files.
58216
58217         * tests/test-arctwo.c: New file.
58218
58219         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
58220
58221         * tests/test-gc-arctwo.c: New file.
58222
58223 2005-10-21  Simon Josefsson  <jas@extundo.com>
58224
58225         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
58226         Bruno Haible <bruno@clisp.org>.
58227
58228         * m4/gc-des.m4: New file.
58229
58230 2005-10-21  Simon Josefsson  <jas@extundo.com>
58231
58232         * m4/arctwo.m4: New file.
58233
58234         * m4/gc-arctwo.m4: New file.
58235
58236 2005-10-21  Simon Josefsson  <jas@extundo.com>
58237
58238         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
58239         block.
58240
58241 2005-10-21  Simon Josefsson  <jas@extundo.com>
58242
58243         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
58244         <bruno@clisp.org>.
58245
58246         * lib/hmac-sha1.c (hmac_sha1): Likewise.
58247
58248         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
58249         Bruno Haible <bruno@clisp.org>.
58250
58251         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
58252         <bruno@clisp.org>.
58253
58254 2005-10-21  Simon Josefsson  <jas@extundo.com>
58255
58256         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
58257
58258 2005-10-21  Simon Josefsson  <jas@extundo.com>
58259
58260         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
58261
58262 2005-10-21  Simon Josefsson  <jas@extundo.com>
58263
58264         * lib/des.h, lib/des.c: New files.
58265
58266         * lib/gc-gnulib.c: Support DES.c
58267
58268 2005-10-21  Simon Josefsson  <jas@extundo.com>
58269
58270         * lib/arctwo.h, lib/arctwo.c: New files.
58271
58272         * lib/gc-gnulib.c: Support ARCTWO.
58273
58274 2005-10-21  Simon Josefsson  <jas@extundo.com>
58275
58276         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
58277         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58278
58279 2005-10-21  Simon Josefsson  <jas@extundo.com>
58280
58281         * gnulib-tool (func_import, func_create_testdir): Define automake
58282         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
58283         Makefile.am snippet),
58284         suggested by Bruno Haible <bruno@clisp.org>.
58285
58286         * modules/gc (Makefile.am): Use it.
58287
58288 2005-10-21  Bruno Haible  <bruno@clisp.org>
58289
58290         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
58291         patch.
58292
58293 2005-10-19  Simon Josefsson  <jas@extundo.com>
58294
58295         * tests/test-gc-rijndael.c: New file.
58296
58297         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
58298
58299 2005-10-19  Simon Josefsson  <jas@extundo.com>
58300
58301         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
58302         interface too.
58303
58304 2005-10-19  Simon Josefsson  <jas@extundo.com>
58305
58306         * tests/test-gc-arcfour.c: New file.
58307
58308         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
58309
58310 2005-10-19  Simon Josefsson  <jas@extundo.com>
58311
58312         * modules/gc-md4, modules/gc-md4-tests: New file.
58313
58314         * tests/test-gc-md4.c: New file.
58315
58316 2005-10-19  Simon Josefsson  <jas@extundo.com>
58317
58318         * m4/gc-md4.m4: New file.
58319
58320 2005-10-19  Simon Josefsson  <jas@extundo.com>
58321
58322         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
58323         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
58324         <kasal@ucw.cz>.
58325
58326 2005-10-19  Simon Josefsson  <jas@extundo.com>
58327
58328         * m4/gc-arcfour.m4: New file.
58329
58330         * m4/gc-rijndael.m4: New file.
58331
58332 2005-10-19  Simon Josefsson  <jas@extundo.com>
58333
58334         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
58335
58336 2005-10-19  Simon Josefsson  <jas@extundo.com>
58337
58338         * lib/gc-gnulib.c: Support ARCFOUR.
58339
58340 2005-10-19  Simon Josefsson  <jas@extundo.com>
58341
58342         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
58343         support.
58344
58345         * lib/gc.h: Add ECB enum type.
58346
58347         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
58348
58349 2005-10-18  Simon Josefsson  <jas@extundo.com>
58350
58351         * tests/test-md5.c: New file.
58352
58353         * modules/md5-tests: New file.
58354
58355 2005-10-18  Simon Josefsson  <jas@extundo.com>
58356
58357         * tests/test-md4.c: New file.
58358
58359         * modules/md4, modules/md4-tests: New files.
58360
58361 2005-10-18  Simon Josefsson  <jas@extundo.com>
58362
58363         * m4/md4.m4: New file.
58364
58365 2005-10-18  Simon Josefsson  <jas@extundo.com>
58366
58367         * lib/md4.h, lib/md4.c: New files, based on md5.?.
58368
58369 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
58370
58371         * gnulib-tool (func_create_testdir): Omit the second check whether
58372         BUILT_SOURCES in nonempty.
58373
58374 2005-10-17  Simon Josefsson  <jas@extundo.com>
58375
58376         * tests/test-rijndael.c: New file.
58377
58378 2005-10-17  Simon Josefsson  <jas@extundo.com>
58379
58380         * modules/sha1: Depend on stdint instead of md5.
58381
58382         * modules/md5: Depend on stdint, remove uint32_t.
58383
58384 2005-10-17  Simon Josefsson  <jas@extundo.com>
58385
58386         * modules/gc-sha1-tests: New file.
58387
58388         * tests/test-gc-sha1.c: New file.
58389
58390 2005-10-17  Simon Josefsson  <jas@extundo.com>
58391
58392         * m4/md5.m4: Remove call to uint32_t.m4.
58393
58394 2005-10-17  Simon Josefsson  <jas@extundo.com>
58395
58396         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
58397
58398         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
58399         md5.h.
58400
58401         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
58402
58403         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
58404
58405 2005-10-17  Simon Josefsson  <jas@extundo.com>
58406
58407         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
58408
58409 2005-10-17  Simon Josefsson  <jas@extundo.com>
58410
58411         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
58412
58413 2005-10-17  Simon Josefsson  <jas@extundo.com>
58414
58415         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
58416
58417         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
58418
58419 2005-10-17  Bruno Haible  <bruno@clisp.org>
58420
58421         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
58422         that it can also be used in a test.
58423
58424 2005-10-16  Bruno Haible  <bruno@clisp.org>
58425
58426         * gnulib-tool (func_emit_tests_Makefile_am): Also define
58427         TESTS_ENVIRONMENT, so that individual tests can augment it.
58428
58429         * gnulib-tool (func_create_testdir): Use an intermediate target for
58430         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
58431         macros, like $(ALLOCA_H), which cannot be passed through the command
58432         line.
58433
58434 2005-10-15  Simon Josefsson  <jas@extundo.com>
58435
58436         * modules/rijndael-tests: New file.
58437
58438         * modules/rijndael: New file.
58439
58440 2005-10-15  Simon Josefsson  <jas@extundo.com>
58441
58442         * m4/rijndael.m4: New file.
58443
58444 2005-10-15  Simon Josefsson  <jas@extundo.com>
58445
58446         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
58447
58448         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
58449
58450 2005-10-14  Simon Josefsson  <jas@extundo.com>
58451
58452         * tests/test-arcfour.c: New file.
58453
58454         * modules/arcfour, modules/arcfour-tests: New files.
58455
58456 2005-10-14  Simon Josefsson  <jas@extundo.com>
58457
58458         * m4/arcfour.m4: New file.
58459
58460 2005-10-14  Simon Josefsson  <jas@extundo.com>
58461
58462         * lib/arcfour.h, lib/arcfour.c: New files.
58463
58464 2005-10-14  Roland McGrath  <roland@redhat.com>
58465
58466         Import from libc.  [BZ #1331]
58467         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
58468         macro argument.
58469         Reported by Matej Vela <vela@debian.org>.
58470
58471 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58472
58473         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
58474         include <wchar.h>; no longer needed.
58475
58476 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58477
58478         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
58479
58480 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
58481         and  Ulrich Drepper  <drepper@redhat.com>
58482
58483         Import from libc.
58484         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
58485         instead of inline stream orientation test and two separate
58486         function calls.  Pay no attention to USE_IN_LIBIO.
58487
58488 2005-10-13  Simon Josefsson  <jas@extundo.com>
58489
58490         * modules/gc-hmac-md5-tests: New file.
58491
58492         * tests/test-gc-hmac-sha1.c: New file.
58493
58494         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
58495
58496         * modules/gc-hmac-md5-tests: New file.
58497
58498         * tests/test-gc-md5.c: New file.
58499
58500         * modules/gc-md5-tests: New file.
58501
58502 2005-10-13  Simon Josefsson  <jas@extundo.com>
58503
58504         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
58505         Move memory allocation outside of loop.
58506
58507 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
58508
58509         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
58510         intermediate directory is in a read-only file system.  Problem
58511         reported by Eric Blake.
58512
58513 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
58514
58515         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
58516
58517 2005-10-12  Simon Josefsson  <jas@extundo.com>
58518
58519         * tests/test-hmac-sha1.c: New file.
58520
58521         * modules/hmac-sha1-tests: New file.
58522
58523         * modules/hmac-sha1: New file.
58524
58525 2005-10-12  Simon Josefsson  <jas@extundo.com>
58526
58527         * modules/gc-sha1: New file.
58528
58529 2005-10-12  Simon Josefsson  <jas@extundo.com>
58530
58531         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
58532
58533         * tests/test-gc-pbkdf2-sha1.c: New file.
58534
58535 2005-10-12  Simon Josefsson  <jas@extundo.com>
58536
58537         * modules/gc-md5, modules/gc-hmac-md5: New files.
58538
58539         * modules/gc (Files): Remove md5, memxor and hmac files.
58540
58541 2005-10-12  Simon Josefsson  <jas@extundo.com>
58542
58543         * m4/gc-pbkdf2-sha1.m4: New file.
58544
58545         * m4/gc-hmac-sha1.m4: New file.
58546
58547         * m4/gc-sha1: New file.
58548
58549         * m4/hmac-sha1.m4: New file.
58550
58551 2005-10-12  Simon Josefsson  <jas@extundo.com>
58552
58553         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
58554
58555         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
58556
58557 2005-10-12  Simon Josefsson  <jas@extundo.com>
58558
58559         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
58560         suggested by Bruno Haible <bruno@clisp.org>.
58561
58562 2005-10-12  Simon Josefsson  <jas@extundo.com>
58563
58564         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
58565
58566 2005-10-12  Simon Josefsson  <jas@extundo.com>
58567
58568         * lib/gc-pbkdf2-sha1.c: New file.
58569
58570         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
58571
58572 2005-10-12  Simon Josefsson  <jas@extundo.com>
58573
58574         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
58575
58576         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
58577
58578 2005-10-12  Simon Josefsson  <jas@extundo.com>
58579
58580         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
58581         GC_USE_HMAC_MD5, respectively.
58582
58583         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
58584         (gc_md5): Fix typo.
58585
58586         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
58587
58588         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
58589
58590         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
58591
58592 2005-10-12  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
58595         Reported by Stepan Kasal <kasal@ucw.cz>.
58596
58597 2005-10-11  Simon Josefsson  <jas@extundo.com>
58598
58599         * tests/test-crc.c: New file.
58600
58601         * modules/crc, modules/crc-tests: New files.
58602
58603 2005-10-11  Simon Josefsson  <jas@extundo.com>
58604
58605         * m4/crc.m4: New file.
58606
58607 2005-10-11  Simon Josefsson  <jas@extundo.com>
58608
58609         * lib/gc.h: Add gc_hash and gc_hash_buffer.
58610
58611         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
58612
58613         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
58614
58615 2005-10-11  Simon Josefsson  <jas@extundo.com>
58616
58617         * lib/crc.h, lib/crc.c: New files.
58618
58619         * lib/gc.h (gc_hash_buffer): Add doc.
58620
58621 2005-10-11  Bruno Haible  <bruno@clisp.org>
58622
58623         * modules/c-strcasestr: New file.
58624         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
58625
58626 2005-10-11  Bruno Haible  <bruno@clisp.org>
58627
58628         * modules/c-strcase: New file.
58629         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
58630
58631 2005-10-11  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/strcasecmp.c: Include limits.h.
58634         (strcasecmp): Avoid integer overflow on exotic platforms.
58635         * lib/strncasecmp.c: Include limits.h.
58636         (strncasecmp): Avoid integer overflow on exotic platforms.
58637         Reported by Paul Eggert.
58638
58639 2005-10-11  Bruno Haible  <bruno@clisp.org>
58640
58641         * lib/c-strcasestr.h: New file, from GNU gettext.
58642         * lib/c-strcasestr.c: New file, from GNU gettext.
58643
58644 2005-10-11  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/c-strcase.h: New file, from GNU gettext.
58647         * lib/c-strcasecmp.c: New file, from GNU gettext.
58648         * lib/c-strncasecmp.c: New file, from GNU gettext.
58649
58650 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58651
58652         * modules/mempcpy (License): GPL -> LGPL.
58653         * modules/strchrnul (License): Likewise.
58654         * modules/sysexits (License): Likewise.
58655
58656 2005-10-08  Simon Josefsson  <jas@extundo.com>
58657
58658         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
58659
58660 2005-10-07  Simon Josefsson  <jas@extundo.com>
58661
58662         * m4/memxor.m4: Remove gl_C_RESTRICT call.
58663
58664 2005-10-06  Simon Josefsson  <jas@extundo.com>
58665
58666         * tests/test-hmac-md5.c: New file.
58667
58668         * modules/hmac-md5-tests: New file.
58669
58670         * modules/hmac-md5: New file.
58671
58672 2005-10-06  Simon Josefsson  <jas@extundo.com>
58673
58674         * m4/hmac-md5.m4: New file.
58675
58676         * m4/memxor.m4: Require gl_C_RESTRICT.
58677
58678 2005-10-06  Simon Josefsson  <jas@extundo.com>
58679
58680         * lib/memxor.c (memxor): Avoid casts and warnings.
58681
58682 2005-10-06  Simon Josefsson  <jas@extundo.com>
58683
58684         * lib/hmac-md5.c: New file.
58685
58686         * lib/hmac.h: New file.
58687
58688 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58689
58690         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
58691         promotes to int, not unsigned int, to catch the AIX 5.3
58692         compiler bug.
58693
58694 2005-10-05  Simon Josefsson  <jas@extundo.com>
58695
58696         * modules/memxor: New file.
58697
58698         * modules/iconv (Files): Move config.rpath to havelib, it is used
58699         there.
58700
58701         * modules/havelib (Files): Add config.rpath.
58702
58703 2005-10-05  Simon Josefsson  <jas@extundo.com>
58704
58705         * m4/memxor.m4: New file.
58706
58707 2005-10-05  Simon Josefsson  <jas@extundo.com>
58708
58709         * lib/memxor.c (memxor): Fix compiler error.
58710
58711         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
58712         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
58713
58714         * lib/memxor.h, lib/memxor.c: New files.
58715
58716         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
58717         we assume all systems have it, suggested by Jim Meyering
58718         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
58719         any systems lack sys/socket.h; mingw32 is known to lack it, but we
58720         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
58721         same reasons.
58722
58723 2005-10-05  Simon Josefsson  <jas@extundo.com>
58724
58725         * config/srclist.txt: Add glibc bug 1423 for md5.h.
58726
58727 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58728
58729         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
58730         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
58731         needed, since the source code now assumes these .h files.
58732
58733 2005-10-05  Derek Price  <derek@ximbiot.com>
58734
58735         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
58736
58737 2005-10-05  Bruno Haible  <bruno@clisp.org>
58738
58739         * modules/stdint (License): Change to LGPL.
58740
58741 2005-10-04  Simon Josefsson  <jas@extundo.com>
58742
58743         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
58744         D. Baushke" <mdb@gnu.org>.
58745
58746 2005-10-04  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/verify.h (verify_true): Provide alternative definition for C++.
58749
58750 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
58753         (SSIZE_MAX): New macro, if not already defined.
58754         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
58755         than 2 GiB.
58756
58757 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         Sync from coreutils.
58760         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
58761         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
58762         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
58763         ULLONG_MAX doesn't work with 2.7.2.1.
58764
58765 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
58768         From Ben Pfaff.
58769
58770         * modules/exclude (Depends-on): Depend on verify.
58771         * modules/strtoimax (Depends-on): Likewise.
58772         * modules/utimecmp (Depends-on): Likewise.
58773
58774 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
58775
58776         * lib/exclude.c: Include verify.h.
58777         (verify): Remove.  All callers changed to use verify.h's version.
58778         * lib/strtoimax.c: Likewise.
58779         * lib/utimecmp.c: Likewis.e
58780
58781         Sync from coreutils.
58782         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
58783         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
58784         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
58785         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
58786         bother returning ENOSYS if settimeofday or stime fails; just let
58787         them return whatever errno they want to return.
58788         * lib/utimens.c: Include unistd.h, for dup2.
58789         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
58790         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
58791
58792 2005-10-02  Jim Meyering  <jim@meyering.net>
58793
58794         Sync from coreutils.
58795         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
58796         from glibc-2.2.5 that fails for read-only files.
58797
58798 2005-10-02  Jim Meyering  <jim@meyering.net>
58799
58800         Sync from coreutils.
58801         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
58802         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
58803         `#if HAVE_CONFIG_H'.
58804         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
58805         Remove AT_FDCWD test.
58806         Do not consume the fd unless successful.
58807         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
58808         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
58809         block, so that we don't even try to compile it if settimeofday is
58810         available.  This works around a compilation failure on OSF1 V5.1,
58811         due to stime requiring a `long int*' while tv_sec is `int'.
58812
58813 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
58814
58815         Sync from coreutils.
58816         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
58817         against `yes', rather than just testing for nonempty.
58818
58819 2005-10-01  Simon Josefsson  <jas@extundo.com>
58820
58821         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
58822         and Darwin.
58823
58824         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
58825         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
58826         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
58827         freeaddrinfo and gai_strerror are declared by the POSIX headers.
58828         Check if struct addrinfo is declared.
58829
58830 2005-10-01  Simon Josefsson  <jas@extundo.com>
58831
58832         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
58833         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
58834         AI_* and EAI_* definitions.  Protect function declarations.
58835
58836 2005-10-01  Jim Meyering  <jim@meyering.net>
58837
58838         Sync from coreutils.
58839
58840         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
58841         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
58842         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
58843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58844         in the inet and nsl libraries.  Required on Solaris 5.7.
58845
58846 2005-10-01  Jim Meyering  <jim@meyering.net>
58847
58848         Sync from coreutils.
58849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
58850         in the inet and nsl libraries.  Required on Solaris 5.7.
58851
58852 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
58853
58854         * lib/getdelim.c (getdelim): Remove unused variables.
58855
58856 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
58859         so that the code works even with ancient cpp.  Portability problem
58860         with GCC 2.7.2.1 reported by Thomas M.Ott.
58861
58862 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         * modules/regex (Depends-on): Add strcase.
58865
58866         * modules/gethostname (Licence): Change from GPL to LGPL, since
58867         gethostname.c is a trivial implementation of a standard library
58868         function.
58869         * modules/poll (License): Change from GPL to LGPL, since it's
58870         derived from LGPL code.
58871
58872 2005-09-27  Jim Meyering  <jim@meyering.net>
58873
58874         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
58875         HAVE_CONFIG_H.
58876
58877         * lib/intprops.h (signed_type_or_expr__): Define.
58878         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
58879         for unsigned types.
58880
58881 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58882
58883         * lib/verify.h (verify_expr): Remove, replacing with:
58884         (verify_true): New macro that returns true instead of void.
58885         (verify_type__): Remove.
58886         (verify): Use verify_true rather than verify_type__.
58887
58888 2005-09-26  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
58891         is necessary.
58892         (lib_SOURCES): Remove mbchar.c.
58893         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
58894         (Files): Add m4/mbrtowc.m4.
58895         * modules/mbiter: Likewise.
58896         * modules/mbuiter: Likewise.
58897
58898 2005-09-26  Bruno Haible  <bruno@clisp.org>
58899
58900         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
58901         compile mbchar.c if they are not both present.
58902         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
58903         * m4/mbiter.m4 (gl_MBITER): Likewise.
58904         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
58905         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
58906         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
58907
58908 2005-09-25  Jim Meyering  <jim@meyering.net>
58909
58910         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
58911         also uses socklen_t.
58912
58913 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
58914
58915         * lib/utimens.c (ENOSYS): Define if not already defined.
58916         (futimens): Support having a null PATH if the file descriptor
58917         is nonnegative.
58918
58919         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
58920         Remove.
58921         (__attribute): Define to empty unless GCC 3.1 or later.
58922         This works around a core dump on OpenBSD 3.4, which has GCC
58923         2.95.3, which dumps core when given __attribute__(()).  It also
58924         simplifies other tests, since we really don't want to bother with
58925         worrying about which ancient version of GCC supported what.
58926         Original problem reported by Yoann Vandoorselaere, with part of
58927         the fix suggested by Derek Price.
58928
58929 2005-09-24  Jim Meyering  <jim@meyering.net>
58930
58931         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
58932         so we can once again use a positive bitfield width of 1 -- now we
58933         don't have to explain why we were using a bitfield width of 2.
58934
58935 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58936
58937         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
58938         and similarly for the other external symbols.  Problem reported
58939         by James Gallager.
58940
58941         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
58942         bug reported by Jim Meyering.
58943
58944         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
58945         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
58946         not needed, since socklen is a prerequisite module.
58947
58948 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
58949
58950         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
58951         Problem reported by Eric Blake.
58952         (getaddrinfo): Initialize se so that it's not garbage.
58953         Redo internal storage allocation so that it doesn't make unportable
58954         assumptions about alignment.
58955         Fix a memory leak.
58956
58957         * lib/utimens.c (futimens): Use futimesat if available.
58958         Prefer it to futimes since it doesn't have the futimes bug.
58959
58960         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
58961         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
58962         Instead, declare a function that returns a pointer to an array,
58963         and use verify_type__ to declare the size of the array.
58964         Problem and germ of a solution reported by Bruno Haible.
58965         (verify_type__): Use 2, not 1, for bitfield size, to avoid
58966         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
58967
58968 2005-09-23  Jim Meyering  <jim@meyering.net>
58969
58970         Sync from coreutils.
58971         Correct build failure (socklen_t not defined) on at least
58972         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
58973         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
58974
58975 2005-09-23  Jim Meyering  <jim@meyering.net>
58976
58977         * modules/getaddrinfo (Depends-on): Add socklen.
58978
58979 2005-09-23  Bruno Haible  <bruno@clisp.org>
58980
58981         * tests/test-verify.c: New file.
58982
58983 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58984
58985         Sync from coreutils.
58986
58987         * modules/argmatch (Depends-on): Add verify.
58988         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
58989         unistd-safer.
58990         * modules/save-cwd (Depends-on): Likewise.
58991
58992         * modules/openat (Files): Add lib/openat-die.c.
58993         (Depends-on): Remove error, exitfail.
58994         Add dirname.
58995
58996         * modules/verify: New file.
58997         * MODULES.html.sh (Diagnostics <assert.h>): New section,
58998         with "verify" module.
58999
59000 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59001
59002         Sync from coreutils.
59003
59004         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
59005         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
59006         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
59007         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
59008         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
59009         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
59010         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
59011         Don't bother checking for string.h, stdlib.h, unistd.h.
59012         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
59013         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
59014         module's job.
59015         * m4/jm-macros.m4 (gl_MACROS): Likewise.
59016         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
59017
59018         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
59019         (gl_GETDATE): Use it.
59020
59021         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
59022
59023 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59024
59025         Sync from coreutils.
59026
59027         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
59028         stat-time.h.
59029         * lib/argmatch.h: Include verify.h
59030         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
59031         (ARGMATCH_ASSERT): Remove; unused.
59032         * lib/canonicalize.c: Assume STDC_HEADERS.
59033         * lib/exclude.c: Include "strcase.h".
59034         * lib/regex_internal.h [!defined _LIBC]: Likewise.
59035         * lib/getusershell.c: Include stdio--.h rather than stdio.h
59036         and stdio-safer.h.
59037         (getusershell): Call fopen, not fopen_safer.
59038         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
59039         Do not include unistd-safer.h.
59040         (save_cwd): Don't call fd_safer; no longer needed
59041         now that we include fcntl--.h.
59042
59043         * lib/getdate.y (relative_time): New type.
59044         (RELATIVE_TIME_0): New constant.
59045         (parser_control): Use relative_time instead of doing it ourselves.
59046         (%union): Add new relative_time rel member.
59047         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
59048         Now typeless.
59049         (relunit, relunit_snumber): Now of type rel.
59050         (zone, rel, relunit, get_date): Adjust to above changes.
59051
59052         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
59053         Do not include unistd-safer.h.
59054         (getloadavg): Don't call fd_safer; no longer needed
59055         now that we include fcntl--.h.
59056
59057         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
59058         (make_dir_parents): Treat ENOSYS like EEXIST.
59059
59060         Improve quality of diagnostics on restore_cwd failure.
59061         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
59062         (make_dir_parents): Last arg is now int * (for errno), not bool *.
59063         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
59064         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
59065         each time through the loop.  Do not diagnose restore_cwd failure;
59066         that is the caller's job (and perhaps the caller does not care).
59067
59068         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
59069         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
59070         If the file already exists but is not a directory, don't bother
59071         to try to make its parents.
59072         Close potential file descriptor leak if we can't chdir("/") (!).
59073         Don't always return true if chdir($PWD) fails; return true only
59074         if the requested action was done successfully (except for the
59075         chdir($PWD)).
59076         Don't log final directory unless we actually made it.
59077         Refactor to avoid duplicate code to fix up permissions.
59078         Don't attempt to fix up parent permissions if chdir($PWD) fails.
59079
59080         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
59081         to make it a bit faster and (I hope) clearer.
59082         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
59083         Fix bug in formats like %2N.
59084
59085         * lib/verify.h: New file.
59086
59087 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         Sync from coreutils.
59090         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
59091
59092 2005-09-22  Jim Meyering  <jim@meyering.net>
59093
59094         Sync from coreutils.
59095
59096         * m4/lstat.m4 (gl_FUNC_LSTAT):
59097         Use AC_LIBSOURCES to require lstat.c and lstat.h.
59098         Remove obsolete comment.
59099         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
59100         * m4/xstrtod.m4: Likewise.
59101
59102         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
59103
59104 2005-09-22  Jim Meyering  <jim@meyering.net>
59105
59106         Sync from coreutils.
59107
59108         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
59109
59110         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
59111         the .tm_year member, since otherwise gcc-4.0 would now warn about
59112         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
59113
59114         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
59115         order to avoid an unsuppressible warning from gcc on 64-bit systems.
59116
59117         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
59118         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
59119         when run in a time zone for which daylight savings time is in effect
59120         for the starting date.
59121
59122         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
59123         stop us from restricting permissions of just-created absolute-named
59124         directories.
59125         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
59126         to restore initial working directory.
59127         * lib/mkdir-p.c (make_dir_parents): New parameter:
59128         different_working_dir, to tell caller if/when we change the working
59129         directory and are unable to return to the initial one.
59130         * lib/mkdir-p.h (make_dir_parents): Update prototype.
59131         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
59132         `return false'.  This fixes a bug introduced on 2004-07-30.
59133
59134         * lib/openat.c (fdopendir): Be sure to close the supplied
59135         file descriptor before returning.  This makes our replacement
59136         implementation a little closer to Solaris's, where fdopendir
59137         ties the file descriptor to the returned DIR* pointer.
59138         * lib/openat.c (unlinkat): New function.
59139         * lib/openat.h (unlinkat): Add prototype.
59140         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
59141         (openat_restore_fail): Rename from openat_restore_die.
59142         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
59143
59144         Provide an alternative to exiting immediately upon save_cwd or
59145         restore_cwd failure.  Now, an application can arrange e.g.,
59146         to perform a longjump in that case.
59147         * lib/openat.c: Include dirname.h.
59148         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
59149         (rpl_openat, fdopendir, fstatat): Call openat_save_die
59150         and openat_restore_die rather than calling error directly.
59151         Don't include "error.h" or "exitfail.h"; they're no longer needed.
59152
59153         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
59154         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
59155         define.
59156
59157         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
59158         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
59159                             int utc, int nanoseconds);
59160         Background:
59161         date should not have to allocate a megabyte of virtual memory to
59162         handle a format argument like +%1048575T.  When implemented with
59163         strftime, it must allocate such a buffer, use strftime to fill it
59164         in, print it, then free it.
59165         With fprintftime, it simply prints everything and exits.
59166         With no need for memory allocation, that's one fewer way to fail.
59167         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
59168         optional field width, not before, so we accept %9:z, not %:9z.
59169         (my_strftime): Be sure to use L_('x') for literals.
59170
59171         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
59172         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
59173         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
59174         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
59175         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
59176         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
59177         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
59178         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
59179         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
59180         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
59181         * lib/xgethostname.c, lib/xreadlink.c:
59182         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
59183
59184         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
59185         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
59186         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
59187         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59188         and don't include <sys/file.h>).
59189
59190 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
59191
59192         Sync from coreutils.
59193
59194         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
59195         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
59196         [!LDAV_DONE]: Avoid unused variable warning.
59197
59198 2005-09-21  Bruno Haible  <bruno@clisp.org>
59199
59200         * lib/unicodeio.h (unicode_to_mb): New declaration.
59201
59202 2005-09-20  Derek Price  <derek@ximbiot.com>
59203
59204         * lib/getaddrinfo.c: Don't include <netdb.h> included from
59205         getaddrinfo.h.
59206
59207 2005-09-20  Bruno Haible  <bruno@clisp.org>
59208
59209         * gnulib-tool: Remove trailing slashes from the values specified for
59210         --source-base, --m4-base, --tests-base, --aux-dir.
59211         Suggested by Simon Josefsson <jas@extundo.com>.
59212
59213 2005-09-20  Bruno Haible  <bruno@clisp.org>
59214
59215         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
59216         func_modules_to_filelist, func_import, func_create_testdir): Make all
59217         sorting results locale-independent, so that gnulib-cache.m4 doesn't
59218         change when gnulib-tool is invoked in a different locale.
59219
59220 2005-09-19  Simon Josefsson  <jas@extundo.com>
59221
59222         * m4/socklen.m4: Fix typo.
59223
59224 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59225
59226         Use a consistent style for including <config.h>.
59227         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
59228         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
59229         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
59230         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
59231         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
59232         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
59233         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
59234         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
59235         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
59236         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
59237         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
59238         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
59239         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
59240         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
59241         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
59242         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
59243         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
59244         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
59245         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
59246         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
59247         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
59248         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
59249         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
59250         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
59251         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
59252         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
59253         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
59254         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
59255         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
59256         lib/xstrtoumax.c, lib/yesno.c:
59257         Standardize inclusion of config.h.
59258         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
59259         lib/inttostr.h:  Removed inclusion of config.h from header files.
59260         * lib/inttostr.c:  Adjusted in-tree users.
59261         * lib/timespec.h: Remove superfluous warning to include config.h.
59262         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
59263         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
59264         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
59265         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
59266         config.h with HAVE_CONFIG_H.
59267
59268 2005-09-19  Jim Meyering  <jim@meyering.net>
59269
59270         * modules/pathmax (License): Change to LGPL.
59271
59272 2005-09-19  Derek Price  <derek@ximbiot.com>
59273
59274         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
59275
59276 2005-09-19  Bruno Haible  <bruno@clisp.org>
59277
59278         * gnulib-tool (import): Provide default for --tests-base.
59279
59280 2005-09-19  Bruno Haible  <bruno@clisp.org>
59281
59282         * doc/quote.texi: New file, extracted from gnulib.texi.
59283         * doc/ctime.texi: New file, extracted from gnulib.texi.
59284         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
59285         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
59286         * doc/gnulib.texi: Include them.
59287
59288 2005-09-18  Bruno Haible  <bruno@clisp.org>
59289
59290         Portability fix.
59291         * gnulib-tool (func_readlink): New function.
59292         (func_ln_if_changed): Use it.
59293
59294 2005-09-18  Bruno Haible  <bruno@clisp.org>
59295
59296         * gnulib-tool: Support --with-tests also with --import.
59297         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
59298         (func_import): Use variables $testsbase and $inctests. Emit a
59299         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
59300         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
59301         SUBDIRS += $testsdir.
59302         (func_create_testdir): Update.
59303
59304 2005-09-18  Bruno Haible  <bruno@clisp.org>
59305
59306         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
59307         instead of $dry_run.
59308         (func_cp_if_changed, func_mv_if_changed): Remove functions.
59309         (func_ln_if_changed): Don't handle dry-run here.
59310         (func_import): In dry-run mode, detect more precisely which actions
59311         would be performed, and don't use "...ing" verbs.
59312
59313 2005-09-18  Bruno Haible  <bruno@clisp.org>
59314
59315         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
59316         (func_import): Use join on two temporary files instead of three nested
59317         loops, in order to determine which files are new or old.
59318
59319 2005-09-18  Bruno Haible  <bruno@clisp.org>
59320
59321         * gnulib-tool (func_import): Comment out code that spits out the
59322         new files with --dry-run.
59323
59324 2005-09-18  Bruno Haible  <bruno@clisp.org>
59325
59326         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
59327
59328 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         * lib/stat-time.h: New file.
59331         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
59332         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
59333         in a different way.
59334         (timespec_cmp): New function.
59335         * lib/utimecmp.c: Include stat-time.h.
59336         (SYSCALL_RESOLUTION): Depend on whether various struct stat
59337         members exist, not on the obsolescent ST_MTIM_NSEC.
59338         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
59339
59340 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
59343
59344 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
59345
59346         * MODULES.html.sh (File system functions): Add stat-time.
59347         * modules/stat-time: New file.
59348         * modules/timespec (Files): Remove m4/st_mtim.m4; this
59349         is now done in a different way, by the stat-time module.
59350         * modules/utimecmp (Depends-on): Add stat-time.
59351
59352 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * m4/st_mtim.m4: Remove.  Superseded by...
59355         * m4/stat-time.m4: New file.
59356         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
59357         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
59358
59359 2005-09-15  Derek Price  <derek@ximbiot.com>
59360
59361         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
59362
59363 2005-09-15  Derek Price  <derek@ximbiot.com>
59364
59365         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
59366         * lib/regex_internal.c: Ditto, using this...
59367         (__GNUC_PREREQ): ...new macro.
59368         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
59369         using...
59370         (__GNUC_PREREQ): ...this new macro.
59371
59372         * lib/strstr.h: Include string.h. Define strstr as a macro here.
59373
59374 2005-09-15  Derek Price  <derek@ximbiot.com>
59375             Paul Eggert  <eggert@cs.ucla.edu>
59376
59377         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
59378         changes, consolidating in...
59379         * lib/regex_internal.h: ...this file.
59380
59381 2005-09-13  Jim Meyering  <jim@meyering.net>
59382
59383         * lib/canon-host.c: Filter through gnu indent and reword comments
59384         slightly.
59385         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
59386
59387 2005-09-13  Derek Price  <derek@ximbiot.com>
59388
59389         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
59390         failure.
59391         Reported by Jim Meyering  <jim@meyering.net>.
59392
59393 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59394
59395         * lib/base64.c: Typo.
59396         (base64_encode): Put b64str in initialized data section.
59397
59398 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
59399
59400         Merge glibc and coreutils changes into gnulib, plus a few
59401         extra fixes.
59402         * lib/md5.c: Use #error rather than a string.
59403         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
59404         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
59405         (__attribute__): Define to empty for non recent-GCC.
59406         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
59407         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
59408         Renamed from their non-__ counterparts, with new macros replacing
59409         them if not _LIBC.  Add __THROW attribute.
59410         (rol): Remove.
59411         (struct md5_ctx): Align buffer if using GCC.
59412         * lib/sha1.h (struct sha1_ctx): Likewise.
59413         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
59414         The old name was backwards.
59415         (NOTSWAP): Remove; not used.
59416         (rol): New macro, moved here from md5.h.
59417         (sha1_process_block): Remove a FIXME that doesn't make sense.
59418
59419 2005-09-12  Derek Price  <derek@ximbiot.com>
59420
59421         Return usable errors from canon-host.
59422         * lib/canon-host.h: New file.
59423         * lib/canon-host.c (canon_host): Wrap...
59424         (canon_host_r): ...this new function, which now relies exclusively on
59425         getaddrinfo.
59426         (ch_strerror): New function.
59427         (last_cherror): New global.
59428         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
59429         interface.
59430         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
59431         void *.
59432         (freeaddrinfo): Free ai->ai_canonname when set.
59433
59434 2005-09-12  Derek Price  <derek@ximbiot.com>
59435
59436         Make canon-host require getaddrinfo.
59437         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
59438         AC_LIBSOURCE canon-host.h.  Call...
59439         (gl_PREREQ_CANON_HOST): ...this new function, which requires
59440         gl_GETADDRINFO.
59441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
59442
59443 2005-09-12  Derek Price  <derek@ximbiot.com>
59444
59445         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
59446         LGPL.
59447         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
59448
59449 2005-09-12  Derek Price  <derek@ximbiot.com>
59450
59451         * lib/gai_strerror.c: Include config.h when available.  Include
59452         getaddrinfo.h before other headers to test interface.
59453         Reported by Larry Jones <lawrence.jones@ugs.com>.
59454
59455 2005-09-12  Derek Price  <derek@ximbiot.com>
59456             Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * modules/glob (Files): Add glob-libc.h.
59459
59460 2005-09-12  Derek Price  <derek@ximbiot.com>
59461             Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
59464         glob_.h, glob-libc.h.
59465         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
59466
59467 2005-09-12  Derek Price  <derek@ximbiot.com>
59468             Paul Eggert  <eggert@cs.ucla.edu>
59469
59470         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
59471         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
59472         protecting things that should be done only in gnulib contexts.
59473         * lib/glob_.h: New file, containing only the glob things needed for
59474         gnulib.
59475         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
59476         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
59477         (glob, globfree, glob_pattern_p): Now defined simply in terms of
59478         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
59479         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
59480         and to respect the namespace rules better.
59481
59482 2005-09-08  Simon Josefsson  <jas@extundo.com>
59483
59484         * modules/socklen: New file.
59485
59486 2005-09-08  Simon Josefsson  <jas@extundo.com>
59487
59488         * m4/socklen.m4: New file.
59489
59490 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59491
59492         * modules/utimens (Files): Add m4/utimbuf.m4, since
59493         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
59494         Reported by Sergey Poznyakoff.
59495
59496 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
59499         definitions, since that's the preferred style in glibc.
59500         Fix a minor spacing issue, and update copyright notice to match
59501         glibc's.
59502
59503 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59504
59505         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
59506
59507 2005-09-06  Simon Josefsson  <jas@extundo.com>
59508
59509         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
59510         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
59511
59512 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
59515         warning.
59516
59517 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         * config/srclist.txt: Add glibc bug 1302.
59520
59521 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         Change bitset word type from unsigned int to unsigned long int,
59524         as this has better performance on typical 64-bit hosts.
59525         Port bitset code to hosts with unusual word sizes.
59526         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
59527         (build_collating_symbol):
59528         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
59529         argument is a bitset.  This is merely a style issue, but it makes
59530         it clearer that an entire array is expected.
59531         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
59532         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
59533         Port to the case where bitset_word is not the same as unsigned int.
59534         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59535         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
59536         Likewise.
59537         * lib/regexec.c (check_dst_limits_calc_pos_1,
59538         check_subexp_matching_top):
59539         (build_trtable, group_nodes_into_DFAstates):
59540         Likewise.
59541         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
59542         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
59543         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
59544         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
59545         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
59546         * lib/regcomp.c (optimize_subexps, lower_subexp):
59547         Work even if bitset_word has holes in its bitwise representation.
59548         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
59549         * lib/regexec.c (check_dst_limits_calc_pos_1,
59550         check_subexp_matching_top):
59551         Likewise.
59552         * lib/regex_internal.c (re_string_reconstruct):
59553         Don't assume UCHAR_MAX == 255.
59554         * lib/regex_internal.h (bitset_set_all): Likewise.
59555         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
59556         All uses changed.
59557         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
59558         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
59559         All uses changed.
59560         (BITSET_WORD_MAX): New macro.
59561         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
59562         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
59563         (bitset_empty, bitset_copy):
59564         Prefer sizeof (bitset) to multiplying it out ourselves.
59565         (bitset_not_merge): Remove; unused.
59566         (bitset_contain): Return bool, not unsigned int with one bit on.
59567         All callers changed.
59568         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
59569         alignment than re_node_set; do this by defining a new internal
59570         type struct dests_alloc and using it to allocate memory.
59571
59572 2005-09-05  Bruno Haible  <bruno@clisp.org>
59573
59574         * gnulib-tool (func_import): Fix comparison in handling of symbolic
59575         links.
59576
59577 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
59578
59579         * modules/size_max (Makefile.am): Add size_max.h
59580
59581 2005-09-04  Derek Price  <derek@ximbiot.com>
59582
59583         * gnulib-tool (func_import): Fix reversed $symbolic logic.
59584
59585 2005-09-03  Simon Josefsson  <jas@extundo.com>
59586
59587         * gnulib-tool: Fix typo.
59588
59589 2005-09-03  Simon Josefsson  <jas@extundo.com>
59590
59591         * config/srclist.txt: Add glibc bug 1293.
59592
59593 2005-09-03  Derek Price  <derek@ximbiot.com>
59594
59595         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
59596         From Larry Jones <lawrence.jones@ugs.com>.
59597
59598 2005-09-02  Simon Josefsson  <jas@extundo.com>
59599
59600         * modules/socklen: New file.
59601
59602 2005-09-02  Simon Josefsson  <jas@extundo.com>
59603
59604         * modules/havelib: New module.
59605
59606         * modules/gettext, modules/iconv, modules/lock, modules/readline:
59607         Use havelib.
59608
59609 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59610
59611         Check for arithmetic overflow when calculating sizes, to prevent
59612         some buffer-overflow issues.  These patches are conservative, in the
59613         sense that when I couldn't determine whether an overflow was possible,
59614         I inserted a run-time check.
59615         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
59616         macros.
59617         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
59618         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
59619         (re_xnrealloc, re_x2nrealloc): New inline functions.
59620         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
59621         parse_bracket_exp):
59622         (build_equiv_class, build_charclass): Check for arithmetic overflow
59623         in size expression calculations.
59624         * lib/regex_internal.c (re_string_realloc_buffers):
59625         (build_wcs_upper_buffer, re_node_set_add_intersect):
59626         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
59627         (re_dfa_add_node, register_state): Likewise.
59628         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
59629         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
59630         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
59631         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
59632
59633 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
59636         m4/ulonglong.m4.  Problem reported by Martin Lambers.
59637
59638 2005-09-02  Bruno Haible  <bruno@clisp.org>
59639
59640         Support for lib vs. lib64 distinction on biarch platforms.
59641         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
59642         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
59643         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
59644
59645 2005-09-02  Bruno Haible  <bruno@clisp.org>
59646
59647         * gnulib-tool (import): In the other first-use case, provide defaults
59648         as well.
59649
59650 2005-09-02  Bruno Haible  <bruno@clisp.org>
59651
59652         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
59653         patches not yet found in the latest gettext release.
59654
59655 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
59658         to avoid a collision with bits/local_lim.h in glibc.
59659         All uses changed.  Problem reported by Dmitry V. Levin in
59660         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
59661
59662         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
59663         bugs in int versus size_t comparisons.
59664         (re_string_context_at): Fix bug where the code assumed that
59665         Idx is signed.
59666
59667         Use bool where appropriate.
59668         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
59669         All callers changed.
59670         (calc_eclosure_iter): Likewise, for ROOT arg.
59671         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
59672         (build_charclass_op): Likewise, for NON_MATCH arg.
59673         * lib/regex_internal.c (re_string_allocate, re_string_construct):
59674         (re_string_construct_common): Likewise, for ICASE arg.
59675         * lib/regexec.c (re_search_2_stub, re_search_stub):
59676         Likewise, for RET_LEN arg.
59677         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
59678         (set_regs): Likewise, for FL_BACKTRACK arg.
59679         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
59680         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
59681         (calc_eclosure_iter, parse_bracket_exp):
59682         Use bool for internal variables that are booleans.
59683         * lib/regexec.c (re_search_internal, check_matching,
59684         proceed_next_node):
59685         (set_regs, build_sifted_states, sift_states_bkref):
59686         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
59687         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59688         (find_collation_sequence_value):
59689         Likewise.
59690         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
59691         (re_node_set_compare):
59692         Return bool, not int. All callers changed.
59693         * lib/regexec.c (check_halt_node_context, check_dst_limits):
59694         (build_trtable, check_node_accept): Likewise.
59695         * lib/regex_internal.h: Include stdbool.h.
59696
59697         Fix bugs uncovered when converting to bool.
59698         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
59699         failure instead of charging ahead blindly.
59700         * lib/regex_internal.c (register_state): Likewise.
59701         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
59702         for freeing internal storage.
59703         (group_nodes_into_DFA_states): Use unsigned int, not int, for
59704         bitset pieces used as boolean, to avoid undefined behavior
59705         on hosts that do int overflow checking.
59706
59707 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59708
59709         * config/srclist.txt: Add glibc bugs 1285-1287.
59710
59711 2005-09-01  Jim Meyering  <jim@meyering.net>
59712
59713         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
59714         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
59715         Require gl_STAT_MACROS, too.
59716
59717 2005-09-01  Bruno Haible  <bruno@clisp.org>
59718
59719         * gnulib-tool (import): In the first-use case, provide defaults.
59720
59721 2005-09-01  Bruno Haible  <bruno@clisp.org>
59722
59723         * gnulib-tool (func_import): Remove the .tmp files.
59724
59725 2005-09-01  Bruno Haible  <bruno@clisp.org>
59726
59727         * gnulib-tool (func_import): Fix handling of symbolic links.
59728
59729 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59730
59731         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
59732         old glibc regex code mishandles strings longer than 2**31 bytes.
59733         This patch fixes this when the regex code is used in gnulib
59734         (i.e., outside glibc).
59735
59736         This patch should not affect the use of the regex code inside
59737         glibc.  No doubt this problem also needs to be handled for glibc
59738         as well, but the result will be an incompatible change to the
59739         glibc ABI, and the old ABI will have to be supported too.  That
59740         can be the the subject for another patch.
59741
59742         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
59743         governing whether the rest of this patch is active.  By default,
59744         the macro is disabled and the patch has no effect.
59745         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
59746         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
59747         (struct re_pattern_buffer, re_search, re_search_2, re_match):
59748         (re_match_2, re_set_registers): Use the new types.
59749         * lib/regex_internal.h (Idx, re_hashval_t): New types.
59750         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
59751         New macros.
59752         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
59753         (re_string_context_at, bin_tree_t, re_dfastate_t):
59754         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
59755         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
59756         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
59757         (re_string_char_size_at, re_string_wchar_at):
59758         (re_string_elem_size_at):
59759         Use the new types and macros to port to 64-bit hosts.
59760         Use unsigned types for internal values, so that the code
59761         mostly works even for arrays larger than SSIZE_MAX.
59762         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
59763         (search_duplicated_node, calc_eclosure_iter, fetch_number):
59764         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
59765         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
59766         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
59767         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
59768         (calc_inveclosure, parse_dup_op, build_range_exp):
59769         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
59770         (fetch_number, create_token_tree, mark_opt_subexp):
59771         Likewise.
59772         * lib/regex_internal.c (re_string_construct_common,
59773         create_ci_newstate):
59774         (create_cd_newstate, re_string_allocate, re_string_construct):
59775         (re_string_realloc_buffers, build_wcs_upper_buffer):
59776         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59777         (re_string_reconstruct, re_string_peek_byte_case):
59778         (re_string_fetch_byte_case, re_string_context_at):
59779         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59780         (re_node_set_init_copy, re_node_set_add_intersect):
59781         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59782         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59783         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59784         (re_acquire_state, re_acquire_state_context, register_state):
59785         Likewise.
59786         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
59787         search_cur_bkref_entry):
59788         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
59789         (re_search_internal, re_search_2_stub, re_search_stub)
59790         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
59791         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
59792         (update_cur_sifted_state, check_dst_limits):
59793         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59794         (check_subexp_limits, sift_states_bkref, merge_state_array):
59795         (check_subexp_matching_top, get_subexp, get_subexp_sub):
59796         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
59797         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59798         (expand_bkref_cache, check_node_accept_bytes):
59799         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
59800         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
59801         (acquire_init_state_context, check_halt_node_context):
59802         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
59803         (sift_states_backward, clean_state_log_if_needed):
59804         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
59805         (find_recover_state, transit_state_sb, transit_state_mb):
59806         (transit_state_bkref, build_trtable, match_ctx_clean):
59807         Likewise.
59808         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
59809         to work around an assumption that REG_MISSING is negative.
59810
59811         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
59812         (seek_collating_symbol_entry) [defined _LIBC]:
59813         (lookup_collation_sequence_value) [defined _LIBC]:
59814         (build_range_exp, build_collating_symbol) [defined _LIBC]:
59815         Use prototypes rather than old-style function definitions.
59816         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
59817         (transit_state_sb) [0]:
59818         (find_collation_sequence_value) [defined _LIBC]: Likewise.
59819
59820         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
59821         rm_eo.
59822
59823         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
59824         (optimize_subexps, lower_subexp):
59825         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
59826         since the signed shift might overflow.  Use 1u<<31 instead.
59827         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
59828         Likewise.
59829         * lib/regexec.c (check_dst_limits_calc_pos_1,
59830         check_subexp_matching_top): Likewise.
59831
59832         * lib/regcomp.c (optimize_subexps, lower_subexp):
59833         Use CHAR_BIT rather than 8, for clarity.
59834         * lib/regexec.c (check_dst_limits_calc_pos_1):
59835         (check_subexp_matching_top): Likewise.
59836         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
59837         have to worry about portability issues when shifting it left.
59838         Remove no-longer-needed test for table_size > 0.
59839         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
59840         in a word, as the resulting behavior is undefined.
59841         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
59842         in one case, a <= should have been an <, and in another case the
59843         whole test was missing.
59844         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
59845         the standard name CHAR_BIT.
59846         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
59847         this is not true on one's complement and signed-magnitude hosts.
59848
59849         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
59850         next_last_offset.
59851         (struct re_dfa_t): Remove unused member states_alloc.
59852         * lib/regcomp.c (init_dfa): Don't initialize unused members.
59853
59854 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59855
59856         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
59857         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
59858         and large-file glibc and in 32-bit large-file Solaris.
59859
59860 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59861
59862         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
59863         lengths fit in regoff_t; this isn't true if regoff_t is the same
59864         width as size_t.
59865         * lib/regex.c (re_search_internal): 5th arg is LAST_START
59866         (= START + RANGE) instead of RANGE.  This avoids overflow
59867         problems when regoff_t is the same width as size_t.
59868         All callers changed.
59869         (re_search_2_stub): Check for overflow when adding the
59870         sizes of the two strings.
59871         (re_search_stub): Check for overflow when adding START
59872         to RANGE; if it occurs, substitute the extreme value.
59873
59874 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59875
59876         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
59877
59878 2005-08-31  Jim Meyering  <jim@meyering.net>
59879
59880         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
59881         a pointer-to-const.
59882         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
59883         (register_state): Likewise.
59884         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
59885         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
59886         (group_nodes_into_DFAstates): Likewise.
59887
59888 2005-08-31  Jim Meyering  <jim@meyering.net>
59889
59890         * check-module: Add a FIXME comment.
59891
59892 2005-08-31  Eric Blake  <ebb9@byu.net>
59893
59894         * modules/unistd-safer (Files): Add unistd--.h.
59895         * modules/stdio-safer (Files): Add stdio--.h.
59896
59897 2005-08-31  Derek Price  <derek@ximbiot.com>
59898
59899         * lib/getdelim.c (getdelim): Return EOF on EOF.
59900         Reported by Larry Jones <lawrence.jones@ugs.com>.
59901
59902 2005-08-31  Bruno Haible  <bruno@clisp.org>
59903
59904         Avoid unnecessary diffs in the generated lib/Makefile.am.
59905         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
59906         the generated files.
59907         (func_import): Don't set cmd.
59908
59909 2005-08-31  Bruno Haible  <bruno@clisp.org>
59910
59911         * lib/strstr.c: Include <stddef.h>, for NULL.
59912         * lib/strcasestr.c: Likewise.
59913         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59914
59915 2005-08-31  Bruno Haible  <bruno@clisp.org>
59916
59917         * gnulib-tool: New option --macro-prefix.
59918         (func_import): Use macro_prefix.
59919         (import): Handle option --macro-prefix.
59920
59921 2005-08-31  Bruno Haible  <bruno@clisp.org>
59922
59923         * gnulib-tool (import): Rename most ac_* variables to cached_*.
59924         Also use new variables cached_lgpl, cached_libtool.
59925
59926 2005-08-31  Bruno Haible  <bruno@clisp.org>
59927
59928         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
59929         always instantiating them.
59930
59931 2005-08-31  Bruno Haible  <bruno@clisp.org>
59932
59933         * gnulib-tool (func_import): Read the previous cached settings
59934         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
59935         earlier added by gnulib but are now dropped. Warn when a gnulib file
59936         overwrites a non-gnulib file.
59937
59938 2005-08-31  Bruno Haible  <bruno@clisp.org>
59939
59940         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
59941         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
59942         projects that don't keep autogenerated files in CVS. Put into
59943         actioncmd only the specified modules, not the transitive closure.
59944
59945 2005-08-31  Bruno Haible  <bruno@clisp.org>
59946
59947         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
59948         Create directories that shall be filled.
59949         (import): Don't look for gl_* macros in configure.ac. Recurse across
59950         all directories containing a gnulib-cache.m4 files, if meaningful.
59951
59952 2005-08-31  Bruno Haible  <bruno@clisp.org>
59953
59954         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
59955         (import): Set seen_libtool when we see gl_LIBTOOL.
59956
59957 2005-08-31  Bruno Haible  <bruno@clisp.org>
59958
59959         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
59960         declaration macro definitions from generated gnulib.m4.
59961
59962 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
59963
59964         * lib/iconvme.h: Add prototype for iconv_alloc.
59965
59966 2005-08-29  Simon Josefsson  <jas@extundo.com>
59967
59968         * lib/iconvme.c: Fix errno.
59969
59970 2005-08-29  Bruno Haible  <bruno@clisp.org>
59971
59972         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
59973         that it works when the directory contains spaces.
59974
59975 2005-08-29  Bruno Haible  <bruno@clisp.org>
59976
59977         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
59978
59979 2005-08-29  Bruno Haible  <bruno@clisp.org>
59980
59981         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
59982         Emit more advice.
59983
59984 2005-08-29  Bruno Haible  <bruno@clisp.org>
59985         and Stepan Kasal  <kasal@ucw.cz>
59986
59987         * check-module: If more parameters are given, check each of them
59988         separately; add more exceptions, as noted by Jim Meyering.
59989         (check_module): New procedure.
59990         (%exempt_header): Now contains all exceptions.
59991
59992 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
59993
59994         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
59995
59996 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59997
59998         * lib/iconvme.c: Split iconv_string into iconv_alloc.
59999
60000 2005-08-28  Bruno Haible  <bruno@clisp.org>
60001
60002         * m4/gnulib-tool.m4: New file.
60003
60004 2005-08-27  Jim Meyering  <jim@meyering.net>
60005
60006         * modules/unistd-safer (Files): Add pipe-safer.c.
60007         * modules/fcntl-safer (Files): Add creat-safer.c.
60008
60009 2005-08-27  Jim Meyering  <jim@meyering.net>
60010
60011         * m4/stdlib-safer.m4: New file.  From coreutils.
60012         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
60013         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
60014         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
60015         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
60016         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
60017
60018 2005-08-27  Jim Meyering  <jim@meyering.net>
60019
60020         * lib/fopen-safer.c: Merge minor changes from coreutils.
60021         * lib/dup-safer.c: Likewise.
60022         * lib/fd-safer.c: Likewise.
60023
60024         Merge from coreutils.
60025         * lib/stdio--.h: New file.
60026         * lib/stdlib--.h: New file.
60027         * lib/mkstemp-safer.c: New file.
60028
60029         GNU tar needs these.
60030         * lib/pipe-safer.c: New file.
60031         * lib/creat-safer.c: New file.
60032         * lib/fcntl--.h (creat): Define to creat_safer.
60033         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
60034         * lib/unistd--.h (pipe): Define to pipe_safer.
60035         * lib/unistd-safer.h: Declare pipe_safer.
60036
60037 2005-08-26  Simon Josefsson  <jas@extundo.com>
60038
60039         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
60040         Haible <bruno@clisp.org>.
60041
60042 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * lib/regex_internal.h: Remove all references to
60045         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
60046         or better.
60047         (bitset_not, bitset_merge, bitset_not_merge):
60048         (bitset_mask, re_string_allocate, re_string_construct):
60049         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
60050         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
60051         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
60052         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
60053         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60054         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60055         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
60056         (re_acquire_state_context):
60057         Remove unnecessary forward decls.
60058         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
60059         Put __attribute at function definition,
60060         now that the function decl has been removed.
60061         * lib/regex_internal.c (re_string_peek_byte_case):
60062         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
60063         Likewise.
60064
60065 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
60066
60067         * m4/regex.m4: Add AC_PREREQ(2.50).
60068         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
60069
60070 2005-08-25  Simon Josefsson  <jas@extundo.com>
60071
60072         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
60073         __fsetlocking.
60074
60075 2005-08-25  Simon Josefsson  <jas@extundo.com>
60076
60077         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
60078         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
60079         GLIBC specific code.
60080
60081 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60082
60083         Make regex safe for g++.  This fixes one real bug (an "err"
60084         that should have been "*err").  g++ problem reported by
60085         Sam Steingold.
60086         * lib/regex_internal.h (re_calloc): New macro, consistent with
60087         re_malloc etc.  All callers of calloc changed to use re_calloc.
60088         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
60089         not int.  All callers changed.
60090         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
60091         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
60092         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
60093         (find_recover_state): Change "err" to "*err"; this fixes what
60094         appears to be a real bug.
60095         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
60096         versus int.
60097
60098 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * modules/regex (Depends-on): Add malloc, since the code
60101         assumes that !malloc(0) means failure.
60102
60103 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
60106
60107         alloca modernization/simplification for regex.
60108         * lib/regex.c: Remove portability cruft for alloca.  This no longer
60109         needs to be at the start of the file, and can be moved into
60110         regex_internal.h and simplified.
60111         * lib/regex_internal.h: Include <alloca.h>.
60112         (__libc_use_alloca) [!defined _LIBC]: New macro.
60113         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
60114         now works outside glibc.
60115
60116 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60117
60118         * config/srclist.txt: Add glibc bugs 1241, 1245.
60119
60120 2005-08-25  Jim Meyering  <jim@meyering.net>
60121
60122         * lib/open-safer.c: Include <config.h>.
60123         Otherwise, we'd lose LARGEFILE support in any file using
60124         e.g. "fcntl--.h"
60125
60126 2005-08-25  Bruno Haible  <bruno@clisp.org>
60127
60128         * m4/minmax.m4: Require autoconf 2.52.
60129         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
60130         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
60131         alternatives of translit over the alphabet.
60132         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
60133
60134 2005-08-24  Simon Josefsson  <jas@extundo.com>
60135
60136         * tests/test-getpass.c: New file.
60137
60138 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60139
60140         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
60141         for GNU regex features.
60142
60143 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
60146         * lib/regex.h (regerror): Likewise.
60147
60148         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
60149         requires this.  (The code never needed it.)
60150
60151         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
60152         All uses of recently-renamed identifiers changed to use the new,
60153         POSIX-compliant names.  The code will build and run just fine
60154         without these changes, but it's better to eat our own dog food
60155         and use the standard-conforming names.
60156
60157         * lib/regex.h: Fix a multitude of POSIX name space violations.
60158         These changes have an effect only for programs that define
60159         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
60160         do not change anything for programs compiled in the normal way.
60161         Also, there is no effect on the ABI.
60162
60163         (_REGEX_SOURCE): New macro.
60164         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
60165         defined and _GNU_SOURCE is not; this fixes a name space violation.
60166
60167         Rename the following macros to obey POSIX requirements.
60168         The old names are still visible as macros if _REGEX_SOURCE is defined.
60169         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
60170         RE_BACKSLASH_ESCAPE_IN_LISTS.
60171         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
60172         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
60173         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
60174         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
60175         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
60176         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
60177         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
60178         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
60179         (REG_INTERVALS): renamed from RE_INTERVALS.
60180         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
60181         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
60182         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
60183         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
60184         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
60185         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
60186         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
60187         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
60188         RE_UNMATCHED_RIGHT_PAREN_ORD.
60189         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
60190         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
60191         (REG_DEBUG): renamed from RE_DEBUG.
60192         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
60193         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
60194         unusual, since we can't clash with the POSIX REG_ICASE.
60195         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
60196         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
60197         (REG_NO_SUB): renamed from RE_NO_SUB.
60198         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
60199         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
60200         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
60201         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
60202         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
60203         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
60204         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
60205         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
60206         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
60207         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
60208         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
60209         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
60210         RE_SYNTAX_POSIX_MINIMAL_BASIC.
60211         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
60212         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
60213         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
60214         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
60215         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
60216         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
60217         (REG_FIXED): Renamed from REGS_FIXED.
60218         (REG_NREGS): Renamed from RE_NREGS.
60219
60220         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
60221         of other REG_* macros, since POSIX says the user is allowed to
60222         #undef these macros selectively.
60223
60224         (reg_errcode_t): Update comment stating what other tables need
60225         to be consistent.
60226
60227         Rename the following enum values to obey POSIX requirements.
60228         The old names are still visible as macros.
60229         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
60230         is not defined, since GNU is supposed to be a superset of POSIX as
60231         much as possible, and since we want reg_errcode_t to be a signed
60232         type for implementation consistency.
60233         (_REG_NOERROR): Renamed from REG_NOERROR.
60234         (_REG_NOMATCH): Renamed from REG_NOMATCH.
60235         (_REG_BADPAT): Renamed from REG_BADPAT.
60236         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
60237         (_REG_ECTYPE): Renamed from REG_ECTYPE.
60238         (_REG_EESCAPE): Renamed from REG_EESCAPE.
60239         (_REG_ESUBREG): Renamed from REG_ESUBREG.
60240         (_REG_EBRACK): Renamed from REG_EBRACK.
60241         (_REG_EPAREN): Renamed from REG_EPAREN.
60242         (_REG_EBRACE): Renamed from REG_EBRACE.
60243         (_REG_BADBR): Renamed from REG_BADBR.
60244         (_REG_ERANGE): Renamed from REG_ERANGE.
60245         (_REG_ESPACE): Renamed from REG_ESPACE.
60246         (_REG_BADRPT): Renamed from REG_BADRPT.
60247         (_REG_EEND): Renamed from REG_EEND.
60248         (_REG_ESIZE): Renamed from REG_ESIZE.
60249         (_REG_ERPAREN): Renamed from REG_ERPAREN.
60250         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
60251         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
60252         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
60253         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
60254
60255         (_REG_RE_NAME, _REG_RM_NAME): New macros.
60256         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
60257         changed.  But support the old name if the new one is not defined
60258         and if _REGEX_SOURCE.
60259
60260         Change the following member names in struct re_pattern_buffer.
60261         The old names are still supported if !_REGEX_SOURCE.
60262         The new names are always supported, regardless of _REGEX_SOURCE.
60263         (re_buffer): Renamed from buffer.
60264         (re_allocated): Renamed from allocated.
60265         (re_used): Renamed from used.
60266         (re_syntax): Renamed from syntax.
60267         (re_fastmap): Renamed from fastmap.
60268         (re_translate): Renamed from translate.
60269         (re_can_be_null): Renamed from can_be_null.
60270         (re_regs_allocated): Renamed from regs_allocated.
60271         (re_fastmap_accurate): Renamed from fastmap_accurate.
60272         (re_no_sub): Renamed from no_sub.
60273         (re_not_bol): Renamed from not_bol.
60274         (re_not_eol): Renamed from not_eol.
60275         (re_newline_anchor): Renamed from newline_anchor.
60276
60277         Change the following member names in struct re_registers.
60278         The old names are still supported if !_REGEX_SOURCE.
60279         The new names are always supported, regardless of _REGEX_SOURCE.
60280         (rm_num_regs): Renamed from num_regs.
60281         (rm_start): Renamed from start.
60282         (rm_end): Renamed from end.
60283
60284         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
60285         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
60286         Prepend __ to parameter names.
60287
60288         Undo yesterday's changes.
60289
60290 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
60293         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
60294         lib/regex.c.
60295
60296 2005-08-24  Jim Meyering  <jim@meyering.net>
60297
60298         Sync from coreutils.
60299         * m4/fcntl-safer.m4: New file.
60300
60301         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
60302         and object files for this module.
60303
60304 2005-08-24  Jim Meyering  <jim@meyering.net>
60305
60306         Sync from coreutils.
60307         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
60308
60309 2005-08-24  Jim Meyering  <jim@meyering.net>
60310
60311         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
60312         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
60313
60314 2005-08-24  Jim Meyering  <jim@meyering.net>
60315
60316         * modules/fcntl-safer: New module.
60317         * modules/fts (Depends-on): Add fcntl-safer.
60318         * MODULES.html.sh (File descriptor based Input/Output):
60319         Add fcntl-safer.
60320
60321 2005-08-24  Bruno Haible  <bruno@clisp.org>
60322
60323         Support for unit test modules.
60324         * modules/README: Mention tests modules.
60325         * modules/TEMPLATE-TESTS: New file.
60326         * gnulib-tool: New options --extract-tests-module, --with-tests and
60327         --tests-base (unused for the moment).
60328         (testsbase, inctests): New variables.
60329         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
60330         (func_verify_module): Exclude TEMPLATE-TESTS.
60331         (func_verify_nontests_module, func_verify_tests_module): New functions.
60332         (func_get_dependencies): Add implicit dependency for tests modules.
60333         (func_get_tests_module): New function.
60334         (func_modules_transitive_closure): When --with-tests was specified,
60335         include the unit tests as well, unless explicitly avoided.
60336         (func_emit_lib_Makefile_am): Ignore the tests modules here.
60337         (func_emit_tests_Makefile_am): New function.
60338         (func_create_testdir): When --with-tests was specified, emit a
60339         tests/ directory.
60340         * MODULES.html.sh (Future developments): Update.
60341
60342 2005-08-24  Bruno Haible  <bruno@clisp.org>
60343
60344         * modules/tls-tests: New file.
60345         * tests/test-tls.c: New file, from GNU gettext.
60346
60347 2005-08-24  Bruno Haible  <bruno@clisp.org>
60348
60349         * modules/lock-tests: New file.
60350         * tests/test-lock.c: New file, from GNU gettext.
60351
60352 2005-08-24  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/lock.h: Add multiple inclusion guard.
60355         * lib/tls.h: Add multiple inclusion guard.
60356
60357 2005-08-24  Bruno Haible  <bruno@clisp.org>
60358
60359         * gnulib-tool: Add support for the --aux-dir option to
60360         --create-testdir, --create-megatestdir, --test, --megatest.
60361         (func_create_testdir, func_create_megatestdir): Optionally emit a
60362         AC_CONFIG_AUX_DIR directive.
60363         (create-testdir, create-megatestdir, test, megatest): Provide a
60364         default value for $auxdir.
60365
60366 2005-08-24  Bruno Haible  <bruno@clisp.org>
60367
60368         * gnulib-tool (import): Use compound statement instead of subshell
60369         where possible.
60370
60371 2005-08-24  Bruno Haible  <bruno@clisp.org>
60372
60373         * gnulib-tool (import): Change --aux-dir default to "build-aux".
60374
60375 2005-08-24  Bruno Haible  <bruno@clisp.org>
60376
60377         * gnulib-tool (func_version): Update.
60378
60379 2005-08-24  Bruno Haible  <bruno@clisp.org>
60380
60381         * gnulib-tool (func_import, func_create_testdir,
60382         func_create_megatestdir): Quote all autoconf macro arguments.
60383
60384 2005-08-24  Bruno Haible  <bruno@clisp.org>
60385
60386         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
60387         option --force, because --force causes the aclocal.m4 of each
60388         subdirectory to be newer than the corresponding config.h.in.
60389
60390 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
60393         All contents moved to gl_REGEX.
60394         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
60395         assume that it does.
60396
60397 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60398
60399         * lib/regex.h (REG_NOSYS)
60400         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
60401         Define, since POSIX requires it as of 2001.
60402         (_REG_ENOSYS)
60403         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
60404         New private symbol, used to keep the enum signed in all cases.
60405         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
60406         Youngman in
60407         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
60408
60409         * lib/regex_internal.c (re_string_skip_chars, register_state):
60410         (calc_state_hash):
60411         Remove forward decls; no longer needed now that we use prototypes.
60412         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
60413         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
60414         (clean_state_log_if_needed): Likewise.
60415
60416 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60417
60418         * config/srclist.txt: Add glibc bugs 1231-1233.
60419
60420 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         Fix problems reported by Sam Steingold in
60423         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
60424         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
60425         assumed that reg_errcode_t is a signed type, which is not
60426         necessarily true if _XOPEN_SOURCE is not defined.
60427         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
60428         since some compilers warn about it otherwise.
60429
60430 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60431
60432         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
60433         (init_word_char, create_initial_state, duplicate_node_closure):
60434         (fetch_token, peek_token_bracket, build_range_exp):
60435         (build_collating_symbol): Remove forward decls; no longer needed
60436         now that we use prototypes.
60437
60438         * lib/regcomp.c:
60439         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
60440         (re_compile_fastmap_iter, regcomp, regerror, regfree):
60441         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
60442         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
60443         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
60444         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
60445         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
60446         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
60447         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
60448         (build_range_exp, build_collating_symbol, parse_bracket_exp):
60449         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
60450         (build_charclass, build_charclass_op, fetch_number, create_tree):
60451         (create_token_tree, mark_opt_subexp, duplicate_tree):
60452         Use prototypes rather than old-style definitions.
60453
60454         * lib/regex_internal.c:
60455         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
60456         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
60457         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
60458         (re_string_reconstruct, re_string_peek_byte_case):
60459         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
60460         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
60461         (re_node_set_init_copy, re_node_set_add_intersect):
60462         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
60463         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
60464         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
60465         (re_acquire_state, re_acquire_state_context, register_state):
60466         (create_ci_newstate, create_cd_newstate, free_state):
60467         Likewise.
60468         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
60469         re_search_2):
60470         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
60471         (re_search_internal, prune_impossible_nodes):
60472         (acquire_init_state_context, check_matching, static):
60473         (check_halt_node_context, check_halt_state_context, proceed_next_node):
60474         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
60475         (update_regs, sift_states_backward, build_sifted_states):
60476         (clean_state_log_if_needed, merge_state_array):
60477         (update_cur_sifted_state, add_epsilon_src_nodes):
60478         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
60479         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
60480         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
60481         (find_recover_state, check_subexp_matching_top, transit_state_mb):
60482         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
60483         (check_arrival, check_arrival_add_next_nodes):
60484         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
60485         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
60486         (check_node_accept_bytes, check_node_accept, extend_buffers):
60487         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
60488         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
60489         (sift_ctx_init):
60490         Likewise.
60491
60492         * lib/regex_internal.h:
60493         (re_string_allocate, re_string_construct, re_string_reconstruct):
60494         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
60495         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
60496         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
60497         (re_string_context_at, re_string_peek_byte_case):
60498         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
60499         is defined, since we now use prototypes always.
60500
60501         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
60502         C89 or better.  All uses removed.
60503
60504 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60505
60506         * config/srclist.txt: Add glibc bugs 1220-1227.
60507
60508 2005-08-20  Jim Meyering  <jim@meyering.net>
60509
60510         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
60511         of unused local, dfa.
60512
60513 2005-08-20  Bruno Haible  <bruno@clisp.org>
60514
60515         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
60516
60517 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60518
60519         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
60520         (re_node_set_insert_last, re_dfa_add_node):
60521         Rename local variables to avoid GCC shadowing warnings.
60522
60523 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
60526         [defined lint]: Suppress bogus uninitialized-variable warnings.
60527
60528         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
60529         and let the caller return REG_ESPACE if out of space.  This
60530         removes an uninitialied-variable warning with GCC 4.0.1, and also
60531         avoids taking the address of a local variable.  All callers
60532         changed.
60533
60534 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60535
60536         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
60537         $LIBCSRC/posix/regexec.c.
60538         Add glibc bug 1217 for regcomp.c.
60539
60540 2005-08-19  Jim Meyering  <jim@meyering.net>
60541
60542         * lib/regexec.c (proceed_next_node): Redo local variables to
60543         avoid GCC shadowing warnings.
60544
60545 2005-08-18  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/strstr.c (strstr): Fix return value in multibyte case.
60548         * lib/strcasestr.c (strcasestr): Likewise.
60549
60550 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
60553
60554 2005-08-17  Jim Meyering  <jim@meyering.net>
60555
60556         Make the %s format (seconds since the epoch) work for a negative
60557         number and when used with a zero-padded field width, e.g. %015s.
60558
60559         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
60560         label so that it precedes the code to set `digits'.  Otherwise,
60561         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
60562         print `00-22'.  Now, it prints `-0022', as it should.
60563
60564 2005-08-17  Bruno Haible  <bruno@clisp.org>
60565
60566         * modules/strstr (Files): Add m4/mbrtowc.m4.
60567         (Depends-on): Add mbuiter.
60568
60569 2005-08-17  Bruno Haible  <bruno@clisp.org>
60570
60571         * modules/strcasestr: New file.
60572         * MODULES.html.sh (String handling, based on ANSI C 89): Add
60573         strcasestr.
60574
60575 2005-08-17  Bruno Haible  <bruno@clisp.org>
60576
60577         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
60578
60579 2005-08-17  Bruno Haible  <bruno@clisp.org>
60580
60581         * modules/mbuiter: New file.
60582         * MODULES.html.sh (Extended multibyte and wide character utilities):
60583         Add mbuiter.
60584
60585 2005-08-17  Bruno Haible  <bruno@clisp.org>
60586
60587         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
60588         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
60589
60590 2005-08-17  Bruno Haible  <bruno@clisp.org>
60591
60592         * m4/strcasestr.m4: New file.
60593
60594 2005-08-17  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
60597         * lib/strstr.c: Completely rewritten, with multibyte locale support.
60598
60599 2005-08-17  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/strcasestr.h: New file.
60602         * lib/strcasestr.c: New file.
60603
60604 2005-08-17  Bruno Haible  <bruno@clisp.org>
60605
60606         * lib/strcasecmp.c: Use mbuiter.h.
60607
60608 2005-08-17  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/mbuiter.h: New file.
60611
60612 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60613
60614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
60615         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
60616         and gl_GETOPT are both invoked via different paths (as happens
60617         with GNU tar CVS because it uses both argp and getopt), the former
60618         wins.
60619
60620 2005-08-16  Bruno Haible  <bruno@clisp.org>
60621
60622         * modules/tls: New file.
60623         * MODULES.html.sh (Multithreading): Add tls.
60624
60625 2005-08-16  Bruno Haible  <bruno@clisp.org>
60626
60627         * modules/strnlen1: New file.
60628         * MODULES.html.sh (String handling): Add strnlen1.
60629
60630 2005-08-16  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/strcase (Files): Add m4/mbrtowc.m4.
60633         (Depends-on): Add strnlen1, mbchar.
60634
60635 2005-08-16  Bruno Haible  <bruno@clisp.org>
60636
60637         * modules/mbiter: New file.
60638         * MODULES.html.sh (Extended multibyte and wide character utilities):
60639         Add mbiter.
60640
60641 2005-08-16  Bruno Haible  <bruno@clisp.org>
60642
60643         * modules/mbfile: New file.
60644         * MODULES.html.sh (Extended multibyte and wide character utilities):
60645         Add mbfile.
60646
60647 2005-08-16  Bruno Haible  <bruno@clisp.org>
60648
60649         * modules/mbchar: New file.
60650         * MODULES.html.sh (Extended multibyte and wide character utilities):
60651         New section.
60652
60653 2005-08-16  Bruno Haible  <bruno@clisp.org>
60654
60655         * m4/tls.m4: New file, from GNU gettext.
60656
60657 2005-08-16  Bruno Haible  <bruno@clisp.org>
60658
60659         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
60660         always.
60661         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
60662
60663 2005-08-16  Bruno Haible  <bruno@clisp.org>
60664
60665         * m4/mbiter.m4: New file.
60666
60667 2005-08-16  Bruno Haible  <bruno@clisp.org>
60668
60669         * m4/mbfile.m4: New file.
60670
60671 2005-08-16  Bruno Haible  <bruno@clisp.org>
60672
60673         * m4/mbchar.m4: New file.
60674
60675 2005-08-16  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/tls.h: New file, from GNU gettext.
60678         * lib/tls.c: New file, from GNU gettext.
60679
60680 2005-08-16  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/strnlen1.h: New file.
60683         * lib/strnlen1.c: New file.
60684
60685 2005-08-16  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
60688         (mbi_init): Update.
60689         (mbi_avail, mbi_advance): Let the iteration end before the terminating
60690         NUL byte, not after it.
60691
60692 2005-08-16  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/strcase.h (strcasecmp): Add note in comments.
60695         * lib/strncasecmp.c: Use code from strcasecmp.c.
60696         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
60697         (strcasecmp): Work correctly in multibyte locales.
60698
60699 2005-08-16  Bruno Haible  <bruno@clisp.org>
60700
60701         * lib/mbiter.h: New file.
60702
60703 2005-08-16  Bruno Haible  <bruno@clisp.org>
60704
60705         * lib/mbfile.h: New file.
60706
60707 2005-08-16  Bruno Haible  <bruno@clisp.org>
60708
60709         * lib/mbchar.h: New file.
60710         * lib/mbchar.c: New file.
60711
60712 2005-08-16  Bruno Haible  <bruno@clisp.org>
60713
60714         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
60715         the valid ones. Makes the comparison operations transitive:
60716         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
60717         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
60718
60719 2005-08-15  Simon Josefsson  <jas@extundo.com>
60720
60721         * modules/ssize_t (License): Change to 'unlimited'.
60722
60723         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
60724
60725 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60726
60727         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
60728         Add comments for each pending glibc patch.
60729
60730 2005-08-15  Bruno Haible  <bruno@clisp.org>
60731
60732         * lib/regex.h (__restrict_arr): Don't define to __restrict if
60733         __cplusplus is defined.
60734
60735 2005-08-14  Jim Meyering  <jim@meyering.net>
60736
60737         Sync from coreutils.
60738
60739         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
60740         Use the hash-table-based cycle-detection code not just when
60741         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
60742         Reported by James Youngman in
60743         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
60744         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
60745         FTS_TIGHT_CYCLE_CHECK.
60746         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
60747         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
60748         once again.
60749         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
60750         * lib/fts.c (fd_safer): Remove decl.
60751         Include fcntl--.h rather than unistd-safer.h
60752         (fts_safe_changedir): Don't call fd_safer; no longer needed
60753         now that we include fcntl--.h.
60754
60755 2005-08-12  Simon Josefsson  <jas@extundo.com>
60756
60757         * modules/getndelim2: Use ssize_t module.
60758         * modules/getnline: Likewise.
60759         * modules/safe-read: Likewise.
60760         * modules/xreadlink: Likewise.
60761
60762         * modules/ssize_t: New file.
60763
60764 2005-08-12  Simon Josefsson  <jas@extundo.com>
60765
60766         * m4/readline.m4: Look for termcap, curses or ncurses if required.
60767
60768 2005-08-12  Simon Josefsson  <jas@extundo.com>
60769
60770         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60771         ssize_t.
60772
60773 2005-08-12  Simon Josefsson  <jas@extundo.com>
60774
60775         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
60776         readline, getdelim and check_version.
60777         (Support for systems lacking ISO C 99: Sizes of integer types):
60778         Add size_max.
60779
60780 2005-08-12  Bruno Haible  <bruno@clisp.org>
60781
60782         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
60783
60784 2005-08-11  Simon Josefsson  <jas@extundo.com>
60785
60786         * modules/readline: New file.
60787
60788         * modules/strnlen (Files): Add strnlen.h.
60789
60790 2005-08-11  Simon Josefsson  <jas@extundo.com>
60791
60792         * m4/readline.m4: New file.
60793
60794 2005-08-11  Simon Josefsson  <jas@extundo.com>
60795
60796         * lib/readline.h, readline.c: New file.
60797
60798 2005-08-11  Simon Josefsson  <jas@extundo.com>
60799
60800         * doc/gnulib.texi (Initial import, Finishing touches): Mention
60801         gl_AVOID.
60802
60803 2005-08-11  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/strnlen.h (strnlen): Change parameter name to match comment.
60806
60807 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
60808
60809         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
60810
60811 2005-08-10  Simon Josefsson  <jas@extundo.com>
60812
60813         * tests/test-iconvme.c: New file.
60814
60815 2005-08-10  Simon Josefsson  <jas@extundo.com>
60816
60817         * m4/strnlen.m4: New file.
60818
60819         * m4/strndup.m4: Don't check for strnlen declaration, done in
60820         strnlen.m4.
60821
60822 2005-08-10  Simon Josefsson  <jas@extundo.com>
60823
60824         * lib/strndup.c: Use strnlen.h.
60825
60826         * lib/strnlen.h: New file.
60827
60828 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60829
60830         * README: Typos.
60831
60832 2005-08-02  Simon Josefsson  <jas@extundo.com>
60833
60834         * modules/readline: New file.
60835
60836 2005-08-02  Simon Josefsson  <jas@extundo.com>
60837
60838         * modules/getdelim: New file.
60839
60840         * modules/getline: Rewrite, don't use getndelim2.
60841
60842 2005-08-02  Simon Josefsson  <jas@extundo.com>
60843
60844         * m4/getline.m4: Separate out getdelim stuff into separate module.
60845
60846         * m4/getdelim.m4: New file.
60847
60848 2005-08-02  Simon Josefsson  <jas@extundo.com>
60849
60850         * lib/getline.h, getline.c: Rewrite.
60851
60852         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
60853
60854 2005-07-31  Bruno Haible  <bruno@clisp.org>
60855
60856         * lib/lock.h (gl_lock_initializer): New macro.
60857         (gl_lock_define_initialized): Use it.
60858         (gl_rwlock_initializer): New macro.
60859         (gl_rwlock_define_initialized): Use it.
60860         (gl_recursive_lock_initializer): New macro.
60861         (gl_recursive_lock_define_initialized): Use it.
60862
60863 2005-07-30  Karl Berry  <karl@gnu.org>
60864
60865         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
60866         Report from Ben Pfaff, regarding getopt.
60867
60868 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
60869
60870         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
60871         normal way.
60872         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
60873         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
60874         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
60875         (gl_GETOPT): Use the new macros.  Most of the implementation
60876         is moved to the new macros.  This is for programs like Emacs
60877         that don't want all the functionality of gl_GETOPT.
60878
60879 2005-07-26  Bruno Haible  <bruno@clisp.org>
60880
60881         * m4/lock.m4: Update from GNU gettext.
60882
60883 2005-07-26  Bruno Haible  <bruno@clisp.org>
60884
60885         * lib/lock.h: Update from GNU gettext.
60886         * lib/lock.c: Update from GNU gettext.
60887
60888 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
60889
60890         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
60891         obsolescent AC_TRY_RUN.  Include the default includes files, for
60892         'exit'.
60893
60894 2005-07-24  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/visibility: New file.
60897         * MODULES.html.sh (Misc): Add visibility.
60898
60899 2005-07-24  Bruno Haible  <bruno@clisp.org>
60900
60901         * m4/visibility.m4: New file.
60902
60903 2005-07-24  Bruno Haible  <bruno@clisp.org>
60904
60905         * doc/visibility.texi: New file.
60906
60907 2005-07-22  Bruno Haible  <bruno@clisp.org>
60908
60909         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
60910         $(ALLOCA_H), redundant through BUILT_SOURCES.
60911         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
60912         redundant through BUILT_SOURCES.
60913         * modules/byteswap (Makefile.am): Remove explicit dependency on
60914         $(BYTESWAP_H), redundant through BUILT_SOURCES.
60915         * modules/fnmatch (Makefile.am): Remove explicit dependency on
60916         $(FNMATCH_H), redundant through BUILT_SOURCES.
60917         * modules/getopt (Makefile.am): Remove explicit dependency on
60918         $(GETOPT_H), redundant through BUILT_SOURCES.
60919         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
60920         redundant through BUILT_SOURCES.
60921         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
60922         redundant through BUILT_SOURCES.
60923         * modules/stdbool (Makefile.am): Remove explicit dependency on
60924         $(STDBOOL_H), redundant through BUILT_SOURCES.
60925         * modules/stdint (Makefile.am): Remove explicit dependency on
60926         $(STDINT_H), redundant through BUILT_SOURCES.
60927         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
60928         Remove explicit dependency on $(SYSEXITS_H).
60929         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
60930
60931 2005-07-18  Simon Josefsson  <jas@extundo.com>
60932
60933         * lib/check-version.c (check_version): Accept identical versions too.
60934
60935 2005-07-18  Bruno Haible  <bruno@clisp.org>
60936
60937         * modules/lock: New file.
60938         * MODULES.html.sh (Multithreading): New section.
60939
60940 2005-07-18  Bruno Haible  <bruno@clisp.org>
60941
60942         * m4/lock.m4: New file, from GNU gettext.
60943
60944 2005-07-18  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/lock.h: New file, from GNU gettext.
60947         * lib/lock.c: New file, from GNU gettext.
60948
60949 2005-07-18  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/lock.h (gl_once_t): New type.
60952         (gl_once_define, gl_once): New macros.
60953         * lib/lock.c (fresh_once): New variable.
60954         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
60955         functions.
60956
60957 2005-07-16  Simon Josefsson  <jas@extundo.com>
60958
60959         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
60960         workaround, suggested by Bruno.
60961
60962 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * modules/xalloc (Depends-on): Add xalloc-die.
60965         * modules/xvasprintf (Depends-on): Add xalloc-die.
60966
60967 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
60968
60969         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
60970         with a minor change.
60971
60972 2005-07-15  Bruno Haible  <bruno@clisp.org>
60973
60974         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
60975         When using lib/poll.c, define poll as rpl_poll.
60976
60977 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
60978
60979         * modules/argp (Depends-on): Remove unlocked-io.
60980
60981 2005-07-14  Derek Price  <derek@ximbiot.com>
60982
60983         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
60984         for glob symlink bug.
60985
60986 2005-07-14  Bruno Haible  <bruno@clisp.org>
60987
60988         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
60989         Instead, test for *_unlocked function declarations directly.
60990
60991 2005-07-11  Simon Josefsson  <jas@extundo.com>
60992
60993         * modules/size_max: New file.
60994
60995         * modules/xsize: Depend on size_max module for size_max.m4.
60996
60997 2005-07-11  Simon Josefsson  <jas@extundo.com>
60998
60999         * lib/size_max.h: New file.
61000
61001 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
61004         copyright symbol and the year.
61005         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
61006         (version_etc_va): Use parameterized copyright notice.
61007         Reword to conform to the current GNU coding standards.
61008
61009 2005-07-11  Karl Berry  <karl@gnu.org>
61010
61011         * doc/gnulib.texi (Quoting): new node.
61012         (Initial import): more info, from Patrice.
61013
61014 2005-07-11  Bruno Haible  <bruno@clisp.org>
61015
61016         * gnulib-tool (func_usage): Document option --avoid.
61017         (Command line options): Handle --avoid.
61018         (func_acceptable): New function.
61019         (func_modules_transitive_closure): Use it.
61020
61021 2005-07-11  Bruno Haible  <bruno@clisp.org>
61022
61023         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
61024         Reported by Jim Meyering.
61025
61026 2005-07-10  Bruno Haible  <bruno@clisp.org>
61027
61028         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
61029         Needed when size_t is smaller than 'unsigned int'.
61030         Reported by Paul Eggert.
61031
61032 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61033
61034         * modules/argp (Depends-on): Add unlocked-io
61035
61036 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61037
61038         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
61039         block of defines.
61040
61041 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61042
61043         * config/srclist.txt: Comment out regcomp.c, since we have a porting
61044         fix now.
61045
61046 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
61047         and Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
61050         in wint_t, not wchar_t.  Remove now-unnecessary cast.
61051
61052 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * modules/regex (Files): Add lib/regex_internal.c,
61055         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
61056         (Depends-on): Add extensions.
61057         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
61058
61059 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
61062         pathconf.
61063         * m4/same.m4 (gl_SAME): Likewise.
61064         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
61065
61066         * m4/regex.m4: Adjust to new libc regex implementation.
61067         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
61068         all the .c and .h parts of (the new) regex.
61069         Quote the m4 stuff better.
61070         Check for RE_ICASE bug of old gnulib.
61071         Check for REG_STARTEND of recent libc.
61072         Rename local variables from jm_* to gl_*.
61073         Quote operand of "test -f".
61074         Say "recent enough" version of libc, not "version 2".
61075         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
61076         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
61077         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
61078         Remove check for btowc, isascii.
61079         Require AM_LANGINFO_CODESET.
61080
61081 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         * lib/regex.c, regex.h: Sync from libc.
61084         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
61085         * lib/regexec.c:
61086         New files, synced from libc, except that regex_internal.h
61087         currently has a small porting fix.
61088
61089 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
61092         regex_internal.c, regexec.c.
61093         Add regex_internal.h too, but as a comment, since the libc version
61094         is currently broken in gnulib mode.
61095
61096 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         Support programs like Emacs that use gnulib but not gettext.
61099         * MODULES.html.sh (Internationalization functions): Add gettext-h.
61100         * modules/gettext-h: New file.
61101         * modules/gettext (Files): Remove lib/gettext.h.
61102         (Depends-on): Add gettext-h.
61103         (Makefile.am): Remove lib_SOURCES.
61104         * modules/argmatch, modules/c-stack, modules/closeout:
61105         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
61106         * modules/execute, modules/file-type, modules/getaddrinfo:
61107         * modules/getopt, modules/human, modules/javacomp:
61108         * modules/javaexec, modules/mkdir-p, modules/obstack:
61109         * modules/openat, modules/pagealign_alloc, modules/pipe:
61110         * modules/quotearg, modules/regex, modules/rpmatch:
61111         * modules/unicodeio, modules/userspec, modules/version-etc:
61112         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
61113         * modules/xsetenv:
61114         Depend on gettext-h, not gettext.
61115
61116 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         * gnulib-tool (func_import): Add support for 'public domain' license.
61119         * modules/alloca, modules/atexit, modules/memmove:
61120         Now public domain, not GPL.
61121         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
61122         * modules/realloc, modules/strerror, modules/strtod:
61123         Now LGPL, not GPL.
61124
61125 2005-07-05  Bruno Haible  <bruno@clisp.org>
61126
61127         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
61128         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
61134
61135 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         Remove the dependency of the strftime module on the tzset module.
61138         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
61139         gl_FUNC_TZSET_CLOBBER.
61140
61141 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61142
61143         Remove the dependency of the strftime module on the tzset module.
61144         * lib/strftime.c (my_strftime)
61145         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
61146         Copy the input structure, to work around some of the bug with
61147         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
61148         Solaris releases, you should also use the tzset module, but we won't
61149         require it as a dependency any more since we don't want LGPLed code
61150         to depend on GPLed code.
61151
61152 2005-07-02  Jim Meyering  <jim@meyering.net>
61153
61154         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
61155         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
61156         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
61157         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
61158
61159 2005-07-02  Jim Meyering  <jim@meyering.net>
61160
61161         * lib/backupfile.c (backup_args): Change a `0' to NULL.
61162
61163 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61164
61165         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
61166         declares only 'struct timespec;' (!).
61167
61168 2005-07-01  Jim Meyering  <jim@meyering.net>
61169
61170         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
61171         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
61172         * lib/save-cwd.c, tempname.c:
61173         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
61174         and don't include <sys/file.h>).
61175
61176 2005-06-29  Jim Meyering  <jim@meyering.net>
61177
61178         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
61179         type name.  Use the variable name instead.
61180         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
61181         Likewise.
61182
61183 2005-06-28  Simon Josefsson  <jas@extundo.com>
61184
61185         * modules/check-version (Files): Add check-version.m4.
61186
61187 2005-06-28  Simon Josefsson  <jas@extundo.com>
61188
61189         * m4/check-version.m4: New file, suggested by Jim Meyering
61190         <jim@meyering.net>.
61191
61192 2005-06-28  Simon Josefsson  <jas@extundo.com>
61193
61194         * lib/check-version.h, lib/check-version.c: New files.
61195
61196 2005-06-28  Simon Josefsson  <jas@extundo.com>
61197
61198         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
61199         collision with global variable.  Better indentation.  Don't
61200         increment buffer pointer beyond buffer end.  Based on comments
61201         from Paul Eggert <eggert@cs.ucla.edu>.
61202
61203         * lib/base64.h: Indent.
61204
61205 2005-06-28  Simon Josefsson  <jas@extundo.com>
61206
61207         * doc/gnulib.texi (Library version handling): New section.
61208
61209 2005-06-28  Jim Meyering  <jim@meyering.net>
61210
61211         * check-module (find_included_lib_files): Hard-code another
61212         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
61213         but modules/fts-lgpl (correctly) does not list those files.
61214
61215         * modules/canonicalize (Files): Add lib/pathmax.h.
61216
61217 2005-06-25  Simon Josefsson  <jas@extundo.com>
61218
61219         * modules/check-version: New file.
61220
61221 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
61222
61223         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
61224         initializer of struct addrinfo, as an indication that we don't
61225         care how many members the structure has.
61226
61227 2005-06-24  Derek Price  <derek@ximbiot.com>
61228         and Bruno Haible  <bruno@clisp.org>
61229
61230         Remove stat module & update lstat.
61231         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
61232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61233         * m4/stat.m4: Remove this file.
61234
61235 2005-06-24  Derek Price  <derek@ximbiot.com>
61236         and Bruno Haible  <bruno@clisp.org>
61237
61238         Remove stat module & update lstat.
61239         * lib/stat.c: Remove this file...
61240         (slash_aware_lstat): ...moving this content and its support...
61241         * lib/lstat.c (rpl_lstat): ...into here.
61242         * lib/lstat.h: New file.
61243
61244 2005-06-24  Derek Price  <derek@ximbiot.com>
61245         and Bruno Haible  <bruno@clisp.org>
61246
61247         Remove stat module & update lstat.
61248         * config/srclist.txt (libc sources): Remove stat.
61249
61250 2005-06-24  Derek Price  <derek@ximbiot.com>
61251         and Bruno Haible  <bruno@clisp.org>
61252
61253         Remove stat module & update lstat.
61254         * MODULES.html.sh (stat): Remove.
61255         * MODULES.html: Regenerated.
61256         * modules/lstat (Description): Correct function name.
61257         (Files): Add "lstat.h".
61258         (Depends-on): Remove stat, add xalloc, stat-macros.
61259         * modules/stat: Remove this file.
61260         (Include): Add "lstat.h", remove <sys/stat.h>.
61261
61262 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
61265         (ranged_convert): Don't save conversion in a temporary struct.
61266         This causes a warning with GCC 4.0.0, and anyway in the typical
61267         case it's not worth the extra 100 bytes or so of code.
61268         (ranged_convert, __mktime_internal): When calling a function via a
61269         pointer P, use P () rather than (*P) (), as we now assume C89 or
61270         better.
61271
61272 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
61275         "who -r" failed to give output.  Problem reported by Tim Waugh.
61276
61277         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
61278         (xcalloc): Use it to avoid needless tests.
61279         Problem reported by Jim Meyering.
61280
61281 2005-06-20  Derek Price  <derek@ximbiot.com>
61282
61283         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
61284         unnecessary for Autoconfs > 2.59c.
61285
61286 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61287
61288         * lib/argp.h (__option_is_short): Check upper limit of
61289         __key. Isprint() requires its argument to have the value
61290         of an unsigned char or EOF.
61291
61292 2005-06-16  Jim Meyering  <jim@meyering.net>
61293
61294         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
61295         when either N or S is zero.
61296
61297 2005-06-16  Derek Price  <derek@ximbiot.com>
61298
61299         * m4/bison.m4: Declare YACC & YFLAGS precious.
61300
61301 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
61304         multibyte string or pattern, fall back on unibyte matching.
61305         Problem reported by James Youngman.
61306
61307 2005-06-08  Bruno Haible  <bruno@clisp.org>
61308
61309         * modules/csharpcomp: New file.
61310         * MODULES.html.sh (C#): Add csharpcomp.
61311
61312 2005-06-08  Bruno Haible  <bruno@clisp.org>
61313
61314         * m4/csharpcomp.m4: New file, from GNU gettext.
61315
61316 2005-06-08  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/csharpcomp.h: New file, from GNU gettext.
61319         * lib/csharpcomp.c: New file, from GNU gettext.
61320         * lib/csharpcomp.sh.in: New file, from GNU gettext.
61321
61322 2005-06-08  Bruno Haible  <bruno@clisp.org>
61323
61324         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
61325         warning on mingw.
61326
61327 2005-06-07  Derek Price  <derek@ximbiot.com>
61328
61329         Sync from CVS.
61330         * lib/glob_.h: Indent nested #ifdef.
61331
61332 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         Sync from coreutils.
61335         Use "file name" when talking about file names, instead of "filename"
61336         or "path", as per the GNU coding standards.
61337         * lib/mkdir-p.c: Renamed from makepath.c.
61338         (make_dir_parents): Renamed from make_path.  All callers changed.
61339         * lib/mkdir-p.h: Likewise.  All includers changed.
61340         * lib/filenamecat.c: Renamed from path-concat.c.
61341         (file_name_concat): Renamed from path_concat.  All callers changed.
61342         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
61343         * lib/filenamecat.h: Likewise.  All includers changed.
61344         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
61345         in comments or local variable names.
61346         * lib/basename.c: Likewise.
61347         * lib/canonicalize.c, canonicalize.h: Likewise.
61348         * lib/dirname.c, dirname.h: Likewise.
61349         * lib/euidaccess.c: Likewise.
61350         * lib/exclude.c: Likewise
61351         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
61352         * lib/fsusage.c, fsuage.h: Likewise.
61353         * lib/fts.c, fts_.h: Likewise.
61354         * lib/getcwd.c: Likewise.
61355         * lib/getloadavg.c: Likewise.
61356         * lib/mkstemp.c: Likewise.
61357         * lib/mountlist.c, mountlist.h: Likewise.
61358         * lib/openat.c, openat.h: Likewise.
61359         * lib/readlink-stub.c: Likewise.
61360         * lib/readutmp.c, readutmp.h: Likewise.
61361         * lib/rename.c: Likewise.
61362         * lib/rmdir.c: Likewise.
61363         * lib/same.c: Likewise.
61364         * lib/savedir.c: Likewise.
61365         * lib/stripslash.c: Likewise.
61366         * lib/tempname.c: Likewise.
61367         * lib/xreadlink.c: Likewise.
61368         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
61369         All uses changed.
61370         * lib/exclude.h: Likewise.
61371
61372         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
61373         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61374         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
61375         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61376         * lib/pathmax.h: Include <limits.h> unconditionally, since other
61377         files have been getting away with it for years (MORE/BSD 4.3
61378         is extinct now).
61379         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
61380         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
61381
61382         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
61383         Define to 256, not 255, as per modern POSIX.
61384
61385 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61386
61387         Sync from coreutils.
61388         Use "file name" when talking about file names, instead of "filename"
61389         or "path", as per the GNU coding standards.
61390         * MODULES.html.sh: mkdir-p renamed from makepath.
61391         filenamecat renamed from path-concat.
61392         * modules/filenamecat: Renamed from modules/path-concat.
61393         (Files): filenamecat.h and filenamecat.c renamed from
61394         path-concat.h and path-concat.c.
61395         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
61396         (Include): filenamecat.h, not path-concat.h.
61397         * modules/mkdir-p: Renamed from modules/makepath.
61398         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
61399         makepath.c.
61400         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
61401         (Include): mkdir-p.h, not makepath.h.
61402
61403 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
61404
61405         Sync from coreutils.
61406         * m4/mkdir-p.m4: Renamed from makepath.m4.
61407         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
61408         Rename files from makepath.c to mkdir-p.c, and from
61409         makepath.h to mkdir-p.h.
61410         * m4/filenamecat.m4: Renamed from path-concat.m4.
61411         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
61412         Rename files from path-concat.c to filenamecat.c,
61413         and from path-concat.h to filenamecat.h.
61414         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
61415         "file name" in local variables or comments.
61416         * m4/rename.m4: Likewise.
61417
61418 2005-06-01  Bruno Haible  <bruno@clisp.org>
61419
61420         * modules/csharpexec: New file.
61421         * MODULES.html.sh (C#): New section.
61422
61423 2005-06-01  Bruno Haible  <bruno@clisp.org>
61424
61425         * m4/csharp.m4: New file, from GNU gettext.
61426         * m4/csharpexec.m4: New file, from GNU gettext.
61427
61428 2005-06-01  Bruno Haible  <bruno@clisp.org>
61429
61430         * lib/csharpexec.h: New file, from GNU gettext.
61431         * lib/csharpexec.c: New file, from GNU gettext.
61432         * lib/csharpexec.sh.in: New file, from GNU gettext.
61433
61434 2005-05-31  Derek Price  <derek@ximbiot.com>
61435             Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         Sync from cvs.
61438         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61439
61440 2005-05-31  Derek Price  <derek@ximbiot.com>
61441             Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         Sync from cvs.
61444         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
61445
61446 2005-05-29  Derek Price  <derek@ximbiot.com>
61447
61448         * config/srclist.txt (glob_.h, glob.c): Add these files.
61449
61450 2005-05-29  Derek Price  <derek@ximbiot.com>
61451
61452         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
61453         * modules/glob: New file.
61454         * modules/getlogin_r: Add link to POSIX spec in description.
61455
61456 2005-05-29  Derek Price  <derek@ximbiot.com>
61457             Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * m4/glob.m4: New file.
61460
61461 2005-05-29  Derek Price  <derek@ximbiot.com>
61462             Paul Eggert  <eggert@cs.ucla.edu>
61463
61464         * lib/glob_.h, lib/glob.c: New files.
61465
61466 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * modules/fts (Files): Remove m4/inttypes-pri.m4.
61469         * modules/fts-lgpl (Depends-on): Remove gettext.
61470
61471 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61472
61473         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
61474         and don't require gt_INTTYPES_PRI.
61475
61476 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
61477
61478         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
61479
61480         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
61481         the configuration hassle isn't worth it.
61482         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
61483         (LONGEST_MODIFIER, PRIuMAX): Remove.
61484
61485 2005-05-27  Bruno Haible  <bruno@clisp.org>
61486
61487         * lib/getlogin_r.h: Remove second include of <stddef.h>.
61488
61489 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
61492         _POSIX_PTHREAD_SEMANTICS for Solaris.
61493
61494 2005-05-25  Derek Price  <derek@ximbiot.com>
61495
61496         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
61497
61498 2005-05-25  Derek Price  <derek@ximbiot.com>
61499             Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         * modules/getlogin_r, m4/getlogin_r.m4: New files.
61502         * lib/getlogin_r.c, getlogin_r.h: New files.
61503
61504 2005-05-25  Bruno Haible  <bruno@clisp.org>
61505             Derek Price  <derek@ximbiot.com>
61506
61507         * lib/getlogin_r.h: Simplify API documentation.
61508
61509 2005-05-23  Derek Price  <derek@ximbiot.com>
61510
61511         * modules/minmax (Files): Add m4/minmax.m4.
61512         (configure.ac): Add gl_MINMAX.
61513
61514 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
61517         so that unistd-safer.h (GPL'ed code) need not be included.
61518
61519 2005-05-22  Bruno Haible  <bruno@clisp.org>
61520
61521         * m4/minmax.m4: New file.
61522         Based on a patch by Derek Price <derek@ximbiot.com>.
61523
61524 2005-05-22  Bruno Haible  <bruno@clisp.org>
61525
61526         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
61527         (INT64_MIN): Fix definition.
61528         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
61529
61530         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
61531         NEED_SIGNED_INT_TYPES.
61532
61533         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
61534         HAVE_SYSTEM_INTTYPES.
61535
61536 2005-05-22  Bruno Haible  <bruno@clisp.org>
61537
61538         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
61539         Also include <sys/param.h> if it defines MIN, MAX.
61540         Based on a patch by Derek Price <derek@ximbiot.com>.
61541
61542 2005-05-21  Jim Meyering  <jim@meyering.net>
61543
61544         * modules/fts (Files): Add m4/inttypes-pri.m4.
61545         (Depends-on): Add lstat and remove gettext.  Alphabetize.
61546
61547 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61548
61549         New fts module.
61550         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
61551         (setup_dir, free_dir): New functions.
61552         (enter_dir, leave_dir): Define trivial
61553         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
61554         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
61555         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
61556         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
61557         Move to fts-cycle.c.
61558         (fts_open): Use setup_dir.
61559         (fts_close): Use free_dir.
61560         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
61561         This adds a label and some gotos, but the alternatives were messier.
61562         Check for memory allocation failure when entering a dir.
61563         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
61564         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
61565         (FTS): New member fts_cycle, that is a union that contains the
61566         old active_dir_ht and cycle_state.  All uses changed to mention
61567         fts_cycle.ht and fts_cycle.state.
61568         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
61569         fts.c, with the following changes:
61570         (setup_dir, free_dir): New functions.
61571         (enter_dir): Now returns bool.  Return true if successful, false
61572         if memory exhausted.  All callers changed.
61573         Do not bother partly cleaning up on
61574         memory allocation failure; that is free_dir's job.
61575         However, free ad if hash_insert fails, to avoid memory leak.
61576         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
61577         fts->fts_options to see which union member to use.
61578
61579 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61580
61581         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
61582         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
61583
61584 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
61587
61588 2005-05-20  Jim Meyering  <jim@meyering.net>
61589
61590         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
61591         Now a macro, to pacify GCC.
61592
61593 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61594
61595         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
61596         of -1.
61597
61598 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
61599
61600         * lib/chown.c (rpl_chown): Return -1 on failure.
61601
61602 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
61605         Don't check for stddef.h.
61606         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
61607         don't use its results.
61608         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
61609         since we include them unconditionally.  Don't require
61610         AM_STDBOOL_H, since stdbool is a prerequisite.
61611         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
61612         since we assume C89 or better.
61613         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
61614         as we don't use their results.
61615         Don't check for fchdir, memmove, memset, strrchr, as we use
61616         them unconditionally.
61617         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
61618         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
61619
61620 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
61621
61622         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
61623         Include <stddef.h> unconditionally, since we assume C89 now.
61624         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
61625         * lib/fts.c: Include fts_.h first, to check interface.
61626         Do not include intprops.h; no longer needed.
61627         Include cycle-check.h and hash.h, since fts_.h no longer does.
61628         Remove unnecessary casts of closedir to void.
61629         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
61630         decide whether to decrement nlinks.
61631         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
61632         (FTS): Use struct hash_table * instead of Hash_table, so that
61633         we no longer need to include hash.h here.
61634
61635 2005-05-18  Jim Meyering  <jim@meyering.net>
61636
61637         * modules/dirfd (License): Change to LGPL.  Most of the code
61638         is already in the public domain.
61639
61640 2005-05-18  Jim Meyering  <jim@meyering.net>
61641
61642         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
61643         Reported by Yoann Vandoorselaere.
61644
61645 2005-05-17  Jim Meyering  <jim@meyering.net>
61646
61647         * m4/fts.m4: New file, from coreutils.
61648
61649 2005-05-17  Jim Meyering  <jim@meyering.net>
61650
61651         * lib/fts.c, lib/fts_.h: New files, from coreutils.
61652
61653 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         Sync from coreutils.
61656         * m4/unlinkdir.m4: New file.
61657
61658 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61659
61660         Sync from coreutils.
61661         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
61662         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
61663         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
61664         White space changes only.
61665         * lib/makepath.c (make_path): Port to hosts where leading "//" is
61666         special.
61667         * lib/yesno.c: Include getline.h, not ctype.h.
61668         (yesno): Don't remove leading white space; POSIX doesn't allow it.
61669         Use getline to remove arbitrary restriction on response length.
61670
61671 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61672
61673         * config/srclist-update: Spell out "Street" in FSF postal
61674         mail address; this is the style the FSF seems to prefer.
61675
61676         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
61677         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
61678         this updates FSF postal mail address.
61679
61680         Sync from coreutils.
61681         * modules/unlinkdir: New file.
61682         * modules/yesno (Depends-on): Add getline.
61683         * MODULES.html.sh (File system functions): Add unlinkdir.
61684
61685 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
61688         lib/strsep.h:
61689         Change the initial comment to refer to GPL, not LGPL.
61690         gnulib-tool will change it to LGPL as needed.
61691
61692         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
61693         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
61694         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
61695         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
61696         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
61697         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
61698         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
61699         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
61700         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
61701         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
61702         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
61703         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
61704         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
61705         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
61706         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
61707         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
61708         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
61709         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
61710         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
61711         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
61712         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
61713         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
61714         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
61715         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
61716         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
61717         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
61718         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
61719         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
61720         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
61721         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
61722         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
61723         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
61724         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
61725         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
61726         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
61727         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
61728         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
61729         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
61730         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
61731         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
61732         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
61733         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
61734         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
61735         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
61736         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
61737         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
61738         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
61739         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
61740         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
61741         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
61742         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61743         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
61744         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
61745         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
61746         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
61747         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
61748         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
61749         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
61750         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
61751         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
61752         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
61753         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
61754         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
61755         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
61756         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
61757         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
61758         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
61759         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
61760         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
61761         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
61762         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
61763         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
61764         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
61765         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
61766         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
61767         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
61768         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
61769         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
61770         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
61771         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
61772         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
61773         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
61774         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
61775         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
61776         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
61777         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
61778         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
61779         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
61780         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
61781         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
61782         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
61783         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
61784         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
61785         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
61786         lib/yesno.c, lib/yesno.h:
61787         Update FSF postal mail address.
61788
61789 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
61792         tests/test-memmem.c, tests/test-stpncpy.c:
61793         Update FSF postal mail address.
61794
61795 2005-05-13  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
61798         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
61799         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
61800         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
61801         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
61802         Add support for 64-bit integers in the MSVC compiler.
61803
61804 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61805
61806         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
61807
61808 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
61809
61810         * gnulib-tool (func_import): Sort and uniquify recommended includes.
61811
61812 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
61813
61814         * doc/getdate.texi (General date syntax): Don't say that date
61815         date --iso-8601=ns generates acceptable dates; it doesn't yet.
61816         Problem reported by Nic Ferrier.
61817
61818 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61819
61820         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
61821         specified in ai_socktype. Fix invalid ai_protocol
61822         check. ai_protocol is usually set to 0 or depending on
61823         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
61824         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
61825         ai_socktype / ai_protocol in the returned addrinfo structure.
61826
61827 2005-05-10  Simon Josefsson  <jas@extundo.com>
61828
61829         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
61830         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61831
61832 2005-05-10  Karl Berry  <karl@gnu.org>
61833
61834         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
61835         (from http://www.gnu.org/licenses).
61836         * doc/COPYING.LIB: also rename to COPYING.LESSER.
61837         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
61838         fdl.texi suffices.
61839
61840 2005-05-10  Karl Berry  <karl@gnu.org>
61841
61842         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
61843         (COPYING.DOC): remove.
61844
61845         * config/srclist-update: new FSF address.
61846
61847 2005-05-10  Derek Price  <derek@ximbiot.com>
61848
61849         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
61850         possible.
61851
61852 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61853             Bruno Haible  <bruno@clisp.org>
61854
61855         * modules/inet_ntop: New file.
61856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61857         inet_ntop.
61858
61859 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61860             Bruno Haible  <bruno@clisp.org>
61861
61862         * m4/inet_ntop.m4: New file.
61863
61864 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61865             Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/inet_ntop.h: New file.
61868         * lib/inet_ntop.c: New file, from glibc with modifications.
61869
61870 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * modules/time_r (License): Change to LGPL.
61873         * modules/extensions (License): Change to LGPL.  Actually,
61874         the license is more permissive than that, but currently gnulib-tool
61875         doesn't know how to handle more-permissive licenses.
61876
61877         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
61878         Problem reported by Dave Love.
61879
61880 2005-05-08  Jim Meyering  <jim@meyering.net>
61881
61882         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
61883         blank.
61884
61885 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61886
61887         * modules/argmatch (Depends-on): Add stdbool.
61888         * modules/backupfile (Depends-on): Likewise.
61889         * modules/chdir-long (Depends-on): Likewise.
61890         * modules/closeout (Depends-on): Likewise.
61891         * modules/cycle-check (Depends-on): Likewise.
61892         * modules/dirname (Depends-on): Likewise.
61893         * modules/fnmatch (Depends-on): Likewise.
61894         * modules/fsusage (Depends-on): Likewise.
61895         * modules/fwriteerror (Depends-on): Likewise.
61896         * modules/getcwd (Depends-on): Likewise.
61897         * modules/getloadavg (Depends-on): Likewise.
61898         * modules/hard-locale (Depends-on): Likewise.
61899         * modules/makepath (Depends-on): Likewise.
61900         * modules/mountlist (Depends-on): Likewise.
61901         * modules/nanosleep (Depends-on): Likewise.
61902         * modules/posixtm (Depends-on): Likewise.
61903         * modules/quotearg (Depends-on): Likewise.
61904         * modules/readtokens (Depends-on): Likewise.
61905         * modules/readtokens0 (Depends-on): Likewise.
61906         * modules/readutmp (Depends-on): Likewise.
61907         * modules/save-cwd (Depends-on): Likewise.
61908         * modules/strftime (Depends-on): Likewise.
61909         * modules/userspec (Depends-on): Likewise.
61910         * modules/utimecmp (Depends-on): Likewise.
61911         * modules/xgetcwd (Depends-on): Likewise.
61912         * modules/xnanosleep (Depends-on): Likewise.
61913         * modules/xstrtod (Depends-on): Likewise.
61914         * modules/yesno (Depends-on): Likewise.
61915
61916 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
61919         needless checks.
61920
61921 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         Merge from coreutils.  Among other things,
61924         add bulletproofing for cases where stdin, stdout, or stderr are closed.
61925         * lib/fd-safer.c: New file.
61926         * lib/fcntl-safer.h, open-safer.c: Remove.
61927         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
61928         * lib/dup-safer.c: Include unistd-safer.h first.
61929         Don't include errno.h.
61930         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
61931         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
61932         * lib/file-type.c: Rely on file-type.h change.
61933         * lib/getloadavg.c: Include unistd-safer.h.
61934         (getloadavg): Use safer open.
61935         * lib/getusershell.c: Include "stdio-safer.h".
61936         (getusershell): Use safer fopen.
61937         * lib/long-options.c (long_options): Use NULL rather than 0.
61938         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
61939         'free'.
61940         * lib/modechange.c: Likewise.
61941         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
61942         (MODE_DONE): New constant.
61943         (struct mode_change): Remove 'next' member.
61944         (make_node_op_equals): New function; like the old one of the
61945         same name, except it allocates an array.
61946         (mode_compile, mode_create_from_ref): Use it.
61947         (mode_compile): Allocate result as an array, not a linked list.
61948         Parse octal string ourself, so that we catch mistakes like "+0".
61949         (mode_adjust): Arg is an array, not a linked list.
61950         * lib/modechange.c: Include stat-macros.h, xalloc.h.
61951         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
61952         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
61953         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
61954         Remove.  This is now stat-macros.h's job.
61955         (talloc): Remove.  All callers replaced by xalloc, so that
61956         our invokers don't have to worry about reporting memory failures.
61957         (make_node_op_equals): Remove.
61958         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61959         New constants.
61960         (struct mode_change): Moved here from modechange.h.
61961         (mode_append_entry): Remove.
61962         (mode_compile): Remove MASKED_OPS arg, since it encouraged
61963         apps to have incorrect behavior.  Use simpler algorithm for head
61964         and tail.  Don't futz with umask; that's now the job of mode_adjust.
61965         Detect more invalid usages rather than having somewhat-random behavior.
61966         Don't insert an "a=" action, as that leads to incorrect behavior.
61967         (mode_compile, mode_create_from_ref): Return NULL on error instead
61968         of an enum, since now there's only one way to have an error.  All
61969         callers changed.
61970         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
61971         at the correct time.  Simplify calculation of "+u" and its ilk.
61972         Don't mishandle "+X".
61973         (mode_free): Remove "register" and localize decls.
61974         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
61975         (struct mode_change): Move to modechange.c; callers don't
61976         need to see this stuff.
61977         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
61978         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
61979         (mode_change, mode_adjust): Reflect the new signatures noted above.
61980         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
61981         that might redefine system include files.
61982         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
61983         (my_usleep): Use NULL rather than (void *) 0.
61984         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
61985         Use siginterrupt to specify that system calls should be interrupted.
61986         (rpl_nanosleep): Move initialization of suspended closer to call of
61987         my_usleep.
61988         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
61989         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
61990         (desirable_utmp_entry): New function.
61991         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
61992         using x2nrealloc, to simplify logic.
61993         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
61994         size calculation.  Do not assume utmp file is a regular file.
61995         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
61996         (READ_UTMP_CHECK_PIDS): New constant.
61997         * lib/save-cwd.c: Include unistd-safer.h.
61998         (save_cwd): Use fd_safer.
61999         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
62000         [!_LIBC] Include "stat-macros.h" instead.
62001         * lib/unistd-safer.h (fd_safer): New decl.
62002
62003 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62004
62005         * modules/getloadavg (Depends-on): Add unistd-safer.
62006         * modules/getusershell (Depends-on): Add stdio-safer.
62007         * modules/lstat (Depends-on): Remove xalloc.
62008         * modules/mkstemp (Depends-on): Add stat-macros.
62009         * modules/modechange (Depends-on): Remove xstrtol.
62010         Add stat-macros, xalloc.
62011         * modules/save-cwd (Depends-on): Add unistd-safer.
62012         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
62013         * modules/unistd-safer (Files): Add lib/fd-safer.c
62014         (Makefile.am): Remove lib_SOURCES.
62015
62016         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
62017         Remove fcntl-safer; unistd-safer supersedes it.
62018
62019 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62020
62021         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
62022         AC_HEADER_STAT.
62023         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
62024         (gl_PREREQ_CHOWN): Remove.
62025         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
62026         it.  Don't require AC_HEADER_STAT.
62027         (gl_PREREQ_LSTAT): Remove.
62028         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
62029         Don't require AC_HEADER_STAT.
62030         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
62031         (gl_PREREQ_RMDIR): Remove.
62032         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
62033         mention stat-macros.h or AC_HEADER_STAT, since we'll make
62034         the stat-macros module a prerequisite.
62035         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
62036         * m4/filemode.m4 (gl_FILEMODE): Likewise.
62037         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
62038         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
62039         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
62040         variable names.
62041         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
62042         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
62043         variable prefixes.
62044         * m4/fcntl-safer.m4: Remove.
62045         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
62046         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
62047         Invoke gl_PREREQ_FD_SAFER.
62048         (gl_PREREQ_FD_SAFER): New macro.
62049         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
62050         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
62051         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
62052         Remove duplicate call to AC_LIBOBJ(readutmp).
62053         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
62054
62055         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
62056         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
62057
62058 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
62059
62060         * MODULES.html.sh (Misc): Add byteswap.
62061
62062 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62063
62064         * modules/getcwd (Depends-on): Add extensions.
62065         * modules/openat (Depends-on): Likewise.
62066
62067 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62068
62069         * modules/byteswap: New file.
62070
62071 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62072
62073         * m4/byteswap.m4: New file.
62074
62075 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
62076
62077         * lib/byteswap_.h: New file.
62078
62079 2005-04-25  Karl Berry  <karl@gnu.org>
62080
62081         * m4/gettext.m4: Update from GNU gettext 0.14.4.
62082
62083 2005-04-25  Albert Chin  <china@thewrittenword.com>
62084
62085         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
62086         Toolkit C bug.
62087
62088 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
62089
62090         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
62091         (func_ln_if_changed) Remove forcibly for no error message
62092         in case file does not exist.
62093
62094 2005-04-19  Simon Josefsson  <jas@extundo.com>
62095
62096         * gnulib-tool (Options): Make --symlink mean --symbolic.
62097
62098 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
62099
62100         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
62101
62102 2005-04-16  Simon Josefsson  <jas@extundo.com>
62103
62104         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
62105
62106 2005-04-15  Simon Josefsson  <jas@extundo.com>
62107
62108         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
62109
62110 2005-04-15  Simon Josefsson  <jas@extundo.com>
62111
62112         * gnulib-tool: Rename --symlink to --symbolic.
62113
62114 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
62115
62116         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
62117         symbolic links to files instead of copying/moving.  Add --aux-dir,
62118         specifying directory relative --dir where auxiliary build tools
62119         are placed.
62120
62121 2005-04-14  Bruno Haible  <bruno@clisp.org>
62122
62123         * modules/allocsa (License): Change to LGPL.
62124         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
62125
62126 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62127
62128         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
62129         that "UTC +1 second" continues to work.  Problem reported
62130         by Dmitry V. Levin.
62131         (relunit_snumber): New rule.
62132         (relunit): Use it.
62133
62134 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62135
62136         * lib/getdate.y (universal_time_zone_table): New constant.
62137         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
62138         universal_time_zone_table.
62139         (lookup_zone): Prefer universal_time_zone_table to
62140         local_time_zone_table, so that "GMT" time stamps are allowed in
62141         London during the summer.  Problem reported by Ian Abbott.
62142
62143 2005-04-12  Jim Meyering  <jim@meyering.net>
62144
62145         * lib/human.c (humblock): Set *options even when returning due to
62146         xstrtoumax conversion failure.  Thanks to a used-uninitialized
62147         warning from gcc-4.
62148
62149 2005-04-09  Jim Meyering  <jim@meyering.net>
62150
62151         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
62152         -Wuninitialized: initialize tm0.tm_year.
62153
62154 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
62157         count, since there's no maximum.  All uses changed.
62158         Add member dsts_seen.
62159         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
62160         not being INT_MAX.
62161         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
62162         Use pc_rels_seen to decide whther a date is absolute.
62163
62164         * lib/getdate.y (number): Don't overwrite year.
62165         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
62166         check.
62167
62168 2005-04-02  Simon Josefsson  <jas@extundo.com>
62169
62170         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
62171         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
62172
62173 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
62174
62175         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
62176         where no absolute path name can be longer than PATH_MAX.
62177
62178 2005-03-27  Jim Meyering  <jim@meyering.net>
62179
62180         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
62181
62182 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
62185         "one's complement" -> "ones' complement" in comment, as per Knuth.
62186         "value of type" -> "type or expression" in comment.
62187         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
62188
62189 2005-03-26  Jim Meyering  <jim@meyering.net>
62190
62191         Comment nits.
62192         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
62193         Correct typos: s/or/of/.
62194
62195 2005-03-26  Jim Meyering  <jim@meyering.net>
62196
62197         * modules/check-include-files: Move to ../ and rename to...
62198         * check-module: ...this.
62199
62200 2005-03-25  Jim Meyering  <jim@meyering.net>
62201
62202         * modules/xvasprintf (Files): Add xalloc.h.
62203
62204 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * modules/gettext (Files): config/config.rpath ->
62207         build-aux/config.rpath
62208         * modules/iconv (Files): Likewise.
62209         Problem reported by Oskar Liljeblad.
62210
62211 2005-03-23  Jim Meyering  <jim@meyering.net>
62212
62213         * modules/check-include-files: New script to check for
62214         missing dependencies, multiple includes, etc.
62215
62216         * modules/c-strtold (Depends-on): Add xalloc.
62217         * modules/c-strtod (Depends-on): Add xalloc.
62218         * modules/hash (Depends-on): Add xalloc.
62219         (Files): Remove lib/xalloc.h.
62220
62221         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
62222         * modules/userspec (Files): Add lib/inttostr.h.
62223
62224 2005-03-23  Jim Meyering  <jim@meyering.net>
62225
62226         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
62227
62228 2005-03-22  Jim Meyering  <jim@meyering.net>
62229
62230         * modules/stat-macros: New module.
62231         * modules/canonicalize, modules/euidaccess, modules/file-type,
62232         * modules/filemode, modules/lchown, modules/makepath,
62233         * modules/rmdir, modules/stat: Depend on new stat-macros module
62234         rather than listing lib/stat-macros.h manually.
62235         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
62236
62237 2005-03-22  Jim Meyering  <jim@meyering.net>
62238
62239         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
62240
62241 2005-03-22  Bruno Haible  <bruno@clisp.org>
62242
62243         * config/srclist.txt: Replace target directory 'config' with
62244         'build-aux'.
62245         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
62246         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
62247         ../build-aux/.
62248
62249 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * modules/chdir-long (Depends-on): Add mempcpy.
62252
62253         * modules/acl, modules/backupfile, modules/c-strtod,
62254         modules/c-strtold, modules/canon-host, modules/canonicalize,
62255         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
62256         modules/exclude, modules/exitfail, modules/file-type,
62257         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
62258         modules/getdate, modules/getline, modules/getpagesize,
62259         modules/getpass, modules/getugroups, modules/group-member,
62260         modules/hard-locale, modules/hash, modules/human, modules/idcache,
62261         modules/inttostr, modules/long-options, modules/makepath,
62262         modules/md5, modules/memcasecmp, modules/memcoll,
62263         modules/modechange, modules/mountlist, modules/path-concat,
62264         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
62265         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
62266         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
62267         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
62268         modules/strftime, modules/strndup, modules/strverscmp,
62269         modules/timespec, modules/unlocked-io, modules/userspec,
62270         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
62271         modules/yesno:
62272         Remove lib_SOURCES line from Makefile.am section, as this is now
62273         done automatically by the corresponding Autoconf macro.
62274
62275 2005-03-21  Jim Meyering  <jim@meyering.net>
62276
62277         Changes imported from coreutils.
62278
62279         * lib/cycle-check.c: Don't include xalloc.h.
62280
62281         * lib/path-concat.c: Don't include assert.h.
62282         (path_concat): Remove assertion that would have triggered
62283         for ABASE starting with more than one slash.
62284         Reported by Andreas Schwab.
62285
62286         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
62287         properly when ABASE is an absolute file name.
62288         Correct the description of this function.
62289         Include <assert.h>.
62290         Add an assertion and a test driver.
62291         This fixes a bug introduced on 2004-07-02.
62292         Andreas Schwab reported the resulting failure of cp --parents:
62293         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
62294
62295 2005-03-21  Jim Meyering  <jim@meyering.net>
62296
62297         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
62298         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
62299
62300 2005-03-21  Jim Meyering  <jim@meyering.net>
62301         and  Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
62304         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
62305         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
62306         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
62307         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
62308         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
62309         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
62310         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
62311         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
62312         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
62313         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
62314         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
62315         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
62316         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
62317         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
62318         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
62319         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
62320         for these modules.
62321
62322 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
62325         (which shouldn't happen), generate nothing instead of returning 0
62326         immediately, so that nstrftime (NULL, ...) doesn't return 0.
62327
62328 2005-03-16  Bruno Haible  <bruno@clisp.org>
62329
62330         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
62331         HAVE_LONGLONG_64BIT.
62332
62333 2005-03-16  Bruno Haible  <bruno@clisp.org>
62334
62335         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
62336         HAVE_LONGLONG_64BIT.
62337
62338 2005-03-16  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
62341         HAVE_LONGLONG_64BIT.
62342
62343 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62344
62345         * lib/strftime.c (my_strftime): Prepend space to format so that we can
62346         reliably distinguish strftime failure from empty output on POSIX
62347         hosts.
62348
62349 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
62350
62351         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
62352         (iconv_string): Don't guess a size-zero buffer, as that might cause
62353         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
62354         result would be 'too large', where 'too large' is (heuristically)
62355         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
62356         overflow concerns.  This will prevent some unwanted malloc failures
62357         when the inputs are very large.
62358
62359 2005-03-15  Karl Berry  <karl@gnu.org>
62360
62361         * config/srclist.txt (config.rpath): from gettext.
62362         * config/config.rpath: update.
62363
62364 2005-03-15  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
62367         to 'negate'.
62368
62369         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
62370         variable.
62371
62372         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
62373         results.
62374
62375 2005-03-14  Simon Josefsson  <jas@extundo.com>
62376
62377         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
62378         <fx@gnu.org>.
62379
62380 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
62383         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
62384         intprops.h.
62385         * lib/strtol.c: Likewise.
62386
62387 2005-03-14  Jim Meyering  <jim@meyering.net>
62388
62389         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
62390         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
62391         to be nonzero so that we (and caller) can detect the difference
62392         between a valid zero-length expansion and an error return, even
62393         when the underlying strftime fails before writing anything into
62394         that location.
62395
62396 2005-03-14  Bruno Haible  <bruno@clisp.org>
62397
62398         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
62399         Update from GNU gettext 0.14.3.
62400
62401 2005-03-10  Jim Meyering  <jim@meyering.net>
62402
62403         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
62404
62405 2005-03-10  Jim Meyering  <jim@meyering.net>
62406
62407         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
62408         so that this module works on systems without fchdir.
62409
62410 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
62411
62412         Factor int-properties macros into a single file, except for
62413         glibc-related files.
62414         * lib/intprops.h: New file.
62415         * lib/getloadavg.c: Include it instead of limits.h.
62416         (INT_STRLEN_BOUND): Remove.
62417         * lib/human.c: Include intprops.h.
62418         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
62419         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
62420         302/1000.
62421         * lib/inttostr.h: Include intprops.h instead of limits.h.
62422         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
62423         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
62424         for consistency with intprops.h.
62425         (time_t_is_integer, twos_complement_arithmetic): Use them.
62426         * lib/sig2str.h: Include <signal.h>, intprops.h.
62427         (INT_STRLEN_BOUND): Remove.
62428         * lib/strftime.c (TYPE_SIGNED): Remove.
62429         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
62430         * lib/strtol.c: Adjust comments to match intprops.h.
62431         * lib/userspec.c: Include intprops.h.
62432         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
62433         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
62434         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
62435         instead of rolling our own expressions.
62436         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
62437
62438         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
62439         instead of int.
62440         (my_strftime): Do not mishandle years close to INT_MAX, by doing
62441         the right thing even if adding 1900 would overflow.  Similarly
62442         for tm_mon + 1 and tm_yday + 1.
62443         Make %Y always equivalent to %C%y, and similarly for %G and %g.
62444         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
62445         (DO_SIGNED_NUMBER): New macro.
62446         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
62447
62448 2005-03-07  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
62451
62452 2005-03-07  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
62455
62456 2005-03-04  Derek R. Price  <derek@ximbiot.com>
62457
62458         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
62459         (func_import): Only replace files via --import when they have actually
62460         changed.
62461
62462 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62463
62464         * m4/mmap-anon.m4: New file.
62465         * m4/pagealign_alloc.m4: New file.
62466
62467 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62468             Bruno Haible  <bruno@clisp.org>
62469
62470         * modules/pagealign_alloc: New file.
62471         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
62472
62473 2005-03-03  Derek R. Price  <derek@ximbiot.com>
62474             Bruno Haible  <bruno@clisp.org>
62475
62476         * lib/pagealign_alloc.h: New file.
62477         * lib/pagealign_alloc.c: New file.
62478
62479 2005-03-03  Bruno Haible  <bruno@clisp.org>
62480
62481         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
62482         Use an all-permissive copyright notice, recommended by RMS.
62483
62484 2005-03-02  Bruno Haible  <bruno@clisp.org>
62485
62486         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
62487         of AIX, the replacement has to be done only after <string.h> is
62488         included, therefore not in config.h. stpncpy.h does the replacement,
62489         and stpncpy.c uses it.
62490
62491 2005-03-02  Bruno Haible  <bruno@clisp.org>
62492
62493         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
62494         stpncpy.c uses it.
62495
62496 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
62499         The workaround isn't strictly needed for POSIX conformance, and
62500         it's too much of a pain to configure and maintain.  We'll ask
62501         people to fix their kernels instead.
62502         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
62503         (NANOSLEEP_BUG_WORKAROUND): Remove.
62504         (xnanosleep): Remove the workaround.
62505
62506 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62507
62508         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
62509         Reported by Derek Price.
62510         (Include): Add "timespec.h".
62511
62512         * modules/xnanosleep (Depends-on): Remove gethrxtime.
62513
62514 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62515
62516         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
62517         to detect nanosleep bug.
62518
62519 2005-03-01  Bruno Haible  <bruno@clisp.org>
62520
62521         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
62522
62523 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         * modules/gethrxtime: New file.
62526         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
62527         (Depends-on): Add gethrxtime.
62528         (configure.ac): Add gl_XNANOSLEEP.
62529         (Makefile.am): Remove lib_SOURCES line.
62530
62531 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62532
62533         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
62534         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
62535
62536 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62537
62538         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
62539         * lib/timespec.h (gettime): Return void, since it always
62540         succeeds now.  All uses changed.
62541         * lib/gettime.c (gettime) Likewise.
62542         [HAVE_NANOTIME]: Prefer nanotime.
62543         Assume gettimeofday succeeds, as POSIX requires.
62544         Assime time () succeeds, since other code already does.
62545         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
62546         (timespec_subtract): Remove.
62547         (NANOSLEEP_BUG_WORKAROUND): New constant.
62548         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
62549         things considerably.  Use it only on GNU/Linux hosts, since the
62550         workaround shouldn't be needed elsewhere.
62551
62552 2005-02-24  Bruno Haible  <bruno@clisp.org>
62553
62554         * modules/gettext (Files): Add m4/glibc2.m4.
62555
62556 2005-02-24  Bruno Haible  <bruno@clisp.org>
62557
62558         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
62559         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
62560         * m4/progtest.m4:
62561         Update from GNU gettext 0.14.2.
62562         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
62563
62564 2005-02-24  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/localcharset.c: Update from GNU gettext 0.14.2.
62567         * lib/config.charset: Update from GNU gettext 0.14.2.
62568
62569 2005-02-24  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/gettext.h: Update from GNU gettext 0.14.2.
62572
62573 2005-02-23  Simon Josefsson  <jas@extundo.com>
62574
62575         * m4/iconvme.m4: New file.
62576
62577 2005-02-23  Jim Meyering  <jim@meyering.net>
62578
62579         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
62580         change.
62581         Thanks to Bruno Haible for catching it.
62582
62583 2005-02-22  Simon Josefsson  <jas@extundo.com>
62584
62585         * modules/iconvme: New file.
62586
62587         * MODULES.html.sh: Add iconvme.
62588
62589 2005-02-22  Simon Josefsson  <jas@extundo.com>
62590
62591         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
62592
62593 2005-02-22  Simon Josefsson  <jas@extundo.com>
62594
62595         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
62596
62597 2005-02-22  Jim Meyering  <jim@meyering.net>
62598
62599         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
62600         s/ifndef/ifdef/.
62601
62602 2005-02-20  Neil Conway  <neilc@samurai.com>
62603
62604         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
62605         returned by OSX/Darwin if the specified buffer is not large
62606         enough for the hostname.
62607
62608 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62609
62610         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
62611         pass it to _help, otherwise the latter coredumps trying to
62612         dereference state.root_argp.
62613
62614 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * modules/chdir-long (Depends-on): Add memrchr.
62617         * modules/memrchr (Files): Add lib/memrchr.h.
62618         (Include): "memrchr.h".
62619
62620 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62621
62622         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
62623
62624 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/memrchr.h: New file.
62627         * lib/chdir-long.c: Include it.
62628         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
62629         Don't bother including stddef.h.
62630
62631 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
62634         inclusion.
62635         Include <sys/types.h>, for dev_t.
62636         (ME_DUMMY, ME_REMOTE): Move from here....
62637         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
62638         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
62639         Dmitry V. Levin.
62640         Include mountlist.h first, to test the interface.
62641
62642 2005-01-29  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/progname.c (program_name): Initialize.
62645         Needed when linking statically on MacOS X.
62646
62647 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         Sync from coreutils.
62650         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
62651         (Depends-on): Add c-strtod.
62652         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
62653
62654 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         Sync from coreutils.
62657         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
62658
62659         Remove files that are specific to coreutils.
62660         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
62661
62662 2005-01-28  Bruno Haible  <bruno@clisp.org>
62663
62664         * modules/javacomp: New file.
62665         * MODULES.html.sh (Java): Add javacomp.
62666
62667 2005-01-28  Bruno Haible  <bruno@clisp.org>
62668
62669         * m4/javacomp.m4: New file, from GNU gettext.
62670
62671 2005-01-28  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/javacomp.sh.in: New file, from GNU gettext.
62674         * lib/javacomp.h: New file, from GNU gettext.
62675         * lib/javacomp.c: New file, from GNU gettext.
62676
62677 2005-01-26  Simon Josefsson  <jas@extundo.com>
62678
62679         * lib/gai_strerror.c: Use GPL in header.
62680
62681 2005-01-26  Bruno Haible  <bruno@clisp.org>
62682
62683         * modules/javaexec: New file.
62684         * MODULES.html.sh (Java): Add javaexec.
62685
62686 2005-01-26  Bruno Haible  <bruno@clisp.org>
62687
62688         * m4/javaexec.m4: New file, from GNU gettext.
62689
62690 2005-01-26  Bruno Haible  <bruno@clisp.org>
62691
62692         * lib/javaexec.sh.in: New file, from GNU gettext.
62693         * lib/javaexec.h: New file, from GNU gettext.
62694         * lib/javaexec.c: New file, from GNU gettext.
62695
62696 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62697
62698         * modules/lchown (Depends-on): Remove lchown.h
62699
62700 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62701
62702         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
62703         must be defined if the header file was not found, in order
62704         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
62705
62706 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62707
62708         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
62709         initializers for struct pentry_state.
62710         (__argp_error): Check return value of __asprintf
62711         (__argp_failure): Translate error message
62712
62713         * lib/argp-parse.c: Removed braces around the expansion of N_()
62714
62715 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
62718         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
62719         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
62720         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
62721         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
62722         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
62723         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
62724         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
62725         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
62726         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
62727         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
62728         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
62729         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
62730         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
62731         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
62732         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
62733         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
62734         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
62735         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
62736         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
62737         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
62738         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
62739         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
62740         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
62741         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
62742         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
62743         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
62744         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
62745         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
62746         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
62747         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
62748         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
62749         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
62750         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
62751         xstrtol.m4, xstrtoumax.m4, yesno.m4:
62752         Use an all-permissive copyright notice, recommended by RMS.
62753
62754 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * modules/chdir-long (Depends-on): Remove mempcpy.
62757
62758 2005-01-21  Jim Meyering  <jim@meyering.net>
62759
62760         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
62761         same value as for Solaris 9.
62762
62763         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
62764         component length.  This included changing the parameter to be
62765         of type `char *' rather than `char const *'.
62766         * lib/chdir-long.h (chdir_long): Update prototype.
62767
62768         * lib/openat.c (fdopendir, fstatat): New functions.
62769         * lib/openat.h: Include headers required for use of DIR and struct
62770         stat.
62771         [AT_SYMLINK_NOFOLLOW]: Define.
62772         (fdopendir, fstatat): Add prototypes.
62773
62774 2005-01-21  Bruno Haible  <bruno@clisp.org>
62775
62776         * modules/classpath: New file.
62777         * MODULES.html.sh (Java): Add classpath.
62778
62779 2005-01-21  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/classpath.h: New file, from GNU gettext.
62782         * lib/classpath.c: New file, from GNU gettext.
62783
62784 2005-01-20  Simon Josefsson  <jas@extundo.com>
62785
62786         * modules/version-etc-fsf: New file.
62787
62788 2005-01-20  Simon Josefsson  <jas@extundo.com>
62789
62790         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
62791         * lib/version-etc.c: Remove version_etc_copyright.
62792         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
62793         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
62794
62795 2005-01-20  Simon Josefsson  <jas@extundo.com>
62796
62797         * lib/base64.h (isbase64): Add.
62798
62799         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
62800         using a unsigned prototype, don't inline.
62801         (base64_decode): Use it.
62802
62803 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
62806         it.
62807
62808 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * lib/save-cwd.c (save_cwd): Remove code to support the case
62811         where fchdir is missing or flaky.
62812
62813 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62814
62815         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
62816
62817 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
62820         AC_LIBSOURCES now does this.
62821         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
62822         with new ullong_max module.
62823
62824 2005-01-19  Bruno Haible  <bruno@clisp.org>
62825
62826         * modules/sh-quote: New file.
62827         * MODULES.html.sh (Executing programs): Add sh-quote.
62828
62829 2005-01-19  Bruno Haible  <bruno@clisp.org>
62830
62831         * lib/sh-quote.h: New file, from GNU gettext.
62832         * lib/sh-quote.c: New file, from GNU gettext.
62833
62834 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62835
62836         Merge from coreutils.
62837         * m4/ullong_max.m4: New file.
62838         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
62839         (gl_MACROS): Assume localeconv exists.
62840
62841 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62842
62843         Merge changes from coreutils, as described below in several
62844         changelogs dated today.
62845
62846         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
62847         (O_DIRECTORY): Remove; not needed here, since "." must be
62848         a directory.  All uses removed.
62849         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
62850         universal on Suns, and we also need to test for IRIX.
62851         Revamp code to use 'if' rather than '#if'.
62852         Avoid unnecessary comparison of cwd->desc to 0.
62853
62854         * lib/utimens.c (futimens): Robustify the previous patch, by checking
62855         for known valid error numbers rather than observed invalid ones.
62856
62857 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
62858
62859         * modules/ullong_max: New file.
62860
62861         * modules/chdir-long, modules/openat: New files.
62862         * modules/save-cwd (Depends-on): Depend on chdir-long.
62863         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
62864
62865 2005-01-18  Jim Meyering  <jim@meyering.net>
62866
62867         Merge from coreutils.
62868         * m4/chdir-long.m4, m4/openat.m4: New files.
62869         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
62870         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
62871         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
62872         is sane and DOES follow symlinks.  Besides, testing 20 different
62873         systems found no broken chown implementations.
62874         Prompted by a change in rsync's copy of this macro.
62875         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
62876
62877         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
62878
62879         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
62880         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
62881         NULL-means-set-to-current-time semantics.
62882         Remove temporary file immediately, rather than waiting
62883         for configure's at-exit trap code to do it.
62884
62885 2005-01-18  Jim Meyering  <jim@meyering.net>
62886
62887         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62888
62889         * lib/utimens.c (futimens): Account for the fact that futimes
62890         can also fail with errno == ENOSYS or errno == ENOENT.
62891         Patch from Dmitry V. Levin.
62892
62893         Change the name of the robust chdir function from chdir to chdir_long.
62894         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
62895         (restore_cwd): Use chdir_long, not chdir.
62896         * lib/chdir-long.c: Renamed from chdir.c.
62897         * lib/chdir-long.h: Renamed from chdir.h.
62898         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
62899         Hurd.
62900
62901 2005-01-18  Bruno Haible  <bruno@clisp.org>
62902
62903         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
62904         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
62905         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
62906         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
62907         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
62908         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
62909         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
62910         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
62911         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
62912         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
62913         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
62914         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
62915         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
62916         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
62917         Use an all-permissive copyright notice, recommended by RMS.
62918
62919 2005-01-18  Bob Proulx  <bob@proulx.com>
62920
62921         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
62922         simplify offsetof() macro construct to avoid compile failure with
62923         native HP-UX 11.0 ANSI C compiler.
62924
62925 2005-01-17  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
62928         redundant because stpncpy.m4 takes care of it.
62929
62930 2005-01-17  Bruno Haible  <bruno@clisp.org>
62931
62932         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
62933
62934 2005-01-17  Bruno Haible  <bruno@clisp.org>
62935
62936         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
62937         used.
62938
62939 2005-01-17  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/fwriteerror.h (fwriteerror): Change specification to include
62942         fclose.
62943         * lib/fwriteerror.c: Include <stdbool.h>.
62944         (fwriteerror): At the end, close the file stream. Record whether
62945         stdout was already closed.
62946
62947 2005-01-17  Bruno Haible  <bruno@clisp.org>
62948
62949         * lib/execute.c (environ): Declare if needed.
62950         * lib/pipe.c (environ): Likewise.
62951         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
62952
62953 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62954
62955         * modules/argp: Depend on vsnprintf
62956
62957 2005-01-10  Jim Meyering  <jim@meyering.net>
62958
62959         * modules/closeout (Depends-on): Add atexit.
62960
62961 2005-01-06  Bruno Haible  <bruno@clisp.org>
62962
62963         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
62964
62965 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
62968         definitions to be after all include files, to avoid collisions.
62969         Problem reported by Bob Proulx.
62970
62971 2005-01-04  Jim Meyering  <jim@meyering.net>
62972
62973         Changes imported from coreutils.
62974         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
62975         as the mkstemp template, use a temporary directory and an
62976         8.3-friendly template to avoid trouble on systems like DJGPP.
62977         Reported by Juan M. Guerrero via Stepan Kasal.
62978         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
62979         close. Remove the temporary directory right away, rather than waiting
62980         for configure's at-exit trap code to do it.
62981         Suggestion from Stepan Kasal.
62982
62983 2005-01-01  Simon Josefsson  <jas@extundo.com>
62984
62985         * gnulib-tool: Print #include directives when --import'ing.
62986
62987 2004-12-28  Simon Josefsson  <jas@extundo.com>
62988
62989         * tests/test-base64.c: Include required header files.  Remove
62990         unused variables.
62991
62992 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62993
62994         * modules/error (Depends-on): Remove gettext.
62995
62996 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
62999         not needed.  This removes a dependency on the gettext module.
63000         [defined _LIBC]: Do not include <libintl.h>; not needed.
63001
63002 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63003
63004         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
63005         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
63006
63007 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
63010         HAVE_DECL_STRTOLD.
63011
63012 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         * modules/getdate (Depends-on): Remove alloca-opt.
63015
63016 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
63019
63020 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63021
63022         * lib/argp-parse.c: Include <stddef.h>.
63023         (alignof, alignto): New macros.
63024         (parser_init): Don't assume that void * is aligned sufficiently
63025         for struct option.
63026
63027         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
63028         need to extend the stack.
63029         (YYINITDEPTH): New macro, so that the initial stack isn't overly
63030         large.
63031
63032 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63033
63034         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
63035
63036 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
63039         (2004-10-24) change.  Apparently this was a false alarm.
63040
63041         * modules/getdate: Depend on alloca-opt, not alloca.
63042
63043 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63044
63045         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
63046         Remove now-obsolete comment about AIX.
63047         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
63048         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
63049         (YYMAXDEPTH): New macro.
63050
63051 2004-12-18  Simon Josefsson  <jas@extundo.com>
63052
63053         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
63054
63055 2004-12-18  Bruno Haible  <bruno@clisp.org>
63056
63057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
63058
63059 2004-12-18  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/fatal-signal.c (fatal_signals): Make non-const.
63062         (init_fatal_signals): New function.
63063         (uninstall_handlers, install_handlers): Ignore signals that were set to
63064         SIG_IGN.
63065         (at_fatal_signal): Call init_fatal_signals.
63066         (init_fatal_signal_set): Likewise. Ignore signals that were set to
63067         SIG_IGN.
63068         Reported by Paul Eggert.
63069
63070 2004-12-18  Bruno Haible  <bruno@clisp.org>
63071
63072         * doc/alloca.texi: New file.
63073         * doc/alloca-opt.texi: New file.
63074
63075 2004-12-17  Jim Meyering  <jim@meyering.net>
63076
63077         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
63078         Otherwise, install-sh could exit with improper exit status when
63079         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
63080
63081 2004-12-16  Simon Josefsson  <jas@extundo.com>
63082
63083         * tests/test-base64.c: Add license.
63084
63085 2004-12-15  Stepan Kasal  <address@hidden>
63086
63087         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
63088
63089 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         * modules/getcwd (Files): Add m4/d-ino.m4.
63092         Suggested by Mark D. Baushke.
63093
63094 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * lib/getdate.y (textint): New member "negative".
63097         (time_zone_hhmm): New function.
63098         Expect 14 shift-reduce conflicts, not 13.
63099         (o_colon_minutes): New rule.
63100         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
63101         (yylex): Set the "negative" member of signed numbers.
63102
63103 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
63104
63105         * doc/getdate.texi (Time of day items, Time zone items):
63106         Describe new formats +00:00, UTC+00:00.
63107
63108 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
63111         spurious "-l"s.  Problem reported by Stepan Kasal.
63112
63113 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
63116         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
63117
63118 2004-12-04  Simon Josefsson  <jas@extundo.com>
63119
63120         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
63121         Vandoorselaere <yoann@prelude-ids.org>.
63122
63123 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63124
63125         Changes imported from coreutils.
63126         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
63127         exist.
63128         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
63129
63130 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63131
63132         Changes imported from coreutils.
63133         * lib/hard-locale.c: Assume <locale.h> exists.
63134         Include "strdup.h".
63135         (GLIBC_VERSION): New macro.
63136         (hard_locale): Assume setlocale exists.
63137         Rewrite to avoid #ifdef.
63138         Use strdup rather than malloc + strcpy.
63139         * lib/human.c: Assume <locale.h> exists.
63140         (human_readable): Assume localeconv exists.
63141
63142 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * modules/hard-locale (Depends-on): Add strdup.
63145
63146 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63147
63148         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
63149         convert T2, not T.  (Imported from libc.)
63150
63151 2004-11-30  Simon Josefsson  <jas@extundo.com>
63152
63153         * modules/restrict (License): Change to LGPL.
63154
63155 2004-11-30  Simon Josefsson  <jas@extundo.com>
63156
63157         * m4/restrict.m4: Add copyright and copying conditions.
63158
63159 2004-11-30  Simon Josefsson  <jas@extundo.com>
63160
63161         * m4/base64.m4: New file.
63162
63163 2004-11-30  Simon Josefsson  <jas@extundo.com>
63164
63165         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
63166         base64.
63167
63168         * tests/test-base64.c: New file.
63169
63170         * modules/base64: New file.
63171
63172 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63173
63174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
63175         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
63176
63177         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
63178
63179 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
63182         (__getcwd.c): Don't restore errno; glibc doesn't.
63183         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
63184         first, falling back to our code only if its results look suspicious.
63185         Ensure that the resulting buffer is only as large as necessary.
63186
63187         * lib/readutmp.c: Include readutmp.h first.
63188         Include <errno.h>, since readutmp.h no longer does that.
63189         * lib/readutmp.h: Don't include <errno.h>,
63190         <sys/param.h>, <time.h>; not needed to establish interface.
63191         (errno): Remove decl.
63192         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
63193         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
63194         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
63195
63196 2004-11-28  Simon Josefsson  <jas@extundo.com>
63197
63198         * lib/base64.h, base64.c: New file.
63199
63200 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63201
63202         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
63203
63204 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63205
63206         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
63207         (Depends-on): Remove pathmax, same.  Add mempcpy.
63208         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
63209         (Makefile.am): Append getcwd.h to lib_SOURCES.
63210         (Include): Add getcwd.h.
63211         (Maintainer): Change from Jim Meyering to "all, glibc",
63212         since getdate now uses intended-for-glibc code.
63213         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
63214         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
63215
63216 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63217
63218         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
63219         HP's ANSI C compiler.
63220         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
63221         Declaring int functions causes warnings on some modern systems and
63222         shouldn't be needed to compile on ancient ones.
63223         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
63224         defined.
63225
63226         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
63227         with the following changes.
63228         (__set_errno): Parenthesize properly.
63229         Include <stdbool.h>.
63230         (MIN, MAX, MATCHING_INO): New macros.
63231         (__getcwd): Define with prototype, not K&R form.
63232         Use heuristics to allocate default buffer on stack if possible.
63233         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
63234         behavior, and to avoid the PATH_MAX limit when computing
63235         ../../../../...
63236         Use MATCHING_INO to compare inode number to file.
63237         Check for arithmetic overflow in size calculations.
63238         Fix bug in reallocation of dot array that caused getcwd to fail
63239         on directories nested deeper than 75.
63240         Be more careful about saving errno on error.
63241         Do not use realloc; use only free+malloc, as this is a bit
63242         more flexible and avoids a needless copy operation.
63243         Do not inspect st_dev and st_ino for symbolic links; POSIX
63244         doesn't specify the latter.
63245         Check for closedir errors.
63246         Avoid needless casts.
63247         Use "#ifdef weak_alias" around weak_alias, to be like other
63248         glibc code.
63249         The following changes to getcwd.c have effect only when used in
63250         gnulib; they have no effect inside glibc proper.
63251         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
63252         as alloca isn't used.
63253         (alloca, __alloca): Likewise.
63254         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
63255         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63256         unconditionally, as gnulib assumes C89 or better.
63257         Do not include <sys/param.h>.
63258         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
63259         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
63260         better.
63261         (NULL) [!defined NULL]: Remove; we assume C89 or better.
63262         Include <dirent.h> in a way that is compatible with modern Autoconf.
63263         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
63264         New macros, if not already defined.
63265         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
63266         Use "_LIBC", not "defined _LIBC", for consistency.
63267         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
63268         a mempcpy module.
63269         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
63270         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
63271         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
63272         credit only to Jim Meyering and adjust the copyright dates.
63273         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
63274         <stdlib.h>, <unistd.h>, "pathmax.h".
63275         Instead, include "xgetcwd.h" (first) and "getcwd.h".
63276         (INITIAL_BUFFER_SIZE): Remove.
63277         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
63278
63279 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63280
63281         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
63282         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
63283         Use the _ONCE methods, for efficiency.
63284         Check for fcntl.h.  In test program, include <errno.h>
63285         and <fcntl.h> if available.  Remove old K&R cruft from
63286         test program.  Check for common errors in GNU/Linux,
63287         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
63288         don't do AC_LIBOBJ, as that's getcwd.m4's job.
63289         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
63290         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
63291         name accordingly.
63292         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
63293         accommodate new getcwd.c.
63294         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
63295         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
63296         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
63297         that's all we need now.
63298
63299 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63300
63301         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
63302         argp-parse.c depends on getopt internals, that means we should
63303         always use our getopt, to be on the safe side.
63304         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
63305         order not to spoil the result of an eventual previous invocation
63306         of gl_GETOPT_SUBSTITUTE.
63307
63308 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63309
63310         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
63311         redefinition warnings. To avoid them, include the defines
63312         in `#if !defined __need_getopt ... #endif'. The only place
63313         where __getopt_argv_const is used is in definitions
63314         of getopt_long and getopt_long_only below, which are as well
63315         protected by `#ifndef __need_getopt'.
63316         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
63317         __need_getopt after including <stdio.h> and <unistd.h> These
63318         headers might have defined it.
63319
63320 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63321
63322         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
63323
63324 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
63325
63326         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
63327         (futimens): New function, which uses futimes if available.
63328         (futimens, utimens): Support timespec==NULL, with same semantics
63329         as utime and utimens.
63330         * lib/utimens.h (futimens): New decl.
63331
63332 2004-11-23  Jim Meyering  <jim@meyering.net>
63333
63334         * lib/getopt_.h: Remove trailing blanks.
63335
63336 2004-11-23  Jim Meyering  <jim@meyering.net>
63337
63338         * lib/__fpending.c: Add comment.
63339
63340 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
63341
63342         * modules/canonicalize (Depends-on): Add xreadlink.
63343         Problem reported by James Youngman.
63344
63345 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63346
63347         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
63348         New macros.
63349         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
63350         optopt): Use them instead of invoking ## directly; otherwise, the
63351         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
63352
63353 2004-11-19  Bruno Haible  <bruno@clisp.org>
63354
63355         * lib/strtok_r.c: Move comments from here...
63356         * lib/strtok_r.h: ... to here.
63357
63358 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
63361         implementations that mishandle size_t overflow.
63362
63363 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
63366         might fail.  Problem reported by Yoann Vandoorselaere.
63367         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
63368         implementations that mishandle size_t overflow.
63369
63370 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * modules/canon-host (Depends-on): Add strdup.
63373
63374 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
63377
63378 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         * lib/canon-host.c: Include "strdup.h".
63381         (canon_host): Use getaddrinfo if available, so that IPv6 works.
63382         Use strdup instead of malloc/strcpy to duplicate strings.
63383
63384         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
63385         (human_space_before_unit): New constant.
63386         * lib/human.c (human_readable): Support it.
63387
63388         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
63389         (xgetcwd): Set errno correctly when failing.
63390         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
63391         the failure is actually due to a PATH_MAX problem.
63392
63393         Further getopt changes to make it more likely that glibc will
63394         buy the changes back.
63395         * lib/getopt.c (POSIXLY_CORRECT): New constant.
63396         (getopt): Use it, so to preserve glibc semantic
63397         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
63398         when compiling for libc.
63399         * lib/getopt_.h (__getopt_argv_const): Bring it back.
63400         (getopt_long, getopt_long_only): Use it.
63401
63402         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63403         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
63404         (getopt): Argv is now char * const *, as per standard.
63405         (_getopt_internal_r, _getopt_internal): Argv is now char **,
63406         not char *__getopt_argv_const *.
63407         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63408         _getopt_long_only_r): Likewise.
63409         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
63410         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63411         _getopt_long_r, _getopt_long_only_r): Likewise.
63412         * lib/getopt_.h (__getopt_argv_const): Remove.
63413         (getopt): Argv is now char * const *, as per standard.
63414
63415         * lib/getdate.y (tORDINAL): New token.
63416         (day, relunit): Allow it for relative times.
63417         (relative_time_table): Use tORDINAL for ordinals.
63418
63419 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63420
63421         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
63422         Document that "second" isn't allowed as an ordinal number.
63423
63424 2004-11-16  Jim Meyering  <jim@meyering.net>
63425
63426         * modules/closeout (Depends-on): Add fpending.
63427
63428 2004-11-15  Jim Meyering  <jim@meyering.net>
63429
63430         * lib/closeout.c: Include "__fpending.h" once again.
63431         Include <stdbool.h>.
63432         (close_stdout): Don't fail just because stdout was closed initially,
63433         since some programs don't write to stdout in the normal course of
63434         operation (other than --version and --help), and we don't want this
63435         function to make e.g. `touch file >&-' fail.
63436         But do fail if it was closed and someone has tried to write to it.
63437         E.g., `printf foo >&-' must fail.
63438
63439 2004-11-13  Jim Meyering  <jim@meyering.net>
63440
63441         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
63442
63443 2004-11-12  Simon Josefsson  <jas@extundo.com>
63444
63445         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
63446         small doc fix is still pending.
63447
63448 2004-11-11  Simon Josefsson  <jas@extundo.com>
63449
63450         * modules/strtok_r: New file.
63451
63452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63453         strtok_r.
63454
63455 2004-11-11  Simon Josefsson  <jas@extundo.com>
63456
63457         * m4/strtok_r.m4: New file.
63458
63459         * m4/getopt.m4: Replace opterr.
63460
63461 2004-11-11  Simon Josefsson  <jas@extundo.com>
63462
63463         * lib/strtok_r.h, strtok_r.c: New file.
63464
63465 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63466
63467         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
63468         of replacing opterr, getopt, etc.  This should handle the
63469         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
63470
63471 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
63474         we can stop lying to compilers about the constness of argv when we
63475         are compiled outside glibc.
63476         (getopt, getopt_long, getopt_long_only): Use it.
63477         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
63478         _getopt_internal, getopt): Likewise.
63479         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
63480         _getopt_long_only_r): Likewise.
63481         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
63482         _getopt_long_r, _getopt_long_only_r): Likewise.
63483
63484         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
63485         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
63486         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
63487         the other external symbols.
63488         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
63489         declaration, since the above renaming now works around collisions.
63490
63491 2004-11-11  Jim Meyering  <jim@meyering.net>
63492
63493         * lib/linebreak.c: Remove trailing blanks.
63494         * lib/alloca_.h: Likewise.
63495         * lib/acosl.c: Likewise.
63496         * lib/euidaccess.c: Likewise.
63497         * lib/allocsa.h: Likewise.
63498
63499 2004-11-10  Simon Josefsson  <jas@extundo.com>
63500
63501         * m4/getaddrinfo.m4: New file.
63502
63503 2004-11-10  Simon Josefsson  <jas@extundo.com>
63504
63505         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
63506
63507 2004-11-10  Simon Josefsson  <jas@extundo.com>
63508
63509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63510         getaddrinfo.
63511
63512         * modules/getaddrinfo: New file.
63513
63514 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
63517
63518 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * lib/mktime.c (SHR): New macro, which is a portable
63521         substitute for >> that should work even on Crays.
63522         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
63523         Problem reported by Mark D. Baushke in
63524         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
63525         * lib/getdate.y (SHR): Likewise.
63526         (tm_diff): Use it.
63527         * lib/strftime.c (SHR): Likewise.
63528         (tm_diff): Use it.
63529         * lib/quotearg.c (struct quoting_options): Use unsigned int for
63530         quote_these_too, so that right shifts are well defined.  All uses
63531         changed.
63532
63533 2004-11-10  Jim Meyering  <jim@meyering.net>
63534
63535         Ensure that no close failure goes unreported.
63536         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
63537         return early when it seems there's nothing to flush.
63538         Don't include __fpending.h.
63539
63540 2004-11-10  Jim Meyering  <jim@meyering.net>
63541
63542         * modules/closeout (Depends-on): Remove fpending.
63543
63544 2004-11-10  Jim Meyering  <jim@meyering.net>
63545
63546         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
63547
63548 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63549
63550         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
63551         gl_FUNC_STRFTIME.
63552         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
63553         and AC_REQUIRE when possible, to avoid duplicate checks.
63554         Check for <wchar.h>.
63555
63556 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63557
63558         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
63559
63560 2004-11-09  Bruno Haible  <bruno@clisp.org>
63561
63562         * m4/sockpfaf.m4: New file.
63563
63564 2004-11-05  Bruno Haible  <bruno@clisp.org>
63565
63566         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
63567         Reported by Mark D. Baushke <mdb@cvshome.org>.
63568
63569 2004-11-04  Bruno Haible  <bruno@clisp.org>
63570
63571         2004-09-11  Bruno Haible  <bruno@clisp.org>
63572                 * allocsa.valgrind: New file.
63573         2004-02-06  Bruno Haible  <bruno@clisp.org>
63574                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
63575                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
63576                 Reported by Christopher Seip <chris.seip@hp.com>.
63577
63578 2004-11-04  Bruno Haible  <bruno@clisp.org>
63579
63580         * modules/allocsa (Files): Add lib/allocsa.valgrind.
63581         (Makefile.am): Distribute it.
63582
63583 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
63586         with errno == ERANGE if the buffer is too small.
63587         Problem reported by Mark D. Baushke.
63588
63589 2004-11-03  Albert Chin  <china@thewrittenword.com>
63590             Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
63593         equivalent, substitute $ac_type for equivalent type rather than
63594         blindly using uint32_t *always* which won't work if uint32_t is not
63595         available.  Define _UINT32_T to work around typedef of uint32_t if
63596         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
63597         2.5.1.
63598
63599 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         * m4/jm-macros.m4: Sync from coreutils.
63602         (gl_MACROS): Check for mbrlen, for pathchk.
63603         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
63604
63605 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         * lib/xreadlink.c (MAXSIZE): New macro.
63608         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
63609         size does not exceed MAXSIZE.  Avoid cast.
63610         As suggested by Mark D. Baushke in
63611         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
63612         if readlink fails with buffer size just under MAXSIZE, try again
63613         with MAXSIZE.
63614
63615 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
63616
63617         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
63618
63619 2004-11-02  Derek R. Price  <derek@ximbiot.com>
63620         and  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
63623         (get_date): Overparenthesize to avoid GCC warning.
63624
63625 2004-11-02  Bruno Haible  <bruno@clisp.org>
63626
63627         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
63628         returns void.
63629
63630 2004-11-02  Bruno Haible  <bruno@clisp.org>
63631
63632         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
63633         function returns void.
63634
63635 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
63638         fflush_unlocked, flockfile, funlockfile, funlockfile,
63639         fputs_unlocked, putc_unlocked.
63640
63641 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63644         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
63645         already declared.
63646
63647 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63648
63649         * modules/getdate (Files): Add doc/getdate.texi.
63650         (Depends-on): Add setenv, xalloc.
63651
63652 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         * lib/getdate.y: Add support for TZ="foo" within a date string.
63655         Fix some bugs near time_t boundaries.  Reject dates with
63656         out-of-range components, e.g., "Sept 31".
63657         Include <stdlib.h>, "setenv.h", "xalloc.h".
63658         (ISDIGIT_LOCALE): Remove; unused.
63659         Note that the TZ and time functions used here are not reentrant.
63660         (mktime_ok, get_tz): New functions.
63661         (TZBUFSIZE): New constant.
63662         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
63663         This requires that we sometimes generate our own TZ="XXX..." setting.
63664
63665 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * doc/getdate.texi: New file, from coreutils with modifications for
63668         the new TZ parsing.
63669
63670 2004-10-27  Derek R. Price  <derek@ximbiot.com>
63671
63672         * lib/mktime.c (not_equal_tm): Remove redundant check.
63673
63674 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63675
63676         * modules/regex (lib_SOURCES): Add regex.c.
63677         Reported by James Youngman in
63678         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
63679
63680 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         * lib/getdate.y: Use Bison 1.875 features, and some minor
63683         code cleanups.  This change does not affect semantics.
63684         Don't include <stdlib.h>; no longer needed.
63685         Don't include unlocked-io.h; only the "#if TEST" code uses
63686         stdio, and performance isn't crucial there.
63687         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
63688         Bison 1.875 features as described below.
63689         All uses of "PC." replaced by "pc->".
63690         (YYSTYPE): Add a forward declaration.
63691         (yylex, yyerror): Use full prototypes in forward decls.
63692         Use "%pure-parser" rather than obsolescent "%pure_parser".
63693         Use %parse-param and %lex-param instead of obsolescent
63694         YYPARSE_PARAM and YYLEX_PARAM.
63695         (meridian_table, month_and_day_table, time_units_table,
63696         relative_time_table, time_zone_table, military_table,
63697         lookup_zone, lookup_word, get_date):
63698         Use NULL instead of 0 where appropriate.
63699         (to_hour): Avoid abort (), to avoid a dependency on
63700         stdlib.h.
63701         (yyerror, yylex): Now accepts parser_control * arg.
63702         (main) [TEST]: Use '\0' rather than 0 for char.
63703
63704 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63705
63706         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
63707
63708 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63709
63710         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
63711         It's now the caller's responsibility to handle the case where
63712         !HAVE_GETPAGESIZE && !defined getpagesize.
63713
63714         * lib/mktime.c (leapyear): Arg is long int, not int.
63715
63716 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
63719
63720 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63721
63722         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
63723         missing.  Problem reported by James Youngman.
63724
63725 2004-10-16  Simon Josefsson  <jas@extundo.com>
63726
63727         * gnulib-tool: Fix comments.  Fix parse problem.
63728         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
63729
63730 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
63731
63732         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
63733         implementation of getopt_long.  Problem reported by Alexander Taler in:
63734         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
63735
63736 2004-10-15  Bruno Haible  <bruno@clisp.org>
63737
63738         * gnulib-tool: Untabify. Initialize supplied_libname.
63739         (func_usage): More homogenous output.
63740         (func_modules_transitive_closure, func_modules_to_filelist,
63741         func_emit_lib_Makefile_am): New functions.
63742         (func_import): New function, extracted from big case statement. Use
63743         func_get_license, func_modules_transitive_closure,
63744         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
63745         opt_lgpl. Don't use test -a, as it's not portable.
63746         (func_create_testdir): Use func_modules_transitive_closure,
63747         func_modules_to_filelist, func_emit_lib_Makefile_am.
63748
63749 2004-10-15  Bruno Haible  <bruno@clisp.org>
63750
63751         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
63752
63753 2004-10-15  Bruno Haible  <bruno@clisp.org>
63754
63755         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
63756         the portions belonging to each module.
63757         Suggested by Derek Robert Price <derek@ximbiot.com>.
63758
63759 2004-10-12  Simon Josefsson  <jas@extundo.com>
63760
63761         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
63762         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
63763         to real functions.
63764
63765 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63766
63767         * modules/vsnprintf: New file.
63768
63769 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63770
63771         * m4/vsnprintf.m4: New file.
63772
63773 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63774
63775         * lib/vsnprintf.h: New file.
63776         * lib/vsnprintf.c: New file.
63777
63778 2004-10-11  Bruno Haible  <bruno@clisp.org>
63779
63780         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
63781         vsnprintf.
63782
63783 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
63786
63787 2004-10-07  Bruno Haible  <bruno@clisp.org>
63788
63789         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
63790         fits into the provided buffer.
63791
63792 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63793
63794         * lib/diacrit.c, diacrit.h: Add GPL notice.
63795
63796         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
63797         notice.
63798         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
63799         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
63800         This avoids a potential constant-folding bug.
63801
63802 2004-10-05  Bruno Haible  <bruno@clisp.org>
63803
63804         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
63805         for the declaration of strsep.
63806
63807 2004-10-05  Bruno Haible  <bruno@clisp.org>
63808
63809         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
63810
63811 2004-10-04  Simon Josefsson  <jas@extundo.com>
63812
63813         * modules/memmem: New file.
63814         * tests/test-memmem.c: New file.
63815         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
63816
63817 2004-10-04  Simon Josefsson  <jas@extundo.com>
63818
63819         * m4/memmem.m4: New file.
63820
63821 2004-10-04  Simon Josefsson  <jas@extundo.com>
63822
63823         * lib/memmem.h: New file.
63824         * lib/memmem.c: New file, taken from glibc.
63825
63826 2004-10-04  Simon Josefsson  <jas@extundo.com>
63827
63828         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
63829         '#ifdef USE_UNLOCKED_IO'.
63830
63831 2004-10-04  Simon Josefsson  <jas@extundo.com>
63832
63833         * config/srclist.txt: Add memmem from glibc.
63834
63835 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63836
63837         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
63838
63839         * modules/argmatch, modules/argp, modules/closeout, modules/error,
63840         modules/exclude, modules/getdate, modules/getline,
63841         modules/getndelim2, modules/getpass, modules/getpass-gnu,
63842         modules/getusershell, modules/linebuffer, modules/md5,
63843         modules/mountlist, modules/posixtm, modules/readtokens,
63844         modules/readutmp, modules/regex, modules/sha1,
63845         modules/version-etc, modules/yesno:
63846         Remove dependency on unlocked-io.
63847
63848 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63849
63850         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
63851
63852         * m4/unlocked-io.m4: Add copyright notice.
63853         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
63854
63855 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
63858         * lib/xmalloc.c (xmemdup): Likewise.
63859         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
63860         XFREE): Remove these long-obsolescent macros.
63861         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
63862         * lib/xstrdup.c: Remove.
63863
63864         * lib/regex.c (re_comp): Cast gettext return value to char *,
63865         Problem reported by Martin Neitzel via Mark D. Baushke.
63866
63867 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
63870         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
63871         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
63872         regex.c, sha1.c, version-etc.c, yesno.c:
63873         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
63874         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
63875         the includer's responsibility.
63876
63877         Sync from coreutils.
63878
63879         * lib/modechange.c (mode_compile): Don't decrement a pointer that
63880         points to the start of a string, as the C Standard says the
63881         resulting behavior is undefined.
63882
63883         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
63884         simple -> simple_backups, numbered_existing ->
63885         numbered_existing_backups, numbered -> numbered_backups
63886         to avoid shadowing problems.  All uses changed.
63887         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
63888         * lib/backupfile.c (check_extension, numbered_backup):
63889         Rename locals to avoid shadowing 'basename'.
63890         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
63891         once.
63892
63893         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
63894         * lib/.cvsignore: Add getopt.h.
63895
63896 2004-10-04  Bruno Haible  <bruno@clisp.org>
63897
63898         * modules/README: New file.
63899         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
63900         not a module.
63901
63902 2004-10-02  Jim Meyering  <jim@meyering.net>
63903
63904         * lib/dirfd.h, getpagesize.h: Add copyright notice.
63905
63906 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63907
63908         * modules/strsep: New file.
63909
63910 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63911
63912         * m4/strsep.m4: New file.
63913
63914 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63915
63916         * lib/strsep.h: New file.
63917         * lib/strsep.c: New file.
63918
63919 2004-10-01  Simon Josefsson  <jas@extundo.com>
63920
63921         * lib/snprintf.c (snprintf): Handle size==0.
63922
63923 2004-10-01  Simon Josefsson  <jas@extundo.com>
63924             Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
63927         (snprintf): Declare 'args'.
63928
63929 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
63930
63931         * lib/snprintf.c: Remove comments as to why each header is needed.
63932
63933 2004-10-01  Bruno Haible  <bruno@clisp.org>
63934
63935         * MODULES.html.sh: Add strsep.
63936
63937 2004-09-30  Simon Josefsson  <jas@extundo.com>
63938
63939         * modules/snprintf: New file.
63940
63941 2004-09-30  Simon Josefsson  <jas@extundo.com>
63942
63943         * m4/snprintf.m4: New file.
63944
63945 2004-09-30  Simon Josefsson  <jas@extundo.com>
63946
63947         * lib/snprintf.h, lib/snprintf.c: New files.
63948
63949 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63950
63951         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
63952         (hol_entry_help): Never translate an empty string.
63953         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
63954         * lib/argp.h (OPTION_NO_TRANS): New option.
63955
63956 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63957
63958         * modules/argp (Maintainer): Replace Simon Josefsson
63959         by Sergey Poznyakoff.
63960
63961 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63962
63963         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
63964         changes merged back into glibc.
63965
63966 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
63967
63968         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
63969
63970 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
63971
63972         * lib/xvasprintf.c: Include xalloc.h.
63973         (xvasprintf): Use xalloc_die, not xmalloc_die.
63974
63975 2004-09-29  Bruno Haible  <bruno@clisp.org>
63976
63977         * modules/alloca-opt: New file, derived from modules/alloca.
63978         * modules/allocsa: Depend on alloca-opt instead of alloca.
63979         * modules/setenv: Likewise.
63980         * modules/vasnprintf: Likewise.
63981         * MODULES.html.sh: Add alloca-opt.
63982
63983 2004-09-28  Simon Josefsson  <jas@extundo.com>
63984
63985         * gnulib-tool: New parameter --lgpl, to asseert that modules are
63986         LGPL, and to replace license template from GPL to LGPL.
63987
63988 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63989
63990         * modules/dummy: Change license to LGPL.
63991
63992 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
63993
63994         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
63995
63996 2004-09-24  Simon Josefsson  <jas@extundo.com>
63997
63998         * modules/minmax (License): Change from GPL to LGPL.
63999
64000 2004-09-23  Simon Josefsson  <jas@extundo.com>
64001
64002         * gnulib-tool (--import): Typo.
64003
64004 2004-09-23  Simon Josefsson  <jas@extundo.com>
64005
64006         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
64007
64008 2004-09-22  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/*: Add 'License' field.
64011         * gnulib-tool: Accept --extract-license option.
64012         (func_get_license): New function.
64013
64014 2004-09-21  Bruno Haible  <bruno@clisp.org>
64015
64016         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
64017         Reported by Simon Josefsson.
64018
64019 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
64022         gl_AC_TYPE_LONG_LONG.
64023
64024 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64025
64026         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
64027
64028 2004-09-18  Simon Josefsson  <jas@extundo.com>
64029         and  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
64032         calls with autoreconf.  Define GL_LIB.
64033
64034 2004-09-14  Karl Berry  <karl@gnu.org>
64035
64036         * config/srclist.txt: unsync setenv.c, sigh.
64037
64038 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64039
64040         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
64041         Problem reported by Bruno Haible in:
64042         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
64043
64044 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * config/srclist.txt: Comment out argp-pvh.c.
64047
64048 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
64051         in case some system header has #define'd it.  Problem reported by
64052         Soeren D. Schulze in
64053         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
64054
64055 2004-09-09  Karl Berry  <karl@gnu.org>
64056
64057         * regex.[ch]: delete from the root.  These were supposed to be
64058                 synced with emacs cvs, but this has not happened for about
64059                 a year, and anyway nothing else uses emacs regex.[ch].
64060                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
64061                 lib/regex[.ch] is untouched.
64062
64063 2004-09-09  Bruno Haible  <bruno@clisp.org>
64064
64065         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
64066
64067 2004-09-09  Bruno Haible  <bruno@clisp.org>
64068
64069         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
64070         modifications.
64071         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
64072
64073 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64074
64075         * modules/xvasprintf: New file.
64076         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
64077
64078 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
64079
64080         * lib/xvasprintf.h: New file.
64081         * lib/xvasprintf.c: New file.
64082         * lib/xasprintf.c: New file.
64083
64084 2004-09-08  Bruno Haible  <bruno@clisp.org>
64085
64086         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
64087
64088 2004-09-08  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
64091         length is > INT_MAX.
64092         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
64093         more.
64094
64095 2004-09-08  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/stdint_.h: New file, taken from GNU clisp.
64098
64099 2004-09-08  Bruno Haible  <bruno@clisp.org>
64100             Oskar Liljeblad  <oskar@osk.mine.nu>
64101
64102         * modules/stdint: New file.
64103         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
64104
64105 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         Import from coreutils.
64108         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
64109         strings on unbounded length.  alloca's performance benefits aren't
64110         that important here.
64111         (V_STRDUP): Remove.
64112         (parse_with_separator): New function, with most of the internals
64113         of the old parse_user_spec.  Allow user to omit both user and group,
64114         for compatibility with FreeBSD.
64115         Clone only the user name, not the entire spec.
64116         Do not set *uid, *gid unless entirely successful.
64117         Avoid memory leak in some failing cases.
64118         Fix regression for USER.GROUP reported by Dmitry V. Levin in
64119         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
64120         (parse_user_spec): Rewrite to use parse_with_separator.
64121
64122 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         * modules/userspec: Don't depend on alloca.
64125
64126 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
64129
64130 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
64133         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
64134         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
64135
64136 2004-08-16  Simon Josefsson  <jas@extundo.com>
64137
64138         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
64139         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
64140         Add --dry-run for --import.
64141         Let user provided command line parameters override configure.ac
64142         settings.
64143
64144 2004-08-12  Simon Josefsson  <jas@extundo.com>
64145
64146         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
64147         as discussed with Paul Eggert in threads rooted at
64148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
64149         and
64150         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
64151         Before, the test was empty, and relied on ELIDE_CODE in source
64152         code.)
64153         (gl_PREREQ_GETOPT): New macro.
64154         (gl_GETOPT): Use them.
64155
64156 2004-08-12  Simon Josefsson  <jas@extundo.com>
64157
64158         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
64159         * lib/getopt_.h: Renamed from getopt.h.
64160
64161 2004-08-12  Simon Josefsson  <jas@extundo.com>
64162
64163         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
64164         Change default library name from libfoo to libgnu.
64165         Now, if you have a configure.ac that says:
64166                 gl_SOURCE_BASE(gl)
64167                 gl_M4_BASE(gl/m4)
64168                 gl_MODULES(error getopt etcetera)
64169                 gl_INIT
64170         you can import all you need by running:
64171                 ../gnulib/gnulib-tool --import
64172
64173         * modules/getopt (Files): Rename getopt.h to getopt_.h.
64174         (Makefile.am): Rewrite, use logic from argz.
64175         (Include): Use <getopt.h> instead of "getopt.h".
64176
64177 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64178
64179         * modules/argp (Files): Add m4/unlocked-io.m4.
64180         (Depends-on): Add extensions.
64181
64182 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
64185         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
64186         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
64187         Check for program_invocation_name, program_invocation_short_name,
64188         flockfile, funlockfile, features.h, _getopt_long_only_r.
64189
64190 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
64193         its complicated substitute.
64194         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
64195         and program_invocation_name.
64196         (__argp_basename) [!_LIBC]: Remove; the only use was
64197         replaced by its body.
64198         (__argp_short_program_name): Change condition from
64199         !defined __argp_short_program_name to
64200         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
64201         to match argp-namefrob.h.
64202         (__argp_failure): Don't assume strerror_r returns char *.
64203         * lib/argp-parse.c (N_): Define unconditionally.
64204         (argp_default_options): Fill out initializers with 0 to avoid
64205         gcc warnings.
64206
64207 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
64208
64209         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
64210         getopt1.c.
64211
64212 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         Merge from coreutils.
64215
64216         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
64217
64218         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
64219         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
64220
64221 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         Merge from coreutils.
64224
64225         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
64226         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
64227         for Reliant Unix 5.43.
64228
64229         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
64230         (union fooround): Use uintmax_t, not long int.
64231         The rest is a merge from libc:
64232         [defined _LIBC]: Include <shlib-compat.h>.
64233         (_obstack) [defined _LIBC]: Remove after 2.3.4.
64234
64235         * lib/settime.c (settime): Recode to avoid warning with
64236         Sun Forte C 6U2.
64237
64238         * lib/strverscmp.c: Convert to UTF-8.
64239
64240 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
64241
64242         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64243         m4/uintmax_t.m4.
64244
64245 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64246
64247         * modules/xalloc-die: New file.
64248         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
64249
64250         * modules/md5 (Files): Add m4/uint32_t.m4.
64251         * modules/sha1: Renamed from modules/sha.
64252         (Files):
64253         Rename lib/sha.h to lib/sha1.h.
64254         Rename lib/sha.c to lib/sha1.c.
64255         Rename m4/sha.m4 to m4/sha1.m4.
64256         (lib_SOURCES): Likewise.
64257         (configure.ac): Rename gl_SHA to gl_SHA1.
64258         (Include): sha.h -> sha1.h.
64259
64260 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64261
64262         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
64263         * m4/sha1.m4: Renamed from sha.m4.
64264         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
64265
64266 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64267
64268         * lib/obstack.h (obstack_empty_p):
64269         Don't assume that chunk->contents is suitably aligned.
64270         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
64271         Likewise. Problem reported by Benno in
64272         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
64273
64274         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
64275         readable.  This could be improved further but it'd take some work.
64276
64277 2004-08-08  Simon Josefsson  <jas@extundo.com>
64278
64279         * modules/xgethostname (Depends-on): Remove exit and error (not
64280         used).
64281
64282         * modules/getpass-gnu: Add getpass.h.
64283         (Depends-on): Add stdbool.
64284         * modules/getpass: Add getpass.h.
64285
64286 2004-08-08  Simon Josefsson  <jas@extundo.com>
64287
64288         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
64289         Check getpass declaration.
64290
64291 2004-08-08  Simon Josefsson  <jas@extundo.com>
64292
64293         * lib/xgethostname.c: Don't include error.h (not used).
64294
64295         * lib/getpass.h: Add.
64296         * lib/getpass.c: Include getpass.h first.
64297
64298 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
64299
64300         * lib/xalloc-die.c: New file.
64301         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
64302         All uses removed.
64303         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
64304         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
64305         xalloc-die.c.
64306         (_, N_, xalloc_die): Move to xalloc-die.c.
64307         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
64308         so that we needn't mess with xalloc_msg_memory_exhausted.
64309
64310         * lib/sha1.h: Renamed from sha.h.
64311         (SHA1_H): Renamed from _SHA_H.
64312         (sha1_ctx): Renamed from sha_ctx.
64313         (sha1_init_ctx): Renamed from sha_init_ctx.
64314         (sha1_process_block): Renamed from sha_process_block.
64315         (sha1_process_bytes): Renamed from sha_process_bytes.
64316         (sha1_finish_ctx): Renamed from sha_finish_ctx.
64317         (sha1_read_ctx): Renamed from sha_read_ctx.
64318         (sha1_stream): Renamed from sha_stream.
64319         (sha1_buffer): Renamed from sha_buffer.
64320         * lib/sha1.c: Likewise; renamed from sha.c.
64321         Do not include <sys/types.h>.
64322         Include <stddef.h> rather than <stdlib.h>.
64323
64324 2004-08-08  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
64327         FILESYSTEM_PREFIX_LEN.
64328         * lib/progreloc.c: Likewise.
64329         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
64330
64331 2004-08-06  Simon Josefsson  <jas@extundo.com>
64332
64333         * modules/progname (Depends-on): Don't depend on stdbool.
64334
64335 2004-08-06  Simon Josefsson  <jas@extundo.com>
64336
64337         * modules/getsubopt: New file.
64338         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64339         getsubopt.
64340
64341 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64342
64343         More merge from coreutils.
64344
64345         * m4/utimens.m4, m4/utimecmp.m4: New files.
64346         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
64347         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
64348         prereq.m4, sha.m4: Import changes from coreutils.
64349
64350 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         More merge from coreutils.
64353         * modules/raise, modules/readtokens0, modules/utimens:
64354         * modules/utimecmp, module/xnanosleep: New files.
64355         * modules/strftime: Add lib/strftime.h.
64356         Change include from <time.h> to "strftime.h".
64357         * modules/yesno: Add lib/yesno.h.
64358         * modules/backupfile: Remove lib/addext.c.
64359         * modules/euidaccess: Add stat-macros.h.
64360         * modules/canonicalize, modules/euidaccess,
64361         modules/filemode, modules/lchown, modules/makepath,
64362         modules/rmdir, modules/stat: Likewise.
64363
64364 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64365
64366         Merge from tar.
64367         * lib/argp-help.c (make_hol, hol_append): Don't assume that
64368         SIZE_MAX is a valid preprocessor constant.
64369         (__argp_basename): Change from "#ifndef _LIBC"
64370         to "#ifndef __argp_short_program_name", so that
64371         we don't compile these functions for tar.
64372
64373         More merges from coreutils.
64374         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
64375         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
64376         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
64377         * lib/addext.c: Remove; no longer needed.
64378         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
64379         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
64380         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
64381         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
64382         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
64383         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
64384         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
64385         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
64386         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
64387         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
64388         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
64389         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
64390         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
64391         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
64392         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
64393         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
64394         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
64395         Import changes from coreutils.
64396
64397 2004-08-05  Simon Josefsson  <jas@extundo.com>
64398
64399         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
64400
64401 2004-08-05  Simon Josefsson  <jas@extundo.com>
64402
64403         * m4/getsubopt.m4: New file.
64404
64405 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         Merge from coreutils.
64408
64409         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
64410         * m4/getcwd-path-max.m4: New files.
64411
64412         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
64413         FILESYSTEM_PREFIX_LEN ->
64414         FILE_SYSTEM_PREFIX_LEN.
64415         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
64416         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
64417         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
64418         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
64419
64420         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
64421         prerequisite modules now handle the DOS stuff.
64422         Don't check for unistd.h.
64423
64424 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64425
64426         Merge from coreutils.
64427
64428         * lib/.gdb-history: Remove; this doesn't belong here.
64429
64430         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
64431         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
64432         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
64433         * lib/getcwd.c: New files.
64434
64435         * lib/dirname.h: Include <stdbool.h>.
64436         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
64437         for consistency with POSIX terminology.  All uses changed.
64438         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
64439         (strip_trailing_slashes): Use bool for booleans.
64440         * lib/stripslash.c (strip_trailing_slashes): Likewise.
64441
64442         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
64443         sometimes returns a positive errno value even when it succeeds.
64444         (print_errno_message) [!LIBC]: Fall back on strerror if
64445         __strerror_r fails.
64446
64447         * lib/path-concat.c (mempcpy): Don't define if a system header defines
64448         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
64449         (longest_relative_suffix): New function.
64450         (path_concat): Use it.  Assume first argument is not NULL.
64451         Port to DOS.  Omit redundant separators.
64452         Report an error instead of returning NULL.
64453         Use mempcpy instead of memcpy.
64454         (xpath_concat): Remove: not declared or used.
64455
64456         * lib/same.h: Include <stdbool.h>
64457         (same_name): Return bool, not int.
64458         * lib/same.c (same_name): Likewise.
64459         (errno): Don't declare; we assume C89 or better now.
64460
64461         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
64462         if not already defined.
64463
64464         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
64465         * lib/dup-safer.c (errno): Likewise.
64466
64467 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         Merge from coreutils.
64470         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
64471         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
64472         * modules/path-concat: Don't depend on strdup.
64473
64474 2004-08-03  Simon Josefsson  <jas@extundo.com>
64475
64476         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
64477         * lib/progname.h: Don't include stdbool.h.
64478
64479 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64480
64481         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
64482         * MODULES.html.sh (func_all_modules): Remove fatal.
64483
64484 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
64487
64488 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
64489
64490         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
64491         working.
64492
64493 2004-08-02  Simon Josefsson  <jas@extundo.com>
64494
64495         * lib/getsubopt.h: New file, with comments from Bruno Haible.
64496         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
64497         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
64498
64499 2004-08-01  Simon Josefsson  <jas@extundo.com>
64500
64501         * lib/xgetdomainname.c: Include stdlib.h, for free().
64502
64503 2004-07-19  Bruno Haible  <bruno@clisp.org>
64504
64505         * MODULES.html.sh (func_all_modules): Add dummy.
64506
64507 2004-07-16  Simon Josefsson  <jas@extundo.com>
64508
64509         * modules/dummy: New file.
64510
64511 2004-07-16  Simon Josefsson  <jas@extundo.com>
64512
64513         * lib/dummy.c: New file.
64514
64515 2004-07-16  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/backupfile.h: Add extern "C" for C++.
64518         * lib/closeout.h: Likewise.
64519         * lib/copy-file.h: Likewise.
64520         * lib/findprog.h: Likewise.
64521         * lib/full-write.h: Likewise.
64522         * lib/pathname.h: Likewise.
64523         * lib/progname.h: Likewise.
64524         * lib/stpcpy.h: Likewise.
64525         * lib/stpncpy.h: Likewise.
64526         * lib/strcase.h: Likewise.
64527         * lib/strstr.h: Likewise.
64528         * lib/xalloc.h: Likewise.
64529
64530         * lib/mbswidth.h: Add extern "C" for C++.
64531         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
64532
64533 2004-07-13  Robert Millan  <robertmh@gnu.org>
64534
64535         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
64536
64537 2004-07-09  Simon Josefsson  <jas@extundo.com>
64538
64539         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
64540         failed without this.)
64541
64542 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64543
64544         * modules/chown (Files): Add lib/fchown-stub.c, since
64545         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
64546
64547 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64548
64549         * lib/fchown-stub.c: New file.
64550
64551 2004-06-24  Jim Meyering  <jim@meyering.net>
64552
64553         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
64554
64555 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         * modules/argz: Omit "#include".
64558
64559         * MODULES.html.sh (func_all_modules): Add calloc, to match
64560         2004-06-01 addition of calloc module.
64561
64562 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * m4/argz.m4: New file, which is autoupdated from libtool.
64565
64566 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64567
64568         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
64569         libtool.
64570
64571 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * config/srclist-update: Don't insist on "USA." before the
64574         close-comment, as libtool omits the period and puts the */ on a
64575         separate line.
64576         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
64577         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
64578
64579 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
64580
64581         * modules/argz: New file.
64582         * MODULES.html.sh (func_all_modules): Add argz.
64583
64584 2004-06-12  Jim Meyering  <jim@meyering.net>
64585         and  Paul Eggert  <eggert@cs.ucla.edu>
64586
64587         * modules/hash (Files): Add lib/xalloc.h.
64588         * modules/pipe (Depends-on): Add wait-process.
64589         * modules/stat (Depends-on): Add xalloc.
64590         * modules/userspec (Files): Add lib/userspec.h.
64591         * modules/xstrto
64592
64593         Upgrade from gettext-0.13.
64594         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
64595         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
64596         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
64597
64598 2004-06-10  Jim Meyering  <jim@meyering.net>
64599
64600         * lib/calloc.c: New file.
64601
64602 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * lib/getdate.y (yylex): Allow space between sign and number.
64605         Problem reported by Dan Jacobson.
64606
64607 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         Merge from coreutils CVS.
64610
64611         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
64612         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
64613         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
64614         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
64615         xstrtol.m4: Fix copyright date and/or serial number.
64616
64617         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
64618         See if we need an fchown replacement.
64619         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
64620         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
64621         and use the replacement function if we detect either defect.
64622
64623         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
64624         gl_UTIMECMP.
64625
64626 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
64627         and  Jim Meyering  <jim@meyering.net>
64628
64629         Merge from coreutils CVS.
64630
64631         * lib/stat-macros.h: New file, with contents from file-type.h
64632         and coreutils' system.h.
64633         * lib/file-type.c: Include "stat-macros.h".
64634         * lib/file-type.h (file_type): Move all macro definitions to new file,
64635         stat-macros.h.
64636
64637         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
64638         Wrap old code with this conditional.
64639         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
64640         function that does not dereference symlinks.
64641         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
64642
64643         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
64644         dependency problems.
64645         (xreadlink): Accept new arg SIZE, for efficiency.
64646         All decls and uses changed.
64647         * lib/xreadlink.h: Include <stddef.h>, for size_t.
64648
64649         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
64650         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
64651
64652         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
64653         sysexits.h.
64654
64655 2004-06-01  Jim Meyering  <jim@meyering.net>
64656
64657         * m4/calloc.m4: New file.
64658
64659 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
64662         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
64663         Also, fix a typo in a diagnostic.
64664
64665 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
64668         or AC_FUNC_REALLOC.
64669
64670 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
64671
64672         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
64673         macros to be defined.
64674         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
64675         the allocator returns NULL because the requested size is zero.
64676
64677 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
64680         var.  Add comment explaining why libc still defines it.  This
64681         merges the following patch from glibc:
64682         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
64683
64684 2004-05-20  Andreas Schwab  <schwab@suse.de>
64685
64686         * m4/free.m4: Replace free if it not known to work, not the other
64687         way round.
64688
64689 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
64692         present in glibc since revision 1.1 of this file.
64693         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
64694         obstack_alignment_mask, obstack_alloc, obstack_base,
64695         obstack_blank, obstack_blank_fast, obstack_chunk_size,
64696         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
64697         obstack_grow0, obstack_init, obstack_int_grow,
64698         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
64699         obstack_next_free, obstack_object_size, obstack_ptr_grow,
64700         obstack_ptr_grow_fast, obstack_room): Remove declarations of
64701         nonexistent functions.
64702
64703 2004-05-18  Karl Berry  <karl@gnu.org>
64704
64705         * config/srclist.txt: break link for vasnprintf.c.
64706
64707 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         Port obstack to the AS/400, where pointers are 16 bytes wide and
64710         you cannot cast an integer to a valid pointer.  This patch is
64711         currently waiting to be integrated into glibc; see
64712         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
64713
64714         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
64715         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
64716         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
64717         (struct obstack): temp member is now a union of a pointer and
64718         an integer, instead of an integer.  All integer uses changed.
64719         This does not affect the physical layout of struct obstack,
64720         except on hosts (like the AS/400) where the size or alignment of
64721         void * is greater than that of ptrdiff_t.
64722         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
64723         __STDC__)]: Store temporary in pointer member of union, not
64724         integer member.
64725         * lib/obstack.c: Include <stddef.h>, for offsetof.
64726         (struct fooalign): Remove; it doesn't need a name.
64727         (union fooround): Change double to long double, and add void *.
64728         (DEFAULT_ALIGNMENT): Use offsetof to compute.
64729         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
64730         not a macro.  Hence the values are always int; so remove all
64731         casts-to-int in uses.
64732
64733 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64734
64735         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
64736         we can get this patch merged into glibc.
64737
64738 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64739             Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * m4/argp: Depend on alloca.
64742
64743 2004-05-17  Derek R. Price  <derek@ximbiot.com>
64744             Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
64747         freecoding.
64748
64749 2004-05-17  Bruno Haible  <bruno@clisp.org>
64750
64751         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
64752         precision that consists of a '.' followed by an empty digit string.
64753         Patch by Tor Lillqvist <tml@iki.fi>.
64754
64755 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
64758         for backward compatibility with older code.  We need our own
64759         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
64760         it under some other name, and our alloca.h will define it.
64761
64762 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64763             Derek Price  <derek@ximbiot.com>
64764
64765         * lib/alloca.c: Include <alloca.h>, to get our interface.
64766         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
64767         include <alloca.h> first.  Use C89 prototype for alloca; this
64768         requires including <stddef.h> for size_t.  Use extern "C" if C++.
64769         Use #elif for simplicity, since we can assume C89 now.
64770         Don't try to source the system alloca.h since it will not be found
64771         and to prevent recursively including its replacement.
64772         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
64773         * lib/regex.c: Likewise.
64774
64775 2004-05-16  Derek Price  <derek@ximbiot.com>
64776             Paul Eggert  <eggert@cs.ucla.edu>
64777
64778         getline cleanup.  This changes the getndelim2 API: both order of
64779         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
64780         no delimiter).
64781
64782         * lib/getline.c: Don't include stddef.h or stdio.h, since our
64783         interface does that.
64784         (getline): Always use getdelim, so that we don't have two
64785         copies of this code.
64786         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
64787         if available.
64788         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
64789         (GETNDELIM2_MAXIMUM): New macro.
64790         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
64791         instead of the old practice of delim2==0.  All callers changed.
64792         Return -1 on overflow, instead of returning junk.
64793         Do not set *linesize unless allocation succeeds.
64794         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
64795         that we include sys/types.h.
64796         * lib/getnline.h: Likewise.
64797         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
64798         (getndelim2): Reorder arguments.
64799         * lib/getnline.c (getnline, getndelim):
64800         Don't discard the NMAX argument.
64801         (getnline): Invoke getndelim, to avoid code duplication.
64802         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
64803         of (size_t) -1 by callers of the getnline family.
64804
64805 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64806
64807         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
64808         Check for gettimeofday.
64809         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
64810         Check for settimeofday, stime.
64811
64812 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * lib/nanosleep.c (suspended): Change its type from int to
64815         sig_atomic_t volatile.
64816         (first_call): Make it private to rpl_nanosleep, and have it
64817         be zero initially as that's a bit faster.
64818         (my_usleep): Round up fractional times instead of truncating them,
64819         as this is the usual meaning for 'sleep'.
64820
64821         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
64822         doesn't work.
64823         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
64824         (ENOSYS): Define if not defined.
64825         (settime): Fall back on stime if it exists and settimeofday fails.
64826         But don't bother with fallbacks if a method fails with errno == EPERM.
64827
64828 2004-05-11  Jim Meyering  <jim@meyering.net>
64829
64830         Prior to this change, the save_cwd caller required read access to the
64831         current directory on most systems (ones with the fchdir function).
64832
64833         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
64834         fails, try write-only, and finally, resort to using xgetcwd.
64835
64836 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * lib/obstack.c, obstack.h: Import changes from libc.
64839
64840 2004-04-28  Bruno Haible  <bruno@clisp.org>
64841
64842         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
64843         also implicitly appends .exe to executables.
64844         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
64845         accepts Windows pathnames.
64846         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64847         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64848         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
64849         Treat Cygwin like Windows, since it now accepts Windows pathnames.
64850         Reported by Derek Robert Price <derek@ximbiot.com>.
64851
64852 2004-04-21  Karl Berry  <karl@gnu.org>
64853
64854         * config/srclist.txt (localcharset.c): break sync.
64855
64856 2004-04-20  Paul Eggert  <eggert@twinsun.com>
64857
64858         * m4/host-os.m4: Add a copyright notice.
64859
64860 2004-04-20  Jim Meyering  <jim@meyering.net>
64861
64862         Change UTILS_ to gl_ in AC_DEFINE'd names.
64863         Change utils_- and jm_-prefixed variables, too.
64864         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
64865         UTILS_FUNC_MKDIR_TRAILING_SLASH.
64866         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
64867
64868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
64869         Don't emit trailing blanks.
64870         Also rename jm_-prefixed variables to have gl_ prefix.
64871
64872         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
64873         Also rename jm_-prefixed variables to have gl_ prefix.
64874
64875         * m4/jm-macros.m4: Reflect the renamings.
64876         * m4/prereq.m4: Likewise.
64877
64878 2004-04-20  Jim Meyering  <jim@meyering.net>
64879
64880         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
64881         memory.
64882
64883 2004-04-20  Jim Meyering  <jim@meyering.net>
64884             Bruno Haible  <bruno@clisp.org>
64885
64886         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
64887         memory when realloc fails.
64888
64889 2004-04-19  Jim Meyering  <jim@meyering.net>
64890
64891         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
64892         now that readutmp.c may call `free (0)'.
64893
64894 2004-04-19  Bruno Haible  <bruno@clisp.org>
64895
64896         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
64897         * m4/inttypes_h.m4: Likewise.
64898         * m4/stdint_h.m4: Likewise.
64899         * m4/intmax_t.m4: Likewise.
64900         * m4/uintmax_t.m4: Likewise.
64901
64902 2004-04-18  Jim Meyering  <jim@meyering.net>
64903
64904         * m4/prereq.m4: Don't forbid jm_ prefix.
64905
64906         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
64907         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
64908         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
64909         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
64910         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
64911         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
64912         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
64913         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
64914         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
64915         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
64916         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
64917         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
64918         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
64919         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
64920         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
64921         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
64922         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
64923         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
64924         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
64925
64926 2004-04-18  Jim Meyering  <jim@meyering.net>
64927
64928         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
64929         failure, don't leak memory and do call END_UTMP_ENT.
64930
64931 2004-04-16  Jim Meyering  <jim@meyering.net>
64932
64933         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
64934         coreutils' stat program.
64935         (gl_PREREQ): Don't require jm_PREREQ_STAT.
64936
64937 2004-04-11  Paul Eggert  <eggert@twinsun.com>
64938
64939         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
64940         C89.
64941         (CHAR_BIT): Remove, since we assume C89.
64942         Include <stdint.h> if available, as per current Autoconf CVS advice.
64943
64944 2004-03-31  Jim Meyering  <jim@meyering.net>
64945
64946         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
64947         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
64948         * m4/xalloc.m4: Likewise.
64949
64950 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64951
64952         Merge from coreutils.
64953
64954         * m4/inttostr.m4: New file.
64955         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
64956         Require AM_STDBOOL_H and gl_TIMESPEC instead.
64957         Require gl_CLOCK_TIME.
64958         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
64959
64960 2004-03-30  Paul Eggert  <eggert@twinsun.com>
64961
64962         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
64963         not bool, to be more consistent with Unix conventions.
64964         Suggested by Bruno Haible.
64965
64966         Merge from coreutils.
64967
64968         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
64969         * lib/umaxtostr.c: New files.
64970
64971         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
64972         the usual <time.h> dance.
64973         (get_date): Change signature to support fractional time stamps.
64974         All callers changed.
64975         * lib/getdate.y: Include "getdate.h" first, as we can now
64976         assume C89 and don't need to worry about 'const'.
64977         Similarly, include "unlocked-io.h" near start, not in middle.
64978         Include <limits.h>.
64979         (textint.value): Use long int rather than int.
64980         (textint.digits): Use size_t rather than int.
64981         (BILLION, LOG10_BILLION): New constants.
64982         (parser_control): New member rel_ns.  Members day_ordinal,
64983         time_zone, month, day, hour, minutes, rel_year, rel_month,
64984         rel_day, rel_hour, rel_minutes, rel_seconds
64985         are now long int, not int.  Member seconds is now struct timespec,
64986         not int.  New member timespec_seen.  Members dates_seen, days_seen,
64987         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
64988         not int.
64989         (%union.intval): Now long int, not int.
64990         New member timespec.
64991         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
64992         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
64993         (spec): Now is a timespec or an item list.
64994         (timespec, items): New nonterminals.
64995         (time, rel, relunit, number, get_date):
64996         Add support for fractional seconds.
64997         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
64998         (gmtime, localtime, mktime): Remove decls; not needed with C89.
64999         (to_hour): First arg is now long int, not int.
65000         (to_year): Returns long int, not int.
65001         Don't treat year -70 like 70.
65002         (tm_diff): Returns long int, not int.
65003         (lookup_word): Use bool instead of int when appropriate.
65004         (yylex): Use size_t for count, not int.
65005         Detect overflow when parsing large integer constants.
65006         Add support for fractions.
65007         (get_date): Make pointers 'const' if possible.
65008         Use more-portable code to detect integer overflow.
65009         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
65010         Don't use ctime; it's not reliable if the year has >4 digits.
65011
65012         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
65013         This is for compatibility with BSD.
65014
65015         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
65016         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
65017         From coreutils' system.h.
65018
65019         * lib/userspec.c: Don't include "posixver.h".
65020         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
65021         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
65022         compatible extension.  Simplify code by removing a boolean int
65023         that was always nonzero if a string was nonnull.
65024
65025 2004-03-30  Jim Meyering  <jim@meyering.net>
65026
65027         Merge from coreutils.
65028
65029         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
65030         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
65031         on some systems one must include <grp.h> before it.
65032         Reported by Christian Krackowizer.
65033
65034 2004-03-30  Jim Meyering  <jim@meyering.net>
65035
65036         Merge from coreutils.
65037
65038         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
65039
65040         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
65041         an empty input stream.
65042
65043         * lib/readtokens.c: Include <stdbool.h>.
65044         (readtoken): Use `size_t' rather than int/long.
65045         All callers adjusted.
65046         Use `bool' rather than `int' where appropriate.
65047         Use memset rather than an explicit loop.
65048         Use x2nrealloc rather than xrealloc.
65049         Allow the use of `\0' as a delimiter.
65050         (readtokens): Likewise.
65051         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
65052
65053 2004-03-30  Jim Meyering  <jim@meyering.net>
65054
65055         * m4/realloc.m4: Remove file, since now it does no more than
65056         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
65057         the `configure.ac' section of module/realloc.
65058         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
65059
65060 2004-03-30  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
65063         nonnull.
65064
65065 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65066
65067         Merge changes to getloadavg.c from coreutils and Emacs.
65068
65069         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
65070         Define to an expression, not to the empty string.
65071         Include cloexec.h and xalloc.h.
65072         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
65073         Use set_cloexec_flag rather than rolling our own.
65074         * lib/cloexec.c, lib/cloexec.h: New files.
65075
65076 2004-03-29  Paul Eggert  <eggert@twinsun.com>
65077
65078         * m4/cloexec.m4: New file.
65079
65080 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65081
65082         * lib/getopt.h: Sync with libc CVS.
65083
65084 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65085             Bruno Haible  <bruno@clisp.org>
65086
65087         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
65088         mbswidth.
65089
65090 2004-03-18  Paul Eggert  <eggert@twinsun.com>
65091             Bruno Haible  <bruno@clisp.org>
65092
65093         * lib/mbswidth.h: Include <wchar.h> only if
65094         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
65095         <wchar.h>.
65096         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
65097
65098 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65099
65100         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
65101         Sync with libc CVS.
65102         * lib/getopt_int.h: New file, also synced from libc.
65103
65104 2004-03-09  Paul Eggert  <eggert@twinsun.com>
65105
65106         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
65107         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
65108         Bring back getopt.c, getopt.h, getopt1.c.
65109
65110 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65111
65112         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
65113         All uses changed.  Check for sa_sigaction member; this fixes
65114         a bug first reported by Jason Andrade in
65115         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65116
65117 2004-03-07  Paul Eggert  <eggert@twinsun.com>
65118
65119         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
65120         '#if' expressions.  Unlike the code it replaces, it does not
65121         depend on (defined _SC_PAGESIZE).  However, it does depend on
65122         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
65123         first reported by Jason Andrade in
65124         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
65125
65126 2004-02-25  Simon Josefsson  <jas@extundo.com>
65127
65128         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
65129
65130 2004-02-25  Simon Josefsson  <jas@extundo.com>
65131
65132         * lib/strdup.h: New file.
65133         * lib/strdup.c: Include it.
65134         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
65135         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
65136
65137 2004-02-23  Karl Berry  <karl@gnu.org>
65138
65139         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
65140         (from fencepost.gnu.org:/gd/gnuorg).
65141
65142 2004-02-23  Karl Berry  <karl@gnu.org>
65143
65144         * config/srclistvars.sh (GNUORG) [karl]: redefine.
65145         * config/srclist.txt: add maintain/standards documents.
65146
65147 2004-02-18  Bruno Haible  <bruno@clisp.org>
65148
65149         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
65150         Reported by Derek Robert Price <derek@ximbiot.com>.
65151
65152 2004-02-16  Karl Berry  <karl@gnu.org>
65153
65154         * config/mkinstalldirs, install-sh: update from automake.
65155
65156 2004-02-06  Karl Berry  <karl@gnu.org>
65157
65158         * m4/po.m4: update from gettext 0.14.1.
65159
65160 2004-02-06  Karl Berry  <karl@gnu.org>
65161
65162         * lib/config.charset: update from gettext 0.14.1.
65163
65164 2004-02-05  Paul Eggert  <eggert@twinsun.com>
65165
65166         Add comments and code, prompted by suggestions from Bruno Haible
65167         for sh-quote.
65168         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
65169         describing the enum quoting_style values.
65170         * lib/quotearg.c (quotearg_alloc): New function.
65171         (quotearg_buffer_restyled): Treat lone { and } as special.
65172         Treat = as special.  Work around bug with older shells
65173         that "see" a '\' that is really the 2nd byte of a multibyte char.
65174         Quote empty string with shell_quoting_style.
65175
65176 2004-02-03  Bruno Haible  <bruno@clisp.org>
65177
65178         * m4/pipe.m4: New file, from GNU gettext.
65179
65180 2004-02-03  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/pipe.h: New file, from GNU gettext.
65183         * lib/pipe.c: New file, from GNU gettext.
65184
65185 2004-01-27  Bruno Haible  <bruno@clisp.org>
65186
65187         * m4/execute.m4: New file, from GNU gettext.
65188
65189 2004-01-27  Bruno Haible  <bruno@clisp.org>
65190
65191         * lib/execute.h: New file, from GNU gettext.
65192         * lib/execute.c: New file, from GNU gettext.
65193         * lib/w32spawn.h: New file, from GNU gettext.
65194
65195 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65196
65197         Merge from diffutils.
65198
65199         * lib/file-type.c (file_type): Add typed memory objects.
65200         * lib/file-type.h (S_TYPEISTMO): New macro.
65201
65202         * lib/c-stack.h (c_stack_action): Remove argv argument.
65203         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
65204         (die): Don't calculate message unless segv_action returns.
65205         (get_stack_location, min_address_from_argv, max_address_from_argv,
65206         volatile stack_base, volatile_stack_size): Remove.
65207         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
65208         that every segmentation violation is a stack overflow.  (Ouch!)
65209         See Debian bug 136249 (still outstanding) for more info about why
65210         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
65211
65212 2004-01-24  Paul Eggert  <eggert@twinsun.com>
65213
65214         Exit-status fix from coreutils.
65215
65216         Use exit_failure consistently in place of EXIT_FAILURE,
65217         so that program exit statuses are consistent on failure.
65218
65219         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
65220         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
65221         * lib/argmatch.h: Comment fix to match the above.
65222         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
65223         Now a macro referring to exit_failure, instead of a separate
65224         variable.  Include "exitfail.h" to get it.
65225         * lib/xstrtol.h: Include "exitfail.h".
65226         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
65227
65228         * lib/long-options.c (parse_long_options): Use prototype
65229         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
65230         for clarity.
65231
65232 2004-01-21  Jim Meyering  <jim@meyering.net>
65233
65234         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
65235         so as not to conflict with a different-sized __mktime_internal
65236         function in GNU libc.
65237         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
65238         Problem building statically-linked `ls' reported by Michael Brunnbauer.
65239
65240 2004-01-20  Karl Berry  <karl@gnu.org>
65241
65242         * config/config.guess: update from config.
65243
65244         * config/srclistvars.sh: GNUWWWLICENSES for karl.
65245
65246 2004-01-20  Bruno Haible  <bruno@clisp.org>
65247
65248         Safer stack allocation.
65249         * lib/setenv.c: Include allocsa.h.
65250         (alloca): Remove fallback definition.
65251         (freea): Remove macro.
65252         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
65253         instead of freea.
65254
65255 2004-01-20  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/eealloc.m4: New file, from GNU gettext.
65258
65259 2004-01-20  Bruno Haible  <bruno@clisp.org>
65260
65261         * m4/allocsa.m4: New file, from GNU gettext.
65262
65263 2004-01-20  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/xallocsa.h: New file, from GNU gettext.
65266         * lib/xallocsa.c: New file, from GNU gettext.
65267
65268 2004-01-20  Bruno Haible  <bruno@clisp.org>
65269
65270         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
65271
65272 2004-01-20  Bruno Haible  <bruno@clisp.org>
65273
65274         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
65275         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
65276         specially.
65277
65278 2004-01-20  Bruno Haible  <bruno@clisp.org>
65279
65280         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
65281         patch.
65282
65283 2004-01-20  Bruno Haible  <bruno@clisp.org>
65284
65285         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
65286
65287 2004-01-20  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/eealloc.h: New file.
65290
65291 2004-01-20  Bruno Haible  <bruno@clisp.org>
65292
65293         * lib/binary-io.h: Avoid warnings on Cygwin.
65294
65295 2004-01-20  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/allocsa.h: New file, from GNU gettext.
65298         * lib/allocsa.c: New file, from GNU gettext.
65299
65300 2004-01-18  Karl Berry  <karl@gnu.org>
65301
65302         * doc/gpl.texi, doc/lgpl.texi: new files.
65303
65304 2004-01-18  Karl Berry  <karl@gnu.org>
65305
65306         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
65307         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
65308
65309 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65310
65311         Merge from coreutils.
65312
65313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
65314         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
65315         (gl_DEFAULT_POSIX2_VERSION): Move
65316         the documentation from 'configure' into 'config.hin',
65317         so that 'configure --help' isn't burdened by it and
65318         we don't have to worry about its formatting there.
65319         Reword the documentation so that it's more succinct
65320         and can be run together into a single paragraph.
65321         * m4/same.m4 (gl_SAME): Check for pathconf.
65322
65323 2004-01-15  Paul Eggert  <eggert@twinsun.com>
65324
65325         Merge from coreutils.
65326
65327         * lib/posixver.c: Include posixver.h.
65328
65329         * lib/same.c: Include <stdbool.h>, <limits.h>.
65330         (_POSIX_NAME_MAX): Define if not defined.
65331         (MIN): New macro.
65332         (same_name): If file names are silently truncated, report
65333         that the file names are the same if they are the same after
65334         the silent truncation.
65335
65336         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
65337         conversion function.
65338         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
65339         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
65340         longer needed.
65341
65342 2004-01-15  Jim Meyering  <jim@meyering.net>
65343
65344         Merge from coreutils.
65345
65346         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
65347         if no library is required.
65348         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
65349         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
65350         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
65351         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
65352         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
65353         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
65354         value, $ac_cv_search_crypt, if it's "none required".
65355         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
65356         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
65357         not gl_FUNC_GETLOADAVG.
65358         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
65359         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
65360
65361 2004-01-15  Jim Meyering  <jim@meyering.net>
65362
65363         Merge from coreutils.
65364
65365         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
65366         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
65367         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
65368
65369         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
65370         optional configure-time default.
65371
65372         * lib/version-etc.c (version_etc_copyright): Update copyright date.
65373
65374         * lib/xreadlink.c (xreadlink): Correct outdated comment.
65375
65376 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
65377
65378         Merge from coreutils.
65379
65380         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
65381         value, $ac_cv_search_nanosleep, if it's "none required".
65382
65383 2004-01-14  Paul Eggert  <eggert@twinsun.com>
65384
65385         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
65386         with like-named macro in fnmatch.c.
65387         (EXT): Use an internal constant instead.
65388
65389         Merge fnmatch patches from glibc.
65390         * lib/fnmatch.c (mbsinit): Remove define.
65391         Add libc_hidden_ver (__fnmatch, fnmatch).
65392         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
65393         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
65394
65395 2004-01-14  Karl Berry  <karl@gnu.org>
65396
65397         * config/install-sh: update from automake.
65398
65399 2004-01-13  Karl Berry  <karl@gnu.org>
65400
65401         * config/install-sh: update from automake.
65402
65403 2004-01-09  Karl Berry  <karl@gnu.org>
65404
65405         * config/install-sh: update from automake.
65406
65407 2004-01-05  Karl Berry  <karl@gnu.org>
65408
65409         * config/config.{sub,guess}: update from config.
65410
65411 2003-12-31  Karl Berry  <karl@gnu.org>
65412
65413         * config/depcomp: update from automake.
65414
65415 2003-12-14  Karl Berry  <karl@gnu.org>
65416
65417         * lib/config.charset: update from gettext-runtime.
65418
65419 2003-12-03  Paul Eggert  <eggert@twinsun.com>
65420
65421         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
65422         Bug reported by Alfred M. Szmidt.
65423
65424 2003-12-03  Bruno Haible  <bruno@clisp.org>
65425
65426         * m4/gettext.m4: Upgrade from gettext-0.13.
65427         * m4/po.m4: Upgrade from gettext-0.13.
65428         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
65429         * m4/intmax.m4: New file, from gettext-0.13.
65430         * m4/printf-posix.m4: New file, from gettext-0.13.
65431
65432 2003-11-29  Karl Berry  <karl@gnu.org>
65433
65434         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
65435
65436 2003-11-25  Paul Eggert  <eggert@twinsun.com>
65437             Bruno Haible  <bruno@clisp.org>
65438
65439         * lib/printf-parse.h: Don't include sys/types.h.
65440         (ARG_NONE): New macro.
65441         (char_directive): Change type of *arg_index fields to size_t.
65442         * lib/printf-parse.c: Don't include sys/types.h.
65443         (SSIZE_MAX): Remove macro.
65444         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
65445         Remove unnecessary overflow check.
65446         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
65447         fields.
65448
65449 2003-11-25  Bruno Haible  <bruno@clisp.org>
65450
65451         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
65452
65453 2003-11-25  Bruno Haible  <bruno@clisp.org>
65454
65455         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
65456         gt_TYPE_SSIZE_T.
65457
65458 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65459
65460         * modules/alloca: Remove dependency on xalloc.
65461
65462 2003-11-24  Paul Eggert  <eggert@twinsun.com>
65463
65464         * lib/alloca.c: Remove dependency on xalloc module.
65465         (xalloc_die): Remove.
65466         (memory_full) [!defined emacs]: New macro.
65467         [!defined emacs]: Don't include xalloc.h.
65468         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
65469         address arithmetic overflows.  Change datatypes a bit to avoid
65470         unnecessary casts.
65471
65472 2003-11-22  Jim Meyering  <jim@meyering.net>
65473
65474         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
65475         s/size/size_t/.
65476
65477 2003-11-21  Karl Berry  <karl@gnu.org>
65478
65479         * config/config.{sub,guess}: update from config.
65480
65481 2003-11-18  Karl Berry  <karl@gnu.org>
65482
65483         * config/config.{sub,guess}: update from config.
65484
65485         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
65486
65487 2003-11-17  Paul Eggert  <eggert@twinsun.com>
65488
65489         * README: Mention that S+T cannot overflow if S is the size of
65490         an existing object and T is sufficiently small.
65491
65492 2003-11-17  Jim Meyering  <jim@meyering.net>
65493
65494         On systems without utime and without a utimes function capable of
65495         dealing with a NULL struct utimbuf* argument, this utime replacement
65496         could -- in unusual circumstances -- leak a file descriptor.
65497         * lib/utime.c: Include <unistd.h> and <errno.h>.
65498         (utime_null): Be sure to close `fd' and to preserve errno.
65499         Reported by Geoff Collyer via Arnold Robbins.
65500
65501 2003-11-17  Bruno Haible  <bruno@clisp.org>
65502
65503         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
65504         (Depends-on): Add xsize.
65505
65506 2003-11-17  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
65509
65510 2003-11-17  Bruno Haible  <bruno@clisp.org>
65511
65512         * lib/vasnprintf.c (alloca): Remove fallback definition.
65513         (freea): Remove definition.
65514         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
65515         Reported by Paul Eggert.
65516
65517 2003-11-16  Paul Eggert  <eggert@twinsun.com>
65518             Bruno Haible  <bruno@clisp.org>
65519
65520         Protect against address arithmetic overflow.
65521         * lib/printf-args.h: Include stddef.h.
65522         (arguments): Change type of field 'count' to size_t.
65523         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
65524         'unsigned int' where appropriate.
65525         * lib/printf-parse.h: Include sys/types.h.
65526         (char_directive): Change type of *arg_index fields to ssize_t.
65527         (char_directives): Change type of fields 'count', max_*_length to
65528         size_t.
65529         * lib/printf-parse.c: Include sys/types.h and xsize.h.
65530         (SSIZE_MAX): Define fallback value.
65531         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
65532         instead of 'int' where appropriate. Check a_allocated, d_allocated
65533         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
65534         * lib/vasnprintf.c: Include xsize.h.
65535         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
65536         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
65537         overflow. Avoid wraparound when converting a width or precision from
65538         decimal to binary.
65539
65540 2003-11-16  Bruno Haible  <bruno@clisp.org>
65541
65542         Update from GNU gettext.
65543         * lib/printf-parse.c: Generalize to it can be compiled for wide
65544         strings.
65545         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
65546         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
65547         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
65548         SNPRINTF): New macros.
65549         Don't include <alloca.h> if the file is used inside libintl.
65550         (local_wcslen): New function, for Solaris 2.5.1.
65551         (VASNPRINTF): Use it instead of wcslen.
65552
65553 2003-11-16  Bruno Haible  <bruno@clisp.org>
65554
65555         * lib/xsize.h (xmax): New function.
65556         (xsum, xsum3, xsum4): Declare as "pure" functions.
65557
65558 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65559
65560         * modules/xalloc (Files): Undo latest change, since xalloc.h
65561         no longer needs SIZE_MAX or PTRDIFF_MAX.
65562
65563 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65564
65565         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
65566         gl_PTRDIFF_MAX.
65567
65568 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65569
65570         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
65571         "return", to pacify some unknown compiler.  Problem reported
65572         by Joerg Schilling.
65573
65574 2003-11-12  Paul Eggert  <eggert@twinsun.com>
65575
65576         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
65577         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
65578         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
65579         heuristic is just as accurate as far as we know, and it removes a
65580         dependency on size_max.m4 and ptrdiff_max.m4.
65581
65582 2003-11-11  Bruno Haible  <bruno@clisp.org>
65583
65584         * modules/xsize (Files): Add m4/size_max.m4.
65585         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
65586
65587 2003-11-11  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/size_max.m4: New file.
65590         * m4/ptrdiff_max.m4: New file.
65591         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
65592         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
65593         (gl_XALLOC): Invoke it.
65594
65595 2003-11-11  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
65598         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
65599         defined.
65600
65601 2003-11-10  Paul Eggert  <eggert@twinsun.com>
65602
65603         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
65604         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
65605         rejected some allocations of exactly SIZE_MAX - 2 bytes.
65606         From Bruno Haible.
65607         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
65608         not (size_t) -1, since it's defined here.
65609
65610 2003-11-09  Karl Berry  <karl@gnu.org>
65611
65612         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
65613
65614 2003-11-06  Paul Eggert  <eggert@twinsun.com>
65615
65616         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
65617         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
65618         Reject sizes of exactly SIZE_MAX bytes.
65619         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
65620         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
65621
65622 2003-11-05  Bruno Haible  <bruno@clisp.org>
65623
65624         * lib/xsize.h: Include limits.h, to avoid a possible collision with
65625         SIZE_MAX defined in <limits.h> on Solaris.
65626
65627 2003-11-04  Jim Meyering  <jim@meyering.net>
65628
65629         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
65630         variable names, rather than @VAR@.
65631         * modules/poll: Likewise.
65632
65633 2003-11-04  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/xsize: New file.
65636         * modules/linebreak: Depend on xsize.
65637         * MODULES.html.sh (func_all_modules): Add xsize.
65638
65639 2003-11-04  Bruno Haible  <bruno@clisp.org>
65640
65641         * m4/xsize.m4: New file.
65642
65643 2003-11-04  Bruno Haible  <bruno@clisp.org>
65644
65645         * lib/xsize.h: New file.
65646         * lib/linebreak.c: Include xsize.h.
65647         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
65648         argument for overflow.
65649         Suggested by Paul Eggert.
65650
65651 2003-11-03  Karl Berry  <karl@gnu.org>
65652
65653         * config/config.{guess,sub}: update from config.
65654
65655 2003-11-03  Jim Meyering  <jim@meyering.net>
65656
65657         * modules/userspec (lib_SOURCES): Add userspec.h.
65658         (Include): Add "userspec.h".
65659         Improve description.
65660
65661 2003-11-03  Jim Meyering  <jim@meyering.net>
65662
65663         * lib/userspec.c: Include "userspec.h".
65664         * lib/userspec.h: New file.
65665
65666 2003-11-03  Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
65669
65670 2003-11-03  Bruno Haible  <bruno@clisp.org>
65671
65672         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
65673         available, to avoid (extremely rare) race condition.
65674         Suggested by Paul Eggert.
65675
65676 2003-11-02  Karl Berry  <karl@gnu.org>
65677
65678         * config/srclist.txt (vasprintf.c): sync broken, sigh.
65679
65680 2003-10-31  Paul Eggert  <eggert@twinsun.com>
65681
65682         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
65683         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
65684         (read_filesystem_list): Set and use me_type_malloced.
65685         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
65686         whatever the type happens to be), for brevity and consistency.
65687         Check for size calculation overflow on Alphas running OSF/1.
65688
65689 2003-10-31  Jim Meyering  <jim@meyering.net>
65690
65691         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
65692
65693         * lib/linebuffer.c: Include <string.h> for declaration of memset.
65694
65695 2003-10-30  Paul Eggert  <eggert@twinsun.com>
65696             Bruno Haible  <bruno@clisp.org>
65697
65698         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
65699         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
65700
65701 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
65704         netbsd*-gnu*.  Suggested by Robert Millan.
65705
65706 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65707
65708         * modules/group-member: Depend on stdbool.
65709
65710 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65711
65712         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
65713
65714 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65715
65716         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
65717         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
65718         after the 'gnu' in these cases.  This fixes some bugs in the
65719         previous change, and is based on suggestions by Robert Millan.
65720
65721 2003-10-29  Paul Eggert  <eggert@twinsun.com>
65722
65723         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
65724         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
65725         no longer needed.
65726         * lib/quotearg.c (quotearg_n_options): Use it.
65727         * lib/group-member.c: Include <stdbool.h>.
65728         (free_group_info): Arg is now const *; don't free arg.
65729         (get_group_info): Now returns bool and accepts struct group_info *,
65730         rather than returning a malloc'ed struct group_info *.
65731         All uses changed.  Check for overflow in internal size calculation.
65732
65733         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
65734         rather than xmalloc/xrealloc.
65735         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
65736         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
65737         conformance bug: the old code used a pointer after freeing the
65738         storage that it addressed.
65739         * lib/hash.c (hash_initialize): Simplify the code by using
65740         xalloc_oversized rather than doing it by hand.
65741         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
65742         the buffer preserved.  Use free and xmalloc instead.
65743         * lib/quotearg.c (quotearg_n_options): Likewise.
65744         Use a simpler test for size overflow.  Don't use xalloc_oversized
65745         because unsigned int might be wider than size_t (!); this suggests
65746         that we should switch from unsigned int to size_t for slot numbers.
65747
65748 2003-10-28  Paul Eggert  <eggert@twinsun.com>
65749
65750         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
65751         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
65752         NetBSD kernels.  Requested by Richard Stallman.
65753
65754 2003-10-27  Paul Eggert  <eggert@twinsun.com>
65755
65756         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
65757         to allocate the returned structure.  Do not allocate a subarray,
65758         as x2nrealloc will do that.
65759         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
65760         instead of xnrealloc.
65761         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
65762
65763 2003-10-27  Bruno Haible  <bruno@clisp.org>
65764
65765         * lib/stdbool_.h: Better support for BeOS.
65766
65767 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65768
65769         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
65770         now uses inline.
65771
65772 2003-10-26  Paul Eggert  <eggert@twinsun.com>
65773
65774         * lib/xalloc.h (xalloc_oversized): New static inline function, for
65775         callers that want to do their own size-overflow checking.  Include
65776         <stdbool.h>, since xalloc_oversized returns bool.
65777         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
65778         to use xalloc_oversized.
65779
65780         Add two functions x2realloc, x2nrealloc, for programs that grow
65781         arrays dynamically by doubling their sizes.
65782         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
65783         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
65784         New functions.
65785
65786         Port to C99 semantics for 'inline' of external functions.
65787         Bug reported by Bruno Haible.
65788         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
65789         with the old contents of xnmalloc.
65790         (xnmalloc, xmalloc): Use it.
65791         (xnrealloc_inline): New static inline function,
65792         with the old contents of xnrealloc.
65793         (xnrealloc, xrealloc): Use it.
65794
65795         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
65796         that.
65797
65798 2003-10-26  Karl Berry  <karl@gnu.org>
65799
65800         * config/srclist.txt (COPYING.DOC): no longer available from
65801         /gd/gnuorg; don't know where the ultimate source is.
65802
65803 2003-10-25  Paul Eggert  <eggert@twinsun.com>
65804
65805         Fix several address-calculation bugs in the hash modules,
65806         plus some minor code cleanup.
65807
65808         * lib/hash.h: Include <stdbool.h>, for bool.
65809         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
65810         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
65811         hash_get_n_entries, hash_get_max_bucket_length,
65812         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
65813         hash_rehash): Use size_t rather than unsigned.
65814         * lib/hash.c (struct hash_table, hash_get_n_buckets,
65815         hash_get_n_buckets_used, hash_get_n_entries,
65816         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
65817         hash_get_entries, hash_do_for_each, hash_string, is_prime,
65818         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
65819         Likewise.
65820         (SIZE_MAX): Define if not defined.
65821         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
65822         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
65823         hash_print):
65824         Use const * when possible.
65825         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
65826         (check_tuning): Fix bug: if tuning parameters were very close to
65827         0 or 1, rounding errors could have caused subscript violations.
65828         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
65829         (hash_initialize): Add 'fail:' label
65830         to free table and return NULL, and use it to simplify code.
65831         Use calloc rather than clearing the storage ourself.
65832         (hash_initialize, hash_rehash): Check for arithmetic overflow in
65833         buffer size calculations.
65834         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
65835         Include <stddef.h>, for size_t.
65836         * lib/hash-pjw.c (hash_pjw): Likewise.
65837         Switch to method described by Bruno Haible.
65838         Include <limits.h>, for CHAR_BIT.
65839         (SIZE_BITS): New macro.
65840
65841 2003-10-23  Paul Eggert  <eggert@twinsun.com>
65842
65843         * m4/getline.m4 (AM_FUNC_GETLINE):
65844         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
65845         hosts.  Problem reported by Derek Robert Price in
65846         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
65847         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
65848         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
65849
65850 2003-10-21  Paul Eggert  <eggert@twinsun.com>
65851
65852         * lib/getndelim2.c (getndelim2): When size calculation overflows,
65853         ceiling the allocation at NMAX bytes rather than silently
65854         discarding input bytes before NMAX is reached.  This makes
65855         a difference only if NMAX exceeds SIZE_MAX / 2.
65856
65857         * lib/obstack.c: Merge from glibc.
65858         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
65859         Add libc_hidden_def (_obstack_newchunk).
65860         (_obstack_free) [! defined _LIBC]: Remove.
65861         [defined _LIBC]: Make a strong alias from obstack_free, rather than
65862         a clone of the function body.
65863         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
65864         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
65865
65866         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
65867         glibc.
65868         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
65869         arg to memcpy.
65870
65871         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
65872         (obstack_ptr_grow_fast, obstack_int_grow_fast):
65873         Don't use lvalue casts, as GCC plans to remove support for them
65874         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
65875         was also present in the non-GCC version, indicating that this
65876         code had always been buggy and had never been widely used.
65877         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
65878         Use the fast variant of each macro, rather than copying the
65879         definiens of the fast variant; that way, we'll be more likely to
65880         catch future bugs in the fast variants.
65881
65882 2003-10-20  Bruno Haible  <bruno@clisp.org>
65883
65884         * modules/wait-process: New file.
65885         * MODULES.html.sh (func_all_modules): Add wait-process.
65886
65887 2003-10-20  Bruno Haible  <bruno@clisp.org>
65888
65889         * m4/wait-process.m4: New file.
65890
65891 2003-10-20  Bruno Haible  <bruno@clisp.org>
65892
65893         * lib/wait-process.h: New file, from GNU gettext.
65894         * lib/wait-process.c: New file, from GNU gettext.
65895
65896 2003-10-19  Jim Meyering  <jim@meyering.net>
65897
65898         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
65899         HPUX 10.20.
65900
65901 2003-10-18  Karl Berry  <karl@gnu.org>
65902
65903         * config/config.guess: update from config.
65904
65905 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65906
65907         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
65908         (getgroups): First arg is int, not size_t.
65909         Don't let 'free' mangle errno.
65910
65911 2003-10-16  Paul Eggert  <eggert@twinsun.com>
65912
65913         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
65914
65915 2003-10-16  Karl Berry  <karl@gnu.org>
65916
65917         * config/config.{guess,sub}: update from config.
65918
65919 2003-10-16  Jim Meyering  <jim@meyering.net>
65920
65921         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
65922         memcpy.
65923
65924 2003-10-15  Paul Eggert  <eggert@twinsun.com>
65925
65926         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
65927         (SIZE_MAX): Remove.
65928         (new_exclude, add_exclude_file): Initial size no longer needs to
65929         be a power of 2.
65930         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
65931         our own address arithmetic overflow checking.
65932
65933         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
65934         (fnmatch): Do not alloca more than 2000 wide characters;
65935         instead, use malloc for large buffers.
65936         Check for address arithmetic overflow, and return -1
65937         with errno set to ENOMEM in that case.
65938         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
65939         (NEW_PATTERN): Do not alloca more than 8000 bytes;
65940         instead, return -1.  Check for address arithmetic overflow.
65941
65942 2003-10-14  Paul Eggert  <eggert@twinsun.com>
65943
65944         Handle invalid suffixes and overflow independently, so that
65945         callers can treat them independently as needed.  Fix some bugs in
65946         suffix handling, e.g., "100k@" was not diagnosed as an invalid
65947         suffix for a human-readable blocksize.  The major caller-visible
65948         change is the addition of a new
65949         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
65950         that both overflow and suffix chars were found.
65951
65952         * lib/human.c (humblock): Don't check separately for invalid suffix
65953         char; that is xstrtoumax's job (now that its bug is fixed).
65954         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
65955         INTMAX_MAX]: New macros.
65956         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
65957         TYPE_MAXIMUM): New macros.
65958         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
65959         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
65960         if overflow occurs, as it's what __strtol does and it's more useful
65961         in practice.
65962         (__xstrtol): If __strtol reports some error other than ERANGE,
65963         reflect it to the caller as LONGINT_INVALID.  If it reports
65964         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
65965         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
65966         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
65967         value.
65968         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
65969         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
65970         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
65971         [defined UINTMAX_MAX]: New macros.
65972
65973 2003-10-14  Bruno Haible  <bruno@clisp.org>
65974
65975         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
65976
65977 2003-10-14  Bruno Haible  <bruno@clisp.org>
65978
65979         * m4/sig_atomic_t: New file, from GNU gettext.
65980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
65981
65982 2003-10-14  Bruno Haible  <bruno@clisp.org>
65983
65984         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
65985         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
65986         Also use volatile where needed.
65987
65988 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65989
65990         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
65991         Change maintainer from Bruno Haible to 'all'.
65992
65993 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65994
65995         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
65996
65997 2003-10-12  Paul Eggert  <eggert@twinsun.com>
65998
65999         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
66000         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
66001         and define in terms of the other primitives.
66002         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
66003         (SIZE_MAX): Define if not already defined.
66004         (array_size_overflow): New function.
66005         (xalloc_die): Abort instead of exiting if 'error' returns.
66006         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
66007         (xmalloc, xrealloc): Use them.
66008         (xcalloc): Check for address arithmetic overflow.
66009         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
66010         a bit faster than strcpy.
66011
66012 2003-10-10  Simon Josefsson  <jas@extundo.com>
66013
66014         * modules/argp (Depends-on): Add restrict and strcase.
66015
66016 2003-10-10  Simon Josefsson  <jas@extundo.com>
66017
66018         * m4/argp.m4: Add AC_C_INLINE.
66019
66020 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66021
66022         Merge getpass from libc, plus a few fixes.
66023
66024         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
66025         Include <stdbool.h>.
66026         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
66027         __fsetlocking to empty.
66028         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
66029         do include <bits/libc-lock.h>.
66030         Do not include <fcntl.h>; not needed.
66031         [_LIBC]: Include <wchar.h>.
66032         (NOTCANCEL_MODE): New macro.
66033         (flockfile, funlockfile) [_LIBC]: New macros.
66034         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
66035         [!_LIBC]: New macros.
66036         (call_fclose): New function.
66037         (getpass): Use it.  Save tty stream separately; this simplifies the
66038         code and makes it more reliable if stdin happens to equal stdout.
66039         Invoke __fsetlocking on tty.
66040         Handle thread cancellation if needed.
66041         Namespace cleanup (use __tcgetattr, __getline).
66042         Use bool for Booleans.
66043         [USE_IN_LIBIO]: Handle wide streams.
66044         [!_LIBC]: Unconditionally do the fseek, since we don't know what
66045         stream might go where.
66046
66047         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
66048         doesn't have to include <stdio.h> before us.
66049         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
66050         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
66051         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
66052         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
66053         if not declared, so that we can use getpass.c code from libc without
66054         rewriting it.
66055         (flockfile, ftrylockfile, funlockfile): New macros.
66056
66057 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66058
66059         * modules/getpass: Depend on stdbool.
66060
66061 2003-10-08  Paul Eggert  <eggert@twinsun.com>
66062
66063         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
66064
66065 2003-10-07  Karl Berry  <karl@gnu.org>
66066
66067         * config/config.{guess,sub}: update from config.
66068
66069 2003-10-06  Jim Meyering  <jim@meyering.net>
66070             Bruno Haible  <bruno@clisp.org>
66071
66072         This lets translators provide better translations for the
66073         "Written by ..." part of --version output.
66074         * lib/version-etc.h: Include stdarg.h.
66075         (version_etc_copyright): Declare as readonly.
66076         (version_etc): Make this function variadic with a NULL-terminated list
66077         of author name strings.
66078         (version_etc_va): New declaration.
66079         * lib/version-etc.c: Include stdarg.h, stdlib.h.
66080         (version_etc_copyright): Declare as readonly.
66081         (version_etc_va): New function. Provide a different translatable string
66082         for each possible number of authors < 10. Abbreviate when there are 10
66083         authors or more.
66084         (version_etc): Make this function variadic. Call version_etc_va.
66085         Suggestion from Gary V. Vaughan.
66086
66087         * lib/long-options.h (parse_long_options): Change prototype: the
66088         authors string is moved to the end and becomes variadic.
66089         * lib/long-options.c: Include stdarg.h.
66090         (parse_long_options): Make this function variadic, too.
66091         Call version_etc_va, not version_etc.
66092
66093 2003-10-06  Bruno Haible  <bruno@clisp.org>
66094
66095         * modules/version-etc-2: Remove file.
66096         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
66097
66098 2003-10-06  Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/fatal-signal: New file.
66101         * MODULES.html.sh (func_all_modules): Add fatal-signal.
66102
66103 2003-10-06  Bruno Haible  <bruno@clisp.org>
66104
66105         * m4/fatal-signal.m4: New file.
66106         * m4/signalblocking.m4: New file, from GNU gettext.
66107
66108 2003-10-06  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/version-etc-2.h: Remove file.
66111         * lib/version-etc-2.c: Remove file.
66112
66113 2003-10-06  Bruno Haible  <bruno@clisp.org>
66114
66115         * lib/fatal-signal.h: New file, from GNU gettext.
66116         * lib/fatal-signal.c: New file, from GNU gettext.
66117
66118 2003-10-05  Paul Eggert  <eggert@twinsun.com>
66119
66120         * README: Rework advice for preventing empty .o files.
66121         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
66122         not <sys/types.h>.
66123
66124 2003-10-04  Karl Berry  <karl@gnu.org>
66125
66126         * lib/argp*: update from libc.
66127
66128 2003-10-04  Karl Berry  <karl@gnu.org>
66129
66130         * config/config.{guess,sub}: update from config.
66131
66132 2003-10-02  Bruno Haible  <bruno@clisp.org>
66133
66134         * modules/lchown (Include): Add lchown.h.
66135         * modules/time_r (Include): Use "..." syntax.
66136         * modules/xgetdomainname (Include): Add xgetdomainname.h.
66137
66138 2003-10-01  Simon Josefsson  <jas@extundo.com>
66139
66140         * MODULES.html.sh (func_all_modules): Move gethostname from section
66141         'based on' to section 'lacking' POSIX:2001.
66142
66143 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
66144
66145         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
66146         to output mode on the same stream.
66147
66148 2003-09-29  Paul Eggert  <eggert@twinsun.com>
66149
66150         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
66151         Fix arg typo in previous patch.
66152
66153 2003-09-28  Jim Meyering  <jim@meyering.net>
66154
66155         * lib/error.c: Correct cpp indentation.
66156
66157 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66158
66159         * modules/free: New file.
66160
66161 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66162
66163         * m4/free.m4: New file.
66164
66165 2003-09-27  Paul Eggert  <eggert@twinsun.com>
66166
66167         * lib/minmax.h (MIN, MAX)
66168         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
66169         Omit the special code that used __typeof__, since we worry that
66170         it could be more trouble than it's worth.  See:
66171         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
66172         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
66173
66174         * lib/free.c: New file.
66175
66176 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
66177
66178         Trivial fixes to Makefile.am parts of module listings.
66179         * modules/strstr: Append strstr.h to lib_SOURCES.
66180         * modules/strcase: Likewise, for strcase.h.
66181
66182 2003-09-27  Karl Berry  <karl@gnu.org>
66183
66184         * config/mkinstalldirs: update from automake.
66185
66186 2003-09-26  Paul Eggert  <eggert@twinsun.com>
66187
66188         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
66189         (error_tail): Do not loop, reallocating temporary buffer, since
66190         the output cannot contain more wide characters than the input
66191         contains bytes, the size must be big enough already.  This avoids
66192         one potential size overflow calculation.  Check for size overflow
66193         when calculating temporary buffer size.  Free temporary buffer
66194         when done, if it was allocated with malloc; this plugs a memory
66195         leak.  Remove casts from void * to pointers, that are no longer
66196         needed now that we're assuming C89 or better.
66197
66198         Merge error changes from glibc.
66199
66200         * lib/error.c, error.h: Update copyright notice header to match glibc.
66201         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
66202         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
66203         Disable cancellation while printing error.
66204         * lib/error.h: Prepend __ to parameter names.
66205
66206 2003-09-26  Jim Meyering  <jim@meyering.net>
66207
66208         * lib/error.c (error_tail): Move some declarations
66209         into inner scope where the local variables are used.
66210
66211 2003-09-26  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
66214         stpncpy().
66215         Don't define stpncpy through config.h; it's now done through stpncpy.h.
66216
66217 2003-09-26  Bruno Haible  <bruno@clisp.org>
66218
66219         * lib/stpncpy.h (gnu_stpncpy): New declaration.
66220         (stpncpy): Define as alias for gnu_stpncpy.
66221         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
66222
66223 2003-09-25  Simon Josefsson  <jas@extundo.com>
66224
66225         * lib/xgetdomainname.h: New file.
66226         * lib/xgetdomainname.c: New file.
66227
66228 2003-09-25  Simon Josefsson  <jas@extundo.com>
66229             Bruno Haible  <bruno@clisp.org>
66230
66231         * modules/getdomainname: New file.
66232         * modules/xgetdomainname: New file.
66233         * MODULES.html.sh (func_all_modules): Add getdomainname,
66234         xgetdomainname.
66235
66236 2003-09-25  Simon Josefsson  <jas@extundo.com>
66237             Bruno Haible  <bruno@clisp.org>
66238
66239         * m4/getdomainname.m4: New file.
66240
66241 2003-09-25  Simon Josefsson  <jas@extundo.com>
66242             Bruno Haible  <bruno@clisp.org>
66243
66244         * lib/getdomainname.h: New file.
66245         * lib/getdomainname.c: New file.
66246
66247 2003-09-25  Karl Berry  <karl@gnu.org>
66248
66249         * lib/argp-fmtstream.c, argp-help.c: update from libc.
66250
66251 2003-09-25  Karl Berry  <karl@gnu.org>
66252
66253         * config/install-sh: update from automake.
66254
66255 2003-09-25  Bruno Haible  <bruno@clisp.org>
66256
66257         * modules/version-etc-2: New file, from modules/version-etc with
66258         modifications.
66259         * MODULES.html.sh (func_all_modules): Add version-etc-2.
66260
66261 2003-09-25  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
66264         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
66265
66266 2003-09-24  Simon Josefsson  <jas@extundo.com>
66267
66268         * modules/xgethostname: Add xgethostname.h.
66269
66270 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66271
66272         * lib/linebuffer.c (freebuffer): Don't free the argument, just
66273         the buffer associated with the argument.  Bug reported by
66274         Simon Josefsson.
66275
66276 2003-09-24  Paul Eggert  <eggert@twinsun.com>
66277
66278         * README: Document assumptions that 'int' is at least 32 bits
66279         wide, that integer arithmetic is 2's complement without overflow,
66280         that there are no holes in integer values, that adding sizes of
66281         two nonoverlapping objects can't overflow, and that all-bits-zero
66282         yields scalar zero.  Fix spelling and capitalization typos.
66283
66284 2003-09-19  Karl Berry  <karl@gnu.org>
66285
66286         * lib/argp.h: update from libc.
66287
66288 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66289
66290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
66291         to avoid spurious warnings like "AC_RUN_IFELSE was called before
66292         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
66293
66294 2003-09-17  Paul Eggert  <eggert@twinsun.com>
66295
66296         * gnulib-tool: Use "test -h", not "test -L", for portability
66297         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
66298         (tags_regexp): Remove, since \| doesn't conform to POSIX.
66299         (sed_extract_prog): Issue s commands one-by-one, rather than
66300         using \| in one s command.
66301
66302 2003-09-16  Paul Eggert  <eggert@twinsun.com>
66303
66304         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
66305         input error, instead of returning NULL the next time we are called
66306         (and therefore losing track of errno).
66307
66308 2003-09-16  Bruno Haible  <bruno@clisp.org>
66309
66310         * gnulib-tool (func_create_testdir): Warn about duplicated
66311         dependencies.
66312
66313 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66314
66315         * modules/argmatch, modules/fatal, modules/obstack,
66316         modules/xalloc, modules/xgethostname: Sort dependencies by
66317         importance, not alphabetically.
66318
66319 2003-09-15  Paul Eggert  <eggert@twinsun.com>
66320
66321         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
66322         fails, so that the caller gets the proper errno.
66323
66324         * lib/readutmp.c (read_utmp): Likewise.
66325         Check for fstat error.  Close stream and free storage
66326         when failing.
66327
66328 2003-09-14  Karl Berry  <karl@gnu.org>
66329
66330         * config/srclist.txt (strdup.c): disable for c89 changes.
66331
66332 2003-09-14  Jim Meyering  <jim@meyering.net>
66333
66334         * lib/getloadavg.c: Correct cpp indentation.
66335         * lib/strdup.c: Likewise.
66336         * lib/vasnprintf.c: Likewise.
66337
66338 2003-09-14  Bruno Haible  <bruno@clisp.org>
66339
66340         * modules/fwriteerror: New file.
66341         * MODULES.html.sh (func_all_modules): Add fwriteerror.
66342
66343 2003-09-14  Bruno Haible  <bruno@clisp.org>
66344
66345         * lib/fwriteerror.h: New file.
66346         * lib/fwriteerror.c: New file.
66347
66348 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66349
66350         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
66351         modules/xgethostname, modules/xalloc: Depend on exit.
66352
66353 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66354
66355         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
66356
66357         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
66358         and AC_MINIX, too, so that their extensions are available.
66359
66360         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
66361         This macro has been superseded by gl_BACKUPFILE.
66362
66363         More patches to assume C89 or better.
66364
66365         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
66366
66367         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
66368         unconditionally.
66369         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
66370         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
66371         Include <string.h>, <stdlib.h> unconditionally.
66372         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
66373         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
66374         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
66375         headers or for string.h.
66376         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
66377         or strtoul.
66378
66379         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
66380         headers.
66381         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
66382         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66383         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
66384         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
66385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66386         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
66387         memcpy, memset.
66388         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
66389         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
66390         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
66391         strtol.
66392         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
66393         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
66394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
66395         strtoul.
66396
66397 2003-09-12  Paul Eggert  <eggert@twinsun.com>
66398
66399         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
66400         * lib/obstack.c [!defined _LIBC]: Likewise.
66401         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
66402         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
66403         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
66404
66405         More changes to assume C89 or better.
66406
66407         * lib/error.c (error_tail): Assume vprintf.
66408
66409         * lib/argmatch.c (getenv): Remove decl.
66410         * lib/progreloc.c (get_full_program_name): Define via prototype.
66411         * lib/setenv.c (clearenv): Likewise.
66412         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
66413         needed.
66414         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
66415         (malloc, memcpy): Remove decls.
66416         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
66417         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
66418         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66419         (memcpy): Remove macro.
66420         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
66421         (__P): Remove.  All uses removed.
66422         (PTR): Remove.  All uses changed to void *.
66423         (CHAR_BIT, NULL): Remove.
66424         (spaces, zeros, memset_space, memset_zero)
66425         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
66426         Remove.
66427         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
66428         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
66429         Define with prototype.
66430         Remove now-unnecessary prototype decl.
66431         (extra_args_spec): Assume ANSI C.  All uses changed.
66432         (extra_args_spec_iso): Remove.
66433         (my_strftime, emacs_strftimeu): Define via prototype.
66434         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
66435         unconditionally.
66436         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
66437         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
66438         (strtoul, strtol): Remove decls.
66439         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
66440         LONG_MAX): Remove.
66441         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
66442         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
66443         (LOCALE_PARAM_PROTO): New macro.
66444         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
66445         (INTERNAL (strtol), strtol): Define with a prototype.
66446         (PARAMS): Remove.  All uses removed.
66447         * lib/tempname.c: Include <string.h> unconditionally.
66448         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
66449         * lib/xgethostname.c (main): Define with a prototype.
66450         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
66451         Include <stdlib.h> unconditionally.
66452         (calloc, malloc, realloc, free): Remove decls.
66453         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
66454         Include <stdlib.h> unconditionally.  Sort include file names.
66455         (strtod): Remove.
66456         (xstrtod): Define with a prototype.
66457         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
66458         (strtol, strtoul): Remove decls.
66459
66460 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66461
66462         More patches to assume C89 or better.
66463         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
66464         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
66465         string.h, memchr, STDC_HEADERS.
66466
66467 2003-09-11  Paul Eggert  <eggert@twinsun.com>
66468
66469         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
66470         Include <stdlib.h>, <string.h> unconditionally.
66471         Remove now-unnecessary cast to char *.
66472         * lib/strnlen.c: Include <string.h> unconditionally.
66473         * lib/yesno.c (yesno): Define with a prototype.
66474
66475 2003-09-11  Bruno Haible  <bruno@clisp.org>
66476
66477         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
66478
66479 2003-09-10  Jim Meyering  <jim@meyering.net>
66480
66481         * lib/error.c: Correct indentation of cpp directives.
66482
66483 2003-09-10  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
66486         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
66487         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
66488         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
66489         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
66490         <stdlib.h> and <string.h> checks.
66491         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
66492         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
66493
66494 2003-09-10  Bruno Haible  <bruno@clisp.org>
66495
66496         * lib/strcspn.c: Include <string.h> unconditionally.
66497         * lib/strpbrk.c: Include <string.h> unconditionally.
66498         * lib/strstr.c: Include <string.h> unconditionally.
66499         * lib/unicodeio.c: Include <string.h> unconditionally.
66500         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
66501         * lib/unsetenv.c: Likewise.
66502         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
66503         * lib/yesno.c: Include <stdlib.h> unconditionally.
66504         (rpmatch): Add prototype.
66505
66506 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66507
66508         More patches to assume C89 or better.
66509         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
66510         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
66511         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
66512         or for string.h.
66513         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
66514         stdlib.h.
66515         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
66516         C headers.
66517         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
66518         string.h.
66519         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
66520         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
66521         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
66522         or for string.h.
66523         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
66524         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
66525         C headers.
66526         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
66527         memcpy.
66528         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
66529         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
66530         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
66531         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
66532         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
66533         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
66534         string.h, free.
66535         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
66536         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
66537         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
66538         C headers, or for string.h.
66539         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
66540         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
66541         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
66542         headers, memory.h, stdlib.h, string.h, strings.h.
66543         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
66544         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
66545         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
66546         strchr.
66547         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
66548         headers, memory.h, string.h.
66549         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
66550         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
66551         free.
66552         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
66553         headers.
66554         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
66555         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
66556         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
66557         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
66558         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
66559
66560 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66561
66562         More K&R removal.
66563
66564         * lib/acosl.c (main): Use a prototype.
66565         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
66566         tanl.c: Likewise.
66567
66568         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
66569
66570         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
66571         (getopt, etopt_long, getopt_long_only, _getopt_internal)
66572         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
66573         with a prototype.
66574         * lib/getopt.c (const): Remove macro.
66575         Include <string.h> unconditionally.
66576         (my_index): Remove; all uses changed to strchr.
66577         (strlen): Remove decl.
66578         (exchange): Remove forward decl; no longer needed.
66579         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
66580         Define with prototype.
66581         * lib/getopt1.c (const): Remove macro.
66582         (getopt_long, getopt_long_only, main): Define with prototype.
66583
66584         * lib/getugroups.c: Include <string.h> unconditionally.
66585
66586         * lib/getusershell.c: Include <stdlib.h> unconditionally.
66587         (getusershell, setusershell, endusershell, readname, main):
66588         Define with prototypes.
66589
66590         * lib/group-member.c: Include group-member.h first.
66591         Include <stdlib.h> unconditionally.
66592
66593         * lib/hard-locale.c: Include hard-locale.h first.
66594         Include <stdlib.h>, <string.h> unconditionally.
66595
66596         * lib/hash.c (free, malloc): Remove decls.
66597         Include <stdlib.h> unconditionally.
66598
66599         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
66600         (getenv): Do not declare.
66601
66602         * lib/idcache.c: Include <string.h> unconditionally.
66603
66604         * lib/long-options.c: Include long-options.h first, to test interface.
66605         Include <stdlib.h> unconditionally.
66606
66607         * lib/makepath.c: Include makepath.h first, to test interface.
66608         Include <stdlib.h> and <string.h> unconditionally.
66609
66610         * lib/linebuffer.c: Include <stdlib.h>.
66611         (free): Remove decl.
66612
66613         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
66614         stddef.h. rpl_malloc returns void *, not char *.
66615         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
66616         prototype.
66617
66618         * lib/md5.h: Include <limits.h> unconditionally.
66619         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
66620         (__P): Remove; all uses removed.
66621         * lib/md5.c: Include "md5.h" first.
66622         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
66623         md5_buffer, md5_process_bytes, md5_process_block):
66624         Define with prototypes.
66625         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
66626         * lib/sha.c: Include "sha.h" first.
66627         Include <stdlib.h>, <string.h> unconditionally.
66628
66629         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
66630         * lib/memcmp.c (__ptr_t): Likewise.
66631         * lib/memrchr.c (__ptr_t): Likewise.
66632         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
66633         Include <string.h> unconditionally.
66634         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
66635         * lib/memchr.c: Include <stdlib.h> unconditionally.
66636         * lib/memchr.c (LONG_MAX): Remove.
66637         * lib/memrchr.c (LONG_MAX): Likewise.
66638         * lib/memchr.c (__memchr): Define via a prototype.
66639         * lib/memrchr.c (__memrchr): Likewise.
66640         * lib/memcmp.c (__P): Remove, and remove all uses.
66641         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
66642         Remove forward decls; no longer needed.
66643         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
66644         Use types required by C89 in prototype.
66645
66646         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
66647         * lib/savedir.c: Likewise.
66648         * lib/mkdir.c (free): Remove decl.
66649         * lib/rmdir.c (rmdir): Define with a prototype.
66650         * lib/savedir.c: Include savedir.h first, to test interface.
66651
66652         * lib/mktime.c (STDC_HEADERS): Remove.
66653         Include <stdlib.h>, <string.h> unconditionally.
66654
66655         * lib/modechange.c: Include <stdlib.h> unconditionally.
66656         (malloc): Remove decl.
66657
66658         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
66659         (free): Remove decl.
66660
66661         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
66662         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
66663         (This type really should be intptr_t, but that's a C99ism.)
66664         (_obstack_memcpy): Remove: all uses changed to memcpy.
66665         Include <string.h> unconditionally.
66666         (struct obstack): Assume __STDC__ for types of members
66667         chunkfun, freefun, extra_arg.
66668         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
66669         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
66670         obstack_begin, obstack_specify_allocation,
66671         obstack_specify_allocation_with_arg, obstack_chunkfun,
66672         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
66673         Remove unprototyped decls and the macros that use them.
66674         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
66675         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
66676         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
66677         (defined __STDC__ && __STDC__)]:
66678         Remove nonprototyped code.
66679         Include <stdlib.h> unconditionally.
66680         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
66681         _obstack_allocated_p, _obstack_free, obstack_free,
66682         _obstack_memory_used, print_and_abort):
66683         Define using prototypes.
66684         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
66685         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
66686         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
66687         obstack_next_free, obstack_object_size, obstack_room) [0]:
66688         Remove unused, unprototyped code.
66689
66690         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
66691
66692         * lib/physmem.c (physmem_total, physmem_available, main): Define
66693         with prototypes.
66694
66695         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
66696         (main): Define with a prototype.
66697
66698         * lib/posixver.c (getenv): Remove decl.
66699
66700         * lib/putenv.c (malloc): Returns void *, not char *.
66701         Include <string.h> unconditionally.
66702         (strchr, memcpy, NULL): Do not define.
66703
66704         * lib/readtokens.c: Include readtokens.h first, to test interface.
66705         Include <stdlib.h>, <string.h> unconditionally.
66706         (init_tokenbuffer): Define with a prototype.
66707
66708         * lib/regex.c (PARAMS): Remove.  All uses removed.
66709         All uses of _RE_ARGS removed, too.
66710         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
66711         unconditionally.
66712         (bzero): Assume memset exists.
66713         (memcmp, memcpy, NULL): Remove.
66714         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
66715         char, or assignments to local vars of type signed char.
66716         (init_syntax_once, PREFIX(extract_number_and_incr),
66717         PREFIX(print_partial_compiled_pattern),
66718         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
66719         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
66720         PREFIX(regex_grow_registers), PREFIX(regex_compile),
66721         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
66722         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
66723         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
66724         wcs_compile_range, byte_compile_range, truncate_wchar,
66725         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
66726         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
66727         count_mbs_length, wcs_re_match_2_internal,
66728         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
66729         PREFIX(alt_match_null_string_p),
66730         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
66731         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
66732         regfree, PREFIX(extract_number)): Define with prototype.  Remove
66733         now-unnecessary declaration, if any.
66734         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
66735         regcomp, regexec):
66736         Remove now-unnecessary casts among pointer types.
66737         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
66738
66739         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
66740         (free): Remove decl.
66741
66742         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
66743
66744         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
66745         (free): Remove decl.
66746
66747         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
66748         * lib/xgetcwd.c: Likewise.
66749
66750         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
66751         (free): Remove decl.
66752
66753         * lib/strchrnul.c (strchrnul): Define with a prototype.
66754         Fix bug: c_in was not converted to char before searching.
66755
66756         The following changes are not K&R related:
66757
66758         * lib/group-member.h: Include <sys/types.h>, so that this file is
66759         self-contained.
66760         * lib/makepath.h: Likewise.
66761
66762         * lib/getusershell.c (readname, default_index, line_size, readname):
66763         Use size_t, not int, for sizes.
66764         (readname): If the size overflows, report an error instead of
66765         looping forever.
66766
66767 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66768
66769         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
66770         libc.
66771
66772 2003-09-09  Paul Eggert  <eggert@twinsun.com>
66773
66774         * README: New section: portability guidelines.
66775
66776 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66777
66778         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
66779         C89 spec.
66780
66781 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
66782
66783         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
66784
66785 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66786
66787         Assume C89 or better; remove K&R cruft.
66788         A few of these changes were first proposed by Derek Robert Price
66789         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
66790
66791         * lib/addext.c: Include <string.h> unconditionally.
66792         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
66793         Don't declare getenv or malloc.
66794
66795         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
66796         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
66797         (NULL): Remove.
66798         (find_stack_direction, alloca): Use prototypes.
66799
66800         * lib/atexit.c (atexit): Define using a prototype.
66801
66802         * lib/basename.c, dirname.c, stripslash.c:
66803         Include <string.h> unconditionally.
66804
66805         * lib/bcopy.c: Include <stddef.h>.
66806         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
66807
66808         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
66809
66810         * lib/error.h (error, error_at_line, error_print_progname)
66811         [! (defined (__STDC__) && __STDC__)]: Remove decls.
66812         * lib/error.c: Include error.h first, to check interface.
66813         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66814         (VA_START): Remove; all uses changeed to va_start.
66815         (exit, strerror): Remove decls.
66816         (error_print_progname): Prototype uncondionally.
66817         Don't include <errno.h>; no longer needed.
66818         (private_strerror): Remove.
66819         (error_tail): Always define.
66820         (error, error_at_line): Assume C89 or better; always use prototypes.
66821         * lib/fatal.c: Include "fatal.h" first, to test interface.
66822         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
66823         (VA_START): Remove; all uses changed to va_start.
66824         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
66825         this case.
66826         (exit): Remove decl.
66827         (fatal): Prototype unconditionally.  Assume va_start works.
66828         Abort at end, to pacify gcc.
66829
66830         * lib/euidaccess.c (main): Define with a prototype.
66831
66832         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
66833
66834         * lib/exitfail.c: Include <stdlib.h> unconditionally.
66835
66836         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
66837         prototypes.
66838         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
66839         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
66840         (getenv): Remove decl.
66841         (fnmatch): Define using a prototype.
66842         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
66843         (FCT): Define using a prototype.
66844
66845         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
66846
66847         * lib/gethostname.c: Include <stddef.h>.
66848         (gethostname): Define with prototype.  Length is size_t, not int.
66849
66850 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66851
66852         Assume C89 or better; remove K&R cruft.
66853         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
66854         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
66855         string.h, getenv, malloc.
66856         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
66857         headers.
66858         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
66859         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
66860         do not check for strerror.
66861         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
66862         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
66863         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
66864         do not check for doprnt or vprintf.
66865         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
66866         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
66867
66868 2003-09-08  Paul Eggert  <eggert@twinsun.com>
66869
66870         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
66871         getversion.c should have been removed then, but was accidentally
66872         preserved.
66873
66874         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
66875         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
66876
66877 2003-09-08  Karl Berry  <karl@gnu.org>
66878
66879         * config/config.sub, config.guess, srclistvars.sh: update from savannah
66880                 config, forget about prep.
66881
66882         * config/depcomp, missing: update from automake.
66883
66884 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66885
66886         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
66887         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66888
66889 2003-09-07  Paul Eggert  <eggert@twinsun.com>
66890
66891         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
66892         copy_tm_result.  Bug reported by Simon Josefsson in
66893         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
66894
66895 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66896
66897         * m4/time_r.m4: New file.
66898         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
66899         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
66900         is. Check for timegm declaration.
66901         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
66902         Do not check for gmtime_r.
66903         Replace mktime if __mktime_internal does not exist and if mktime
66904         hasn't been replaced already.
66905
66906 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66907
66908         * lib/time_r.c, lib/time_r.h: New files.
66909
66910         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
66911         __localtime_r.
66912         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
66913         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
66914
66915         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
66916         __gmtime_r.
66917         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
66918         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
66919         Include <time_r.h>.
66920
66921         * lib/timegm.c: Switch to glibc implementation, with the following
66922         changes:
66923         [defined HAVE_CONFIG_H]: Include <config.h>.
66924         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
66925         (__mktime_internal) [!defined _LIBC]: New decl.
66926         (__gmtime_r) [!defined _LIBC]: New macro and function.
66927         (timegm): Use a prototype, since gnulib assumes C89.
66928         Do not bother declaring tmp to be const, as it's not really usefu.
66929         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
66930         (timegm): Declare only if HAVE_DECL_TIMEGM.
66931
66932 2003-09-06  Paul Eggert  <eggert@twinsun.com>
66933
66934         * MODULES.html.sh (func_all_modules): Add time_r.
66935         * modules/time_r: New file.
66936         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
66937         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
66938
66939 2003-09-03  Paul Eggert  <eggert@twinsun.com>
66940
66941         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
66942         Bug reported by Lute Kamstra in
66943         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
66944
66945         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
66946         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
66947         course with correspondingly smaller numbers for tomorrow and
66948         yesterday.  From Tadayoshi Funaba.  Originally installed into
66949         sh-utils on 1999-08-07, but the patch got lost (I guess during the
66950         coreutils merge?).
66951
66952 2003-08-31  Simon Josefsson  <jas@extundo.com>
66953
66954         * modules/timegm: New file.
66955         * MODULES.html.sh (func_all_modules): Add timegm.
66956
66957 2003-08-31  Simon Josefsson  <jas@extundo.com>
66958
66959         * m4/timegm.m4: New file.
66960
66961 2003-08-31  Simon Josefsson  <jas@extundo.com>
66962
66963         * lib/timegm.h: New file.
66964         * lib/timegm.c: New file.  Based on
66965         wget-1.8.2/src/http.c:mktime_from_utc.
66966
66967 2003-08-31  Karl Berry  <karl@gnu.org>
66968
66969         * lib/argp.h: update from libc.
66970
66971 2003-08-28  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
66974         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
66975         followed by '#define fnmatch fnmatch_posix' gives an error.
66976
66977 2003-08-28  Bruno Haible  <bruno@clisp.org>
66978
66979         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
66980         warning on QNX, which defines O_BINARY to 000000.
66981
66982 2003-08-27  Jim Meyering  <jim@meyering.net>
66983
66984         * m4/mkstemp.m4: Require that the system mkstemp be able to create
66985         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
66986         would fail after 32.  Reported by Danny Levinson.  Details here:
66987         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
66988
66989 2003-08-24  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
66992         MSVC7 <stdio.h> is included later.
66993
66994 2003-08-22  Simon Josefsson  <jas@extundo.com>
66995
66996         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
66997
66998 2003-08-20  Karl Berry  <karl@gnu.org>
66999
67000         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
67001
67002 2003-08-20  Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/progname: New file.
67005         * MODULES.html.sh (func_all_modules): Add progname.
67006
67007 2003-08-20  Bruno Haible  <bruno@clisp.org>
67008
67009         * lib/progname.h: New file, from GNU gettext.
67010         * lib/progname.c: New file, from GNU gettext.
67011         * lib/progreloc.c: New file, from GNU gettext.
67012
67013 2003-08-19  Jim Meyering  <jim@meyering.net>
67014
67015         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
67016         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
67017
67018 2003-08-19  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
67021         more.
67022
67023 2003-08-19  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/xstrdup.c: Assume <string.h> exists.
67026
67027 2003-08-18  Paul Eggert  <eggert@twinsun.com>
67028
67029         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
67030         in makefile rules.
67031
67032 2003-08-18  Jim Meyering  <jim@meyering.net>
67033
67034         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
67035         * m4/lib-ld.m4: Likewise.
67036
67037 2003-08-18  Jim Meyering  <jim@meyering.net>
67038
67039         * lib/setenv.h: Indent nested cpp directive.
67040         * lib/vasnprintf.c: Remove trailing blanks.
67041
67042 2003-08-17  Simon Josefsson  <jas@extundo.com>
67043
67044         * modules/xstrndup: New file.
67045         * MODULES.html.sh (func_all_modules): Add xstrndup.
67046
67047 2003-08-17  Simon Josefsson  <jas@extundo.com>
67048
67049         * modules/argp: Fix autoconf macro name. Add more dependencies.
67050
67051 2003-08-17  Simon Josefsson  <jas@extundo.com>
67052
67053         * m4/xstrndup.m4: New file.
67054
67055 2003-08-17  Simon Josefsson  <jas@extundo.com>
67056
67057         * m4/argp.m4: New file.
67058
67059 2003-08-17  Simon Josefsson  <jas@extundo.com>
67060             Bruno Haible  <bruno@clisp.org>
67061
67062         * lib/xstrndup.h: New file.
67063         * lib/xstrndup.c: New file.
67064
67065 2003-08-17  Bruno Haible  <bruno@clisp.org>
67066
67067         * modules/strndup (Files, Include): Add lib/strndup.h.
67068
67069 2003-08-17  Bruno Haible  <bruno@clisp.org>
67070
67071         * modules/euidaccess (Files): Add lib/euidaccess.h.
67072
67073 2003-08-17  Bruno Haible  <bruno@clisp.org>
67074
67075         * lib/strndup.h: New file.
67076
67077 2003-08-17  Bruno Haible  <bruno@clisp.org>
67078
67079         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
67080         like AC_GNU_SOURCE.
67081         * modules/extensions (configure.ac): Comment out the invocation of
67082         gl_USE_SYSTEM_EXTENSIONS.
67083
67084 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67085
67086         Merges from coreutils, etc.
67087         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
67088         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
67089         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
67090         fixing a typo.
67091         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
67092         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
67093
67094 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67095
67096         Document merge from coreutils.
67097         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
67098         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
67099         * modules/utime: Add m4/utimes-null.m4.
67100
67101 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67102
67103         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
67104         space, undoing this 2003-08-12 change:
67105         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67106
67107 2003-08-16  Paul Eggert  <eggert@twinsun.com>
67108
67109         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
67110         strtoul.c from libc, undoing this 2003-08-12 change:
67111         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
67112
67113 2003-08-16  Jim Meyering  <jim@meyering.net>
67114
67115         Merges from coreutils.
67116         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
67117         prefix.  Adjust cache variables similarly.  Create 500 rather than
67118         just 300 files, to exercise bug on Darwin6.5, too.
67119         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
67120         $missing_dir.
67121         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
67122         AM_SYS_POSIX_TERMIOS.
67123         Reported by mkc@mathdogs.com.
67124         Also change use of $am_cv_sys_posix_termios
67125         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
67126         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
67127         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
67128         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
67129         in /proc/mounts until it finds one with matching device number.  This
67130         is unnecessary when the FILE argument *is* a mount point.  No stat call
67131         is necessary in that case.  So, disable the statvfs-testing code on
67132         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
67133         as RedHat bug# 84846.
67134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67135         to 1MB, so as not to render systems with no stack size limit (e.g.,
67136         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67137         Include <unistd.h>.  On some systems,
67138         it is required for the definition of _SC_PAGESIZE.
67139
67140 2003-08-16  Jim Meyering  <jim@meyering.net>
67141
67142         Merge from coreutils.
67143         * lib/xstrtoimax.c: #else #if -> #elif.
67144         * lib/xstrtoumax.c: Likewise.
67145
67146 2003-08-16  Jim Meyering  <jim@meyering.net>
67147
67148         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
67149         * m4/utimes.m4: Removed.
67150         * m4/utimes-null.m4: Renamed from utimes.m4.
67151
67152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
67153         to 1MB, so as not to render systems with no stack size limit (e.g.,
67154         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
67155         Include <unistd.h>.  On some systems,
67156         it is required for the definition of _SC_PAGESIZE.
67157
67158 2003-08-16  Jim Meyering  <jim@meyering.net>
67159         and Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         Merges from coreutils, etc.
67162
67163         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
67164         using the latest version from cvs.  This avoids problems with #line
67165         directives using a vendor (Sun) compiler.
67166         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
67167         Don't set GETGROUPS_LIB here; now it's
67168         done via getgroups.m4's wrapper function.
67169         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
67170         rather than just in sh-util/configure.in, so that the
67171         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
67172         same.
67173         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
67174         AC_FUNC_GETLOADAVG where to find getloadavg.c.
67175         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
67176         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
67177         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
67178         Remove code that is now done by the newly-required macros.
67179         Append $(EXEEXT) to DF_PROG.
67180         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
67181         Do not invoke or require the following here,
67182         since prereq.m4 or some gnulib .m4 now does this for us:
67183         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
67184         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
67185         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
67186         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
67187         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
67188         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
67189         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
67190         AC_FUNC_OBSTACK.
67191         Do not replace the following functions, as this is now the job
67192         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
67193         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
67194         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
67195         atexit getpass, strdup, getpagesize.
67196         Replace 'raise'.
67197         Do not check for the following functions, as this is now the job
67198         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
67199         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
67200         setregid.
67201         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
67202         Check for sys/sysctl.h.
67203         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
67204         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
67205         of checking for ssize_t ourselves.
67206
67207         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
67208         Require every macro that gnulib/modules/* suggests for us.
67209         (jm_PREREQ_ADDEXT): New macro.
67210         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
67211         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
67212
67213         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
67214         (gl_PHYSMEM): Use it.
67215         Also check for `table' function.
67216         Check for new headers and functions.
67217         Add check for sys/sysmp.h.
67218         With suggestions from Kaveh Ghazi.
67219         Ignore headers that are present but cannot be compiled.  This
67220         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
67221         C 5.4.
67222
67223 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67224
67225         Document merge from coreutils.
67226         * modules/userspec: Depend on posixver.
67227         * modules/strftime: Depend on tzset.
67228
67229 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67230
67231         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
67232         rather than tab, after '#' in shell-script copyright notices.
67233         Suggested by Bruno Haible.
67234
67235 2003-08-15  Paul Eggert  <eggert@twinsun.com>
67236
67237         * config/srclist-update: Use three spaces, rather than tab, after '#'
67238         in shell-script copyright notices.  Suggested by Bruno Haible.
67239         Remove unnecessary parenthesization in regular expression.
67240
67241 2003-08-15  Jim Meyering  <jim@meyering.net>
67242
67243         Merge from coreutils.
67244         * lib/xgethostname.c: Include <stdlib.h>.
67245         (xghostname): Don't exit for anything other than memory-related
67246         failure; just return NULL.
67247         * lib/userspec.c: Include "posixver.h".
67248         (parse_user_spec): Accept `.' as a separator only
67249         in pre-POSIX-200112 mode.
67250         * lib/strtoimax.c: Use #elif rather than #else #if.
67251         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
67252         Remove function, now that we can rely on a working tzset function.
67253         [!_LIBC]: Ensure that the required autoconf test has been run.
67254         [!defined _NL_CURRENT && HAVE_STRFTIME]:
67255         Use underlying_strftime for %r.
67256         * lib/sha.c: Merge in some clean-up and optimization changes from
67257         glibc.
67258         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
67259         Ensure that it is a multiple of 64.
67260         Rearrange loop exit tests so as to avoid performing an
67261         additional fread after encountering an error or EOF.
67262         * lib/realloc.c: Update copyright date.
67263
67264 2003-08-15  Jim Meyering  <jim@meyering.net>
67265         and Paul Eggert  <eggert@twinsun.com>
67266
67267         Merge from coreutils.
67268         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
67269         member but strut utmpx does not.  Needed for AIX 4.3.3.
67270         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
67271
67272 2003-08-15  Jim Meyering  <jim@meyering.net>
67273         and Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         Merges from coreutils, etc.
67276         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
67277         Require gl_FUNC_TZSET_CLOBBER.
67278         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
67279         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
67280         members.
67281
67282 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67283
67284         Help the merge from coreutils.
67285         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
67286         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
67287         * m4/tzset.m4: Use it too.
67288
67289 2003-08-14  Paul Eggert  <eggert@twinsun.com>
67290
67291         * modules/tzset: New file.
67292
67293 2003-08-14  Jim Meyering  <jim@meyering.net>
67294
67295         Merges from coreutils.
67296         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
67297         variable names, rather than @FNMATCH_H@.
67298         * modules/alloca: Likewise for $(ALLOCA_H).
67299
67300         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
67301         the three copies of the literal target, `fnmatch.h'.
67302         * modules/alloca (alloca.h): Likewise.
67303
67304 2003-08-14  Jim Meyering  <jim@meyering.net>
67305
67306         Merge from coreutils.
67307         * m4/tzset.m4: New file.
67308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
67309         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
67310         otherwise, AIX 5.1 systems would end up using the latter.
67311         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
67312         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
67313         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
67314         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
67315
67316 2003-08-14  Jim Meyering  <jim@meyering.net>
67317
67318         Merge from coreutils.
67319         * lib/obstack.h: Whitespace changes.
67320         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
67321         and xcalloc return values.
67322         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
67323         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
67324         hang on OSF/1 5.1 for DIR on both local and remote file systems.
67325         Reported by (and fix confirmed by) Nelson H. F. Beebe.
67326         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67327         error from mntctl.
67328         Use mntctl's return value to drive the entry-processing loop, since
67329         we can't rely on the value of the vmt_length member in the last
67330         entry.  On some systems doing so could result in exhausting
67331         virtual memory.  Based in part on a patch from Mike Jetzer.
67332
67333 2003-08-14  Jim Meyering  <jim@meyering.net>
67334         and Paul Eggert  <eggert@twinsun.com>
67335
67336         Merges from coreutils, plus other fixes.
67337         * lib/physmem.c: Merge in portability changes from gcc/libiberty
67338         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
67339         for credits and details.  Thanks to Kaveh Ghazi for helping
67340         to keep these files in sync.
67341         (ARRAY_SIZE): Define it.
67342         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
67343         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
67344         (memcasecmp): Don't assume size_t fits in unsigned int.
67345         Remove casts and duplicate code.
67346         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
67347         (memcpy): Remove definition.
67348         Merge in some clean-up and optimization changes from glibc.
67349         [BLOCKSIZE]: Move definition to top of file.
67350         Ensure that it is a multiple of 64.
67351         Rearrange loop exit tests so as to avoid performing an
67352         additional fread after encountering an error or EOF.
67353         * lib/md5.h (md5_uintptr): Define.
67354         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
67355         return to the initial working directory.  Preserve errno
67356         for caller.
67357         * lib/idcache.c: Include "xalloc.h".
67358         (xmalloc, xrealloc): Remove decls.
67359         (getuser): Remove casts no longer required in C89.
67360         * lib/human.c: Include stdio.h, for sprintf.
67361         * lib/group-member.c: Include "xalloc.h".
67362         (xmalloc, xrealloc): Remove decls.
67363         (get_group_info): Remove casts no longer required in C89.
67364         * lib/getusershell.c (readname): Remove casts no longer required in
67365         C89.
67366         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
67367         * lib/getline.c: Whitespace fix, from coreutils.
67368
67369 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67370
67371         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
67372         Check for isascii.
67373
67374         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67375         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67376         Undo previous (whitespace-only) change.
67377
67378 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67379
67380         * lib/exclude.c: Include <ctype.h>
67381         (IN_CTYPE_DOMAIN): New macro.
67382         (is_space): New fn.
67383         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
67384         and empty lines.
67385
67386         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67387         Undo previous (whitespace-only) change.
67388
67389 2003-08-13  Paul Eggert  <eggert@twinsun.com>
67390
67391         * config/srclist-update: Change update back to the old behavior,
67392         leaving whitespace alone.  Use one 'sed' command rather than a
67393         pipeline.
67394         (fixlicense): Now a variable, not a function.
67395         (remove_trailing_blanks): Remove.
67396         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
67397         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67398         Undo previous (whitespace-only) change.
67399
67400 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67401
67402         Merge from coreutils.
67403         * modules/euidaccess: Add lib_SOURCES, include for new
67404         file euidaccess.h
67405
67406 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67407
67408         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
67409         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
67410         Normalize leading white space and remove trailing white space.
67411
67412         Merge from coreutils
67413         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
67414
67415         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
67416         0.12.1.  These files are now being upgraded automatically by
67417         ../config/srclist-update.
67418
67419 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67420
67421         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
67422         Normalize leading white space and remove trailing white space.
67423         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
67424         notice, as per ../config/srclist-update.
67425
67426         Merge from coreutils.
67427         * lib/euidaccess.h: New file.
67428         * lib/euidaccess.c: Include it.
67429         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
67430         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
67431         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
67432
67433 2003-08-12  Paul Eggert  <eggert@twinsun.com>
67434
67435         * config/srclist-update: Add copyright notice.
67436         (remove_id_lines, remove_trailing_blanks): New constants.
67437         (fixfile): Use them to normalize spacing a bit in copied files.
67438         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
67439         Normalize leading white space and remove trailing white space.
67440
67441         * config/texinfo.tex: Sync with texinfo.
67442
67443         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
67444         strtoul.c from libc, to merge coreutils whitespace changes.
67445
67446         * config/srclist.txt: Get the following m4 files from gettext:
67447         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
67448         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
67449         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
67450         wint_t.m4.
67451
67452 2003-08-12  Karl Berry  <karl@gnu.org>
67453
67454         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
67455         been made.
67456
67457 2003-08-11  Paul Eggert  <eggert@twinsun.com>
67458
67459         * modules/gnu-source, m4/gnu-source.m4:
67460         Remove; we're assuming Autoconf 2.54 or later now.
67461         Suggested by Bruno Haible.
67462         * MODULES.html.sh (func_all_modules): Remove gnu-source.
67463
67464 2003-08-11  Bruno Haible  <bruno@clisp.org>
67465
67466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
67467
67468 2003-08-11  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
67471         (vasnprintf): Use it instead of wcslen.
67472
67473 2003-08-11  Bruno Haible  <bruno@clisp.org>
67474
67475         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
67476         value to ensure that _Bool promotes to int. Use #define for _Bool when
67477         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
67478
67479 2003-08-10  Karl Berry  <karl@gnu.org>
67480
67481         * lib/regex.h: update from libc (whitespace fix).
67482
67483 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67484
67485         Merge some files from coreutils.  These changes were
67486         originally made by Jim Meyering.
67487         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
67488         many older Unixes require this.
67489         * lib/alloca.c (alloca): Remove cast to argument of free;
67490         no longer needed in C89.
67491         * lib/alloca_.h, regex.h: Fix white space to match
67492         what GNU indent does.
67493
67494 2003-08-09  Paul Eggert  <eggert@twinsun.com>
67495
67496         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
67497         apparently Emacs's Unicode mode got confused before my 2003-08-05
67498         checkin.
67499
67500 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67501
67502         * m4/extensions.m4: New file.
67503         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
67504         Require gl_USE_SYSTEM_EXTENSIONS.
67505         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
67506         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
67507
67508 2003-08-08  Paul Eggert  <eggert@twinsun.com>
67509
67510         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
67511         * modules/extensions, modules/gnu-source: New files.
67512         * modules/timespec, modules/unlocked-io: Depend on extensions.
67513
67514 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67515
67516         * modules/restrict: New file.
67517         * MODULES.html.sh (func_all_modules): Add restrict.
67518         * modules/regex: Depend on restrict.
67519
67520 2003-08-07  Paul Eggert  <eggert@twinsun.com>
67521
67522         * m4/restrict.m4: New file.
67523         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
67524
67525 2003-08-07  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
67528         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
67529
67530 2003-08-07  Bruno Haible  <bruno@clisp.org>
67531
67532         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
67533         makes the module 'getndelim2' compatible with the module 'getline'.
67534
67535 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67536
67537         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
67538         byte with "\201" to avoid glitches when editing that source file
67539         with multi-gnome-terminal.
67540
67541 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67542
67543         * lib/bumpalloc.h: Remove.
67544
67545 2003-08-05  Paul Eggert  <eggert@twinsun.com>
67546
67547         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
67548         * modules/bumpalloc: Remove.
67549
67550 2003-08-04  Paul Eggert  <eggert@twinsun.com>
67551
67552         * lib/getloadavg.c: Change copyright notice and spacing to conform to
67553         GNU coding style.
67554
67555         Merge from coreutils.
67556         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
67557         1. From glibc.
67558         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
67559         from Karl Berry, implemented by Jim Meyering.
67560         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
67561         from Dmitry V. Levin.
67562         Remove anachronistic cast of xrealloc.
67563         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
67564         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
67565         type. Otherwise, it wouldn't compile with at least /bin/cc on
67566         ymp-cray-unicos9.0.2.X.
67567         Combine two mostly-identical uses of alloca into one.
67568         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
67569
67570 2003-08-04  Dave Love  <d.love@dl.ac.uk>
67571
67572         [From Emacs.]
67573
67574         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
67575         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
67576         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
67577         obsolete NLIST_NAME_UNION.
67578         [__GNU__]: Undef BSD and FSCALE.
67579         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
67580
67581 2003-08-03  Paul Eggert  <eggert@twinsun.com>
67582
67583         * lib/stdbool_.h (_Bool): Make it signed char, instead of
67584         an enum type, so that it's guaranteed to promote to int.  See:
67585         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
67586
67587 2003-08-03  Karl Berry  <karl@gnu.org>
67588
67589         * config/depcomp: update from automake.
67590
67591 2003-07-31  Paul Eggert  <eggert@twinsun.com>
67592
67593         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
67594         (strerror): Don't assume that a printable int fits in 14 bytes.
67595
67596 2003-07-31  Bruno Haible  <bruno@clisp.org>
67597
67598         * modules/getpass-gnu: New file.
67599         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
67600
67601 2003-07-31  Bruno Haible  <bruno@clisp.org>
67602
67603         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
67604
67605 2003-07-24  Karl Berry  <karl@gnu.org>
67606
67607         * config/missing: update from automake.
67608
67609 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
67610             Bruno Haible  <bruno@clisp.org>
67611
67612         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
67613         * lib/getline.c (getline, getdelim): Likewise.
67614         Remove _GNU_SOURCE define; now it's defined in config.h through
67615         m4/getline.m4.
67616
67617 2003-07-23  Karl Berry  <karl@gnu.org>
67618
67619         * config/config.sub: update from prep.
67620
67621 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67622
67623         * modules/xalloc (Depends-on): Add exitfail.
67624         * modules/xmemcoll: Likewise.
67625
67626 2003-07-22  Paul Eggert  <eggert@twinsun.com>
67627
67628         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
67629         over-parenthesization in macros.
67630
67631         Sync with coreutils.
67632
67633         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
67634         required by C99.
67635
67636         Use `exit_failure' for xalloc and xmemcoll instead of their own
67637         private exit-failure variables.
67638         * lib/xalloc.h (xalloc_exit_failure): Remove.
67639         * lib/xmalloc.c: Likewise.  Include exitfail.h.
67640         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
67641         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
67642         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
67643         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
67644
67645 2003-07-20  Jim Meyering  <jim@meyering.net>
67646
67647         * modules/closeout (Depends-on): Add exitfail.
67648         Suggestion from Bruno Haible.
67649
67650 2003-07-19  Karl Berry  <karl@gnu.org>
67651
67652         * config/config.sub: update from prep.
67653
67654 2003-07-18  Paul Eggert  <eggert@twinsun.com>
67655
67656         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
67657         Remove.
67658         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
67659         to test that it can stand by itself.  Include "exitfail.h".
67660         Clients should set exit_failure instead.
67661         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
67662
67663 2003-07-18  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/getndelim2: New file.
67666         * modules/getline: Share files with module getndelim2.
67667         * modules/getnline: Depend on getndelim2 instead of sharing files with
67668         it. Add getnline.c to lib_SOURCES.
67669         * MODULES.html.sh (func_all_modules): Add getndelim2.
67670
67671 2003-07-18  Bruno Haible  <bruno@clisp.org>
67672
67673         * m4/getndelim2.m4: New file.
67674         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
67675         invoke gl_PREREQ_GETNDELIM2.
67676         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
67677         gl_PREREQ_GETNDELIM2.
67678         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
67679         gl_GETNDELIM2.
67680
67681 2003-07-18  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/getndelim2.h: New file.
67684         * lib/getndelim2.c: Make into a module of its own. Include config.h,
67685         getndelim2.h.
67686         (getndelim2): Make non-static. Change return type to ssize_t.
67687         * lib/getline.h: Change argument names.
67688         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
67689         * lib/getnline.c: Include getndelim2.h.
67690
67691 2003-07-18  Andreas Schwab  <schwab@suse.de>
67692
67693         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
67694
67695 2003-07-17  Karl Berry  <karl@gnu.org>
67696
67697         * config/config.sub: update from prep.
67698
67699 2003-07-17  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/getnline: New file.
67702         * modules/getline: Add lib/getndelim2.c to source file list.
67703         * MODULES.html.sh (func_all_modules): Add getnline.
67704
67705 2003-07-17  Bruno Haible  <bruno@clisp.org>
67706
67707         * m4/getnline.m4: New file.
67708
67709 2003-07-17  Bruno Haible  <bruno@clisp.org>
67710
67711         * m4/Makefile.am.in: Remove file.
67712         * m4/Makefile.am: Remove file.
67713         * m4/Makefile.in: Remove file.
67714
67715 2003-07-17  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/getnline.h: New file.
67718         * lib/getnline.c: New file.
67719         * lib/getndelim2.c: New file, extracted from getline.c.
67720         (getndelim2): Renamed from getdelim2, with added nmax argument.
67721         * lib/getline.c: Include getndelim2.c.
67722         (getdelim2): Moved out to getndelim2.c.
67723         (getline, getdelim): Update.
67724
67725 2003-07-17  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/Makefile.am: Remove file.
67728         * lib/Makefile.in: Remove file.
67729
67730 2003-07-17  Bruno Haible  <bruno@clisp.org>
67731
67732         * configure.in: Remove file.
67733         * Makefile.in: Remove file.
67734
67735 2003-07-17  Bruno Haible  <bruno@clisp.org>
67736
67737         * MODULES.html.sh: Put the </BODY> right before </HTML>.
67738
67739 2003-07-16  Karl Berry  <karl@gnu.org>
67740
67741         * config/srclist-update: was running fixlicense twice, which caused
67742                 texinfo.tex to be nullified for some reason.  Simplify,
67743                 $gplsrc is no longer needed as far as I can see?
67744
67745 2003-07-16  Jim Meyering  <jim@meyering.net>
67746
67747         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
67748
67749 2003-07-15  Paul Eggert  <eggert@twinsun.com>
67750
67751         * config/srclist.txt: Get the following files from gettext-runtime/intl
67752         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
67753         ref-del.sin.  From Bruno Haible.
67754         * config/srclist-update (fixfile): Change grep pattern again, since the
67755         previous fix didn't work (there was another trailing $).  Use
67756         '[$]' to escape the $s.
67757
67758 2003-07-15  Karl Berry  <karl@gnu.org>
67759
67760         * lib/vasnprintf.c: update from gettext.
67761
67762 2003-07-15  Karl Berry  <karl@gnu.org>
67763
67764         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
67765         gets expanded when surrounded by '$'.
67766
67767 2003-07-15  Jim Meyering  <jim@meyering.net>
67768
67769         * modules/save-cwd: Don't depend on error.  From Derek Price.
67770
67771 2003-07-15  Jim Meyering  <jim@meyering.net>
67772
67773         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
67774
67775 2003-07-14  Simon Josefsson  <jas@extundo.com>
67776
67777         * modules/mempcpy: New file.
67778         * MODULES.html.sh (func_all_modules): Add mempcpy.
67779
67780 2003-07-14  Simon Josefsson  <jas@extundo.com>
67781
67782         * m4/mempcpy.m4: New file.
67783
67784 2003-07-14  Simon Josefsson  <jas@extundo.com>
67785
67786         * lib/mempcpy.h: New file.
67787         * lib/mempcpy.c: New file.
67788
67789 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67790
67791         * modules/getdate, modules/posixtm: Depend on mktime.
67792
67793 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67794
67795         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
67796         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
67797         unicodeio.c, unicodeio.h, unlocked-io.h:
67798         Switch from LGPL to GPL.
67799
67800 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67801
67802         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
67803         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
67804         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
67805         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
67806         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
67807         updated automatically by ../config/srclist-update.  This changes
67808         their license from LPGL to GPL.
67809
67810 2003-07-14  Paul Eggert  <eggert@twinsun.com>
67811
67812         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
67813         assumed to refer to the root of the most recent stable gettext version.
67814         * config/srclistvars.sh: Add defaults for eggert.
67815         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
67816         Match "This program" as well as "The program".  This is needed
67817         for gettext.
67818
67819 2003-07-14  Jim Meyering  <jim@meyering.net>
67820
67821         Don't emit diagnostics.  Let callers do that.
67822         * lib/save-cwd.c: Don't include "error.h".
67823         (save_cwd): Don't call error.  Ensure that errno is valid
67824         when returning nonzero.
67825
67826         * lib/save-cwd.h (restore_cwd): Update prototype.
67827         * lib/save-cwd.c (restore_cwd): Remove two parameters.
67828         Simplify.  Don't call error upon failure.  Let callers do that.
67829         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
67830         when auditing is enabled.  But don't bother updating the #if.
67831
67832 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
67833
67834         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
67835         it breaks C++ compilation.
67836         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
67837
67838 2003-07-10  Simon Josefsson  <jas@extundo.com>
67839
67840         * modules/strchrnul (Makefile.am): Add strchrnul.h.
67841
67842 2003-07-10  Jim Meyering  <jim@meyering.net>
67843
67844         * m4/clock_time.m4: Remove trailing blank.
67845         * m4/intmax_t.m4: Likewise.
67846
67847 2003-07-10  Jim Meyering  <jim@meyering.net>
67848
67849         * lib/vasnprintf.c: Remove trailing blanks.
67850         Make cpp indentation consistent.
67851
67852 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67853
67854         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
67855         posixver.c, strftime.c, strnlen.c, strverscmp.c:
67856         Switch from LGPL to GPL.
67857
67858 2003-07-09  Paul Eggert  <eggert@twinsun.com>
67859
67860         * config/srclist.txt: Sort sublists.  Add
67861         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
67862         that differ from gnulib for one reason or another; we'd like this list
67863         to be smaller but for now let's document what we have.
67864
67865 2003-07-08  Paul Eggert  <eggert@twinsun.com>
67866
67867         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
67868         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
67869         and sweeter "eval x=$x".
67870         * config/srclist.txt: Get lib/argp* from glibc.
67871
67872 2003-07-07  Paul Eggert  <eggert@twinsun.com>
67873
67874         * lib/mktime.c: Fix some boundary cases and remove need for floating
67875         point.
67876
67877         Issue a compile-time diagnostic if time_t is floating point, or if
67878         two's complement arithmetic is not in effect, or if arithmetic
67879         right shift does not propagate the sign.  These assumptions were
67880         all in the original code but they weren't checked.
67881
67882         (TIME_T_MIDPOINT, verify): New macros.
67883         (__isleap): Remove; it has integer overflow problems.
67884         (leapyear): New function, without those problems.
67885         (ydhms_tm_diff): Remove; splitting into two parts.
67886         (ydhms_diff): New function, containing the arithmetic part of
67887         the old ydhms_tm_diff function.  Issue a compile-time
67888         diagnostic if we are not using C99 integer division.
67889         Avoid casts when possible.
67890         (guess_time_tm): New function, containing the checking part of
67891         the old ydhms_tm_diff function.  Return the new value, rather than
67892         the difference between it and the old.  Accept a new argument T
67893         so that *T specifies the old value.  Check for overflow in the result.
67894
67895         (__mktime_internal): Use a time_t offset, not a long int offset.
67896         This undoes the 2003-06-04 change, which is no longer needed now
67897         that we have better overflow checking.
67898         (localtime_offset): Likewise.
67899
67900         (__mktime_internal): Avoid harmful overflow on hosts where time_t
67901         and long are 64-bit but int is only 32-bit.
67902         (ydhms_diff): Use long int to store year1 and yday1.
67903         Issue a compile-time diagnostic if long int is not wide enough.
67904
67905         (__mktime_internal): Use long int to store adjusted year and yday.
67906         Use plain C rather than preprocessor commands, if that doesn't
67907         affect efficiency.
67908         Check for overflow (and try to repair) after each probe
67909         rather than checking only at the very end.  This avoids some bugs
67910         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
67911         does not equal GMT offset at maximum time).
67912         Use integer to check for overflow rather than floating point; this
67913         is more portable to non-IEEE hosts, and is a tad faster.
67914         When we detect that we are oscillating between two values,
67915         don't check whether tm_isdst has the requested value, since
67916         we already know the answer.  When tm_isdst has the wrong value,
67917         use a different heuristic to find the right one, based on the
67918         extreme values actually observed in practice in tz2003a,
67919         rather than the (overly optimistic) "previous 3 calendar quarters".
67920
67921         (not_equal_tm, print_tm, check_result): Use "const T" rather than
67922         "T const" to accommodate glibc style.
67923         (check_result): Use less-confusing report format.  "long" -> "long int.
67924         (main): Likewise.
67925         Don't loop if the iteration overflows time_t.
67926         Allow a negative step in the iteration.
67927
67928 2003-07-06  Karl Berry  <karl@gnu.org>
67929
67930         * config/depcomp: update from automake.
67931         * config/config.sub: update from prep.
67932
67933 2003-07-03  Karl Berry  <karl@gnu.org>
67934
67935         * config/config.guess: update from prep.
67936
67937 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67938
67939         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
67940         xreadlink.c now includes it unconditionally.
67941
67942 2003-07-01  Paul Eggert  <eggert@twinsun.com>
67943
67944         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
67945         having it depend on HAVE_SYS_TYPES_H.
67946
67947 2003-07-01  Bruno Haible  <bruno@clisp.org>
67948
67949         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
67950         <sys/types.h> should be sufficient.
67951         Reported by Paul Eggert.
67952
67953 2003-06-26  Karl Berry  <karl@gnu.org>
67954
67955         * config/depcomp: update from automake.
67956
67957 2003-06-26  Bruno Haible  <bruno@clisp.org>
67958
67959         * modules/human: Depend on module stdbool.
67960
67961 2003-06-25  Bruno Haible  <bruno@clisp.org>
67962
67963         * modules/readlink: New file.
67964         * modules/xreadlink: Depend on it.
67965         * MODULES.html.sh (func_all_modules): Add readlink.
67966
67967 2003-06-25  Bruno Haible  <bruno@clisp.org>
67968
67969         * m4/readlink.m4: New file.
67970
67971 2003-06-25  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/readlink.c: New file.
67974
67975 2003-06-22  Karl Berry  <karl@gnu.org>
67976
67977         * config/srclist.txt: update mkinstalldirs from automake.
67978         * config/mkinstalldirs: update.
67979
67980 2003-06-22  Bruno Haible  <bruno@clisp.org>
67981
67982         Portability to mingw32.
67983         * m4/ssize_t.m4: New file, from GNU gettext.
67984         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
67985         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
67986
67987 2003-06-22  Bruno Haible  <bruno@clisp.org>
67988
67989         * modules/safe-read: Add m4/ssize_t.m4.
67990         * modules/xreadlink: Add m4/ssize_t.m4.
67991
67992 2003-06-20  Bruno Haible  <bruno@clisp.org>
67993
67994         Assume C89, so PARAMS isn't needed.
67995         * lib/unicodeio.h (PARAMS): Remove.
67996         * lib/unicodeio.c: Don't use PARAMS.
67997
67998 2003-06-18  Karl Berry  <karl@gnu.org>
67999
68000         * config/config.{guess,sub}: update from prep.
68001
68002 2003-06-18  Jim Meyering  <jim@meyering.net>
68003
68004         Merge changes from coreutils.
68005         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
68006         Remove explicit declarations of xmalloc and realloc.
68007         Include xalloc.h.
68008         (read_utmp): Remove anachronistic cast of xmalloc.
68009
68010 2003-06-17  Paul Eggert  <eggert@twinsun.com>
68011
68012         Assume C89, so PARAMS isn't needed.
68013         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
68014         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
68015         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
68016         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
68017         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
68018         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
68019         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
68020         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
68021         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
68022         lib/xstrtod.h, lib/xstrtol.h: Likewise.
68023         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
68024         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
68025         no longer needed. Anyway, config.h should always be included before any
68026         other file.
68027
68028 2003-06-11  Simon Josefsson  <jas@extundo.com>
68029
68030         * modules/sysexits: New file.
68031         * MODULES.html.sh (func_all_modules): Add sysexits.
68032
68033 2003-06-11  Simon Josefsson  <jas@extundo.com>
68034
68035         * lib/sysexit_.h: New file.
68036
68037 2003-06-11  Derek Price  <derek@ximbiot.com>
68038
68039         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
68040         necessary.
68041
68042 2003-06-11  Bruno Haible  <bruno@clisp.org>
68043
68044         * m4/sysexits.m4: New file.
68045
68046 2003-06-10  Simon Josefsson  <jas@extundo.com>
68047
68048         * lib/argp.h: New file, from glibc.
68049         * lib/argp-ba.c: New file, from glibc.
68050         * lib/argp-eexst.c: New file, from glibc.
68051         * lib/argp-fmtstream.c: New file, from glibc.
68052         * lib/argp-fmtstream.h: New file, from glibc.
68053         * lib/argp-fs-xinl.c: New file, from glibc.
68054         * lib/argp-help.c: New file, from glibc.
68055         * lib/argp-namefrob.h: New file, from glibc.
68056         * lib/argp-parse.c: New file, from glibc.
68057         * lib/argp-pv.c: New file, from glibc.
68058         * lib/argp-pvh.c: New file, from glibc.
68059         * lib/argp-xinl.c: New file, from glibc.
68060
68061 2003-06-10  Simon Josefsson  <jas@extundo.com>
68062
68063         * modules/strchrnul: New file.
68064
68065 2003-06-10  Simon Josefsson  <jas@extundo.com>
68066
68067         * modules/argp: New file.
68068
68069 2003-06-10  Simon Josefsson  <jas@extundo.com>
68070
68071         * m4/strchrnul.m4: New file.
68072
68073 2003-06-10  Simon Josefsson  <jas@extundo.com>
68074
68075         * lib/strchrnul.h: New file.
68076         * lib/strchrnul.c: New file.
68077
68078 2003-06-10  Bruno Haible  <bruno@clisp.org>
68079
68080         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
68081
68082 2003-06-07  Karl Berry  <karl@gnu.org>
68083
68084         * config/config.{guess,sub}: update from prep.
68085
68086 2003-06-07  Jim Meyering  <jim@meyering.net>
68087
68088         * modules/strtod: Use $(...) notation, not @...@ for
68089         AC_REPLACE'd variables.
68090         * modules/localcharset: Likewise.
68091
68092 2003-06-07  Jim Meyering  <jim@meyering.net>
68093
68094         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
68095         in place of my name in the copyright comment.
68096         Remove definition and uses of __P.
68097
68098         From coreutils.
68099         * lib/stat.c: Don't declare xmalloc explicitly.
68100         Instead, include "xalloc.h".
68101         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
68102         xrealloc, and xcalloc return values.
68103         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
68104         Improve comment.
68105         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
68106
68107 2003-06-07  Bruno Haible  <bruno@clisp.org>
68108
68109         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
68110         avoid AC_CONFIG_LINKS.
68111         * modules/fnmatch (Makefile.am): Use explicit creation rule for
68112         fnmatch.h, to avoid AC_CONFIG_LINKS.
68113         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
68114
68115 2003-06-07  Bruno Haible  <bruno@clisp.org>
68116
68117         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
68118         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
68119         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68120         directory.
68121         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
68122         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
68123         directory.
68124
68125 2003-06-06  Jim Meyering  <jim@meyering.net>
68126
68127         Merge from coreutils.
68128         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
68129         Consolidate declarations and initializations of *_base* locals.
68130
68131         Merge from coreutils.
68132         This avoids a core dump on systems without GNU putenv,
68133         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
68134         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
68135         (unsetenv): New static function, from GNU libc.
68136         (rpl_putenv): Use it.
68137
68138         * lib/modechange.c: Remove trailing blanks.
68139
68140         Merge from coreutils.
68141         * lib/fsusage.c: Remove declaration of statfs.
68142         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
68143
68144         * lib/posixtm.c: Include <stdbool.h> unconditionally.
68145
68146 2003-06-06  Jim Meyering  <jim@meyering.net>
68147
68148         * lib/stdbool_.h: Renamed from stdbool.h.in.
68149
68150 2003-06-06  Jim Meyering  <jim@meyering.net>
68151             Bruno Haible  <bruno@clisp.org>
68152
68153         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
68154         Adjust Makefile.am snippet not to redirect directly to target.
68155         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
68156
68157 2003-06-05  Paul Eggert  <eggert@twinsun.com>
68158
68159         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
68160         mismatch, look in future quarters as well as past.  This fixes a
68161         bug when processing fall-backwards gaps immediately after a long
68162         period of daylight-saving time.
68163
68164         * lib/mktime.c: Assume freestanding C89 or better.
68165         (HAVE_LIMITS_H): Remove.  Assume it's 1.
68166         (__P): Remove; not used.
68167         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
68168         (mktime, not_equal_tm, print_tm, check_result,
68169         main): Use prototypes.  Use const * where appropriate.
68170         (main): Fix typo in testing code that uncovered by above changes.
68171         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
68172
68173 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68174
68175         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
68176         locale.h, localeconv.  This merges changes from coreutils.
68177
68178         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
68179         It can be removed after the next Autoconf is released.
68180         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
68181         needed.
68182
68183 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68184
68185         * lib/mktime.c: Fix Debian bug 177940
68186         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
68187         (localtime_offset): Now long int, not time_t, because we want it
68188         to be guaranteed to be signed.  All uses changed.
68189         (__mktime_internal): If overflow would occur when adding offset,
68190         don't add it.
68191
68192         Merge 'human' changes from coreutils.  Rewrite to support
68193         locale-specific notations like thousands separators.
68194         * lib/human.c: Simplify authorship notice.
68195         Include human.h immediately after config.h.
68196         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
68197         <limits.h>: Do not include, since human.h does.
68198         (SIZE_MAX, UINTMAX_MAX): New macros.
68199         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
68200         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
68201         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
68202         (power_letter): Renamed from suffixes.
68203         (generate_suffix_backwards): Remove.
68204         (adjust_value): Now takes int style (because of human.h changes)
68205         and long double value (for greater precision on some platforms).
68206         (group_number): New function.
68207         (human_readable): Use it.  Use integer options, not enum.
68208         Put the options before the sizes in the arg list.
68209         Support all the new options.
68210         The old human_readable function has been removed;
68211         use inttostr.h instead.
68212         (human_readable, default_block_size, humblock):
68213         Use uintmax_t, not int, for block sizes.
68214         (human_readable_inexact, block_size_types): Remove.
68215         (block_size_opts): New constant.
68216         (human_options): Renamed from human_block_size, with new signature
68217         that allows block sizes up to UINTMAX_MAX.  All callers changed.
68218         * lib/human.h: Add copyright and authorship notice.
68219         Include <limits.h> and <stdbool.h> unconditionally.
68220         (PARAMS): Remove.  All uses removed.
68221         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
68222         (enum human_inexact_style): Remove tag; now a nameless enum.
68223         (human_floor, human_ceiling, human_round_to_even): Now have
68224         values 2, 0, 1 rather than -1, 1, 0.
68225         (human_group_digits, human_suppress_point_zero, human_autoscale,
68226         human_base_1024, human_SI, human_B): New constants.
68227         (human_readable_inexact, human_block_size): Remove.
68228         (human_readable): Size args are now uintmax_t, not int.
68229         (human_options): New decl.
68230
68231         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
68232         unnecessary now that we assume C89 or better.  This change
68233         imported from coreutils.
68234
68235         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68236         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
68237         in the 2003-05-30 sync from glibc.
68238
68239         .h files should stand alone, but we shouldn't include <sys/types.h>
68240         if we can get away with just <stddef.h>.
68241
68242         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
68243         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
68244         rather than <sys/types.h>, as we merely need size_t.
68245         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
68246         to get size_t.
68247         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
68248         Include <stdio.h>, to get FILE.
68249         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
68250         memcasecmp.h has included <stddef.h> and all we need is size_t.
68251         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
68252         our interface, instead of including <sys/types.h>
68253
68254 2003-06-04  Paul Eggert  <eggert@twinsun.com>
68255
68256         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
68257         now, as glibc mktime is buggy on non-glibc systems.
68258
68259 2003-06-03  Karl Berry  <karl@gnu.org>
68260
68261         * config/config.sub: update from prep.
68262
68263 2003-06-02  Paul Eggert  <eggert@twinsun.com>
68264
68265         [from coreutils]
68266         Fix some minor time-related bugs with POSIX time arguments.
68267         Some valid time stamps were being rejected (notably -1, and
68268         time stamps before 1900 on 64-bit hosts).  And some invalid
68269         time stamps were being accepted, e.g. September 31.
68270
68271         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
68272         that we can return (time_t) -1 successfully.
68273         * lib/posixtm.c: Likewise.
68274         [HAVE_STDBOOL_H]: Include <stdbool.h>.
68275         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
68276         (t): Remove static var.
68277         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
68278         of static var.  All uses changed.
68279         (year): Do not reject years before 1900; they can occur with
68280         64-bit time_t.
68281         (posix_time_parse): Do not check for out-of-range components;
68282         that is now the caller's responsibility, since our checks were
68283         only approximations.
68284         (posixtime): Use mktime to check for out-of-range components,
68285         since it knows them exactly.
68286         If mktime returns (time_t) -1, check whether an error actually occurred
68287         by invoking localtime on -1.
68288         (main) [TEST_POSIXTIME]: Check for input data errors, and report
68289         posixtime failures better.
68290         Improve the test data (in comments only).
68291
68292 2003-06-02  Karl Berry  <karl@gnu.org>
68293
68294         * config/mkinstalldirs (version): new variable.
68295         (--version): new option.
68296         (usage): improve message.
68297
68298 2003-05-30  Karl Berry  <karl@gnu.org>
68299
68300         * lib/mktime.c: update from libc.
68301
68302 2003-05-30  Bruno Haible  <bruno@clisp.org>
68303
68304         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
68305         * config/config.rpath: Upgrade to gettext-0.12.1.
68306
68307 2003-05-30  Bruno Haible  <bruno@clisp.org>
68308
68309         * m4/gettext.m4: Upgrade to gettext-0.12.1.
68310         * m4/nls.m4: New file, from gettext-0.12.1.
68311         * m4/po.m4: New file, from gettext-0.12.1.
68312         * m4/progtest.m4: Upgrade to gettext-0.12.1.
68313
68314 2003-05-30  Bruno Haible  <bruno@clisp.org>
68315
68316         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
68317         * lib/localcharset.h: Likewise.
68318         * lib/localcharset.c: Likewise.
68319
68320 2003-05-29  Karl Berry  <karl@gnu.org>
68321
68322         * config/config.rpath: update from gettext.
68323
68324 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68325
68326         Assume the headers required for C89 freestanding compilers.
68327         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
68328         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
68329         * m4/human.m4 (gl_HUMAN): Likewise.
68330         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
68331         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
68332         * m4/userspec.m4 (gl_USERSPEC): Likewise.
68333         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
68334         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68335         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
68336
68337 2003-05-28  Paul Eggert  <eggert@twinsun.com>
68338
68339         Assume the headers required for C89 freestanding compilers.
68340         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
68341         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
68342         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
68343         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
68344         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
68345         define, since <limits.h> is guaranteed to do that.
68346         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
68347         * lib/exclude.c: Include <stdbool.h> unconditionally.
68348         * lib/tempname.c: Include <stddef.h> unconditionally.
68349         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
68350         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
68351         <stddef.h> does that.
68352         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
68353         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
68354         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
68355         needed.
68356         * lib/xstrtol.c: Likewise.
68357         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
68358         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
68359
68360         * lib/addext.c (addext): Use assignment rather than cast, to avoid
68361         warnings on some platforms.
68362
68363         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
68364         arbitrarily.
68365
68366 2003-05-26  Jim Meyering  <jim@meyering.net>
68367
68368         Merge in a change from coreutils:
68369         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
68370         that is guaranteed to be `no'.  Use `no_such_member' to indicate
68371         that condition, rather than `-1' which is slightly misleading.
68372         Change the name of the cache variable to have the gl_ prefix.
68373         Prompted by a patch from Richard Dawe for DJGPP.
68374
68375 2003-05-24  Karl Berry  <karl@gnu.org>
68376
68377         * config/config.guess: update from prep.
68378
68379 2003-05-22  Karl Berry  <karl@gnu.org>
68380
68381         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
68382
68383 2003-05-20  Karl Berry  <karl@gnu.org>
68384
68385         * config/config.guess: update from prep.
68386
68387 2003-05-18  Karl Berry  <karl@gnu.org>
68388
68389         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
68390         might actually be set by the user.
68391
68392         * config/depcomp, install-sh, mdate-sh: update from automake.
68393
68394 2003-05-17  Bruno Haible  <bruno@clisp.org>
68395
68396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
68397         invalid expansion for AC_EGREP_CPP.
68398         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
68399         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
68400         Suggested by Akim Demaille <akim@epita.fr> in
68401         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
68402
68403 2003-05-12  Jim Meyering  <jim@meyering.net>
68404
68405         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
68406         the space-padded-by-default conversion specifiers, %e, %k, %l.
68407
68408 2003-05-12  Bruno Haible  <bruno@clisp.org>
68409
68410         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
68411         the string is longer than 4 KB.
68412
68413 2003-05-11  Karl Berry  <karl@gnu.org>
68414
68415         * config/config.{guess,sub}: update from prep.
68416
68417 2003-05-09  Bruno Haible  <bruno@clisp.org>
68418
68419         * modules/error: Add m4/strerror_r.m4 to file list.
68420
68421 2003-05-03  Bruno Haible  <bruno@clisp.org>
68422
68423         Upgrade to Unicode-4.0.
68424         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
68425         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
68426         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
68427         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
68428         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
68429         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
68430         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
68431         Change width of U+E0100..U+E01EF from 1 to 0.
68432
68433 2003-04-25  Jim Meyering  <jim@meyering.net>
68434
68435         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
68436         of type size_t, not int.
68437
68438 2003-04-25  Bruno Haible  <bruno@clisp.org>
68439
68440         * lib/copy-file.c: Include <stddef.h>, for size_t.
68441
68442 2003-04-21  Paul Eggert  <eggert@twinsun.com>
68443
68444         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
68445         code which expansion is under static control.  Patch imported from
68446         Akim Demaille's patch to Bison; see
68447         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
68448
68449 2003-04-14  Bruno Haible  <bruno@clisp.org>
68450
68451         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
68452
68453 2003-04-11  Jim Meyering  <jim@meyering.net>
68454
68455         Merge changes from Coreutils.
68456
68457         2003-03-22  Jim Meyering  <jim@meyering.net>
68458
68459         * lib/strftime.c (widen): Cast alloca return value to proper type.
68460
68461         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
68462
68463         From GNU libc.
68464         * lib/strftime.c (my_strftime): Handle very large width
68465         specifications for numeric values correctly.  Improve checks for
68466         overflow.
68467
68468         2003-01-19  Jim Meyering  <jim@meyering.net>
68469
68470         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
68471         definitions.
68472         (nl_get_alt_digit) [! defined my_strftime]: Define.
68473         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
68474         _nl_get_alt_digit and _nl_get_walt_digit.
68475
68476         * lib/strftime.c (my_strftime): Merge in locale-related changes from
68477         libc. These changes have no effect outside of _LIBC.
68478
68479 2003-04-10  Bruno Haible  <bruno@clisp.org>
68480
68481         * modules/findprog: New file.
68482         * MODULES.html.sh (func_all_modules): Add it.
68483
68484 2003-04-10  Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/findprog.m4: New file.
68487         * m4/eaccess.m4: New file.
68488
68489 2003-04-10  Bruno Haible  <bruno@clisp.org>
68490
68491         * lib/findprog.h: New file, from GNU gettext.
68492         * lib/findprog.c: New file, from GNU gettext.
68493
68494 2003-04-05  Jim Meyering  <jim@meyering.net>
68495
68496         Merge changes from Coreutils.
68497
68498         * lib/exclude.h (PARAMS): Remove definition and uses.
68499         * lib/exclude.c: Remove uses of `PARAMS'.
68500
68501         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
68502         Add test-cases for DOS filenames. Declare program_name.
68503         (main): Set up program_name.  Patch by Rich Dawe.
68504
68505         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68506         error from mntctl.
68507         Use mntctl's return value to drive the entry-processing loop, since
68508         we can't rely on the value of the vmt_length member in the last
68509         entry.  On some systems doing so could result in exhausting
68510         virtual memory.  Based in part on a patch from Mike Jetzer.
68511
68512 2003-04-04  Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/linebreak: New file.
68515         * MODULES.html.sh (func_all_modules): Add it.
68516
68517 2003-04-04  Bruno Haible  <bruno@clisp.org>
68518
68519         * m4/linebreak.m4: New file.
68520
68521 2003-04-04  Bruno Haible  <bruno@clisp.org>
68522
68523         * lib/linebreak.h: New file, from GNU gettext.
68524         * lib/linebreak.c: New file, from GNU gettext with slight
68525         modifications.
68526         * lib/lbrkprop.h: New file, from GNU gettext.
68527
68528 2003-04-03  Bruno Haible  <bruno@clisp.org>
68529
68530         * modules/utf8-ucs4: New file.
68531         * modules/utf16-ucs4: New file.
68532         * modules/ucs4-utf8: New file.
68533         * modules/ucs4-utf16: New file.
68534         * MODULES.html.sh (func_all_modules): Add them.
68535
68536 2003-04-03  Bruno Haible  <bruno@clisp.org>
68537
68538         * m4/utf-ucs4.m4: New file.
68539         * m4/ucs4-utf.m4: New file.
68540
68541 2003-04-03  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/utf8-ucs4.h: New file, from GNU gettext.
68544         * lib/utf16-ucs4.h: New file, from GNU gettext.
68545         * lib/ucs4-utf8.h: New file, from GNU gettext.
68546         * lib/ucs4-utf16.h: New file, from GNU gettext.
68547
68548 2003-04-02  Bruno Haible  <bruno@clisp.org>
68549
68550         * modules/binary-io: New file.
68551         * MODULES.html.sh (func_all_modules): Add it.
68552
68553 2003-04-02  Bruno Haible  <bruno@clisp.org>
68554
68555         * lib/binary-io.h: New file, from GNU gettext.
68556
68557 2003-04-01  Bruno Haible  <bruno@clisp.org>
68558
68559         * modules/pathname: New file.
68560         * MODULES.html.sh (func_all_modules): Add it.
68561
68562 2003-04-01  Bruno Haible  <bruno@clisp.org>
68563
68564         * lib/pathname.h: New file, from GNU gettext.
68565         * lib/concatpath.c: New file, from GNU gettext.
68566
68567 2003-03-30  Bruno Haible  <bruno@clisp.org>
68568
68569         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
68570
68571 2003-03-30  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
68574         function chown() doesn't exist.
68575
68576 2003-03-28  Bruno Haible  <bruno@clisp.org>
68577
68578         * modules/copy-file: New file.
68579         * MODULES.html.sh (func_all_modules): Add it.
68580
68581 2003-03-28  Bruno Haible  <bruno@clisp.org>
68582
68583         * m4/copy-file.m4: New file.
68584
68585 2003-03-28  Bruno Haible  <bruno@clisp.org>
68586
68587         * lib/copy-file.h: New file, from GNU gettext.
68588         * lib/copy-file.c: New file, from GNU gettext.
68589
68590 2003-03-18  Jim Meyering  <jim@meyering.net>
68591
68592         * lib/quote.c (quote_n): Fix typo in comment.
68593
68594 2003-03-18  Bruno Haible  <bruno@clisp.org>
68595
68596         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
68597         checking.
68598         * m4/onceonly_2_57.m4: Likewise.
68599
68600 2003-03-17  Bruno Haible  <bruno@clisp.org>
68601
68602         * m4/onceonly.m4: Require autoconf 2.54 or newer.
68603         (m4_quote): Remove macro.
68604         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
68605
68606 2003-03-14  Jim Meyering  <jim@meyering.net>
68607
68608         Merge changes from Coreutils.
68609         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
68610         to be const, in order to avoid warnings.
68611         (obstack_room): Likewise.
68612         (obstack_empty_p): Likewise.
68613
68614 2003-03-14  Bruno Haible  <bruno@clisp.org>
68615
68616         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
68617         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
68618
68619 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68620
68621         Merge changes from Bison.
68622         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
68623         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
68624         when compiling Bison 1.875's `bitset bset = obstack_alloc
68625         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
68626         * lib/hash.c: Include <stdbool.h> unconditionally.
68627
68628 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68629
68630         * m4/onceonly.m4 (m4_quote): New macro.
68631         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
68632         Quote AC_FOREACH variable-expansions properly.
68633
68634 2003-03-13  Paul Eggert  <eggert@twinsun.com>
68635
68636         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
68637
68638 2003-03-09  Paul Eggert  <eggert@twinsun.com>
68639
68640         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
68641         Reported by Bruce Becker; see:
68642         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
68643
68644 2003-03-03  Paul Eggert  <eggert@twinsun.com>
68645             Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
68648         Reported by John Hughes, see
68649         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
68650
68651 2003-02-20  Bruno Haible  <bruno@clisp.org>
68652
68653         * MODULES.html.sh (func_all_modules): Add poll.
68654
68655 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68656
68657         * modules/poll: New file.
68658
68659 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68660
68661         * lib/poll_.h: New file.
68662         * lib/poll.c: New file.
68663
68664 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
68665
68666         * m4/poll.m4: New file.
68667
68668 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68669
68670         * modules/mathl: New file.
68671
68672 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68673
68674         * lib/mathl.h: New file.
68675         * lib/acosl.c: New file.
68676         * lib/asinl.c: New file.
68677         * lib/atanl.c: New file.
68678         * lib/ceill.c: New file.
68679         * lib/cosl.c: New file.
68680         * lib/expl.c: New file.
68681         * lib/floorl.c: New file.
68682         * lib/frexpl.c: New file.
68683         * lib/ldexpl.c: New file.
68684         * lib/logl.c: New file.
68685         * lib/sincosl.c: New file.
68686         * lib/sinl.c: New file.
68687         * lib/sqrtl.c: New file.
68688         * lib/tanl.c: New file.
68689         * lib/trigl.c: New file.
68690         * lib/trigl.h: New file.
68691
68692 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
68693
68694         * m4/mathl.m4: New file.
68695
68696 2003-02-18  Bruno Haible  <bruno@clisp.org>
68697
68698         * MODULES.html.sh (func_all_modules): Add mathl.
68699
68700 2003-02-17  Bruno Haible  <bruno@clisp.org>
68701
68702         * modules/mkdtemp: New module.
68703         * MODULES.html.sh (func_all_modules): Add it.
68704
68705 2003-02-17  Bruno Haible  <bruno@clisp.org>
68706
68707         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
68708
68709 2003-02-17  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/mkdtemp.h: New file, from GNU gettext.
68712         * lib/mkdtemp.c: New file, from GNU gettext.
68713
68714 2003-02-02  Jim Meyering  <jim@meyering.net>
68715
68716         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
68717         e.g. glibc-2.2.93.
68718
68719 2003-01-31  Bruno Haible  <bruno@clisp.org>
68720
68721         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
68722         'rpl_rename'.
68723         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
68724         'rpl_strnlen'.
68725         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
68726         'rpl_strtod'.
68727         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
68728         'rpl_utime'.
68729
68730 2003-01-31  Bruno Haible  <bruno@clisp.org>
68731
68732         * lib/rename.c: #undef rename before defining rpl_rename.
68733         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
68734
68735 2003-01-30  Bruno Haible  <bruno@clisp.org>
68736
68737         * modules/vasnprintf, modules/vasprintf: New modules.
68738         * MODULES.html.sh (func_all_modules): Add them.
68739
68740 2003-01-30  Bruno Haible  <bruno@clisp.org>
68741
68742         * m4/signed.m4: New file, from GNU gettext.
68743         * m4/longdouble.m4: New file, from GNU gettext.
68744         * m4/wchar_t.m4: New file, from GNU gettext.
68745         * m4/wint_t.m4: New file, from GNU gettext.
68746         * m4/vasnprintf.m4: New file.
68747         * m4/vasprintf.m4: New file.
68748
68749 2003-01-30  Bruno Haible  <bruno@clisp.org>
68750
68751         * lib/printf-args.h: New file, from GNU gettext.
68752         * lib/printf-args.c: New file, from GNU gettext.
68753         * lib/printf-parse.h: New file, from GNU gettext.
68754         * lib/printf-parse.c: New file, from GNU gettext.
68755         * lib/vasnprintf.h: New file, from GNU gettext.
68756         * lib/vasnprintf.c: New file, from GNU gettext.
68757         * lib/asnprintf.c: New file, from GNU gettext.
68758         * lib/vasprintf.h: New file, from GNU gettext with modifications.
68759         * lib/vasprintf.c: New file, from GNU gettext.
68760         * lib/asprintf.c: New file, from GNU gettext.
68761
68762 2003-01-29  Bruno Haible  <bruno@clisp.org>
68763
68764         * modules/stpncpy: New module.
68765         * MODULES.html.sh (func_all_modules): Add it.
68766
68767 2003-01-29  Bruno Haible  <bruno@clisp.org>
68768
68769         * m4/stpncpy.m4: New file.
68770
68771 2003-01-29  Bruno Haible  <bruno@clisp.org>
68772
68773         * lib/stpncpy.h: New file, from GNU gettext with modifications.
68774         * lib/stpncpy.c: New file, from GNU gettext with modifications.
68775
68776 2003-01-28  Bruno Haible  <bruno@clisp.org>
68777
68778         * modules/c-ctype: New module.
68779         * MODULES.html.sh (func_all_modules): Add it.
68780
68781 2003-01-28  Bruno Haible  <bruno@clisp.org>
68782
68783         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
68784         Paul Eggert.
68785         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
68786         Paul Eggert.
68787
68788 2003-01-27  Bruno Haible  <bruno@clisp.org>
68789
68790         * modules/xsetenv: New module.
68791         * MODULES.html.sh (func_all_modules): Add it.
68792
68793 2003-01-27  Bruno Haible  <bruno@clisp.org>
68794
68795         * lib/xsetenv.h: New file, from GNU gettext.
68796         * lib/xsetenv.c: New file, from GNU gettext.
68797
68798 2003-01-23  Jim Meyering  <jim@meyering.net>
68799
68800         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
68801         from working on systems without dirfd (at least Irix and OSF1/Tru64).
68802
68803 2003-01-23  Bruno Haible  <bruno@clisp.org>
68804
68805         * modules/minmax: New module.
68806         * MODULES.html.sh (func_all_modules): Add it.
68807
68808 2003-01-23  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
68811         Eggert.
68812
68813 2003-01-22  Bruno Haible  <bruno@clisp.org>
68814
68815         * modules/exit: New module.
68816         * MODULES.html.sh (func_all_modules): Add it.
68817
68818 2003-01-22  Bruno Haible  <bruno@clisp.org>
68819
68820         * lib/exit.h: New file, from GNU gettext.
68821
68822 2003-01-19  Bruno Haible  <bruno@clisp.org>
68823
68824         * gnulib-tool: Recognize option --extract-maintainer.
68825         (func_get_maintainer): New function.
68826         * modules/*: Add Maintainer entry.
68827
68828 2003-01-16  Jim Meyering  <jim@meyering.net>
68829
68830         * m4/regex.m4: The `regex' struct is both input and output.
68831         Initialize it before each use.  Patch by Tim Waugh.
68832
68833 2003-01-16  Bruno Haible  <bruno@clisp.org>
68834
68835         * MODULES.html.sh: Add a table of contents. Add the module name as
68836         leftmost column. Add hyperlinks.
68837
68838 2003-01-15  Bruno Haible  <bruno@clisp.org>
68839
68840         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
68841
68842 2003-01-15  Bruno Haible  <bruno@clisp.org>
68843
68844         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
68845         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
68846         suffix.
68847
68848 2003-01-15  Bruno Haible  <bruno@clisp.org>
68849
68850         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
68851
68852 2003-01-15  Bruno Haible  <bruno@clisp.org>
68853
68854         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
68855         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
68856
68857 2003-01-14  Jim Meyering  <jim@meyering.net>
68858
68859         * lib/same.c (same_name): Tweak a comment.
68860
68861 2003-01-14  Bruno Haible  <bruno@clisp.org>
68862
68863         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
68864         when a string comparison is sufficient.
68865
68866 2003-01-14  Bruno Haible  <bruno@clisp.org>
68867
68868         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
68869         'unsigned int'.
68870
68871 2003-01-14  Bruno Haible  <bruno@clisp.org>
68872
68873         * lib/hash-pjw.c: Add comment about low quality of this function.
68874
68875 2003-01-13  Bruno Haible  <bruno@clisp.org>
68876
68877         * modules/stpcpy: Distribute lib/stpcpy.h.
68878         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
68879
68880 2003-01-13  Bruno Haible  <bruno@clisp.org>
68881
68882         * modules/*: Add a description.
68883         * modules/strpbrk: Fix Makefile.am snippet.
68884         * modules/strtoimax: Fix dependencies.
68885         * modules/strtoumax: Likewise.
68886
68887 2003-01-13  Bruno Haible  <bruno@clisp.org>
68888
68889         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
68890         * modules/alloca (Makefile.am): All object files depend on alloca.h.
68891         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
68892
68893 2003-01-13  Bruno Haible  <bruno@clisp.org>
68894
68895         * gnulib-tool (func_create_testdir): Store config/* files in the main
68896         directory.
68897         * config.rpath: Move to ...
68898         * config/config.rpath: ... here.
68899         * modules/gettext: Contains config/config.rpath, not config.rpath.
68900         * modules/iconv: Likewise.
68901
68902 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68903
68904         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68905         to avoid collisions with libcurses and libreadline.
68906
68907         * m4/getstr.m4: Remove.
68908         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
68909
68910 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68911
68912         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68913         to avoid collisions with libcurses and libreadline.
68914
68915         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
68916         * lib/getstr.h, getstr.c: Remove.
68917         * lib/getline.c: Include "getline.h", to check interface.
68918         Move body of old getstr.c here: this defines MIN_CHUNK and
68919         declares getdelim2, which is renamed from getstr.
68920         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
68921
68922         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
68923         All uses changed.
68924         * lib/linebuffer.h: Likewise.
68925         (readline): Remove backward-compatibility macro.
68926
68927 2003-01-12  Paul Eggert  <eggert@twinsun.com>
68928
68929         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
68930         to avoid collisions with libcurses and libreadline.
68931         * getstr: Remove.
68932         * MODULES.html.sh: Remove getstr.
68933         * modules/getline: Depend on unlocked-io, not getstr.
68934
68935 2003-01-12  Jim Meyering  <jim@meyering.net>
68936
68937         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
68938
68939 2003-01-10  Bruno Haible  <bruno@clisp.org>
68940
68941         * modules/alloca: Change Makefile.am requirements. Simplify Include
68942         requirements. Add lib/alloca_.h to file list.
68943
68944 2003-01-10  Bruno Haible  <bruno@clisp.org>
68945
68946         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
68947
68948 2003-01-10  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/alloca_.h: New file.
68951         * lib/getdate.y: Unconditionally include alloca.h.
68952         * lib/makepath.c: Likewise.
68953         * lib/setenv.c: Likewise.
68954         * lib/userspec.c: Likewise.
68955
68956 2003-01-09  Karl Berry  <karl@gnu.org>
68957
68958         * MODULES.html.sh: include `dirname $0` in PATH, to find
68959         gnulib-tool.
68960
68961 2003-01-09  Bruno Haible  <bruno@clisp.org>
68962
68963         * modules/stdbool: Change configure.ac, Makefile.am requirements.
68964         Simplify Include requirements. Add lib/stdbool.h.in to file list.
68965
68966 2003-01-09  Bruno Haible  <bruno@clisp.org>
68967
68968         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
68969
68970 2003-01-09  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/stdbool.h.in: New file.
68973
68974 2003-01-09  Bruno Haible  <bruno@clisp.org>
68975
68976         * gnulib-tool (func_all_modules): Ignore files ending in ~.
68977         * MODULES.html.sh: Likewise.
68978
68979 2003-01-08  Jim Meyering  <jim@meyering.net>
68980
68981         * lib/full-write.c: Undefine and define-away `const' after inclusion
68982         of errno.h, not before.  Suggestion from Bruno Haible.
68983
68984 2003-01-08  Bruno Haible  <bruno@clisp.org>
68985
68986         * modules/full-read: Depend on full-write.
68987
68988 2003-01-08  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/safe-read.c: Include specification header first, to ensure its
68991         selfcontainedness.
68992         * lib/full-write.c: Likewise.
68993
68994 2003-01-07  Jim Meyering  <jim@meyering.net>
68995
68996         * lib/full-write.c: Rework so that it may serve to define full_read,
68997         too.
68998         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
68999
69000 2003-01-07  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/strtoimax.c: Include <stdint.h> as an alternative to
69003         <inttypes.h>.
69004         * lib/xstrtol.h: Likewise.
69005         * lib/xstrtoimax.c: Likewise.
69006         * lib/xstrtoumax.c: Likewise.
69007         * lib/human.h: Likewise.
69008
69009         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
69010         on systems that have <inttypes.h> but not <stdint.h>.
69011
69012 2003-01-07  Bruno Haible  <bruno@clisp.org>
69013
69014         * MODULES.html.sh: Add copyright notice.
69015         (missed_files): Omit CVS directory entries.
69016         (func_module): Make it work with sed-3.02.
69017         * MODULES.txt: Remove file.
69018
69019 2003-01-06  Jim Meyering  <jim@meyering.net>
69020
69021         * lib/version-etc.c: Update year in translatable copyright string.
69022
69023 2003-01-03  Karl Berry  <karl@gnu.org>
69024
69025         * config/config.{guess,sub}: update from prep.
69026
69027 2003-01-02  Karl Berry  <karl@gnu.org>
69028
69029         * doc/COPYING.DOC: belatedly updated to 1.2.
69030
69031 2003-01-01  Karl Berry  <karl@gnu.org>
69032
69033         * gnulib-tool (func_verify_module): report module name $module in
69034         error message, not $1.
69035         * gnulib-tool (create-testdir): don't complain if destdir couldn't
69036         be created, only if it doesn't exist.
69037         * gnulib-tool (last_checkin_date): don't expand the $Date here.
69038
69039 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69040
69041         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
69042
69043 2002-12-31  Paul Eggert  <eggert@twinsun.com>
69044
69045         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
69046         memcmp if strcoll doesn't work.
69047
69048 2002-12-31  Bruno Haible  <bruno@clisp.org>
69049
69050         * lib/utime.c (utime_null): No need to call ftruncate if the file was
69051         nonempty.
69052
69053 2002-12-31  Bruno Haible  <bruno@clisp.org>
69054
69055         * lib/memcoll.c (STRCOLL): New macro.
69056         (memcoll): Use it.
69057
69058 2002-12-31  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/localcharset.h: New file.
69061         * lib/localcharset.c: Include it.
69062         * lib/unicodeio.c: Likewise.
69063
69064 2002-12-31  Bruno Haible  <bruno@clisp.org>
69065
69066         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
69067         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
69068
69069 2002-12-31  Bruno Haible  <bruno@clisp.org>
69070
69071         * lib/getline.h: Include <stddef.h>, for size_t.
69072
69073         * lib/unicodeio.h: Include <stddef.h>, for size_t.
69074         * lib/unicodeio.c: Don't include <stddef.h>.
69075
69076 2002-12-31  Bruno Haible  <bruno@clisp.org>
69077
69078         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
69079         HAVE_TM_ZONE.
69080
69081 2002-12-24  Karl Berry  <karl@gnu.org>
69082
69083         * config/config.guess: update from prep.
69084
69085 2002-12-24  Bruno Haible  <bruno@clisp.org>
69086
69087         General infrasructure.
69088         * m4/README: Rewritten.
69089         * m4/onceonly.m4: New file.
69090         * m4/onceonly_2_57.m4: New file.
69091
69092         Module atexit.
69093         * m4/atexit.m4: New file.
69094
69095         Module strtod.
69096         * m4/strtod.m4: New file.
69097
69098         Module strtol.
69099         * m4/strtol.m4: New file.
69100
69101         Module strtoul.
69102         * m4/strtoul.m4: New file.
69103
69104         Module memchr.
69105         * m4/memchr.m4: New file.
69106
69107         Module memcmp.
69108         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
69109         (jm_FUNC_MEMCMP): Invoke it.
69110
69111         Module memcpy.
69112         * m4/memcpy.m4: New file.
69113
69114         Module memmove.
69115         * m4/memmove.m4: New file.
69116
69117         Module memset.
69118         * m4/memset.m4: New file.
69119
69120         Module strcspn.
69121         * m4/strcspn.m4: New file.
69122
69123         Module strpbrk.
69124         * m4/strpbrk.m4: New file.
69125
69126         Module strstr.
69127         * m4/strstr.m4: New file.
69128
69129         Module strerror.
69130         * m4/strerror.m4: New file.
69131
69132         Module mktime.
69133         * m4/mktime.m4: Renamed from jm-mktime.m4.
69134         (gl_PREREQ_MKTIME): New macro.
69135         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
69136
69137         Module malloc.
69138         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
69139         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
69140         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
69141
69142         Module realloc.
69143         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
69144         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
69145         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
69146
69147         Module strftime.
69148         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
69149         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
69150         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
69151         gl_TM_GMTOFF.
69152         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
69153
69154         Module xalloc.
69155         * m4/xalloc.m4: New file.
69156
69157         Module alloca.
69158         * m4/alloca.m4: New file.
69159
69160         Module putenv.
69161         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
69162         (jm_FUNC_PUTENV): Invoke it.
69163
69164         Module setenv.
69165         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
69166         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
69167         when invoked twice.
69168         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
69169         gt_FUNC_SETENV.
69170
69171         Module memrchr.
69172         * m4/memrchr.m4: New file.
69173
69174         Module stpcpy.
69175         * m4/stpcpy.m4: New file.
69176
69177         Module strcase.
69178         * m4/strcase.m4: New file.
69179
69180         Module strdup.
69181         * m4/strdup.m4: New file.
69182
69183         Module strnlen.
69184         * m4/strnlen.m4: New file.
69185
69186         Module strndup.
69187         * m4/strndup.m4: New file.
69188
69189         Module xstrtod.
69190         * m4/xstrtod.m4: New file.
69191
69192         Module xstrtol.
69193         * m4/xstrtol.m4: New file.
69194
69195         Module getdate.
69196         * m4/getdate.m4: New file.
69197
69198         Module unlocked-io.
69199         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
69200         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
69201         * m4/jm-glibc-io.m4n: Remove file.
69202
69203         Module long-options.
69204         * m4/long-options.m4: New file.
69205
69206         Module md5.
69207         * m4/md5.m4: New file.
69208
69209         Module sha.
69210         * m4/sha.m4: New file.
69211
69212         Module getstr.
69213         * m4/getstr.m4: New file.
69214
69215         Module getline.
69216         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
69217         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
69218         <sys/types.h>, for size_t. Use the function name gnu_getline, not
69219         simply getline. Infoke gl_PREREQ_GETLINE.
69220
69221         Module obstack.
69222         * m4/obstack.m4: New file.
69223
69224         Module hash.
69225         * m4/hash.m4: New file.
69226
69227         Module readtokens.
69228         * m4/readtokens.m4: New file.
69229
69230         Module strverscmp.
69231         * m4/strverscmp.m4: New file.
69232
69233         Module stdbool.
69234         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
69235         OSF/1.
69236
69237         Module strtoll.
69238         * m4/strtoll.m4: New file.
69239
69240         Module strtoull.
69241         * m4/strtoull.m4: New file.
69242
69243         Module strtoimax.
69244         * m4/strtoimax.m4: New file.
69245
69246         Module strtoumax.
69247         * m4/strtoumax.m4: New file.
69248
69249         Module xstrtoimax.
69250         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
69251         jm_AC_PREREQ_XSTRTOIMAX.
69252         Moved the strtol prerequisites to strtol.m4.
69253         Moved the strtoll prerequisites to strtoll.m4.
69254         Moved the strtoimax prerequisites to strtoimax.m4.
69255
69256         Module xstrtoumax.
69257         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
69258         jm_AC_PREREQ_XSTRTOUMAX.
69259         Moved the strtoul prerequisites to strtoul.m4.
69260         Moved the strtoull prerequisites to strtoull.m4.
69261         Moved the strtoumax prerequisites to strtoumax.m4.
69262
69263         Module chown.
69264         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
69265         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
69266
69267         Module dup2.
69268         * m4/dup2.m4: New file.
69269
69270         Module ftruncate.
69271         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
69272         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
69273
69274         Module getgroups.
69275         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
69276         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
69277
69278         Module gettimeofday.
69279         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
69280         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
69281         gl_PREREQ_GETTIMEOFDAY.
69282
69283         Module mkdir.
69284         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
69285         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
69286
69287         Module mkstemp.
69288         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
69289         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
69290         jm_AC_TYPE_UINTMAX_T.
69291         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
69292
69293         Module stat.
69294         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
69295         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
69296
69297         Module lstat.
69298         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
69299         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
69300
69301         Module timespec.
69302         * m4/timespec.m4 (gl_TIMESPEC): New macro.
69303         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
69304         * m4/st_mtim.m4: Indentation.
69305
69306         Module nanosleep.
69307         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
69308         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
69309         gl_PREREQ_NANOSLEEP.
69310
69311         Module regex.
69312         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
69313         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
69314         (gl_REGEX): New macro.
69315
69316         Module rename.
69317         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
69318         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
69319
69320         Module rmdir.
69321         * m4/rmdir.m4: New file.
69322
69323         Module utime.
69324         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
69325         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
69326         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
69327
69328         Module dirname.
69329         * m4/dirname.m4: New file.
69330
69331         Module getopt.
69332         * m4/getopt.m4: New file.
69333
69334         Module unistd-safer.
69335         * m4/unistd-safer.m4: New file.
69336
69337         Module fnmatch.
69338         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
69339         declaration.
69340         (gl_PREREQ_FNMATCH_EXTRA): New macro.
69341         (gl_FUNC_FNMATCH_POSIX): New macro.
69342         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
69343         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
69344         simply fnmatch.
69345
69346         Module exclude.
69347         * m4/exclude.m4: New file.
69348
69349         Module human.
69350         * m4/human.m4: New file.
69351
69352         Module acl.
69353         * m4/acl.m4: Nop.
69354
69355         Module backupfile.
69356         * m4/backupfile.m4: New file.
69357         * m4/d-ino.m4: Indentation.
69358
69359         Module fsusage.
69360         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
69361         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
69362         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
69363
69364         Module dirfd.
69365         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
69366         requirements.
69367
69368         Module euidaccess.
69369         * m4/euidaccess.m4: New file.
69370
69371         Module file-type.
69372         * m4/file-type.m4: New file.
69373
69374         Module fileblocks.
69375         * m4/fileblocks.m4: New file.
69376
69377         Module filemode.
69378         * m4/filemode.m4: New file.
69379
69380         Module isdir.
69381         * m4/isdir.m4: New file.
69382
69383         Module lchown.
69384         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
69385         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
69386
69387         Module makepath.
69388         * m4/makepath.m4: New file.
69389
69390         Module modechange.
69391         * m4/modechange.m4: New file.
69392
69393         Module mountlist.
69394         * m4/mountlist.m4: New file.
69395         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
69396         Indentation.
69397
69398         Module path-concat.
69399         * m4/path-concat.m4: New file.
69400
69401         Module pathmax.
69402         * m4/pathmax.m4: New file.
69403
69404         Module same.
69405         * m4/same.m4: New file.
69406
69407         Module save-cwd.
69408         * m4/save-cwd.m4: New file.
69409
69410         Module savedir.
69411         * m4/savedir.m4: New file.
69412
69413         Module xgetcwd.
69414         * m4/xgetcwd.m4: New file.
69415         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
69416
69417         Module xreadlink.
69418         * m4/xreadlink.m4: New file.
69419
69420         Module safe-read.
69421         * m4/safe-read.m4: New file.
69422
69423         Module safe-write.
69424         * m4/safe-write.m4: New file.
69425
69426         Module closeout.
69427         * m4/closeout.m4: New file.
69428
69429         Module stdio-safer.
69430         * m4/stdio-safer.m4: New file.
69431
69432         Module getpass.
69433         * m4/getpass.m4: New file.
69434
69435         Module getugroups.
69436         * m4/getugroups.m4: New file.
69437
69438         Module group-member.
69439         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
69440         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
69441
69442         Module idcache.
69443         * m4/idcache.m4: New file.
69444
69445         Module userspec.
69446         * m4/userspec.m4: New file.
69447
69448         Module gettime.
69449         * m4/clock_time.m4: New file.
69450         * m4/gettime.m4: New file.
69451
69452         Module settime.
69453         * m4/settime.m4: New file.
69454
69455         Module posixtm.
69456         * m4/posixtm.m4: New file.
69457
69458         Module gethostname.
69459         * m4/gethostname.m4: New file.
69460
69461         Module canon-host.
69462         * m4/canon-host.m4: New file.
69463
69464         Module gettext.
69465         * m4/codeset.m4: New file, from gettext-0.11.5.
69466         * m4/gettext.m4: New file, from gettext-0.11.5.
69467         * m4/glibc21.m4: New file, from gettext-0.11.5.
69468         * m4/iconv.m4: New file, from gettext-0.11.5.
69469         * m4/intdiv0.m4: New file, from gettext-0.11.5.
69470         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
69471         * m4/inttypes.m4: New file, from gettext-0.11.5.
69472         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
69473         * m4/isc-posix.m4: New file, from gettext-0.11.5.
69474         * m4/lcmessage.m4: New file, from gettext-0.11.5.
69475         * m4/lib-ld.m4: New file, from gettext-0.11.5.
69476         * m4/lib-link.m4: New file, from gettext-0.11.5.
69477         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
69478         * m4/progtest.m4: New file, from gettext-0.11.5.
69479         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
69480         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
69481         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
69482
69483         Module localcharset.
69484         * m4/localcharset.m4: New file.
69485
69486         Module hard-locale.
69487         * m4/hard-locale.m4: New file.
69488
69489         Module mbswidth.
69490         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
69491         onceonly macros.
69492         * m4/mbrtowc.m4: Add comment.
69493
69494         Module memcasecmp.
69495         * m4/memcasecmp.m4: New file.
69496
69497         Module memcoll.
69498         * m4/memcoll.m4: New file.
69499
69500         Module unicodeio.
69501         * m4/unicodeio.m4: New file.
69502
69503         Module rpmatch.
69504         * m4/rpmatch.m4: New file.
69505
69506         Module yesno.
69507         * m4/yesno.m4: New file.
69508
69509         Module exitfail.
69510         * m4/exitfail.m4: New file.
69511
69512         Module c-stack.
69513         * m4/c-stack.m4 (gl_C_STACK): New macro.
69514         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
69515
69516         Module error.
69517         * m4/error.m4 (gl_ERROR): New macro.
69518         (jm_PREREQ_ERROR): Use onceonly macros.
69519
69520         Module fatal.
69521         * m4/fatal.m4: New file.
69522
69523         Module getloadavg.
69524         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
69525         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
69526
69527         Module getpagesize.
69528         * m4/getpagesize.m4: New file.
69529
69530         Module getusershell.
69531         * m4/getusershell.m4: New file.
69532
69533         Module physmem.
69534         * m4/physmem.m4: New file.
69535
69536         Module posixver.
69537         * m4/posixver.m4: New file.
69538
69539         Module quotearg.
69540         * m4/quotearg.m4: New file.
69541
69542         Module quote.
69543         * m4/quote.m4: New file.
69544
69545         Module readutmp.
69546         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
69547
69548         Module sig2str.
69549         * m4/sig2str.m4: New file.
69550
69551         Other.
69552         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
69553         ulonglong.m4.
69554         * m4/intmax_t.m4: New file.
69555         * m4/d-type.m4: Indentation.
69556         * m4/jm-macros.m4: Update.
69557         * m4/prereq.m4 (jm_PREREQ): Update.
69558         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
69559         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
69560         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
69561         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
69562         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
69563         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
69564         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
69565         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
69566         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
69567         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
69568         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
69569         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
69570         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
69571         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
69572         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
69573         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
69574         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
69575         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
69576         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
69577
69578 2002-12-24  Bruno Haible  <bruno@clisp.org>
69579
69580         * MODULES.txt: Update according to m4/ changes.
69581
69582         Module gettext.
69583         * config.rpath: New file, from gettext-0.11.5.
69584
69585         * modules/*: New module descriptions.
69586         * gnulib-tool: New file.
69587         * MODULES.html.sh: New file.
69588
69589 2002-12-21  Karl Berry  <karl@gnu.org>
69590
69591         * doc/fdl.texi: update to version 1.2.
69592
69593 2002-12-19  Karl Berry  <karl@gnu.org>
69594
69595         * config/config.guess: update from prep.
69596
69597 2002-12-18  Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
69600         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
69601
69602 2002-12-17  Bruno Haible  <bruno@clisp.org>
69603
69604         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
69605         stdlib.h, string.h.
69606
69607 2002-12-17  Bruno Haible  <bruno@clisp.org>
69608
69609         * lib/canon-host.c (strdup): Remove unused declaration.
69610
69611         * lib/fsusage.c: Include full_read.h.
69612         (get_fs_usage): Use full_read instead of safe_read.
69613
69614         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
69615
69616 2002-12-12  Karl Berry  <karl@gnu.org>
69617
69618         * config/config.guess: update from prep.
69619
69620 2002-12-11  Bruno Haible  <bruno@clisp.org>
69621
69622         * m4/setenv.m4: New file, from gettext-0.11.5.
69623
69624 2002-12-11  Bruno Haible  <bruno@clisp.org>
69625
69626         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
69627         not unsetenv().
69628         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
69629         modifications:
69630
69631         2002-12-11  Bruno Haible  <bruno@clisp.org>
69632
69633                 * setenv.c (alloca): Fall back to malloc.
69634                 (freea): New macro.
69635                 (setenv): Use freea() to free memory allocated with alloca().
69636
69637         2002-11-13  Bruno Haible  <bruno@clisp.org>
69638
69639                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
69640                 function declarations.
69641                 * unsetenv.c (unsetenv): Likewise.
69642
69643         2002-03-04  Bruno Haible  <bruno@clisp.org>
69644
69645                 Portability to AIX 4.3.3.
69646                 * unsetenv.c: New file, extracted from setenv.c.
69647                 * setenv.c: Move the unsetenv() function to unsetenv.c.
69648
69649         2001-12-20  Bruno Haible  <bruno@clisp.org>
69650
69651                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
69652                 use malloc instead. For SunOS 4.
69653
69654         2001-12-11  Bruno Haible  <bruno@clisp.org>
69655
69656                 * setenv.c: Declare alloca.
69657                 (compar_fn_t): New typedef.
69658                 (KNOWN_VALUE, STORE_VALUE): Use it.
69659
69660         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
69661         setenv.h.
69662
69663 2002-12-10  Paul Eggert  <eggert@twinsun.com>
69664
69665         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
69666         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
69667         Choose values that are less likely to collide with system fnmatch
69668         options.
69669         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
69670         defined (e.g., a pure POSIX system).
69671         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
69672         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
69673
69674 2002-12-06  Paul Eggert  <eggert@twinsun.com>
69675
69676         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
69677         a pain in practice to deal with generated m4 files.  This change
69678         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
69679
69680         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
69681         and jm-glibc-io.m4, as they are no longer a special case.
69682         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
69683         kludge and the auto-generation stuff.  Check only whether the
69684         functions are declared, not whether they exist, since older hosts
69685         that don't declare the functions can't use the optimization anyway.
69686
69687 2002-12-06  Jim Meyering  <jim@meyering.net>
69688
69689         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
69690
69691         Merge in changes from libc's misc/error.c, in preparation
69692         for the merge of gnulib's changes back into libc.
69693
69694         * lib/error.c (_): Define only if not already defined.
69695         Move definition to follow all #include directives.
69696         Include unlocked-io.h only if !_LIBC.
69697         [_LIBC]: Include <libio/libioP.h>.
69698         [USE_IN_LIBIO]: Include <libio/iolibio.h>
69699         (fflush): Tweak definition to use INTUSE.
69700         (putc): Define.
69701
69702 2002-12-05  Paul Eggert  <eggert@twinsun.com>
69703
69704         * lib/alloca.c [defined emacs]: Include "lisp.h".
69705         (xalloc_die) [defined emacs]: New macro.
69706         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
69707         [! defined emacs]: Include <xalloc.h>.
69708         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
69709         (pointer): Typedef to POINTER_TYPE *.
69710         (malloc): Remove decl; we now always use xmalloc.
69711         (alloca): Use old-style definition, since Emacs needs this.
69712         Check for arithmetic overflow when computing combined size.
69713
69714 2002-12-04  Paul Eggert  <eggert@twinsun.com>
69715
69716         Do not generate unlocked-io.h automatically, since it's easier to
69717         maintain it by hand.
69718
69719         * lib/unlocked-io.h: New file, from GNU diffutils,
69720         but with proper copyright notice and attribution.
69721         * lib/gen-uio: Remove.
69722         * lib/Makefile.am: Add copyright notice.
69723         (libfetish_a_SOURCES): Add unlocked-io.h.
69724         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
69725         (DISTCLEANFILES, io_functions): Remove macros.
69726         (EXTRA_DIST): Remove gen_uio.
69727         (unlocked-io.h): Remove rule.
69728
69729 2002-12-04  Jim Meyering  <jim@meyering.net>
69730
69731         Reflect the fact that stat.c and lstat.c are no longer generated.
69732         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
69733         (DISTCLEANFILES): Likewise.
69734         (EXTRA_DIST): Likewise.
69735         (all_local): Don't depend on stat.c or lstat.c.
69736         (stat.c, lstat.c): Remove rules.
69737         (EXTRA_DIST): Remove xstat.in.
69738
69739         * lib/xstat.in: Remove file.  Contents moved into stat.c.
69740         * lib/stat.c: New file.  Contents mostly from xstat.in.
69741         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
69742         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
69743
69744         * lib/safe-read.c: Rework so that it may serve to define safe_write,
69745         too.
69746         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
69747
69748 2002-12-03  Jim Meyering  <jim@meyering.net>
69749
69750         * lib/safe-read.c, safe-write.c: Change variable names and comments,
69751         but not semantics, to minimize the differences between these two files.
69752         (safe_read): Change comment to mention SAFE_READ_ERROR.
69753
69754         * lib/safe-read.c (IS_EINTR): Define.
69755         (safe_read): Use IS_EINTR in place of in-function cpp directives.
69756
69757 2002-12-02  Jim Meyering  <jim@meyering.net>
69758
69759         * lib/safe-read.c (EINTR): Define.
69760         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69761         (INT_MAX): Provide fallback.
69762         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
69763
69764         * lib/safe-read.h (SAFE_READ_ERROR): Define.
69765
69766 2002-12-02  Bruno Haible  <bruno@clisp.org>
69767
69768         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
69769         Define, taken from safe-read.c.
69770         (INT_MAX): Provide fallback.
69771         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
69772         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
69773
69774         * lib/safe-read.c (EINTR): Remove definition.
69775         (safe_read): Don't use EINTR if it is absent.
69776
69777 2002-12-01  Jim Meyering  <jim@meyering.net>
69778
69779         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
69780         zero.
69781         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
69782
69783 2002-11-27  Paul Eggert  <eggert@twinsun.com>
69784
69785         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
69786         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
69787         with `if (! (value < limit)) abort ();', for readability.
69788
69789 2002-11-26  Karl Berry  <karl@gnu.org>
69790
69791         * lib/strdup.c: copy from libc again, with jim's ok.
69792         * lib/.cppi-disable: re-add strdup.c
69793
69794 2002-11-25  Karl Berry  <karl@gnu.org>
69795
69796         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
69797         instead of "strtol.c".
69798
69799 2002-11-25  Karl Berry  <karl@gnu.org>
69800
69801         * config/install-sh: update from automake for variable quoting, $0 in
69802         error msgs, etc.
69803
69804         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
69805         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
69806         entry.
69807
69808 2002-11-25  Jim Meyering  <jim@meyering.net>
69809
69810         * lib/mktime.c: Sync from libc, now that it has the latest fix.
69811
69812 2002-11-24  Karl Berry  <karl@gnu.org>
69813
69814         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
69815         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
69816
69817 2002-11-24  Jim Meyering  <jim@meyering.net>
69818
69819         Update from coreutils:
69820
69821         * lib/mktime.c: Merge in changes from libc.
69822
69823         Avoid a link-time failure on some Linux systems.
69824         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
69825         (otherwise).
69826         (__mon_yday): Declare with the STATIC attribute.
69827         (__mktime_internal): Likewise.
69828         Based on a report from Greg Schafer.
69829
69830 2002-11-23  Jim Meyering  <jim@meyering.net>
69831
69832         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
69833         Use `unsigned', not `int', as type of index.
69834
69835         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
69836
69837         * lib/fsusage.c: Remove unneeded parentheses around operands of
69838         `defined'.
69839
69840 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69841
69842         * lib/quotearg.h: Allow multiple inclusion by surrounding with
69843         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
69844         so that we can be included first.
69845         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
69846         * lib/quotearg.c: Include quotearg.h immediately after config.h.
69847         No need to include stddef.h or sys/types.h any more.
69848         Surround local include files with "", not "<>".
69849         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
69850         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
69851         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
69852         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
69853         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
69854         (ISPRINT): Remove; no longer needed now that we assume C89.
69855
69856         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
69857         Preserve errno.
69858
69859         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
69860         quotearg_char): Use SIZE_MAX rather than
69861         (size_t) -1 when we are talking about "infinity".
69862
69863         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
69864
69865 2002-11-22  Paul Eggert  <eggert@twinsun.com>
69866
69867         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
69868         hint that one should use `if (! x) abort ();' rather than `assert
69869         (x);', and anyway it's one less thing to worry about configuring.
69870         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
69871         hash_rehash, hash_insert): Use abort rather than assert.
69872
69873 2002-11-22  Bruno Haible  <bruno@clisp.org>
69874
69875         * lib/safe-read.h: Assume C89. Add comments.
69876         (safe_read): Change return type to size_t.
69877         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
69878         byte counts > SSIZE_MAX correctly.
69879         * lib/safe-write.h: New file.
69880         * lib/safe-write.c: New file.
69881         * lib/full-read.h: New file.
69882         * lib/full-read.c: New file.
69883         * lib/full-write.h: Assume C89. Add comments.
69884         * lib/full-write.c: Include safe-write.h.
69885         (full_write): Rewritten to use safe_write.
69886         Suggested by Jim Meyering and Paul Eggert.
69887
69888 2002-11-21  Jim Meyering  <jim@meyering.net>
69889
69890         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
69891
69892         Merge in changes from the coreutils.
69893
69894         2002-09-25  Paul Eggert  <eggert@twinsun.com>
69895         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
69896         <stdint.h>.
69897         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
69898         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
69899         int.  Work more efficiently if X is the same width as uintmax_t.
69900         Do not compare X to -1, to avoid bogus compiler warning.
69901         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
69902         Don't assume that f_frsize and f_bsize are the same type.
69903
69904         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
69905         warning on FreeBSD.
69906
69907         * lib/makepath.c (make_path): Restore umask *before* creating the final
69908         component.
69909         (make_path): Minor reformatting.
69910
69911         * lib/xmalloc.c: Adjust to work with new autoconf macros,
69912         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
69913         HAVE_MALLOC/HAVE_REALLOC.
69914
69915         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
69916         dummy ones.  At least on GNU/Linux systems, `auto' means something
69917         else.
69918         From Michael Stone.
69919
69920 2002-11-21  Bruno Haible  <bruno@clisp.org>
69921
69922         Remove case insensitive option matching.
69923         * lib/argmatch.h (argcasematch): Remove declaration.
69924         (ARGCASEMATCH): Remove macro.
69925         (__xargmatch_internal): Remove case_sensitive argument.
69926         (XARGMATCH): Update.
69927         (XARGCASEMATCH): Remove macro.
69928         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
69929         case_sensitive argument.
69930         (argcasematch): Remove function.
69931         (__xargmatch_internal): Remove case_sensitive argument.
69932         (main): Use XARGMATCH instead of XARGCASEMATCH.
69933
69934         * lib/xmalloc.c: Change compile-time error message. Add comment about
69935         required autoconf version.
69936
69937 2002-11-20  Paul Eggert  <eggert@twinsun.com>
69938
69939         Merge argmatch cleanups from Bison.  Assume C89.
69940
69941         * lib/argmatch.c: Include config.h here, not in argmatch.h.
69942         Include stdlib.h, for EXIT_FAILURE.
69943         Always include <string.h>, since we assume C89.
69944         (EXIT_FAILURE): Remove pre-C89 bug workaround.
69945         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
69946         Include <stddef.h> instead, since it's all we need for size_t.
69947         (PARAMS): Remove.  All uses removed.
69948         (ARRAY_CARDINALITY): Do not bother to #undef.
69949         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
69950         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69951         Remove unnecessary parentheses.
69952         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
69953         Insert necessary parentheses.
69954         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
69955         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
69956
69957 2002-11-19  Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
69960         * lib/mbswidth.h: Include <stddef.h>, for size_t.
69961
69962         * lib/mbswidth.h (PARAMS): Remove macro.
69963         (mbswidth, mbsnwidth): Use ANSI C function declarations.
69964         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
69965
69966         * lib/gcd.h (PARAMS): Remove macro.
69967         (gcd): Use ANSI C function declarations.
69968         * lib/gcd.c (gcd): Likewise.
69969
69970 2002-11-15  Bruno Haible  <bruno@clisp.org>
69971
69972         * lib/strcspn.c: Include <stddef.h>.
69973         (strcspn): Use ANSI C function declaration. Change return type to
69974         size_t. Use NULL.
69975         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
69976         (strpbrk): Use NULL.
69977         * lib/strpbrk.h (PARAMS): Remove macro.
69978         (strpbrk): Use ANSI C function declaration.
69979         * lib/strstr.c: Don't include <sys/types.h>.
69980         * lib/strstr.h (PARAMS): Remove macro.
69981         (strstr): Use ANSI C function declarations.
69982
69983 2002-11-14  Karl Berry  <karl@gnu.org>
69984
69985         * config/mkinstalldirs: `do' on separate line, instead of
69986         `for var; do'.
69987
69988 2002-11-06  Bruno Haible  <bruno@clisp.org>
69989
69990         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
69991         * lib/gcd.c (gcd): Likewise.
69992
69993 2002-11-05  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/gcd.h: New file, from gettext-0.11.5.
69996         * lib/gcd.c: New file, from gettext-0.11.5.
69997
69998 2002-11-05  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70001         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70002         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70003         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
70004
70005         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
70006         <libintl.h>.
70007         * lib/makepath.c: Include gettext.h instead of <locale.h> and
70008         <libintl.h>.
70009
70010         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
70011         * lib/human.c: Include gettext.h instead of <libintl.h>.
70012         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
70013         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
70014         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
70015         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
70016         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
70017         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
70018         (textdomain): Remove definition.
70019         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
70020
70021         * lib/long-options.c: Remove include of <libintl.h> and definition of
70022         _.
70023         * lib/same.c: Remove include of <libintl.h> and definition of _.
70024
70025 2002-11-04  Owen Taylor  <otaylor@redhat.com>
70026
70027         * lib/config.charset: A few additions for Solaris.
70028
70029 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70030
70031         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
70032         * lib/localcharset.c (locale_charset): Declare as extern "C".
70033
70034 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
70035
70036         * lib/config.charset: msdos in uk_UA uses CP1125.
70037
70038 2002-11-04  Bruno Haible  <bruno@clisp.org>
70039
70040         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
70041         * lib/strcase.h: New file, from GNU gettext-0.11.5.
70042         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
70043         * lib/strstr.h: New file, from GNU gettext-0.11.5.
70044         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
70045
70046 2002-11-04  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/localcharset.c (locale_charset): Don't return an empty string.
70049
70050 2002-11-04  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
70053         aliases.
70054
70055 2002-11-04  Bruno Haible  <bruno@clisp.org>
70056
70057         * lib/config.charset: Update for newest glibc. Add canonical names
70058         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
70059
70060 2002-11-04  Bruno Haible  <bruno@clisp.org>
70061
70062         * lib/config.charset: Add support for NetBSD.
70063
70064 2002-11-04  Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
70067
70068 2002-11-01  Bruno Haible  <bruno@clisp.org>
70069
70070         * configure.in: Add AC_CONFIG_AUX_DIR call.
70071         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
70072         test/Makefile.
70073         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
70074
70075 2002-09-28  Karl Berry  <karl@gnu.org>
70076
70077         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
70078         installed automake until the next release, since changes have been
70079         made.
70080
70081 2002-09-25  Karl Berry  <karl@gnu.org>
70082
70083         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
70084         * lib/getopt*: copy from libc/posix.
70085         * lib/gettext.h: copy from gettext.
70086         * lib/.cppi-disable: add strdup.c, gettext.h.
70087
70088 2002-09-25  Karl Berry  <karl@gnu.org>
70089
70090         * config/srclist.txt: enable gettext.h check.
70091         * config/config.{guess,sub}: update from prep.
70092         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
70093                 from automake 1.6.3.
70094         See srclist*.
70095
70096 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
70097
70098         * regex.c (PATFETCH): Remove the translating fetch.
70099         (PATFETCH_RAW): Rename to PATFETCH.
70100         (set_image_of_range): New fun.
70101         (SET_RANGE_TABLE_WORK_AREA): Use it.
70102         (regex_compile): Don't translate the pattern chars so eagerly.
70103         Only do it when inserting an `exactn' bytecode or when handling
70104         a char-range.
70105         (mutually_exclusive_p): Avoid empty statement.
70106
70107 2002-07-06  Jim Meyering  <meyering@lucent.com>
70108
70109         * m4/README: Don't mention Makefile.am.in.
70110         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
70111
70112 2002-07-01  Jim Meyering  <meyering@lucent.com>
70113
70114         * lib/c-stack.c: Include sys/time.h.
70115         From Volker Borchert.
70116
70117 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70118
70119         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
70120
70121 2002-06-26  Paul Eggert  <eggert@twinsun.com>
70122
70123         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
70124         New macro.  Use it uniformly instead of
70125         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
70126         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
70127         reported by Vin Shelton.
70128
70129 2002-06-22  Paul Eggert  <eggert@twinsun.com>
70130
70131         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
70132         Do not assume SA_SIGINFO behavior.
70133         Bug reported by Jim Meyering on NetBSD 1.5.2.
70134
70135 2002-06-22  Jim Meyering  <meyering@lucent.com>
70136
70137         * m4/c-stack.m4: New file, from diffutils-2.8.2.
70138         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
70139
70140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
70141         now that configure.ac uses AC_GNU_SOURCE.
70142         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
70143         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
70144
70145         Update to latest tools.  Suggestions from Paul Eggert.
70146         * m4/stdbool.m4: New file, from diffutils-2.8.2.
70147         * m4/gnu-source.m4: Update from diffutils-2.8.2.
70148         * m4/fnmatch.m4: Likewise.
70149         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
70150         to AC_HEADER_STDBOOL
70151
70152 2002-06-22  Jim Meyering  <meyering@lucent.com>
70153
70154         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
70155         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
70156
70157 2002-06-22  Jim Meyering  <meyering@lucent.com>
70158
70159         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
70160
70161         * lib/exitfail.c, exitfail.h: Likewise.
70162         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
70163
70164         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
70165         of fnmatch.h.
70166         (EXTRA_DIST): Add fnmatch_loop.c.
70167         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
70168
70169         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
70170         * lib/fnmatch.c: Update from diffutils-2.8.2.
70171         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
70172         * lib/fnmatch.h: Remove file.
70173
70174 2002-06-21  Jim Meyering  <meyering@lucent.com>
70175
70176         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
70177         * m4/mbrtowc.m4: Likewise.
70178
70179         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
70180         * m4/mbswidth.m4: Reflect name change:
70181         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
70182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70183
70184         * m4/lib-link.m4: Update from gettext-0.11.2.
70185         * m4/gettext.m4: Likewise.
70186
70187         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
70188         From Alfred M. Szmidt.
70189
70190 2002-06-18  Paul Eggert  <eggert@twinsun.com>
70191
70192         * lib/file-type.h: Report an error if neither S_ISREG nor
70193         S_IFREG is defined, instead of using a test specific to glibc
70194         2.2.  This should be safe, since POSIX requires S_ISREG and
70195         Unix Version 7 had S_IFREG.  We don't need to check for
70196         <sys/types.h> since we don't use any symbols that it defines.
70197
70198 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
70199
70200         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
70201         $@-t, so that each temporary file name is unique and valid in the first
70202         8 characters, for operation under DOS.
70203
70204 2002-06-15  Paul Eggert  <eggert@twinsun.com>
70205
70206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
70207
70208 2002-06-15  Jim Meyering  <meyering@lucent.com>
70209
70210         Work even with DJGPP 2.03, which lacks support for symlinks.
70211         From Richard Dawe.
70212         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
70213         is defined.
70214         * lib/lchown.c (S_ISLNK): Likewise.
70215
70216 2002-06-15  Jim Meyering  <meyering@lucent.com>
70217
70218         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
70219         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
70220         have been included before this file.
70221
70222 2002-06-14  Jim Meyering  <meyering@lucent.com>
70223
70224         * lib/file-type.h: Use the version from diffutils-2.8.2.
70225         * lib/file-type.c: Likewise.
70226
70227 2002-06-07  Jim Meyering  <meyering@lucent.com>
70228
70229         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
70230         They're needed at least for NetBSD 1.5.2.
70231         ($statxfs_includes): Include those same headers.
70232         ($statxfs_includes): Include sys/vfs.h if available.
70233         ($statxfs_includes): Likewise for sys/statvfs.h.
70234         Check for the following members in both structs statfs and statvfs:
70235         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
70236
70237 2002-06-01  Jim Meyering  <meyering@lucent.com>
70238
70239         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
70240         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
70241
70242 2002-05-28  Jim Meyering  <meyering@lucent.com>
70243
70244         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
70245         Reported by Volker Borchert.
70246
70247 2002-05-27  Jim Meyering  <meyering@lucent.com>
70248
70249         Fix a problem seen only on nonconforming systems whereby ls.c's
70250         use of localtime, and then of gettimeofday would cause trouble:
70251         the localtime call used to initialize rpl_gettimeofday's save
70252         mechanism would clobber ls's current local time information so
70253         that in any long listing the first file would always be listed
70254         with date 1970-01-01.  Analysis by Volker Borchert.
70255
70256         * lib/gettimeofday.c (localtime): Undefine.
70257         (rpl_localtime): New function.
70258
70259 2002-05-27  Jim Meyering  <meyering@lucent.com>
70260
70261         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
70262         localtime.
70263
70264         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
70265         use the replacement function; it wouldn't resolve at link time.
70266         Reported by Volker Borchert.
70267
70268 2002-05-22  Jim Meyering  <meyering@lucent.com>
70269
70270         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
70271         file-type.h.
70272         * lib/file-type.h: New file.
70273         * lib/file-type.c (file_type): New file/function.  Extracted from
70274         diffutils.
70275
70276 2002-04-30  Jim Meyering  <meyering@lucent.com>
70277
70278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
70279
70280 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70281
70282         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
70283
70284 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70285
70286         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
70287         Do not check for alloca.h (no longer used) or stdbool.h (was never
70288         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
70289
70290 2002-04-29  Paul Eggert  <eggert@twinsun.com>
70291
70292         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
70293
70294 2002-04-29  Jim Meyering  <meyering@lucent.com>
70295
70296         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
70297         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
70298         Use AC_FUNC_STRNLEN here instead.
70299
70300         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
70301         With autoconf-2.53a, it's part of AC_PROG_CC.
70302
70303 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70304
70305         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
70306         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
70307
70308 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70309
70310         * lib/sig2str.h, lib/sig2str.c: New files.
70311         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
70312
70313 2002-04-28  Paul Eggert  <eggert@twinsun.com>
70314
70315         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
70316         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
70317         of 127, since 64 is the largest conceivable number for ancient
70318         nonstandard hosts.
70319         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
70320
70321 2002-04-28  Jim Meyering  <meyering@lucent.com>
70322
70323         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
70324
70325 2002-04-24  Jim Meyering  <meyering@lucent.com>
70326
70327         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
70328         (jm_PREREQ): Use it.
70329
70330         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
70331         mach/mach.h fcntl.h.
70332         Check for this function: setlocale.
70333
70334 2002-04-24  Jim Meyering  <meyering@lucent.com>
70335
70336         * lib/gettext.h: New file, from Gettext.
70337         * lib/Makefile.am (INCLUDES): Remove -I../intl.
70338         (libfetish_a_SOURCES): Add gettext.h.
70339
70340 2002-04-16  Jim Meyering  <meyering@lucent.com>
70341
70342         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
70343         ut_pid, ut_id, ut_exit.
70344
70345 2002-04-16  Jim Meyering  <meyering@lucent.com>
70346
70347         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
70348         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
70349         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
70350
70351 2002-04-12  Jim Meyering  <meyering@lucent.com>
70352
70353         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
70354         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
70355         existence of the getmntinfo function.  Needed for Darwin 5.3.
70356
70357         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
70358         This is necessary at least on Darwin 5.3.
70359
70360         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
70361         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
70362         strnlen.o in the library, and that makes some versions of ranlib
70363         object.
70364
70365 2002-04-12  Jim Meyering  <meyering@lucent.com>
70366
70367         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
70368
70369 2002-04-09  Jim Meyering  <meyering@lucent.com>
70370
70371         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
70372         to be more precise.  Rather than saying we're checking whether the
70373         function `works', say what we're testing.
70374         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
70375         Reported by Bruno Haible.
70376
70377 2002-03-10  Jim Meyering  <meyering@lucent.com>
70378
70379         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
70380         Suggestion from Santiago Vila.
70381
70382 2002-03-08  Jim Meyering  <meyering@lucent.com>
70383
70384         * lib/rename.c: Mention that this wrapper is needed also on
70385         mips-dec-ultrix4.4 systems.
70386
70387 2002-03-02  Jim Meyering  <meyering@lucent.com>
70388
70389         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
70390         not HAVE_CLOCK_SETTIME.
70391
70392 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70393
70394         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
70395         Check for clock_settime.
70396
70397 2002-02-27  Paul Eggert  <eggert@twinsun.com>
70398
70399         * lib/nanosleep.h: Rename to....
70400         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
70401
70402         * lib/gettime.c: New file.
70403         * lib/settime.c: New file.
70404         * lib/stime.c: Remove.
70405
70406         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
70407         timespec.h.  Remove nanosleep.h.
70408
70409 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70410
70411         * m4/acl.m4: New file.
70412         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
70413         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
70414
70415 2002-02-25  Paul Eggert  <eggert@twinsun.com>
70416
70417         * lib/acl.c, lib/acl.h: New files.
70418         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
70419
70420 2002-02-24  Jim Meyering  <meyering@lucent.com>
70421
70422         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
70423         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
70424         cause trouble.  Reported by Nelson Beebe.
70425
70426 2002-02-23  Paul Eggert  <eggert@twinsun.com>
70427
70428         * lib/path-concat.c (xpath_concat): Reorder code to pacify
70429         compilers that don't know that xalloc_die never returns.
70430
70431 2002-02-20  Jim Meyering  <meyering@lucent.com>
70432
70433         * lib/getdate.c: Regenerate using bison-1.33.
70434
70435 2002-02-17  Jim Meyering  <meyering@lucent.com>
70436
70437         * config/config.guess (main): Don't use `head -1'; it's no longer
70438         portable. Use `sed 1q' instead.
70439
70440 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
70441
70442         * m4/codeset.m4: Upgrade to gettext-0.11.
70443         * m4/gettext.m4: Upgrade to gettext-0.11.
70444         * m4/glibc21.m4: Upgrade to gettext-0.11.
70445         * m4/iconv.m4: Upgrade to gettext-0.11.
70446         * m4/isc-posix.m4: Upgrade to gettext-0.11.
70447         * m4/lcmessage.m4: Upgrade to gettext-0.11.
70448         * m4/lib-ld.m4: New file, from gettext-0.11.
70449         * m4/lib-link.m4: New file, from gettext-0.11.
70450         * m4/lib-prefix.m4: New file, from gettext-0.11.
70451         * m4/progtest.m4: Upgrade to gettext-0.11.
70452
70453 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70454
70455         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
70456         (jm_PREREQ): Use it.
70457
70458 2002-02-15  Paul Eggert  <eggert@twinsun.com>
70459
70460         * lib/posixver.c, lib/posixver.h: New files.
70461         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70462
70463 2002-02-02  Paul Eggert  <eggert@twinsun.com>
70464             Bruno Haible  <bruno@clisp.org>
70465
70466         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
70467         (fwrite_success_callback): New declaration.
70468         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
70469         print_unicode_char. Call failure callback instead of error.
70470         (fwrite_success_callback): New function.
70471         (exit_failure_callback): New function.
70472         (fallback_failure_callback): New function.
70473         (print_unicode_char): Call unicode_to_mb.
70474
70475 2002-01-26  Jim Meyering  <meyering@lucent.com>
70476
70477         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
70478         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
70479
70480 2002-01-26  Jim Meyering  <meyering@lucent.com>
70481
70482         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
70483
70484 2002-01-22  Paul Eggert  <eggert@twinsun.com>
70485
70486         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
70487
70488 2002-01-22  Jim Meyering  <meyering@lucent.com>
70489
70490         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
70491         Otherwise, some versions of automake would omit the rule that makes
70492         Makefile from Makefile.in.
70493
70494 2002-01-21  Paul Eggert  <eggert@twinsun.com>
70495
70496         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
70497         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
70498         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
70499         (memcoll): Set errno to zero if there is no error.
70500
70501         * lib/quotearg.c (quotearg_buffer_restyled):
70502         Fix bug with quoting buffers containing NUL when backslashing escapes.
70503         This bug was exposed by the other changes in this patch.
70504         (quotearg_n_options): New arg ARGSIZE.
70505         All callers changed.
70506         (quoting_options_from_style): New function.
70507         (quotearg_n_style): Use it.
70508         (quotearg_n_style_mem): New function.
70509
70510         * lib/quotearg.h (quotearg_n_style_mem): New function.
70511
70512 2002-01-19  Jim Meyering  <meyering@lucent.com>
70513
70514         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
70515         Remove useless quotes: DF_PROG="df".
70516         * m4/strnlen.m4: New file.
70517
70518 2002-01-16  Paul Eggert  <eggert@twinsun.com>
70519
70520         * lib/backupfile.c (ISDIGIT): Comment fix.
70521         * lib/getdate.y (ISDIGIT): Likewise.
70522         * lib/posixtm.c (ISDIGIT, year): Likewise.
70523         * lib/strverscmp.c (ISDIGIT): Likewise.
70524         * lib/userspec.c (ISDIGIT): Likewise.
70525
70526 2002-01-16  Jim Meyering  <meyering@lucent.com>
70527
70528         * lib/getdate.y: Add three semicolons, each just before a closing
70529         brace. Bison (as of version 1.31) no longer papers over that mistake.
70530
70531 2002-01-05  Jim Meyering  <meyering@lucent.com>
70532
70533         * lib/version-etc.c (version_etc_copyright): Update copyright year.
70534
70535 2001-12-19  Paul Eggert  <eggert@twinsun.com>
70536
70537         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
70538         not silently exit merely because the output buffer happens to
70539         have nothing pending.
70540
70541 2001-12-18  Paul Eggert  <eggert@twinsun.com>
70542
70543         See the big note in ../ChangeLog.
70544         * lib/human.c (suffixes): Prefer K to k for 1024.
70545         (generate_suffix_backwards): New function.
70546         (human_readable_inexact): Use it.
70547         * lib/xstrtol.c (__xstrtol): If there is no number but there
70548         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
70549         Accept 'K' as well as 'k'.
70550
70551 2001-12-15  Jim Meyering  <meyering@lucent.com>
70552
70553         * lib/regex.h (__restrict_arr): Update from libc.
70554
70555         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
70556         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
70557         (STREQ): Define.
70558
70559 2001-12-14  Jim Meyering  <meyering@lucent.com>
70560
70561         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
70562         Suggestion from Bruno Haible.
70563
70564 2001-12-10  Jim Meyering  <meyering@lucent.com>
70565
70566         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
70567         xrealloc, Instead, include "xalloc.h".
70568         (initbuffer): Don't cast xmalloc return value to char*.
70569         (readline): Reword comment.
70570         Don't cast xrealloc return value to char*
70571         Return NULL, not 0.
70572
70573 2001-12-09  Jim Meyering  <meyering@lucent.com>
70574
70575         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
70576         about `signed and unsigned type in conditional expression'.
70577         * lib/posixtm.c (posix_time_parse): Likewise.
70578
70579         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
70580
70581         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
70582         to avoid a pedantic warning.
70583
70584         * lib/getstr.c: Don't include assert.h.
70585         (getstr): Remove warning-evoking assertions.
70586         Return -1 if offset parameter is out of bounds.
70587         Change the type of a local from int to size_t.
70588
70589         * lib/strftime.c (my_strftime_localtime_r): Include this function
70590         definition in the `#if ! HAVE_TM_GMTOFF' block.
70591
70592         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
70593         Include xalloc.h instead.
70594
70595 2001-12-02  Jim Meyering  <meyering@lucent.com>
70596
70597         * lib/tempname.c: Don't declare getenv, thus reverting the change of
70598         2001-11-18.  It's no longer necessary, now that stdlib.h is always
70599         included.
70600
70601         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
70602         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
70603
70604 2001-11-30  Akim Demaille  <akim@epita.fr>
70605
70606         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
70607         before being defined.
70608
70609 2001-11-27  Paul Eggert  <eggert@twinsun.com>
70610
70611         * lib/quotearg.h (quotearg_n, quotearg_n_style):
70612         First arg is int, not unsigned.
70613         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
70614         (SIZE_MAX, UINT_MAX): New macros.
70615         (quotearg_n_options): Abort if N is negative.
70616         Avoid overflow check on hosts where size_t is 64 bits and int
70617         is 32 bits, as overflow is impossible there.
70618         Fix off-by-one typo that caused unnecessary reallocation.
70619
70620 2001-11-27  Jim Meyering  <meyering@lucent.com>
70621
70622         * lib/tempname.c: Merge with version from libc.
70623         * lib/regex.c: Likewise.
70624
70625         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
70626         systems for which STDC_HEADERS is 0, it was not included, resulting in
70627         a warning about an integer-to-pointer conversion problem with getenv.
70628         Reported by Volker Borchert.
70629
70630 2001-11-26  Jim Meyering  <meyering@lucent.com>
70631
70632         * lib/gtod.h: Remove file.
70633         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
70634         * lib/gettimeofday.c: Don't include gtod.h.
70635         (GTOD_init): Remove function.
70636         (rpl_gettimeofday): Do its job here instead, rather than aborting.
70637         Suggestion from Volker Borchert.
70638
70639 2001-11-23  Jim Meyering  <meyering@lucent.com>
70640
70641         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
70642         it.
70643         * lib/hash.c (struct hash_table): Define it here instead.
70644
70645 2001-11-22  Jim Meyering  <meyering@lucent.com>
70646
70647         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
70648
70649 2001-11-20  Jim Meyering  <meyering@lucent.com>
70650
70651         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
70652         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
70653
70654 2001-11-19  Jim Meyering  <meyering@lucent.com>
70655
70656         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
70657         directory.  Use "conftestXXXXXX" as the template.
70658         Suggestion from Paul Eggert.
70659
70660         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
70661         immediately, so the test doesn't mistakenly hit the max-open-files
70662         limit.
70663
70664 2001-11-18  Paul Eggert  <eggert@twinsun.com>
70665
70666         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
70667         (TEMPORARIES): New macro.
70668         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
70669         removes an artificial limitation (e.g. HP-UX 10.20, where
70670         TMP_MAX is 17576).
70671
70672 2001-11-18  Jim Meyering  <meyering@lucent.com>
70673
70674         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
70675
70676 2001-11-18  Jim Meyering  <meyering@lucent.com>
70677
70678         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
70679         on SunOS 4.
70680
70681         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
70682         files will be created before anything else.
70683
70684 2001-11-17  Paul Eggert  <eggert@twinsun.com>
70685
70686         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
70687         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
70688
70689 2001-11-17  Jim Meyering  <meyering@lucent.com>
70690
70691         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
70692         Prompted by a report from Bob Proulx.
70693
70694         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
70695         Instead, require UTILS_FUNC_MKSTEMP.
70696
70697 2001-11-17  Jim Meyering  <meyering@lucent.com>
70698
70699         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
70700         Now, that's done as part of AC_FUNC_STRTOD.
70701
70702 2001-11-17  Jim Meyering  <meyering@lucent.com>
70703
70704         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
70705         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
70706         rather than group writable.  Patch by Juan F. Codagnone.
70707
70708         * lib/readtokens.c: Remove explicit declarations of xmalloc and
70709         xrealloc, Instead, include "xalloc.h".
70710
70711         * lib/mountlist.c: Include unlocked-io.h after all system headers.
70712         Remove explicit declarations of xmalloc, xrealloc,
70713         and xstrdup.  Instead, include "xalloc.h".
70714
70715         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
70716         unlocked-io.h.
70717         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
70718         Likewise.
70719         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
70720
70721         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
70722         Reported by Padraig Brady.
70723
70724         * lib/mkstemp.c: #undef mkstemp.
70725         Include config.h.
70726         (rpl_mkstemp): Rename from mkstemp.
70727         Protoize.
70728
70729 2001-11-16  Jim Meyering  <meyering@lucent.com>
70730
70731         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
70732         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
70733         determine the amount of total physical memory, use pstat_getstatic.
70734         HPUX-11 doesn't define _SC_PHYS_PAGES.
70735         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
70736         If sysconf couldn't be used to determine the amount of available
70737         physical memory, use both pstat_getstatic and pstat_getdynamic.
70738         Based on a patch from Bob Proulx.
70739
70740 2001-11-10  Jim Meyering  <meyering@lucent.com>
70741
70742         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
70743         (jm_PREREQ): Use it.
70744
70745 2001-11-09  Jim Meyering  <meyering@lucent.com>
70746
70747         * m4/jm-macros.m4: Require autoconf-2.52f.
70748         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
70749         Use these AC_-prefixed names, not the AM_-prefixed ones.
70750
70751         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
70752
70753 2001-11-05  Jim Meyering  <meyering@lucent.com>
70754
70755         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
70756
70757 2001-11-04  Jim Meyering  <meyering@lucent.com>
70758
70759         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
70760         $DEFS.
70761
70762 2001-11-03  Jim Meyering  <meyering@lucent.com>
70763
70764         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
70765         of AC_DEFUN.
70766
70767         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
70768         know the name of the variable in the macro definition.
70769
70770 2001-11-03  Jim Meyering  <meyering@lucent.com>
70771
70772         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
70773         in argmatch_to_argument call.
70774
70775         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
70776         argument.
70777
70778         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
70779         e.g., a fault due to an attempt to free a NULL pointer.
70780
70781 2001-11-01  Jim Meyering  <meyering@lucent.com>
70782
70783         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
70784         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
70785
70786 2001-11-01  Jim Meyering  <meyering@lucent.com>
70787
70788         * lib/dirfd.c, lib/dirfd.h: New files.
70789         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
70790
70791         * lib/hash.c (hash_print) [TESTING]: Clean up.
70792
70793 2001-10-22  Paul Eggert  <eggert@twinsun.com>
70794
70795         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
70796         to avoid a warning if -Wall.
70797
70798 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
70799
70800         * README: New file
70801         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
70802         (per RMS's instructions, this is now the canonical source)
70803         * lgpl/, gpl/: New directories.
70804
70805 2001-10-21  Paul Eggert  <eggert@twinsun.com>
70806
70807         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
70808
70809 2001-10-21  Jim Meyering  <meyering@lucent.com>
70810
70811         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
70812         this code would end up calling gettext even in packages built
70813         with --disable-nls.
70814         * lib/getopt.c (_): Likewise.
70815         * lib/regex.c (_): Likewise.
70816
70817 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70818
70819         * m4/error.m4 (jm_PREREQ_ERROR):
70820         Do not invoke AC_CHECK_FUNCS with strerror_r, as
70821         AC_FUNC_STRERROR_R does that.
70822         Check for strerror declaration.
70823
70824         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
70825         are supposed to have them these days.
70826         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
70827         Merge changes from latest Autoconf CVS.
70828         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
70829         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
70830         POSIX decided to standardize on the int flavor of strerror_r.
70831
70832 2001-10-20  Paul Eggert  <eggert@twinsun.com>
70833
70834         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
70835         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
70836         Use strerror_r that is only a macro, even if it is not a function.
70837         (strerror): Check for HAVE_DECL_STRERROR before declaring.
70838         (private_strerror): Use prototypes, not old-style function definition.
70839         (print_errno_message): New function.
70840         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
70841         char*-flavored one.
70842         (error_tail, error, error_at_line): Use it.
70843
70844 2001-10-11  Jim Meyering  <meyering@lucent.com>
70845
70846         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
70847         and quote_n (1, ... to avoid clobbering a buffer.
70848
70849 2001-10-05  Jim Meyering  <meyering@lucent.com>
70850
70851         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
70852         hash-pjw.h.
70853         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
70854         * lib/hash-pjw.h: New file.
70855
70856 2001-09-30  Jim Meyering  <meyering@lucent.com>
70857
70858         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
70859         `struct fsstat' has the `f_fstypename' member.
70860         Use that to define FS_TYPE, which is now used to make
70861         the getfsstat link test tighter.
70862
70863 2001-09-30  Jim Meyering  <meyering@lucent.com>
70864
70865         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
70866         Include <sys/ucred.h>, for Apple Darwin.
70867         Include sys/mount.h and sys/fs_types.h only if available.
70868         (FS_TYPE): Define.
70869         (read_filesystem_list): Use FS_TYPE.
70870
70871 2001-09-29  Paul Eggert  <eggert@twinsun.com>
70872
70873         * lib/exclude.c (excluded_filename): 0 -> false, since it's
70874         a boolean context.
70875
70876 2001-09-29  Jim Meyering  <meyering@lucent.com>
70877
70878         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70879         [one-argument getmntent function]): Include stdio.h before mntent.h.
70880         SunOS 4.1.x needs it for the declaration of `FILE'.
70881         Patch by Volker Borchert.
70882
70883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
70884         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
70885         sys/fs_types.h, and make the link-test for getfsstat guard #include
70886         directives with appropriate #if HAVE_*_H tests so that we can
70887         detect getfsstat on Apple Darwin1.3.7 systems.
70888         Reported by Nelson Beebe.
70889         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
70890
70891 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70892
70893         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70894         #defines strtoimax.  Also treat the other strto* functions
70895         like strtoimax.
70896
70897         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70898         Check for strtoul and strtoumax,
70899         as those declarations are made even in the signed case.
70900         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
70901         Likewise, for strtol and strtoimax.
70902
70903 2001-09-28  Paul Eggert  <eggert@twinsun.com>
70904
70905         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
70906         #defines strtoimax.  Also treat the other strto* functions
70907         like strtoimax.
70908
70909         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
70910         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
70911         (strtoimax, strtoumax): Do not declare if already defined as a macro.
70912
70913 2001-09-26  Jim Meyering  <meyering@lucent.com>
70914
70915         Most macros in unlocked-io.h had the wrong number of arguments.
70916         * lib/gen-uio: New script.
70917         (USE_UNLOCKED_IO): Define to 1 if not already defined.
70918         * lib/unlocked-io.hin: Remove file.
70919         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
70920         rather than trying to embed it here.
70921         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
70922         Reported by Padraig Brady.
70923
70924 2001-09-25  Volker Borchert  <bt@teknon.de>
70925
70926         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
70927         `result'.
70928
70929 2001-09-24  Jim Meyering  <meyering@lucent.com>
70930
70931         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
70932
70933 2001-09-23  Jim Meyering  <meyering@lucent.com>
70934
70935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
70936         instead of the mere test for existence of mntent.h.  The latter
70937         would get a false-positive on AIX 3.4 systems.
70938         In the outer getmntent if-block, don't die if neither of the getmntent
70939         tests succeeds.  Instead, just fall through and continue with the
70940         remaining tests.
70941
70942 2001-09-23  Jim Meyering  <meyering@lucent.com>
70943
70944         * lib/mountlist.c: Remove useless parentheses in #if directives.
70945         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
70946         the deprecated MOUNTED symbol is no longer defined in mntent.h.
70947
70948 2001-09-22  Jim Meyering  <meyering@lucent.com>
70949
70950         * m4/gettext.m4: New file.  From gettext.
70951         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
70952         * m4/progtest.m4: Likewise
70953         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
70954         * m4/glibc21.m4: Likewise.
70955
70956         * m4/libintl.m4: Remove.  No longer used.
70957
70958 2001-09-22  Jim Meyering  <meyering@lucent.com>
70959
70960         * lib/localcharset.c: Update from latest gettext.
70961         * lib/config.charset: Likewise.
70962
70963 2001-09-20  Jim Meyering  <meyering@lucent.com>
70964
70965         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
70966         strtoimax.
70967         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
70968         strtoumax.
70969
70970 2001-09-20  Jim Meyering  <meyering@lucent.com>
70971
70972         * lib/xstrtol.c (strtoimax): Guard declaration with
70973         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
70974         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
70975         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
70976         (strtoumax): Likewise, for completeness (it wasn't necessary).
70977
70978 2001-09-17  Paul Eggert  <eggert@twinsun.com>
70979
70980         * lib/strtoimax.c (HAVE_LONG_LONG):
70981         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
70982         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
70983         to work around bug in IBM C compiler.
70984
70985 2001-09-17  Jim Meyering  <meyering@lucent.com>
70986
70987         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
70988         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
70989         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
70990         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
70991         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
70992         whenever the right hand side need not be expanded by the shell.
70993
70994 2001-09-16  Paul Eggert  <eggert@twinsun.com>
70995
70996         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
70997         library.  It's not correct, as some older glibcs are buggy.
70998         fnmatch wasn't fixed until glibc 2.2.
70999
71000         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
71001         special shell magic here.
71002
71003 2001-09-16  Jim Meyering  <meyering@lucent.com>
71004
71005         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
71006         * m4/jm-macros.m4: Require it.
71007
71008 2001-09-16  Jim Meyering  <meyering@lucent.com>
71009
71010         * lib/mkdir.c: New file.
71011
71012 2001-09-15  Jim Meyering  <meyering@lucent.com>
71013
71014         * m4/jm-macros.m4: Check for help2man.
71015
71016 2001-09-11  Jim Meyering  <meyering@lucent.com>
71017
71018         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
71019         The body, by Paul Eggert, was moved here from configure.in.
71020         * m4/jm-macros.m4: Require UTILS_HOST_OS.
71021
71022 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71023
71024         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
71025         (jm_PREREQ): Use it.
71026
71027 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71028
71029         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
71030         Use ssize_t, not int, to store result of readlink.
71031         Check for ssize_t overflow as well as size_t overflow,
71032         as POSIX says the result of readlink is implementation-defined
71033         when ssize_t overflows.
71034         Remove unnecessary cast to char*.
71035         Use free+malloc instead of realloc, as the storage doesn't need
71036         to be preserved and it's clearer and can be more efficient that way.
71037         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
71038         * lib/xreadlink.h (xreadlink): Update prototype.
71039
71040 2001-09-04  Paul Eggert  <eggert@twinsun.com>
71041
71042         * lib/xgetcwd.c: Revert some of the previous change; intead,
71043         fix the HAVE_GETCWD_NULL code to behave more like the
71044         !HAVE_GETCWD_NULL code used to.
71045
71046         Include "xalloc.h".
71047         (xgetcwd): Do not return NULL when memory is exhausted; instead,
71048         invoke xalloc_die.
71049
71050 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71051
71052         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
71053         sys/param.h, as pathmax.h includes them.
71054
71055 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71056
71057         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
71058         (jm_PREREQ_XGETCWD): New macro.
71059
71060         * m4/getcwd.m4: New file.
71061
71062 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71063
71064         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
71065         like the HAVE_GETCWD_NULL code.
71066         Include pathmax.h if not HAVE_GETCWD.
71067         Do not include xalloc.h.
71068         (INITIAL_BUFFER_SIZE): New symbol.
71069         Do not use xmalloc / xrealloc, since the caller is responsible for
71070         handling errors.  Preserve errno around `free' during failure.
71071         Do not overrun buffer when using getwd.
71072
71073 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71074
71075         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
71076         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
71077         getcwd (NULL, 0).
71078
71079 2001-09-03  Paul Eggert  <eggert@twinsun.com>
71080
71081         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
71082         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
71083         spotted by Jim Meyering.
71084
71085 2001-09-03  Jim Meyering  <meyering@lucent.com>
71086
71087         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
71088         failure.
71089
71090 2001-09-02  Jim Meyering  <meyering@lucent.com>
71091
71092         * lib/error.c: Update from GNU libc.
71093
71094 2001-09-01  Jim Meyering  <meyering@lucent.com>
71095
71096         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
71097         Used by df.
71098
71099 2001-09-01  Jim Meyering  <meyering@lucent.com>
71100
71101         * lib/xreadlink.c: New file.
71102         * lib/xreadlink.h: New file.
71103         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
71104         xreadlink.h.
71105
71106         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
71107         doesn't conflict with sparc Solaris 7's definition in
71108         /usr/include/sys/int_types.h.
71109
71110         * lib/exclude.c: Use `""', not `<>' to #include non-system header
71111         files.
71112         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
71113         and strncasecmp as r-values.  Unixware didn't have declarations.
71114
71115 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71116
71117         * lib/xstrtol.h: Add copyright notice.
71118         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
71119         LONGINT_INVALID_SUFFIX_CHAR.
71120
71121 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71122
71123         * lib/xstrtol.c (strtoimax): New decl.
71124
71125 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71126
71127         * lib/xgetcwd.c: Don't include pathmax.h.
71128         Include stdlib.h and unistd.h if available.
71129         Include xalloc.h.
71130         (xmalloc, xstrdup, free): Remove decls.
71131         (xgetcwd): Don't assume sizes fit in unsigned.
71132         Check for overflow when computing sizes.
71133         Simplify reallocation code.
71134
71135 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71136
71137         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
71138         a directory's st_size can have an arbitrary value, so the old
71139         usage could waste an arbitrary amount of memory.  All uses
71140         changed.
71141         * lib/savedir.h: Update prototype.
71142
71143 2001-08-31  Paul Eggert  <eggert@twinsun.com>
71144
71145         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
71146
71147         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
71148         old strtoimax.c.
71149
71150         Also, make the following further changes to make this file's
71151         configuration more similar to that of strtol.c:
71152         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
71153         (strtoumax, uintmax_t, strtoull, strtol): Remove.
71154         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
71155         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
71156         changed to signed values.
71157
71158         And make the following changes as well:
71159         Fix copyright notice, as 1999 was missing.
71160         (verify): New macro.
71161         (strtoimax): Check sizes at compile-time, not run-time.
71162         Prefer strtol to strtoll if both work.
71163         (main): Remove; it was not that useful and was a pain to maintain.
71164
71165         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
71166
71167 2001-08-31  Jim Meyering  <meyering@lucent.com>
71168
71169         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
71170         Use an initial, malloc'd, buffer of length 128 rather than
71171         a statically allocated one of length 1024.
71172
71173 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71174
71175         Simplify code, partly by assuming autoconf 2.52 semantics.
71176
71177         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
71178
71179         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
71180         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
71181         All uses removed.
71182         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
71183         Move AC_REQUIRE to next-to-top level, to avoid confusion.
71184         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
71185         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
71186         jm_AC_HEADER_INTTYPES_H.
71187         * m4/jm-macros.m4 (jm_MACROS): Likewise.
71188
71189         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
71190
71191         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
71192         Quote first arg of AC_DEFUN.
71193         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
71194         since they are needed to parse the include file even if we need
71195         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
71196         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
71197         but with opposite signedness.
71198
71199 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71200
71201         Merge 'exclude' changes from tar 1.13.22.
71202         This fixes one or two unlikely storage allocation overflow bugs,
71203         but doesn't change user-visible behavior otherwise.
71204
71205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71206
71207         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
71208         (jm_PREREQ_EXCLUDE): New macro.
71209
71210 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71211
71212         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
71213         tm to be declared.
71214
71215 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71216
71217         * lib/hash.c: Remove '2001' from copyright notice.
71218
71219 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71220
71221         * lib/full-write.h: New file.
71222         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
71223         * lib/full-write.c: Correct credits, as cccp.c no longer
71224         exists and anyway it was so heavily changed from the old cccp
71225         code as to be unrecognizable.  Include full-write.h.
71226         (full_write) Return size_t, with short writes meaning failure.
71227         All callers changed.  This fixes a bug with large buffers
71228         on 64-bit hosts.
71229         * lib/utime.c: Include full-write.h.
71230
71231 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71232
71233         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
71234         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
71235         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
71236         Include if available.
71237         (<xalloc.h>): Include
71238         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
71239         (verify): New macro.  Use it to verify that EXCLUDE macros do not
71240         collide with FNM macros.
71241         (struct patopts): New struct.
71242         (struct exclude): Use it, as exclude patterns now come with options.
71243         (new_exclude): Support above changes.
71244         (new_exclude, add_exclude_file):
71245         Initial size must now be a power of two to simplify overflow checking.
71246         (free_exclude, fnmatch_no_wildcards): New function.
71247         (excluded_filename): No longer requires options arg, as the options
71248         are determined by add_exclude.  Now returns bool, not int.
71249         (excluded_filename, add_exclude):
71250         Add support for the fancy new exclusion options.
71251         (add_exclude, add_exclude_file): Now takes int options arg.
71252         Check for arithmetic overflow when computing sizes.
71253         (add_exclude_file): xrealloc might modify errno, so don't
71254         realloc until after errno might be used.
71255
71256         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
71257         New macros.
71258         (free_exclude): New decl.
71259         (add_exclude, add_exclude_file): Now takes int options arg.
71260         (excluded_filename): No longer requires options arg, as the options
71261         are determined by add_exclude.  Now returns bool, not int.
71262
71263 2001-08-30  Paul Eggert  <eggert@twinsun.com>
71264
71265         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
71266
71267 2001-08-27  Jim Meyering  <meyering@lucent.com>
71268
71269         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
71270
71271         * lib/version-etc.c (N_): Remove definition.
71272         Revert most of last change.
71273         Instead, simply don't mark the `Copyright...' string for translation.
71274         Based on advice from Paul Eggert.
71275
71276         * lib/strtoxmax.c: Tweak comment.
71277
71278 2001-08-26  Jim Meyering  <meyering@lucent.com>
71279
71280         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
71281
71282         * m4/xstrtoimax.m4: New file.
71283         * m4/xstrtoumax.m4: Add comments explaining why we
71284         AC_REPLACE_FUNCS(strtol).
71285
71286 2001-08-26  Jim Meyering  <meyering@lucent.com>
71287
71288         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
71289         of copyright with `%s' so translators don't get an untranslated
71290         message in 2002.
71291         (COPYRIGHT_YEAR): Define.
71292         (version_etc): Use fprintf rather than fputs.
71293         Suggestion from Ulrich Drepper.
71294
71295         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
71296
71297         * lib/strtoll.c: New file, from GNU libc.
71298         * lib/xstrtoimax.c: New file.
71299
71300         * lib/xstrtol.h: Add xstrtoimax.
71301         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
71302         * lib/strtoimax.c: New file.  Likewise, but first define
71303         STRTOUXMAX_SIGNED.
71304
71305         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
71306         ...
71307         * lib/strtoxmax.c: ... then renamed to this.
71308
71309 2001-08-18  Paul Eggert  <eggert@twinsun.com>
71310
71311         * m4/inttypes.m4: Add AC_PREREQ(2.13).
71312         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
71313         (jm_AC_TYPE_INTMAX_T): New macro.
71314         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
71315
71316         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
71317
71318         * m4/longlong.m4: Renamed from ulonglong.m4.
71319         * m4/inttypes.m4: Renamed from inttypes_h.m4.
71320         * m4/uintmax_t.m4: Removed.
71321
71322 2001-08-13  Paul Eggert  <eggert@twinsun.com>
71323
71324         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
71325         Port to Solaris 8, where 'sed' requires a space after the 'r'
71326         command, and where sh dislikes "$/".  Clean up the spacing a bit.
71327         Redirect output to $tmp just once.
71328
71329 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
71330
71331         * lib/addext.c (<errno.h>): Include.
71332         (errno): Declare if not defined.
71333         (addext): Work correctly when pathconf returns -1 and leaves
71334         errno alone because there is no limit.  Also, work even if
71335         pathconf returns a value greater than SIZE_MAX.
71336
71337 2001-08-12  Jim Meyering  <meyering@lucent.com>
71338
71339         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
71340         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
71341         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
71342         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
71343         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
71344         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
71345         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
71346         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
71347         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
71348         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
71349         utime.m4, utimes.m4, xstrtoumax.m4:
71350         Quote the first argument in each use of AC_DEFUN.
71351
71352 2001-08-12  Jim Meyering  <meyering@lucent.com>
71353
71354         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
71355         Simply `return getcwd (NULL, 0);'.
71356         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
71357         Use 1300 as initial value for length, not PATH_MAX.
71358
71359         * lib/pathmax.h: Clean up cpp syntax.
71360
71361 2001-08-12  Jim Meyering  <meyering@lucent.com>
71362
71363         * lib/gettimeofday.c: New file.
71364         * lib/gtod.h: New file.
71365         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
71366
71367 2001-08-05  Jim Meyering  <meyering@lucent.com>
71368
71369         * m4/jm-macros.m4: Require autoconf-2.52.
71370
71371 2001-08-04  Jim Meyering  <meyering@lucent.com>
71372
71373         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
71374         stmt, to get in sync with glibc.
71375
71376 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71377
71378         The following changes are from gettext 0.10.39 as maintained by
71379         Bruno Haible.
71380
71381         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
71382         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
71383         with inverted sense.  All uses changed.
71384
71385         * lib/mbswidth.c: Don't include <limits.h>.
71386         Include <stdlib.h> and <string.h> unconditionally.
71387         (iswcntrl, mbsinit, ISCNTRL): New macros.
71388         (mbsnwidth): Use K&R style function declarations.
71389         Don't bother checking for MB_LEN_MAX == 1, since the compiler
71390         can optimize it when MB_CUR_MAX == 1.
71391         The width of control characters is zero, not 1.
71392
71393 2001-08-03  Paul Eggert  <eggert@twinsun.com>
71394
71395         The following changes are from gettext 0.10.39 as maintained by
71396         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
71397
71398         * m4/codeset.m4: Upgrade to serial AM1.
71399         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
71400         all uses changed.  Quote first arg of AC_DEFUN.
71401         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
71402
71403         * m4/iconv.m4: Upgrade to serial AM2.
71404         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
71405         Add --with-libconv-prefix.
71406         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
71407         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
71408         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
71409         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
71410         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
71411
71412         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
71413         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
71414         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
71415         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
71416         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
71417         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
71418         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71419         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
71420         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71421
71422         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
71423         string.h any more.
71424
71425         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
71426         not the default value.
71427
71428         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
71429         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
71430         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
71431         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
71432         Also check for iswcntrl, used for wcwidth fallback.
71433         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
71434         to Autoconf 2.13.
71435
71436 2001-08-03  Jim Meyering  <meyering@lucent.com>
71437
71438         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
71439         as it was in the original.  Reported by Paul Eggert.
71440
71441 2001-07-16  Jim Meyering  <meyering@lucent.com>
71442
71443         * m4/gettimeofday.m4: New file.
71444         Prompted by a report from Bernhard Baehr.
71445
71446 2001-07-15  Jim Meyering  <meyering@lucent.com>
71447
71448         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
71449         stuff. Now it's in ../Makefile.cfg.
71450
71451 2001-07-15  Jim Meyering  <meyering@lucent.com>
71452
71453         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
71454         (BUILT_SOURCES): Add unlocked-io.h.
71455         (io_functions): Define.
71456         (unlocked-io.h): New rule.
71457         (DISTCLEANFILES): Add unlocked-io.h.
71458         (all-local): Depend on unlocked-io.h, to ensure it is created.
71459
71460         * lib/unlocked-io.hin: New file
71461
71462         * lib/regex.c: Update from glibc.
71463
71464 2001-07-05  Jim Meyering  <meyering@lucent.com>
71465
71466         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
71467         recommendation.
71468         (libfetish_a_SOURCES): Put all .h files here instead.
71469         Remove a thus-exposed (better checks in automake) duplicate and
71470         two unnecessary .h files.
71471
71472 2001-07-04  Jim Meyering  <meyering@lucent.com>
71473
71474         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
71475         that generates jm-glibc-io.m4 so that it doesn't trigger any make
71476         distcheck failure.
71477
71478 2001-07-02  Jim Meyering  <meyering@lucent.com>
71479
71480         The following changes were prompted by suggestions from Bruno Haible.
71481
71482         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
71483         is now generated.
71484         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
71485         definition of EXTRA_DIST.
71486         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
71487         ensure that the generated file is created/updated whenever the list
71488         of $(unlocked_functions) is changed.
71489         (jm-glibc-io.m4): New rule.
71490         (unlocked-io.h): New rule -- currently unused.
71491
71492 2001-06-24  Jim Meyering  <meyering@lucent.com>
71493
71494         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
71495         unmatched right bracket, rather than kludging it with an extra,
71496         falsely-matching quote in a comment.  Patch by Akim Demaille.
71497
71498 2001-06-11  Jim Meyering  <meyering@lucent.com>
71499
71500         * lib/regex.c: Update from GNU libc.
71501
71502 2001-05-27  Jim Meyering  <meyering@lucent.com>
71503
71504         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
71505         Check for ut_type in struct utmp.
71506
71507 2001-05-27  Jim Meyering  <meyering@lucent.com>
71508
71509         * lib/readutmp.h (UT_TYPE): Define.
71510
71511 2001-05-24  Jim Meyering  <meyering@lucent.com>
71512
71513         * lib/argmatch.c: Include "quote.h".
71514         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
71515         quote function.  Reported by Göran Uddeborg.
71516
71517 2001-05-22  Jim Meyering  <meyering@lucent.com>
71518
71519         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
71520         now that we use the package-supplied version unconditionally.
71521         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
71522
71523 2001-05-21  Jim Meyering  <meyering@lucent.com>
71524
71525         * m4/regex.m4: Change a couple backticks to single quotes to avoid
71526         shell syntax errors.
71527
71528 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71529
71530         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
71531
71532 2001-05-20  Paul Eggert  <eggert@twinsun.com>
71533
71534         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
71535         Don't bother to check library strftime, since
71536         we'll be using our own my_strftime function anyway.
71537         Define my_strftime instead of strftime.
71538
71539 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
71540
71541         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
71542         which is not yet declared.
71543
71544 2001-05-15  Jim Meyering  <meyering@lucent.com>
71545
71546         * m4/regex.m4: Use proper quoting so brackets appear in the test
71547         program.
71548         Reported by, and with help from, Bruno Haible.
71549
71550 2001-05-13  Jim Meyering  <meyering@lucent.com>
71551
71552         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
71553         undefined.
71554
71555 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71556
71557         dirname code cleanup.  base_name now behaves more compatibly
71558         with POSIX basename when given file names that have trailing
71559         slashes, and similarly for dir_name.  Add new primitives
71560         base_len and dir_len.  Put the directory-name-related decls
71561         into dirname.h.
71562
71563         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
71564         * lib/backupfile.c (base_name): Likewise.
71565         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
71566         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
71567         * lib/makepath.c (strip_trailing_slashes): Likewise.
71568         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
71569         ISSLASH): Likewise.
71570         * lib/rename.c (strip_trailing_slashes): Likewise.
71571         * lib/same.c (base_name): Likewise.
71572         * lib/stripslash.c (ISSLASH): Likewise.
71573
71574         * lib/addext.c: Include <dirname.h> after size_t is defined.
71575         * lib/backupfile.c: Likewise.
71576
71577         * lib/addext.c (addext): Use base_len to trim redundant
71578         trailing slashes instead of doing it ourselves.
71579         But do not trim the last slash if it is not redundant.
71580
71581         * lib/backupfile.c (find_backup_file_name,
71582         max_backup_version): Use base_len instead of rolling it ourselves.
71583         Handle the case of "" and (on DOS) "C:" correctly.
71584
71585         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
71586         needed. Include <string.h>, <dirname.h>.
71587         (base_name): Allow file names ending in slashes, other than names
71588         that are all slashes.  In this case, return the basename followed
71589         by the slashes.  This is more general, and can be used in places
71590         where the original base_name purposely had an assertion failure.
71591         (base_len): New function.
71592
71593         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
71594         Do not include <assert.h>; no longer needed.
71595         Include xalloc.h.
71596         (memrchr): Remove decl.
71597         (dir_name_r): Remove.
71598         (dir_len): Renamed from dirlen.  All callers changed.
71599         Rewrite in terms of base_name, for simplicity and consistency.
71600         (dir_name): Never return NULL.  All callers changed.
71601         Do not include <stdlib.h> in test program; no longer needed.
71602         return 0; is fine for test program.
71603
71604         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
71605         New macros.
71606         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
71607
71608         * lib/path-concat.c (path_concat): Use base_len to compute
71609         base length, not strlen; this means we cannot rely on memcpy
71610         to null-terminate.
71611
71612         * lib/same.c (STREQ): Remove.
71613         (same_name): Handle the case where the basename ends in trailing '/'.
71614
71615         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
71616         a slash was stripped.  Do not strip the last slash after a
71617         file system prefix.
71618
71619 2001-05-11  Paul Eggert  <eggert@twinsun.com>
71620
71621         * lib/Makefile.am (libfetish_a_SOURCES):
71622         Add strftime.c, since we now compile it on all hosts.
71623
71624         * lib/strftime.c (my_strftime):
71625         Define to nstrftime if emacs, but only if my_strftime is not defined.
71626         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
71627         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
71628         Add one more extra argument: a nanoseconds value.
71629         All uses changed.
71630         (ns): New macro.
71631         (my_strftime function): Add %N format.
71632         (emacs_strftimeu): Renamed from emacs_strftime,
71633         with extra ut argument.
71634
71635 2001-05-09  Paul Eggert  <eggert@twinsun.com>
71636
71637         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
71638
71639 2001-04-21  Jim Meyering  <meyering@lucent.com>
71640
71641         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
71642         doesn't interfere.
71643
71644 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
71645
71646         * m4/ftruncate.m4: Check for chsize.
71647         Link with ftruncate.o unconditionally if ftruncate is missing.
71648         This was required when cross-compiling to i586-mingw32msvc.
71649
71650 2001-04-08  Jim Meyering  <meyering@lucent.com>
71651
71652         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
71653         recomputed; that's necessary when the offset spans a DST transition.
71654         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
71655
71656 2001-04-02  Jim Meyering  <meyering@lucent.com>
71657
71658         * lib/regex.h, regex.c: Update from GNU libc.
71659
71660 2001-03-24  Jim Meyering  <meyering@lucent.com>
71661
71662         * m4/jm-macros.m4: Require autoconf-2.49d.
71663
71664 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
71665
71666         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
71667
71668 2001-03-19  Paul Eggert  <eggert@twinsun.com>
71669
71670         * lib/version-etc.c (version_etc_copyright): Update to 2001.
71671
71672 2001-03-17  Jim Meyering  <meyering@lucent.com>
71673
71674         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
71675         now that the version in autoconf is equivalent.
71676         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
71677
71678         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
71679         Suggestion from Akim Demaille.
71680
71681         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
71682         (jm_PREREQ_TEMPNAME): New function.
71683
71684 2001-03-16  Paul Eggert  <eggert@twinsun.com>
71685
71686         * lib/tempname.c (uint64_t): Define to uintmax_t if
71687         not defined, and if UINT64_MAX is not defined.
71688         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
71689         Reported by John David Anglin.
71690
71691 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
71692
71693         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
71694         resolve alias if codeset is empty.
71695         * lib/config.charset (BeOS): Use wildcard syntax.
71696
71697 2001-03-13  Jim Meyering  <meyering@lucent.com>
71698
71699         * lib/path-concat.c (path_concat)
71700         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
71701         concatenating e.g., `C:' and `foo'.
71702         From Bruno Haible.
71703
71704 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71705
71706         * lib/localcharset.c (locale_charset): Don't use
71707         setlocale(LC_CTYPE,NULL). Don't return NULL.
71708         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
71709
71710 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
71711
71712         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
71713         support for DOS/DJGPP.
71714
71715 2001-03-01  Paul Eggert  <eggert@twinsun.com>
71716
71717         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
71718         lacks mkstemp.  Compile our own tempname.c if we compile our own
71719         mkstemp.c, as mkstemp relies on tempname.
71720
71721 2001-03-01  Jim Meyering  <meyering@lucent.com>
71722
71723         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
71724         AH_VERBATIM really does output its argument verbatim.
71725
71726 2001-02-28  Paul Eggert  <eggert@twinsun.com>
71727
71728         * lib/Makefile.am (libfetish_a_SOURCES):
71729         Add dup-safer.c, fopen-safer.c.
71730         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
71731
71732         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
71733         * lib/unistd-safer.h: New files.
71734
71735 2001-02-25  Paul Eggert  <eggert@twinsun.com>
71736
71737         The mkstemp replacement is taken from glibc 2.2.2, with some
71738         portability fixes for use outside glibc, as follows:
71739
71740         * lib/tempname.c (struct_stat64): New macro.
71741         (direxists, __gen_tempname): Use it.
71742         This avoids a portability problem with Solaris 8.
71743
71744         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
71745         (<stddef.h>, <stdint.h>, <string.h>):
71746         Include only if STDC_HEADERS || _LIBC.
71747         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
71748         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
71749         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
71750         (__set_errno): Define this macro if <errno.h> doesn't.
71751         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
71752         Define these macros if <stdio.h> doesn't.
71753         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
71754         Define these macros if <sys/stat.h>
71755         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
71756         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
71757         __xstat64): Define if not _LIBC.
71758         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
71759         (__gen_tempname): Invoke gettimeofday only if
71760         HAVE_GETTIMEOFDAY || _LIBC;
71761         otherwise, fall back on plain "time".
71762         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
71763
71764         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
71765
71766         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
71767
71768 2001-02-18  Paul Eggert  <eggert@twinsun.com>
71769
71770         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
71771
71772 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71773
71774         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
71775         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
71776         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
71777         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71778
71779 2001-02-17  Paul Eggert  <eggert@twinsun.com>
71780
71781         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
71782         Remove workaround macros for hosts that have mbrtowc but not
71783         mbstate_t, as we now insist on proper declarations for both
71784         before using mbrtowc.
71785
71786 2001-02-17  Jim Meyering  <meyering@lucent.com>
71787
71788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
71789         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
71790         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
71791         UnixWare 7.1.1.
71792
71793         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
71794         rather than AC_CACHE_VAL.
71795
71796 2001-02-17  Jim Meyering  <meyering@lucent.com>
71797
71798         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
71799         around included file name.
71800
71801         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
71802
71803         * lib/strftime.c: Update from GNU libc (the only changes were to
71804         comments).
71805
71806 2001-02-17  Jim Meyering  <meyering@lucent.com>
71807
71808         * lib/regex.c: Update from libc.
71809
71810 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
71811
71812         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
71813         clash.
71814
71815 2001-02-16  Paul Eggert  <eggert@twinsun.com>
71816
71817         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
71818         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
71819         Reported by Mark Hounschell via Paul Eggert.
71820
71821 2001-02-07  Jim Meyering  <meyering@lucent.com>
71822
71823         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
71824
71825 2001-02-05  Jim Meyering  <meyering@lucent.com>
71826
71827         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
71828         it includes the patch required for `large file' support with at least
71829         HP-UX's 10.20 /bin/cc.
71830
71831 2001-02-03  Jim Meyering  <meyering@lucent.com>
71832
71833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
71834         AS_IF, now that it works once again (mysteriously).
71835         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71836
71837 2001-01-30  Jim Meyering  <meyering@lucent.com>
71838
71839         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
71840         * m4/chown.m4: Rename conftestchown to conftest.chown.
71841         * m4/rename.m4: s/conftestdir/conftest.d1/ and
71842         s/conftestdir2/conftest.d2/.
71843         * m4/utimes.m4: s/conftestdata/conftest.data/
71844         Inspired by Pavel Roskin's change in autoconf.
71845
71846 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
71847
71848         * lib/config.charset: Update for FreeBSD 4.2.
71849
71850 2001-01-27  Jim Meyering  <meyering@lucent.com>
71851
71852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
71853         a use of AS_IF.
71854         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
71855
71856 2001-01-26  Jim Meyering  <meyering@lucent.com>
71857
71858         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
71859         quotearg.c includes it.
71860
71861 2001-01-26  Jim Meyering  <meyering@lucent.com>
71862
71863         * lib/quotearg.c: Include stddef.h.
71864         * lib/quote.c: Include stddef.h.
71865         Reported by Axel Kittenberger.
71866
71867         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
71868         line in double quotes so that it evokes a better diagnostic.
71869         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
71870         Reported by Axel Kittenberger.
71871
71872 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
71873
71874         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
71875         as if it was a `charset'.
71876
71877 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71878
71879         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
71880         has const.
71881
71882 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
71883
71884         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
71885         to avoid a warning.  Add back 'const' to inptr.
71886
71887 2001-01-20  Jim Meyering  <meyering@lucent.com>
71888
71889         Be sure that headers are checked before used in code compiled
71890         for the type checks.
71891         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
71892         In place of that, invoke jm_CHECK_ALL_TYPES.
71893         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
71894         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
71895         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
71896         The check for ssize_t was mistakenly run before the test for unistd.h.
71897
71898         The configure-time check for stdbool.h was missing.
71899         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
71900         (jm_PREREQ_HASH): New function.
71901
71902 2001-01-17  Jim Meyering  <meyering@lucent.com>
71903
71904         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
71905         for autoconf-2.49c.
71906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
71907
71908 2001-01-16  Jim Meyering  <meyering@lucent.com>
71909
71910         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
71911         From Bruno Haible.
71912
71913 2001-01-14  Jim Meyering  <meyering@lucent.com>
71914
71915         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
71916         foo and bar.  Create conftestdir/ in the script, not in the C code.
71917         Remove directories in the script, not in the C code.
71918         Remove conftestdir{,2} before trying to create the directory.
71919         Make the entire configure script fail if the mkdir fails.
71920
71921 2001-01-14  Jim Meyering  <meyering@lucent.com>
71922
71923         * lib/rename.c: New file.  From Volker Borchert.
71924         Include stdlib.h, string.h or strings.h, and xalloc.h.
71925         Use strip_trailing_slashes rather than open-coding it.
71926
71927 2001-01-03  Paul Eggert  <eggert@twinsun.com>
71928
71929         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
71930
71931 2001-01-03  Jim Meyering  <meyering@lucent.com>
71932
71933         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
71934         of local `inptr' to avoid warning with some system declarations of
71935         iconv.
71936
71937 2001-01-02  Volker Borchert  <bt@teknon.de>
71938
71939         * m4/rename.m4: New file.
71940         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
71941
71942 2001-01-01  Jim Meyering  <meyering@lucent.com>
71943
71944         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
71945         even on systems with utmpx.h.  It's necessary for the declaration of
71946         utmp's ut_user member.  Reported by Andreas Jaeger.
71947
71948         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
71949         available. They are required for the declarations of getgrgid and
71950         getpwuid resp.
71951         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
71952         Reported by Andreas Jaeger.
71953
71954 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
71955
71956         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
71957         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
71958         so `make install' also works in VPATH builds.
71959
71960 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
71961
71962         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
71963         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
71964         can be used in subdirectories.
71965
71966 2000-12-29  Paul Eggert  <eggert@twinsun.com>
71967
71968         * lib/modechange.c: Do not assume that mode_t uses the
71969         traditional octal encoding.  E.g. "chmod 1 FOO" should set
71970         the other-execute bit of FOO even if S_IXOTH != 1.
71971
71972         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
71973         WOTH, XOTH, ALLM): New macros.
71974         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
71975          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
71976         Use them.
71977         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
71978         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
71979         (mode_compile):
71980         No need to use uintmax_t; unsigned long is long enough.
71981         Don't bother to get suffix since we don't use it.
71982
71983 2000-12-26  Jim Meyering  <meyering@lucent.com>
71984
71985         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
71986         better with autoheader.
71987
71988 2000-12-24  Jim Meyering  <meyering@lucent.com>
71989
71990         * lib/hash.c (is_prime): Return explicit boolean values.
71991         (hash_get_first): Return NULL to appease Irix5.6's 89.
71992         Reported by Nelson Beebe.
71993
71994 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
71995
71996         * lib/localcharset.c (locale_charset): Add support for Win32.
71997
71998 2000-12-18  Paul Eggert  <eggert@twinsun.com>
71999
72000         * lib/physmem.h, lib/physmem.c: New files.
72001
72002         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
72003         (noinst_HEADERS): Add physmem.h.
72004
72005         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
72006         't' for compatibility with Solaris 8 sort.
72007
72008 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
72009
72010         * lib/config.charset: Add support for BeOS.
72011
72012 2000-12-17  Jim Meyering  <meyering@lucent.com>
72013
72014         * m4/dos.m4 (jm_AC_DOS): New file and macro.
72015         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
72016
72017 2000-12-16  Jim Meyering  <meyering@lucent.com>
72018
72019         This bug had a serious impact on chown: `chown N:M FILE' (for integer
72020         N and M) would have treated it like `chown N:N FILE'.
72021
72022         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
72023
72024 2000-12-16  Jim Meyering  <meyering@lucent.com>
72025
72026         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
72027         SHELLS_FILE to a file name that's useful on djgpp systems.
72028         Include stdlib.h.
72029         (ADDITIONAL_DEFAULT_SHELLS): Define.
72030         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
72031         Based mostly on a patch from Prashant TR.
72032
72033 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
72034
72035         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
72036         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
72037         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
72038
72039 2000-12-08  Andreas Schwab  <schwab@suse.de>
72040
72041         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
72042         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
72043
72044 2000-12-07  Jim Meyering  <meyering@lucent.com>
72045
72046         * lib/stripslash.c (ISSLASH): Define.
72047         (strip_trailing_slashes): Use ISSLASH rather than comparing against
72048         `/'.
72049         From Prashant TR.
72050
72051         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
72052         (dir_name_r): Declare this function as static.
72053         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
72054         manifest itself on a name containing a mix of slashes and
72055         backslashes.
72056         Make this function work with names starting with a DOS-style
72057         drive letter and colon prefix.
72058         (dir_name): Append `.' if necessary.
72059         Based mostly on patches from Prashant TR and Eli Zaretskii.
72060
72061         * lib/dirname.h (dir_name_r): Remove prototype.
72062
72063 2000-12-06  Paul Eggert  <eggert@twinsun.com>
72064
72065         * m4/off_t-format.m4: Remove this file.
72066         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
72067
72068 2000-12-06  Jim Meyering  <meyering@lucent.com>
72069
72070         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
72071         replacement strtoull, we may well need the replacement strtoul, too.
72072         Check for declarations of strtoul and strtoull.
72073         Check for strtol.  Mainly as a cue to cause automake to include
72074         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
72075         Check for limits.h -- strtol.c needs it.
72076
72077 2000-12-05  Jim Meyering  <meyering@lucent.com>
72078
72079         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
72080
72081 2000-12-04  Jim Meyering  <meyering@lucent.com>
72082
72083         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
72084         Also include memory.h, stdlib.h, unistd.h if appropriate.
72085         Reported by Andreas Jaeger (conflicting declaration of malloc).
72086
72087 2000-12-02  Jim Meyering  <meyering@lucent.com>
72088
72089         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
72090         * m4/jm-macros.m4 (jm_MACROS): require it.
72091
72092 2000-12-02  Jim Meyering  <meyering@lucent.com>
72093
72094         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
72095
72096 2000-12-01  Paul Eggert  <eggert@twinsun.com>
72097
72098         * lib/memrchr.c: Include <config.h> before any system include file.
72099
72100 2000-11-30  Jim Meyering  <meyering@lucent.com>
72101
72102         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
72103
72104 2000-11-30  Jim Meyering  <meyering@lucent.com>
72105
72106         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
72107
72108 2000-11-29  Paul Eggert  <eggert@twinsun.com>
72109
72110         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
72111
72112 2000-11-26  Jim Meyering  <meyering@lucent.com>
72113
72114         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
72115
72116 2000-11-22  Paul Eggert  <eggert@twinsun.com>
72117
72118         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
72119         size of (size_t) -1; it's not portable.
72120
72121 2000-11-17  Jim Meyering  <meyering@lucent.com>
72122
72123         * lib/strstr.c: Update from GNU libc.
72124
72125 2000-11-17  Akim Demaille  <akim@epita.fr>
72126
72127         * lib/obstack.h: Formatting changes.
72128         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
72129         prevent type checking.
72130         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
72131         cast the value to (void *): assigning a `foo *' to a `void *'
72132         variable is valid.
72133         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
72134
72135 2000-11-16  Jim Meyering  <meyering@lucent.com>
72136
72137         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
72138
72139 2000-11-11  Jim Meyering  <meyering@lucent.com>
72140
72141         * lib/error.c: Add a couple #includes, merging from GNU libc version.
72142
72143 2000-11-10  Jim Meyering  <meyering@lucent.com>
72144
72145         * lib/obstack.h: Update from GNU libc.
72146         * lib/obstack.c: Likewise.
72147
72148 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
72149
72150         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
72151
72152 2000-11-06  Paul Eggert  <eggert@twinsun.com>
72153
72154         * lib/getusershell.c (setusershell): Use rewind rather than
72155         fseek/fseeko, to avoid configuration hassles with fseeko.
72156         Don't bother opening SHELLS_FILE if shellstream is NULL;
72157         it's not necessary.
72158
72159 2000-11-05  Jim Meyering  <meyering@lucent.com>
72160
72161         * lib/makepath.h (make_dir): Declare.
72162         * lib/makepath.c (make_dir): Remove `static' attribute.
72163         Tweak a comment.
72164
72165 2000-11-04  Jim Meyering  <meyering@lucent.com>
72166
72167         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
72168
72169 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
72170
72171         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
72172         last one in a bucket, advance to the next bucket.
72173
72174 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
72175
72176         * lib/fnmatch.c: Do not comment out all the code if we are using
72177         the GNU C library, because in some cases we are replacing buggy
72178         code in the GNU C library itself.
72179
72180 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
72181
72182         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
72183         (regex_compile): Catch bogus \(\1\).
72184
72185 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72186
72187         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
72188         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
72189         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
72190
72191 2000-10-30  Paul Eggert  <eggert@twinsun.com>
72192
72193         * lib/error.h, getline.h, modechange.h:
72194         Remove "2000" from Copyright line, as the file hasn't been
72195         changed this year other than in the copyright notice.
72196
72197         * lib/xalloc.h: Add "2000" to Copyright line, as this file
72198         was changed this year.
72199
72200 2000-10-29  Jim Meyering  <meyering@lucent.com>
72201
72202         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
72203         renaming.
72204         * m4/ls-mntd-fs.m4: Likewise
72205
72206 2000-10-29  Jim Meyering  <meyering@lucent.com>
72207
72208         * lib/xstat.in: Fix grammar in comment.
72209
72210 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
72211
72212         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
72213         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
72214         doesn't define __restrict_arr.
72215
72216 2000-10-28  Jim Meyering  <meyering@lucent.com>
72217
72218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
72219         (jm_PREREQ_MEMCHR): New function.
72220
72221 2000-10-28  Jim Meyering  <meyering@lucent.com>
72222
72223         * lib/memchr.c: Update from libc.
72224         Adjust for portability:
72225         [HAVE_STDLIB_H]: Include stdlib.h.
72226         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
72227         Undef __memchr, too.
72228         [!weak_alias]: Define __memchr to memchr.
72229
72230         * lib/regex.c: Update from libc.
72231         * lib/regex.h: Likewise.
72232         * lib/getopt1.c: Likewise.
72233         * lib/memcmp.c: Likewise.
72234
72235         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
72236         Avoid using fseek, when possible -- it's broken by design.
72237         Patch by Ulrich Drepper.
72238
72239 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
72240
72241         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
72242         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
72243         Giving in to popular pressure to shut up the compiler with casts.
72244
72245 2000-10-26  Jim Meyering  <meyering@lucent.com>
72246
72247         * lib/strftime.c: Update from libc.
72248
72249 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
72250
72251         * regex.c: More `unsigned char' -> `re_char' changes.
72252         Also change several `int' into `re_wchar_t'.
72253         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
72254         (PUSH_FAILURE_POINTER): Don't cast any more.
72255         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
72256         We want GCC to complain, since this piece of code makes
72257         re_match non-reentrant, which *should* be fixed.
72258         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
72259         (EXTEND_BUFFER): Use RETALLOC.
72260         (SET_LIST_BIT): Don't cast.
72261         (re_wchar_t): New type.
72262         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
72263         that those two functions will always properly return.
72264         (IMMEDIATE_QUIT_CHECK): Cast to void.
72265         (analyse_first): Use recursion rather than an explicit stack.
72266         (re_compile_fastmap): Can't fail anymore.
72267         (re_search_2): Don't check re_compile_fastmap for failure.
72268         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
72269         Now also sets the new value (passed in a new argument).
72270         (re_match_2_internal): Use it.
72271         Also, use a new var `reg' of type size_t when looping through regs
72272         rather than reuse the inappropriate `mcnt'.
72273
72274 2000-10-25  Jim Meyering  <meyering@lucent.com>
72275
72276         * lib/obstack.c: Update from libc.
72277
72278 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
72279
72280         * regex.c (regex_compile): Change the way of handling a range from
72281         a char less than 256 to a char not less than 256.
72282
72283 2000-10-24  Andrew Innes  <andrewi@gnu.org>
72284
72285         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
72286         NT-Emacs only.
72287         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
72288         so that re_search functions only quit when callers expect them to.
72289
72290 2000-10-23  Jim Meyering  <meyering@lucent.com>
72291
72292         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
72293         wrong.  That set_locale call must not have any side effects.
72294         From Paul Eggert.
72295
72296 2000-10-22  Jim Meyering  <meyering@lucent.com>
72297
72298         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
72299         [CYCLIC]: Remove now-unused definition.
72300
72301         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
72302         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
72303         Suggestion from Ulrich Drepper.
72304
72305 2000-10-21  Jim Meyering  <meyering@lucent.com>
72306
72307         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
72308         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
72309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
72310
72311 2000-10-21  Jim Meyering  <meyering@lucent.com>
72312
72313         * lib/dirname.c (memrchr): Declare if necessary.
72314         (dir_name): Remove the restriction that there be no
72315         trailing slashes.  Now, this code skips past them, effectively
72316         ignoring them.
72317         [TEST_DIRNAME] (main): New unit tests.
72318
72319         * lib/memrchr.c: New file from GNU libc.
72320         Undef __memrchr, too.
72321         [!weak_alias]: Define __memrchr to memrchr.
72322         Guard weak_alias use with `#ifdef weak_alias'.
72323
72324 2000-10-21  Jim Meyering  <meyering@lucent.com>
72325
72326         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
72327         (dir_name): Use dir_name_r.
72328         * lib/dirname.h (dir_name_r): Declare it.
72329
72330 2000-10-17  Jim Meyering  <meyering@lucent.com>
72331
72332         * lib/quote.h (PARAMS): Define and use.
72333         Reported by Akim Demaille.
72334
72335         * lib/getopt.c: Update from libc.
72336
72337 2000-10-16  Jim Meyering  <meyering@lucent.com>
72338
72339         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
72340         setlocale.
72341         From Jan Fedak.
72342
72343 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
72344
72345         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
72346
72347 2000-09-25  Jim Meyering  <meyering@lucent.com>
72348
72349         * lib/md5.h (rol): Define (from GnuPG).
72350
72351         * lib/sha.c: Give credit (GnuPG) where due.
72352         (M): Use rol rather than open-coding it.
72353         Add a FIXME comment.
72354
72355 2000-09-21  Jim Meyering  <meyering@lucent.com>
72356
72357         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
72358         Reported by Michael Stone.
72359
72360 2000-09-20  Jim Meyering  <meyering@lucent.com>
72361
72362         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
72363         (noinst_HEADERS): Add sha.h.
72364         Based on code from Scott G. Miller and from GnuPG.
72365
72366 2000-09-18  Jim Meyering  <meyering@lucent.com>
72367
72368         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
72369         LIBS. Otherwise, everyone ends up linking with -lelf for some
72370         configurations.
72371         Reported by Mike Stone.
72372
72373 2000-09-15  Jim Meyering  <meyering@lucent.com>
72374
72375         * lib/regex.c: Update from libc.
72376
72377 2000-09-10  Jim Meyering  <meyering@lucent.com>
72378
72379         * lib/getopt.c (_getopt_internal): Update from glibc.
72380
72381 2000-09-09  Jim Meyering  <meyering@lucent.com>
72382
72383         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
72384         think it should be used as a general replacement for isascii.
72385         * lib/fnmatch.c: Likewise.
72386         * lib/mbswidth.c: Likewise
72387         * lib/regex.c: Likewise.
72388
72389         Don't use atoi.
72390         * lib/userspec.c: Include sys/param.h and limits.h.
72391         Include xstrtol.h.
72392         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
72393         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
72394         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
72395         UID, GID.  Check range.
72396
72397 2000-09-06  Jim Meyering  <meyering@lucent.com>
72398
72399         * lib/getopt.c (_getopt_internal): Update from glibc.
72400
72401 2000-08-30  Jim Meyering  <meyering@lucent.com>
72402
72403         * lib/strftime.c: Merge in changes from GNU libc.
72404
72405 2000-08-26  Jim Meyering  <meyering@lucent.com>
72406
72407         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
72408         * m4/fpending.m4: New file.
72409
72410 2000-08-26  Jim Meyering  <meyering@lucent.com>
72411
72412         * lib/closeout.c: Include "__fpending.h".
72413         (close_stdout_status): Return right away if there's nothing to flush.
72414
72415         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
72416         * lib/__fpending.c: New file.
72417         * lib/__fpending.h: New file.
72418
72419 2000-08-20  Jim Meyering  <meyering@lucent.com>
72420
72421         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
72422         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
72423         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
72424
72425 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
72426
72427         Improve fileutils installation on systems where running
72428         programs (like install) can't be unlinked.
72429         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
72430         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
72431
72432 2000-08-07  Paul Eggert  <eggert@twinsun.com>
72433
72434         Standardize on "memory exhausted" instead of "Memory exhausted"
72435         or "virtual memory exhausted".
72436         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
72437         "virtual memory exhausted".
72438         * lib/same.c (same_name): Invoke xalloc_die instead of printing
72439         our own message.
72440         * lib/userspec.c (parse_user_spec): Likewise.
72441         * lib/bumpalloc.h: comment fix
72442         * lib/same.c, userspec.c: Include xalloc.h.
72443
72444         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
72445         not char *const and pointing to a constant array.
72446         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
72447         (xrealloc): Comment fix.
72448
72449         * lib/userspec.c (parse_user_spec):
72450         Don't translate a message until just before returning,
72451         to avoid unnecessary translation.
72452
72453 2000-08-07  Jim Meyering  <meyering@lucent.com>
72454
72455         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
72456         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
72457         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
72458         getgroups.c, gethostname.c, getopt.h, group-member.c,
72459         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
72460         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
72461         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
72462         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
72463         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
72464         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
72465         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
72466         yesno.c: Back out Copyright date changes for each file with no change
72467         this year.  This eases coordination with other programs using the same
72468         source code modules.  From Paul Eggert.
72469
72470 2000-08-06  Paul Eggert  <eggert@twinsun.com>
72471
72472         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
72473         not char, for compatibility with glibc 2.1.3 strftime.c.
72474
72475 2000-08-03  Greg McGary  <greg@mcgary.org>
72476
72477         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
72478         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
72479         (EXTEND_BUFFER): Use them.
72480
72481 2000-08-01  Jim Meyering  <meyering@lucent.com>
72482
72483         * lib/dirname.c (ISSLASH): Define.
72484         (BACKSLASH_IS_PATH_SEPARATOR): Define.
72485         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
72486         both `\' and `/' may be use as path separators.
72487         Based on a patch from Prashant TR.
72488
72489 2000-07-31  Paul Eggert  <eggert@twinsun.com>
72490
72491         * lib/quotearg.c (quotearg_n_options): Don't make the initial
72492         slot vector a constant, since it might get modified.
72493
72494 2000-07-31  Jim Meyering  <meyering@lucent.com>
72495
72496         * lib/xmalloc.c: Use `virtual memory exhausted', not
72497         `Memory exhausted'.
72498         * lib/obstack.c (print_and_abort): Likewise.
72499
72500 2000-07-30  Paul Eggert  <eggert@twinsun.com>
72501
72502         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
72503         buffer, so that the caller can always quote one small
72504         component of a "memory exhausted" message in slot 0.
72505         From a suggestion by Jim Meyering.
72506
72507 2000-07-30  Jim Meyering  <meyering@lucent.com>
72508
72509         * lib/makepath.c (make_path): Quote the other instance, too.
72510
72511         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
72512         (STATIC_BUF_SIZE): Define.
72513         (quotearg_n_options): Use only statically allocated storage when
72514         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
72515         than STATIC_BUF_SIZE.
72516
72517 2000-07-29  Jim Meyering  <meyering@lucent.com>
72518
72519         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
72520         * lib/dirname.c (dir_name): Likewise.
72521
72522         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
72523         `/'.
72524
72525         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
72526         (dir_name): Assert that there are no trailing slashes.
72527
72528 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
72529
72530         * lib/mbswidth.h (mbswidth): Add a flags argument.
72531         (mbswidth): New declaration.
72532         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
72533         * lib/mbswidth.c (mbswidth): Add a flags argument.
72534         (mbsnwidth): New function.
72535
72536 2000-07-24  Jim Meyering  <meyering@lucent.com>
72537
72538         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
72539
72540 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72541
72542         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
72543
72544 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72545
72546         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
72547         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
72548         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
72549         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
72550         invoke multibyte primitives.
72551
72552 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72553
72554         * lib/quotearg.c:
72555         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
72556         so that mbstate_t is always defined.
72557
72558         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
72559         be 1 in at least one GCC installation, and this configuration
72560         error is likely to be common.  Ignoring MB_LEN_MAX hurts
72561         performance on hosts that have mbrtowc but have only unibyte
72562         locales, but I assume these hosts are rare.
72563
72564 2000-07-23  Paul Eggert  <eggert@twinsun.com>
72565
72566         * lib/mbswidth.c (_XOPEN_SOURCE):
72567         Don't define; this causes problems on Solaris 7.
72568         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
72569
72570 2000-07-23  Jim Meyering  <meyering@lucent.com>
72571
72572         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
72573         too: getgrgid, getpwuid, getuid.
72574
72575 2000-07-23  Jim Meyering  <meyering@lucent.com>
72576
72577         * lib/basename.c (base_name): Add an assertion.
72578
72579 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
72580
72581         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
72582         shadow its mbsinit function.
72583
72584 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72585
72586         * lib/mbswidth.h: New file.
72587         * lib/mbswidth.c: New file.
72588         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
72589         (noinst_HEADERS): Add mbswidth.h.
72590
72591 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
72592
72593         * lib/config.charset: Add support for FreeBSD. Improve support for
72594         HP-UX and IRIX 6.
72595
72596 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
72597
72598         * m4/mbswidth.m4: New file.
72599         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
72600
72601 2000-07-15  Jim Meyering  <meyering@lucent.com>
72602
72603         * lib/makepath.c: Include quote.h.
72604         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
72605         corresponding argument in a `quote (...)' call.
72606         Give better diagnostics.
72607
72608         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
72609         (noinst_HEADERS): Add quote.h.
72610
72611         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
72612         from tar's src/misc.c.
72613         * lib/quote.h: New file.  Prototypes for same.
72614
72615 2000-07-14  Paul Eggert  <eggert@twinsun.com>
72616
72617         From a suggestion by Bruno Haible.
72618         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
72619         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
72620         to decide whether to define the BeOS workaround macro;
72621         this adjusts to the change to AC_MBSTATE_T.
72622
72623 2000-07-14  Jim Meyering  <meyering@lucent.com>
72624
72625         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
72626         jm_AC_TYPE_UINTMAX_T.
72627
72628 2000-07-13  Paul Eggert  <eggert@twinsun.com>
72629
72630         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
72631
72632         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
72633         quotearg_buffer_restyled): Add support for
72634         clocale_quoting_style.  Undo previous change to
72635         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
72636         and "{RIGHT QUOTATION MARK}" msgids.
72637
72638 2000-07-10  Paul Eggert  <eggert@twinsun.com>
72639
72640         From a suggestion by Bruno Haible.
72641         * m4/mbstate_t.m4 (AC_MBSTATE_T):
72642         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
72643         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
72644         and mbstate_t, to a single-part test that simply defines mbstate_t.
72645         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
72646         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
72647
72648 2000-07-10  Jim Meyering  <meyering@lucent.com>
72649
72650         * m4/strerror_r.m4: Mirror the correction made in autoconf.
72651
72652         * m4/gnu-source.m4: Output to confdefs.h directly.
72653         Suggestion from Akim Demaille.
72654
72655 2000-07-09  Paul Eggert  <eggert@twinsun.com>
72656
72657         The old behavior of quoting `like this' doesn't look good with
72658         newer, ISO-style fonts.  See:
72659         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
72660
72661         Instead, quote "like this" by default.  Let the translator
72662         tailor the locale-specific quoting behavior by providing
72663         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
72664
72665         * lib/quotearg.c (N_): New macro.
72666         (gettext_default): New function.
72667         (quotearg_buffer_restyled): Use
72668         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
72669         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
72670
72671 2000-07-09  Jim Meyering  <meyering@lucent.com>
72672
72673         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
72674         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
72675
72676         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
72677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
72678
72679 2000-07-09  Jim Meyering  <meyering@lucent.com>
72680
72681         * lib/Most files: Update copyright dates to include 2000.
72682
72683 2000-07-08  Jim Meyering  <meyering@lucent.com>
72684
72685         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
72686         if not defined.
72687         (xgethostname): Remove now-unnecessary #ifdef.
72688         Move declaration of `err' into loop where it's used.
72689
72690 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72691         and Bruno Haible  <haible@clisp.cons.org>
72692
72693         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
72694         only if the test for an object-type mbstate_t fails.  This
72695         prevents us from mistakenly reporting that mbstate_t is a
72696         system object type after we "#define mbstate_t int" to work
72697         around its lack.
72698
72699 2000-07-05  Paul Eggert  <eggert@twinsun.com>
72700         and Bruno Haible  <haible@clisp.cons.org>
72701
72702         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
72703
72704 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72705
72706         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
72707         to strerror_r.
72708         Include <ctype.h> for use of isalpha.
72709
72710 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72711
72712         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
72713         by allocating a larger buffer. Test the gethostname return value for
72714         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
72715         returns an error and ENAMETOOLONG isn't defined.
72716
72717 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
72718
72719         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
72720         dimension.
72721
72722 2000-07-04  Jim Meyering  <meyering@lucent.com>
72723
72724         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
72725         of the deprecated AC_CHECKING.
72726
72727 2000-07-04  Jim Meyering  <meyering@lucent.com>
72728
72729         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
72730         Reported by Bruno Haible.
72731
72732 2000-07-04  Jim Meyering  <meyering@lucent.com>
72733
72734         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
72735         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
72736         lacks mbrtowc.
72737
72738 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72739
72740         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
72741         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
72742
72743 2000-07-03  Paul Eggert  <eggert@twinsun.com>
72744         and Bruno Haible  <haible@clisp.cons.org>
72745
72746         * lib/quotearg.c (mbrtowc):
72747         Assign to *pwc, and return 1 only if result is nonzero.
72748         (iswprint): Use ISPRINT when substituting our own mbrtowc.
72749
72750 2000-07-03  Jim Meyering  <meyering@lucent.com>
72751
72752         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
72753
72754 2000-07-03  Jim Meyering  <meyering@lucent.com>
72755
72756         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
72757         This is necessary to get a definition of e.g., UTMP_FILE on
72758         HP-UX 10.20.
72759         From Bob Proulx.
72760
72761 2000-07-02  Jim Meyering  <meyering@lucent.com>
72762
72763         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
72764
72765         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
72766         AC_LIBOBJ(function_name).
72767         * m4/chown.m4: Likewise.
72768         * m4/fnmatch.m4: Likewise.
72769         * m4/ftruncate.m4: Likewise.
72770         * m4/getgroups.m4: Likewise.
72771         * m4/getline.m4: Likewise.
72772         * m4/group-member.m4: Likewise.
72773         * m4/jm-macros.m4: Likewise.
72774         * m4/lstat.m4: Likewise.
72775         * m4/malloc.m4: Likewise.
72776         * m4/memcmp.m4: Likewise.
72777         * m4/nanosleep.m4: Likewise.
72778         * m4/putenv.m4: Likewise.
72779         * m4/realloc.m4: Likewise.
72780         * m4/regex.m4: Likewise.
72781         * m4/stat.m4: Likewise.
72782         * m4/strftime.m4: Likewise.
72783
72784 2000-07-02  Jim Meyering  <meyering@lucent.com>
72785
72786         * lib/quotearg.c (mbstate_t): Don't define here.
72787
72788 2000-07-02  Jim Meyering  <meyering@lucent.com>
72789
72790         * lib/nanosleep.c (SIGCONT): Define if not already defined.
72791
72792 2000-07-01  Jim Meyering  <meyering@lucent.com>
72793
72794         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
72795
72796 2000-07-01  Jim Meyering  <meyering@lucent.com>
72797
72798         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
72799         problem.
72800
72801 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72802
72803         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
72804         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
72805
72806 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
72807
72808         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
72809         per change in ../m4/ls-mntd-fs.m4.
72810         (read_filesystem_list): Ignore symbolic links.
72811
72812 2000-06-29  Jim Meyering  <meyering@lucent.com>
72813
72814         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
72815         for declaration of strcmp.
72816
72817         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
72818
72819         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
72820         Avoid warning by casting result to `char *' to remove `const'.
72821
72822 2000-06-28  Jim Meyering  <meyering@lucent.com>
72823
72824         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
72825         included by quotearg.c, for which we perform this test.  From
72826         Bruno Haible.
72827
72828 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72829
72830         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
72831         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
72832         <utmpx.h> exists, put readutmp.o into LIBOBJS.
72833
72834 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
72835
72836         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
72837
72838 2000-06-26  Paul Eggert  <eggert@twinsun.com>
72839
72840         savedir now sets errno on failure and invokes xmalloc to get memory.
72841         Fix a couple of other minor bugs while we're at it.
72842
72843         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
72844         (NAMLEN): Remove macro.
72845         (malloc, realloc): Remove decls.
72846         (stpcpy): Likewise.
72847         ("xalloc.h"): Include.
72848         (NAME_SIZE_DEFAULT): New macro.
72849         (savedir): Use xmalloc / xrealloc to allocate memory.
72850         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
72851         Skip "" directory entries.
72852         Use strlen to calculate directory entry length, since the old method
72853         is rarely used these days and isn't worth supporting.
72854         Don't use a pointer after freeing it.
72855         Check for integer overflow when calculating allocation size.
72856         Use memcpy to copy entries, instead of stpcpy.
72857         Set errno properly when returning NULL.
72858         Check for readdir error.
72859
72860 2000-06-26  Jim Meyering  <meyering@lucent.com>
72861
72862         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
72863
72864 2000-06-25  Jim Meyering  <meyering@lucent.com>
72865
72866         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
72867         Linux header bug when _XOPEN_SOURCE is defined to 500.
72868
72869 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72870
72871         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
72872         deficiency.
72873
72874 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
72875
72876         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
72877         Include xalloc.h.
72878         Don't include <stdlib.h>.  Don't declare malloc, realloc.
72879
72880 2000-06-24  Jim Meyering  <meyering@lucent.com>
72881
72882         * m4/strerror_r.m4: Revive this file -- to try out an experimental
72883         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
72884         for which strerror does return char*, but which lacks a conveniently
72885         accessible declaration of the function.  If the compile-test says
72886         strerror_r doesn't work, then resort to a `run'-test that works on
72887         BeOS and segfaults on DEC Unix.
72888
72889 2000-06-24  Jim Meyering  <meyering@lucent.com>
72890
72891         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
72892
72893 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72894
72895         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
72896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
72897
72898 2000-06-23  Paul Eggert  <eggert@twinsun.com>
72899
72900         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
72901         (mbrtowc, mbstate_t): Define substitutes if
72902         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
72903         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
72904         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
72905
72906 2000-06-23  Jim Meyering  <meyering@lucent.com>
72907
72908         * m4/afs.m4: Add missing AC_MSG_RESULT.
72909         Reported by Bruno Haible.
72910
72911         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
72912         Suggestion from Bruno Haible.
72913
72914 2000-06-23  Jim Meyering  <meyering@lucent.com>
72915
72916         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
72917
72918 2000-06-21  Jim Meyering  <meyering@lucent.com>
72919
72920         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
72921
72922 2000-06-21  Jim Meyering  <meyering@lucent.com>
72923
72924         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
72925         (noinst_HEADERS): Add getstr.h.
72926
72927         * lib/getline.c (getstr): Move into a separate file.
72928         * lib/getstr.c (getstr): New file, extracted from getline.c, with
72929         the following changes: new parameter, delim2; both delim[12]
72930         parameters have type `int', not `char'.  The latter would lose
72931         with 8-bit delimiters.
72932         * lib/getstr.h: New file.
72933
72934 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72935
72936         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
72937         than 1024, return a memory chunk of least possible size, instead
72938         of size PATH_MAX + 2. In the loop, increment the size proportionally.
72939         Use free/xmalloc instead of xrealloc to avoid copying for very long
72940         paths.
72941
72942 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72943
72944         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
72945         the empty string.
72946
72947 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
72948
72949         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
72950         address, not strdup.  Include <stdlib.h> and don't declare free().
72951
72952 2000-06-19  Jim Meyering  <meyering@lucent.com>
72953
72954         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
72955
72956 2000-06-18  Jim Meyering  <meyering@lucent.com>
72957
72958         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
72959
72960         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
72961         `checking whether...' message to be consistent with that of the
72962         lstat test.
72963
72964 2000-06-18  Jim Meyering  <meyering@lucent.com>
72965
72966         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
72967         Besides, these days every porting target provides a mkdir function.
72968
72969         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
72970         needed. (this snippet comes from src/system.h).
72971
72972 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
72973
72974         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
72975
72976 2000-06-15  Paul Eggert  <eggert@twinsun.com>
72977
72978         * lib/human.c (adjust_value): New function.
72979         (human_readable_inexact): Apply rounding style even when
72980         printing approximate values.
72981
72982 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72983
72984         * lib/human.c (human_readable_inexact): Allow an input block
72985         size that is not a multiple of the output block size, and vice versa.
72986         Reported by Piergiorgio Sartor.
72987
72988 2000-06-14  Paul Eggert  <eggert@twinsun.com>
72989
72990         * lib/getdate.y (get_date): Apply relative times after time
72991         zone indicator, not before.  Reported by Todd A. Jacobs.
72992
72993 2000-06-13  Jim Meyering  <meyering@lucent.com>
72994
72995         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
72996
72997         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
72998
72999 2000-06-12  Paul Eggert  <eggert@twinsun.com>
73000
73001         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
73002
73003 2000-06-12  Jim Meyering  <meyering@lucent.com>
73004
73005         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
73006         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
73007         optional argument.
73008         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
73009         the optional argument, `lib'.
73010
73011 2000-06-08  Jim Meyering  <meyering@lucent.com>
73012
73013         * m4/largefile.m4: Remove file (now that it's part of autoconf).
73014
73015 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73016
73017         Rewrite largefile configuration so that we don't need to run
73018         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
73019         AC_CANONICAL_HOST in configure.in -- jmm]
73020
73021         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
73022         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
73023         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
73024         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
73025         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
73026         All uses changed.
73027         Instead of inspecting the output of getconf, try to compile the
73028         test program without and with the macro definition.
73029         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
73030         for getconf.  Instead, check for the needed flags by compiling
73031         test programs.
73032
73033 2000-06-04  Paul Eggert  <eggert@twinsun.com>
73034
73035         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
73036
73037 2000-06-04  Jim Meyering  <meyering@lucent.com>
73038
73039         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
73040         SunOS 4.1.4 for which gid_t is an unsigned type.
73041
73042 2000-06-03  Jim Meyering  <meyering@lucent.com>
73043
73044         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
73045         now that autoconf requires that.
73046
73047         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
73048         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
73049         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
73050
73051 2000-06-03  Jim Meyering  <meyering@lucent.com>
73052
73053         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
73054
73055 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73056
73057         * m4/glibc21.m4: New file.
73058         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
73059
73060 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
73061
73062         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
73063         newer, don't install charset.alias.
73064         * lib/config.charset: Change the Linux/glibc rules so they become empty
73065         on glibc-2.1 or newer.
73066
73067 2000-06-02  Jim Meyering  <meyering@lucent.com>
73068
73069         * lib/mountlist.c: Back out last change.  Instead, do this...
73070         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
73071         me_dummy member using the same `ignore'-testing code.
73072         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
73073         fs_type strings.
73074         From Mark D. Roth.
73075
73076 2000-05-29  Jim Meyering  <meyering@lucent.com>
73077
73078         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
73079         mounts with the `ignore' attribute.  Based on a patch from
73080         Mark D. Roth.
73081
73082 2000-05-28  Jim Meyering  <meyering@lucent.com>
73083
73084         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
73085         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73086         * m4/stat.m4: Likewise.
73087         * m4/lstat.m4: Likewise.
73088         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
73089
73090         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
73091         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
73092
73093 2000-05-26  Jim Meyering  <meyering@lucent.com>
73094
73095         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
73096
73097 2000-05-24  Jim Meyering  <meyering@lucent.com>
73098
73099         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
73100         autoconf requires that.
73101         * m4/lib-check.m4: Likewise.
73102         * m4/jm-macros.m4: Likewise.
73103         * m4/strftime.m4: Likewise.
73104
73105         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
73106         AC_CHECK_DECLS, now that autoconf requires that.
73107
73108 2000-05-22  Jim Meyering  <meyering@lucent.com>
73109
73110         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73111         * m4/lstat.m4: Likewise.
73112
73113 2000-05-22  Jim Meyering  <meyering@lucent.com>
73114
73115         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
73116
73117 2000-05-20  Jim Meyering  <meyering@lucent.com>
73118
73119         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
73120         (jm_PREREQ): Use it.
73121
73122 2000-05-18  Jim Meyering  <meyering@lucent.com>
73123
73124         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
73125         back, too, since it may have been modified by allocate_entry.
73126         (hash_delete): Rewrite to use neither the assignment operator
73127         nor the comma operator in an if-expression.
73128
73129 2000-05-15  Paul Eggert  <eggert@twinsun.com>
73130
73131         * lib/closeout.c:
73132         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
73133         Remove; no longer needed.
73134         "quotearg.h": Add include.
73135         (file_name): Do not bother to explicitly initialize to NULL; it's less
73136         efficient on some hosts.
73137         (close_stdout_status): Remove test as to whether stdout was already
73138         closed; it breaks for the case "echo x | sort >&-".
73139         Quote file name colons.
73140         Do not assume that _("write error") lacks format strings.
73141
73142 2000-05-15  Jim Meyering  <meyering@lucent.com>
73143
73144         * lib/version-etc.c (version_etc_copyright): Update the copyright
73145         string used in all --version output.
73146
73147 2000-05-14  Jim Meyering  <meyering@lucent.com>
73148
73149         * lib/closeout.c (close_stdout_set_file_name): New function.
73150         (close_stdout_status): Use new file-scoped global.
73151         Return right away if fstat says the stdout file descriptor is invalid.
73152         * lib/closeout.h (close_stdout_set_file_name): Declare.
73153
73154 2000-05-10  Jim Meyering  <meyering@lucent.com>
73155
73156         * lib/closeout.c [default_exit_status]: New file-scoped variable.
73157         (close_stdout_set_status): New function.
73158         * lib/closeout.h (close_stdout_set_status): Declare.
73159
73160 2000-05-09  Jim Meyering  <meyering@lucent.com>
73161
73162         * m4/gettext.m4: Rename this...
73163         * m4/libintl.m4: ...to this.
73164
73165 2000-05-08  Jim Meyering  <meyering@lucent.com>
73166
73167         * lib/long-options.c: Don't include closeout.h.
73168         (parse_long_options): Don't call close_stdout for --version.
73169
73170 2000-05-06  Paul Eggert  <eggert@twinsun.com>
73171
73172         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
73173         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
73174         2.1.3 bug.  This avoids a clash when files like regex.c define
73175         _GNU_SOURCE.
73176
73177 2000-05-06  Jim Meyering  <meyering@lucent.com>
73178
73179         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
73180         (AC_REPLACE_FUNCS): Add strnlen.
73181
73182         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
73183         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
73184
73185         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
73186         AC_SEARCH_LIBS call for nanosleep.
73187         (LIB_NANOSLEEP): Set and AC_SUBST.
73188
73189 2000-05-06  Jim Meyering  <meyering@lucent.com>
73190
73191         * lib/strnlen.c: Undefine __strnlen and strnlen.
73192         [!weak_alias]: Define __strnlen to strnlen.
73193
73194         * lib/atexit.c: New file, from libiberty.
73195
73196 2000-05-06  Jim Meyering  <meyering@lucent.com>
73197
73198         * lib/closeout.c (close_stdout_status): Also check for errors on the
73199         stderr stream.
73200
73201 2000-05-05  Jim Meyering  <meyering@lucent.com>
73202
73203         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
73204         AC_SEARCH_LIBS call for clock_gettime.
73205         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
73206
73207         * m4/search-libs.m4: Update from autoconf.
73208
73209         su doesn't work on Solaris 2.6.
73210         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
73211         <shadow.h>.  Reported by Dragos Harabor.
73212
73213 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
73214
73215         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
73216         memcpy instead of xmalloc, xrealloc, path_concat.
73217         (locale_charset): Treat empty environment variables as absent.
73218         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
73219
73220 2000-05-04  Jim Meyering  <meyering@lucent.com>
73221
73222         * lib/getopt.c: Update from glibc.
73223         * lib/obstack.c: Likewise.
73224         * lib/obstack.h: Likewise.
73225         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
73226         file
73227
73228         * lib/regex.h: Likewise.
73229         * lib/strndup.c: Likewise.
73230         * lib/strnlen.c: New file, from glibc.
73231
73232 2000-05-03  Jim Meyering  <meyering@lucent.com>
73233
73234         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
73235
73236 2000-05-02  Paul Eggert  <eggert@twinsun.com>
73237
73238         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
73239         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
73240         compile-time test, rather than inspecting host and OS, to
73241         decide whether to define _LARGEFILE_SOURCE.
73242
73243 2000-05-01  Jim Meyering  <meyering@lucent.com>
73244
73245         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
73246
73247         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
73248         Based on a patch from Bruno Haible.
73249
73250 2000-05-01  Jim Meyering  <meyering@lucent.com>
73251
73252         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
73253
73254 2000-04-29  Jim Meyering  <meyering@lucent.com>
73255
73256         * lib/path-concat.c: Declare strdup only if it's not defined.
73257         * lib/canon-host.c: Likewise.
73258
73259 2000-04-28  Jim Meyering  <meyering@lucent.com>
73260
73261         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
73262         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
73263         is included first, then limits.h is included by locale.h by libintl.h.
73264         From John David Anglin.
73265
73266 2000-04-25  Jim Meyering  <meyering@lucent.com>
73267
73268         * lib/makepath.c (S_IRWXUGO): Define.
73269         (make_path): Always perform explicit chmod if MODE specifies any
73270         of the `special' permission bits.  Prompted by a bug report against
73271         install from Mate Wierdl and Joost van Baal.
73272
73273 2000-04-18  Jim Meyering  <meyering@lucent.com>
73274
73275         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
73276         (jm_PREREQ): Use it.
73277
73278 2000-04-18  Jim Meyering  <meyering@lucent.com>
73279
73280         * lib/README: New file.
73281
73282         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
73283         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
73284
73285 2000-04-17  Jim Meyering  <meyering@lucent.com>
73286
73287         Get it right :-)
73288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
73289         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
73290         Suggestion from Akim Demaille.
73291
73292 2000-04-17  Jim Meyering  <meyering@lucent.com>
73293
73294         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
73295         the definition of it to rpl_strftime also defined-away the system's
73296         declaration.
73297
73298 2000-04-15  Jim Meyering  <meyering@lucent.com>
73299
73300         Use `C' to denote so-called `contiguous' files, the same way
73301         that tar does.
73302         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
73303         (ftypelet): Use S_ISCTG.
73304         From Michael Deutschmann.
73305
73306 2000-04-14  Jim Meyering  <meyering@lucent.com>
73307
73308         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
73309         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
73310         clobbered.
73311
73312 2000-04-14  Jim Meyering  <meyering@lucent.com>
73313
73314         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
73315
73316 2000-04-13  Jim Meyering  <meyering@lucent.com>
73317
73318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
73319         AH_VERBATIM to insert required #ifndef into config.h.in.
73320         Suggestion from Akim Demaille.
73321
73322 2000-04-12  Jim Meyering  <meyering@lucent.com>
73323
73324         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
73325         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
73326         Christian Krackowizer.
73327
73328         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
73329         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
73330         (AC_SYS_LARGEFILE): Require.
73331         (AM_C_PROTOTYPES): Require.
73332
73333 2000-04-08  Jim Meyering  <meyering@lucent.com>
73334
73335         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
73336         names don't conflict.  Reported by Eli Zaretskii.
73337
73338 2000-04-07  Jim Meyering  <meyering@lucent.com>
73339
73340         * lib/putenv.c: Move inclusion of errno.h so it follows that of
73341         sys/types.h, to work around system header problems on AIX 3.2.5.
73342         From Bruno Haible.
73343
73344 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
73345
73346         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
73347         bug.  Deal with the different error behavior of Irix iconv.
73348
73349 2000-04-05  Paul Eggert  <eggert@twinsun.com>
73350
73351         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
73352         IRIX if the installer said otherwise.
73353
73354 2000-04-05  Jim Meyering  <meyering@lucent.com>
73355
73356         Portability tweaks required for ultrix4.3.
73357         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
73358         (jm_CHECK_DECLS): Add getutent to the list of functions.
73359         (_jm_DECL_HEADERS): Add utmpx.h.
73360         From John David Anglin.
73361
73362         * m4/strftime.m4: Back out the 2000-04-02 change.
73363         Instead of that change, simply undefine putenv in the test program.
73364
73365 2000-04-05  Jim Meyering  <meyering@lucent.com>
73366
73367         Portability tweaks required for ultrix4.3.
73368         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
73369         getutent.
73370         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
73371         * lib/canon-host.c: Declare strdup.
73372         * lib/path-concat.c: Likewise.
73373         From John David Anglin.
73374
73375 2000-04-04  Jim Meyering  <meyering@lucent.com>
73376
73377         Be more DOS 8.3-friendly.
73378         * lib/ref-add.sin: Renamed from ref-add.sed.in.
73379         * lib/ref-del.sin: Renamed from ref-del.sed.in.
73380         * lib/Makefile.am: Reflect renaming.
73381         Reported by Eli Zaretskii.
73382
73383         Use a temporary file name that won't clash with `charset.alias'
73384         in the DOS 8.3 name space.
73385         * lib/Makefile.am (charset_tmp): Define.
73386         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
73387         (uninstall-local): Likewise.
73388         Reported by Eli Zaretskii.
73389
73390 2000-04-03  Jim Meyering  <meyering@lucent.com>
73391
73392         * m4/gettext.m4: Fix typo in comment.
73393
73394         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
73395         textutils/configure.in).  Suggestion from Paul Eggert.
73396         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
73397
73398 2000-04-02  Paul Eggert  <eggert@twinsun.com>
73399
73400         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
73401         variable in the shell rather than using putenv, which isn't
73402         portable.  This avoids the configure-time inter-test dependency
73403         on the potentially-renamed putenv function.
73404
73405 2000-03-30  Paul Eggert  <eggert@twinsun.com>
73406
73407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
73408         before checking struct stat.st_blksize, so that
73409         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
73410
73411 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73412
73413         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
73414         since strftime.c uses HAVE_STRFTIME to decide whether to use
73415         the underlying strftime.
73416
73417 2000-03-29  Paul Eggert  <eggert@twinsun.com>
73418
73419         * lib/time/strftime.c (my_strftime): Make sure we call the system
73420         strftime, not ourselves, when invoking the underlying strftime.
73421
73422 2000-03-24  Jim Meyering  <meyering@lucent.com>
73423
73424         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
73425         (charset_alias): Define.
73426         (install-exec-local): Factor out common code.
73427         (uninstall-local): Split lines longer than 80.
73428         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
73429         (SUFFIXES): Define.
73430         (.sed.in.sed): New rule.  Don't redirect directly to $@.
73431         (CLEANFILES): Add ref-add.sed and ref-del.sed.
73432
73433 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
73434
73435         * lib/config.charset: Output a line containing "Packages using this
73436         file".
73437         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
73438         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
73439         ref-del.sed): New rules.
73440
73441 2000-03-17  Jim Meyering  <meyering@lucent.com>
73442
73443         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
73444         Otherwise, include <strings.h>
73445
73446 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
73447
73448         * lib/unicodeio.c (utf8_wctomb): New function.
73449         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
73450         format instead of in UCS-4 with platform dependent endianness.
73451
73452 2000-03-10  Jim Meyering  <meyering@lucent.com>
73453
73454         * m4/lib-check.m4: Look for getspnam in -lgen, too.
73455         From Marco Franzen.
73456
73457 2000-03-07  Paul Eggert  <eggert@twinsun.com>
73458
73459         * lib/savedir.c (savedir): Work even if directory size is
73460         negative; this can happen with some screwy NFS configurations.
73461
73462 2000-03-06  Jim Meyering  <meyering@lucent.com>
73463
73464         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
73465         if it's NULL (because we ran out of memory).  From Bruno Haible.
73466
73467 2000-03-05  Jim Meyering  <meyering@lucent.com>
73468
73469         * lib/localcharset.c ("path-concat.h"): Include.
73470         (get_charset_aliases): Use path_concat instead of ANSI string
73471         concatenation.
73472
73473         * lib/unicodeio.h (PARAMS): Define.
73474         Use it to guard prototype.
73475
73476 2000-03-04  Jim Meyering  <meyering@lucent.com>
73477
73478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
73479         for lib/localcharset.c.
73480
73481 2000-03-04  Jim Meyering  <meyering@lucent.com>
73482
73483         * lib/Makefile.am (install-exec-local): Create $(libdir) before
73484         installing into it.
73485         (uninstall-local): Uncomment this rule so `make distcheck' works
73486         once again.
73487
73488         * lib/unicodeio.c (<errno.h>): Include it.
73489         (errno): Declare if not defined.
73490
73491         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
73492
73493         * lib/config.charset: New version, incorporating remarks from a linux
73494         i18n mailing list.  From Bruno Haible.
73495
73496 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
73497
73498         * m4/codeset.m4: New file.
73499         * m4/iconv.m4: New file.
73500         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
73501
73502 2000-03-03  Jim Meyering  <meyering@lucent.com>
73503
73504         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
73505
73506 2000-03-02  Jim Meyering  <meyering@lucent.com>
73507
73508         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
73509         the messages come out on separate lines.
73510
73511         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
73512         rather than jm_CHECK_DECLARATIONS.
73513         * m4/decl.m4: Remove now-unused file.
73514
73515         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
73516         geteuid.
73517
73518 2000-03-02  Jim Meyering  <meyering@lucent.com>
73519
73520         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
73521
73522 2000-03-01  Jim Meyering  <meyering@lucent.com>
73523
73524         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
73525         * lib/unicodeio.c: Likewise.
73526
73527 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
73528
73529         * lib/config.charset: New file.
73530         * lib/localcharset.c: New file.
73531         * lib/unicodeio.h, lib/unicodeio.c: New files.
73532         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
73533         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
73534         (noinst_HEADERS): Add unicodeio.h.
73535         (all-local, install-exec-local, charset.alias): New targets.
73536
73537 2000-02-28  Paul Eggert  <eggert@twinsun.com>
73538
73539         * lib/quotearg.c (ALERT_CHAR): New macro.
73540         (quotearg_buffer_restyled): Use it.
73541
73542 2000-02-27  Jim Meyering  <meyering@lucent.com>
73543
73544         * m4/check-decl.m4: Add getenv to the list.
73545
73546 2000-02-27  Jim Meyering  <meyering@lucent.com>
73547
73548         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
73549         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
73550
73551         * lib/backupfile.c: Guard inclusion of stdlib.h with
73552         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
73553         Declare malloc if needed.
73554
73555         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
73556         `#ifndef HAVE_DECL..'
73557         now that autoconf always defines the HAVE_DECL_ symbols.
73558         * lib/human.c: Likewise.
73559         * lib/same.c: Likewise.
73560         * lib/strtoumax.c: Likewise.
73561
73562         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
73563         declaration check was not run.
73564         * lib/hash.c: Likewise.
73565         * lib/human.c: Likewise.
73566         * lib/same.c: Likewise.
73567         * lib/strtoumax.c: Likewise.
73568
73569         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
73570         `.', then first look up the entire `.'-containing string as a login
73571         name.
73572
73573 2000-02-23  Jim Meyering  <meyering@lucent.com>
73574
73575         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
73576         in place of my hack.
73577
73578 2000-02-18  Paul Eggert  <eggert@twinsun.com>
73579
73580         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
73581         (textint): New typedef.
73582         (parser_control): Member year changed from int to textint.
73583         All uses changed.
73584         (YYSTYPE): Removed; replaced by %union with int and textint members.
73585         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
73586         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
73587         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
73588         (tSNUMBER, tUNUMBER): Now of type <textintval>.
73589         (date, number, to_year): Use width of number in digits, not its value,
73590         to determine whether it's a 2-digit year, or a 2-digit time.
73591         (yylex): Store number of digits of numeric tokens.
73592         Reported by John Kendall.
73593
73594         (parser_control): Changed from struct parser_control to typedef (for
73595         consistency).  All uses changed.
73596
73597         (tID): Removed; not used.
73598         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
73599
73600 2000-02-14  Paul Eggert  <eggert@twinsun.com>
73601
73602         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
73603         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
73604
73605 2000-02-12  Jim Meyering  <meyering@lucent.com>
73606
73607         * lib/userspec.c (ISDIGIT): Define it.
73608         (isdigit): Remove definition.
73609         (is_number): Use ISDIGIT, not isdigit.
73610         <libintl.h>: Include.
73611         (_ and N_): Define.
73612         (parse_user_spec): Mark translatable strings.
73613
73614 2000-02-10  Jim Meyering  <meyering@lucent.com>
73615
73616         With these changes, nanosleep.[ch] are finally enough like the other
73617         lib/* replacement files to compile on a few more losing systems.
73618
73619         * lib/nanosleep.h: Don't include config.h.
73620         Remove prototype from declaration of nanosleep.
73621         (PARAMS): Remove now-unneeded definition.
73622         * lib/nanosleep.c: #undef nanosleep.
73623         (rpl_nanosleep): Rename from nanosleep.
73624
73625 2000-02-10  Jim Meyering  <meyering@lucent.com>
73626
73627         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
73628         gnu_nanosleep to rpl_nanosleep.
73629
73630 2000-02-09  Jim Meyering  <meyering@lucent.com>
73631
73632         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
73633         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
73634
73635 2000-02-08  Akim Demaille  <akim@epita.fr>
73636
73637         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
73638         `[' and `]' and remove uses of `changequote'.
73639         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
73640         (AC_SYS_LARGEFILE): Likewise.
73641         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
73642         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
73643         of changequote.
73644         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
73645         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
73646         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
73647         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
73648
73649 2000-02-05  Jim Meyering  <meyering@lucent.com>
73650
73651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
73652         Remove explicit use of AC_HEADER_TIME.  It is required by
73653         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
73654         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
73655         in autoconf whereby the expansion of the latter ended up preceding
73656         the expansion of its prerequisite, AC_HEADER_TIME.
73657         Reported by Volker Borchert.
73658
73659 2000-02-03  Jim Meyering  <meyering@lucent.com>
73660
73661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
73662
73663 2000-02-03  Jim Meyering  <meyering@lucent.com>
73664
73665         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
73666         rather than with `#if HAVE_UTMPNAME'.
73667
73668 2000-02-02  Jim Meyering  <meyering@lucent.com>
73669
73670         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
73671         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
73672         Reported by Eli Zaretskii.
73673
73674 2000-02-01  Jim Meyering  <meyering@lucent.com>
73675
73676         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
73677
73678 2000-01-31  Jim Meyering  <meyering@lucent.com>
73679
73680         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
73681         functions.  Add the time.h and sys/time.h headers along with the
73682         AC_REQUIRE'ment of AC_HEADER_TIME.
73683
73684 2000-01-31  Jim Meyering  <meyering@lucent.com>
73685
73686         * lib/nanosleep.h (nanosleep): Guard declaration with
73687         `#if ! HAVE_DECL_NANOSLEEP'.
73688         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
73689         the declaration in that vendor's sys/timers.h.
73690         Reported by Christian Krackowizer.
73691
73692         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
73693         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
73694         (ISPRINT): Likewise.
73695         Reported by Tom Tromey.
73696
73697 2000-01-30  Jim Meyering  <meyering@lucent.com>
73698
73699         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
73700
73701         * m4/prereq.m4 (utmp_includes): Define.
73702         Check for ut_user and ut_name members in both struct utmpx
73703         and struct utmp.
73704
73705 2000-01-30  Jim Meyering  <meyering@lucent.com>
73706
73707         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
73708         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
73709         header files where only utmpx.ut_user is declared.
73710
73711         * lib/readutmp.h (UT_USER): Define.
73712
73713 2000-01-29  Jim Meyering  <meyering@lucent.com>
73714
73715         * m4/lib-check.m4: New file containing library-related checks from
73716         fileutils and sh-utils (textutils had none).
73717
73718 2000-01-28  Jim Meyering  <meyering@lucent.com>
73719
73720         * m4/perl.m4: Change format of warning message to look more like that
73721         from the missing script.  Suggestion from François Pinard.
73722
73723 2000-01-25  Jim Meyering  <meyering@lucent.com>
73724
73725         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
73726         well as time.h in the compile check.
73727         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
73728         Fix typo in cross-compiling case: s/yes/no/.
73729
73730 2000-01-23  Jim Meyering  <meyering@lucent.com>
73731
73732         * m4/jm-macros.m4: Move df-related tests here from
73733         fileutils/configure.in
73734
73735         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
73736         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
73737
73738         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
73739         s/space/ac_fsusage_space/.
73740         (jm_FILE_SYSTEM_USAGE): Take two parameters.
73741
73742         * m4/ftruncate.m4: New file (derived from part of
73743         fileutils/configure.in).
73744         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
73745         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
73746
73747         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
73748         AC_SUBST these here, rather than just in sh-util/configure.in, so
73749         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
73750         all the same.
73751         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
73752         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
73753         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
73754         (AC_SUBST(POW_LIBM)): Likewise.
73755         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
73756
73757 2000-01-23  Jim Meyering  <meyering@lucent.com>
73758
73759         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
73760         obstack.c.
73761
73762 2000-01-22  Jim Meyering  <meyering@lucent.com>
73763
73764         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
73765
73766         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
73767
73768         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
73769         configure.in
73770         (AC_CHECK_HEADERS): Likewise for sh-utils.
73771         (AC_CHECK_HEADERS): Likewise for textutils.
73772         Merge the three lists of headers.
73773
73774         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
73775         from fileutils' configure.in.
73776
73777         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
73778         code. Moved tests into their own function (_jm_DECL_HEADERS) in
73779         check-decl.m4.
73780
73781         * m4/check-decl.m4: Use #if rather than #ifdef.
73782         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
73783         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
73784         (_jm_DECL_HEADERS): Define new function.
73785         (jm_CHECK_DECLARATIONS): Require it.
73786
73787 2000-01-22  Jim Meyering  <meyering@lucent.com>
73788
73789         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
73790         [! HAVE_DECL_STRTOULL]: Declare strtoull.
73791         Required for some AIX systems.  Reported by Christian Krackowizer.
73792         [TESTING] (main): New function.
73793
73794         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
73795         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
73796         letters.
73797
73798         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
73799         iswprint.
73800
73801         * lib/strverscmp.c (ISDIGIT): Define.
73802         (strverscmp): Use ISDIGIT, not isdigit.
73803
73804 2000-01-19  Jim Meyering  <meyering@lucent.com>
73805
73806         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
73807         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
73808         defines `struct timespec' in <sys/time.h>
73809
73810         * m4/c-bs-a.m4: Remove uses of changequote altogether.
73811         Thanks to Akim for explaining.
73812
73813 2000-01-17  Paul Eggert  <eggert@twinsun.com>
73814
73815         * lib/nanosleep.c (nanosleep):
73816         Don't use SA_INTERRUPT to decide whether to call sigaction, as
73817         POSIX.1 doesn't require SA_INTERRUPT and some systems
73818         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
73819         it's been part of POSIX.1 since day 1 (in 1988).
73820
73821 2000-01-17  Jim Meyering  <meyering@lucent.com>
73822
73823         * lib/interlock: Remove unused file.  Reported by François Pinard.
73824
73825 2000-01-16  Paul Eggert  <eggert@twinsun.com>
73826
73827         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
73828         alert, backslash, formfeed, and vertical tab unnecessarily in
73829         shell quoting style.
73830
73831 2000-01-16  Jim Meyering  <meyering@lucent.com>
73832
73833         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
73834         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
73835         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
73836         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
73837
73838 2000-01-16  Jim Meyering  <meyering@lucent.com>
73839
73840         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
73841         because the latter didn't work.
73842
73843 2000-01-15  Jim Meyering  <meyering@lucent.com>
73844
73845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
73846         (AC_REPLACE_FUNCS): Add memcpy and memset.
73847         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
73848         Add strpbrk.
73849         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
73850
73851 2000-01-12  Jim Meyering  <meyering@lucent.com>
73852
73853         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
73854         (jm_PREREQ): Use it.
73855         (jm_PREREQ_READUTMP): New macro.
73856         (jm_PREREQ): Use it.
73857
73858 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73859
73860         Quote multibyte characters correctly.
73861         * m4/c-bs-a.m4: New file.
73862         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
73863         (jm_PREREQ): Use it.
73864
73865 2000-01-11  Paul Eggert  <eggert@twinsun.com>
73866
73867         * m4/uintmax_t.m4: Port to autoconf 2.13.
73868
73869 2000-01-08  Jim Meyering  <meyering@ascend.com>
73870
73871         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
73872         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
73873
73874 2000-01-04  Jim Meyering  <meyering@ascend.com>
73875
73876         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
73877         jm_STRUCT_DIRENT_D_TYPE.
73878         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
73879         jm_STRUCT_DIRENT_D_INO.
73880         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
73881         jm_STRUCT_UTIMBUF.
73882         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
73883         renamings.
73884         * m4/utime.m4: Likewise.
73885
73886         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
73887         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
73888
73889 2000-01-03  Paul Eggert  <eggert@twinsun.com>
73890
73891         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
73892         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
73893
73894 2000-01-02  Jim Meyering  <meyering@ascend.com>
73895
73896         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
73897         remember if this is necessary.
73898
73899 1999-12-26  Jim Meyering  <meyering@ascend.com>
73900
73901         * m4/jm-macros.m4: Use it here.
73902         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
73903
73904 1999-12-23  Jim Meyering  <meyering@ascend.com>
73905
73906         * m4/jm-macros.m4: Check for clock_gettime (moved from
73907         fileutils/configure.in)
73908         Check for gettimeofday.
73909
73910 1999-12-20  Jim Meyering  <meyering@ascend.com>
73911
73912         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
73913         autoconf-2.14a-1999-12-20.
73914
73915 1999-12-19  Jim Meyering  <meyering@ascend.com>
73916
73917         * m4/lstat-slash.m4: New file.
73918         * m4/jm-macros.m4: Use the new macro:
73919         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73920
73921 1999-12-07  Jim Meyering  <meyering@ascend.com>
73922
73923         * m4/perl.m4: Require that File::Compare be available, too.
73924         Too many systems seem to lack it.
73925
73926         * m4/strftime.m4: Add checks for most of the cpp macros tested in
73927         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
73928
73929 1999-11-18  Paul Eggert  <eggert@twinsun.com>
73930
73931         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
73932         problem with the QNX 4.25 shell, which doesn't propagate exit
73933         status of failed commands inside shell assignments.
73934
73935 1999-11-17  Jim Meyering  <meyering@ascend.com>
73936
73937         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
73938
73939 1999-11-07  Jim Meyering  <meyering@ascend.com>
73940
73941         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
73942
73943 1999-11-06  Jim Meyering  <meyering@ascend.com>
73944
73945         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
73946         * m4/jm-macros.m4 (jm_MACROS): Use it here.
73947
73948 1999-11-05  Jim Meyering  <meyering@ascend.com>
73949
73950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
73951         configure.in of textutils, fileutils, and sh-utils into this one
73952         (shared between those packages) file.
73953         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
73954         AC_STRUCT_ST_BLKSIZE.
73955
73956 1999-11-03  Jim Meyering  <meyering@ascend.com>
73957
73958         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
73959         of AC_CHECK_TYPE checks includes unistd.h.
73960         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
73961         Suggestion from Akim Demaille.
73962
73963 1999-10-30  Jim Meyering  <meyering@ascend.com>
73964
73965         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
73966         m4-quoted string.
73967         * m4/ls-mntd-fs.m4: Likewise.
73968         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
73969         * m4/jm-winsz1.m4: Likewise.
73970
73971         * m4/const.m4: Remove file, since the fix made it into the experimental
73972         version of autoconf.
73973         * m4/mktime.m4: Likewise.
73974
73975         * m4/check-type.m4: Remove file, now that the latest version of
73976         AC_CHECK_TYPE takes a third arg to specify additional #includes.
73977
73978         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
73979         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
73980         AC_CHECK_TYPE.
73981
73982 1999-10-04  Jim Meyering  <meyering@ascend.com>
73983
73984         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
73985
73986 1999-09-22  Paul Eggert  <eggert@twinsun.com>
73987
73988         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
73989         2.95.1 bug with HP-UX 10.20.
73990
73991 1999-09-17  Jim Meyering  <meyering@ascend.com>
73992
73993         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
73994         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
73995         due to missing strdup (against sh-utils-2.0).
73996
73997 1999-08-29  Jim Meyering  <meyering@ascend.com>
73998
73999         * m4/jm-macros.m4: Require jm_BISON.
74000         * m4/bison.m4: New file.
74001
74002 1999-08-17  Paul Eggert  <eggert@twinsun.com>
74003
74004         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
74005         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
74006
74007 1999-08-05  Jim Meyering  <meyering@ascend.com>
74008
74009         * m4/getline.m4: Rename test file from conftestdata to conftest.data
74010         to avoid conflicts with `conftest' on 8+3 filesystems.
74011         Suggestion from Eli Zaretskii.
74012
74013 1999-08-04  Jim Meyering  <meyering@ascend.com>
74014
74015         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
74016         fileutils and sh-utils (textutils's getline test was inadequate).
74017         (AM_FUNC_GETLINE): Run this test.
74018         (AC_CHECK_FUNCS): Check for getdelim.
74019         Reported by Bob Proulx.
74020
74021 1999-08-02  Jim Meyering  <meyering@ascend.com>
74022
74023         * m4/jm-macros.m4: Add a comment.
74024
74025 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74026
74027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
74028         <inttypes.h> defines strtoumax as a macro (and not as a
74029         function).
74030
74031 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74032
74033         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
74034         that we can shift, multiply and divide unsigned long long
74035         values; Ultrix cc can't do it.
74036
74037 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74038
74039         * m4/mktime.m4: New file, which is a preview of what should appear
74040         in the next public autoconf release.
74041
74042 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74043
74044         * m4/lfs.m4: Remove this file.
74045         * m4/largefile.m4: New file.  It contains the old contents of
74046         lfs.m4, except that all names with prefix AC_LFS have been
74047         changed to use the prefix AC_SYS_LARGEFILE instead, to be
74048         compatible with future autoconf versions.  Also, some minor m4
74049         quoting problems have been fixed.
74050
74051 1999-08-01  Paul Eggert  <eggert@twinsun.com>
74052
74053         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
74054         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
74055         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
74056         and simplify the shell code.
74057
74058 1999-08-01  Jim Meyering  <meyering@ascend.com>
74059
74060         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
74061         m4.
74062
74063 1999-07-20  Jim Meyering  <meyering@ascend.com>
74064
74065         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
74066
74067 1999-07-15  Jim Meyering  <meyering@ascend.com>
74068
74069         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
74070
74071 1999-05-22  Jim Meyering  <meyering@ascend.com>
74072
74073         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
74074
74075 1999-05-20  Jim Meyering  <meyering@ascend.com>
74076
74077         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
74078         Add a colon after each `then' in case $4 is empty.
74079
74080 1999-05-16  Jim Meyering  <meyering@ascend.com>
74081
74082         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
74083
74084 1999-05-10  Jim Meyering  <meyering@ascend.com>
74085
74086         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
74087
74088         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
74089         AC_FUNC_MKTIME.
74090
74091 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
74092
74093         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
74094
74095 1999-05-04  Paul Eggert  <eggert@twinsun.com>
74096
74097         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
74098         not CPPFLAGS, so that linking works correctly in IRIX.
74099
74100 1999-04-30  Paul Eggert  <eggert@twinsun.com>
74101
74102         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
74103
74104 1999-04-20  Paul Eggert  <eggert@twinsun.com>
74105
74106         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
74107         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
74108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
74109         jm_AC_TYPE_UNSIGNED_LONG_LONG.
74110         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
74111
74112         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
74113
74114 1999-04-20  Jim Meyering  <meyering@ascend.com>
74115
74116         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
74117         AC_REPLACE xstroull if necessary.  From Paul Eggert.
74118         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
74119
74120 1999-04-18  Jim Meyering  <meyering@ascend.com>
74121
74122         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
74123         * m4/jm-macros.m4: Use it.
74124
74125 1999-04-06  Jim Meyering  <meyering@ascend.com>
74126
74127         * m4/strftime.m4: Remove test for %f.
74128
74129 1999-03-29  Jim Meyering  <meyering@ascend.com>
74130
74131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
74132         superset of the AC_TYPE_* checks in the textutils, fileutils,
74133         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
74134         AC_TYPE_PID_T.
74135
74136 1999-03-28  Jim Meyering  <meyering@ascend.com>
74137
74138         * m4/jm-macros.m4: Define GNU_PACKAGE here.
74139         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
74140         replaced e.g., in the *.sh files of the sh-utils.
74141
74142 1999-03-20  Jim Meyering  <meyering@ascend.com>
74143
74144         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
74145         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
74146         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
74147
74148 1999-03-19  Jim Meyering  <meyering@ascend.com>
74149
74150         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
74151
74152 1999-03-12  Jim Meyering  <meyering@ascend.com>
74153
74154         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
74155
74156 1999-03-07  Jim Meyering  <meyering@ascend.com>
74157
74158         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
74159         declared.
74160
74161 1999-02-17  Jim Meyering  <meyering@ascend.com>
74162
74163         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
74164         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
74165
74166 1999-02-07  Jim Meyering  <meyering@ascend.com>
74167
74168         * m4/group-member.m4: New file -- extracted from sh-utils'
74169         configure.in.
74170
74171         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
74172         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
74173
74174 1999-02-06  Jim Meyering  <meyering@ascend.com>
74175
74176         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
74177         * m4/fnmatch.m4: Likewise.
74178         * m4/getgroups.m4: Likewise.
74179         * m4/lstat.m4: Likewise.
74180         * m4/malloc.m4: Likewise.
74181         * m4/putenv.m4: Likewise.
74182         * m4/realloc.m4: Likewise.
74183         * m4/regex.m4: Likewise.
74184         * m4/stat.m4: Likewise.
74185         * m4/strftime.m4: Likewise.
74186         Suggestion from Alain Magloire.
74187
74188         * m4/chown.m4: Use `.$ac_objext', not `.o'.
74189         * m4/fnmatch.m4: Likewise.
74190         * m4/getgroups.m4: Likewise.
74191         * m4/getline.m4: Likewise.
74192         * m4/lstat.m4: Likewise.
74193         * m4/malloc.m4: Likewise.
74194         * m4/memcmp.m4: Likewise.
74195         * m4/putenv.m4: Likewise.
74196         * m4/realloc.m4: Likewise.
74197         * m4/regex.m4: Likewise.
74198         * m4/stat.m4: Likewise.
74199         * m4/strftime.m4: Likewise.
74200         Suggestion from Alain Magloire.
74201
74202         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
74203         an argument.
74204
74205         * m4/regex.m4: Add a run-time Test for proper operation of
74206         re_compile_pattern.
74207
74208 1999-01-31  Jim Meyering  <meyering@ascend.com>
74209
74210         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
74211
74212 1999-01-30  Jim Meyering  <meyering@ascend.com>
74213
74214         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
74215
74216         * m4/jm-mktime.m4: Make this a wrapper around the official
74217         AM_FUNC_MKTIME rather than my private copy, now that the official one
74218         is up to date.
74219         * m4/mktime.m4: Remove file.
74220
74221         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
74222         * m4/uptime.m4: Likewise.
74223         * m4/uintmax_t.m4: Likewise.
74224
74225 1999-01-28  Jim Meyering  <meyering@ascend.com>
74226
74227         * m4/jm-macros.m4: Use jm_AFS.
74228         * m4/afs.m4: New file (from fileutils' configure.in).
74229
74230         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
74231         * m4/chown.m4: Likewise.
74232         * m4/d-ino.m4: Likewise.
74233         * m4/d-type.m4: Likewise.
74234         * m4/fnmatch.m4: Likewise.
74235         * m4/getgroups.m4: Likewise.
74236         * m4/gettext.m4: Likewise.
74237         * m4/jm-mktime.m4: Likewise.
74238         * m4/jm-winsz2.m4: Likewise.
74239         * m4/lcmessage.m4: Likewise.
74240         * m4/ls-mntd-fs.m4: Likewise.
74241         * m4/malloc.m4: Likewise.
74242         * m4/memcmp.m4: Likewise.
74243         * m4/putenv.m4: Likewise.
74244         * m4/realloc.m4: Likewise.
74245         * m4/st_mtim.m4: Likewise.
74246         * m4/strftime.m4: Likewise.
74247
74248 1999-01-16  Jim Meyering  <meyering@ascend.com>
74249
74250         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
74251         (ARGMATCH_DIE_DECL): Define.
74252
74253 1999-01-12  Jim Meyering  <meyering@ascend.com>
74254
74255         * m4/Makefile.am.in: Rewrite to avoid using fmt.
74256         Reported by Lars Hecking.
74257
74258 1999-01-10  Jim Meyering  <meyering@ascend.com>
74259
74260         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
74261         gross kludge.
74262         * m4/inttypes_h.m4: Likewise.
74263         * m4/lstat.m4: Likewise.
74264         * m4/malloc.m4: Likewise.
74265         * m4/readdir.m4: Likewise.
74266         * m4/realloc.m4: Likewise.
74267         * m4/st_dm_mode.m4: Likewise.
74268         * m4/stat.m4: Likewise.
74269         * m4/utimbuf.m4: Likewise.
74270         * m4/utimes.m4: Likewise.
74271
74272         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
74273         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
74274         comments in config.h.in are meaningful.
74275
74276         * m4/jm-macros.m4: Require autoconf-2.13 here.
74277
74278         * m4/regex.m4: By default, don't use the included regex.c on systems
74279         with glibc 2.  Suggestion from Uli Drepper.
74280
74281 1999-01-02  Jim Meyering  <meyering@ascend.com>
74282
74283         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
74284
74285 1998-12-18  Jim Meyering  <meyering@ascend.com>
74286
74287         * m4/Makefile.am.in (Makefile.am): Simplify rule.
74288         Based on a suggestion from Lars Hecking.
74289
74290 1998-11-16  Paul Eggert  <eggert@twinsun.com>
74291
74292         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
74293
74294 1998-11-16  Jim Meyering  <meyering@ascend.com>
74295
74296         * m4/lfs.m4: Double-quote the `uname...` expression.
74297
74298 1998-11-14  Jim Meyering  <meyering@ascend.com>
74299
74300         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
74301         * m4/stat.m4: Likewise.
74302
74303 1998-11-03  Jim Meyering  <meyering@ascend.com>
74304
74305         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
74306         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
74307
74308 1998-10-18  Jim Meyering  <meyering@ascend.com>
74309
74310         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
74311
74312 1998-10-17  Jim Meyering  <meyering@ascend.com>
74313
74314         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
74315         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
74316         calls for those previously hard-coded headers.  Instead, take a new
74317         parameter.
74318         (jm_CHECK_DECLARATIONS): Reflect interface change.
74319         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
74320         (jm_CHECK_DECL_LOCALTIME_R): New macro.
74321
74322         * m4/mktime.m4: Test for spring-forward gap before long-running test.
74323
74324 1998-10-14  Jim Meyering  <meyering@ascend.com>
74325
74326         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
74327         instead of "TZ=America/Vancouver".  From Paul Eggert.
74328
74329 1998-10-11  Jim Meyering  <meyering@ascend.com>
74330
74331         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
74332         This adds a test for a recently added compatibility fix for mktime.c.
74333         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
74334
74335 1998-09-27  Jim Meyering  <meyering@ascend.com>
74336
74337         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
74338
74339         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
74340         ../configure.in, including a change from Gordon Matzigkeit to allow
74341         cross-compiling for the Hurd.
74342
74343         * m4/glibc.m4: New file/macro to test for the GNU C Library
74344         versions 1 and 2.  From Gordon Matzigkeit.
74345         Indent.
74346
74347 1998-09-21  Jim Meyering  <meyering@ascend.com>
74348
74349         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
74350
74351 1998-08-18  Paul Eggert  <eggert@twinsun.com>
74352
74353         Port nanosecond-resolution times to UnixWare 2.1.2 and
74354         pedantic Solaris 2.6.
74355
74356         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
74357         AC_STRUCT_ST_MTIM.
74358         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
74359         Generate name of ns member, instead of just 1 or undef.
74360         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
74361
74362 1998-08-15  Jim Meyering  <meyering@ascend.com>
74363
74364         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
74365         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
74366         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
74367         instead of jm_TYPE_SSIZE_T.
74368
74369 1998-08-12  Jim Meyering  <meyering@ascend.com>
74370
74371         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
74372
74373 1998-08-02  Jim Meyering  <meyering@ascend.com>
74374
74375         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
74376         in acconfig.h manually.
74377
74378 1998-07-31  Paul Eggert  <eggert@twinsun.com>
74379
74380         * m4/st_mtim.m4: New file.
74381
74382 1998-07-28  Jim Meyering  <meyering@ascend.com>
74383
74384         * m4/utimes.m4: Undef stat.
74385
74386 1998-07-25  Jim Meyering  <meyering@ascend.com>
74387
74388         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
74389         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
74390
74391 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
74392
74393         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
74394         uid and gid actually remain unchanged.
74395
74396 1998-07-07  Jim Meyering  <meyering@ascend.com>
74397
74398         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
74399
74400 1998-07-04  Jim Meyering  <meyering@ascend.com>
74401
74402         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
74403         to prove that this macro can be used in packages without regex.c.
74404
74405 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74406
74407         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
74408         is to be used.
74409
74410 1998-07-03  Jim Meyering  <meyering@ascend.com>
74411
74412         * m4/gettext.m4: Add -lintl if it's found to be necessary.
74413
74414         * m4/gettext.m4: New file -- from gettext-0.10.35.
74415         * m4/lcmessage.m4: Likewise.
74416         * m4/progtest.m4: Likewise.
74417
74418         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
74419         * m4/jm-macros.m4: Require the new macro.
74420
74421 1998-06-29  Jim Meyering  <meyering@ascend.com>
74422
74423         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
74424         for the definition of NGROUPS (used in a system header included
74425         by sys/mount.h).
74426
74427 1998-06-28  Jim Meyering  <meyering@ascend.com>
74428
74429         * m4/ls-mntd-fs.m4: New file.
74430         * m4/fstypename.m4: New file.
74431
74432         * m4/jm-macros.m4: Require the new macro.
74433         * m4/jm-glibc-io.m4: New file.
74434
74435 1998-05-19  Jim Meyering  <meyering@ascend.com>
74436
74437         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
74438         * m4/lchown.m4: New file.
74439
74440         * m4/Makefile.am.in: New file.
74441         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
74442
74443 1998-05-14  Jim Meyering  <meyering@ascend.com>
74444
74445         * m4/Makefile.am (EXTRA_DIST): Add them.
74446         * m4/jm-macros.m4: New file.
74447         * m4/utimbuf.m4: New file.
74448
74449 1998-05-12  Jim Meyering  <meyering@ascend.com>
74450
74451         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
74452
74453 1998-05-11  Jim Meyering  <meyering@ascend.com>
74454
74455         * m4/isc-posix.m4: New file.
74456
74457 1998-05-10  Jim Meyering  <meyering@ascend.com>
74458
74459         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
74460
74461 1998-05-09  Jim Meyering  <meyering@ascend.com>
74462
74463         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
74464         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
74465         with automake.
74466
74467         * m4/ssize_t.m4: New file.
74468         * m4/mktime.m4: Remove file -- the new automake has this now.
74469
74470 1998-04-26  Jim Meyering  <meyering@ascend.com>
74471
74472         * m4/assert.m4: New file.
74473         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
74474
74475 1998-04-05  Jim Meyering  <meyering@ascend.com>
74476
74477         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
74478         (jm_PREREQ): Use it here.
74479
74480 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
74481
74482         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
74483         in acconfig.h.
74484
74485 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
74486
74487         * m4/prereq.m4: New file.
74488         * m4/error.m4: New file.
74489         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
74490
74491 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
74492
74493         * m4/getline.m4: Don't set am_cv_func_working_getline before the
74494         cache-check for the same variable -- that defeated the purpose of
74495         the test; the test program was never run.  This was a problem only
74496         on systems with losing getline functions -- HP-UX 10.20 is one.
74497         Reported by Bjorn Helgaas.
74498
74499 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
74500
74501         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
74502
74503 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
74504
74505         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
74506
74507         * m4/const.m4: New file.  Use an initializer in this declaration
74508         typedef int charset[2]; const charset x;
74509         Reported by Bob Glickstein.
74510
74511 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
74512
74513         * m4/chown.m4: Fix reversed types on -1 args to chown.
74514         From Kaveh Ghazi.
74515
74516 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
74517
74518         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
74519         Add lseek and memchr.
74520
74521         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
74522         T.E.Dickey <dickey@clark.net> said that some older preprocessors
74523         have a 20-character limit on names.
74524
74525 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
74526
74527         * m4/inttypes_h.m4: New file.
74528         * m4/uintmax_t.m4: New file.
74529         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
74530
74531
74532         -----
74533
74534         Local Variables:
74535         coding: utf-8
74536         End:
74537
74538         Copyright (C) 1997-2011 Free Software Foundation, Inc.
74539
74540         Copying and distribution of this file, with or without
74541         modification, are permitted provided the copyright notice
74542         and this notice are preserved.