Handle empty strings correctly.
[gnulib.git] / ChangeLog
1 2009-02-22  Bruno Haible  <bruno@clisp.org>
2
3         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
4         zero-length results and shrink excess allocated memory.
5         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
6         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
7         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
8         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
9         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
10         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
11         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
17
18 2009-02-21  Bruno Haible  <bruno@clisp.org>
19
20         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22         spaces after a period. Put a space between a macro name and its
23         argument list. Trivial rewordings.
24         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
25         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26         (main): Return 0 explicitly.
27
28 2009-02-21  Bruno Haible  <bruno@clisp.org>
29
30         Tests for module 'uninorm/filter'.
31         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32         * modules/uninorm/filter-tests: New file.
33
34         New module 'uninorm/filter'.
35         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36         uninorm_filter_flush, uninorm_filter_free): New declarations.
37         * lib/uninorm/uninorm-filter.c: New file.
38         * modules/uninorm/filter: New file.
39
40 2009-02-21  Bruno Haible  <bruno@clisp.org>
41
42         Tests for module 'uninorm/nfkc'.
43         * tests/uninorm/test-nfkc.c: New file.
44         * tests/uninorm/test-u8-nfkc.c: New file.
45         * tests/uninorm/test-u16-nfkc.c: New file.
46         * tests/uninorm/test-u32-nfkc.c: New file.
47         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48         * tests/uninorm/test-u32-nfkc-big.c: New file.
49         * modules/uninorm/nfkc-tests: New file.
50
51         New module 'uninorm/nfkc'.
52         * lib/uninorm/nfkc.c: New file.
53         * modules/uninorm/nfkc: New file.
54
55         Tests for module 'uninorm/nfkd'.
56         * tests/uninorm/test-nfkd.c: New file.
57         * tests/uninorm/test-u8-nfkd.c: New file.
58         * tests/uninorm/test-u16-nfkd.c: New file.
59         * tests/uninorm/test-u32-nfkd.c: New file.
60         * tests/uninorm/test-u32-nfkd-big.sh: New file.
61         * tests/uninorm/test-u32-nfkd-big.c: New file.
62         * modules/uninorm/nfkd-tests: New file.
63
64         New module 'uninorm/nfkd'.
65         * lib/uninorm/nfkd.c: New file.
66         * modules/uninorm/nfkd: New file.
67
68         Tests for module 'uninorm/nfc'.
69         * tests/uninorm/test-nfc.c: New file.
70         * tests/uninorm/test-u8-nfc.c: New file.
71         * tests/uninorm/test-u16-nfc.c: New file.
72         * tests/uninorm/test-u32-nfc.c: New file.
73         * tests/uninorm/test-u32-nfc-big.sh: New file.
74         * tests/uninorm/test-u32-nfc-big.c: New file.
75         * modules/uninorm/nfc-tests: New file.
76
77         New module 'uninorm/nfc'.
78         * lib/uninorm/nfc.c: New file.
79         * modules/uninorm/nfc: New file.
80
81         Tests for module 'uninorm/nfd'.
82         * tests/uninorm/test-nfd.c: New file.
83         * tests/uninorm/test-u8-nfd.c: New file.
84         * tests/uninorm/test-u16-nfd.c: New file.
85         * tests/uninorm/test-u32-nfd.c: New file.
86         * tests/uninorm/test-u32-nfd-big.sh: New file.
87         * tests/uninorm/test-u32-nfd-big.c: New file.
88         * tests/uninorm/test-u32-normalize-big.h: New file.
89         * tests/uninorm/test-u32-normalize-big.c: New file.
90         * tests/uninorm/NormalizationTest.txt: New file, created from
91         Unicode 5.1.0 NormalizationTest.txt.
92         * modules/uninorm/nfd-tests: New file.
93
94         New module 'uninorm/nfd'.
95         * lib/uninorm/nfd.c: New file.
96         * modules/uninorm/nfd: New file.
97
98         New module 'uninorm/u32-normalize'.
99         * lib/uninorm/u32-normalize.c: New file.
100         * modules/uninorm/u32-normalize: New file.
101
102         New module 'uninorm/u16-normalize'.
103         * lib/uninorm/u16-normalize.c: New file.
104         * modules/uninorm/u16-normalize: New file.
105
106         New module 'uninorm/u8-normalize'.
107         * lib/uninorm/u8-normalize.c: New file.
108         * lib/uninorm/normalize-internal.h: New file.
109         * lib/uninorm/u-normalize-internal.h: New file.
110         * modules/uninorm/u8-normalize: New file.
111
112         New module 'uninorm/decompose-internal'.
113         * lib/uninorm/decompose-internal.c: New file.
114         * modules/uninorm/decompose-internal: New file.
115
116         Tests for module 'uninorm/composition'.
117         * tests/uninorm/test-composition.c: New file.
118         * modules/uninorm/composition-tests: New file.
119
120         New module 'uninorm/composition'.
121         * lib/uninorm/composition.c: New file.
122         * lib/uninorm/composition-table.gperf: New file, generated by
123         gen-uni-tables.
124         * modules/uninorm/composition: New file.
125
126         Tests for module 'uninorm/compat-decomposition'.
127         * tests/uninorm/test-compat-decomposition.c: New file.
128         * modules/uninorm/compat-decomposition-tests: New file.
129
130         New module 'uninorm/compat-decomposition'.
131         * lib/uninorm/decompose-internal.h: New file.
132         * lib/uninorm/compat-decomposition.c: New file.
133         * modules/uninorm/compat-decomposition: New file.
134
135         Tests for module 'uninorm/canonical-decomposition'.
136         * tests/uninorm/test-canonical-decomposition.c: New file.
137         * modules/uninorm/canonical-decomposition-tests: New file.
138
139         New module 'uninorm/canonical-decomposition'.
140         * lib/uninorm/canonical-decomposition.c: New file.
141         * modules/uninorm/canonical-decomposition: New file.
142
143         Tests for module 'uninorm/decomposition'.
144         * tests/uninorm/test-decomposition.c: New file.
145         * modules/uninorm/decomposition-tests: New file.
146
147         New module 'uninorm/decomposition'.
148         * lib/uninorm/decomposition.c: New file.
149         * modules/uninorm/decomposition: New file.
150
151         New module 'uninorm/decomposition-table'.
152         * lib/uninorm/decomposition-table.h: New file.
153         * lib/uninorm/decomposition-table.c: New file.
154         * lib/uninorm/decomposition-table1.h: New file, generated by
155         gen-uni-tables.
156         * lib/uninorm/decomposition-table2.h: New file, generated by
157         gen-uni-tables.
158         * modules/uninorm/decomposition-table: New file.
159
160         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
161         (UC_DECOMP_*): New enumeration items.
162         (get_decomposition): New function.
163         (struct decomp_table): New type.
164         (output_decomposition, output_decomposition_tables): New functions.
165         (unicode_composition_exclusions): New variable.
166         (fill_composition_exclusions, debug_output_composition_tables): New
167         functions.
168         (main): Accept one more argument. Invoke fill_composition_exclusions.
169         Output decomposition and composition tables.
170
171         New module 'uninorm/base'.
172         * lib/uninorm.h: New file.
173         * lib/unictype.h: Update comment.
174         * modules/uninorm/base: New file.
175
176 2009-02-21  David Lutterkort  <lutter@redhat.com>
177
178         Tests for module 'safe-alloc'.
179         * tests/test-safe-alloc.c: New file.
180         * modules/safe-alloc-tests: New file.
181
182         New module 'safe-alloc'.
183         * lib/safe-alloc.h: New file.
184         * lib/safe-alloc.c: New file.
185         * m4/safe-alloc.m4: New file.
186         * modules/safe-alloc: New file.
187         * doc/safe-alloc.texi: New file.
188         * doc/gnulib.texi: Include it.
189         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
190         safe-alloc.
191
192 2009-02-18  Bruno Haible  <bruno@clisp.org>
193
194         Fix link error on non-glibc systems.
195         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
196         variable.
197         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
198
199 2009-02-18  Jim Meyering  <meyering@redhat.com>
200
201         fts: avoid used-uninitialized error due to recent change
202         * lib/fts.c (fts_read): Guard uses of the new member,
203         parent->fts_n_dirs_remaining, since it's not relevant for
204         the parent of a directory specified on the command-line.
205
206 2009-02-17  James Youngman  <jay@gnu.org>
207             Bruno Haible  <bruno@clisp.org>
208
209         * m4/include_next.m4: Reformulate comment.
210
211 2009-02-16  Jim Meyering  <meyering@redhat.com>
212
213         fts: add #if guards so that the fts_lgpl module still builds
214         * lib/fts.c: Guard just-added hash-table-using parts with
215         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
216         Reported by Simon Josefsson.
217
218 2009-02-15  Bruno Haible  <bruno@clisp.org>
219
220         * modules/array-mergesort-tests: New file.
221         * tests/test-array-mergesort.c: New file.
222
223         New module 'array-mergesort'.
224         * modules/array-mergesort: New file.
225         * lib/array-mergesort.h: New file.
226
227 2009-02-15  Bruno Haible  <bruno@clisp.org>
228
229         Fix 2009-02-07 commit.
230         * lib/gen-uni-tables.c (output_predicate, output_category,
231         output_combclass, output_bidi_category, output_decimal_digit,
232         output_digit, output_numeric, output_mirror, output_scripts,
233         output_ident_category, output_simple_mapping): Fix format directives.
234         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
235
236 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
237
238         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
239         fixes are available from IBM.
240
241 2009-02-13  Jim Meyering  <meyering@redhat.com>
242
243         fts: arrange not to stat non-directories in more cases
244         This makes GNU find (when it doesn't need to stat each file)
245         *much* more efficient at traversing reiserfs file systems.
246         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
247         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
248         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
249         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
250         (leaf_optimization_applies): New function.
251         (LCO_hash, LCO_compare): New helper functions.
252         (link_count_optimize_ok): New function.
253         (fts_stat): Initialize new member (if dir).
254         (fts_read): Decrement parent's fts_n_dirs_remaining count if
255         we've just stat'ed a directory.  Skip the stat call when possible.
256         ---
257         Note this AFS-related exchange:
258         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
259         and note find's pioctl call in find/fstype.c.
260         But that is necessary only if you want to enable the
261         optimization for AFS, and for now, I don't.
262
263         fts: move a function definition "up" (no semantic change)
264         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
265         "up" to precede upcoming use of a related function.
266
267 2009-02-11  Jim Meyering  <meyering@redhat.com>
268
269         fts: correct internal computation of nlinks (optimization-related)
270         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
271         whether the current entry is a directory, so don't test it.
272
273 2009-02-10  Bruno Haible  <bruno@clisp.org>
274
275         Tests for module 'uniwbrk/ulc-wordbreaks'.
276         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
277         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
278         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
279
280         Tests for module 'uniwbrk/u32-wordbreaks'.
281         * modules/uniwbrk/u32-wordbreaks-tests: New file.
282         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
283
284         Tests for module 'uniwbrk/u16-wordbreaks'.
285         * modules/uniwbrk/u16-wordbreaks-tests: New file.
286         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
287
288         Tests for module 'uniwbrk/u8-wordbreaks'.
289         * modules/uniwbrk/u8-wordbreaks-tests: New file.
290         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
291
292 2009-02-10  Bruno Haible  <bruno@clisp.org>
293
294         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
295         property.
296         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
297         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
298         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
299
300 2009-02-10  Simon Josefsson  <simon@josefsson.org>
301
302         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
303         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
304
305 2009-02-10  Bruno Haible  <bruno@clisp.org>
306
307         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
308         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
309         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
310         * lib/unilbrk/u8-possible-linebreaks.c: Update.
311         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
312         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
313
314 2009-02-09  Simon Josefsson  <simon@josefsson.org>
315
316         * lib/sockets.h (gl_fd_to_handle): New function.
317
318         * tests/test-sockets.c: Call gl_fd_to_handle.
319
320 2009-02-09  Bruno Haible  <bruno@clisp.org>
321
322         * doc/havelib.texi: Document the conventions on bi-arch systems.
323
324 2009-02-08  Bruno Haible  <bruno@clisp.org>
325
326         Document the AC_LIB_LINKFLAGS macro.
327         * doc/havelib.texi: New file, mostly written on 2005-05-24.
328         * doc/gnulib.texi: Include it.
329
330 2009-02-08  Bruno Haible  <bruno@clisp.org>
331
332         Fix wrong order of sections, compared to TOC.
333         * doc/gnulib.texi: Include relocatable-maint.texi after the
334         "Regular expressions" node, not before.
335
336 2009-02-08  Bruno Haible  <bruno@clisp.org>
337
338         Tests for module 'unicase/totitle'.
339         * modules/unicase/totitle-tests: New file.
340
341         Tests for module 'unicase/tolower'.
342         * modules/unicase/tolower-tests: New file.
343
344         Tests for module 'unicase/toupper'.
345         * modules/unicase/toupper-tests: New file.
346         * tests/unicase/test-mapping-part1.h: New file.
347         * tests/unicase/test-mapping-part2.h: New file.
348
349         New module 'unicase/totitle'.
350         * modules/unicase/totitle: New file.
351         * lib/unicase/totitle.c: New file.
352
353         New module 'unicase/tolower'.
354         * modules/unicase/tolower: New file.
355         * lib/unicase/tolower.c: New file.
356
357         New module 'unicase/toupper'.
358         * modules/unicase/toupper: New file.
359         * lib/unicase/toupper.c: New file.
360         * lib/unicase/simple-mapping.h: New file.
361
362         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
363         (mapping_table): New structure.
364         (output_simple_mapping): New function.
365         (main): Invoke output_simple_mapping_test and output_simple_mapping.
366         * modules/gen-uni-tables (Description): Update.
367         * lib/unicase/toupper.h: New file, automatically generated by
368         gen-uni-tables.
369         * lib/unicase/tolower.h: New file, automatically generated by
370         gen-uni-tables.
371         * lib/unicase/totitle.h: New file, automatically generated by
372         gen-uni-tables.
373         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
374         gen-uni-tables.
375         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
376         gen-uni-tables.
377         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
378         gen-uni-tables.
379
380         New module 'unicase/base'.
381         * modules/unicase/base: New file.
382         * lib/unicase.h: New file.
383
384 2009-02-08  Bruno Haible  <bruno@clisp.org>
385
386         New module 'uniwbrk/ulc-wordbreaks'.
387         * modules/uniwbrk/ulc-wordbreaks: New file.
388         * lib/uniwbrk/ulc-wordbreaks.c: New file.
389
390         New module 'uniwbrk/u32-wordbreaks'.
391         * modules/uniwbrk/u32-wordbreaks: New file.
392         * lib/uniwbrk/u32-wordbreaks.c: New file.
393
394         New module 'uniwbrk/u16-wordbreaks'.
395         * modules/uniwbrk/u16-wordbreaks: New file.
396         * lib/uniwbrk/u16-wordbreaks.c: New file.
397
398         New module 'uniwbrk/u8-wordbreaks'.
399         * modules/uniwbrk/u8-wordbreaks: New file.
400         * lib/uniwbrk/u8-wordbreaks.c: New file.
401         * lib/uniwbrk/u-wordbreaks.h: New file.
402
403         New module 'uniwbrk/table'.
404         * modules/uniwbrk/table: New file.
405         * lib/uniwbrk/wbrktable.h: New file.
406         * lib/uniwbrk/wbrktable.c: New file.
407
408         New module 'uniwbrk/wordbreak-property'.
409         * modules/uniwbrk/wordbreak-property: New file.
410         * lib/uniwbrk/wordbreak-property.c: New file.
411
412         * lib/gen-uni-tables.c (WBP_*): New enum items.
413         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
414         (unicode_org_wbp): New variable.
415         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
416         New functions.
417         (wbp_table): New structure.
418         (output_wbp, output_wbrk_tables): New functions.
419         (main): Accept additional argument. Invoke fill_org_wbp,
420         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
421         output_wbrk_tables.
422         * modules/gen-uni-tables (Description): Update.
423         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
424         gen-uni-tables.
425
426         New module 'uniwbrk/base'.
427         * modules/uniwbrk/base: New file.
428         * lib/uniwbrk.h: New file.
429
430 2009-02-08  Bruno Haible  <bruno@clisp.org>
431
432         Update to Unicode 5.1.0.
433         * lib/gen-uni-tables.c (is_property_alphabetic): Include
434         U+2185..U+2188.
435         (is_property_default_ignorable_code_point): Don't include characters
436         of category Cc or Cs and not-a-characters.
437         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
438         U+0D79, U+109E, U+109F, U+A60C.
439         * lib/unictype/bidi_of.h: Regenerated.
440         * lib/unictype/blocks.h: Regenerated.
441         * lib/unictype/categ_C.h: Regenerated.
442         * lib/unictype/categ_Cf.h: Regenerated.
443         * lib/unictype/categ_Cn.h: Regenerated.
444         * lib/unictype/categ_L.h: Regenerated.
445         * lib/unictype/categ_Ll.h: Regenerated.
446         * lib/unictype/categ_Lm.h: Regenerated.
447         * lib/unictype/categ_Lo.h: Regenerated.
448         * lib/unictype/categ_Lu.h: Regenerated.
449         * lib/unictype/categ_M.h: Regenerated.
450         * lib/unictype/categ_Mc.h: Regenerated.
451         * lib/unictype/categ_Me.h: Regenerated.
452         * lib/unictype/categ_Mn.h: Regenerated.
453         * lib/unictype/categ_N.h: Regenerated.
454         * lib/unictype/categ_Nd.h: Regenerated.
455         * lib/unictype/categ_Nl.h: Regenerated.
456         * lib/unictype/categ_No.h: Regenerated.
457         * lib/unictype/categ_P.h: Regenerated.
458         * lib/unictype/categ_Pd.h: Regenerated.
459         * lib/unictype/categ_Pe.h: Regenerated.
460         * lib/unictype/categ_Pf.h: Regenerated.
461         * lib/unictype/categ_Pi.h: Regenerated.
462         * lib/unictype/categ_Po.h: Regenerated.
463         * lib/unictype/categ_Ps.h: Regenerated.
464         * lib/unictype/categ_S.h: Regenerated.
465         * lib/unictype/categ_Sk.h: Regenerated.
466         * lib/unictype/categ_Sm.h: Regenerated.
467         * lib/unictype/categ_So.h: Regenerated.
468         * lib/unictype/categ_of.h: Regenerated.
469         * lib/unictype/combining.h: Regenerated.
470         * lib/unictype/ctype_alnum.h: Regenerated.
471         * lib/unictype/ctype_alpha.h: Regenerated.
472         * lib/unictype/ctype_graph.h: Regenerated.
473         * lib/unictype/ctype_lower.h: Regenerated.
474         * lib/unictype/ctype_print.h: Regenerated.
475         * lib/unictype/ctype_punct.h: Regenerated.
476         * lib/unictype/ctype_upper.h: Regenerated.
477         * lib/unictype/decdigit.h: Regenerated.
478         * lib/unictype/digit.h: Regenerated.
479         * lib/unictype/mirror.h: Regenerated.
480         * lib/unictype/numeric.h: Regenerated.
481         * lib/unictype/pr_alphabetic.h: Regenerated.
482         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
483         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
484         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
485         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
486         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
487         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
488         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
489         * lib/unictype/pr_combining.h: Regenerated.
490         * lib/unictype/pr_dash.h: Regenerated.
491         * lib/unictype/pr_decimal_digit.h: Regenerated.
492         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
493         * lib/unictype/pr_deprecated.h: Regenerated.
494         * lib/unictype/pr_diacritic.h: Regenerated.
495         * lib/unictype/pr_extender.h: Regenerated.
496         * lib/unictype/pr_format_control.h: Regenerated.
497         * lib/unictype/pr_grapheme_base.h: Regenerated.
498         * lib/unictype/pr_grapheme_extend.h: Regenerated.
499         * lib/unictype/pr_grapheme_link.h: Regenerated.
500         * lib/unictype/pr_id_continue.h: Regenerated.
501         * lib/unictype/pr_id_start.h: Regenerated.
502         * lib/unictype/pr_ideographic.h: Regenerated.
503         * lib/unictype/pr_ignorable_control.h: Regenerated.
504         * lib/unictype/pr_lowercase.h: Regenerated.
505         * lib/unictype/pr_math.h: Regenerated.
506         * lib/unictype/pr_numeric.h: Regenerated.
507         * lib/unictype/pr_other_alphabetic.h: Regenerated.
508         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
509         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
510         * lib/unictype/pr_other_id_continue.h: Regenerated.
511         * lib/unictype/pr_other_lowercase.h: Regenerated.
512         * lib/unictype/pr_other_math.h: Regenerated.
513         * lib/unictype/pr_punctuation.h: Regenerated.
514         * lib/unictype/pr_sentence_terminal.h: Regenerated.
515         * lib/unictype/pr_soft_dotted.h: Regenerated.
516         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
517         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
518         * lib/unictype/pr_unified_ideograph.h: Regenerated.
519         * lib/unictype/pr_uppercase.h: Regenerated.
520         * lib/unictype/pr_xid_continue.h: Regenerated.
521         * lib/unictype/pr_xid_start.h: Regenerated.
522         * lib/unictype/pr_zero_width.h: Regenerated.
523         * lib/unictype/scripts.h: Regenerated.
524         * lib/unictype/scripts_byname.gperf: Regenerated.
525         * lib/unictype/sy_java_ident.h: Regenerated.
526         * lib/unilbrk/lbrkprop1.h: Regenerated.
527         * lib/unilbrk/lbrkprop2.h: Regenerated.
528         * tests/unictype/test-categ_C.c: Regenerated.
529         * tests/unictype/test-categ_Cf.c: Regenerated.
530         * tests/unictype/test-categ_Cn.c: Regenerated.
531         * tests/unictype/test-categ_L.c: Regenerated.
532         * tests/unictype/test-categ_Ll.c: Regenerated.
533         * tests/unictype/test-categ_Lm.c: Regenerated.
534         * tests/unictype/test-categ_Lo.c: Regenerated.
535         * tests/unictype/test-categ_Lu.c: Regenerated.
536         * tests/unictype/test-categ_M.c: Regenerated.
537         * tests/unictype/test-categ_Mc.c: Regenerated.
538         * tests/unictype/test-categ_Me.c: Regenerated.
539         * tests/unictype/test-categ_Mn.c: Regenerated.
540         * tests/unictype/test-categ_N.c: Regenerated.
541         * tests/unictype/test-categ_Nd.c: Regenerated.
542         * tests/unictype/test-categ_Nl.c: Regenerated.
543         * tests/unictype/test-categ_No.c: Regenerated.
544         * tests/unictype/test-categ_P.c: Regenerated.
545         * tests/unictype/test-categ_Pd.c: Regenerated.
546         * tests/unictype/test-categ_Pe.c: Regenerated.
547         * tests/unictype/test-categ_Pf.c: Regenerated.
548         * tests/unictype/test-categ_Pi.c: Regenerated.
549         * tests/unictype/test-categ_Po.c: Regenerated.
550         * tests/unictype/test-categ_Ps.c: Regenerated.
551         * tests/unictype/test-categ_S.c: Regenerated.
552         * tests/unictype/test-categ_Sk.c: Regenerated.
553         * tests/unictype/test-categ_Sm.c: Regenerated.
554         * tests/unictype/test-categ_So.c: Regenerated.
555         * tests/unictype/test-ctype_alnum.c: Regenerated.
556         * tests/unictype/test-ctype_alpha.c: Regenerated.
557         * tests/unictype/test-ctype_graph.c: Regenerated.
558         * tests/unictype/test-ctype_lower.c: Regenerated.
559         * tests/unictype/test-ctype_print.c: Regenerated.
560         * tests/unictype/test-ctype_punct.c: Regenerated.
561         * tests/unictype/test-ctype_upper.c: Regenerated.
562         * tests/unictype/test-decdigit.h: Regenerated.
563         * tests/unictype/test-digit.h: Regenerated.
564         * tests/unictype/test-numeric.h: Regenerated.
565         * tests/unictype/test-pr_alphabetic.c: Regenerated.
566         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
567         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
568         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
569         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
570         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
571         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
572         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
573         * tests/unictype/test-pr_combining.c: Regenerated.
574         * tests/unictype/test-pr_dash.c: Regenerated.
575         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
576         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
577         * tests/unictype/test-pr_deprecated.c: Regenerated.
578         * tests/unictype/test-pr_diacritic.c: Regenerated.
579         * tests/unictype/test-pr_extender.c: Regenerated.
580         * tests/unictype/test-pr_format_control.c: Regenerated.
581         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
582         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
583         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
584         * tests/unictype/test-pr_id_continue.c: Regenerated.
585         * tests/unictype/test-pr_id_start.c: Regenerated.
586         * tests/unictype/test-pr_ideographic.c: Regenerated.
587         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
588         * tests/unictype/test-pr_lowercase.c: Regenerated.
589         * tests/unictype/test-pr_math.c: Regenerated.
590         * tests/unictype/test-pr_numeric.c: Regenerated.
591         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
592         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
593         Regenerated.
594         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
595         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
596         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
597         * tests/unictype/test-pr_other_math.c: Regenerated.
598         * tests/unictype/test-pr_punctuation.c: Regenerated.
599         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
600         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
601         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
602         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
603         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
604         * tests/unictype/test-pr_uppercase.c: Regenerated.
605         * tests/unictype/test-pr_xid_continue.c: Regenerated.
606         * tests/unictype/test-pr_xid_start.c: Regenerated.
607         * tests/unictype/test-pr_zero_width.c: Regenerated.
608
609         Update to Unicode 5.1.0.
610         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
611         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
612         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
613         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
614         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
615         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
616         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
617         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
618         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
619         (nonspacing_table_ind): Update.
620         * tests/uniwidth/test-uc_width2.sh: Update expected result.
621
622         Update to Unicode 5.1.0.
623         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
624         code transform.
625         * lib/uniname/uniname.c (unicode_character_name,
626         unicode_name_character): Add the range 0x1Fxxx to the code transform.
627         * lib/uniname/uninames.h: Regenerated.
628         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
629
630 2009-02-07  Bruno Haible  <bruno@clisp.org>
631
632         Merge gen-ctype and gen-lbrk into a single program.
633         * lib/gen-uni-tables.c: New file, incorporating
634         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
635         Add directory prefixes to the names of the generated files.
636         * lib/unictype/gen-ctype.c: Remove file.
637         * lib/unilbrk/gen-lbrk.c: Remove file.
638         * modules/gen-uni-tables: New file.
639         * modules/unictype/gen-ctype: Remove file.
640         * modules/unilbrk/gen-lbrk: Remove file.
641
642 2009-02-07  Bruno Haible  <bruno@clisp.org>
643
644         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
645
646         New module 'unistr/u32-strcoll'.
647         * modules/unistr/u32-strcoll: New file.
648         * lib/unistr/u32-strcoll.c: New file.
649
650         New module 'unistr/u16-strcoll'.
651         * modules/unistr/u16-strcoll: New file.
652         * lib/unistr/u16-strcoll.c: New file.
653
654         New module 'unistr/u8-strcoll'.
655         * modules/unistr/u8-strcoll: New file.
656         * lib/unistr/u8-strcoll.c: New file.
657         * lib/unistr/u-strcoll.h: New file.
658
659 2009-02-07  Bruno Haible  <bruno@clisp.org>
660
661         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
662         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
663         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
664         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
665         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
666         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
667
668 2009-02-07  Bruno Haible  <bruno@clisp.org>
669
670         Make 64-bit clean.
671         * lib/unictype/gen-ctype.c (output_predicate, output_category,
672         output_combclass, output_bidi_category, output_decimal_digit,
673         output_digit, output_numeric, output_mirror, output_scripts,
674         output_ident_category): Use proper width specifier in format strings.
675
676 2009-02-07  Bruno Haible  <bruno@clisp.org>
677
678         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
679         failure behaviour.
680
681 2009-02-07  Jim Meyering  <meyering@redhat.com>
682
683         regex: avoid compilation failure with upcoming gcc-4.4
684         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
685         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
686         "... error: integer overflow in preprocessor expression".
687
688 2009-02-05  Ben Pfaff  <blp@gnu.org>
689
690         Fix link errors on Windows when close module is used.
691         * modules/close: Add $(LIB_CLOSE) to Link section.
692         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
693         $(LIB_CLOSE) on Windows.
694
695 2009-02-05  Jim Meyering  <meyering@redhat.com>
696
697         still avoid unused-parameter warnings, but do it cleanly
698         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
699         (get_fs_usage): Cast to void instead.
700         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
701         (dev_from_mount_options, read_file_system_list): Cast to void.
702         Prompted by Bruno Haible.
703
704 2009-02-04  Jim Meyering  <meyering@redhat.com>
705
706         fsusage.c: correct copyright year
707         * lib/fsusage.c: Reflect year in which the change is pushed into
708
709         avoid misc. warnings
710         * lib/fsusage.c (UNUSED_PARAM): Define.
711         (get_fs_usage): Mark parameter "disk" as unused.
712         * lib/getugroups.c (getgrent): Use "void" in prototype.
713         * lib/mountlist.c: Mark unused parameters.
714         (read_file_system_list): Declare a local with "const".
715         * lib/nanosleep.c (getnow): Declare static.
716         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
717
718         dirfd: set errno upon failure
719         * lib/dirfd.c: Include <errno.h>.
720         Set errno to ENOTSUP when returning -1.
721         * modules/dirfd (Depends-on): Add errno.
722         Suggested by John Kodis <kodis@comcast.net>.
723
724 2009-02-01  Bruno Haible  <bruno@clisp.org>
725
726         Don't assume sizeof (long) >= sizeof (void *).
727         * lib/memcmp.c: Include stdint.h.
728         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
729         srcp2 to 'const byte *'.
730         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
731         types to uintptr_t.
732         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
733         * modules/memcmp (Depends-on): Add stdint.
734         Reported by Ozkan Sezer <sezeroz@gmail.com>.
735
736 2009-01-30  Eric Blake  <ebb9@byu.net>
737
738         fix more require-before-expand issues
739         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
740         expand, AC_PROG_AWK.
741         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
742
743 2009-01-28  Eric Blake  <ebb9@byu.net>
744
745         version-etc: use consistent URL formatting
746         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
747         Improve formatting.  Use fputs for string without %.
748
749 2009-01-28  Jim Meyering  <meyering@redhat.com>
750
751         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
752         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
753         "underquoted definition of NAME" from autoconf-2.59.
754
755 2009-01-28  Bruno Haible  <bruno@clisp.org>
756
757         * doc/gnulib.texi: Add "Obsolete modules" to index.
758
759 2009-01-28  Jim Meyering  <meyering@redhat.com>
760
761         useless-if-before-free: recognize more variants
762         * build-aux/useless-if-before-free: Also recognize e.g.,
763         if (NULL != p) free (p);
764
765 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
766
767         test-getaddrinfo: skip (don't fail) this test when there's no network
768         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
769         on the presumption that it means you lack network access.
770
771 2009-01-26  Jim Meyering  <meyering@redhat.com>
772
773         fflush: avoid warnings on modern systems
774         * lib/fflush.c (rpl_fflush): Move declarations of locals,
775         pos and result, into scopes where they're used.
776
777 2009-01-26  Eric Blake  <ebb9@byu.net>
778
779         Silence warning reintroduced by recent extensions patch.
780         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
781         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
782         autoconf.
783
784         Backport improved autoconf semantics of AC_DEFUN_ONCE.
785         * m4/00gnulib.m4: New file.
786         * gnulib-tool (func_get_filelist): Always use it.
787         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
788         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
789
790 2009-01-25  Bruno Haible  <bruno@clisp.org>
791
792         Make test-quotearg work on MacOS X and AIX.
793         * tests/test-quotearg.sh: New file.
794         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
795         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
796         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
797         include <libintl.h>.
798         (fake_locale): Remove variable.
799         (gettext, dgettext, dcgettext): Remove functions.
800         (main): Instead of setting a fake locale, set a real locale. Call
801         textdomain and bindtextdomain.
802         * modules/quotearg-tests (Files): Add the new files.
803         (Depends-on): Add gettext, setenv, unsetenv.
804         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
805         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
806         Augment TESTS_ENVIRONMENT.
807
808 2009-01-25  Bruno Haible  <bruno@clisp.org>
809
810         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
811         fr_FR.ISO8859-1 locale on MacOS X.
812         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
813         ja_JP.eucJP locale on MacOS X.
814         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
815         zh_CN.GB18030 locale on MacOS X.
816
817 2009-01-25  Bruno Haible  <bruno@clisp.org>
818
819         Avoid link errors on MacOS X 10.3.
820         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
821         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
822
823 2009-01-25  Bruno Haible  <bruno@clisp.org>
824
825         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
826         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
827         * modules/pipe (Files): Remove m4/posix_spawn.m4.
828         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
829         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
830         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
831         posix_spawnattr_init, posix_spawnattr_setsigmask,
832         posix_spawnattr_setflags, posix_spawnattr_destroy.
833
834         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
835         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
836         * modules/execute (Files): Remove m4/posix_spawn.m4.
837         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
838         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
839         posix_spawnattr_init, posix_spawnattr_setsigmask,
840         posix_spawnattr_setflags, posix_spawnattr_destroy.
841
842 2009-01-25  Bruno Haible  <bruno@clisp.org>
843
844         * lib/glthread/threadlib.c: Include <stdlib.h>.
845
846 2009-01-25  Bruno Haible  <bruno@clisp.org>
847
848         * lib/glthread/threadlib.c (dummy): New declaration.
849
850 2009-01-25  Bruno Haible  <bruno@clisp.org>
851
852         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
853         multibyte characters also for the GB18030 encoding. Don't crash when
854         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
855
856 2009-01-25  Bruno Haible  <bruno@clisp.org>
857
858         Avoid redefining 'struct random_data' on OSF/1 5.1.
859         * lib/stdlib.in.h: Include <random.h> if it exists.
860         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
861         HAVE_RANDOM_H. Include <random.h> when testing whether
862         'struct random_data' exists.
863         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
864
865 2009-01-25  Bruno Haible  <bruno@clisp.org>
866
867         Don't install charset.alias on MacOS X >= 10.3.
868         * lib/localcharset.c (DARWIN7): New macro.
869         (get_charset_aliases): Hardcode the result for Darwin7.
870         * modules/localcharset (install-exec-local): Don't install
871         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
872
873 2009-01-25  Bruno Haible  <bruno@clisp.org>
874
875         Don't install charset.alias on mingw and Cygwin.
876         * modules/localcharset (install-exec-local): Don't install
877         charset.alias on mingw and Cygwin, if the file does not yet exist.
878         The result for these platforms is hardcoded in localcharset.c.
879
880 2009-01-25  Bruno Haible  <bruno@clisp.org>
881
882         Make it possible again to use AC_GNU_SOURCE together with gnulib.
883         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
884         before requiring AC_USE_SYSTEM_EXTENSIONS.
885
886 2009-01-25  Jim Meyering  <meyering@redhat.com>
887
888         c-strtod: avoid warnings
889         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
890         "assignment discards qualifiers from pointer target type" warnings.
891
892 2009-01-24  Bruno Haible  <bruno@clisp.org>
893
894         Add support for non-UTF-8 locales on MacOS X.
895         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
896         canonical encodings. For Darwin 7 and newer, don't map traditional
897         encodings to UTF-8.
898         Reported by Vincent Lefevre <vincent@vinc17.org>
899         at <http://savannah.gnu.org/bugs/?25235>.
900
901 2009-01-24  Bruno Haible  <bruno@clisp.org>
902
903         * doc/gnulib.texi (Obsolete modules): New section.
904         Reported by Mike Frysinger <vapier@gentoo.org>.
905
906 2009-01-24  Bruno Haible  <bruno@clisp.org>
907
908         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
909         (%.dvi): New rule.
910
911 2009-01-24  Bruno Haible  <bruno@clisp.org>
912
913         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
914         Reported by Eric Blake.
915
916 2009-01-24  Bruno Haible  <bruno@clisp.org>
917
918         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
919         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
920         Reported by Gary V. Vaughan <gary@gnu.org>.
921
922 2009-01-24  Bruno Haible  <bruno@clisp.org>
923
924         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
925
926 2009-01-23  Bruno Haible  <bruno@clisp.org>
927
928         Make c-strtod, c-strtold usable in libraries.
929         * lib/c-strtod.c: Include string.h instead of xalloc.h.
930         (C_STRTOD): Call strdup instead of xstrdup.
931         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
932         * modules/c-strtold (Depends-on): Likewise.
933         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
934         * NEWS: Mention the change.
935         Reported by Michael Gold <mgold@ncf.ca>.
936
937 2009-01-23  Jim Meyering  <meyering@redhat.com>
938
939         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
940         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
941         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
942
943 2009-01-23  Simon Josefsson  <simon@josefsson.org>
944
945         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
946         GNU CoreUtils.
947         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
948         * modules/version-etc (Description): Update.
949
950 2009-01-22  Bruno Haible  <bruno@clisp.org>
951
952         Cache the C locale object.
953         * lib/c-strtod.c (c_locale_cache): New variable.
954         (c_locale): New function.
955         (C_STRTOD): Use it, and don't call freelocale.
956         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
957         Suggested by Paolo Bonzini.
958
959 2009-01-21  Bruno Haible  <bruno@clisp.org>
960
961         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
962         conditions other than overflow.
963
964 2009-01-21  Bruno Haible  <bruno@clisp.org>
965
966         * lib/c-strtod.c: Include errno.h.
967         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
968         value from STRTOD_L and STRTOD.
969
970 2009-01-21  Bruno Haible  <bruno@clisp.org>
971         and Jim Meyering  <meyering@redhat.com>
972
973         nanosleep: skip configure test (fail it) for apple universal builds
974         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
975         universal builds, assume that nanosleep does not work.
976         * modules/nanosleep (Depends-on): Add multiarch.
977
978         mktime: skip configure test (fail it) for apple universal builds
979         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
980         universal builds, assume that mktime does not work.
981         * modules/mktime (Depends-on): Add multiarch.
982
983 2009-01-21  Eric Blake  <ebb9@byu.net>
984
985         multiarch: avoid expand-before-require warning
986         * modules/multiarch (configure.ac): Require, rather than expand,
987         gl_MULTIARCH.
988         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
989         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
990         enforce that all clients require it.  Partial reversion of
991         2008-12-29 patch.
992
993         error: avoid expand-before-require warning
994         * modules/errno (configure.ac): Require, rather than expand,
995         gl_HEADER_ERRNO_H.
996         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
997         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
998         enforce that all clients require it.
999
1000         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
1001         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
1002         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
1003         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
1004
1005 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
1006
1007         Revert:
1008         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
1009
1010         regex: do not depend on obsolete modules.
1011         * modules/regex: Remove memcmp and memmove.
1012
1013 2009-01-20  Bruno Haible  <bruno@clisp.org>
1014
1015         Make the 'link' module link on Windows NT 4.
1016         * lib/link.c (_WIN32_WINNT): Don't define.
1017         (CreateHardLinkFuncType): New type.
1018         (CreateHardLinkFunc, initialized): New variables.
1019         (initialize): New function.
1020         (link): Invoke CreateHardLink indirectly through the function pointer.
1021
1022 2009-01-20  Bruno Haible  <bruno@clisp.org>
1023
1024         Fix compilation failure on mingw.
1025         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
1026
1027 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
1028
1029         * doc/c-strtod.texi: Mention a couple of restrictions.
1030
1031 2009-01-20  Jim Meyering  <meyering@redhat.com>
1032
1033         gettimeofday: move more declarations out of functions
1034         * lib/gettimeofday.c: Move extern declarations of tzset and
1035         gmtime out of containing functions.  Prompted by Bruno Haible.
1036
1037 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
1038
1039         regex: do not depend on obsolete modules.
1040         * modules/regex: Remove memcmp and memmove.
1041
1042 2009-01-19  Bruno Haible  <bruno@clisp.org>
1043
1044         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
1045         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
1046         gl_BIGENDIAN, not AC_C_BIGENDIAN.
1047         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
1048         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
1049
1050 2009-01-19  Bruno Haible  <bruno@clisp.org>
1051
1052         * tests/test-link.c: Include <errno.h>.
1053         (main): Exit with code 77 when a hard link cannot be created due to
1054         the file system.
1055         * tests/test-link.sh: Skip test when a hard link cannot be created due
1056         to the file system.
1057         Suggested by Eric Blake.
1058
1059 2009-01-19  Martin Lambers  <marlam@marlam.de>
1060
1061         * modules/link-tests: New file.
1062         * tests/test-link.sh: New file.
1063         * tests/test-link.c: New file.
1064
1065 2009-01-19  Eric Blake  <ebb9@byu.net>
1066
1067         doc: mention another function added in cygwin 1.7.0
1068         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
1069         Another new function in cygwin 1.7.
1070
1071 2009-01-19  Bruno Haible  <bruno@clisp.org>
1072
1073         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
1074         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
1075         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
1076         gl_BIGENDIAN, not AC_C_BIGENDIAN.
1077         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1078         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
1079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1080         * m4/md4.m4 (gl_MD4): Likewise.
1081         * m4/md5.m4 (gl_MD5): Likewise.
1082         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
1083         * m4/sha1.m4 (gl_SHA1): Likewise.
1084         * m4/sha256.m4 (gl_SHA256): Likewise.
1085         * m4/sha512.m4 (gl_SHA512): Likewise.
1086
1087 2009-01-19  Bruno Haible  <bruno@clisp.org>
1088
1089         * modules/uniname/uniname-tests (Depends-on): Add progname.
1090         * tests/uniname/test-uninames.c: Include progname.h.
1091         (main): Call set_program_name.
1092
1093         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
1094         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
1095         (main): Call set_program_name.
1096
1097         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
1098         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
1099         (main): Call set_program_name.
1100
1101         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
1102         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
1103         (main): Call set_program_name.
1104
1105         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
1106         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
1107         (main): Call set_program_name.
1108
1109         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
1110         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
1111         (main): Call set_program_name.
1112
1113         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
1114         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
1115         (main): Call set_program_name.
1116
1117         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
1118         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
1119         (main): Call set_program_name.
1120
1121         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
1122         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
1123         (main): Call set_program_name.
1124
1125 2009-01-19  Eric Blake  <ebb9@byu.net>
1126
1127         test-unistd: test previous patch
1128         * tests/test-unistd.c: Test *_FILENO macros.
1129
1130         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
1131         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
1132         Guarantee a definition.
1133         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
1134         * modules/unistd-safer (Depends-on): Add dependency on unistd.
1135         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
1136         * lib/dup-safer.c (STDERR_FILENO): Likewise.
1137         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
1138         Likewise.
1139         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
1140         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
1141         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
1142         Likewise.
1143         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
1144         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
1145         (STDERR_FILENO): Likewise.
1146         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
1147         (STDERR_FILENO): Likewise.
1148         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
1149         (STDERR_FILENO): Likewise.
1150         Reported by Elbert Pol.
1151
1152 2009-01-19  Eric Blake  <ebb9@byu.net>
1153
1154         doc: mention more functions added in cygwin 1.7.0
1155         * doc/posix-functions/abort.texi (abort): Update wording related
1156         to cygwin.
1157         * doc/posix-functions/daylight.texi (daylight): Likewise.
1158         * doc/posix-functions/optarg.texi (optarg): Likewise.
1159         * doc/posix-functions/optarg.texi (opterr): Likewise.
1160         * doc/posix-functions/optarg.texi (optind): Likewise.
1161         * doc/posix-functions/optarg.texi (optopt): Likewise.
1162         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
1163         worked in 1.5.x, and was withdrawn in 1.7.
1164         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1165         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
1166         cygwin versions.
1167         * doc/posix-functions/perror.texi (perror): Likewise.
1168         * doc/posix-functions/printf.texi (printf): Likewise.
1169         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
1170         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
1171         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1172         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1173         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1174         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
1175         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1176         Likewise.
1177         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1178         Likewise.
1179         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
1180         this function.
1181         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
1182         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
1183         Likewise.
1184         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
1185         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
1186         * doc/posix-functions/confstr.texi (confstr): Likewise.
1187         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
1188         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
1189         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
1190         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
1191         * doc/posix-functions/fputws.texi (fputws): Likewise.
1192         * doc/posix-functions/fwide.texi (fwide): Likewise.
1193         * doc/posix-functions/getwc.texi (getwc): Likewise.
1194         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
1195         * doc/posix-functions/putwc.texi (putwc): Likewise.
1196         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1197         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
1198         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
1199         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1200         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
1201         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
1202         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
1203         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
1204         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
1205         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
1206         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
1207
1208 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
1209
1210         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
1211         * lib/ioctl.c: Include <sys/ioctl.h>.
1212
1213 2009-01-19  Simon Josefsson  <simon@josefsson.org>
1214
1215         * modules/getdate-tests (Depends-on): Add progname.
1216         * tests/test-getdate.c: Use progname module, to avoid link errors
1217         on non-glibc systems.
1218
1219 2009-01-18  Simon Josefsson  <simon@josefsson.org>
1220
1221         * modules/filenamecat-tests (Depends-on): Add progname.
1222         * modules/fstrcmp-tests (Depends-on): Likewise.
1223
1224         * tests/test-filenamecat.c: Use progname module, to avoid link
1225         errors on non-glibc systems.
1226         * tests/test-fstrcmp.c: Likewise.
1227
1228 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
1229
1230         gettimeofday: avoid warning: nested extern declaration of 'localtime'
1231         * lib/gettimeofday.c: Move extern declaration out of function.
1232
1233 2009-01-18  Bruno Haible  <bruno@clisp.org>
1234
1235         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
1236         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
1237         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
1238
1239 2009-01-18  Bruno Haible  <bruno@clisp.org>
1240
1241         * lib/strftime.c (MEMPCPY): Remove unused macro.
1242         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
1243
1244 2009-01-18  Martin Lambers  <marlam@marlam.de>
1245
1246         New module 'link'.
1247         * lib/unistd.in.h (link): New declaration.
1248         * lib/link.c: New file.
1249         * m4/link.m4: New file.
1250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
1251         HAVE_LINK.
1252         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
1253         * modules/link: New file.
1254         * doc/posix-functions/link.texi: Mention the new module.
1255
1256 2009-01-18  Bruno Haible  <bruno@clisp.org>
1257
1258         * tests/test-avltree_list.c (main): Call set_program_name.
1259         * tests/test-avltree_oset.c (main): Likewise.
1260         * tests/test-obstack-printf.c: Include progname.h.
1261         (main): Call set_program_name.
1262         * tests/test-quotearg.c: Include progname.h.
1263         (main): Call set_program_name.
1264         * tests/test-xmemdup0.c: Include progname.h.
1265         (main): Call set_program_name.
1266
1267 2009-01-18  Bruno Haible  <bruno@clisp.org>
1268
1269         New module 'alphasort'.
1270         * lib/dirent.in.h (alphasort): New declaration.
1271         * lib/alphasort.c: New file, from glibc with modifications.
1272         * m4/alphasort.m4: New file.
1273         * modules/alphasort: New file.
1274         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
1275         HAVE_ALPHASORT.
1276         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
1277         HAVE_ALPHASORT.
1278         * doc/posix-functions/alphasort.texi: Mention the new module and the
1279         portability problems.
1280
1281 2009-01-18  Bruno Haible  <bruno@clisp.org>
1282
1283         New module 'scandir'.
1284         * lib/dirent.in.h (scandir): New declaration.
1285         * lib/scandir.c: New file, from glibc with modifications.
1286         * m4/scandir.m4: New file.
1287         * modules/scandir: New file.
1288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
1289         HAVE_SCANDIR.
1290         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
1291         HAVE_SCANDIR.
1292         * doc/posix-functions/scandir.texi: Mention the new module and the
1293         portability problems.
1294
1295 2009-01-17  Bruno Haible  <bruno@clisp.org>
1296
1297         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
1298         Update documentation.
1299         (func_remove_suffix): Escape all dots in the suffix. Update
1300         documentation.
1301         (func_filter_filelist): Update documentation.
1302         Reported by Ralf Wildenhues.
1303
1304 2009-01-17  Bruno Haible  <bruno@clisp.org>
1305
1306         * modules/dprintf-posix-tests: New file.
1307         * tests/test-dprintf-posix.sh: New file.
1308         * tests/test-dprintf-posix.c: New file.
1309
1310         New modules 'dprintf', 'dprintf-posix'.
1311         * lib/stdio.in.h (dprintf): New declaration.
1312         * lib/dprintf.c: New file.
1313         * m4/dprintf.m4: New file.
1314         * m4/dprintf-posix.m4: New file.
1315         * modules/dprintf: New file.
1316         * modules/dprintf-posix: New file.
1317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
1318         HAVE_DPRINTF, REPLACE_DPRINTF.
1319         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
1320         HAVE_DPRINTF, REPLACE_DPRINTF.
1321         * doc/posix-functions/dprintf.texi: Mention the new modules.
1322
1323 2009-01-17  Bruno Haible  <bruno@clisp.org>
1324
1325         * modules/vdprintf-posix-tests: New file.
1326         * tests/test-vdprintf-posix.sh: New file.
1327         * tests/test-vdprintf-posix.c: New file.
1328
1329         New modules 'vdprintf', 'vdprintf-posix'.
1330         * lib/stdio.in.h (vdprintf): New declaration.
1331         * lib/vdprintf.c: New file.
1332         * m4/vdprintf.m4: New file.
1333         * m4/vdprintf-posix.m4: New file.
1334         * modules/vdprintf: New file.
1335         * modules/vdprintf-posix: New file.
1336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
1337         HAVE_VDPRINTF, REPLACE_VDPRINTF.
1338         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
1339         HAVE_VDPRINTF, REPLACE_VDPRINTF.
1340         * doc/posix-functions/vdprintf.texi: Mention the new modules.
1341
1342 2009-01-17  Bruno Haible  <bruno@clisp.org>
1343
1344         Fix replacement of fopen on mingw.
1345         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
1346         mingw.
1347
1348 2009-01-17  Bruno Haible  <bruno@clisp.org>
1349
1350         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
1351         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
1352
1353 2009-01-17  Bruno Haible  <bruno@clisp.org>
1354
1355         Avoid test-fflush2.sh failure on mingw.
1356         * tests/test-fflush2.c: Include binary-io.h.
1357         (main): Put standard input into binary mode.
1358         * modules/fflush-tests (Depends-on): Add binary-io.
1359
1360 2009-01-17  Bruno Haible  <bruno@clisp.org>
1361
1362         * lib/wchar.in.h: In another particular situation, include only the
1363         system's <wchar.h> file.
1364         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
1365         Reported by Albert Chin-A-Young <china@thewrittenword.com>
1366         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
1367
1368 2009-01-17  Bruno Haible  <bruno@clisp.org>
1369
1370         Support for stripping executables in --enable-relocatable.
1371         * build-aux/install-reloc: Expect one more argument, or an environment
1372         variable RELOC_STRIP_PROG. If set, strip the destination program and
1373         its wrapper.
1374         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
1375         RELOC_STRIP_PROG.
1376         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
1377         to set RELOCATABLE_STRIP.
1378         * NEWS: Mention the new Makefile requirement.
1379
1380 2009-01-17  Bruno Haible  <bruno@clisp.org>
1381
1382         * build-aux/install-reloc: Remove debugging information left over by
1383         C compiler on MacOS X.
1384
1385 2009-01-17  Bruno Haible  <bruno@clisp.org>
1386
1387         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
1388         * lib/progreloc.c (find_executable): Fix type of pointer passed to
1389         _NSGetExecutablePath.
1390
1391 2009-01-16  Jim Meyering  <meyering@redhat.com>
1392
1393         strerror: avoid warnings about discarding "const"
1394         * lib/strerror.c (rpl_strerror): Instead of returning a const
1395         string from each and every "case", use a variable, and add a single
1396         cast after the switch.
1397
1398 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
1399
1400         * lib/arpa_inet.in.h: Add extern "C" block for C++.
1401
1402 2009-01-16  Bruno Haible  <bruno@clisp.org>
1403
1404         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
1405         array initializer syntax that also works in C++ mode.
1406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1407
1408 2009-01-16  Jim Meyering  <meyering@redhat.com>
1409
1410         poll: suppress a warning
1411         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
1412         to ignore "...unsigned expression < 0 is always false" warnings.
1413
1414 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
1415
1416         poll: remove declarations of unused variables
1417         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
1418         sockbuf and optlen.
1419
1420 2009-01-15  Bruno Haible  <bruno@clisp.org>
1421
1422         Make fflush-after-ungetc POSIX compliant on BSD systems.
1423         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
1424         (clear_ungetc_buffer): Implement also for other systems.
1425         (rpl_fflush): On glibc systems, invoke
1426         clear_ungetc_buffer_preserving_position. Otherwise, invoke
1427         clear_ungetc_buffer after fetching the stream's position, not before.
1428
1429 2009-01-15  Bruno Haible  <bruno@clisp.org>
1430
1431         Make fflush-after-ungetc POSIX compliant on glibc systems.
1432         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
1433         after ungetc.
1434         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
1435         (rpl_fflush): On glibc systems, simply call the system's fflush
1436         function after clearing the ungetc buffer.
1437         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
1438         Instead, lseek only to the end of file, then use the system's fseeko
1439         for the rest. On glibc systems, reset the EOF indicator bit.
1440
1441 2009-01-15  Jim Meyering  <meyering@redhat.com>
1442
1443         openmp.m4: revert quote-adding change, for portability to older autoconf
1444         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
1445         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
1446         Simon Josefsson noticed the problem when using autoconf-2.61.
1447
1448 2009-01-15  Bruno Haible  <bruno@clisp.org>
1449
1450         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
1451         * tests/test-fflush2.c (ASSERT): Always fail.
1452         (main): Add two tests for fflush() after ungetc(), taking into account
1453         the Austin Group's clarification.
1454         Suggested by Eric Blake.
1455
1456 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
1457
1458         mktime.m4: remove K&R-style function prototypes
1459         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
1460         for the Sun C++ compiler.
1461
1462 2009-01-14  Bruno Haible  <bruno@clisp.org>
1463
1464         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
1465         while including <wchar.h>.
1466         * lib/wchar.in.h: In two particular situations on HP-UX, include only
1467         the system's <wchar.h> file.
1468         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1469
1470 2009-01-14  Bruno Haible  <bruno@clisp.org>
1471
1472         * m4/csharp.m4: Don't mention gettext on the serial number line.
1473         * m4/csharpexec.m4: Likewise.
1474         * m4/eaccess.m4: Likewise.
1475         * m4/javaexec.m4: Likewise.
1476         * m4/sig_atomic_t.m4: Likewise.
1477         * m4/tmpdir.m4: Likewise.
1478         * m4/intldir.m4: Bump gettext version.
1479         * m4/lib-ld.m4: Likewise.
1480
1481 2009-01-14  Bruno Haible  <bruno@clisp.org>
1482
1483         * lib/progname.c (set_program_name): Add more comments.
1484         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
1485
1486 2009-01-14  Simon Josefsson  <simon@josefsson.org>
1487
1488         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
1489         were sys/stat.h does not define it.
1490
1491 2009-01-14  Jim Meyering  <meyering@redhat.com>
1492
1493         many *.m4 files: improve m4 quoting
1494         99% of this change was performed by running the following commands:
1495         git ls-files | grep '\.m4$' | xargs perl -pi \
1496           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
1497           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
1498           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
1499           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
1500         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
1501         The remainder were to add Copyright dates, increment serial numbers,
1502         undo some changes in comments, exclude m4/intl.m4, and add quotes
1503         around the "1" in ",1" where the unusual spacing prohibited the
1504         above regexps from doing the job.  For more details, see
1505         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
1506         * m4/acl.m4: Modified.
1507         * m4/afs.m4: Likewise.
1508         * m4/alloca.m4: Likewise.
1509         * m4/argp.m4: Likewise.
1510         * m4/argz.m4: Likewise.
1511         * m4/atexit.m4: Likewise.
1512         * m4/bison-i18n.m4: Likewise.
1513         * m4/bison.m4: Likewise.
1514         * m4/byteswap.m4: Likewise.
1515         * m4/c-stack.m4: Likewise.
1516         * m4/c-strtod.m4: Likewise.
1517         * m4/calloc.m4: Likewise.
1518         * m4/canonicalize-lgpl.m4: Likewise.
1519         * m4/chown.m4: Likewise.
1520         * m4/clock_time.m4: Likewise.
1521         * m4/codeset.m4: Likewise.
1522         * m4/copy-file.m4: Likewise.
1523         * m4/csharp.m4: Likewise.
1524         * m4/csharpcomp.m4: Likewise.
1525         * m4/csharpexec.m4: Likewise.
1526         * m4/d-ino.m4: Likewise.
1527         * m4/d-type.m4: Likewise.
1528         * m4/dirfd.m4: Likewise.
1529         * m4/double-slash-root.m4: Likewise.
1530         * m4/eaccess.m4: Likewise.
1531         * m4/eealloc.m4: Likewise.
1532         * m4/environ.m4: Likewise.
1533         * m4/errno_h.m4: Likewise.
1534         * m4/euidaccess.m4: Likewise.
1535         * m4/execute.m4: Likewise.
1536         * m4/fatal-signal.m4: Likewise.
1537         * m4/fchdir.m4: Likewise.
1538         * m4/fcntl_h.m4: Likewise.
1539         * m4/fileblocks.m4: Likewise.
1540         * m4/filenamecat.m4: Likewise.
1541         * m4/findprog.m4: Likewise.
1542         * m4/flexmember.m4: Likewise.
1543         * m4/fnmatch.m4: Likewise.
1544         * m4/fopen.m4: Likewise.
1545         * m4/fpending.m4: Likewise.
1546         * m4/fprintf-posix.m4: Likewise.
1547         * m4/free.m4: Likewise.
1548         * m4/frexp.m4: Likewise.
1549         * m4/frexpl.m4: Likewise.
1550         * m4/fsusage.m4: Likewise.
1551         * m4/ftruncate.m4: Likewise.
1552         * m4/gc-camellia.m4: Likewise.
1553         * m4/gc-random.m4: Likewise.
1554         * m4/gc.m4: Likewise.
1555         * m4/getaddrinfo.m4: Likewise.
1556         * m4/getcwd-abort-bug.m4: Likewise.
1557         * m4/getcwd-path-max.m4: Likewise.
1558         * m4/getdate.m4: Likewise.
1559         * m4/getdomainname.m4: Likewise.
1560         * m4/getgroups.m4: Likewise.
1561         * m4/gethostname.m4: Likewise.
1562         * m4/gethrxtime.m4: Likewise.
1563         * m4/getline.m4: Likewise.
1564         * m4/getloadavg.m4: Likewise.
1565         * m4/getndelim2.m4: Likewise.
1566         * m4/getpass.m4: Likewise.
1567         * m4/gettext.m4: Likewise.
1568         * m4/gettime.m4: Likewise.
1569         * m4/gettimeofday.m4: Likewise.
1570         * m4/gnulib-common.m4: Likewise.
1571         * m4/group-member.m4: Likewise.
1572         * m4/host-os.m4: Likewise.
1573         * m4/iconv.m4: Likewise.
1574         * m4/iconv_open.m4: Likewise.
1575         * m4/inet_ntop.m4: Likewise.
1576         * m4/inet_pton.m4: Likewise.
1577         * m4/inline.m4: Likewise.
1578         * m4/intldir.m4: Likewise.
1579         * m4/intlmacosx.m4: Likewise.
1580         * m4/intmax.m4: Likewise.
1581         * m4/intmax_t.m4: Likewise.
1582         * m4/inttypes.m4: Likewise.
1583         * m4/inttypes_h.m4: Likewise.
1584         * m4/inttypes-pri.m4: Likewise.
1585         * m4/isapipe.m4: Likewise.
1586         * m4/isnand.m4: Likewise.
1587         * m4/isnanf.m4: Likewise.
1588         * m4/isnanl.m4: Likewise.
1589         * m4/javacomp.m4: Likewise.
1590         * m4/javaexec.m4: Likewise.
1591         * m4/jm-winsz1.m4: Likewise.
1592         * m4/jm-winsz2.m4: Likewise.
1593         * m4/lchown.m4: Likewise.
1594         * m4/lcmessage.m4: Likewise.
1595         * m4/ldexpl.m4: Likewise.
1596         * m4/lib-ld.m4: Likewise.
1597         * m4/lib-link.m4: Likewise.
1598         * m4/libsigsegv.m4: Likewise.
1599         * m4/link-follow.m4: Likewise.
1600         * m4/localcharset.m4: Likewise.
1601         * m4/locale-fr.m4: Likewise.
1602         * m4/locale-ja.m4: Likewise.
1603         * m4/locale-tr.m4: Likewise.
1604         * m4/locale-zh.m4: Likewise.
1605         * m4/lock.m4: Likewise.
1606         * m4/longlong.m4: Likewise.
1607         * m4/ls-mntd-fs.m4: Likewise.
1608         * m4/lstat.m4: Likewise.
1609         * m4/malloc.m4: Likewise.
1610         * m4/mathl.m4: Likewise.
1611         * m4/mbrtowc.m4: Likewise.
1612         * m4/mbstate_t.m4: Likewise.
1613         * m4/mbswidth.m4: Likewise.
1614         * m4/memchr.m4: Likewise.
1615         * m4/memcmp.m4: Likewise.
1616         * m4/memcpy.m4: Likewise.
1617         * m4/memmem.m4: Likewise.
1618         * m4/memmove.m4: Likewise.
1619         * m4/mempcpy.m4: Likewise.
1620         * m4/memrchr.m4: Likewise.
1621         * m4/memset.m4: Likewise.
1622         * m4/minmax.m4: Likewise.
1623         * m4/mkdir-slash.m4: Likewise.
1624         * m4/mkdtemp.m4: Likewise.
1625         * m4/mktime.m4: Likewise.
1626         * m4/mmap-anon.m4: Likewise.
1627         * m4/mountlist.m4: Likewise.
1628         * m4/nanosleep.m4: Likewise.
1629         * m4/nls.m4: Likewise.
1630         * m4/nocrash.m4: Likewise.
1631         * m4/open.m4: Likewise.
1632         * m4/openat.m4: Likewise.
1633         * m4/openmp.m4: Likewise.
1634         * m4/pathmax.m4: Likewise.
1635         * m4/perl.m4: Likewise.
1636         * m4/physmem.m4: Likewise.
1637         * m4/pipe.m4: Likewise.
1638         * m4/po.m4: Likewise.
1639         * m4/poll.m4: Likewise.
1640         * m4/posixtm.m4: Likewise.
1641         * m4/posixver.m4: Likewise.
1642         * m4/printf-frexp.m4: Likewise.
1643         * m4/printf-frexpl.m4: Likewise.
1644         * m4/printf-posix.m4: Likewise.
1645         * m4/printf-posix-rpl.m4: Likewise.
1646         * m4/printf.m4: Likewise.
1647         * m4/progtest.m4: Likewise.
1648         * m4/putenv.m4: Likewise.
1649         * m4/readline.m4: Likewise.
1650         * m4/readlink.m4: Likewise.
1651         * m4/readutmp.m4: Likewise.
1652         * m4/realloc.m4: Likewise.
1653         * m4/regex.m4: Likewise.
1654         * m4/relocatable.m4: Likewise.
1655         * m4/relocatable-lib.m4: Likewise.
1656         * m4/rename-dest-slash.m4: Likewise.
1657         * m4/rename.m4: Likewise.
1658         * m4/rmdir-errno.m4: Likewise.
1659         * m4/rmdir.m4: Likewise.
1660         * m4/roundf.m4: Likewise.
1661         * m4/roundl.m4: Likewise.
1662         * m4/rpmatch.m4: Likewise.
1663         * m4/save-cwd.m4: Likewise.
1664         * m4/selinux-selinux-h.m4: Likewise.
1665         * m4/setenv.m4: Likewise.
1666         * m4/settime.m4: Likewise.
1667         * m4/sig2str.m4: Likewise.
1668         * m4/sig_atomic_t.m4: Likewise.
1669         * m4/signalblocking.m4: Likewise.
1670         * m4/signbit.m4: Likewise.
1671         * m4/sigpipe.m4: Likewise.
1672         * m4/sockets.m4: Likewise.
1673         * m4/sockpfaf.m4: Likewise.
1674         * m4/st_dm_mode.m4: Likewise.
1675         * m4/stat-time.m4: Likewise.
1676         * m4/stdbool.m4: Likewise.
1677         * m4/stdint.m4: Likewise.
1678         * m4/stdint_h.m4: Likewise.
1679         * m4/stpcpy.m4: Likewise.
1680         * m4/stpncpy.m4: Likewise.
1681         * m4/strcase.m4: Likewise.
1682         * m4/strchrnul.m4: Likewise.
1683         * m4/strcspn.m4: Likewise.
1684         * m4/strdup.m4: Likewise.
1685         * m4/strftime.m4: Likewise.
1686         * m4/strndup.m4: Likewise.
1687         * m4/strnlen.m4: Likewise.
1688         * m4/strpbrk.m4: Likewise.
1689         * m4/strptime.m4: Likewise.
1690         * m4/strsep.m4: Likewise.
1691         * m4/strtod.m4: Likewise.
1692         * m4/strtoimax.m4: Likewise.
1693         * m4/strtok_r.m4: Likewise.
1694         * m4/strtol.m4: Likewise.
1695         * m4/strtoll.m4: Likewise.
1696         * m4/strtoul.m4: Likewise.
1697         * m4/strtoull.m4: Likewise.
1698         * m4/strtoumax.m4: Likewise.
1699         * m4/strverscmp.m4: Likewise.
1700         * m4/threadlib.m4: Likewise.
1701         * m4/timegm.m4: Likewise.
1702         * m4/tm_gmtoff.m4: Likewise.
1703         * m4/tmpdir.m4: Likewise.
1704         * m4/tmpfile.m4: Likewise.
1705         * m4/tzset.m4: Likewise.
1706         * m4/uintmax_t.m4: Likewise.
1707         * m4/unlinkdir.m4: Likewise.
1708         * m4/unlocked-io.m4: Likewise.
1709         * m4/uptime.m4: Likewise.
1710         * m4/userspec.m4: Likewise.
1711         * m4/utimbuf.m4: Likewise.
1712         * m4/utime.m4: Likewise.
1713         * m4/utimes-null.m4: Likewise.
1714         * m4/utimes.m4: Likewise.
1715         * m4/vararrays.m4: Likewise.
1716         * m4/vasnprintf.m4: Likewise.
1717         * m4/vfprintf-posix.m4: Likewise.
1718         * m4/vprintf-posix.m4: Likewise.
1719         * m4/wait-process.m4: Likewise.
1720         * m4/wchar_t.m4: Likewise.
1721         * m4/wint_t.m4: Likewise.
1722         * m4/write-any-file.m4: Likewise.
1723         * m4/yield.m4: Likewise.
1724
1725 2009-01-13  Bruno Haible  <bruno@clisp.org>
1726
1727         Avoid test-copy-file.sh failures when ACL support insufficient.
1728         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
1729         TESTS_ENVIRONMENT.
1730         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
1731         Reported by Jim Meyering.
1732
1733 2009-01-13  Bruno Haible  <bruno@clisp.org>
1734
1735         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
1736         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
1737         * modules/unistdio/u8-printf-parse (Files): Likewise.
1738         * modules/unistdio/u32-printf-parse (Files): Likewise.
1739         * modules/unistdio/ulc-printf-parse (Files): Likewise.
1740
1741 2009-01-13  Simon Josefsson  <simon@josefsson.org>
1742
1743         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
1744         and m4/inttypes_h.m4 too.
1745
1746 2009-01-12  Eric Blake  <ebb9@byu.net>
1747
1748         tests: IRIX 6.2 cc can't compile -0.0 into .data
1749         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
1750         rather than at compile-time.
1751         * tests/test-floorl.c (minus_zero): Likewise.
1752         * tests/test-frexpl.c (minus_zero): Likewise.
1753         * tests/test-isnan.c (minus_zerol): Likewise.
1754         * tests/test-isnanl.h (minus_zero): Likewise.
1755         * tests/test-ldexpl.c (minus_zero): Likewise.
1756         * tests/test-roundl.c (minus_zero): Likewise.
1757         * tests/test-signbit.c (minus_zerol): Likewise.
1758         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1759         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1760         * tests/test-truncl.c (minus_zero): Likewise.
1761         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1762         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1763         Reported by Tom G. Christensen and Nelson H. F. Beebe.
1764
1765 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
1766
1767         regex: fix glibc bug 9697
1768         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1769         handling.
1770
1771 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
1772
1773         regex: fix glibc bug 697
1774         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1775         being NULL also if there are no backreferences.
1776
1777 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
1778
1779         regex: merge glibc changes
1780         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1781         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1782         re_string_skip_chars, re_string_reconstruct): Likewise.
1783         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1784
1785 2009-01-07  Jim Meyering  <meyering@redhat.com>
1786
1787         poll: filter through cppi
1788         * lib/poll.c: Indent cpp directives to reflect nesting.
1789
1790 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
1791
1792         poll: don't return uninitialized
1793         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
1794
1795 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
1796
1797         avoid compile failure on AIX 6.1
1798         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
1799         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
1800
1801 2009-01-04  Jim Meyering  <meyering@redhat.com>
1802
1803         remove duplicate inclusion of <stdio.h>
1804         * tests/test-fprintf-posix.c: Likewise.
1805         * tests/test-printf-posix.c: Likewise.
1806         * tests/test-snprintf-posix.c: Likewise.
1807         * tests/test-sprintf-posix.c: Likewise.
1808         * tests/test-vasprintf-posix.c: Likewise.
1809         * tests/test-vfprintf-posix.c: Likewise.
1810         * tests/test-vprintf-posix.c: Likewise.
1811         * tests/test-vsnprintf-posix.c: Likewise.
1812         * tests/test-vsprintf-posix.c: Likewise.
1813
1814 2009-01-03  Jim Meyering  <meyering@redhat.com>
1815
1816         gnulib-tool: fix sed-based filtering
1817         * gnulib-tool (func_filter_filelist): Remove extra backslash
1818         in sed_fff_filter definition.
1819
1820 2009-01-02  Jim Meyering  <meyering@redhat.com>
1821
1822         strftime: avoid compilation failure on Solaris 2.6
1823         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
1824         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
1825         Don't #define mbrlen or mbsinit, since now they're guaranteed to
1826         be available.  Reported by Tom G. Christensen.  Details in
1827         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
1828
1829 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1830             Bruno Haible  <bruno@clisp.org>
1831
1832         Speed up gnulib-tool by doing more string processing through shell
1833         built-ins.
1834         * gnulib-tool (fast_func_append): New variable.
1835         (func_remove_prefix, func_remove_suffix): New functions.
1836         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
1837         (func_filter_filelist): New function.
1838         (func_get_dependencies): Use func_remove_suffix instead of sed.
1839         (func_get_automake_snippet): Use func_filter_filelist instead of a
1840         subshell and sed invocation.
1841
1842 2009-01-01  Bruno Haible  <bruno@clisp.org>
1843
1844         Fix a security bug.
1845         * gnulib-tool (func_import, import, update): Don't allow the characters
1846         '"', '$', '`', '\' in macro arguments that become part of commands that
1847         are evaluated.
1848
1849 2009-01-01  Bruno Haible  <bruno@clisp.org>
1850
1851         * gnulib-tool (func_reset_sigpipe): Add more comments.
1852
1853 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1854
1855         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
1856         func_emit_tests_Makefile_am, func_import): Abort loops early if we
1857         already know the answer.
1858
1859 2009-01-01  Jim Meyering  <meyering@redhat.com>
1860
1861         * lib/version-etc.c (version_etc_va): Update copyright year.
1862
1863 2008-12-30  Bruno Haible  <bruno@clisp.org>
1864
1865         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
1866         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
1867         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
1868
1869 2008-12-29  Eric Blake  <ebb9@byu.net>
1870
1871         multiarch: avoid autoconf AC_REQUIRE bug
1872         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
1873         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
1874         2.63 and older.
1875         Reported by Bruno Haible, and analyzed in
1876         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
1877
1878 2008-12-29  Bruno Haible  <bruno@clisp.org>
1879
1880         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
1881         files in subdirectories correctly.
1882         Reported by Ralf Wildenhues.
1883
1884 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1885
1886         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
1887         rather than 'join FILE -', for Solaris join.
1888
1889 2008-12-29  Bruno Haible  <bruno@clisp.org>
1890
1891         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
1892         quoting.
1893         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1894         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1895         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1896         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
1897         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1898         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1899         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1900         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1901         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1902         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1903         * m4/nls.m4 (AM_NLS): Likewise.
1904         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
1905         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1906         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1907         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1908         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1909         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1910         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
1911         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1912         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1913         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1914         * m4/xsize.m4 (gl_XSIZE): Likewise.
1915         Suggested by Jim Meyering.
1916
1917 2008-11-17  Bruce Korb  <bkorb@gnu.org>
1918
1919         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
1920         * lib/parse-duration.c: use a switch instead of cascading if's.
1921
1922 2008-12-29  Eric Blake  <ebb9@byu.net>
1923
1924         wchar.h: supply WEOF on Irix 5.3
1925         * lib/wchar.in.h (wint_t): Also supply WEOF.
1926         * lib/wctype.in.h (wint_t): Likewise.
1927         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
1928         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
1929         Reported by Tom G. Christensen.
1930
1931 2008-12-26  Bruno Haible  <bruno@clisp.org>
1932
1933         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
1934         i486, i586, i686.
1935
1936 2008-12-26  Bruno Haible  <bruno@clisp.org>
1937
1938         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
1939
1940 2008-12-26  Bruno Haible  <bruno@clisp.org>
1941
1942         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
1943         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
1944         not __STDC_CONSTANT_MACROS.
1945         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1946
1947 2008-12-25  Bruno Haible  <bruno@clisp.org>
1948
1949         Add support for universal builds to vasnprintf.
1950         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
1951         universal builds, guess no.
1952         * modules/vasnprintf-posix (Depends-on): Add multiarch.
1953         * modules/vasprintf-posix (Depends-on): Likewise.
1954         * modules/fprintf-posix (Depends-on): Likewise.
1955         * modules/vfprintf-posix (Depends-on): Likewise.
1956         * modules/snprintf-posix (Depends-on): Likewise.
1957         * modules/vsnprintf-posix (Depends-on): Likewise.
1958         * modules/sprintf-posix (Depends-on): Likewise.
1959         * modules/vsprintf-posix (Depends-on): Likewise.
1960         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1961         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1962         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1963         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1964         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1965         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1966         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1967
1968         Add support for universal builds to <inttypes.h>.
1969         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
1970         _SCNu64_PREFIX): In Apple
1971         universal builds, define directly, using _LP64.
1972         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
1973         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
1974         * modules/inttypes (Depends-on): Add multiarch.
1975         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
1976
1977         Add support for universal builds to <stdint.h>.
1978         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
1979         universal builds, define directly, using _LP64.
1980         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
1981         Apple universal builds, don't test for the size and suffix of ptrdiff_t
1982         and size_t.
1983         * modules/stdint (Depends-on): Add multiarch.
1984         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
1985
1986         New module 'multiarch'.
1987         * modules/multiarch: New file.
1988         * m4/multiarch.m4: New file.
1989
1990 2008-12-25  Bruno Haible  <bruno@clisp.org>
1991
1992         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
1993
1994 2008-12-25  Bruno Haible  <bruno@clisp.org>
1995
1996         * modules/btowc (License): Relicense under LGPLv2+.
1997         * modules/mbsinit (License): Likewise.
1998         * modules/mbrtowc (License): Likewise.
1999         * modules/wcrtomb (License): Likewise.
2000         * modules/streq (License): Likewise.
2001         Reported by David Lutterkort <lutter@redhat.com>.
2002
2003 2008-12-23  Bruno Haible  <bruno@clisp.org>
2004
2005         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
2006
2007 2008-12-23  Bruno Haible  <bruno@clisp.org>
2008
2009         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
2010         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
2011         GETADDRINFO_LIB, not in LIBS.
2012         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
2013         * modules/canon-host (Link): Likewise.
2014         * NEWS: Mention the change.
2015         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
2016         GETADDRINFO_LIB.
2017
2018 2008-12-22  Bruno Haible  <bruno@clisp.org>
2019
2020         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
2021         * doc/posix-functions/iswalpha_l.texi: Likewise.
2022         * doc/posix-functions/iswblank_l.texi: Likewise.
2023         * doc/posix-functions/iswcntrl_l.texi: Likewise.
2024         * doc/posix-functions/iswctype_l.texi: Likewise.
2025         * doc/posix-functions/iswdigit_l.texi: Likewise.
2026         * doc/posix-functions/iswgraph_l.texi: Likewise.
2027         * doc/posix-functions/iswlower_l.texi: Likewise.
2028         * doc/posix-functions/iswprint_l.texi: Likewise.
2029         * doc/posix-functions/iswpunct_l.texi: Likewise.
2030         * doc/posix-functions/iswspace_l.texi: Likewise.
2031         * doc/posix-functions/iswupper_l.texi: Likewise.
2032         * doc/posix-functions/iswxdigit_l.texi: Likewise.
2033         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
2034         * doc/posix-functions/open_wmemstream.texi: Likewise.
2035         * doc/posix-functions/swscanf.texi: Likewise.
2036         * doc/posix-functions/towctrans_l.texi: Likewise.
2037         * doc/posix-functions/towlower.texi: Likewise.
2038         * doc/posix-functions/towlower_l.texi: Likewise.
2039         * doc/posix-functions/towupper.texi: Likewise.
2040         * doc/posix-functions/towupper_l.texi: Likewise.
2041         * doc/posix-functions/vfwprintf.texi: Likewise.
2042         * doc/posix-functions/vfwscanf.texi: Likewise.
2043         * doc/posix-functions/vswscanf.texi: Likewise.
2044         * doc/posix-functions/vwprintf.texi: Likewise.
2045         * doc/posix-functions/vwscanf.texi: Likewise.
2046         * doc/posix-functions/wcpcpy.texi: Likewise.
2047         * doc/posix-functions/wcpncpy.texi: Likewise.
2048         * doc/posix-functions/wcscasecmp.texi: Likewise.
2049         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
2050         * doc/posix-functions/wcscoll_l.texi: Likewise.
2051         * doc/posix-functions/wcsdup.texi: Likewise.
2052         * doc/posix-functions/wcsncasecmp.texi: Likewise.
2053         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
2054         * doc/posix-functions/wcsnlen.texi: Likewise.
2055         * doc/posix-functions/wcsnrtombs.texi: Likewise.
2056         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
2057         * doc/posix-functions/wctrans_l.texi: Likewise.
2058         * doc/posix-functions/wctype_l.texi: Likewise.
2059         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
2060         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
2061         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
2062         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
2063         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
2064         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
2065         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
2066         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
2067         * doc/glibc-functions/wcschrnul.texi: Likewise.
2068         * doc/glibc-functions/wcsftime_l.texi: Likewise.
2069         * doc/glibc-functions/wcstod_l.texi: Likewise.
2070         * doc/glibc-functions/wcstof_l.texi: Likewise.
2071         * doc/glibc-functions/wcstol_l.texi: Likewise.
2072         * doc/glibc-functions/wcstold_l.texi: Likewise.
2073         * doc/glibc-functions/wcstoll_l.texi: Likewise.
2074         * doc/glibc-functions/wcstoq.texi: Likewise.
2075         * doc/glibc-functions/wcstoul_l.texi: Likewise.
2076         * doc/glibc-functions/wcstoull_l.texi: Likewise.
2077         * doc/glibc-functions/wcstouq.texi: Likewise.
2078         * doc/glibc-functions/wmempcpy.texi: Likewise.
2079
2080 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
2081             Eric Blake  <ebb9@byu.net>
2082             Paolo Bonzini  <bonzini@gnu.org>
2083             Bruno Haible  <bruno@clisp.org>
2084
2085         Make c-stack work on Haiku.
2086         * lib/c-stack.c (SA_ONSTACK): Define fallback.
2087         (c_stack_action): Use SA_ONSTACK flag.
2088
2089 2008-12-22  Bruno Haible  <bruno@clisp.org>
2090
2091         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
2092
2093 2008-12-22  Bruno Haible  <bruno@clisp.org>
2094
2095         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
2096         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
2097         being overridden.
2098         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
2099         New macros.
2100         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
2101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
2102         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
2103         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
2104
2105 2008-12-22  Bruno Haible  <bruno@clisp.org>
2106
2107         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
2108         from test code.
2109
2110 2008-12-22  Eric Blake  <ebb9@byu.net>
2111
2112         Avoid gcc warnings on cygwin.
2113         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
2114         Avoid unused variable.
2115         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
2116         Likewise.
2117
2118 2008-12-22  Bruno Haible  <bruno@clisp.org>
2119
2120         Remove HAVE_MBRTOWC conditionals.
2121         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
2122         (mbscasecmp): Assume mbrtowc function.
2123         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
2124         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
2125         * lib/mbschr.c: Include mbuiter.h unconditionally.
2126         (mbschr): Assume mbrtowc function.
2127         * lib/mbscspn.c: Include mbuiter.h unconditionally.
2128         (mbscspn): Assume mbrtowc function.
2129         * lib/mbslen.c: Include mbuiter.h unconditionally.
2130         (mbslen): Assume mbrtowc function.
2131         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
2132         (mbsncasecmp): Assume mbrtowc function.
2133         * lib/mbsnlen.c: Include mbiter.h unconditionally.
2134         (mbsnlen): Assume mbrtowc function.
2135         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
2136         (mbspbrk): Assume mbrtowc function.
2137         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
2138         (mbspcasecmp): Assume mbrtowc function.
2139         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
2140         (mbsrchr): Assume mbrtowc function.
2141         * lib/mbssep.c: Include mbuiter.h unconditionally.
2142         (mbssep): Assume mbrtowc function.
2143         * lib/mbsspn.c: Include mbuiter.h unconditionally.
2144         (mbsspn): Assume mbrtowc function.
2145         * lib/mbsstr.c: Include mbuiter.h unconditionally.
2146         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
2147         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
2148         (mbstok_r): Assume mbrtowc function.
2149         * lib/propername.c: Include mbuiter.h unconditionally.
2150         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
2151         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
2152         (trim2): Assume mbrtowc function.
2153         * lib/mbswidth.c (mbsinit): Remove fallback definition.
2154         (mbsnwidth): Assume mbrtowc function.
2155         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
2156         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
2157         fallback definitions.
2158         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
2159
2160 2008-12-22  Bruno Haible  <bruno@clisp.org>
2161
2162         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
2163
2164 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
2165
2166         * modules/regex: Request emulations for the mb*/wc* functions we need.
2167         * m4/regex.m4: Don't look for those functions here.
2168         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
2169
2170 2008-12-22  Bruno Haible  <bruno@clisp.org>
2171
2172         * modules/fnmatch (Depends-on): Remove duplicated dependency.
2173
2174 2008-12-21  Bruno Haible  <bruno@clisp.org>
2175
2176         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
2177         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
2178         (Include): Remove conditionalization.
2179         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
2180         (Include): Remove conditionalization.
2181         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
2182         (Include): Remove conditionalization.
2183         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
2184         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2185         * NEWS: Mention the change.
2186         Reported by Alan Hourihane <alanh@fairlite.co.uk>
2187         via Sergey Poznyakoff <gray@gnu.org.ua>.
2188
2189 2008-12-21  Bruno Haible  <bruno@clisp.org>
2190
2191         * MODULES.html.sh (Extended multibyte and wide character utilities
2192         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
2193         wcrtomb, wcsrtombs.
2194         (Support for systems lacking POSIX:2008): Add accept, bind, close,
2195         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
2196         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
2197         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
2198
2199 2008-12-21  Bruno Haible  <bruno@clisp.org>
2200
2201         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
2202
2203 2008-12-21  Bruno Haible  <bruno@clisp.org>
2204
2205         * modules/wcsnrtombs-tests: New file.
2206         * tests/test-wcsnrtombs1.sh: New file.
2207         * tests/test-wcsnrtombs2.sh: New file.
2208         * tests/test-wcsnrtombs3.sh: New file.
2209         * tests/test-wcsnrtombs4.sh: New file.
2210         * tests/test-wcsnrtombs.c: New file.
2211
2212         New module 'wcsnrtombs'.
2213         * lib/wchar.in.h (wcsnrtombs): New declaration.
2214         * lib/wcsnrtombs.c: New file.
2215         * lib/wcsrtombs-state.c: New file.
2216         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
2217         (internal_state): Remove variable.
2218         * m4/wcsnrtombs.m4: New file.
2219         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
2220         compilation units.
2221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
2222         HAVE_WCSNRTOMBS.
2223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
2224         HAVE_WCSNRTOMBS.
2225         * modules/wcsnrtombs: New file.
2226         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
2227         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
2228
2229 2008-12-21  Bruno Haible  <bruno@clisp.org>
2230
2231         * modules/wcsrtombs-tests: New file.
2232         * tests/test-wcsrtombs1.sh: New file.
2233         * tests/test-wcsrtombs2.sh: New file.
2234         * tests/test-wcsrtombs3.sh: New file.
2235         * tests/test-wcsrtombs4.sh: New file.
2236         * tests/test-wcsrtombs.c: New file.
2237
2238         New module 'wcsrtombs'.
2239         * lib/wchar.in.h (wcsrtombs): New declaration.
2240         * lib/wcsrtombs.c: New file.
2241         * m4/wcsrtombs.m4: New file.
2242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
2243         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
2244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
2245         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
2246         * modules/wcsrtombs: New file.
2247         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
2248         bugs.
2249
2250 2008-12-21  Bruno Haible  <bruno@clisp.org>
2251
2252         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
2253         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
2254         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
2255         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
2256         if not correct.
2257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
2258         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
2259         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
2260         m4/locale-zh.m4, m4/codeset.m4.
2261         * doc/posix-functions/wcrtomb.texi: Document the bug.
2262
2263 2008-12-21  Bruno Haible  <bruno@clisp.org>
2264
2265         Work around a btowc() bug on IRIX 6.5.
2266         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
2267         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
2268         REPLACE_WTOBC if not.
2269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
2270         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
2271         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
2272
2273 2008-12-21  Bruno Haible  <bruno@clisp.org>
2274
2275         * modules/wcrtomb-tests: New file.
2276         * tests/test-wcrtomb.sh: New file.
2277         * tests/test-wcrtomb.c: New file.
2278
2279         New module 'wcrtomb'.
2280         * lib/wchar.in.h (wcrtomb): New declaration.
2281         * lib/wcrtomb.c: New file.
2282         * m4/wcrtomb.m4: New file.
2283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
2284         HAVE_WCRTOMB.
2285         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
2286         HAVE_WCRTOMB.
2287         * modules/wcrtomb: New file.
2288         * doc/posix-functions/wcrtomb.texi: Mention the new module.
2289
2290 2008-12-21  Bruno Haible  <bruno@clisp.org>
2291
2292         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
2293         * modules/mbsrtowcs (Files): Likewise.
2294         * modules/wctob (Files): Likewise.
2295         * modules/c-strcase-tests (Files): Likewise.
2296         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2297         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2298         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2299         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2300         * modules/vasnprintf-posix-tests (Files): Likewise.
2301
2302 2008-12-21  William Pursell  <bill.pursell@gmail.com>
2303
2304         gitlog-to-changelog: pass all command-line arguments to git-log
2305         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
2306         it is sometimes convenient to filter the commits in various ways.
2307         gitlog-to-changelog only allows --since to specify a start date,
2308         but git-log itself supports many other filtering mechanisms.
2309         At the moment, I want to filter by branch name.  Rather than
2310         adding a --branch option to gitlog-to-changelog, it seems more
2311         flexible to simply pass all options directly to git-log and let
2312         git do the work.  Notice that this effectively makes --since a
2313         redundant option for gitlog-to-changelog, but removing it would
2314         require current usage to change since calls would then require
2315         an additional '--'.
2316
2317 2008-12-21  Bruno Haible  <bruno@clisp.org>
2318
2319         * modules/mbsnrtowcs-tests: New file.
2320         * tests/test-mbsnrtowcs1.sh: New file.
2321         * tests/test-mbsnrtowcs2.sh: New file.
2322         * tests/test-mbsnrtowcs3.sh: New file.
2323         * tests/test-mbsnrtowcs4.sh: New file.
2324         * tests/test-mbsnrtowcs.c: New file.
2325
2326         New module 'mbsnrtowcs'.
2327         * lib/wchar.in.h (mbsnrtowcs): New declaration.
2328         * lib/mbsnrtowcs.c: New file.
2329         * lib/mbsrtowcs-state.c: New file.
2330         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
2331         (internal_state): Remove variable.
2332         * m4/mbsnrtowcs.m4: New file.
2333         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
2334         compilation units.
2335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
2336         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
2337         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
2338         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
2339         * modules/mbsnrtowcs: New file.
2340         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
2341         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
2342         portability problem.
2343
2344 2008-12-21  Bruno Haible  <bruno@clisp.org>
2345
2346         Work around mbsrtowcs bug.
2347         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
2348         (gl_FUNC_MBSRTOWCS): Invoke it.
2349         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
2350         m4/locale-zh.m4.
2351         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
2352
2353 2008-12-21  Bruno Haible  <bruno@clisp.org>
2354
2355         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
2356
2357 2008-12-21  Bruno Haible  <bruno@clisp.org>
2358
2359         Update doc for AIX.
2360         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
2361         16-bit wchar_t type.
2362         * doc/posix-functions/btowc.texi: Likewise.
2363         * doc/posix-functions/fgetwc.texi: Likewise.
2364         * doc/posix-functions/fgetws.texi: Likewise.
2365         * doc/posix-functions/fputwc.texi: Likewise.
2366         * doc/posix-functions/fputws.texi: Likewise.
2367         * doc/posix-functions/fwide.texi: Likewise.
2368         * doc/posix-functions/fwprintf.texi: Likewise.
2369         * doc/posix-functions/fwscanf.texi: Likewise.
2370         * doc/posix-functions/getwchar.texi: Likewise.
2371         * doc/posix-functions/getwc.texi: Likewise.
2372         * doc/posix-functions/iswalnum.texi: Likewise.
2373         * doc/posix-functions/iswalpha.texi: Likewise.
2374         * doc/posix-functions/iswblank.texi: Likewise.
2375         * doc/posix-functions/iswcntrl.texi: Likewise.
2376         * doc/posix-functions/iswctype.texi: Likewise.
2377         * doc/posix-functions/iswdigit.texi: Likewise.
2378         * doc/posix-functions/iswgraph.texi: Likewise.
2379         * doc/posix-functions/iswlower.texi: Likewise.
2380         * doc/posix-functions/iswprint.texi: Likewise.
2381         * doc/posix-functions/iswpunct.texi: Likewise.
2382         * doc/posix-functions/iswspace.texi: Likewise.
2383         * doc/posix-functions/iswupper.texi: Likewise.
2384         * doc/posix-functions/iswxdigit.texi: Likewise.
2385         * doc/posix-functions/mbrtowc.texi: Likewise.
2386         * doc/posix-functions/mbsrtowcs.texi: Likewise.
2387         * doc/posix-functions/mbstowcs.texi: Likewise.
2388         * doc/posix-functions/mbtowc.texi: Likewise.
2389         * doc/posix-functions/putwchar.texi: Likewise.
2390         * doc/posix-functions/putwc.texi: Likewise.
2391         * doc/posix-functions/swprintf.texi: Likewise.
2392         * doc/posix-functions/tolower.texi: Likewise.
2393         * doc/posix-functions/toupper.texi: Likewise.
2394         * doc/posix-functions/towctrans.texi: Likewise.
2395         * doc/posix-functions/ungetwc.texi: Likewise.
2396         * doc/posix-functions/vswprintf.texi: Likewise.
2397         * doc/posix-functions/wcrtomb.texi: Likewise.
2398         * doc/posix-functions/wcscat.texi: Likewise.
2399         * doc/posix-functions/wcschr.texi: Likewise.
2400         * doc/posix-functions/wcscmp.texi: Likewise.
2401         * doc/posix-functions/wcscoll.texi: Likewise.
2402         * doc/posix-functions/wcscpy.texi: Likewise.
2403         * doc/posix-functions/wcscspn.texi: Likewise.
2404         * doc/posix-functions/wcsftime.texi: Likewise.
2405         * doc/posix-functions/wcslen.texi: Likewise.
2406         * doc/posix-functions/wcsncat.texi: Likewise.
2407         * doc/posix-functions/wcsncmp.texi: Likewise.
2408         * doc/posix-functions/wcsncpy.texi: Likewise.
2409         * doc/posix-functions/wcspbrk.texi: Likewise.
2410         * doc/posix-functions/wcsrchr.texi: Likewise.
2411         * doc/posix-functions/wcsrtombs.texi: Likewise.
2412         * doc/posix-functions/wcsspn.texi: Likewise.
2413         * doc/posix-functions/wcsstr.texi: Likewise.
2414         * doc/posix-functions/wcstod.texi: Likewise.
2415         * doc/posix-functions/wcstof.texi: Likewise.
2416         * doc/posix-functions/wcstoimax.texi: Likewise.
2417         * doc/posix-functions/wcstok.texi: Likewise.
2418         * doc/posix-functions/wcstold.texi: Likewise.
2419         * doc/posix-functions/wcstoll.texi: Likewise.
2420         * doc/posix-functions/wcstol.texi: Likewise.
2421         * doc/posix-functions/wcstombs.texi: Likewise.
2422         * doc/posix-functions/wcstoull.texi: Likewise.
2423         * doc/posix-functions/wcstoul.texi: Likewise.
2424         * doc/posix-functions/wcstoumax.texi: Likewise.
2425         * doc/posix-functions/wcswidth.texi: Likewise.
2426         * doc/posix-functions/wcsxfrm.texi: Likewise.
2427         * doc/posix-functions/wctob.texi: Likewise.
2428         * doc/posix-functions/wctomb.texi: Likewise.
2429         * doc/posix-functions/wctrans.texi: Likewise.
2430         * doc/posix-functions/wctype.texi: Likewise.
2431         * doc/posix-functions/wcwidth.texi: Likewise.
2432         * doc/posix-functions/wmemchr.texi: Likewise.
2433         * doc/posix-functions/wmemcmp.texi: Likewise.
2434         * doc/posix-functions/wmemcpy.texi: Likewise.
2435         * doc/posix-functions/wmemmove.texi: Likewise.
2436         * doc/posix-functions/wmemset.texi: Likewise.
2437         * doc/posix-functions/wprintf.texi: Likewise.
2438         * doc/posix-functions/wscanf.texi: Likewise.
2439
2440 2008-12-21  Bruno Haible  <bruno@clisp.org>
2441
2442         Update doc for HP-UX 11.11.
2443         * doc/posix-functions/btowc.texi: Clarify that the function is missing
2444         in HP-UX version 11.00, not in all versions of HP-UX 11.
2445         * doc/posix-functions/fwide.texi: Likewise.
2446         * doc/posix-functions/fwprintf.texi: Likewise.
2447         * doc/posix-functions/fwscanf.texi: Likewise.
2448         * doc/posix-functions/inet_ntop.texi: Likewise.
2449         * doc/posix-functions/inet_pton.texi: Likewise.
2450         * doc/posix-functions/mbrlen.texi: Likewise.
2451         * doc/posix-functions/mbrtowc.texi: Likewise.
2452         * doc/posix-functions/mbsinit.texi: Likewise.
2453         * doc/posix-functions/mbsrtowcs.texi: Likewise.
2454         * doc/posix-functions/swprintf.texi: Likewise.
2455         * doc/posix-functions/swscanf.texi: Likewise.
2456         * doc/posix-functions/towctrans.texi: Likewise.
2457         * doc/posix-functions/vfwprintf.texi: Likewise.
2458         * doc/posix-functions/vswprintf.texi: Likewise.
2459         * doc/posix-functions/vwprintf.texi: Likewise.
2460         * doc/posix-functions/wcrtomb.texi: Likewise.
2461         * doc/posix-functions/wcsrtombs.texi: Likewise.
2462         * doc/posix-functions/wcsstr.texi: Likewise.
2463         * doc/posix-functions/wctob.texi: Likewise.
2464         * doc/posix-functions/wctrans.texi: Likewise.
2465         * doc/posix-functions/wmemchr.texi: Likewise.
2466         * doc/posix-functions/wmemcmp.texi: Likewise.
2467         * doc/posix-functions/wmemcpy.texi: Likewise.
2468         * doc/posix-functions/wmemmove.texi: Likewise.
2469         * doc/posix-functions/wmemset.texi: Likewise.
2470         * doc/posix-functions/wprintf.texi: Likewise.
2471         * doc/posix-functions/wscanf.texi: Likewise.
2472
2473 2008-12-21  Bruno Haible  <bruno@clisp.org>
2474
2475         Work around a portability problem.
2476         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
2477         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
2478
2479 2008-12-20  Bruno Haible  <bruno@clisp.org>
2480
2481         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
2482         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
2483         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
2484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
2485         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
2486
2487         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
2488         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
2489         set.
2490         (GNULIB_defined_mbstate_t): New macro.
2491         (mbsinit): Redefine if REPLACE_MBSINIT is set.
2492         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
2493         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
2494         reuses the system's mbrtowc function but works around the bugs.
2495         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
2496         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
2497         macros.
2498         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
2499         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
2500         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
2501         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
2502         REPLACE_MBSINIT if mbsinit needs to be overridden.
2503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
2504         REPLACE_MBSINIT, REPLACE_MBRTOWC.
2505         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
2506         REPLACE_MBSINIT, REPLACE_MBRTOWC.
2507         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
2508         m4/locale-zh.m4.
2509         (Depends): Add mbsinit.
2510         * modules/mbsinit (Depends): Add mbrtowc.
2511         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
2512
2513 2008-12-20  Bruno Haible  <bruno@clisp.org>
2514
2515         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
2516         so that there are no conversion errors on AIX.
2517         * tests/test-mbsrtowcs.c (main): LIkewise.
2518
2519 2008-12-20  Bruno Haible  <bruno@clisp.org>
2520
2521         Work around wctob bug on Solaris <= 9.
2522         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
2523         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
2524         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
2525         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
2526         * modules/wctob (Files): Add m4/locale-fr.m4.
2527         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
2528
2529 2008-12-20  Bruno Haible  <bruno@clisp.org>
2530
2531         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
2532         /dev/null.
2533         * tests/test-select-in.sh: Likewise.
2534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2535
2536 2008-12-20  Bruno Haible  <bruno@clisp.org>
2537
2538         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
2539         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
2540         Cygwin 1.5.x.
2541
2542 2008-12-20  Bruno Haible  <bruno@clisp.org>
2543
2544         Ensure mbstate_t is defined on HP-UX 11.11.
2545         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
2546         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
2547         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
2548         AC_USE_SYSTEM_EXTENSIONS.
2549         * modules/fnmatch (Depends-on): Add extensions.
2550         * modules/mbrlen (Depends-on): Likewise.
2551         * modules/mbrtowc (Depends-on): Likewise.
2552         * modules/mbsinit (Depends-on): Likewise.
2553         * modules/mbsrtowcs (Depends-on): Likewise.
2554         * modules/mbswidth (Depends-on): Likewise.
2555         * modules/quotearg (Depends-on): Likewise.
2556         * modules/strftime (Depends-on): Likewise.
2557
2558 2008-12-20  Bruno Haible  <bruno@clisp.org>
2559
2560         Ensure wctob is declared on IRIX 6.5.
2561         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
2562         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
2563         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
2564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
2565         of HAVE_WCTOB.
2566         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
2567         HAVE_WCTOB.
2568         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
2569
2570 2008-12-19  Bruno Haible  <bruno@clisp.org>
2571
2572         * modules/mbsrtowcs-tests: New file.
2573         * tests/test-mbsrtowcs1.sh: New file.
2574         * tests/test-mbsrtowcs2.sh: New file.
2575         * tests/test-mbsrtowcs3.sh: New file.
2576         * tests/test-mbsrtowcs4.sh: New file.
2577         * tests/test-mbsrtowcs.c: New file.
2578
2579         New module 'mbsrtowcs'.
2580         * lib/wchar.in.h (mbsrtowcs): New declaration.
2581         * lib/mbsrtowcs.c: New file.
2582         * m4/mbsrtowcs.m4: New file.
2583         * modules/mbsrtowcs: New file.
2584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
2585         HAVE_MBSRTOWCS.
2586         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
2587         HAVE_MBSRTOWCS.
2588         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
2589
2590 2008-12-19  Bruno Haible  <bruno@clisp.org>
2591
2592         New module 'mbrlen'.
2593         * lib/wchar.in.h (mbrlen): New declaration.
2594         * lib/mbrlen.c: New file.
2595         * m4/mbrlen.m4: New file.
2596         * modules/mbrlen: New file.
2597         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
2598         HAVE_MBRLEN.
2599         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
2600         HAVE_MBRLEN.
2601         * doc/posix-functions/mbrlen.texi: Document the new module.
2602
2603 2008-12-19  Bruno Haible  <bruno@clisp.org>
2604
2605         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
2606         * modules/mbrtowc (Depends-on): Add verify.
2607         Suggested by Paul Eggert.
2608
2609 2008-12-18  Bruno Haible  <bruno@clisp.org>
2610
2611         * modules/mbsinit-tests: New file.
2612         * tests/test-mbsinit.sh: New file.
2613         * tests/test-mbsinit.c: New file.
2614
2615 2008-12-18  Bruno Haible  <bruno@clisp.org>
2616
2617         * modules/mbrtowc-tests: New file.
2618         * tests/test-mbrtowc1.sh: New file.
2619         * tests/test-mbrtowc2.sh: New file.
2620         * tests/test-mbrtowc3.sh: New file.
2621         * tests/test-mbrtowc4.sh: New file.
2622         * tests/test-mbrtowc.c: New file.
2623
2624         New module 'mbrtowc'.
2625         * lib/wchar.in.h (mbstate_t): Override when the system does not have
2626         mbsinit and mbrtowc.
2627         (mbrtowc): New declaration.
2628         * lib/mbrtowc.c: New file.
2629         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
2630         * modules/mbrtowc: New file.
2631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
2632         HAVE_MBRTOWC.
2633         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
2634         HAVE_MBRTOWC.
2635         * doc/posix-functions/mbrtowc.texi: Document the new module.
2636
2637 2008-12-18  Bruno Haible  <bruno@clisp.org>
2638
2639         New module 'wctob'.
2640         * lib/wchar.in.h (wctob): New declaration.
2641         * lib/wctob.c: New file.
2642         * m4/wctob.m4: New file.
2643         * modules/wctob: New file.
2644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
2645         HAVE_WCTOB.
2646         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
2647         * doc/posix-functions/wctob.texi: Document the new module.
2648
2649 2008-12-18  Bruno Haible  <bruno@clisp.org>
2650
2651         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
2652         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
2653
2654 2008-12-18  Simon Josefsson  <simon@josefsson.org>
2655
2656         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
2657         G. Christensen" <tgc@jupiterrise.com>.
2658
2659         * lib/flock.c: Need to include errno.h.  Reported by "Tom
2660         G. Christensen" <tgc@jupiterrise.com>.
2661
2662         * lib/flock.c: Need to include string.h.  Reported by "Tom
2663         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
2664         <ebb9@byu.net>.
2665
2666 2008-12-18  Bruno Haible  <bruno@clisp.org>
2667
2668         * m4/locale-ja.m4: New file, from GNU gettext.
2669
2670 2008-12-17  Bruno Haible  <bruno@clisp.org>
2671
2672         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
2673         Suggested by Eric Blake.
2674
2675 2008-12-17  Bruno Haible  <bruno@clisp.org>
2676
2677         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
2678
2679 2008-12-17  Bruno Haible  <bruno@clisp.org>
2680
2681         * lib/mbsinit.c: Include verify.h. Verify an assumption.
2682         * modules/mbsinit (Depends-on): Add verify.
2683         Suggested by Paul Eggert.
2684
2685 2008-12-17  Bruno Haible  <bruno@clisp.org>
2686
2687         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
2688         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
2689         gl_FUNC_MBRTOWC.
2690         * m4/mbiter.m4 (gl_MBITER): LIkewise.
2691         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
2692         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
2693         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
2694         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
2695         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
2696         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
2697         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
2698         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
2699         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
2700         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
2701         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
2702         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
2703         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
2704         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
2705         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2706         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
2707         * modules/trim (configure.ac): Likewise.
2708
2709 2008-12-17  Bruno Haible  <bruno@clisp.org>
2710
2711         * modules/btowc-tests: New file.
2712         * tests/test-btowc1.sh: New file.
2713         * tests/test-btowc2.sh: New file.
2714         * tests/test-btowc.c: New file.
2715
2716         New module 'btowc'.
2717         * lib/wchar.in.h (btowc): New declaration.
2718         * lib/btowc.c: New file.
2719         * m4/btowc.m4: New file.
2720         * modules/btowc: New file.
2721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
2722         HAVE_BTOWC.
2723         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
2724         * doc/posix-functions/btowc.texi: Document the new module.
2725
2726 2008-12-17  Bruno Haible  <bruno@clisp.org>
2727
2728         New module 'mbsinit'.
2729         * lib/wchar.in.h (mbsinit): New declaration.
2730         * lib/mbsinit.c: New file.
2731         * m4/mbsinit.m4: New file.
2732         * modules/mbsinit: New file.
2733         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
2734         HAVE_MBSINIT.
2735         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
2736         HAVE_MBSINIT.
2737         * doc/posix-functions/mbsinit.texi: Document the new module.
2738
2739 2008-12-16  Bruno Haible  <bruno@clisp.org>
2740
2741         * lib/unistd.in.h: Add comment.
2742         * tests/test-environ.c: Don't include <stdlib.h>.
2743
2744 2008-12-16  Bruno Haible  <bruno@clisp.org>
2745
2746         * lib/parse-duration.h (parse_duration): Document return value
2747         convention.
2748         * lib/parse-duration.c: Include specification header first. Add
2749         comments.
2750         (_): Remove macro.
2751         (parse_year_month_day, parse_hour_minute_second): Move side effects
2752         outside of strchr call.
2753         (parse_non_iso8601): Move side effects outside of isspace call.
2754         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
2755         call.
2756
2757 2008-12-16  Bruno Haible  <bruno@clisp.org>
2758
2759         * tests/test-parse-duration.sh: Produce no output when the test
2760         succeeds.
2761
2762 2008-12-16  Bruno Haible  <bruno@clisp.org>
2763
2764         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
2765         expressions.
2766
2767 2008-12-15  Bruno Haible  <bruno@clisp.org>
2768
2769         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
2770         * doc/glibc-functions/flistxattr.texi: Likewise.
2771         * doc/glibc-functions/fopencookie.texi: Likewise.
2772         * doc/glibc-functions/fremovexattr.texi: Likewise.
2773         * doc/glibc-functions/fsetxattr.texi: Likewise.
2774         * doc/glibc-functions/getxattr.texi: Likewise.
2775         * doc/glibc-functions/lgetxattr.texi: Likewise.
2776         * doc/glibc-functions/listxattr.texi: Likewise.
2777         * doc/glibc-functions/llistxattr.texi: Likewise.
2778         * doc/glibc-functions/lremovexattr.texi: Likewise.
2779         * doc/glibc-functions/lsetxattr.texi: Likewise.
2780         * doc/glibc-functions/removexattr.texi: Likewise.
2781         * doc/glibc-functions/setxattr.texi: Likewise.
2782         * doc/posix-functions/open_memstream.texi: Likewise.
2783
2784 2008-12-15  Eric Blake  <ebb9@byu.net>
2785
2786         Update doc for cygwin 1.7.
2787         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
2788         functions.
2789         * doc/posix-functions/fchmodat.texi: Likewise.
2790         * doc/posix-functions/fchownat.texi: Likewise.
2791         * doc/posix-functions/fdopendir.texi: Likewise.
2792         * doc/posix-functions/fmemopen.texi: Likewise.
2793         * doc/posix-functions/freeaddrinfo.texi: Likewise.
2794         * doc/posix-functions/fstatat.texi: Likewise.
2795         * doc/posix-functions/futimens.texi: Likewise.
2796         * doc/posix-functions/gai_strerror.texi: Likewise.
2797         * doc/posix-functions/getaddrinfo.texi: Likewise.
2798         * doc/posix-functions/getnameinfo.texi: Likewise.
2799         * doc/posix-functions/if_freenameindex.texi: Likewise.
2800         * doc/posix-functions/if_indextoname.texi: Likewise.
2801         * doc/posix-functions/if_nameindex.texi: Likewise.
2802         * doc/posix-functions/if_nametoindex.texi: Likewise.
2803         * doc/posix-functions/insque.texi: Likewise.
2804         * doc/posix-functions/linkat.texi: Likewise.
2805         * doc/posix-functions/llrint.texi: Likewise.
2806         * doc/posix-functions/llrintf.texi: Likewise.
2807         * doc/posix-functions/llrintl.texi: Likewise.
2808         * doc/posix-functions/lockf.texi: Likewise.
2809         * doc/posix-functions/lrintl.texi: Likewise.
2810         * doc/posix-functions/mkdirat.texi: Likewise.
2811         * doc/posix-functions/mkfifoat.texi: Likewise.
2812         * doc/posix-functions/mknodat.texi: Likewise.
2813         * doc/posix-functions/mq_close.texi: Likewise.
2814         * doc/posix-functions/mq_getattr.texi: Likewise.
2815         * doc/posix-functions/mq_notify.texi: Likewise.
2816         * doc/posix-functions/mq_open.texi: Likewise.
2817         * doc/posix-functions/mq_receive.texi: Likewise.
2818         * doc/posix-functions/mq_send.texi: Likewise.
2819         * doc/posix-functions/mq_setattr.texi: Likewise.
2820         * doc/posix-functions/mq_timedreceive.texi: Likewise.
2821         * doc/posix-functions/mq_timedsend.texi: Likewise.
2822         * doc/posix-functions/mq_unlink.texi: Likewise.
2823         * doc/posix-functions/open_memstream.texi: Likewise.
2824         * doc/posix-functions/openat.texi: Likewise.
2825         * doc/posix-functions/posix_fadvise.texi: Likewise.
2826         * doc/posix-functions/posix_fallocate.texi: Likewise.
2827         * doc/posix-functions/posix_madvise.texi: Likewise.
2828         * doc/posix-functions/posix_memalign.texi: Likewise.
2829         * doc/posix-functions/posix_openpt.texi: Likewise.
2830         * doc/posix-functions/readlinkat.texi: Likewise.
2831         * doc/posix-functions/remque.texi: Likewise.
2832         * doc/posix-functions/renameat.texi: Likewise.
2833         * doc/posix-functions/rintl.texi: Likewise.
2834         * doc/posix-functions/sem_unlink.texi: Likewise.
2835         * doc/posix-functions/shm_open.texi: Likewise.
2836         * doc/posix-functions/shm_unlink.texi: Likewise.
2837         * doc/posix-functions/signgam.texi: Likewise.
2838         * doc/posix-functions/sigset.texi: Likewise.
2839         * doc/posix-functions/stpcpy.texi: Likewise.
2840         * doc/posix-functions/stpncpy.texi: Likewise.
2841         * doc/posix-functions/strerror.texi: Likewise.
2842         * doc/posix-functions/strtod.texi: Likewise.
2843         * doc/posix-functions/symlinkat.texi: Likewise.
2844         * doc/posix-functions/unlinkat.texi: Likewise.
2845         * doc/posix-functions/utimensat.texi: Likewise.
2846         * doc/glibc-functions/bindresvport.texi: Likewise.
2847         * doc/glibc-functions/dn_expand.texi: Likewise.
2848         * doc/glibc-functions/exp10.texi: Likewise.
2849         * doc/glibc-functions/exp10f.texi: Likewise.
2850         * doc/glibc-functions/fgetxattr.texi: Likewise.
2851         * doc/glibc-functions/flistxattr.texi: Likewise.
2852         * doc/glibc-functions/fopencookie.texi: Likewise.
2853         * doc/glibc-functions/freeifaddrs.texi: Likewise.
2854         * doc/glibc-functions/fremovexattr.texi: Likewise.
2855         * doc/glibc-functions/fsetxattr.texi: Likewise.
2856         * doc/glibc-functions/getifaddrs.texi: Likewise.
2857         * doc/glibc-functions/getxattr.texi: Likewise.
2858         * doc/glibc-functions/lgetxattr.texi: Likewise.
2859         * doc/glibc-functions/listxattr.texi: Likewise.
2860         * doc/glibc-functions/llistxattr.texi: Likewise.
2861         * doc/glibc-functions/lremovexattr.texi: Likewise.
2862         * doc/glibc-functions/lsetxattr.texi: Likewise.
2863         * doc/glibc-functions/pow10.texi: Likewise.
2864         * doc/glibc-functions/pow10f.texi: Likewise.
2865         * doc/glibc-functions/rcmd_af.texi: Likewise.
2866         * doc/glibc-functions/removexattr.texi: Likewise.
2867         * doc/glibc-functions/res_init.texi: Likewise.
2868         * doc/glibc-functions/res_mkquery.texi: Likewise.
2869         * doc/glibc-functions/res_query.texi: Likewise.
2870         * doc/glibc-functions/res_querydomain.texi: Likewise.
2871         * doc/glibc-functions/res_send.texi: Likewise.
2872         * doc/glibc-functions/rresvport_af.texi: Likewise.
2873         * doc/glibc-functions/setxattr.texi: Likewise.
2874         * doc/glibc-functions/strcasestr.texi: Likewise.
2875
2876 2008-12-15  Bruno Haible  <bruno@clisp.org>
2877
2878         Fix compilation error on OSF/1 4.0.
2879         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
2880         <sys/time.h>, simply delegate to the system header.
2881         Reported by Daniel Richard G. <oss@teragram.com>.
2882
2883 2008-12-15  Bruno Haible  <bruno@clisp.org>
2884
2885         * doc/posix-functions/openat.texi: Mention the 'openat' module.
2886         * doc/posix-functions/fchmodat.texi: Likewise.
2887         * doc/posix-functions/fchownat.texi: Likewise.
2888         * doc/posix-functions/fdopendir.texi: Likewise.
2889         * doc/posix-functions/fstatat.texi: Likewise.
2890         * doc/posix-functions/mkdirat.texi: Likewise.
2891         * doc/posix-functions/unlinkat.texi: Likewise.
2892
2893 2008-12-14  Bruno Haible  <bruno@clisp.org>
2894
2895         Update doc for POSIX:2008.
2896         * doc/posix-functions/faccessat.texi: New file.
2897         * doc/posix-functions/fchmodat.texi: New file.
2898         * doc/posix-functions/fchownat.texi: New file.
2899         * doc/posix-functions/fdopendir.texi: New file.
2900         * doc/posix-functions/fstatat.texi: New file.
2901         * doc/posix-functions/futimens.texi: New file.
2902         * doc/posix-functions/linkat.texi: New file.
2903         * doc/posix-functions/mkdirat.texi: New file.
2904         * doc/posix-functions/mkfifoat.texi: New file.
2905         * doc/posix-functions/mknodat.texi: New file.
2906         * doc/posix-functions/open_wmemstream.texi: New file.
2907         * doc/posix-functions/openat.texi: New file.
2908         * doc/posix-functions/psiginfo.texi: New file.
2909         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
2910         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
2911         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
2912         * doc/posix-functions/readlinkat.texi: New file.
2913         * doc/posix-functions/renameat.texi: New file.
2914         * doc/posix-functions/strerror_l.texi: New file.
2915         * doc/posix-functions/symlinkat.texi: New file.
2916         * doc/posix-functions/unlinkat.texi: New file.
2917         * doc/posix-functions/utimensat.texi: New file.
2918         * doc/gnulib.texi (Function Substitutes): Add these subsections.
2919
2920 2008-12-14  Bruno Haible  <bruno@clisp.org>
2921
2922         Update doc for POSIX:2008.
2923         * doc/posix-functions/alphasort.texi: Renamed from
2924         doc/glibc-functions/alphasort.texi.
2925         * doc/posix-functions/dirfd.texi: Renamed from
2926         doc/glibc-functions/dirfd.texi.
2927         * doc/posix-functions/dprintf.texi: Renamed from
2928         doc/glibc-functions/dprintf.texi.
2929         * doc/posix-functions/duplocale.texi: Renamed from
2930         doc/glibc-functions/duplocale.texi.
2931         * doc/posix-functions/fexecve.texi: Renamed from
2932         doc/glibc-functions/fexecve.texi.
2933         * doc/posix-functions/fmemopen.texi: Renamed from
2934         doc/glibc-functions/fmemopen.texi.
2935         * doc/posix-functions/freelocale.texi: Renamed from
2936         doc/glibc-functions/freelocale.texi.
2937         * doc/posix-functions/getdate_err.texi: Renamed from
2938         doc/glibc-functions/getdate_err.texi.
2939         * doc/posix-functions/isalnum_l.texi: Renamed from
2940         doc/glibc-functions/isalnum_l.texi.
2941         * doc/posix-functions/isalpha_l.texi: Renamed from
2942         doc/glibc-functions/isalpha_l.texi.
2943         * doc/posix-functions/isblank_l.texi: Renamed from
2944         doc/glibc-functions/isblank_l.texi.
2945         * doc/posix-functions/iscntrl_l.texi: Renamed from
2946         doc/glibc-functions/iscntrl_l.texi.
2947         * doc/posix-functions/isdigit_l.texi: Renamed from
2948         doc/glibc-functions/isdigit_l.texi.
2949         * doc/posix-functions/isgraph_l.texi: Renamed from
2950         doc/glibc-functions/isgraph_l.texi.
2951         * doc/posix-functions/islower_l.texi: Renamed from
2952         doc/glibc-functions/islower_l.texi.
2953         * doc/posix-functions/isprint_l.texi: Renamed from
2954         doc/glibc-functions/isprint_l.texi.
2955         * doc/posix-functions/ispunct_l.texi: Renamed from
2956         doc/glibc-functions/ispunct_l.texi.
2957         * doc/posix-functions/isspace_l.texi: Renamed from
2958         doc/glibc-functions/isspace_l.texi.
2959         * doc/posix-functions/isupper_l.texi: Renamed from
2960         doc/glibc-functions/isupper_l.texi.
2961         * doc/posix-functions/iswalnum_l.texi: Renamed from
2962         doc/glibc-functions/iswalnum_l.texi.
2963         * doc/posix-functions/iswalpha_l.texi: Renamed from
2964         doc/glibc-functions/iswalpha_l.texi.
2965         * doc/posix-functions/iswblank_l.texi: Renamed from
2966         doc/glibc-functions/iswblank_l.texi.
2967         * doc/posix-functions/iswcntrl_l.texi: Renamed from
2968         doc/glibc-functions/iswcntrl_l.texi.
2969         * doc/posix-functions/iswctype_l.texi: Renamed from
2970         doc/glibc-functions/iswctype_l.texi.
2971         * doc/posix-functions/iswdigit_l.texi: Renamed from
2972         doc/glibc-functions/iswdigit_l.texi.
2973         * doc/posix-functions/iswgraph_l.texi: Renamed from
2974         doc/glibc-functions/iswgraph_l.texi.
2975         * doc/posix-functions/iswlower_l.texi: Renamed from
2976         doc/glibc-functions/iswlower_l.texi.
2977         * doc/posix-functions/iswprint_l.texi: Renamed from
2978         doc/glibc-functions/iswprint_l.texi.
2979         * doc/posix-functions/iswpunct_l.texi: Renamed from
2980         doc/glibc-functions/iswpunct_l.texi.
2981         * doc/posix-functions/iswspace_l.texi: Renamed from
2982         doc/glibc-functions/iswspace_l.texi.
2983         * doc/posix-functions/iswupper_l.texi: Renamed from
2984         doc/glibc-functions/iswupper_l.texi.
2985         * doc/posix-functions/iswxdigit_l.texi: Renamed from
2986         doc/glibc-functions/iswxdigit_l.texi.
2987         * doc/posix-functions/isxdigit_l.texi: Renamed from
2988         doc/glibc-functions/isxdigit_l.texi.
2989         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
2990         doc/glibc-functions/mbsnrtowcs.texi.
2991         * doc/posix-functions/mkdtemp.texi: Renamed from
2992         doc/glibc-functions/mkdtemp.texi.
2993         * doc/posix-functions/newlocale.texi: Renamed from
2994         doc/glibc-functions/newlocale.texi.
2995         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
2996         doc/glibc-functions/nl_langinfo_l.texi.
2997         * doc/posix-functions/open_memstream.texi: Renamed from
2998         doc/glibc-functions/open_memstream.texi.
2999         * doc/posix-functions/opterr.texi: Renamed from
3000         doc/glibc-functions/opterr.texi.
3001         * doc/posix-functions/optind.texi: Renamed from
3002         doc/glibc-functions/optind.texi.
3003         * doc/posix-functions/optopt.texi: Renamed from
3004         doc/glibc-functions/optopt.texi.
3005         * doc/posix-functions/psignal.texi: Renamed from
3006         doc/glibc-functions/psignal.texi.
3007         * doc/posix-functions/scandir.texi: Renamed from
3008         doc/glibc-functions/scandir.texi.
3009         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
3010         doc/glibc-functions/sched_get_priority_min.texi.
3011         * doc/posix-functions/signgam.texi: Renamed from
3012         doc/glibc-functions/signgam.texi.
3013         * doc/posix-functions/stpcpy.texi: Renamed from
3014         doc/glibc-functions/stpcpy.texi.
3015         * doc/posix-functions/stpncpy.texi: Renamed from
3016         doc/glibc-functions/stpncpy.texi.
3017         * doc/posix-functions/strcasecmp_l.texi: Renamed from
3018         doc/glibc-functions/strcasecmp_l.texi.
3019         * doc/posix-functions/strcoll_l.texi: Renamed from
3020         doc/glibc-functions/strcoll_l.texi.
3021         * doc/posix-functions/strfmon_l.texi: Renamed from
3022         doc/glibc-functions/strfmon_l.texi.
3023         * doc/posix-functions/strftime_l.texi: Renamed from
3024         doc/glibc-functions/strftime_l.texi.
3025         * doc/posix-functions/strncasecmp_l.texi: Renamed from
3026         doc/glibc-functions/strncasecmp_l.texi.
3027         * doc/posix-functions/strndup.texi: Renamed from
3028         doc/glibc-functions/strndup.texi.
3029         * doc/posix-functions/strnlen.texi: Renamed from
3030         doc/glibc-functions/strnlen.texi.
3031         * doc/posix-functions/strsignal.texi: Renamed from
3032         doc/glibc-functions/strsignal.texi.
3033         * doc/posix-functions/strxfrm_l.texi: Renamed from
3034         doc/glibc-functions/strxfrm_l.texi.
3035         * doc/posix-functions/timer_gettime.texi: Renamed from
3036         doc/glibc-functions/timer_gettime.texi.
3037         * doc/posix-functions/tolower_l.texi: Renamed from
3038         doc/glibc-functions/tolower_l.texi.
3039         * doc/posix-functions/toupper_l.texi: Renamed from
3040         doc/glibc-functions/toupper_l.texi.
3041         * doc/posix-functions/towctrans_l.texi: Renamed from
3042         doc/glibc-functions/towctrans_l.texi.
3043         * doc/posix-functions/towlower_l.texi: Renamed from
3044         doc/glibc-functions/towlower_l.texi.
3045         * doc/posix-functions/towupper_l.texi: Renamed from
3046         doc/glibc-functions/towupper_l.texi.
3047         * doc/posix-functions/uselocale.texi: Renamed from
3048         doc/glibc-functions/uselocale.texi.
3049         * doc/posix-functions/vdprintf.texi: Renamed from
3050         doc/glibc-functions/vdprintf.texi.
3051         * doc/posix-functions/wcpcpy.texi:
3052         Renamed from doc/glibc-functions/wcpcpy.texi.
3053         * doc/posix-functions/wcpncpy.texi: Renamed from
3054         doc/glibc-functions/wcpncpy.texi.
3055         * doc/posix-functions/wcscasecmp.texi: Renamed from
3056         doc/glibc-functions/wcscasecmp.texi.
3057         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
3058         doc/glibc-functions/wcscasecmp_l.texi.
3059         * doc/posix-functions/wcscoll_l.texi: Renamed from
3060         doc/glibc-functions/wcscoll_l.texi.
3061         * doc/posix-functions/wcsdup.texi: Renamed from
3062         doc/glibc-functions/wcsdup.texi.
3063         * doc/posix-functions/wcsncasecmp.texi: Renamed from
3064         doc/glibc-functions/wcsncasecmp.texi.
3065         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
3066         doc/glibc-functions/wcsncasecmp_l.texi.
3067         * doc/posix-functions/wcsnlen.texi: Renamed from
3068         doc/glibc-functions/wcsnlen.texi.
3069         * doc/posix-functions/wcsnrtombs.texi: Renamed from
3070         doc/glibc-functions/wcsnrtombs.texi.
3071         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
3072         doc/glibc-functions/wcsxfrm_l.texi.
3073         * doc/posix-functions/wctrans_l.texi: Renamed from
3074         doc/glibc-functions/wctrans_l.texi.
3075         * doc/posix-functions/wctype_l.texi: Renamed from
3076         doc/glibc-functions/wctype_l.texi.
3077         * doc/gnulib.texi (Function Substitutes): Add these subsections.
3078         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
3079         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
3080         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
3081         these subsections.
3082         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
3083         Remove sections.
3084
3085 2008-12-14  Bruno Haible  <bruno@clisp.org>
3086
3087         Update doc for POSIX:2008.
3088         * doc/posix-functions/*.texi: Update URL of POSIX specification.
3089
3090 2008-12-14  Bruno Haible  <bruno@clisp.org>
3091
3092         Update doc for POSIX:2008.
3093         * doc/pastposix-functions/bcmp.texi: Renamed from
3094         doc/posix-functions/bcmp.texi.
3095         * doc/pastposix-functions/bcopy.texi: Renamed from
3096         doc/posix-functions/bcopy.texi.
3097         * doc/pastposix-functions/bsd_signal.texi: Renamed from
3098         doc/posix-functions/bsd_signal.texi.
3099         * doc/pastposix-functions/bzero.texi: Renamed from
3100         doc/posix-functions/bzero.texi.
3101         * doc/pastposix-functions/ecvt.texi: Renamed from
3102         doc/posix-functions/ecvt.texi.
3103         * doc/pastposix-functions/fcvt.texi: Renamed from
3104         doc/posix-functions/fcvt.texi.
3105         * doc/pastposix-functions/ftime.texi: Renamed from
3106         doc/posix-functions/ftime.texi.
3107         * doc/pastposix-functions/gcvt.texi: Renamed from
3108         doc/posix-functions/gcvt.texi.
3109         * doc/pastposix-functions/getcontext.texi: Renamed from
3110         doc/posix-functions/getcontext.texi.
3111         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
3112         doc/posix-functions/gethostbyaddr.texi.
3113         * doc/pastposix-functions/gethostbyname.texi: Renamed from
3114         doc/posix-functions/gethostbyname.texi.
3115         * doc/pastposix-functions/getwd.texi: Renamed from
3116         doc/posix-functions/getwd.texi.
3117         * doc/pastposix-functions/h_errno.texi: Renamed from
3118         doc/posix-functions/h_errno.texi.
3119         * doc/pastposix-functions/index.texi: Renamed from
3120         doc/posix-functions/index.texi.
3121         * doc/pastposix-functions/makecontext.texi: Renamed from
3122         doc/posix-functions/makecontext.texi.
3123         * doc/pastposix-functions/mktemp.texi: Renamed from
3124         doc/posix-functions/mktemp.texi.
3125         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
3126         doc/posix-functions/pthread_attr_getstackaddr.texi.
3127         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
3128         doc/posix-functions/pthread_attr_setstackaddr.texi.
3129         * doc/pastposix-functions/rindex.texi: Renamed from
3130         doc/posix-functions/rindex.texi.
3131         * doc/pastposix-functions/scalb.texi: Renamed from
3132         doc/posix-functions/scalb.texi.
3133         * doc/pastposix-functions/setcontext.texi: Renamed from
3134         doc/posix-functions/setcontext.texi.
3135         * doc/pastposix-functions/swapcontext.texi: Renamed from
3136         doc/posix-functions/swapcontext.texi.
3137         * doc/pastposix-functions/ualarm.texi: Renamed from
3138         doc/posix-functions/ualarm.texi.
3139         * doc/pastposix-functions/usleep.texi: Renamed from
3140         doc/posix-functions/usleep.texi.
3141         * doc/pastposix-functions/vfork.texi: Renamed from
3142         doc/posix-functions/vfork.texi.
3143         * doc/pastposix-functions/wcswcs.texi: Renamed from
3144         doc/posix-functions/wcswcs.texi.
3145         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
3146         (Function Substitutes): Update.
3147
3148 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3149
3150         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
3151         m4/strerror.m4.
3152
3153 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3154             Bruno Haible  <bruno@clisp.org>
3155
3156         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
3157
3158 2008-12-13  Bruno Haible  <bruno@clisp.org>
3159
3160         * modules/strtoull (Depends-on): Remove unistd.
3161
3162 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3163
3164         * modules/strtoull (Depends-on): Add stdlib.
3165
3166 2008-12-11  Simon Josefsson  <simon@josefsson.org>
3167
3168         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
3169
3170 2008-12-10  Jim Meyering  <meyering@redhat.com>
3171
3172         gl_ASSERT: don't say assertions are disabled when they're not
3173         * m4/assert.m4 (gl_ASSERT): Do not make configure report
3174         "checking whether to enable assertions... no", when they are in
3175         fact enabled.  This is solely a bug in the output of configure.
3176         In spite of saying "no", NDEBUG was not defined in that case.
3177         Also, as noted by Eric Blake, leave assertions enabled upon
3178         --enable-assert=INVALID.
3179
3180 2008-12-10  Bruno Haible  <bruno@clisp.org>
3181
3182         Change MODULES.html to refer to POSIX:2008 where possible.
3183         * MODULES.html.sh (POSIX2008_URL): New variable.
3184         (posix_headers): Remove sys/timeb, ucontext.
3185         (posix2001_headers): New variable.
3186         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
3187         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
3188         index, makecontext, mktemp, pthread_attr_getstackaddr,
3189         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
3190         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
3191         (posix2001_functions): New variable.
3192         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
3193         otherwise.
3194
3195 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3196
3197         add missing include to parse-duration.c
3198         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
3199         * modules/parse-duration (Depends-on): Add xalloc.
3200
3201         fix sed script reading maint.mk
3202         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
3203         (syntax-check-rules): Use it.
3204
3205 2008-12-09  Bruno Haible  <bruno@clisp.org>
3206
3207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
3208         MacOS X 10.4/PowerPC.
3209         Reported by Simon Josefsson.
3210
3211 2008-12-08  Jim Meyering  <meyering@redhat.com>
3212
3213         work around mingw's lack of some S_IF definitions
3214         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
3215         Reported by Simon Josefsson.
3216
3217 2008-12-08  Bruno Haible  <bruno@clisp.org>
3218
3219         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
3220         applied to variables. Needed on MacOS X 10.4/PowerPC.
3221         Reported by Simon Josefsson.
3222
3223 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
3224         and Eric Blake  <ebb9@byu.net>
3225
3226         assert: honor --enable-assert
3227         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
3228         order to honor --enable-assert, rather than treating it as a
3229         synonym for --disable-assert.
3230
3231 2008-12-08  Jim Meyering  <meyering@redhat.com>
3232
3233         * lib/posixtm.c: Remove now-useless declaration of mktime.
3234
3235         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
3236
3237 2008-12-07  Bruno Haible  <bruno@clisp.org>
3238
3239         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
3240         test_once): Mark functions as static.
3241         * tests/test-tls.c (test_tls): Likewise.
3242
3243 2008-12-07  Bruno Haible  <bruno@clisp.org>
3244
3245         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
3246         iconv_register_autodetect.
3247
3248 2008-12-07  Jim Meyering  <meyering@redhat.com>
3249
3250         posixtm.c: avoid a warning
3251         * lib/posixtm.c (posixtime): Don't initialize tm0.
3252         It's no longer needed to placate gcc4's -Wuninitialized,
3253         and the attempt to placate would elicit a new warning.
3254
3255         unicodeio.c: mark unused parameters
3256         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
3257         (fallback_failure_callback): Likewise.
3258
3259 2008-12-07  Bruno Haible  <bruno@clisp.org>
3260
3261         * gnulib-tool (func_create_testdir): When building the tests
3262         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
3263         Reported by Simon Josefsson.
3264
3265 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3266
3267         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
3268
3269 2008-12-06  Bruno Haible  <bruno@clisp.org>
3270
3271         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
3272         Suggested by Eric Blake.
3273
3274 2008-12-06  Bruno Haible  <bruno@clisp.org>
3275
3276         Fix a c-stack test failure on MacOS X.
3277         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
3278         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
3279         handler for SIGBUS as well.
3280         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
3281         install a signal handler for SIGBUS as well.
3282         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
3283
3284 2008-12-06  Bruno Haible  <bruno@clisp.org>
3285
3286         Advocacy documentation.
3287         * doc/gnulib-intro.texi (Benefits): New section.
3288         * doc/gnulib.texi: Update.
3289
3290 2008-12-06  Bruno Haible  <bruno@clisp.org>
3291
3292         Document the 'manywarnings' module.
3293         * doc/manywarnings.texi: New file.
3294         * doc/gnulib.texi: Include it.
3295
3296 2008-12-05  Eric Blake  <ebb9@byu.net>
3297
3298         tests: silence some gcc warnings
3299         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
3300         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
3301         type mismatches.
3302
3303 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3304             Bruno Haible  <bruno@clisp.org>
3305
3306         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
3307
3308 2008-11-29  Jim Meyering  <meyering@redhat.com>
3309
3310         unicodeio.c: mark unused parameters
3311         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
3312         (fallback_failure_callback): Likewise.
3313
3314         fts: fix a thinko
3315         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
3316         (set_stat_type): Return S_IF*-valued "type" directly.
3317         Prompted by James Youngman's spotting a related bug.
3318         Confirmed by further testing through find.
3319
3320         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
3321         * lib/fts.c (D_TYPE): Define.
3322         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
3323         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
3324         (s_ifmt_shift_bits): New function.
3325         (set_stat_type): New function.
3326         (fts_build): When not calling fts_stat, call set_stat_type
3327         to propagate dirent.d_type info to fts_read caller.
3328         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
3329         fts_statp->st_mode type information may be valid.
3330
3331 2008-11-28  Simon Josefsson  <simon@josefsson.org>
3332
3333         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
3334         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
3335         <sds@gnu.org>.
3336
3337 2008-11-20  Bruno Haible  <bruno@clisp.org>
3338
3339         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
3340         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
3341         INCLUDE_NEXT.
3342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
3343         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
3344         * modules/math (Makefile.am): Substitute
3345         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
3346         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3347
3348 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
3349             Bruno Haible  <bruno@clisp.org>
3350
3351         * lib/stdint.in.h: Define all type macros so that their expansion is
3352         a single typedef'ed token. Fixes a compilation failure in Boost which
3353         does "using ::int8_t;".
3354
3355 2008-11-18  Simon Josefsson  <simon@josefsson.org>
3356
3357         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
3358         gl_MANYWARN_ALL_GCC.
3359         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
3360         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
3361         * modules/manywarnings: New file.
3362         * MODULES.html.sh: Mention manywarnings module.
3363
3364 2008-11-18  Bruno Haible  <bruno@clisp.org>
3365
3366         * doc/gnulib-tool.texi (Unit tests): New section.
3367
3368 2008-11-18  Simon Josefsson  <simon@josefsson.org>
3369
3370         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
3371         paths like 'lib/po/foo.po'.
3372
3373 2008-11-17  Simon Josefsson  <simon@josefsson.org>
3374
3375         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
3376         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
3377
3378 2008-11-17  Simon Josefsson  <simon@josefsson.org>
3379
3380         * m4/warnings.m4: Use CPPFLAGS to really check whether the
3381         parameter works.
3382
3383 2008-11-17  Simon Josefsson  <simon@josefsson.org>
3384
3385         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
3386
3387 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3388
3389         * modules/parse-duration-tests: New file.
3390         * tests/test-parse-duration.sh: New file.
3391         * tests/test-parse-duration.c: New file.
3392
3393         New module 'parse-duration'.
3394         * lib/parse-duration.h: New file.
3395         * lib/parse-duration.c: New file.
3396         * modules/parse-duration: New file.
3397
3398 2008-11-17  Bruno Haible  <bruno@clisp.org>
3399
3400         * tests/test-select-out.sh: Comment out the first pipe test.
3401         Reported by Simon Josefsson.
3402
3403 2008-11-17  Bruno Haible  <bruno@clisp.org>
3404
3405         * modules/getaddrinfo (Depends-on): Add servent, hostent.
3406         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
3407         gl_HOSTENT.
3408
3409 2008-11-17  Bruno Haible  <bruno@clisp.org>
3410
3411         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
3412         -lnetwork and -lnet. Needed for Haiku and BeOS.
3413
3414 2008-11-16  Bruno Haible  <bruno@clisp.org>
3415
3416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
3417
3418 2008-11-16  Bruno Haible  <bruno@clisp.org>
3419
3420         Avoid test failure on Haiku.
3421         * tests/test-fsync.c: Include <errno.h>.
3422         (main): Don't require that fsync (0) fails.
3423
3424 2008-11-15  Bruno Haible  <bruno@clisp.org>
3425
3426         New module 'hostent'.
3427         * modules/hostent: New file.
3428         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
3429
3430 2008-11-15  Bruno Haible  <bruno@clisp.org>
3431
3432         New module 'servent'.
3433         * modules/servent: New file.
3434         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
3435
3436 2008-11-15  Bruno Haible  <bruno@clisp.org>
3437
3438         Avoid generating same test program with two different rules.
3439         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
3440         test-frexp to test-frexp-nolibm.
3441         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
3442         test-frexpl to test-frexpl-nolibm.
3443
3444 2008-11-15  Bruno Haible  <bruno@clisp.org>
3445
3446         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
3447         $(FREXPL_LIBM).
3448
3449 2008-11-15  Bruno Haible  <bruno@clisp.org>
3450
3451         * lib/netdb.in.h: Activate the definitions also when the system's
3452         <netdb.h> has 'struct addrinfo'.
3453         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
3454         EAI_OVERFLOW or AI_NUMERICSERV.
3455         * doc/posix-headers/netdb.texi: Document the problem.
3456
3457 2008-11-15  Bruno Haible  <bruno@clisp.org>
3458
3459         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
3460
3461         Make the 'sched' module work on platforms where <sched.h> exists but
3462         is incomplete (such as Haiku).
3463         * lib/sched.in.h; Include the system's <sched.h> if it exists.
3464         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
3465         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
3466         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
3467         HAVE_STRUCT_SCHED_PARAM.
3468         * modules/sched (Depends-on): Add include_next.
3469         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
3470         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
3471         * doc/posix-headers/sched.texi: Document the issue.
3472
3473 2008-11-13  Jim Meyering  <meyering@redhat.com>
3474
3475         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
3476         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
3477         test would fail due to the difference in the Report bugs to ...
3478         line.  The expected address is empty, "<>", while the actual
3479         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
3480
3481 2008-11-12  Bruno Haible  <bruno@clisp.org>
3482
3483         lstat: don't compile lstat.c on systems lacking lstat
3484         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
3485         which don't have lstat; this is handled by lib/sys_stat.in.h already.
3486         Reported by Daniel P. Berrange via Jim Meyering.
3487
3488 2008-11-12  Jim Meyering  <meyering@redhat.com>
3489
3490         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
3491
3492 2008-11-12  Simon Josefsson  <simon@josefsson.org>
3493
3494         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
3495         instead.
3496
3497 2008-11-12  Bruno Haible  <bruno@clisp.org>
3498
3499         * lib/unicodeio.c: Include unistr.h.
3500         (utf8_wctomb): Remove function.
3501         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
3502
3503 2008-11-12  Simon Josefsson  <simon@josefsson.org>
3504
3505         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
3506         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
3507         <bruno@clisp.org>.
3508         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
3509
3510 2008-11-12  Simon Josefsson  <simon@josefsson.org>
3511
3512         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
3513         * doc/gnulib.texi: Add section for warnings.
3514
3515 2008-11-11  Bruno Haible  <bruno@clisp.org>
3516
3517         * lib/sockets.h: Add a comment.
3518
3519 2008-11-11  Karl Berry  <karl@gnu.org>
3520
3521         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
3522
3523 2008-11-11  Eric Blake  <ebb9@byu.net>
3524
3525         fdl.texi: avoid git symlinks
3526         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
3527
3528 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
3529
3530         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
3531
3532 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
3533
3534         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
3535         (gl_WARN_ADD): Substitute $2 if literal.
3536
3537 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
3538
3539         * m4/warning.m4: Remove.
3540
3541 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
3542
3543         * m4/warnings.m4: Almost complete rewrite. :-)
3544
3545 2008-11-10  Simon Josefsson  <simon@josefsson.org>
3546
3547         * modules/warnings: New module.
3548         * m4/warnings.m4: New file.
3549         * MODULES.html.sh: Mention warnings module.
3550         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
3551         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3552
3553 2008-11-10  Eric Blake  <ebb9@byu.net>
3554
3555         fdl.texi: make a symlink to the latest version
3556         * doc/standards.texi: Revert today's earlier change.
3557         * doc/fdl-1.2.texi: Rename from old fdl.texi...
3558         * doc/fdl.texi: ...and replace this with a symlink to the newer
3559         fdl-1.3.texi.
3560
3561 2008-11-10  Bruno Haible  <bruno@clisp.org>
3562
3563         * tests/test-select-fd.c (main): Accept the result file name as fourth
3564         argument.
3565         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
3566         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
3567
3568 2008-11-10  Bruno Haible  <bruno@clisp.org>
3569
3570         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
3571         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
3572         as autoconf-substituted macros.
3573         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
3574         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
3575         gl_NETDB_H_DEFAULTS. Set these variables.
3576         * modules/netdb (Makefile.am): Substitute these variables.
3577
3578 2008-11-10  Eric Blake  <ebb9@byu.net>
3579
3580         standards.texi: include correct file for FDL 1.3
3581         * doc/standards.texi (GNU Free Documentation License): Change
3582         include file to pull in FDL 1.3, not 1.2.
3583
3584         fdl.texi: revert accidental change to license
3585         * doc/fdl.texi: This is FDL 1.2, not 1.3.
3586
3587 2008-11-10  Bruno Haible  <bruno@clisp.org>
3588
3589         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
3590         cross-compiling guesses also when the native compile gives no result.
3591
3592 2008-11-10  Bruno Haible  <bruno@clisp.org>
3593
3594         * lib/spawni.c (__spawni): Force variable into the stack.
3595
3596 2008-11-10  Bruno Haible  <bruno@clisp.org>
3597
3598         Add support for Haiku.
3599         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
3600         glibc and BeOS, but also on Haiku.
3601         * lib/fpurge.c (fpurge): Likewise.
3602         * lib/freadable.c (freadable): Likewise.
3603         * lib/freadahead.c (freadahead): Likewise.
3604         * lib/freading.c (freading): Likewise.
3605         * lib/freadptr.c (freadptr): Likewise.
3606         * lib/freadseek.c (freadptrinc): Likewise.
3607         * lib/fseeko.c (rpl_fseeko): Likewise.
3608         * lib/fseterr.c (fseterr): Likewise.
3609         * lib/fwritable.c (fwritable): Likewise.
3610         * lib/fwriting.c (fwriting): Likewise.
3611         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
3612
3613 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
3614
3615         * lib/config.charset: Treat Haiku like BeOS.
3616
3617 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
3618
3619         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
3620         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
3621
3622 2008-11-08  Bruno Haible  <bruno@clisp.org>
3623
3624         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
3625         AC_CACHE_CHECK.
3626
3627 2008-11-08  Bruno Haible  <bruno@clisp.org>
3628
3629         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
3630
3631 2008-11-08  Bruno Haible  <bruno@clisp.org>
3632
3633         * tests/test-select-fd.c: New file.
3634         * tests/test-select-in.sh: New file.
3635         * tests/test-select-out.sh: New file.
3636         * tests/test-select-stdin.c: New file.
3637         * modules/select-tests (Files): Add the new files.
3638         (Depends-on): Add gettimeofday.
3639         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
3640         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
3641         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
3642
3643 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
3644             Bruno Haible  <bruno@clisp.org>
3645
3646         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
3647
3648 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
3649
3650         * build-aux/pmccabe2html: Added support for C++ source files.
3651
3652 2008-11-05  Ben Pfaff  <blp@gnu.org>
3653
3654         Fix lib/close.c build on Windows.
3655         * modules/close (Files): Add lib/w32sock.h.
3656
3657 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
3658
3659         Accept Bison's NEWS format.
3660         * build-aux/announce-gen (print_news_deltas): Tweak
3661         $re_prefix.
3662
3663 2008-11-04  Bruno Haible  <bruno@clisp.org>
3664
3665         * modules/random_r (Maintainer): Add glibc.
3666
3667 2008-11-04  Simon Josefsson  <simon@josefsson.org>
3668
3669         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
3670         by karl@freefriends.org (Karl Berry).
3671         * doc/alloca.texi: Likewise.
3672         * doc/c-ctype.texi: Likewise.
3673         * doc/c-strcase.texi: Likewise.
3674         * doc/c-strcaseeq.texi: Likewise.
3675         * doc/c-strcasestr.texi: Likewise.
3676         * doc/c-strstr.texi: Likewise.
3677         * doc/c-strtod.texi: Likewise.
3678         * doc/c-strtold.texi: Likewise.
3679         * doc/ctime.texi: Likewise.
3680         * doc/error.texi: Likewise.
3681         * doc/fdl.texi: Likewise.
3682         * doc/gcd.texi: Likewise.
3683         * doc/getdate.texi: Likewise.
3684         * doc/gnulib-intro.texi: Likewise.
3685         * doc/gnulib-tool.texi: Likewise.
3686         * doc/gnulib.texi: Likewise.
3687         * doc/inet_ntoa.texi: Likewise.
3688         * doc/maintain.texi: Likewise.
3689         * doc/make-stds.texi: Likewise.
3690         * doc/quote.texi: Likewise.
3691         * doc/regexprops-generic.texi: Likewise.
3692         * doc/standards.texi: Likewise.
3693         * doc/verify.texi: Likewise.
3694         * doc/visibility.texi: Likewise.
3695         * doc/gnulib.texi (GNU Free Documentation License): Include
3696         fdl-1.3.texi instead of fdl.texi.
3697
3698 2008-11-04  Simon Josefsson  <simon@josefsson.org>
3699
3700         * doc/fdl-1.3.texi: New file, from
3701         <http://www.gnu.org/licenses/fdl-1.3.texi>.
3702         * modules/fdl-1.3: Add.
3703         * MODULES.html.sh: Add fdl-1.3.
3704
3705 2008-11-03  Bruno Haible  <bruno@clisp.org>
3706
3707         Make determination of absolute name of header file work with AIX xlc.
3708         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
3709         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
3710         preprocessing.
3711         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3712         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
3713
3714 2008-11-03  Simon Josefsson  <simon@josefsson.org>
3715
3716         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
3717         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
3718         <ludo@gnu.org>.
3719
3720 2008-11-02  Bruno Haible  <bruno@clisp.org>
3721
3722         Mark 'strpbrk' obsolete.
3723         * modules/strpbrk (Status, Notice): New sections.
3724         * modules/strtok_r (Depends-on): Add strpbrk.
3725
3726 2008-11-02  Bruno Haible  <bruno@clisp.org>
3727
3728         Mark 'strdup' obsolete.
3729         * modules/strdup (Status, Notice): New sections.
3730         * modules/findprog (Depends-on): Add strdup.
3731         * modules/getaddrinfo (Depends-on): Likewise.
3732         * modules/localename (Depends-on): Likewise.
3733         * modules/relocatable-lib (Depends-on): Likewise.
3734         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
3735         * modules/relocatable-prog (Depends-on): Likewise.
3736         * modules/trim (Depends-on): Likewise.
3737         * modules/unictype/gen-ctype (Depends-on): Likewise.
3738         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
3739
3740 2008-11-02  Bruno Haible  <bruno@clisp.org>
3741
3742         Mark 'strcspn' obsolete.
3743         * modules/strcspn (Status, Notice): New sections.
3744
3745 2008-11-02  Bruno Haible  <bruno@clisp.org>
3746
3747         Mark 'rmdir' obsolete.
3748         * modules/rmdir (Status, Notice): New sections.
3749         * modules/clean-temp (Depends-on): Add rmdir.
3750         * modules/openat (Depends-on): Likewise.
3751
3752 2008-11-02  Bruno Haible  <bruno@clisp.org>
3753
3754         Mark 'raise' obsolete.
3755         * modules/raise (Status, Notice): New sections.
3756         (Include): Specify <signal.h>.
3757         * modules/stdio (Depends-on): Add raise.
3758         * modules/write (Depends-on): Likewise.
3759
3760 2008-11-02  Bruno Haible  <bruno@clisp.org>
3761
3762         Mark 'memset' obsolete.
3763         * modules/memset (Status, Notice): New sections.
3764
3765 2008-11-02  Bruno Haible  <bruno@clisp.org>
3766
3767         Mark 'memmove' obsolete.
3768         * modules/memmove (Status, Notice): New sections.
3769         * modules/argp (Depends-on): Add memmove.
3770         * modules/argz (Depends-on): Likewise.
3771         * modules/canonicalize (Depends-on): Likewise.
3772         * modules/canonicalize-lgpl (Depends-on): Likewise.
3773         * modules/fts (Depends-on): Likewise.
3774         * modules/getcwd (Depends-on): Likewise.
3775         * modules/human (Depends-on): Likewise.
3776         * modules/regex (Depends-on): Likewise.
3777         * modules/striconveh (Depends-on): Likewise.
3778         * modules/trim (Depends-on): Likewise.
3779         * modules/unistr/u8-move (Depends-on): Likewise.
3780         * modules/unistr/u16-move (Depends-on): Likewise.
3781         * modules/unistr/u32-move (Depends-on): Likewise.
3782
3783 2008-11-02  Bruno Haible  <bruno@clisp.org>
3784
3785         Mark 'memcpy' obsolete.
3786         * modules/memcpy (Status, Notice): New sections.
3787
3788 2008-11-02  Bruno Haible  <bruno@clisp.org>
3789
3790         Mark 'memcmp' obsolete.
3791         * modules/memcmp (Status, Notice): New sections.
3792         * modules/argmatch (Depends-on): Add memchr.
3793         * modules/backupfile (Depends-on): Likewise.
3794         * modules/c-strcasestr (Depends-on): Likewise.
3795         * modules/crypto/des (Depends-on): Likewise.
3796         * modules/csharpcomp (Depends-on): Likewise.
3797         * modules/fnmatch (Depends-on): Likewise.
3798         * modules/git-merge-changelog (Depends-on): Likewise.
3799         * modules/isnand (Depends-on): Likewise.
3800         * modules/isnand-nolibm (Depends-on): Likewise.
3801         * modules/isnanf (Depends-on): Likewise.
3802         * modules/isnanf-nolibm (Depends-on): Likewise.
3803         * modules/isnanl (Depends-on): Likewise.
3804         * modules/isnanl-nolibm (Depends-on): Likewise.
3805         * modules/mbchar (Depends-on): Likewise.
3806         * modules/memcoll (Depends-on): Likewise.
3807         * modules/quotearg (Depends-on): Likewise.
3808         * modules/regex (Depends-on): Likewise.
3809         * modules/relocatable-prog (Depends-on): Likewise.
3810         * modules/same (Depends-on): Likewise.
3811         * modules/signbit (Depends-on): Likewise.
3812         * modules/strcasestr-simple (Depends-on): Likewise.
3813         * modules/unictype/gen-ctype (Depends-on): Likewise.
3814         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
3815         * modules/uniname/uniname (Depends-on): Likewise.
3816         * modules/unistr/u8-cmp (Depends-on): Likewise.
3817
3818 2008-11-02  Bruno Haible  <bruno@clisp.org>
3819
3820         Mark 'memchr' obsolete.
3821         * modules/memchr (Status, Notice): New sections.
3822         * modules/argp (Depends-on): Add memchr.
3823         * modules/base64 (Depends-on): Likewise.
3824         * modules/c-strcasestr (Depends-on): Likewise.
3825         * modules/chdir-long (Depends-on): Likewise.
3826         * modules/fnmatch (Depends-on): Likewise.
3827         * modules/getsubopt (Depends-on): Likewise.
3828         * modules/git-merge-changelog (Depends-on): Likewise.
3829         * modules/glob (Depends-on): Likewise.
3830         * modules/strcasestr-simple (Depends-on): Likewise.
3831         * modules/strnlen (Depends-on): Likewise.
3832
3833 2008-11-02  Bruno Haible  <bruno@clisp.org>
3834
3835         Mark 'atexit' obsolete.
3836         * modules/atexit (Status, Notice): New sections.
3837         * modules/chdir-long (Depends-on): Add atexit.
3838         * modules/wait-process (Depends-on): Likewise.
3839
3840 2008-11-02  Bruno Haible  <bruno@clisp.org>
3841
3842         * gnulib-tool: New option --with-obsolete.
3843         (func_usage): Document it.
3844         (func_modules_transitive_closure): Drop obsolete dependencies if
3845         incobsolete is not true.
3846         (func_import): Read and save the incobsolete variable to the cache.
3847
3848 2008-11-02  Bruno Haible  <bruno@clisp.org>
3849
3850         * modules/TEMPLATE-EXTENDED: New field 'Status'.
3851         * gnulib-tool: New option --extract-status.
3852         (func_usage): Document it.
3853         (sed_extract_prog): Recognize it.
3854         (func_get_status): New function.
3855
3856 2008-10-30  Simon Josefsson  <simon@josefsson.org>
3857
3858         * modules/sockets (License): Change from LGPL to LGPLv2+.
3859
3860 2008-10-28  Simon Josefsson  <simon@josefsson.org>
3861
3862         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
3863
3864 2008-10-28  Simon Josefsson  <simon@josefsson.org>
3865
3866         * MODULES.html.sh (Support for systems lacking POSIX:2001):
3867         Mention times and sys_times.
3868         * modules/sys_times, modules/sys_times-tests: New modules.
3869         * modules/times, modules/times-tests: Likewise
3870         * m4/sys_times_h.m4: New file.
3871         * lib/sys_times.in.h: Likewise
3872         * lib/times.c: Likewise.
3873         * tests/test-sys_times.c: Likewise.
3874         * tests/test-times.c: Likewise.
3875         * doc/posix-headers/sys_times.texi: Update.
3876         * doc/posix-functions/times.texi: Update.
3877
3878 2008-10-28  Jim Meyering  <meyering@redhat.com>
3879
3880         * modules/tempname (Depends-on): Add lstat.
3881
3882         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
3883
3884 2008-10-28  Simon Josefsson  <simon@josefsson.org>
3885
3886         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
3887         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
3888         using idiom used elsewhere in gnulib.
3889
3890 2008-10-27  Jim Meyering  <meyering@redhat.com>
3891
3892         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
3893
3894 2008-10-27  Simon Josefsson  <simon@josefsson.org>
3895
3896         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
3897         TESTS_ENVIRONMENT, for shell scripts that needs to call built
3898         programs.
3899         * tests/test-argp-2.sh: Use $EXEEXT when needed.
3900
3901 2008-10-27  Simon Josefsson  <simon@josefsson.org>
3902
3903         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
3904
3905 2008-10-27  Bruno Haible  <bruno@clisp.org>
3906
3907         * tests/test-lstat.c: Include <stdio.h>.
3908
3909 2008-10-27  Simon Josefsson  <simon@josefsson.org>
3910
3911         * modules/lstat-tests: New module.
3912         * tests/test-lstat.c: New file.
3913
3914 2008-10-26  Jim Meyering  <meyering@redhat.com>
3915
3916         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
3917
3918 2008-10-26  Simon Josefsson  <simon@josefsson.org>
3919             Bruno Haible  <bruno@clisp.org>
3920
3921         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
3922         * modules/configmake (Include): Add a note that the include must come
3923         after all system headers.
3924         * lib/javaversion.c: Include configmake.h after all other includes.
3925
3926 2008-10-26  Bruno Haible  <bruno@clisp.org>
3927
3928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
3929         HAVE_STRUCT_RANDOM_DATA to 1.
3930         (gl_STDLIB_H): Simplify.
3931
3932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
3933
3934         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
3935         substitute HAVE_STRUCT_RANDOM_DATA.
3936         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
3937         random_data.
3938         * modules/stdlib (Makefile.am): Substitute
3939         HAVE_STRUCT_RANDOM_DATA.
3940
3941 2008-10-26  Simon Josefsson  <simon@josefsson.org>
3942
3943         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
3944         * doc/gnulib-intro.texi (Copyright): Likewise.
3945
3946 2008-10-26  Simon Josefsson  <simon@josefsson.org>
3947
3948         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
3949         findings.
3950
3951 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
3952             Bruno Haible  <bruno@clisp.org>
3953
3954         * lib/unistd.in.h: Include <winsock2.h>.
3955         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
3956         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
3957         Provide dummy declarations.
3958         (gethostname): Override.
3959         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
3960         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
3961         gl_PREREQ_SYS_H_WINSOCK2.
3962         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
3963         * doc/posix-functions/gethostname.texi: More details.
3964
3965 2008-10-25  Bruno Haible  <bruno@clisp.org>
3966
3967         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
3968         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
3969         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
3970
3971         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
3972         here ...
3973         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
3974         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
3975         gl_UNISTD_H_DEFAULTS.
3976
3977 2008-10-25  Eric Blake  <ebb9@byu.net>
3978
3979         signbit: avoid spurious compiler failure
3980         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
3981         declarations inside function.
3982
3983 2008-10-24  Simon Josefsson  <simon@josefsson.org>
3984             Bruno Haible  <bruno@clisp.org>
3985
3986         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
3987         * modules/random_r (Depends-on): Add stdint.
3988
3989 2008-10-24  Bruno Haible  <bruno@clisp.org>
3990
3991         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
3992         Eggert.
3993         * modules/strerror (License): Likewise.
3994
3995 2008-10-24  Jim Meyering  <meyering@redhat.com>
3996
3997         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
3998         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
3999
4000 2008-10-24  Eric Blake  <ebb9@byu.net>
4001
4002         getgroups: fix compilation when getgroups is available
4003         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
4004         but with <config.h> override of getgroups disabled.
4005
4006 2008-10-24  Simon Josefsson  <simon@josefsson.org>
4007
4008         * doc/gnulib.texi (Header files): Add note about C++ problems.
4009         Explained by Bruno Haible <bruno@clisp.org>.
4010
4011 2008-10-23  Bruno Haible  <bruno@clisp.org>
4012
4013         Define a dummy SA_NODEFER macro on Interix.
4014         * lib/signal.in.h (SA_NODEFER): Define fallback.
4015         Reported by Aleksey Cheusov <cheusov@tut.by> via
4016         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
4017
4018 2008-10-23  Bruno Haible  <bruno@clisp.org>
4019
4020         * modules/freadahead (License): Change to LGPLv2+.
4021         Suggested by Simon Josefsson.
4022
4023 2008-10-23  Jim Meyering  <meyering@redhat.com>
4024
4025         random_r: new module
4026         * modules/random_r: New file.
4027         * m4/random_r.m4: New file.
4028         * lib/random_r.c: New file, from glibc.
4029         * modules/random_r-tests: New file.
4030         * tests/test-random_r.c: New file.
4031         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
4032          Declare.
4033         (RAND_MAX): Define.
4034         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
4035         * modules/stdlib: Substitute them, too.
4036         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
4037         * doc/glibc-functions/initstate_r.texi: Mention the new module.
4038         * doc/glibc-functions/random_r.texi: Likewise.
4039         * doc/glibc-functions/setstate_r.texi: Likewise.
4040         * doc/glibc-functions/srandom_r.texi: Likewise.
4041         * config/srclist.txt: Mention it.
4042
4043 2008-10-23  David Lutterkort  <lutter@redhat.com>
4044
4045         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
4046         link requirement
4047
4048 2008-10-23  Jim Meyering  <meyering@redhat.com>
4049
4050         selinux-h: mark parameters of stub functions as intentionally unused
4051         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
4052         * lib/se-context.in.h: Likewise.
4053
4054 2008-10-22  Simon Josefsson  <simon@josefsson.org>
4055
4056         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
4057
4058 2008-10-22  Simon Josefsson  <simon@josefsson.org>
4059
4060         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
4061
4062 2008-10-22  Eric Blake  <ebb9@byu.net>
4063
4064         glthread/thread: avoid compiler warning
4065         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
4066         Add unreachable abort to silence compiler.
4067
4068 2008-10-22  Eric Blake  <ebb9@byu.net>
4069
4070         netdb: also supply struct addrinfo for cygwin 1.5.x
4071         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
4072         older cygwin.
4073         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
4074         cygwin.
4075         * doc/posix-headers/netdb.texi (netdb.h): Document this.
4076
4077 2008-10-22  Bruno Haible  <bruno@clisp.org>
4078
4079         * users.txt: Update entry about pspp.
4080
4081 2008-10-21  Bruno Haible  <bruno@clisp.org>
4082
4083         Simplification.
4084         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
4085         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
4086
4087         Simplification.
4088         * lib/ioctl.c (ioctl): Don't undefine.
4089         * lib/socket.c (socket): Don't undefine.
4090
4091         Remove unused module indicator macros.
4092         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
4093         GNULIB_$1 as a C macro.
4094
4095         * doc/posix-functions/close.texi: Undo last change.
4096         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
4097         Windows platforms.
4098
4099 2008-10-21  Bruno Haible  <bruno@clisp.org>
4100
4101         Add gethostname() declaration to <unistd.h>.
4102         * lib/unistd.in.h (gethostname): New declaration.
4103         * lib/gethostname.c: Include <unistd.h>.
4104         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
4105         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
4106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
4107         and HAVE_GETHOSTNAME.
4108         * modules/gethostname (Depends-on): Add unistd.
4109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4110         (Include): Specify <unistd.h>.
4111         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
4112         HAVE_GETHOSTNAME.
4113         * tests/test-gethostname.c: Include <unistd.h> first.
4114
4115 2008-10-21  Bruno Haible  <bruno@clisp.org>
4116
4117         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
4118         * modules/select-tests (Depends-on): Likewise.
4119         Reported by Simon Josefsson.
4120
4121 2008-10-21  Simon Josefsson  <simon@josefsson.org>
4122
4123         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
4124         * lib/accept.c: New file, based on winsock.c.
4125         * lib/bind.c: New file, based on winsock.c.
4126         * lib/connect.c: New file, based on winsock.c.
4127         * lib/getpeername.c: New file, based on winsock.c.
4128         * lib/getsockname.c: New file, based on winsock.c.
4129         * lib/getsockopt.c: New file, based on winsock.c.
4130         * lib/ioctl.c: New file, based on winsock.c.
4131         * lib/listen.c: New file, based on winsock.c.
4132         * lib/recv.c: New file, based on winsock.c.
4133         * lib/recvfrom.c: New file, based on winsock.c.
4134         * lib/send.c: New file, based on winsock.c.
4135         * lib/sendto.c: New file, based on winsock.c.
4136         * lib/setsockopt.c: New file, based on winsock.c.
4137         * lib/shutdown.c: New file, based on winsock.c.
4138         * lib/socket.c: New file, based on winsock.c.
4139         * lib/w32sock.h: New file, based on winsock.c.
4140         * lib/winsock.c: Remove file.
4141         * modules/accept: Likewise.
4142         * modules/bind: Likewise.
4143         * modules/connect: Likewise.
4144         * modules/getpeername: Likewise.
4145         * modules/getsockname: Likewise.
4146         * modules/getsockopt: Likewise.
4147         * modules/ioctl: Likewise.
4148         * modules/listen: Likewise.
4149         * modules/recv: Likewise.
4150         * modules/recvfrom: Likewise.
4151         * modules/send: Likewise.
4152         * modules/sendto: Likewise.
4153         * modules/setsockopt: Likewise.
4154         * modules/shutdown: Likewise.
4155         * modules/socket: Use socket.c instead of winsock.c.
4156         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
4157         * doc/posix-functions/accept.texi: Doc fix.
4158         * doc/posix-functions/bind.texi: Doc fix.
4159         * doc/posix-functions/close.texi: Doc fix.
4160         * doc/posix-functions/connect.texi: Doc fix.
4161         * doc/posix-functions/getpeername.texi: Doc fix.
4162         * doc/posix-functions/getsockname.texi: Doc fix.
4163         * doc/posix-functions/getsockopt.texi: Doc fix.
4164         * doc/posix-functions/ioctl.texi: Doc fix.
4165         * doc/posix-functions/listen.texi: Doc fix.
4166         * doc/posix-functions/recv.texi: Doc fix.
4167         * doc/posix-functions/recvfrom.texi: Doc fix.
4168         * doc/posix-functions/send.texi: Doc fix.
4169         * doc/posix-functions/sendto.texi: Doc fix.
4170         * doc/posix-functions/setsockopt.texi: Doc fix.
4171         * doc/posix-functions/shutdown.texi: Doc fix.
4172         * doc/posix-functions/socket.texi: Doc fix.
4173
4174 2008-10-20  Bruno Haible  <bruno@clisp.org>
4175
4176         Take into account the role of SIGABRT_COMPAT on Windows 2008.
4177         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
4178         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
4179         as an alias for SIGABRT.
4180         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
4181         (sigaction): Map it to SIGABRT.
4182         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
4183
4184 2008-10-20  Bruno Haible  <bruno@clisp.org>
4185
4186         * lib/fts.c: Don't include lstat.h.
4187         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
4188
4189         Move the lstat() declaration to <sys/stat.h>.
4190         * lib/lstat.h: Remove file.
4191         * lib/sys_stat.in.h: Add special invocation convention.
4192         (lstat): New declaration.
4193         * lib/lstat.c (orig_lstat): New function.
4194         (rpl_lstat): Use orig_lstat instead of lstat.
4195         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
4196         AC_C_INLINE. Set REPLACE_LSTAT.
4197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
4198         and REPLACE_LSTAT.
4199         * modules/lstat (Files): Remove lib/lstat.h.
4200         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
4201         (Include): Specify <sys/stat.h> instead of lstat.h.
4202         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
4203         REPLACE_LSTAT.
4204         * NEWS: Mention the change.
4205
4206 2008-10-20  Bruno Haible  <bruno@clisp.org>
4207
4208         * modules/posix_spawn-tests: New file.
4209         * tests/test-posix_spawn3.c: New file.
4210
4211 2008-10-20  Bruno Haible  <bruno@clisp.org>
4212
4213         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
4214         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
4215         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
4216         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
4217         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
4218
4219 2008-10-20  Bruno Haible  <bruno@clisp.org>
4220
4221         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
4222         of posix_spawn on AIX 5.3.
4223
4224 2008-10-20  Bruno Haible  <bruno@clisp.org>
4225
4226         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
4227
4228 2008-10-20  Bruno Haible  <bruno@clisp.org>
4229
4230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
4231         of AC_LANG_PROGRAM.
4232
4233 2008-10-20  Simon Josefsson  <simon@josefsson.org>
4234
4235         * lib/netdb.in.h: Don't define GNU specific constants until they
4236         are supported or needed.  Reported by Bruno Haible
4237         <bruno@clisp.org>.
4238
4239 2008-10-20  Simon Josefsson  <simon@josefsson.org>
4240
4241         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
4242
4243 2008-10-20  Simon Josefsson  <simon@josefsson.org>
4244
4245         * lib/getaddrinfo.h: Remove file.
4246         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
4247         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
4248         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
4249         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
4250         * modules/netdb: Substitute GNULIB_GETADDRINFO.
4251         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
4252         * tests/test-getaddrinfo.c: Likewise.
4253         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
4254         * NEWS: Mention change.
4255
4256 2008-10-19  Bruno Haible  <bruno@clisp.org>
4257
4258         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
4259
4260 2008-10-19  Bruno Haible  <bruno@clisp.org>
4261
4262         * lib/wait-process.c: Include simply <sys/wait.h>.
4263         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
4264         WIFSTOPPED): Remove fallback definitions.
4265         * modules/wait-process (Depends-on): Add sys_wait.
4266
4267         New module 'sys_wait'.
4268         * modules/sys_wait: New file.
4269         * lib/sys_wait.in.h: New file, partially copied from
4270         lib/wait-process.c.
4271         * m4/sys_wait_h.m4: New file.
4272         * doc/posix-headers/sys_wait.texi: Mention the new module.
4273
4274 2008-10-19  Bruno Haible  <bruno@clisp.org>
4275
4276         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
4277
4278 2008-10-19  Bruno Haible  <bruno@clisp.org>
4279
4280         Assume that waitpid() fills an 'int' status, not a 'union wait'.
4281         * lib/wait-process.c (WAIT_T): Remove type.
4282         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
4283         (wait_subprocess): Update.
4284
4285 2008-10-19  Bruno Haible  <bruno@clisp.org>
4286
4287         New module 'atoll'.
4288         * modules/atoll: New file.
4289         * lib/stdlib.in.h (atoll): New declaration.
4290         * lib/atoll.c: New file, from glibc with modifications.
4291         * m4/atoll.m4: New file.
4292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
4293         HAVE_ATOLL.
4294         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
4295         * doc/posix-functions/atoll.texi: Mention the new module.
4296
4297 2008-10-19  Bruno Haible  <bruno@clisp.org>
4298
4299         Add strtoull() declaration to <stdlib.h>.
4300         * lib/stdlib.in.h (strtoull): New declaration.
4301         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
4302         Set HAVE_STRTOULL.
4303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
4304         HAVE_STRTOULL.
4305         * modules/strtoull (Depends-on): Add stdlib.
4306         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4307         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
4308         HAVE_STRTOULL.
4309
4310 2008-10-19  Bruno Haible  <bruno@clisp.org>
4311
4312         Add strtoll() declaration to <stdlib.h>.
4313         * lib/stdlib.in.h (strtoll): New declaration.
4314         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
4315         Set HAVE_STRTOLL.
4316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
4317         HAVE_STRTOLL.
4318         * modules/strtoll (Depends-on): Add stdlib.
4319         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4320         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
4321
4322 2008-10-19  Bruno Haible  <bruno@clisp.org>
4323
4324         * modules/bcopy (Depends-on): Add strings.
4325         (Include): Specify <strings.h>.
4326
4327 2008-10-19  Bruno Haible  <bruno@clisp.org>
4328
4329         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
4330
4331 2008-10-19  Bruno Haible  <bruno@clisp.org>
4332
4333         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
4334         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
4335         mingw.
4336
4337 2008-10-19  Bruno Haible  <bruno@clisp.org>
4338
4339         * lib/atanl.c: Don't include isnanl.h.
4340         * lib/cosl.c: Likewise.
4341         * lib/ldexpl.c: Likewise.
4342         * lib/logl.c: Likewise.
4343         * lib/sinl.c: Likewise.
4344         * lib/sqrtl.c: Likewise.
4345         * lib/tanl.c: Likewise.
4346
4347         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
4348         * lib/isnanf.h: Remove file.
4349         * lib/isnand.h: Remove file.
4350         * lib/isnanl.h: Remove file.
4351         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
4352         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
4353         macros.
4354         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
4355         HAVE_ISNANF, don't define it as a C macro.
4356         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
4357         HAVE_ISNAND, don't define it as a C macro.
4358         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
4359         HAVE_ISNANL, don't define it as a C macro.
4360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
4361         HAVE_ISNAN[FDL].
4362         * modules/isnanf (Files): Remove lib/isnanf.h.
4363         (Depends-on): Add math.
4364         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4365         (Include): Specify <math.h> instead of isnanf.h.
4366         * modules/isnand (Files): Remove lib/isnand.h.
4367         (Depends-on): Add math.
4368         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4369         (Include): Specify <math.h> instead of isnand.h.
4370         * modules/isnanl (Files): Remove lib/isnanl.h.
4371         (Depends-on): Add math.
4372         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
4373         (Include): Specify <math.h> instead of isnanl.h.
4374         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
4375         HAVE_ISNAN[FDL].
4376         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
4377         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
4378         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
4379         * NEWS: Mention the change.
4380
4381 2008-10-18  Bruno Haible  <bruno@clisp.org>
4382
4383         Add getusershell(), setusershell(), endusershell() declarations to
4384         <unistd.h>.
4385         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
4386         declarations.
4387         * lib/getusershell.c: Include unistd.h.
4388         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
4389         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
4390         HAVE_GETUSERSHELL.
4391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
4392         and HAVE_GETUSERSHELL.
4393         * modules/getusershell (Depends-on): Add unistd, extensions.
4394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4395         (Include): Specify <unistd.h>.
4396         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
4397         HAVE_GETUSERSHELL.
4398
4399 2008-10-18  Bruno Haible  <bruno@clisp.org>
4400
4401         Add a getloadavg() declaration to <stdlib.h>.
4402         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
4403         getloadavg declaration.
4404         (getloadavg): New declaration.
4405         * lib/getloadavg.c: Include <stdlib.h> first.
4406         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
4407         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
4408         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
4409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
4410         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
4411         * modules/getloadavg (Depends-on): Add stdlib, extensions.
4412         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4413         (Include): Specify <stdlib.h>.
4414         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
4415         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
4416
4417 2008-10-18  Bruno Haible  <bruno@clisp.org>
4418
4419         * lib/dirchownmod.c: Don't include lchmod.h.
4420
4421         Move the lchmod() declaration to <sys/stat.h>.
4422         * lib/lchmod.h: Remove file.
4423         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
4424         (lchmod): New declaration, moved here from lib/lchown.h.
4425         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
4426         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
4427         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
4428         and HAVE_LCHMOD.
4429         * modules/lchmod (Files): Remove lib/lchmod.h.
4430         (Depends-on): Add sys_stat, extensions.
4431         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
4432         (Include): Specify <sys/stat.h> instead of lchmod.h.
4433         * modules/sys_stat (Depends-on): Add link-warning.
4434         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
4435         definition of GL_LINK_WARNING.
4436         * NEWS: Mention the change.
4437
4438 2008-10-18  Bruno Haible  <bruno@clisp.org>
4439
4440         * lib/fchdir.c: Don't include dirfd.h.
4441         * lib/fts.c: Likewise.
4442         * lib/getcwd.c: Likewise.
4443         * lib/glob.c: Likewise.
4444
4445         Move the dirfd() declaration to <dirent.h>.
4446         * lib/dirfd.h: Remove file.
4447         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
4448         (dirfd): New declaration.
4449         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
4450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
4451         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
4452         HAVE_DECL_DIRFD.
4453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
4454         HAVE_DECL_DIRFD.
4455         * modules/dirfd (Files): Remove lib/dirfd.h.
4456         (Depends-on): Add dirent, extensions.
4457         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
4458         (Include): Specify <dirent.h> instead of dirfd.h.
4459         * modules/dirent (Depends-on): Add link-warning.
4460         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
4461         definition of GL_LINK_WARNING.
4462         * NEWS: Mention the change.
4463
4464 2008-10-18  Bruno Haible  <bruno@clisp.org>
4465
4466         Move the euidaccess() declaration to <unistd.h>.
4467         * lib/euidaccess.h: Remove file.
4468         * lib/unistd.in.h (euidaccess): New declaration.
4469         * lib/euidaccess.c: Don't include euidaccess.h.
4470         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
4471         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
4472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
4473         and HAVE_EUIDACCESS.
4474         * modules/euidaccess (Files): Remove lib/euidaccess.h.
4475         (Depends-on): Add unistd.
4476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4477         (Include): Specify <unistd.h> instead of euidaccess.h.
4478         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
4479         HAVE_EUIDACCESS.
4480         * NEWS: Mention the change.
4481
4482 2008-10-18  Bruno Haible  <bruno@clisp.org>
4483
4484         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
4485
4486         Move the getdomainname() declaration to <unistd.h>.
4487         * lib/getdomainname.h: Remove file.
4488         * lib/unistd.in.h (getdomainname): New declaration.
4489         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
4490         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4491         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
4492         HAVE_GETDOMAINNAME.
4493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4494         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
4495         * modules/getdomainname (Files): Remove lib/getdomainname.h.
4496         (Depends-on): Add unistd, extensions.
4497         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4498         (Includes): Specify <unistd.h> instead of getdomainname.h.
4499         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
4500         HAVE_GETDOMAINNAME.
4501         * NEWS: Mention the change.
4502
4503 2008-10-18  Bruno Haible  <bruno@clisp.org>
4504
4505         * modules/dirent: New file.
4506         * m4/dirent_h.m4: New file.
4507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
4508         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
4509         * modules/fchdir (Files): Remove lib/dirent.in.h.
4510         (Depends-on): Add dirent.
4511         (Makefile.am): Move rules to modules/dirent.
4512         * doc/posix-headers/dirent.texi: Mention the new module.
4513
4514 2008-10-18  Bruno Haible  <bruno@clisp.org>
4515
4516         Avoid -Wunused-parameter warnings in public gnulib header files.
4517         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
4518         macro.
4519         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
4520
4521 2008-10-18  Bruno Haible  <bruno@clisp.org>
4522
4523         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
4524         * doc/glibc-functions/error.texi: Mention the module 'error'.
4525         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
4526         * doc/glibc-functions/getdomainname.texi: Mention the module
4527         'getdomainname'.
4528         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
4529         * doc/glibc-functions/getpagesize.texi: Mention the module
4530         'getpagesize'.
4531         * doc/glibc-functions/getusershell.texi: Mention the module
4532         'getusershell'.
4533         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
4534         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
4535         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
4536         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
4537         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
4538         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
4539         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
4540         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
4541         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
4542         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
4543         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
4544         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
4545         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
4546         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
4547
4548 2008-10-17  Bruno Haible  <bruno@clisp.org>
4549
4550         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
4551         HP-UX and IRIX, use -0.0L.
4552         * tests/test-ceill.c (minus_zero): Likewise.
4553         * tests/test-floorl.c (minus_zero): Likewise.
4554         * tests/test-frexpl.c (minus_zero): Likewise.
4555         * tests/test-isnan.c (minus_zerol): Likewise.
4556         * tests/test-isnanl.h (minus_zero): Likewise.
4557         * tests/test-ldexpl.c (minus_zero): Likewise.
4558         * tests/test-roundl.c (minus_zero): Likewise.
4559         * tests/test-signbit.c (minus_zerol): Likewise.
4560         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
4561         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
4562         * tests/test-truncl.c (minus_zero): Likewise.
4563         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
4564         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
4565         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
4566         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
4567
4568 2008-10-17  Bruno Haible  <bruno@clisp.org>
4569
4570         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
4571         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
4572         that it gets activated only for gcc >= 3.0.
4573         * lib/dirent.in.h: Likewise.
4574         * lib/errno.in.h: Likewise.
4575         * lib/fcntl.in.h: Likewise.
4576         * lib/float.in.h: Likewise.
4577         * lib/iconv.in.h: Likewise.
4578         * lib/inttypes.in.h: Likewise.
4579         * lib/locale.in.h: Likewise.
4580         * lib/math.in.h: Likewise.
4581         * lib/netdb.in.h: Likewise.
4582         * lib/netinet_in.in.h: Likewise.
4583         * lib/search.in.h: Likewise.
4584         * lib/signal.in.h: Likewise.
4585         * lib/spawn.in.h: Likewise.
4586         * lib/stdarg.in.h: Likewise.
4587         * lib/stdint.in.h: Likewise.
4588         * lib/stdio.in.h: Likewise.
4589         * lib/stdlib.in.h: Likewise.
4590         * lib/string.in.h: Likewise.
4591         * lib/strings.in.h: Likewise.
4592         * lib/sys_file.in.h: Likewise.
4593         * lib/sys_ioctl.in.h: Likewise.
4594         * lib/sys_select.in.h: Likewise.
4595         * lib/sys_socket.in.h: Likewise.
4596         * lib/sys_stat.in.h: Likewise.
4597         * lib/sys_time.in.h: Likewise.
4598         * lib/sysexits.in.h: Likewise.
4599         * lib/time.in.h: Likewise.
4600         * lib/unistd.in.h: Likewise.
4601         * lib/wchar.in.h: Likewise.
4602         * lib/wctype.in.h: Likewise.
4603         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4604
4605 2008-10-17  Jim Meyering  <meyering@redhat.com>
4606
4607         ignore-value: don't depend on inline module
4608         * modules/ignore-value (Depends-on): Remove 'inline'.
4609         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
4610         Suggestion from Bruno Haible.
4611
4612 2008-10-17  Bruno Haible  <bruno@clisp.org>
4613
4614         New implementation of condition variables for Win32.
4615         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
4616         (gl_linked_waitqueue_t): New type.
4617         (gl_cond_t): Use it.
4618         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
4619         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
4620         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
4621         (glthread_cond_init_func, glthread_cond_wait_func,
4622         glthread_cond_timedwait_func, glthread_cond_signal_func,
4623         glthread_cond_broadcast_func, glthread_cond_destroy_func):
4624         Reimplemented on the basis of gl_linked_waitqueue_t.
4625         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
4626         gl_waitqueue_t.
4627         (gl_rwlock_t): Update.
4628         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
4629
4630 2008-10-17  Simon Josefsson  <simon@josefsson.org>
4631
4632         * modules/recvfrom (Depends-on): Add dependency on getpeername.
4633         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
4634
4635 2008-10-17  Jim Meyering  <meyering@redhat.com>
4636
4637         ignore-value: new module
4638         * modules/ignore-value: New file.
4639         * lib/ignore-value.h: New file.
4640         * MODULES.html.sh (Compiler warning management): New section,
4641         just for this module.  More to come.
4642
4643 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4644
4645         open-safer.c: avoid 'signed and unsigned in conditional...' warning
4646         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
4647         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
4648
4649 2008-10-16  Jim Meyering  <meyering@redhat.com>
4650
4651         openat-die.c: avoid 'no previous prototype' warning
4652         * lib/openat-die.c: Include "openat.h".
4653         Reported by Reuben Thomas <rrt@sc3d.org>.
4654
4655 2008-10-16  Simon Josefsson  <simon@josefsson.org>
4656
4657         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
4658         * lib/netdb.in.h: Fix typo.
4659         Reported by Bruno Haible  <bruno@clisp.org>
4660
4661         * lib/netdb.in.h: Include sys/socket.h for platforms without
4662         netdb.h, to get structures like hostent on MinGW.
4663         * modules/netdb (Depends-on): Add sys_socket.
4664
4665 2008-10-15  Simon Josefsson  <simon@josefsson.org>
4666
4667         * modules/netdb, modules/netdb-tests: New file.
4668         * m4/netdb_h.m4: New file.
4669         * lib/netdb.in.h: Add, currently just an empty file pending
4670         definitions.
4671         * tests/test-netdb.c: New file.
4672         * doc/posix-headers/netdb.texi: Mention that we replace it if
4673         needed.
4674         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4675         netdb.
4676
4677 2008-10-15  Simon Josefsson  <simon@josefsson.org>
4678
4679         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
4680         with code.
4681
4682 2008-10-13  Bruno Haible  <bruno@clisp.org>
4683
4684         * lib/glthread/cond.c (glthread_cond_wait_func,
4685         glthread_cond_timedwait_func): Add a comment.
4686
4687 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
4688
4689         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
4690         * tests/test-select.c: Likewise,
4691
4692 2008-10-13  Bruno Haible  <bruno@clisp.org>
4693
4694         * lib/glthread/cond.c (glthread_cond_wait_func,
4695         glthread_cond_timedwait_func): Fix variable name.
4696         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
4697
4698 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
4699
4700         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
4701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
4702         struct sockaddr.sa_len.
4703         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
4704
4705 2008-10-13  Simon Josefsson  <simon@josefsson.org>
4706
4707         * build-aux/pmccabe2html: Add css and css_url parameters.
4708
4709 2008-10-12  Bruno Haible  <bruno@clisp.org>
4710
4711         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
4712         calling aclx_get.
4713         Reported by Rainer Tammer <tammer@tammer.net>.
4714
4715 2008-10-12  Bruno Haible  <bruno@clisp.org>
4716
4717         Use msvcrt aware primitives for creation/termination of Win32 threads.
4718         * lib/glthread/thread.c: Include <process.h>.
4719         (glthread_create_func): Use _beginthreadex instead of CreateThread.
4720         (wrapper_func): Update signature.
4721         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
4722
4723 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
4724             Bruno Haible  <bruno@clisp.org>
4725
4726         Provide a Win32 implementation of the 'cond' module.
4727         * lib/glthread/cond.h [USE_WIN32]: New implementation.
4728         * lib/glthread/cond.c (glthread_cond_init_func,
4729         glthread_cond_wait_func, glthread_cond_timedwait_func,
4730         glthread_cond_signal_func, glthread_cond_broadcast_func,
4731         glthread_cond_destroy_func) [USE_WIN32]: New functions.
4732         * modules/cond (Dependencies): Add gettimeofday.
4733
4734 2008-10-11  Bruno Haible  <bruno@clisp.org>
4735
4736         Make sleep work on older versions of mingw.
4737         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
4738         only whether it exists.
4739         * doc/posix-functions/sleep.texi: Mention the problem with older
4740         versions of mingw.
4741
4742 2008-10-11  Bruno Haible  <bruno@clisp.org>
4743
4744         New module 'shutdown'.
4745         * modules/shutdown: New file.
4746         * lib/sys_socket.in.h (shutdown): New declaration.
4747         * lib/winsock.c (shutdown): New function.
4748         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4749         GNULIB_SHUTDOWN.
4750         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
4751         * doc/posix-functions/shutdown.texi: Document the new module.
4752
4753 2008-10-11  Jim Meyering  <meyering@redhat.com>
4754
4755         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
4756
4757 2008-10-11  Bruno Haible  <bruno@clisp.org>
4758
4759         New module 'fclose'.
4760         * modules/fclose: New file.
4761         * lib/stdio.in.h (fclose): New declaration.
4762         * lib/fclose.c: New file.
4763         * m4/fclose.m4: New file.
4764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
4765         REPLACE_FCLOSE.
4766         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
4767         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
4768         REPLACE_FCLOSE.
4769         * modules/close (Depends-on): fclose.
4770         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
4771
4772 2008-10-11  Bruno Haible  <bruno@clisp.org>
4773
4774         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
4775         set errno and don't call _close.
4776
4777 2008-10-10  Bruno Haible  <bruno@clisp.org>
4778
4779         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
4780         ACL, not afterwards. Fixes test failure on Cygwin.
4781
4782 2008-10-09  Ben Pfaff  <blp@gnu.org>
4783
4784         * build-aux/announce-gen: Fix gnulib version related part of usage
4785         message.  Die with a useful error message if no tarballs are
4786         found.
4787
4788 2008-10-10  Jim Meyering  <meyering@redhat.com>
4789
4790         bootstrap: use git's --depth=N option only if it's supported
4791         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
4792         recognize the --depth option.  Reported by Pádraig Brady.
4793
4794 2008-10-09  Bruno Haible  <bruno@clisp.org>
4795
4796         New module 'ioctl'.
4797         * modules/ioctl: New file.
4798         * lib/sys_socket.in.h (ioctl): Remove declaration.
4799         * lib/winsock.c: Include <sys/ioctl.h>.
4800         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
4801         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
4802         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
4803         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
4804         * doc/posix-functions/ioctl.texi: Mention the new module.
4805
4806 2008-10-09  Bruno Haible  <bruno@clisp.org>
4807
4808         New module 'sys_ioctl'.
4809         * lib/sys_ioctl.in.h: New file.
4810         * m4/sys_ioctl_h.m4: New file.
4811         * modules/sys_ioctl: New file.
4812         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
4813
4814 2008-10-09  Bruno Haible  <bruno@clisp.org>
4815
4816         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
4817         * lib/winsock.c: Include <stdarg.h>.
4818         (rpl_ioctl): Change to second argument 'int' and then varargs.
4819
4820 2008-10-09  Bruno Haible  <bruno@clisp.org>
4821
4822         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
4823         when the sys_socket module is present and the system has <winsock2.h>.
4824
4825 2008-10-09  Bruno Haible  <bruno@clisp.org>
4826
4827         * doc/posix-functions/close.texi: Mention module 'close' instead of
4828         module 'sys_socket'.
4829
4830 2008-10-09  Bruno Haible  <bruno@clisp.org>
4831
4832         * doc/glibc-headers/sys_ioctl.texi: New file.
4833         * doc/gnulib.texi: Include it.
4834
4835 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4836             Bruno Haible  <bruno@clisp.org>
4837
4838         Combine the two replacements of 'close'.
4839         * lib/sys_socket.in.h (close): Define to a reminder to include
4840         <unistd.h>.
4841         (_gl_close_fd_maybe_socket): New declaration.
4842         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
4843         * lib/winsock.c (close): Remove undefinition.
4844         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
4845         needed for the gnulib module 'close'.
4846         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
4847         define to an error symbol or to a warning, if suitable.
4848         * lib/close.c: Include <sys/socket.h>.
4849         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
4850         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
4851         UNISTD_H_HAVE_WINSOCK2_H.
4852         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
4853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4854         UNISTD_H_HAVE_WINSOCK2_H.
4855         * modules/sys_socket (Files): Add m4/unistd_h.m4.
4856         (configure.ac): Set a module indicator.
4857         (Makefile.am): Substitute GNULIB_CLOSE.
4858         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
4859         * modules/poll-tests (Depends-on): Add close.
4860         * modules/select-tests (Depends-on): Likewise.
4861
4862 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4863             Bruno Haible  <bruno@clisp.org>
4864
4865         New module 'close'.
4866         * modules/close: New file.
4867         * lib/unistd.in.h (close): Move declaration out of the
4868         FCHDIR_REPLACEMENT scope.
4869         (_gl_unregister_fd): New declaration.
4870         * lib/close.c: New file.
4871         * lib/fchdir.c (rpl_close): Remove function.
4872         * m4/close.m4: New file.
4873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
4874         close.
4875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
4876         REPLACE_CLOSE.
4877         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
4878         REPLACE_CLOSE.
4879         * modules/fchdir (Depends-on): Add close.
4880
4881 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4882             Bruno Haible  <bruno@clisp.org>
4883
4884         * lib/fcntl.in.h (open): Simplify conditionals.
4885         (_gl_register_fd): New declaration.
4886         * lib/fchdir.c (rpl_open): Remove function.
4887         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
4888         also.
4889         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
4890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
4891         open.
4892
4893 2008-10-09  Jim Meyering  <meyering@redhat.com>
4894
4895         GNUmakefile: use the more name-space-friendly "_version"
4896         * top/GNUmakefile (_dummy): Update.
4897         (_version): Rename from "version".
4898
4899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4900             Bruno Haible  <bruno@clisp.org>
4901
4902         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
4903         rpl_close.
4904         (_gl_register_fd): New function, extracted from rpl_open.
4905         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
4906         (rpl_open, rpl_opendir): Use _gl_register_fd.
4907
4908 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
4909
4910         Fix organization of 'open' replacement.
4911         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
4912         (gl_FUNC_OPEN): Use it.
4913         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
4914
4915 2008-10-08  Bruno Haible  <bruno@clisp.org>
4916
4917         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
4918
4919 2008-10-08  Simon Josefsson  <simon@josefsson.org>
4920
4921         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
4922         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
4923         listen).
4924
4925 2008-10-08  Eric Blake  <ebb9@byu.net>
4926
4927         GNUmakefile: add 'make version' target
4928         * top/GNUmakefile (_curr-ver): Split version update rules...
4929         (version): ...into a target.
4930
4931 2008-10-07  Bruno Haible  <bruno@clisp.org>
4932
4933         Use a more portable replacement expression for -0.0L.
4934         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
4935         instead of -0.0L. Fix m4 quotation.
4936
4937         * tests/test-signbit.c: Include <float.h>.
4938         (minus_zero): New variable.
4939         (test_signbitl): Use minus_zero instead of -zero.
4940         * modules/signbit-tests (Depends-on): Add float.
4941
4942         * tests/test-ceill.c: Include <float.h>.
4943         (zero): Remove variable.
4944         (minus_zero): New variable.
4945         (main): Use minus_zero instead of -zero.
4946         * modules/ceill-tests (Depends-on): Add float.
4947
4948         * tests/test-floorl.c: Include <float.h>.
4949         (zero): Remove variable.
4950         (minus_zero): New variable.
4951         (main): Use minus_zero instead of -zero.
4952         * modules/floorl-tests (Depends-on): Add float.
4953
4954         * tests/test-roundl.c: Include <float.h>.
4955         (zero): Remove variable.
4956         (minus_zero): New variable.
4957         (main): Use minus_zero instead of -zero.
4958         * modules/roundl-tests (Depends-on): Add float.
4959
4960         * tests/test-truncl.c: Include <float.h>.
4961         (zero): Remove variable.
4962         (minus_zero): New variable.
4963         (main): Use minus_zero instead of -zero.
4964         * modules/truncl-tests (Depends-on): Add float.
4965
4966         * tests/test-frexpl.c (zero): Remove variable.
4967         (minus_zero): New variable.
4968         (main): Use minus_zero instead of -zero.
4969         * modules/frexpl-tests (Depends-on): Add float.
4970
4971         * tests/test-isnan.c (zerol): Remove variable.
4972         (minus_zerol): New variable.
4973         (test_long_double): Use minus_zerol instead of -zerol.
4974         * modules/isnan-tests (Depends-on): Add float.
4975
4976         * tests/test-isnanl.h (zero): Remove variable.
4977         (minus_zero): New variable.
4978         (main): Use minus_zero instead of -zero.
4979         * modules/isnanl-nolibm-tests (Depends-on): Add float.
4980         * modules/isnanl-tests (Depends-on): Add float.
4981
4982         * tests/test-ldexpl.c (zero): Remove variable.
4983         (minus_zero): New variable.
4984         (main): Use minus_zero instead of -zero.
4985         * modules/ldexpl-tests (Depends-on): Add float.
4986
4987         * tests/test-snprintf-posix.h (zerol): Remove variable.
4988         (minus_zerol): New variable.
4989         (test_function): Use minus_zerol instead of -zerol.
4990         * modules/snprintf-posix-tests (Depends-on): Add float.
4991         * modules/vsnprintf-posix-tests (Depends-on): Add float.
4992
4993         * tests/test-sprintf-posix.h (zerol): Remove variable.
4994         (minus_zerol): New variable.
4995         (test_function): Use minus_zerol instead of -zerol.
4996         * modules/sprintf-posix-tests (Depends-on): Add float.
4997         * modules/vsprintf-posix-tests (Depends-on): Add float.
4998
4999         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
5000         (minus_zerol): New variable.
5001         (test_function): Use minus_zerol instead of -zerol.
5002         * modules/vasnprintf-posix-tests (Depends-on): Add float.
5003
5004         * tests/test-vasprintf-posix.c (zerol): Remove variable.
5005         (minus_zerol): New variable.
5006         (test_function): Use minus_zerol instead of -zerol.
5007         * modules/vasprintf-posix-tests (Depends-on): Add float.
5008
5009 2008-10-07  Simon Josefsson  <simon@josefsson.org>
5010
5011         * MODULES.html.sh (Support for building documentation): Mention
5012         pmccabe2html.  Sort entries.
5013
5014         Add pmccabe2html module, from gnupdf.
5015         * build-aux/pmccabe.css: New file.
5016         * build-aux/pmccabe2html: New file.
5017         * m4/pmccabe2html.m4: New file.
5018         * modules/pmccabe2html: New file.
5019
5020 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
5021
5022         flock: new module
5023         * MODULES.html.sh: Add to list of modules.
5024         * lib/flock.c: flock implementation for Windows and Unix systems
5025         which have fcntl.
5026         * doc/glibc-functions/flock.texi: Update documentation.
5027         * lib/sys_file.in.h: <sys/file.h> header file.
5028         * m4/flock.m4: M4 macros.
5029         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
5030         * modules/flock: flock module.
5031         * modules/flock-tests: flock tests module.
5032         * modules/sys_file: sys/file.h module.
5033         * tests/test-flock.c: test suite for flock.
5034
5035 2008-10-06  Jim Meyering  <meyering@redhat.com>
5036
5037         bootstrap: check for LT_INIT more portably still ;-)
5038         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
5039         Spotted by Bruno Haible.
5040
5041 2008-10-06  Eric Blake  <ebb9@byu.net>
5042
5043         test-signbit: avoid tripping Irix cc bug on -0.0L
5044         * tests/test-signbit.c (minus_zerol): Delete, and replace with
5045         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
5046         entire testsuite consistent and avoids an Irix 6.2 bug.
5047
5048 2008-10-05  Bruno Haible  <bruno@clisp.org>
5049             Jim Meyering  <jim@meyering.net>
5050
5051         Add an option for ignoring EPIPE during close_stdout.
5052         * lib/closeout.h: Include <stdbool.h>.
5053         (close_stdout_set_ignore_EPIPE): New declaration.
5054         * lib/closeout.c: Include <stdbool.h>.
5055         (ignore_EPIPE): New variable.
5056         (close_stdout_set_ignore_EPIPE): New function.
5057         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
5058         * lib/close-stream.c (close_stream): Mention the possible EPIPE
5059         failure.
5060         * modules/closeout (Depends-on): Add stdbool.
5061
5062 2008-10-05  Bruno Haible  <bruno@clisp.org>
5063
5064         * modules/accept: New file.
5065         * modules/bind: New file.
5066         * modules/connect: New file.
5067         * modules/getpeername: New file.
5068         * modules/getsockname: New file.
5069         * modules/getsockopt: New file.
5070         * modules/listen: New file.
5071         * modules/recv: New file.
5072         * modules/recvfrom: New file.
5073         * modules/send: New file.
5074         * modules/sendto: New file.
5075         * modules/setsockopt: New file.
5076         * modules/socket: New file.
5077         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
5078         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5079         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
5080         the particular module is requested. Add a link warning when the
5081         particular module is not requested.
5082         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
5083         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
5084         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
5085         the particular module is requested.
5086         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
5087         gl_SYS_SOCKET_H_DEFAULTS): New macros.
5088         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
5089         * modules/sys_socket (Depends-on): Add link-warning.
5090         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
5091         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
5092         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
5093         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
5094         GL_LINK_WARNING.
5095         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
5096         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
5097         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
5098         * doc/posix-functions/getpeername.texi: Mention the new module
5099         'getpeername'.
5100         * doc/posix-functions/getsockname.texi: Mention the new module
5101         'getsockname'.
5102         * doc/posix-functions/getsockopt.texi: Mention the new module
5103         'getsockopt'.
5104         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
5105         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
5106         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
5107         * doc/posix-functions/send.texi: Mention the new module 'send'.
5108         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
5109         * doc/posix-functions/setsockopt.texi: Mention the new module
5110         'setsockopt'.
5111         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
5112         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
5113         listen, connect, accept.
5114         * modules/select-tests (Depends-on): Likewise.
5115
5116 2008-10-05  Bruno Haible  <bruno@clisp.org>
5117
5118         * lib/winsock.c (strerror): Remove unused #undef.
5119         (rpl_close): Remove unused local variable.
5120
5121         * modules/sys_socket (Depends-on); Add errno.
5122
5123 2008-10-05  Bruno Haible  <bruno@clisp.org>
5124
5125         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
5126         (select): Add a link warning when the 'select' module is not used.
5127         * modules/sys_select (Depends-on): Add link-warning.
5128         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
5129         Suggested by Paolo Bonzini.
5130
5131 2008-10-05  Jim Meyering  <meyering@redhat.com>
5132
5133         bootstrap: check for LT_INIT more portably
5134         * build-aux/bootstrap: Avoid using grep -E, since it's not
5135         portable enough.  Suggestion from Bruno Haible.
5136
5137 2008-10-05  Bruno Haible  <bruno@clisp.org>
5138
5139         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
5140         as being fixed by gnulib.
5141
5142 2008-10-05  Bruno Haible  <bruno@clisp.org>
5143
5144         * modules/select-tests: New file, mostly copied from
5145         modules/sys_select-tests.
5146         * tests/test-select.c: New file, mostly copied from
5147         tests/test-sys_select.c.
5148         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
5149         * modules/sys_select-tests (Depends-on): Remove all dependencies.
5150         (Makefile.am): Remove test_sys_select_LDADD.
5151
5152         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
5153         to an undefined symbol, for an error message.
5154         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
5155         (gl_SYS_SELECT_H_DEFAULTS): New macro.
5156         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
5157         winsock-select.c here.
5158         * modules/sys_select (Files): Remove lib/winsock-select.c.
5159         (Depends-on): Remove alloca.
5160         (Makefile.am): Substitute GNULIB_SELECT.
5161         * modules/select: New file.
5162         * doc/posix-functions/select.texi: Update.
5163
5164 2008-10-05  Bruno Haible  <bruno@clisp.org>
5165
5166         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
5167         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
5168         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
5169         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
5170         getdtablesize.
5171         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5172         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5173
5174 2008-10-05  Bruno Haible  <bruno@clisp.org>
5175
5176         * modules/getdtablesize-tests: New file.
5177         * tests/test-getdtablesize.c: New file.
5178
5179         New module 'getdtablesize'.
5180         * lib/unistd.in.h (getdtablesize): New declaration.
5181         * lib/getdtablesize.c: New file.
5182         * m4/getdtablesize.m4: New file.
5183         * modules/getdtablesize: New file.
5184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5185         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
5186         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
5187         HAVE_GETDTABLESIZE.
5188         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
5189
5190 2008-10-05  Bruno Haible  <bruno@clisp.org>
5191
5192         * modules/sched (Makefile.am): Fix typo.
5193         Reported by Simon Josefsson.
5194
5195 2008-10-05  Jim Meyering  <meyering@redhat.com>
5196
5197         bootstrap: check for LT_INIT, too
5198         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
5199         are deprecated.  Suggestion from Ralf Wildenhues.
5200
5201 2008-10-05  Bruno Haible  <bruno@clisp.org>
5202
5203         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
5204         overriding them by ours.
5205         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
5206
5207 2008-10-05  Jim Meyering  <meyering@redhat.com>
5208
5209         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
5210         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
5211         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
5212
5213 2008-10-04  Bruno Haible  <bruno@clisp.org>
5214
5215         * modules/dup2 (License): Change to LGPLv2+.
5216         * modules/sleep (License): Likewise.
5217         * modules/perror (License): Likewise.
5218         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
5219         Blake.
5220         * modules/signal (License): Likewise.
5221         * modules/sigprocmask (License): Likewise.
5222         * modules/raise (License): Change to LGPLv2+, with approval by Jim
5223         Meyering.
5224
5225 2008-10-04  Bruno Haible  <bruno@clisp.org>
5226
5227         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
5228         Reported by Rainer Tammer <tammer@tammer.net>.
5229
5230 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
5231             Bruno Haible  <bruno@clisp.org>
5232
5233         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
5234         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
5235         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
5236
5237 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
5238
5239         filevercmp: new module
5240         * lib/filevercmp.h: New function filevercmp comparing version strings.
5241         * lib/filevercmp.c: Implementation of filevercmp function.
5242         * modules/filevercmp: Module metadata.
5243         * tests/test-filevercmp.c: Unit test for new module.
5244         * modules/filevercmp-tests: Unit test metadata.
5245         * MODULES.html.sh: Add filevercmp module.
5246
5247 2008-10-03  Bruno Haible  <bruno@clisp.org>
5248
5249         * lib/c-ctype.h: Add comment.
5250         Reported by Jim Meyering.
5251
5252 2008-10-02  Bruno Haible  <bruno@clisp.org>
5253
5254         * modules/posix_spawn-internal (Depends-on): Add 'open'.
5255
5256 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
5257
5258         * build-aux/bootstrap: Allow renaming bootstrap, and change the
5259         name of bootstrap.conf accordingly.
5260
5261 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
5262
5263         * build-aux/bootstrap: Install git-merge-changelog configuration
5264         items into .gitconfig if needed.
5265
5266 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
5267
5268         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
5269         git repository, and initialize/update it accordingly.
5270
5271 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
5272
5273         * modules/fsync-tests: New file.
5274         * tests/test-fsync.c: New file.
5275
5276         New module 'fsync'.
5277         * lib/fsync.c: New file.
5278         * m4/fsync.m4: New file.
5279         * modules/fsync: New file.
5280         * lib/unistd.in.h (fsync): New declaration.
5281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
5282         GNULIB_FSYNC and HAVE_FSYNC.
5283         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
5284         * MODULES.html.sh (posix_functions): Add fsync.
5285         * doc/posix-functions/fsync.texi: Mention the new module.
5286
5287 2008-10-02  Jim Meyering  <meyering@redhat.com>
5288
5289         fts.c: sync with similar code from coreutils' remove.c
5290         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
5291         Guard also with "#if defined __linux__", since for now at least,
5292         this code is Linux-kernel-specific.
5293
5294 2008-10-02  Jim Meyering  <meyering@redhat.com>
5295
5296         fts: bug fixes
5297         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
5298         Include <sys/vfs.h>, not <sys/statfs.h>.
5299
5300         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
5301         Include <sys/vfs.h>, not <sys/statfs.h>.
5302
5303 2008-10-01  Bruno Haible  <bruno@clisp.org>
5304
5305         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
5306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
5307         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
5308         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
5309         * doc/posix-functions/posix_spawnp.texi: Likewise.
5310         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
5311         whether posix_spawn actually works.
5312         * m4/pipe.m4 (gl_PIPE): Likewise.
5313         * modules/execute (Files): Add m4/posix_spawn.m4.
5314         * modules/pipe (Files): Add m4/posix_spawn.m4.
5315         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
5316
5317 2008-10-01  Jim Meyering  <meyering@redhat.com>
5318
5319         remove trailing spaces
5320         * NEWS: Likewise.
5321         * lib/poll.c (poll): Likewise.
5322         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
5323         * lib/winsock.c (rpl_close): Likewise.
5324         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
5325         * modules/yield: Likewise.
5326         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
5327         * tests/test-sys_select.c (connect_to_socket): Likewise.
5328
5329         fts.c: adjust a new interface to be more generally useful
5330         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
5331         (fts_build): Adjust caller.
5332
5333 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5334
5335         * modules/cond-tests: New file.
5336         * tests/test-cond.c: New file.
5337
5338 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5339             Bruno Haible  <bruno@clisp.org>
5340
5341         * modules/cond (Dependencies): Add errno, time.
5342         * lib/glthread/cond.h: Include <time.h>.
5343         (gl_cond_define, gl_cond_define_initialized): Use the same definition
5344         across platforms.
5345
5346 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5347             Bruno Haible  <bruno@clisp.org>
5348
5349         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
5350
5351 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5352             Bruno Haible  <bruno@clisp.org>
5353
5354         * modules/tls-tests (Depends-on): Add thread, yield.
5355         (configure.ac): Remove all checks.
5356         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
5357         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
5358         gl_thread_self): Remove definitions. Include glthread/thread.h and
5359         glthread/yield.h instead.
5360         (test_tls): Pass an additional NULL argument to gl_thread_join.
5361
5362 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5363             Bruno Haible  <bruno@clisp.org>
5364
5365         * modules/lock-tests (Depends-on): Add thread, yield.
5366         (configure.ac): Remove all checks.
5367         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
5368         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
5369         gl_thread_self): Remove definitions. Include glthread/thread.h and
5370         glthread/yield.h instead.
5371         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
5372         additional NULL argument to gl_thread_join.
5373
5374 2008-09-30  Bruno Haible  <bruno@clisp.org>
5375
5376         Fix the Win32 implementation of the 'thread' module.
5377         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
5378         pointer type.
5379         (gl_thread_self): Invoke gl_thread_self_func.
5380         (gl_thread_self_func): New declaration.
5381         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
5382         (do_init_self_key, init_self_key): New functions.
5383         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
5384         Remove some fields.
5385         (running_threads, running_lock): Remove variables.
5386         (get_current_thread_handle): New function.
5387         (gl_thread_self_func, wrapper_func, glthread_create_func,
5388         glthread_join_func, gl_thread_exit_func): Largely rewritten and
5389         simplified.
5390
5391 2008-09-30  Bruno Haible  <bruno@clisp.org>
5392
5393         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
5394         files.
5395
5396 2008-09-30  Jim Meyering  <meyering@redhat.com>
5397
5398         fts.m4: correct the test for statfs.f_type
5399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
5400         when checking for statfs.f_type.
5401
5402 2008-09-15  Simon Josefsson  <simon@josefsson.org>
5403
5404         tests: avoid some compiler warnings
5405         * tests/test-memchr.c (main): Pass NULL indirectly.
5406         * tests/test-getdate.c (main): Remove unused variable 'ret'.
5407
5408 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
5409
5410         getdate.y: disallow countable dayshifts like "4 yesterday ago"
5411         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
5412         exactly specified dayshifts.
5413         (dayshift): New rule.
5414         (rel): Add dayshift.
5415         (relative_time_table) [tomorrow, yesterday, today, now]:
5416         Use tDAY_SHIFT in place of tDAY_UNIT.
5417         * tests/test-getdate.c: Add tests for now-disallowed countable
5418         dayshifts, e.g., "4 yesterday ago".
5419
5420 2008-09-29  Bruno Haible  <bruno@clisp.org>
5421
5422         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
5423         * tests/test-posix_spawn1.in.sh: Renamed from
5424         tests/test-posix_spawn.in.sh.
5425         * tests/test-posix_spawn2.c: New file.
5426         * tests/test-posix_spawn2.in.sh: New file.
5427         * modules/posix_spawnp-tests (Files): Update.
5428         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
5429
5430 2008-09-29  Bruno Haible  <bruno@clisp.org>
5431
5432         Propagate effects of putenv/setenv/unsetenv to child processes.
5433         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
5434         * lib/pipe.c (create_pipe): Likewise.
5435
5436 2008-09-29  Bruno Haible  <bruno@clisp.org>
5437
5438         Enable use of shell scripts as executables in mingw.
5439         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
5440         run the program as a shell script.
5441         * lib/pipe.c (create_pipe): Likewise.
5442         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
5443         resulting array.
5444
5445 2008-09-29  Eric Blake  <ebb9@byu.net>
5446
5447         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
5448
5449 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
5450
5451         * doc/posix-functions/accept.texi: Update mingw problems.
5452         * doc/posix-functions/bind.texi: Update mingw problems.
5453         * doc/posix-functions/close.texi: Update mingw problems.
5454         * doc/posix-functions/connect.texi: Update mingw problems.
5455         * doc/posix-functions/getpeername.texi: Update mingw problems.
5456         * doc/posix-functions/getsockname.texi: Update mingw problems.
5457         * doc/posix-functions/getsockopt.texi: Update mingw problems.
5458         * doc/posix-functions/ioctl.texi: Update mingw problems.
5459         * doc/posix-functions/listen.texi: Update mingw problems.
5460         * doc/posix-functions/recv.texi: Update mingw problems.
5461         * doc/posix-functions/recvfrom.texi: Update mingw problems.
5462         * doc/posix-functions/select.texi: Update mingw problems.
5463         * doc/posix-functions/send.texi: Update mingw problems.
5464         * doc/posix-functions/sendto.texi: Update mingw problems.
5465         * doc/posix-functions/setsockopt.texi: Update mingw problems.
5466         * doc/posix-functions/socket.texi: Update mingw problems.
5467
5468 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
5469             Bruno Haible  <bruno@clisp.org>
5470
5471         * lib/sys_select.in.h: Include sys/time.h.
5472         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
5473         * modules/sys_select: Depend on sys_time.
5474         * tests/test-sys_select.c: Test that sys/select.h defines struct
5475         timeval fully.
5476
5477 2008-09-29  Bruno Haible  <bruno@clisp.org>
5478
5479         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
5480         * lib/sys_select.in.h: Likewise.
5481
5482 2008-09-29  Bruno Haible  <bruno@clisp.org>
5483
5484         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
5485
5486 2008-09-29  Bruno Haible  <bruno@clisp.org>
5487
5488         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
5489         Set LIBSOCKET instead of augmenting LIBS.
5490         * modules/sockets (Link): New section.
5491         * modules/sockets-tests (test_sockets_LDADD): New variable.
5492         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
5493         * modules/poll-tests (test_poll_LDADD): New variable.
5494         * NEWS: Document the change.
5495
5496 2008-09-29  Bruno Haible  <bruno@clisp.org>
5497
5498         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
5499         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
5500         ARPA_INET_H directly.
5501         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5502
5503 2008-09-28  Bruno Haible  <bruno@clisp.org>
5504
5505         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
5506         from gl_HEADER_SYS_SOCKET.
5507         (gl_HEADER_SYS_SOCKET): Invoke it.
5508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5509
5510 2008-09-28  Bruno Haible  <bruno@clisp.org>
5511
5512         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
5513         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
5514         Needed on OSF/1 4.0.
5515
5516 2008-09-28  Bruno Haible  <bruno@clisp.org>
5517
5518         Override open more carefully.
5519         * lib/open.c (orig_open): New function.
5520         (rpl_open): Use orig_open instead of open.
5521         * lib/fcntl.in.h: Add special invocation convention.
5522         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
5523         (gl_FUNC_OPEN): Invoke it.
5524
5525         Override freopen more carefully.
5526         * lib/freopen.c (orig_freopen): New function.
5527         (rpl_freopen): Use orig_freopen instead of freopen.
5528         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
5529         (gl_FUNC_FREOPEN): Invoke it.
5530
5531         Override fopen more carefully.
5532         * lib/fopen.c (orig_fopen): New function.
5533         (rpl_fopen): Use orig_fopen instead of fopen.
5534         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
5535         (gl_FUNC_FOPEN): Invoke it.
5536         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
5537
5538 2008-09-28  Bruno Haible  <bruno@clisp.org>
5539
5540         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
5541         SIGPIPE.
5542
5543 2008-09-28  Bruno Haible  <bruno@clisp.org>
5544
5545         * tests/test-sigaction.c (handler, main): Disable the check whether
5546         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
5547         glibc systems with LinuxThreads.
5548
5549 2008-09-28  Bruno Haible  <bruno@clisp.org>
5550
5551         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
5552
5553         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
5554         with AIX xlc.
5555         * lib/fcntl.in.h (open): Likewise.
5556         Reported by Rainer Tammer <tammer@tammer.net>.
5557
5558 2008-09-28  Bruno Haible  <bruno@clisp.org>
5559
5560         * modules/posix_spawnp-tests: New file.
5561         * tests/test-posix_spawn.c: New file.
5562         * tests/test-posix_spawn.in.sh: New file.
5563
5564         New module 'posix_spawnp'.
5565         * modules/posix_spawnp: New file.
5566         * lib/spawnp.c: New file, from GNU libc with modifications.
5567         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
5568
5569         New module 'posix_spawn'.
5570         * modules/posix_spawn: New file.
5571         * lib/spawn.c: New file, from GNU libc with modifications.
5572         * doc/posix-functions/posix_spawn.texi: Mention the new module.
5573
5574         New module 'posix_spawnattr_destroy'.
5575         * modules/posix_spawnattr_destroy: New file.
5576         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
5577         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
5578         module.
5579
5580         New module 'posix_spawnattr_setsigmask'.
5581         * modules/posix_spawnattr_setsigmask: New file.
5582         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
5583         modifications.
5584         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
5585         new module.
5586
5587         New module 'posix_spawnattr_getsigmask'.
5588         * modules/posix_spawnattr_getsigmask: New file.
5589         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
5590         modifications.
5591         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
5592         new module.
5593
5594         New module 'posix_spawnattr_setsigdefault'.
5595         * modules/posix_spawnattr_setsigdefault: New file.
5596         * lib/spawnattr_setdefault.c: New file, from GNU libc with
5597         modifications.
5598         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
5599         new module.
5600
5601         New module 'posix_spawnattr_getsigdefault'.
5602         * modules/posix_spawnattr_getsigdefault: New file.
5603         * lib/spawnattr_getdefault.c: New file, from GNU libc with
5604         modifications.
5605         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
5606         new module.
5607
5608         New module 'posix_spawnattr_setschedpolicy'.
5609         * modules/posix_spawnattr_setschedpolicy: New file.
5610         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
5611         modifications.
5612         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
5613         new module.
5614
5615         New module 'posix_spawnattr_getschedpolicy'.
5616         * modules/posix_spawnattr_getschedpolicy: New file.
5617         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
5618         modifications.
5619         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
5620         new module.
5621
5622         New module 'posix_spawnattr_setschedparam'.
5623         * modules/posix_spawnattr_setschedparam: New file.
5624         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
5625         modifications.
5626         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
5627         new module.
5628
5629         New module 'posix_spawnattr_getschedparam'.
5630         * modules/posix_spawnattr_getschedparam: New file.
5631         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
5632         modifications.
5633         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
5634         new module.
5635
5636         New module 'posix_spawnattr_setpgroup'.
5637         * modules/posix_spawnattr_setpgroup: New file.
5638         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
5639         modifications.
5640         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
5641         module.
5642
5643         New module 'posix_spawnattr_getpgroup'.
5644         * modules/posix_spawnattr_getpgroup: New file.
5645         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
5646         modifications.
5647         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
5648         module.
5649
5650         New module 'posix_spawnattr_setflags'.
5651         * modules/posix_spawnattr_setflags: New file.
5652         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
5653         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
5654         module.
5655
5656         New module 'posix_spawnattr_getflags'.
5657         * modules/posix_spawnattr_getflags: New file.
5658         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
5659         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
5660         module.
5661
5662         New module 'posix_spawnattr_init'.
5663         * modules/posix_spawnattr_init: New file.
5664         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
5665         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
5666         module.
5667
5668         New module 'posix_spawn_file_actions_destroy'.
5669         * modules/posix_spawn_file_actions_destroy: New file.
5670         * lib/spawn_faction_destroy.c: New file, from GNU libc with
5671         modifications.
5672         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
5673         the new module.
5674
5675         New module 'posix_spawn_file_actions_addopen'.
5676         * modules/posix_spawn_file_actions_addopen: New file.
5677         * lib/spawn_faction_addopen.c: New file, from GNU libc with
5678         modifications.
5679         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5680         the new module.
5681
5682         New module 'posix_spawn_file_actions_adddup2'.
5683         * modules/posix_spawn_file_actions_adddup2: New file.
5684         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
5685         modifications.
5686         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5687         the new module.
5688
5689         New module 'posix_spawn_file_actions_addclose'.
5690         * modules/posix_spawn_file_actions_addclose: New file.
5691         * lib/spawn_faction_addclose.c: New file, from GNU libc with
5692         modifications.
5693         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5694         the new module.
5695
5696         New module 'posix_spawn_file_actions_init'.
5697         * modules/posix_spawn_file_actions_init: New file.
5698         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
5699         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
5700         new module.
5701
5702         New module 'posix_spawn-internal'.
5703         * modules/posix_spawn-internal: New file.
5704         * lib/spawn_int.h: New file, from GNU libc with modifications.
5705         * lib/spawni.c: New file, from GNU libc with modifications.
5706         * m4/posix_spawn.m4: New file.
5707
5708         New module 'spawn'.
5709         * modules/spawn: New file.
5710         * lib/spawn.in.h: New file, from GNU libc with modifications.
5711         * m4/spawn_h.m4: New file.
5712         * doc/posix-headers/spawn.texi: Mention the new module.
5713
5714 2008-09-28  Bruno Haible  <bruno@clisp.org>
5715
5716         * modules/sched-tests: New file.
5717         * tests/test-sched.c: New file.
5718
5719         New module 'sched'.
5720         * modules/sched: New file.
5721         * lib/sched.in.h: New file.
5722         * m4/sched_h.m4: New file.
5723         * doc/posix-headers/sched.texi: Mention the new module.
5724
5725 2008-09-27  Eric Blake  <ebb9@byu.net>
5726
5727         Fix previous patch, and tweak references to $0.
5728         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
5729         (func_version, func_gnulib_dir): Don't call this program
5730         gnulib-tool.
5731         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
5732         with using $0 in function.
5733         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
5734         (func_fatal_error): Reuse the name the user invoked us with.
5735
5736 2008-09-27  Bruno Haible  <bruno@clisp.org>
5737
5738         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
5739         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
5740         (gl_ICONV_H): Not here.
5741         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5742         instead of assigning ICONV_H directly.
5743
5744         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
5745         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
5746         WCHAR_H directly.
5747
5748 2008-09-27  Bruno Haible  <bruno@clisp.org>
5749
5750         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
5751         * modules/arpa_inet (Depends-on): Add link-warning.
5752         (Makefile.am): Insert the definition of GL_LINK-WARNING.
5753         * modules/unistd (Makefile.am): Likewise.
5754
5755 2008-09-26  Bruno Haible  <bruno@clisp.org>
5756
5757         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
5758         variables.
5759         (func_version): Essentially copied from gnulib-tool.
5760         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
5761         func_readlink): Copied from gnulib-tool.
5762
5763 2008-09-26  Bruno Haible  <bruno@clisp.org>
5764
5765         * gnulib-tool (func_version): Change directory to $gnulib_dir before
5766         invoking git-version-gen.
5767
5768 2008-09-26  Bruno Haible  <bruno@clisp.org>
5769
5770         * posix-modules: Update to directory names changed on 2008-01-19.
5771         Remove commas in output before splitting into words. No more need to
5772         avoid 'ftruncate' since 2007-02-19.
5773
5774 2008-09-26  Bruno Haible  <bruno@clisp.org>
5775
5776         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
5777
5778 2008-09-26  Bruno Haible  <bruno@clisp.org>
5779
5780         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
5781         * modules/fwriteerror (Depends-on): Add errno.
5782
5783 2008-09-26  Bruno Haible  <bruno@clisp.org>
5784
5785         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
5786         * tests/test-vc-list-files-cvs.sh: Likewise.
5787
5788 2008-09-26  Bruno Haible  <bruno@clisp.org>
5789
5790         * doc/posix-headers/sys_resource.texi: Reorder items.
5791
5792 2008-09-26  Jim Meyering  <meyering@redhat.com>
5793
5794         fts: tweak inode comparison function
5795         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
5796         inode numbers, as documented.
5797
5798         fts: sort dirent entries on inode number before traversing
5799         This avoids a quadratic, seek-related performance penalty when
5800         operating on a directory containing many entries (measurable at 10k;
5801         3.5 hours at 2 million entries with a cold cache) on certain types
5802         of file systems, including ext3 and ext4, but not tmpfs.
5803         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
5804         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
5805         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
5806         (fs_handles_readdir_ordered_dirents_efficiently): New function.
5807         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
5808         (fts_build): Set the stat.st_ino member from D_INO.
5809         If it is likely to be useful, sort dirent entries on inode number.
5810
5811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
5812         and the struct statfs.f_type member.
5813         * modules/fts (Depends-on): Add d-ino.
5814
5815 2008-09-26  Bruno Haible  <bruno@clisp.org>
5816
5817         * modules/sigpipe-die (Depends-on): Add sigpipe.
5818
5819         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
5820         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
5821         and GNULIB_STDIO_H_SIGPIPE are set.
5822         * lib/stdio-write.c: New file.
5823         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
5824         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
5825         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
5826         REPLACE_STDIO_WRITE_FUNCS.
5827         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
5828         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
5829         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
5830         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
5831         * modules/stdio (Files): Add lib/stdio-write.c.
5832         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
5833         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
5834         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
5835         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
5836         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
5837         REPLACE_FPRINTF_POSIX.
5838         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
5839         REPLACE_PRINTF_POSIX.
5840         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
5841         REPLACE_VFPRINTF_POSIX.
5842         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
5843         REPLACE_VPRINTF_POSIX.
5844         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
5845         SIGPIPE issue.
5846         * doc/posix-functions/fputc.texi: Likewise.
5847         * doc/posix-functions/fputs.texi: Likewise.
5848         * doc/posix-functions/fwrite.texi: Likewise.
5849         * doc/posix-functions/printf.texi: Likewise.
5850         * doc/posix-functions/putc.texi: Likewise.
5851         * doc/posix-functions/putchar.texi: Likewise.
5852         * doc/posix-functions/puts.texi: Likewise.
5853         * doc/posix-functions/vfprintf.texi: Likewise.
5854         * doc/posix-functions/vprintf.texi: Likewise.
5855
5856         * modules/safe-write (Depends-on): Add write.
5857
5858         * modules/sigpipe-tests: New file.
5859         * tests/test-sigpipe.c: New file.
5860         * tests/test-sigpipe.sh: New file.
5861
5862         * modules/write: New file.
5863         * lib/unistd.in.h: Include <sys/types.h>.
5864         (write): New declaration.
5865         * lib/write.c: New file.
5866         * m4/write.m4: New file.
5867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5868         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
5869         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
5870         GNULIB_WRITE, REPLACE_WRITE.
5871         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
5872         and the SIGPIPE issue.
5873
5874         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
5875         (raise): New declaration.
5876         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
5877         (ext_signal): New function.
5878         (rpl_raise): New function.
5879         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5880         GNULIB_SIGNAL_H_SIGPIPE.
5881         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
5882         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
5883
5884         * modules/sigpipe: New file.
5885         * m4/sigpipe.m4: New file.
5886
5887 2008-09-25  Derek Price  <derek@ximbiot.com>
5888             Bruno Haible  <bruno@clisp.org>
5889
5890         * gnulib-tool (func_import): Report all license incompatibilities, not
5891         just the first one.
5892
5893 2008-09-25  Bruno Haible  <bruno@clisp.org>
5894
5895         * gnulib-tool (func_import): When computing the edits, consider not
5896         only the Makefile.ams that exist but also those that will be generated.
5897
5898 2008-09-25  Simon Josefsson  <simon@josefsson.org>
5899
5900         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
5901         fixes gnulib-tool --test warning about duplicate dependency.
5902
5903 2008-09-25  Bruno Haible  <bruno@clisp.org>
5904
5905         * gnulib-tool: Don't ask the user to perform edits in the generated
5906         Makefile.ams.
5907         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
5908         apply to the Makefile.am being generated.
5909         (func_emit_tests_Makefile_am): Execute edits that apply to the
5910         Makefile.am being generated.
5911         (func_import): Setup list of Makefile.am edits before emitting the
5912         Makefile.ams, not at the end.
5913         (func_create_testdir): Update.
5914         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5915
5916 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5917
5918         * gnulib-tool (func_import): Store the --tests-base option in the
5919         comment in gnulib-cache.m4.
5920
5921 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
5922
5923         * NEWS: Document increased portability that sys_select now provides.
5924
5925         * lib/sys_select.in.h: Install select wrapper.
5926         * lib/sys_socket.in.h: Use more descriptive name when there is no
5927         select wrapper.
5928         * lib/winsock-select.c: New.
5929         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
5930         Require gl_HEADER_SYS_SOCKET.
5931         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
5932         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
5933         * tests/test-sys_select.c: Add functional tests.
5934
5935 2008-09-24  Eric Blake  <ebb9@byu.net>
5936
5937         open, fopen: close fd leak in last patch
5938         * lib/open.c (rpl_open): Close fd before returning error.
5939         * lib/fopen.c (rpl_fopen): Close fd before returning error.
5940         * doc/posix-functions/open.texi (open): Document that Irix also
5941         has the bug.
5942         * doc/posix-functions/fopen.texi (fopen): Likewise.
5943         Reported by Paolo Bonzini.
5944
5945 2008-09-24  Bruno Haible  <bruno@clisp.org>
5946
5947         Ensure that a filename ending in a slash cannot be used to access a
5948         non-directory.
5949         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
5950         to check whether it's really a directory.
5951         * lib/fopen.c: Include fcntl.h, unistd.h.
5952         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
5953         and fdopen().
5954         * modules/fopen (Depends-on): Add unistd.
5955         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
5956         * tests/test-fopen.c (main): Likewise.
5957         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
5958         * doc/posix-functions/fopen.texi: Likewise.
5959         Reported by Eric Blake.
5960
5961 2008-09-23  Eric Blake  <ebb9@byu.net>
5962
5963         c-stack: avoid compiler optimizations when provoking overflow
5964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
5965         recursion harder to optimize, to ensure a stack overflow occurs.
5966         * tests/test-c-stack.c (recurse): Likewise.
5967         Borrowed from libsigsegv.
5968
5969         c-stack: work around Irix sigaltstack bug
5970         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
5971         whether sigaltstack uses wrong end of stack_t (copied in part from
5972         libsigsegv).
5973         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
5974         Irix bug, without requiring an over-allocation.
5975         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
5976         bug.
5977
5978         fopen: document mingw bug on directories
5979         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
5980         not allowing a stream visiting a directory, even though reading
5981         from such a stream is not portable.
5982
5983 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
5984
5985         * lib/poll.c: Rewrite.
5986         * modules/poll: Depend on alloca.
5987
5988 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
5989
5990         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
5991         instead define prototypes for a full set of wrappers.  Ensure
5992         that Cygwin does not use the compatibility code, which is only
5993         for MinGW.
5994         * lib/winsock.c: New.
5995         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
5996         * modules/sys_socket: Add lib/winsock.c.
5997
5998         * modules/poll-tests: Add errno and perror.
5999         * tests/test-poll.c: Use ioctl, not ioctlsocket.
6000
6001 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
6002
6003         * tests/test-poll.c: Downgrade minimum needed Winsock version.
6004
6005 2008-09-23  Bruno Haible  <bruno@clisp.org>
6006
6007         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
6008         * doc/glibc-functions/*: Likewise.
6009
6010 2008-09-23  Simon Josefsson  <simon@josefsson.org>
6011
6012         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
6013         success.
6014
6015 2008-09-22  Eric Blake  <ebb9@byu.net>
6016             Bruno Haible  <bruno@clisp.org>
6017
6018         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
6019         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
6020         supply %A but mishandle pseudo-NaN.
6021         Reported by Simon Josefsson.
6022
6023 2008-09-21  Bruno Haible  <bruno@clisp.org>
6024
6025         * tests/test-lock.c (main): Tweak skip message.
6026         * tests/test-tls.c (main): Likewise.
6027
6028 2008-09-21  Bruno Haible  <bruno@clisp.org>
6029
6030         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
6031         whether 'struct sigaction' has sa_sigaction here...
6032         (gl_PREREQ_SIG_HANDLER_H): ... not here.
6033         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
6034
6035 2008-09-21  Bruno Haible  <bruno@clisp.org>
6036
6037         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
6038         section.
6039         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
6040         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
6041         the new section.
6042         (Support for obsolete systems lacking POSIX:2001): New section.
6043         (String handling <string.h>): Move strdup to the new section.
6044         Suggested by Simon Josefsson and Paolo Bonzini.
6045
6046 2008-09-21  Bruno Haible  <bruno@clisp.org>
6047
6048         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
6049         exponents in %e and %g results on 'long double'. Needed for mingw's
6050         improved *printf functions.
6051         * tests/test-vasprintf-posix.c (test_function): Likewise.
6052         * tests/test-snprintf-posix.h (test_function): Likewise.
6053         * tests/test-sprintf-posix.h (test_function): Likewise.
6054         Reported by Eric Blake.
6055
6056 2008-09-21  Bruno Haible  <bruno@clisp.org>
6057
6058         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
6059         * tests/test-sprintf-posix.h (test_function): Likewise.
6060
6061 2008-09-21  Bruno Haible  <bruno@clisp.org>
6062
6063         * modules/getpass (Depends-on): Add strdup-posix.
6064
6065         New module 'strdup-posix'.
6066         * modules/strdup-posix: New file.
6067         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
6068         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
6069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6070         REPLACE_STRDUP.
6071         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
6072         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
6073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6074         strdup-posix.
6075
6076         * modules/strdup (Depends-on): Remove malloc-posix.
6077
6078 2008-09-20  Bruno Haible  <bruno@clisp.org>
6079
6080         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
6081         Wildenhues.
6082
6083 2008-09-20  Bruno Haible  <bruno@clisp.org>
6084
6085         Ensure that wint_t gets defined on IRIX 5.3.
6086         * lib/wchar.in.h (wint_t): Define if not defined by the system.
6087         * lib/wctype.in.h (wint_t): Likewise.
6088         (__wctype_wint_t): Remove type.
6089         (isw*): Use wint_t instead of __wctype_wint_t.
6090         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
6091         * modules/wchar (Files): Add m4/wint_t.m4.
6092         (Makefile.am): Substitute HAVE_WINT_T.
6093         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
6094         * tests/test-wctype.c: Check that wint_t is defined.
6095         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
6096         * doc/posix-headers/wctype.texi: Likewise.
6097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6098
6099 2008-09-18  Bruno Haible  <bruno@clisp.org>
6100
6101         * gnulib-tool (func_exit): Update comment.
6102
6103 2008-09-18  Simon Josefsson  <simon@josefsson.org>
6104
6105         * modules/getaddrinfo (Depends-on): Remove strdup, this module
6106         assumes strdup exists and does not depend on strdup to return
6107         ENOMEM on out of memory conditions.
6108
6109 2008-09-18  Bruno Haible  <bruno@clisp.org>
6110
6111         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
6112         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
6113         digits for the exponent.
6114
6115 2008-09-18  Jim Meyering  <meyering@redhat.com>
6116             Bruno Haible  <bruno@clisp.org>
6117
6118         * lib/vasnprintf.c (decimal_point_char): Define also if
6119         NEED_PRINTF_INFINITE_LONG_DOUBLE.
6120
6121 2008-09-16  Bruno Haible  <bruno@clisp.org>
6122         and Eric Blake  <ebb9@byu.net>
6123
6124         vasnprintf: support Irix 5.3
6125         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
6126         that mishandle long double infinity.
6127         Reported by Tom G. Christensen.
6128
6129 2008-09-16  Bruno Haible  <bruno@clisp.org>
6130
6131         * doc/glibc-functions/scandir.texi: Mention the function is missing on
6132         Solaris 9.
6133         * doc/glibc-functions/alphasort.texi: Likewise.
6134         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
6135
6136 2008-09-16  Jim Meyering  <meyering@redhat.com>
6137
6138         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
6139         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
6140         a umask modification leak out of a subshell.  Otherwise, the
6141         opensolaris /bin/sh would be accepted and thus cause unwarranted
6142         failures in the coreutils test suite.
6143
6144 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
6145
6146         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
6147         to succeed.
6148
6149 2008-09-16  Jim Meyering  <meyering@redhat.com>
6150
6151         avoid spurious test failure when library is built without ACL support
6152         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
6153         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
6154         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
6155         * tests/test-copy-acl.sh: Likewise.
6156
6157 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6158
6159         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
6160         based on character occurrence counts.
6161
6162 2008-09-15  Eric Blake  <ebb9@byu.net>
6163
6164         tests: avoid some compiler warnings
6165         * tests/test-memchr.c (main): Pass NULL indirectly.
6166         * tests/test-closein.c (main): Avoid unused variable.
6167
6168 2008-09-15  Bruno Haible  <bruno@clisp.org>
6169
6170         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
6171         are missing on OpenBSD 4.0 individually.
6172         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6173
6174 2008-09-15  Bruno Haible  <bruno@clisp.org>
6175
6176         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
6177         * doc/posix-functions/strerror.texi: Mention also Cygwin.
6178         * doc/posix-functions/perror.texi: Likewise.
6179         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
6180         is missing.
6181         Reported by Eric Blake.
6182
6183         * lib/errno.in.h: Use replacement values >= 2000.
6184         Reported by Eric Blake.
6185
6186 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6187
6188         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
6189         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
6190         limit.
6191         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
6192         compareseq was aborted.
6193
6194 2008-09-14  Bruno Haible  <bruno@clisp.org>
6195
6196         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
6197         yvec_edit_count.
6198         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
6199         (fstrcmp_bounded): Simplify result computation accordingly.
6200
6201 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6202
6203         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
6204         (fstrcmp): Define in terms of fstrcmp_bounded.
6205         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
6206         lower_bound argument.
6207         Return quickly if the result is certainly < lower_bound.
6208         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
6209
6210 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6211
6212         * lib/diffseq.h (EARLY_ABORT): New macro.
6213         (compareseq): Change return type to bool. Return true when EARLY_ABORT
6214         evaluates to true.
6215
6216 2008-09-14  Bruno Haible  <bruno@clisp.org>
6217
6218         * modules/perror-tests: New file.
6219         * tests/test-perror.sh: New file.
6220         * tests/test-perror.c: New file.
6221
6222         New module 'perror'.
6223         * lib/stdio.in.h (perror): New declaration.
6224         * lib/perror.c: New file.
6225         * m4/perror.m4: New file.
6226         * modules/perror: New file.
6227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
6228         * doc/posix-functions/perror.texi: Mention the perror module.
6229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
6230         REPLACE_PERROR.
6231         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
6232         REPLACE_PERROR.
6233
6234 2008-09-14  Bruno Haible  <bruno@clisp.org>
6235
6236         * modules/stdio (Makefile.am): Reorder to match the order in
6237         lib/stdio.in.h.
6238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6239
6240 2008-09-13  Bruno Haible  <bruno@clisp.org>
6241
6242         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
6243
6244 2008-09-13  Bruno Haible  <bruno@clisp.org>
6245
6246         Extend strerror to cover the added errno values.
6247         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
6248         (rpl_strerror): Provide error messages for the added errno values and
6249         for the WSA* values.
6250         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
6251         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
6252         strerror.
6253         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
6254         * modules/strerror (Depends-on): Add errno.
6255         * doc/posix-functions/strerror.texi: Document the change.
6256         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
6257         and EOVERFLOW.
6258
6259 2008-09-13  Bruno Haible  <bruno@clisp.org>
6260
6261         * modules/EOVERFLOW: Remove file.
6262         * m4/eoverflow.m4: Remove file.
6263         * modules/EOVERFLOW-tests: Remove file.
6264         * tests/test-EOVERFLOW.c: Remove file.
6265         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
6266         * modules/ftell (Depends-on): Likewise.
6267         * modules/getdelim (Depends-on): Likewise.
6268         * modules/getugroups (Depends-on): Likewise.
6269         * modules/poll (Depends-on): Likewise.
6270         * modules/snprintf (Depends-on): Likewise.
6271         * modules/sprintf-posix (Depends-on): Likewise.
6272         * modules/vasnprintf (Depends-on): Likewise.
6273         * modules/vasprintf (Depends-on): Likewise.
6274         * modules/vfprintf-posix (Depends-on): Likewise.
6275         * modules/vsnprintf (Depends-on): Likewise.
6276         * modules/vsprintf-posix (Depends-on): Likewise.
6277         * modules/xvasprintf (Depends-on): Likewise.
6278         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6279         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
6280         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
6281         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
6282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6283         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
6284         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
6285         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
6286         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6287         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
6288         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
6289         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
6290         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6291         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
6292         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
6293         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
6294         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6295         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
6296         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
6297         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
6298         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6299         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
6300         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
6301         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
6302         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
6303         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6304         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
6305         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
6306         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
6307         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
6308         * MODULES.html.sh: Remove EOVERFLOW.
6309         * NEWS: Mention the change.
6310
6311 2008-09-13  Bruno Haible  <bruno@clisp.org>
6312
6313         * modules/errno-tests: New file.
6314         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
6315
6316         * lib/errno.in.h: New file.
6317         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
6318         * modules/errno: New file.
6319         * doc/posix-headers/errno.texi: Update documentation.
6320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
6321
6322 2008-09-13  Bruno Haible  <bruno@clisp.org>
6323
6324         * tests/test-poll.c: Use #if for native Windows, rather than testing
6325         __MSVCRT__.
6326
6327 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6328             Bruno Haible  <bruno@clisp.org>
6329
6330         * lib/glob.c: Don't include <pwd.h> on native Windows.
6331         (WINDOWS32): New macro.
6332         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
6333
6334 2008-09-13  Bruno Haible  <bruno@clisp.org>
6335
6336         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
6337         (ETIMEDOUT): Remove macro.
6338         (glthread_cond_timedwait_multithreaded): New declaration.
6339         (glthread_cond_timedwait): Use it.
6340         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
6341         (glthread_cond_timedwait_multithreaded): New function.
6342
6343 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
6344
6345         * modules/poll-tests: Do not check for io.h.
6346         * tests/test-poll.c: Check for __MSVCRT__ instead.
6347
6348 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
6349
6350         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
6351         * modules/poll-tests: Add inet_pton, stdbool, sockets.
6352         * tests/test-poll.c: Use them.  Use _pipe on Windows.
6353
6354 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
6355
6356         * modules/poll-tests: New.
6357         * tests/test-poll.c: New.
6358
6359 2008-09-12  Eric Blake  <ebb9@byu.net>
6360
6361         frexp: test for NetBSD failure on -0.0
6362         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
6363         not all, bugs from NetBSD 3.0 have been fixed.
6364         * doc/posix-functions/frexp.texi (frexp): Document bug.
6365         Reported by Thomas Klausner.
6366
6367         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
6368         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
6369         literal -0.0.
6370         Reported by Jonathan C. Patschke <jp@centtech.com>.
6371
6372 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6373
6374         * lib/glthread/cond.h: Use dummy implementation also if
6375         USE_WIN32_THREADS.
6376
6377 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6378
6379         * modules/fnmatch-posix (License): Change to LGPLv2+.
6380         * modules/fnmatch-gnu (License): Likewise.
6381
6382 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6383
6384         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
6385
6386 2008-09-11  Jim Meyering  <meyering@redhat.com>
6387
6388         * users.txt: Add gtk-vnc.
6389
6390 2008-09-08  Simon Josefsson  <simon@josefsson.org>
6391
6392         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
6393         rotate amounts.
6394
6395         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
6396         required for 16-bit and 8-bit rotates.
6397         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
6398         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
6399         UINT8_MAX instead of hard-coded constants.
6400         Suggested by Paul Eggert.
6401
6402 2008-09-07  Bruno Haible  <bruno@clisp.org>
6403
6404         * tests/test-striconveh.c (main): Check behaviour when converting from
6405         UTF-7.
6406
6407         Make striconveh work better with stateful encodings.
6408         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
6409         that iconv does not increment the inptr when returning -1/EINVAL.
6410
6411 2008-09-07  Bruno Haible  <bruno@clisp.org>
6412
6413         * build-aux/config.rpath: Update according to libtool-2.2.6.
6414         * build-aux/config.libpath: Likewise.
6415
6416 2008-09-06  Bruno Haible  <bruno@clisp.org>
6417
6418         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
6419         * lib/freadptr.c (freadptr): Likewise.
6420         * lib/freadseek.c (freadptrinc): Likewise.
6421         Reported by Simon Josefsson.
6422
6423 2008-09-06  Bruno Haible  <bruno@clisp.org>
6424
6425         * modules/freadptr (License): Change to LGPLv2+.
6426         * modules/freadseek (License): Likewise.
6427         Suggested by Eric Blake.
6428
6429         * modules/memchr2 (License): Change to LGPLv2+.
6430         Approved by Eric Blake.
6431
6432 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6433             Bruno Haible  <bruno@clisp.org>
6434
6435         Make gnulib-tool work with native 'sed' on AIX.
6436         * gnulib-tool (sed_noop): New variable.
6437         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
6438         func_add_or_update, func_create_testdir): Use it to initialize sed
6439         script variables.
6440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6441
6442 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
6443             Bruno Haible  <bruno@clisp.org>
6444
6445         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
6446         also works after #include directives.
6447
6448 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
6449
6450         getdate.y: reject an out-of-range timezone value
6451         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
6452         the range [-24...+24].  When specified with only one or two digits,
6453         * tests/test-getdate.c: Tests for the fix.
6454         * doc/getdate.texi: Document this change.
6455
6456 2008-09-03  Bruno Haible  <bruno@clisp.org>
6457
6458         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
6459
6460 2008-09-02  Simon Josefsson  <simon@josefsson.org>
6461
6462         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
6463         <bruce.korb@gmail.com> with ideas from Ben Pfaff
6464         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
6465         Blake <ebb9@byu.net>.
6466
6467         * tests/test-bitrotate.c: Add more test vectors.
6468
6469 2008-09-02  Eric Blake  <ebb9@byu.net>
6470
6471         vasnprintf-posix: handle large precision via %.*d
6472         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
6473         when handling it ourselves.
6474         * tests/test-vasnprintf-posix.c (test_function): Add test.
6475         * tests/test-snprintf-posix.h (test_function): Likewise.
6476         * tests/test-sprintf-posix.h (test_function): Likewise.
6477         * tests/test-vasprintf-posix.c (test_function): Likewise.
6478         Reported by Alain Guibert.
6479
6480 2008-09-01  Eric Blake  <ebb9@byu.net>
6481
6482         c-stack: make configure-time check more robust
6483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
6484         successful sigaction call.
6485         Reported by Tom G. Christensen.
6486
6487 2008-09-01  Bruno Haible  <bruno@clisp.org>
6488
6489         New module 'findprog-lgpl'.
6490         * modules/findprog-lgpl: New file.
6491         * lib/findprog-lgpl.c: New file.
6492         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
6493         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
6494         to decide whether to use strdup or xstrdup, concatenated_filename or
6495         xconcatenated_filename.
6496
6497 2008-09-01  Bruno Haible  <bruno@clisp.org>
6498
6499         Split module 'concat-filename' into 'concat-filename' (LGPL) and
6500         'xconcat-filename' (GPL).
6501         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
6502         (License): Change to LGPLv2+.
6503         * modules/xconcat-filename: New file.
6504         * lib/concat-filename.h (concatenated_filename): Change specification.
6505         (xconcatenated_filename): New declaration.
6506         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
6507         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
6508         memory situations.
6509         * lib/xconcat-filename.c: New file.
6510         * NEWS: Mention the change.
6511         * lib/findprog.c: Include concat-filename.h, not filename.h.
6512         (find_in_path): Use xconcatenated_filename instead of
6513         concatenated_filename.
6514         * lib/javacomp.c: Include concat-filename.h, not filename.h.
6515         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
6516         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
6517         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
6518         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
6519         instead of concatenated_filename.
6520         * lib/javaexec.c: Include concat-filename.h, not filename.h.
6521         (execute_java_class): Use xconcatenated_filename instead of
6522         concatenated_filename.
6523         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
6524         * modules/javacomp (Depends-on): Likewise.
6525         * modules/javaexec (Depends-on): Likewise.
6526
6527 2008-09-01  Bruno Haible  <bruno@clisp.org>
6528
6529         Split module 'filename' into 'filename' and 'concat-filename'.
6530         * modules/filename: Keep only lib/filename.h.
6531         (License): Change to LGPLv2+.
6532         * modules/concat-filename: New file, extracted from modules/filename.
6533         * lib/filename.h (concatenated_filename): Remove declaration.
6534         * lib/concat-filename.h: New file, extracted from lib/filename.h.
6535         * lib/concat-filename.c: Include concat-filename.h.
6536         * NEWS: Mention the change.
6537
6538 2008-09-01  Simon Josefsson  <simon@josefsson.org>
6539
6540         * lib/bitrotate.h (rotl8, rotr8): Add.
6541
6542         * modules/bitrotate (configure.ac): Need
6543         AC_REQUIRE([AC_C_INLINE]).
6544         (Description): Mention stdint.h.  Reported by Bruno Haible
6545         <bruno@clisp.org>.
6546
6547         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
6548         Paolo Bonzini <bonzini@gnu.org>.
6549
6550 2008-08-31  Bruno Haible  <bruno@clisp.org>
6551
6552         Assume Solaris specific bi-arch conventions on Solaris systems.
6553         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
6554         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
6555         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
6556         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
6557         like acl_libdirstem.
6558         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
6559         acl_libdirstem.
6560         * NEWS: Mention the change.
6561         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
6562
6563 2008-08-31  Jim Meyering  <meyering@redhat.com>
6564
6565         * lib/strftime.h: Add comments describing the two added arguments.
6566
6567         remove duplicate #include directives
6568         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
6569         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
6570
6571 2008-08-31  Bruno Haible  <bruno@clisp.org>
6572
6573         New module 'sigpipe-die'.
6574         * modules/sigpipe-die: New file.
6575         * lib/sigpipe-die.h: New file.
6576         * lib/sigpipe-die.c: New file.
6577         * MODULES.html.sh (Signal handling): Add sigpipe-die.
6578
6579 2008-08-31  Bruno Haible  <bruno@clisp.org>
6580
6581         Don't override previously installed signal handlers.
6582         * lib/fatal-signal.c (saved_sigactions): New variable.
6583         (uninstall_handlers): Reset the signal to the saved handler, not
6584         to SIG_DFL (except when ignored).
6585         (install_handlers): Save the previous handlers.
6586
6587 2008-08-30  Bruno Haible  <bruno@clisp.org>
6588
6589         * gnulib-tool (func_reset_sigpipe): New function.
6590         (func_get_automake_snippet, func_modules_transitive_closure,
6591         func_import): Invoke it before a join command that reads from stdin,
6592         to avoid "echo: write error: Broken pipe" error messages on stderr.
6593         Reported by Sam Steingold <sds@gnu.org>.
6594
6595 2008-08-30  Bruno Haible  <bruno@clisp.org>
6596
6597         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
6598         Code copied from m4/open.m4.
6599         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
6600         access and the filename ends in a slash. Code copied from lib/open.c.
6601         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
6602         * tests/test-fopen.c (main): Check against bug with trailing slash.
6603
6604 2008-08-29  Bruno Haible  <bruno@clisp.org>
6605
6606         Avoid some "gcc -pedantic" warnings.
6607         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
6608         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
6609         * lib/dirent.in.h: Likewise.
6610         * lib/fcntl.in.h: Likewise.
6611         * lib/float.in.h: Likewise.
6612         * lib/iconv.in.h: Likewise.
6613         * lib/inttypes.in.h: Likewise.
6614         * lib/locale.in.h: Likewise.
6615         * lib/math.in.h: Likewise.
6616         * lib/netinet_in.in.h: Likewise.
6617         * lib/search.in.h: Likewise.
6618         * lib/signal.in.h: Likewise.
6619         * lib/stdarg.in.h: Likewise.
6620         * lib/stdint.in.h: Likewise.
6621         * lib/stdio.in.h: Likewise.
6622         * lib/stdlib.in.h: Likewise.
6623         * lib/string.in.h: Likewise.
6624         * lib/strings.in.h: Likewise.
6625         * lib/sys_select.in.h: Likewise.
6626         * lib/sys_socket.in.h: Likewise.
6627         * lib/sys_stat.in.h: Likewise.
6628         * lib/sys_time.in.h: Likewise.
6629         * lib/sysexits.in.h: Likewise.
6630         * lib/time.in.h: Likewise.
6631         * lib/unistd.in.h: Likewise.
6632         * lib/wchar.in.h: Likewise.
6633         * lib/wctype.in.h: Likewise.
6634         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
6635         * modules/fchdir (Makefile.am): Likewise.
6636         * modules/fcntl (Makefile.am): Likewise.
6637         * modules/float (Makefile.am): Likewise.
6638         * modules/iconv_open (Makefile.am): Likewise.
6639         * modules/inttypes (Makefile.am): Likewise.
6640         * modules/locale (Makefile.am): Likewise.
6641         * modules/math (Makefile.am): Likewise.
6642         * modules/netinet_in (Makefile.am): Likewise.
6643         * modules/search (Makefile.am): Likewise.
6644         * modules/signal (Makefile.am): Likewise.
6645         * modules/stdarg (Makefile.am): Likewise.
6646         * modules/stdint (Makefile.am): Likewise.
6647         * modules/stdio (Makefile.am): Likewise.
6648         * modules/stdlib (Makefile.am): Likewise.
6649         * modules/string (Makefile.am): Likewise.
6650         * modules/strings (Makefile.am): Likewise.
6651         * modules/sys_select (Makefile.am): Likewise.
6652         * modules/sys_socket (Makefile.am): Likewise.
6653         * modules/sys_stat (Makefile.am): Likewise.
6654         * modules/sys_time (Makefile.am): Likewise.
6655         * modules/sysexits (Makefile.am): Likewise.
6656         * modules/time (Makefile.am): Likewise.
6657         * modules/unistd (Makefile.am): Likewise.
6658         * modules/wchar (Makefile.am): Likewise.
6659         * modules/wctype (Makefile.am): Likewise.
6660         Reported by Reuben Thomas <rrt@sc3d.org>.
6661
6662 2008-08-29  Bruno Haible  <bruno@clisp.org>
6663
6664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
6665         any more.
6666
6667 2008-08-29  Simon Josefsson  <simon@josefsson.org>
6668
6669         * MODULES.html.sh (Misc): Add bitrotate.
6670
6671         * modules/bitrotate: New file.
6672
6673         * lib/bitrotate.h: New file.
6674
6675         * modules/bitrotate-tests: New file.
6676
6677         * tests/test-bitrotate.c: New file.
6678
6679         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
6680         on the bitrotate module.
6681
6682         * lib/arctwo.c: Use new bitrotate module.
6683
6684 2008-08-29  Jim Meyering  <meyering@redhat.com>
6685
6686         bootstrap: merge changes from coreutils
6687         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
6688         of copied files.  Remove a kludge, now that this is fixed.
6689         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
6690         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
6691         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
6692
6693 2008-08-29  Bruno Haible  <bruno@clisp.org>
6694
6695         * MODULES.html.sh: Remove --cvs-urls option.
6696
6697 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
6698
6699         maint.mk: adjust to file name change
6700         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
6701
6702 2008-08-28  Jim Meyering  <meyering@redhat.com>
6703
6704         * modules/getndelim2 (License): Relicense to LGPLv2+.
6705         Approved by Richard Stallman for the version of 1995, and by
6706         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
6707
6708 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
6709
6710         * lib/getdelim.c (flockfile, funlockfile): Make all of them
6711         dummy if one is not available.  Do not touch them if
6712         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
6713         (getc_maybe_unlocked): New.
6714         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
6715
6716 2008-08-26  Eric Blake  <ebb9@byu.net>
6717
6718         doc/INSTALL: resync from autoconf
6719         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
6720         (INSTALL_PRELUDE): Delete; this is done more efficiently by
6721         moving...
6722         * install.texi [!autoconf]: ...here.  Resync from autoconf.
6723         * INSTALL: Regenerate.
6724         * INSTALL.ISO: New file.
6725         * INSTALL.UTF-8: Likewise.
6726
6727 2008-08-26  Jim Meyering  <meyering@redhat.com>
6728
6729         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
6730         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
6731         these definitions conditional, so that they may be overridden, too.
6732
6733 2008-08-26  Bruno Haible  <bruno@clisp.org>
6734
6735         Generate INSTALL file variants with prettier quotes.
6736         * doc/Makefile (INSTALL_PRELUDE): New macro.
6737         (INSTALL): Use it.
6738         (INSTALL.ISO, INSTALL.UTF-8): New rules.
6739
6740 2008-08-26  Bruno Haible  <bruno@clisp.org>
6741
6742         Run makeinfo in an English locale.
6743         * doc/Makefile (MAKEINFO): New variable.
6744
6745 2008-08-26  Bruno Haible  <bruno@clisp.org>
6746
6747         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
6748         Suggested by Eric Blake.
6749
6750 2008-08-25  Bruno Haible  <bruno@clisp.org>
6751
6752         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
6753
6754 2008-08-25  Eric Blake  <ebb9@byu.net>
6755
6756         c-stack: test that stack overflow can be caught
6757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
6758         that platform allows handling stack overflow; at least OS/2 EMX
6759         has sigaltstack, but crashes before transferring control to
6760         handler on stack overflow.
6761         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
6762         check for HAVE_STACK_OVERFLOW_HANDLING.
6763         Reported by Elbert Pol.
6764
6765 2008-08-25  Bruno Haible  <bruno@clisp.org>
6766
6767         * doc/posix-functions/strftime.texi: Fix description of strftime
6768         module.
6769
6770 2008-08-24  Bruno Haible  <bruno@clisp.org>
6771
6772         * tests/uniwidth/test-uc_width2.c: New file.
6773         * tests/uniwidth/test-uc_width2.sh: New file.
6774         * modules/uniwidth/width-tests (Files): Add the new files.
6775         (TESTS): Add uniwidth/test-uc_width2.sh.
6776         (TESTS_ENVIRONMENT): New variable.
6777         (check_PROGRAMS): Add test-uc_width2.
6778         (test_uc_width2_SOURCES): New variable.
6779
6780         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
6781         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
6782         not 0x00AB.
6783         Reported by Alexander V. Lukyanov <lav@netis.ru>.
6784
6785 2008-08-22  Eric Blake  <ebb9@byu.net>
6786
6787         test-lock, test-tls: mention why a test is skipped
6788         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
6789         skipped.
6790         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
6791
6792         count-one-bits: relax license
6793         * modules/count-one-bits (License): Relicense to LGPLv2+.
6794         Suggested by Ludovic Courtès, approved by Ben Pfaff.
6795
6796 2008-08-22  Andreas Schwab  <schwab@suse.de>
6797
6798         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
6799         Remove spurious space in assignment.
6800
6801 2008-08-21  Simon Josefsson  <simon@josefsson.org>
6802
6803         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
6804         Paul Eggert <eggert@CS.UCLA.EDU>.
6805
6806 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
6807
6808         * modules/gettext: Add m4/threadlib.m4.
6809
6810 2008-08-19  Eric Blake  <ebb9@byu.net>
6811
6812         test-c-stack: fix compilation failure on FreeBSD 5.0
6813         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
6814         headers before <sys/resource.h>.
6815         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
6816         the bug.
6817         Reported by Nelson H. F. Beebe.
6818
6819         strverscmp: migrate from "strverscmp.h" to <string.h>
6820         * modules/string (Makefile.am): Add new hooks.
6821         * modules/strverscmp (Files): Remove strverscmp.h.
6822         (Depends-on): Add string.
6823         (configure.ac): Add indicator.
6824         (Include): Mention new header.
6825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
6826         defaults.
6827         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
6828         results.
6829         * lib/strverscmp.h: Delete.
6830         * lib/string.in.h (strverscmp): Provide declaration, when needed.
6831         * tests/test-strverscmp.c (includes): Adjust client.
6832         * lib/check-version.c (includes): Likewise.
6833         * NEWS: Document the change.
6834
6835         strverscmp: add unit test
6836         * modules/strverscmp-tests: New file.
6837         * tests/test-strverscmp.c: Likewise.
6838
6839 2008-08-19  Simon Josefsson  <simon@josefsson.org>
6840
6841         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
6842         regarding Windows crypto stuff, from Mono.
6843
6844 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
6845
6846         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
6847         if present, for intel RND.  Return error on failures.
6848
6849 2008-08-18  Ben Pfaff  <blp@gnu.org>
6850
6851         gitlog-to-changelog: give better diagnostic for failed pipe-open
6852         * build-aux/gitlog-to-changelog: Improve error message: suggest
6853         that the version of Git may be too old.
6854
6855 2008-08-18  Simon Josefsson  <simon@josefsson.org>
6856
6857         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
6858         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
6859
6860 2008-08-18  Bruno Haible  <bruno@clisp.org>
6861
6862         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
6863         pthread_in_use().
6864
6865 2008-08-18  Bruno Haible  <bruno@clisp.org>
6866
6867         * lib/glthread/threadlib.c: Include <pthread.h>.
6868
6869 2008-08-18  Bruno Haible  <bruno@clisp.org>
6870
6871         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
6872         glthread_recursive_lock_* macros.
6873         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
6874         Fix syntax error.
6875
6876 2008-08-18  Bruno Haible  <bruno@clisp.org>
6877
6878         * lib/glthread/thread.c: Avoid forcing a context switch right after
6879         thread creation.
6880
6881 2008-08-17  Bruno Haible  <bruno@clisp.org>
6882
6883         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
6884         * lib/glthread/thread.h: Provide Win32 specific implementation.
6885         * modules/thread (Files): Add lib/glthread/thread.c.
6886         (Depends-on): Add lock.
6887         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
6888
6889 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6890
6891         New module 'yield'.
6892         * modules/yield: New file.
6893         * lib/glthread/yield.h: New file.
6894         * m4/yield.m4: New file.
6895         * MODULES.html.sh (Multithreading): Add yield.
6896
6897 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6898
6899         New module 'thread'.
6900         * modules/thread: New file.
6901         * lib/glthread/thread.h: New file.
6902         * m4/thread.m4: New file.
6903         * MODULES.html.sh (Multithreading): Add thread.
6904
6905 2008-08-17  Bruno Haible  <bruno@clisp.org>
6906
6907         * lib/glthread/lock.h: Include <stdlib.h> always.
6908         * lib/glthread/tls.h: Likewise.
6909         * lib/glthread/cond.h: Likewise.
6910
6911 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6912
6913         New module 'cond'.
6914         * modules/cond: New file.
6915         * lib/glthread/cond.h: New file.
6916         * lib/glthread/cond.c: New file.
6917         * m4/cond.m4: New file.
6918         * MODULES.html.sh (Multithreading): Add cond.
6919
6920 2008-08-16  Eric Blake  <ebb9@byu.net>
6921
6922         c-stack: fix regression on Irix 5.3 from 2008-06-21
6923         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
6924         sa_sigaction...
6925         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
6926         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
6927         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
6928         * modules/signal (Makefile.am): Use the value.
6929         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
6930         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
6931         * doc/posix-headers/signal.texi (signal.h): Document this
6932         portability issue.
6933         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
6934         Reported by Tom G. Christensen.
6935
6936 2008-08-17  Bruno Haible  <bruno@clisp.org>
6937
6938         New module 'threadlib'.
6939         * modules/threadlib: New file.
6940         * lib/glthread/threadlib.c: New file, extracted from
6941         lib/glthread/lock.c.
6942         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
6943         functions.
6944         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
6945         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
6946         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
6947         macros.
6948         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
6949         (gl_DISABLE_THREADS): Remove macro.
6950         * modules/lock (Files): Remove build-aux/config.rpath.
6951         (Depends-on): Remove havelib. Add threadlib.
6952         (configure.ac-early): Remove section.
6953         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
6954         * modules/tls (Depends-on): Remove lock. Add threadlib.
6955         (Link): New section, copied from threadlib.
6956         * MODULES.html.sh (Multithreading): Add threadlib.
6957
6958 2008-08-14  Bruno Haible  <bruno@clisp.org>
6959
6960         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
6961         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
6962         glthread_rwlock_unlock, glthread_rwlock_destroy,
6963         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
6964         glthread_recursive_lock_destroy): Define as macros always.
6965         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
6966         glthread_lock_lock.
6967         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
6968         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
6969         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
6970         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
6971         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
6972         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
6973         (glthread_recursive_lock_lock_func): Renamed from
6974         glthread_recursive_lock_lock.
6975         (glthread_recursive_lock_unlock_func): Renamed from
6976         glthread_recursive_lock_unlock.
6977         (glthread_recursive_lock_destroy_func): Renamed from
6978         glthread_recursive_lock_destroy.
6979
6980 2008-08-14  Bruno Haible  <bruno@clisp.org>
6981
6982         * lib/glthread/lock.h: Renamed from lib/lock.h.
6983         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
6984         * lib/glthread/tls.h: Renamed from lib/tls.h.
6985         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
6986         * lib/fstrcmp.c: Update includes.
6987         * lib/strsignal.c: Update includes.
6988         * modules/lock (Files, Makefile.am): Update.
6989         (Include): Change to "glthread/lock.h".
6990         * modules/tls (Files, Makefile.am): Update.
6991         (Include): Change to "glthread/tls.h".
6992         * tests/test-lock.c: Update includes.
6993         * tests/test-tls.c: Update includes.
6994         * NEWS: Mention the renamed header files.
6995
6996 2008-08-11  Jim Meyering  <meyering@redhat.com>
6997
6998         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
6999
7000 2008-08-11  Eric Blake  <ebb9@byu.net>
7001
7002         test-c-stack: avoid C99-ism
7003         * tests/test-c-stack.c (main): Fix whitespace, move declaration
7004         before statement.
7005         Reported by Alain Guibert.
7006
7007 2008-08-10  Jim Meyering  <meyering@redhat.com>
7008
7009         ensure that return value of uinttostr et al are not ignored
7010         * lib/inttostr.h (__GNUC_PREREQ): Define.
7011         (__attribute_warn_unused_result__): Define.
7012         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
7013
7014 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
7015
7016         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
7017         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
7018
7019 2008-08-07  Jim Meyering  <meyering@redhat.com>
7020
7021         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
7022
7023         * modules/mkstemp (License): Relicense under LGPLv2+.
7024         * modules/tempname (License): Likewise.
7025
7026 2008-08-06  Bruno Haible  <bruno@clisp.org>
7027
7028         * lib/poll.c (poll): Further micro-optimization.
7029
7030 2008-08-06  Jim Meyering  <meyering@redhat.com>
7031
7032         inet_pton.c: use locale-independent tolower
7033         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
7034         (inet_pton6): Use c_tolower rather than tolower.
7035         * modules/inet_pton (Depends-on): Add c-ctype.
7036
7037 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
7038
7039         * lib/poll.c (poll): Avoid division when timeout is 0, cache
7040         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
7041
7042 2008-08-06  Jim Meyering  <meyering@redhat.com>
7043
7044         * modules/inet_pton (License): Relicense under LGPLv2+.
7045
7046 2008-08-03  Bruno Haible  <bruno@clisp.org>
7047
7048         Additional non-aborting API for lock and tls.
7049         * lib/lock.h: Include <errno.h>.
7050         (glthread_lock_init): New macro/function.
7051         (gl_lock_init): Define as wrapper around glthread_lock_init.
7052         (glthread_lock_lock): New macro/function.
7053         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
7054         (glthread_lock_unlock): New macro/function.
7055         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
7056         (glthread_lock_destroy): New macro/function.
7057         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
7058         (glthread_rwlock_init): New macro/function.
7059         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
7060         (glthread_rwlock_rdlock): New macro/function.
7061         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
7062         (glthread_rwlock_wrlock): New macro/function.
7063         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
7064         (glthread_rwlock_unlock): New macro/function.
7065         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
7066         (glthread_rwlock_destroy): New macro/function.
7067         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
7068         (glthread_recursive_lock_init): New macro/function.
7069         (gl_recursive_lock_init): Define as wrapper around
7070         glthread_recursive_lock_init.
7071         (glthread_recursive_lock_lock): New macro/function.
7072         (gl_recursive_lock_lock): Define as wrapper around
7073         glthread_recursive_lock_lock.
7074         (glthread_recursive_lock_unlock): New macro/function.
7075         (gl_recursive_lock_unlock): Define as wrapper around
7076         glthread_recursive_lock_unlock.
7077         (glthread_recursive_lock_destroy): New macro/function.
7078         (gl_recursive_lock_destroy): Define as wrapper around
7079         glthread_recursive_lock_destroy.
7080         (glthread_once): New macro/function.
7081         (gl_once): Define as wrapper around glthread_once.
7082         Update function declarations.
7083         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
7084         glthread_rwlock_init. Return error code.
7085         (glthread_rwlock_rdlock_multithreaded): Renamed from
7086         glthread_rwlock_rdlock. Return error code.
7087         (glthread_rwlock_wrlock_multithreaded): Renamed from
7088         glthread_rwlock_wrlock. Return error code.
7089         (glthread_rwlock_unlock_multithreaded): Renamed from
7090         glthread_rwlock_unlock. Return error code.
7091         (glthread_rwlock_destroy_multithreaded): Renamed from
7092         glthread_rwlock_destroy. Return error code.
7093         (glthread_recursive_lock_init_multithreaded): Renamed from
7094         glthread_recursive_lock_init. Return error code.
7095         (glthread_recursive_lock_lock_multithreaded): Renamed from
7096         glthread_recursive_lock_lock. Return error code.
7097         (glthread_recursive_lock_unlock_multithreaded): Renamed from
7098         glthread_recursive_lock_unlock. Return error code.
7099         (glthread_recursive_lock_destroy_multithreaded): Renamed from
7100         glthread_recursive_lock_destroy. Return error code.
7101         (glthread_once_call): Make static.
7102         (glthread_once_multithreaded): Renamed from glthread_once.
7103         * lib/tls.h: Include <errno.h>.
7104         (glthread_tls_key_init): New macro/function.
7105         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
7106         (glthread_tls_set): New macro/function.
7107         (gl_tls_set): Define as wrapper around glthread_tls_set.
7108         (glthread_tls_key_destroy): New macro/function.
7109         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
7110         Update function declarations.
7111         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
7112         glthread_tls_get.
7113         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
7114
7115 2008-08-04  Eric Blake  <ebb9@byu.net>
7116
7117         gnumakefile: use space, not TAB, outside of targets
7118         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
7119
7120 2008-08-02  Jim Meyering  <meyering@redhat.com>
7121
7122         getdate.y: avoid locale-dependent date parsing failure
7123         In Turkish locales, getdate would fail to recognize keywords
7124         containing a lowercase "i".  The solution is not to rely on
7125         locale-sensitive case-conversion.
7126         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
7127         (lookup_word): Use c_toupper in place of toupper.
7128         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
7129         Reported by Vefa Bicakci <bicave@superonline.com> in
7130         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
7131         * modules/getdate (Depends-on): Add c-ctype.
7132
7133 2008-08-02  Bruno Haible  <bruno@clisp.org>
7134
7135         * gnulib-tool (func_import): When updating or creating a .gitignore
7136         file, prepend each added line with a slash, and ignore leading slashes
7137         from the existing lines.
7138         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7139
7140 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7141
7142         Portability fix for GNU make 3.79.1.
7143         * top/GNUmakefile: Avoid 'else COND', which older GNU make
7144         versions do not understand.
7145
7146 2008-08-01  Bruno Haible  <bruno@clisp.org>
7147
7148         Work around bug of HP-UX 10.20 cc with -0.0 literal.
7149         * tests/test-isnanf.h (zero): New variable.
7150         (main): Avoid literal -0.0f.
7151         * tests/test-isnand.h (zero): New variable.
7152         (main): Avoid literal -0.0.
7153         * tests/test-isnanl.h (zero): New variable.
7154         (main): Avoid literal -0.0L.
7155         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
7156         (test_float, test_double, test_long_double): Avoid literals -0.0f,
7157         -0.0, -0.0L.
7158         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
7159         (test_signbitd): Avoid literal -0.0.
7160         (test_signbitl): Avoid literal -0.0L.
7161         * tests/test-ceilf1.c (zero): New variable.
7162         (main): Avoid literal -0.0f.
7163         * tests/test-ceill.c (zero): New variable.
7164         (main): Avoid literal -0.0L.
7165         * tests/test-floorf1.c (zero): New variable.
7166         (main): Avoid literal -0.0f.
7167         * tests/test-floorl.c (zero): New variable.
7168         (main): Avoid literal -0.0L.
7169         * tests/test-roundf1.c (zero): New variable.
7170         (main): Avoid literal -0.0f.
7171         * tests/test-round1.c (zero): New variable.
7172         (main): Avoid literal -0.0.
7173         * tests/test-roundl.c (zero): New variable.
7174         (main): Avoid literal -0.0L.
7175         * tests/test-truncf1.c (zero): New variable.
7176         (main): Avoid literal -0.0f.
7177         * tests/test-trunc1.c (zero): New variable.
7178         (main): Avoid literal -0.0.
7179         * tests/test-truncl.c (zero): New variable.
7180         (main): Avoid literal -0.0L.
7181         * tests/test-frexp.c (zero): New variable.
7182         (main): Avoid literal -0.0.
7183         * tests/test-frexpl.c (zero): New variable.
7184         (main): Avoid literal -0.0L.
7185         * tests/test-ldexpl.c (zero): New variable.
7186         (main): Avoid literal -0.0L.
7187         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
7188         (zerod, zerol): New variables.
7189         (test_function): Avoid literals -0.0, -0.0L.
7190         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
7191         (zerod, zerol): New variables.
7192         (test_function): Avoid literals -0.0, -0.0L.
7193         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
7194         (zerod, zerol): New variables.
7195         (test_function): Avoid literals -0.0, -0.0L.
7196         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
7197         (zerod, zerol): New variables.
7198         (test_function): Avoid literals -0.0, -0.0L.
7199         * tests/test-strtod.c (zero): New variable.
7200         (main): Avoid literal -0.0.
7201         Reported by Jonathan C. Patschke <jp@centtech.com>.
7202
7203 2008-07-31  Jim Meyering  <meyering@redhat.com>
7204
7205         sha256.h: correct definition of SHA224_DIGEST_SIZE
7206         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
7207         Reported by Paulie Pena IV <paulie4@gmail.com>.
7208         Define as 224 / 8, rather than as a literal.
7209         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
7210         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
7211         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
7212
7213 2008-07-31  Bruno Haible  <bruno@clisp.org>
7214
7215         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
7216         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
7217         Reported by Jonathan Patschke <jp@centtech.com>.
7218
7219 2008-07-31  Bruno Haible  <bruno@clisp.org>
7220
7221         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
7222         Reported by Paolo Bonzini <bonzini@gnu.org>.
7223
7224 2008-07-30  Eric Blake  <ebb9@byu.net>
7225
7226         test-strtod: allow compilation without -lm
7227         * tests/test-strtod.c (main): Avoid link dependence on fabs.
7228         Reported by Dennis Clarke <blastwave@gmail.com>.
7229
7230 2008-07-28  Jim Meyering  <meyering@redhat.com>
7231
7232         bootstrap: work also when there are no .po files in po/
7233         * build-aux/bootstrap (update_po_files): Complete the change
7234         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
7235
7236 2008-07-27  Jim Meyering  <meyering@redhat.com>
7237
7238         * users.txt: Add zile.
7239
7240 2008-07-26  Ben Pfaff  <blp@gnu.org>
7241
7242         Add missing dependencies on new m4/exponent[fdl].m4 files.
7243         * modules/isnanf-nolibm: Add m4/exponentf.m4.
7244         * modules/isnand-nolibm: Add m4/exponentd.m4.
7245         * modules/isnanl-nolibm: Add m4/exponentl.m4.
7246         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
7247         m4/isnan[fdl].m4, because the macros actually used moved.
7248         Reported by Jim Meyering.
7249
7250 2008-07-14  Ben Pfaff  <blp@gnu.org>
7251
7252         Add isinf module.
7253         * lib/isinf.c: New file.
7254         * lib/math.in.h: Define isinf macro if we have decided to replace
7255         it.
7256         * m4/isinf.m4: New file.
7257         * m4/math_h.m4: Initialize and substitute variables for isinf
7258         module.
7259         * modules/isinf: New file.
7260         * modules/isinf-tests: New file.
7261         * modules/math: Add substitutions for new module.
7262         * tests/test-isinf.c: New file.
7263         * doc/posix-functions/isinf.texi: Mention new module.
7264         * MODULES.html.sh: Mention new module.
7265
7266 2008-07-14  Ben Pfaff  <blp@gnu.org>
7267
7268         Factor out some macros for use by additional modules.
7269         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
7270         exponentf.m4.
7271         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
7272         exponentd.m4.
7273         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
7274         file exponentl.m4.
7275         * m4/exponentf.m4: New file.
7276         * m4/exponentd.m4: New file.
7277         * m4/exponentl.m4: New file.
7278         * modules/isnanf: Use new file m4/exponentf.m4.
7279         * modules/isnand: Use new file m4/exponentd.m4.
7280         * modules/isnanl: Use new file m4/exponentl.m4.
7281
7282 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
7283
7284         mktime.c: normalize tp->tm_isdst value to -1/0/1.
7285         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
7286         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
7287         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
7288
7289         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
7290         readlink on platforms without PATH_MAX.
7291
7292 2008-07-21  Eric Blake  <ebb9@byu.net>
7293
7294         Warn, not fail, on stale version.
7295         * top/GNUmakefile (_curr-ver): Tone down previous patch.
7296
7297         Don't allow installation with stale devel version number.
7298         * top/GNUmakefile (_is-install-target): New macro.
7299         (_curr-ver): Forbid installation with stale version number.
7300
7301 2008-07-20  Bruno Haible  <bruno@clisp.org>
7302
7303         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
7304         TESTS_ENVIRONMENT.
7305         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
7306
7307 2008-07-20  Bruno Haible  <bruno@clisp.org>
7308
7309         * lib/c-stack.h (c_stack_action): Add documentation.
7310         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
7311
7312 2008-07-20  Bruno Haible  <bruno@clisp.org>
7313
7314         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
7315         * modules/readlink (License): Likewise.
7316
7317 2008-07-17  Eric Blake  <ebb9@byu.net>
7318
7319         * modules/c-stack (Link): Fix typo.
7320
7321         Make c-stack use libsigsegv, when available.
7322         * modules/c-stack (Depends-on): Add libsigsegv.
7323         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
7324         needed.
7325         * lib/c-stack.c (SIGSTKSZ): Define fallback.
7326         (segv_handler, overflow_handler, c_stack_action)
7327         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
7328         implementation when libsigsegv is available, but only when using
7329         the library is necessary.
7330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
7331         comment, explaining why XSI check fails on Linux.
7332         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
7333         * tests/test-c-stack2.sh: Tweak skip message.
7334         * NEWS: Document new link-time requirements.
7335
7336 2008-07-16  Eric Blake  <ebb9@byu.net>
7337
7338         c-stack: Expose false positives when not using libsigsegv.
7339         * modules/c-stack-tests (Files): Expand test.
7340         * tests/test-c-stack.c (main): Add means to conditionally trigger
7341         non-overflow SIGSEGV.
7342         * tests/test-c-stack2.sh: New file.
7343
7344 2008-07-14  Bruno Haible  <bruno@clisp.org>
7345
7346         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
7347         Reported by Eric Blake.
7348
7349 2008-07-14  Sam Steingold  <sds@gnu.org>
7350             Bruno Haible  <bruno@clisp.org>
7351
7352         New module libsigsegv.
7353         * modules/libsigsegv: New file.
7354         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
7355         modifications.
7356         * MODULES.html.sh (Signal handling): New section.
7357
7358 2008-07-14  Bruno Haible  <bruno@clisp.org>
7359
7360         * modules/unictype/ctype-* (Description): Add the word "function".
7361         Improves the resulting doc in MODULES.html.
7362
7363 2008-07-12  Ben Pfaff  <blp@gnu.org>
7364
7365         Add longlong module.
7366         * modules/longlong: New file.
7367
7368 2008-07-12  Bruno Haible  <bruno@clisp.org>
7369
7370         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
7371         to empty.
7372
7373 2008-07-10  Ben Pfaff  <blp@gnu.org>
7374
7375         Add isnan module.
7376         * doc/posix-functions/isnan.texi: Mention new module.
7377         * lib/math.in.h: Define isnan macro if we have decided to replace
7378         it.
7379         * m4/isnan.m4: New file.
7380         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
7381         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
7382         also.
7383         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
7384         redundancy.
7385         * m4/math_h.m4: Initialize and substitute variables for isnan
7386         module.
7387         * modules/isnan: New file.
7388         * modules/isnan-tests: New file.
7389         * modules/math: Add substitutions for new module.
7390         * tests/test-isnan.c: New file.
7391         * MODULES.html.sh: Mention new module.
7392
7393 2008-07-10  Ben Pfaff  <blp@gnu.org>
7394
7395         Add isnanf module.
7396         * lib/isnanf.m4: New file.
7397         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
7398         (gl_HAVE_ISNANF_IN_LIBM): New macro.
7399         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
7400         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
7401         * modules/isnanf: New file.
7402         * modules/isnanf-tests: New file.
7403         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
7404         files.
7405         * tests/test-isnanf-nolibm.c: factored most of its contents into
7406         new file tests/test-isnanf.h.
7407         * tests/test-isnanf.h: New file.
7408         * tests/test-isnanf.c: New file.
7409         * MODULES.html.sh: Mention new module.
7410         * doc/glibc-functions/isnanf.texi: Mention new module.
7411
7412 2008-07-10  Ben Pfaff  <blp@gnu.org>
7413
7414         Add isnand module.
7415         * lib/isnand.h: New file.
7416         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
7417         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
7418         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
7419         functionality also.
7420         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
7421         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
7422         (gl_HAVE_ISNAND_IN_LIBM): New macro.
7423         * modules/isnand: New file.
7424         * modules/isnand-tests: New file.
7425         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
7426         files.
7427         * tests/test-isnand-nolibm.c: factored most of its contents into
7428         new file tests/test-isnand.h.
7429         * tests/test-isnand.h: New file.
7430         * tests/test-isnand.c: New file.
7431         * MODULES.html.sh: Mention new module.
7432
7433 2008-07-10  Ben Pfaff  <blp@gnu.org>
7434
7435         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
7436         * lib/isnand.h: Rename lib/isnand-nolibm.h.
7437         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
7438         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
7439         * modules/isnanf-nolibm: Update references to renamed files.
7440         * modules/isnand-nolibm: Likewise.
7441         * modules/isnanf-nolibm-tests: Likewise.
7442         * modules/isnand-nolibm-tests: Likewise.
7443         * lib/frexp.c: Likewise.
7444         * lib/isfinite.c: Likewise.
7445         * lib/signbitd.c: Likewise.
7446         * lib/signbitf.c: Likewise.
7447         * lib/vasnprintf.c: Likewise.
7448         * tests/test-ceilf1.c: Likewise.
7449         * tests/test-ceilf2.c: Likewise.
7450         * tests/test-floorf1.c: Likewise.
7451         * tests/test-floorf2.c: Likewise.
7452         * tests/test-frexp.c: Likewise.
7453         * tests/test-round1.c: Likewise.
7454         * tests/test-round2.c: Likewise.
7455         * tests/test-roundf1.c: Likewise.
7456         * tests/test-strtod.c: Likewise.
7457         * tests/test-trunc1.c: Likewise.
7458         * tests/test-trunc2.c: Likewise.
7459         * tests/test-truncf1.c: Likewise.
7460         * tests/test-truncf2.c: Likewise.
7461         * NEWS: Mention the renamed header files.
7462
7463 2008-07-11  Jim Meyering  <meyering@redhat.com>
7464
7465         vc-list-files: make the last-resort awk code more portable
7466         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
7467         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
7468         does not support it.
7469
7470 2008-07-10  Eric Blake  <ebb9@byu.net>
7471
7472         Work with tar's bootstrap.
7473         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
7474         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
7475         an m4 comment.
7476
7477 2008-07-09  Jim Meyering  <meyering@redhat.com>
7478
7479         posix-shell.m4: fix typo that made this test malfunction
7480         * m4/posix-shell.m4: Remove capitalization in variable name.
7481
7482 2008-07-08  Bruno Haible  <bruno@clisp.org>
7483
7484         * m4/onceonly.m4: Update comments.
7485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7486
7487 2008-07-04  Jim Meyering  <meyering@redhat.com>
7488
7489         * users.txt: Add vc-dwim.
7490         (bison, coreutils): Use the gitweb URL.
7491
7492 2008-07-03  Jim Meyering  <meyering@redhat.com>
7493
7494         * users.txt: Add libffcall.  From Sam Steingold.
7495
7496 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
7497
7498         getdate.y: do not ignore TZ with relative day, month or year offset
7499         * lib/getdate.y (get_date): Move the tz-handling block to follow the
7500         relative-date-handling, since otherwise, the latter would clobber the
7501         sole output (an updated Start value) of the tz-handling block.
7502         * tests/test-getdate.c: Tests for the fix
7503
7504 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7505
7506         Recognize 'foo_LIBRARIES += libgnu.a'.
7507         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
7508         makefile snippet has already specified an installation location,
7509         also using '+='.
7510
7511 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
7512
7513         getdate.y: factor out common actions
7514         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
7515         Use them in place of open-coded actions.
7516
7517 2008-07-01  Simon Josefsson  <simon@josefsson.org>
7518
7519         Add self-test for getdate module.
7520         * modules/getdate-tests: New file.
7521         * tests/test-getdate.c: New file.
7522
7523 2008-06-29  Bruno Haible  <bruno@clisp.org>
7524
7525         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
7526         .gitignore.
7527         Reported by Sylvain Beucler <beuc@beuc.net>.
7528
7529 2008-06-29  Bruno Haible  <bruno@clisp.org>
7530
7531         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
7532         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
7533
7534 2008-06-29  Bruno Haible  <bruno@clisp.org>
7535
7536         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
7537         EXTRA_DIST.
7538         Reported by Sylvain Beucler <beuc@beuc.net>.
7539
7540 2008-06-26  Jim Meyering  <meyering@redhat.com>
7541
7542         make several modules depend on the "open" module
7543         This provides slightly increased consistency when opening-for-write
7544         the name of a non-directory spelled with a trailing slash.
7545         * modules/chdir-safer: Likewise.
7546         * modules/chown: Likewise.
7547         * modules/clean-temp: Likewise.
7548         * modules/copy-file: Likewise.
7549         * modules/fchdir: Likewise.
7550         * modules/fcntl-safer: Likewise.
7551         * modules/pipe: Likewise.
7552         * modules/utime: Likewise.
7553         Prompted by Eric Blake and Bruno Haible.
7554
7555 2008-06-24  Andreas Schwab  <schwab@suse.de>
7556
7557         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
7558         literals can be used as initializers for global variables.
7559
7560 2008-06-23  Eric Blake  <ebb9@byu.net>
7561
7562         Make gnulib-cache.m4 easier to diff.
7563         * gnulib-tool (func_import): Allow newlines when reading cached
7564         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
7565
7566 2008-06-23  Bruno Haible  <bruno@clisp.org>
7567
7568         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
7569         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
7570         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
7571         m4/signalblocking.m4.
7572         (gl_PREREQ_SIGACTION): Don't invoke it.
7573         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
7574         gl_PREREQ_SIG_HANDLER_H.
7575         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7576         Don't check for sigaction here.
7577
7578 2008-06-23  Bruno Haible  <bruno@clisp.org>
7579
7580         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
7581         (install_handlers): Don't set the SA_RESETHAND flag.
7582
7583 2008-06-23  Bruno Haible  <bruno@clisp.org>
7584
7585         * m4/sigaction.m4: Comment fixes.
7586         * lib/signal.in.h: Likewise.
7587
7588 2008-06-23  Eric Blake  <ebb9@byu.net>
7589
7590         Fix typo.
7591         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
7592
7593         Avoid SA_ namespace.
7594         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
7595         Reported by Ralf Wildenhues.
7596
7597         Avoid test failure due to SA_RESTORER.
7598         * tests/test-sigaction.c (SA_MASK): New macro.
7599         (main): Avoid failing due to extension flags being set.
7600         Reported by Jim Meyering.
7601
7602         Revert use of sig-handler.h in sigprocmask.c.
7603         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
7604         it requires the existence of struct sigaction.
7605         * lib/sigprocmask.c (handler_t): Restore typedef.
7606         (rpl_signal, old_handlers): Use local type.
7607
7608 2008-06-22  Bruno Haible  <bruno@clisp.org>
7609
7610         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
7611         conditionally.
7612         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7613
7614 2008-06-22  Bruno Haible  <bruno@clisp.org>
7615
7616         * doc/posix-functions/siginterrupt.texi: Move note.
7617
7618         * lib/signal.in.h (SA_RESTART): New macro.
7619         * lib/sigaction.c: Update comment.
7620
7621         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
7622
7623         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
7624         (gl_PREREQ_SIGPROCMASK): Invoke it.
7625         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
7626
7627         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
7628
7629         * lib/sigprocmask.c: Update a comment.
7630
7631 2008-06-21  Eric Blake  <ebb9@byu.net>
7632
7633         Use sigaction module rather than signal().
7634         * modules/c-stack (Depends-on): Add sigaction.
7635         * modules/fatal-signal (Depends-on): Likewise.
7636         * modules/nanosleep (Depends-on): Likewise.
7637         * modules/sigprocmask (Files): Add sig-handler.h.
7638         * modules/sigaction (Files): Likewise.
7639         * lib/sig-handler.h (get_handler): New file, suggested by Paul
7640         Eggert.
7641         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
7642         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
7643         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7644         (init_fatal_signals): Likewise.
7645         * lib/nanosleep.c (rpl_nanosleep): Likewise.
7646         (siginterrupt): Delete fallback.
7647         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
7648         instead.
7649         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
7650         siginterrupt.
7651
7652         New module sigaction, for mingw.
7653         * modules/sigaction: New module...
7654         * modules/sigaction-tests: ...and its test.
7655         * m4/sigaction.m4: New file.
7656         * lib/sigaction.c: Likewise.
7657         * tests/test-sigaction.c: Likewise.
7658         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
7659         * modules/signal (Makefile.am): Likewise.
7660         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
7661         needed.
7662         * doc/posix-headers/signal.texi (signal.h): Mention provided
7663         types.
7664         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
7665         that sigaction is preferable.
7666         * doc/posix-functions/sigaction.texi (sigaction): Mention new
7667         module.
7668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7669         sigaction.
7670
7671         Improve robustness of sigprocmask by overriding signal.
7672         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
7673         is in use.
7674         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
7675         (SIGKILL, SIGSTOP): Provide fallbacks.
7676         (rpl_signal): Implement.
7677         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
7678         signal can be called inside handlers.
7679
7680         Fix nanosleep module on mingw.
7681         * modules/nanosleep (Depends-on): Add sys_select.
7682         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
7683
7684         Fix licensing of sigprocmask.
7685         * modules/raise (License): Relicense as LGPL.
7686
7687 2008-06-21  Bruno Haible  <bruno@clisp.org>
7688
7689         * lib/propername.c (proper_name_utf8): Don't use the transliterated
7690         result if it contains question marks.
7691         Reported by Michael Geng <linux@michaelgeng.de>.
7692
7693 2008-06-19  Bruno Haible  <bruno@clisp.org>
7694
7695         Fix CVS-ism.
7696         * doc/gnulib.texi: Include updated-stamp.texi.
7697         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
7698         (updated-stamp.texi): New rule.
7699         (gnulib.info): Depend on it.
7700         * doc/.gitignore: Add updated-stamp.texi.
7701         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
7702
7703 2008-06-19  Bruno Haible  <bruno@clisp.org>
7704
7705         * doc/Makefile (gnulib.info): Update and simplify dependencies.
7706         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7707
7708 2008-06-19  Eric Blake  <ebb9@byu.net>
7709
7710         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
7711         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
7712         Reported by Stepan Kasal.
7713
7714 2008-06-18  Bruno Haible  <bruno@clisp.org>
7715
7716         * lib/fatal-signal.c (init_fatal_signals): Add comment.
7717         Reported by Eric Blake.
7718
7719 2008-06-18  Eric Blake  <ebb9@byu.net>
7720
7721         Work around cygwin 1.5.25 strsignal bug.
7722         * tests/test-strsignal.c: Allow for const char *.
7723         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
7724
7725 2008-06-18  Simon Josefsson  <simon@josefsson.org>
7726
7727         * users.txt: Update URL to article and add author/date
7728         information.
7729
7730 2008-06-17  Bruno Haible  <bruno@clisp.org>
7731
7732         New macro gl_DISABLE_THREADS.
7733         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
7734         if the user did not pass --enable-threads or --disable-threads option.
7735         (gl_DISABLE_THREADS): New macro.
7736         Reported by Eric Blake <ebb9@byu.net>.
7737
7738 2008-06-17  Bruno Haible  <bruno@clisp.org>
7739
7740         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
7741         when the macro ignores it.
7742         Based on a patch by Eric Blake <ebb9@byu.net>.
7743
7744 2008-06-17  Bruno Haible  <bruno@clisp.org>
7745
7746         * modules/tls (License): Change to LGPLv2+.
7747         Reported by Eric Blake.
7748
7749 2008-06-17  Eric Blake  <ebb9@byu.net>
7750
7751         Simplify c-stack prerequisites.
7752         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
7753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
7754         no longer requires <ucontext.h> to exist.  Optimize setrlimit
7755         check.
7756         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
7757         <sys/resource.h>.
7758
7759         Move c-stack test into testsuite.
7760         * modules/c-stack-tests: New file.
7761         * lib/c-stack.c [DEBUG]: Move test program...
7762         * tests/test-c-stack.c: ...into this new file.  Skip rather than
7763         fail test if sigaltstack is lacking.
7764         * tests/test-c-stack.sh: New driver file.
7765
7766 2008-06-16  Eric Blake  <ebb9@byu.net>
7767
7768         Use raise module consistently.
7769         * modules/fatal-signal (Depends-on): Add raise.
7770         * modules/sigprocmask (Depends-on): Likewise.
7771         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
7772         * lib/sigprocmask.c (sigprocmask): Likewise.
7773         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7774         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
7775
7776         Fix compliance bug in sigpending.
7777         * lib/sigprocmask.c (sigpending): Return pending array via
7778         parameter, not return value.
7779
7780 2008-06-14  Eric Blake  <ebb9@byu.net>
7781
7782         Improve obstack-printf test code.
7783         * tests/test-obstack-printf.c (test_function): Fix comment, and
7784         simplify usage of obstack_* in macros.  Add a test for coverage.
7785         Reported by Bruno Haible.
7786
7787 2008-06-14  Bruno Haible  <bruno@clisp.org>
7788
7789         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
7790         array size as a constant, not as a const variable.
7791         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
7792         AC_USE_SYSTEM_EXTENSIONS.
7793         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
7794         Test whether the obstack_printf function actually exists.
7795         * modules/obstack-printf (Depends-on): Add extensions.
7796         (Include): Remove obstack.h.
7797         * modules/obstack-printf-posix (Depends-on): Add extensions.
7798         (Include): Remove obstack.h.
7799
7800 2008-06-13  Eric Blake  <ebb9@byu.net>
7801
7802         Add obstack-printf and obstack-printf-posix modules.
7803         * modules/obstack-printf: New file.
7804         * modules/obstack-printf-posix: Likewise.
7805         * MODULES.html.sh (Misc): Mention them.
7806         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
7807         Likewise.
7808         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
7809         Likewise.
7810         * modules/stdio (Makefile.am): Accomodate new modules.
7811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7812         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
7813         Declare.
7814         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
7815         functions.
7816         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
7817         (gl_REPLACE_OBSTACK_PRINTF): New macros
7818         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
7819         * tests/test-obstack-printf.c: New file.
7820         * modules/obstack-printf-tests: Likewise.
7821         * modules/obstack-printf-posix-tests: Likewise.
7822
7823 2008-06-11  Bruno Haible  <bruno@clisp.org>
7824
7825         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
7826         * lib/open.c: Include errno.h.
7827         (open): Fail when attempting to write to a file that has a trailing
7828         slash.
7829         * tests/test-open.c (main): Test against trailing slash bug.
7830         * doc/posix-functions/open.texi: Mention the trailing slash bug.
7831
7832 2008-06-10  Bruno Haible  <bruno@clisp.org>
7833
7834         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
7835         for $? to work inside the trap command, with various /bin/sh-s.
7836         * tests/test-vc-list-files-cvs.sh: Likewise.
7837
7838 2008-06-10  Bruno Haible  <bruno@clisp.org>
7839
7840         * lib/acl-internal.h: Don't include gettext.h here.
7841         * lib/set-mode-acl.c: Include gettext.h here.
7842         * lib/copy-acl.c: Likewise.
7843
7844 2008-06-10  Bruno Haible  <bruno@clisp.org>
7845
7846         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
7847         * lib/wait-process.c (wait_subprocess): Likewise.
7848         * lib/execute.h (execute): Add termsigp argument.
7849         * lib/execute.c (execute): Likewise.
7850         * lib/csharpcomp.c (compile_csharp_using_pnet,
7851         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
7852         * lib/csharpexec.c (execute_csharp_using_pnet,
7853         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
7854         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
7855         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
7856         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
7857         is_jikes_present): Update.
7858         * lib/javaexec.c (execute_java_class): Update.
7859         * lib/javaversion.c (execute_and_read_line): Update.
7860         * NEWS: Document the changes.
7861         Reported by Eric Blake.
7862
7863 2008-06-10  Eric Blake  <ebb9@byu.net>
7864
7865         Add missing include.
7866         * tests/test-strstr.c (includes): Add <signal.h>.
7867         * tests/test-strcasestr.c (includes): Likewise.
7868         * tests/test-memmem.c (includes): Likewise.
7869
7870 2008-06-10  Bruno Haible  <bruno@clisp.org>
7871
7872         * lib/wait-process.c (wait_subprocess): Add an assertion.
7873
7874 2008-06-10  Bruno Haible  <bruno@clisp.org>
7875
7876         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
7877
7878 2008-06-10  Bruno Haible  <bruno@clisp.org>
7879
7880         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
7881         using alarm().
7882         * tests/test-strcasestr.c (main): Likewise.
7883         * tests/test-strstr.c (main): Likewise.
7884
7885 2008-06-09  Bruno Haible  <bruno@clisp.org>
7886
7887         Work around the Solaris 10 ACE ACLs ABI change.
7888         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
7889         declare if ACL_NO_TRIVIAL is present.
7890         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
7891         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
7892         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
7893         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
7894         define if ACL_NO_TRIVIAL is present.
7895         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
7896         and use the current ABI.
7897         (file_has_acl): Use same #if condition as elsewhere.
7898         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
7899         in use, and use the current ABI.
7900         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
7901         Reported by Jim Meyering.
7902
7903 2008-06-09  Eric Blake  <ebb9@byu.net>
7904
7905         Work around environments that (stupidly) ignore SIGALRM.
7906         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
7907         before using alarm().
7908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7910         Reported by Ian Beckwith <ianb@erislabs.net>.
7911
7912         Produce autobuild blurb earlier in log.
7913         * modules/autobuild (configure.ac-early): Move AB_INIT here.
7914
7915 2008-06-09  Jim Meyering  <meyering@redhat.com>
7916         and OndÅ™ej Vašík  <ovasik@redhat.com>
7917
7918         utimens.c: correct kernel bug work-around
7919         OndÅ™ej Vašík found that the invalid return value of 280 indicates
7920         failure, not success, and the kernel bug we're trying to work
7921         around affects not just the utimensat call, but also the fallback
7922         futimens call.
7923         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
7924         not success.
7925         [HAVE_FUTIMENS]: Use the same work-around, here.
7926
7927 2008-06-09  Jim Meyering  <meyering@redhat.com>
7928
7929         add more guards around definition of ACE_-related code
7930         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
7931         ALLOW and ACE_OWNER are also defined.
7932
7933 2008-06-08  Bruno Haible  <bruno@clisp.org>
7934
7935         * lib/acl-internal.h: Add me as co-author.
7936         * lib/file-has-acl.c: Likewise.
7937         * lib/set-mode-acl.c: Likewise.
7938         * lib/copy-acl.c: Likewise.
7939
7940 2008-06-08  Bruno Haible  <bruno@clisp.org>
7941
7942         Add support for AIX ACLs.
7943         * lib/acl-internal.h (acl_nontrivial): New declaration.
7944         * lib/file-has-acl.c (acl_nontrivial): New function.
7945         (file_has_acl): Add implementation using AIX 4 ACL API.
7946         * lib/set-mode-acl.c (qset_acl): Likewise.
7947         * lib/copy-acl.c (qcopy_acl): Likewise.
7948
7949 2008-06-08  Bruno Haible  <bruno@clisp.org>
7950
7951         Add support for HP-UX ACLs.
7952         * lib/acl-internal.h (acl_nontrivial): New declaration.
7953         * lib/file-has-acl.c (acl_nontrivial): New function.
7954         (file_has_acl): Add implementation using HP-UX 11 ACL API.
7955         * lib/set-mode-acl.c (qset_acl): Likewise.
7956         * lib/copy-acl.c (qcopy_acl): Likewise.
7957
7958 2008-06-08  Bruno Haible  <bruno@clisp.org>
7959
7960         Add support for Cygwin ACLs.
7961         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
7962         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
7963         the chmod_or_fchmod call.
7964         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
7965
7966 2008-06-08  Bruno Haible  <bruno@clisp.org>
7967
7968         Fix bug with setuid modes in Solaris 10+ code.
7969         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
7970         succeeded, when the mode contains some special bits.
7971
7972 2008-06-08  Bruno Haible  <bruno@clisp.org>
7973
7974         Add support for Solaris 7..10 ACLs.
7975         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
7976         declarations.
7977         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
7978         functions.
7979         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
7980         * lib/set-mode-acl.c (qset_acl): Likewise.
7981         * lib/copy-acl.c (qcopy_acl): Likewise.
7982
7983 2008-06-08  Bruno Haible  <bruno@clisp.org>
7984
7985         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
7986         declaration.
7987         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
7988         (acl_access_nontrivial): Remove MacOS X case.
7989         (file_has_acl): Use acl_extended_nontrivial.
7990         * lib/copy-acl.c (qcopy_acl): Likewise.
7991
7992 2008-06-08  Bruno Haible  <bruno@clisp.org>
7993
7994         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
7995
7996 2008-06-08  Jim Meyering  <meyering@redhat.com>
7997
7998         * modules/acl (Maintainer): Add Bruno Haible.
7999
8000 2008-06-07  Bruno Haible  <bruno@clisp.org>
8001
8002         Improve support for Tru64 ACLs.
8003         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
8004         ACL on OSF/1.
8005
8006 2008-06-07  Bruno Haible  <bruno@clisp.org>
8007
8008         Add support for MacOS X ACLs.
8009         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
8010         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
8011         * lib/set-mode-acl.c (qset_acl): Likewise.
8012         * lib/copy-acl.c (qcopy_acl): Likewise.
8013
8014 2008-06-07  Bruno Haible  <bruno@clisp.org>
8015
8016         Fix memory leak introduced on 2008-05-22.
8017         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
8018         use.
8019
8020 2008-06-07  Bruno Haible  <bruno@clisp.org>
8021
8022         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
8023         to construct an empty ACL.
8024
8025 2008-06-07  Bruno Haible  <bruno@clisp.org>
8026
8027         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
8028         precisely.
8029         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
8030
8031 2008-06-07  Bruno Haible  <bruno@clisp.org>
8032
8033         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
8034         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
8035
8036 2008-06-07  Bruno Haible  <bruno@clisp.org>
8037
8038         * doc/posix-functions/_setjmp.texi: Explain the use of this function
8039         regardless of POSIX.
8040         * doc/posix-functions/_longjmp.texi: Likewise.
8041         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
8042         SystemV platform in this case.
8043
8044 2008-06-06  Eric Blake  <ebb9@byu.net>
8045
8046         Document abort() bugs.
8047         * doc/posix-functions/abort.texi (abort): Mention anomalies.
8048
8049         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
8050         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
8051         sigsetjmp.
8052         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
8053         siglongjmp, but only as a macro.
8054         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
8055         is obsolete.
8056         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
8057
8058         Tweak documentation to cover cygwin argz bugs.
8059         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
8060         argz bug fix; no code change needed since no cygwin releases
8061         occurred between the last fix and the bug being tested.
8062         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
8063         module and recently fixed cygwin bugs.
8064         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
8065         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
8066         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
8067         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
8068         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
8069         Likewise.
8070         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
8071         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
8072         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
8073         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
8074         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
8075         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
8076         Likewise.
8077
8078         Avoid gcc warning on cygwin.
8079         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
8080         !ACL_NO_TRIVIAL]: Avoid unused variable.
8081
8082 2008-06-05  Eric Blake  <ebb9@byu.net>
8083
8084         Be tolerant of UNKNOWN version in gnulib-tool test dir.
8085         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
8086         git-version-gen fails to come up with a version.
8087         Reported by Simon Josefsson.
8088
8089 2008-06-05  Jim Meyering  <meyering@redhat.com>
8090             Paul Eggert  <eggert@cs.ucla.edu>
8091
8092         utimens.c: work around a probable Linux kernel bug
8093         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
8094         appears to be a kernel bug that causes utimensat to return 280
8095         instead of 0, indicating success.
8096
8097 2008-06-04  Bruno Haible  <bruno@clisp.org>
8098
8099         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
8100         2008-06-01 commit.
8101
8102 2008-06-04  Bruno Haible  <bruno@clisp.org>
8103
8104         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
8105         * lib/file-has-acl.c (acl_access_nontrivial): New function.
8106         (file_has_acl): Use it. Save errno afterwards.
8107         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
8108
8109 2008-06-03  Bruno Haible  <bruno@clisp.org>
8110
8111         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
8112         draft code. Simplify #ifs.
8113         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
8114         Put Solaris code after POSIX-draft code. Fix comments regarding
8115         Solaris 10, HP-UX. Mention Cygwin.
8116         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
8117
8118 2008-06-03  Eric Blake  <ebb9@byu.net>
8119
8120         Provide fallback for older kernels.
8121         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
8122         Provide runtime fallback if kernel lacks support.
8123         Reported by Mike Frysinger.
8124
8125 2008-06-02  Bruno Haible  <bruno@clisp.org>
8126
8127         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
8128         it exists.
8129
8130 2008-06-02  Bruno Haible  <bruno@clisp.org>
8131
8132         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
8133         * lib/copy-acl.c (qcopy_acl): Update comment.
8134
8135 2008-06-02  Bruno Haible  <bruno@clisp.org>
8136
8137         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
8138         like ACL APIs.
8139
8140 2008-06-02  Bruno Haible  <bruno@clisp.org>
8141
8142         * tests/test-file-has-acl.sh: Use different code for Cygwin.
8143         * tests/test-set-mode-acl.sh: Likewise.
8144         * tests/test-copy-acl.sh: Likewise.
8145         * tests/test-copy-file.sh: Likewise.
8146
8147 2008-06-02  Bruno Haible  <bruno@clisp.org>
8148
8149         * tests/test-file-has-acl.sh: Remove unused code.
8150
8151 2008-06-01  Bruno Haible  <bruno@clisp.org>
8152
8153         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
8154         (copy_acl): Just a wrapper around qcopy_acl that emits the error
8155         messages.
8156         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
8157
8158 2008-06-01  Bruno Haible  <bruno@clisp.org>
8159
8160         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
8161         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
8162         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
8163         APIs.
8164         * modules/acl-tests (configure.ac): Remove tests now contained in
8165         m4/acl.m4.
8166
8167 2008-06-02  Jim Meyering  <meyering@redhat.com>
8168
8169         announce-gen: use a better key-server host name
8170         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
8171         it may be more consistently reliable.  Suggested by Werner Koch
8172         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
8173
8174 2008-06-01  Bruno Haible  <bruno@clisp.org>
8175
8176         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
8177         Reported by Voroskoi Andras <voroskoi@gmail.com>.
8178
8179 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
8180
8181         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
8182
8183 2008-06-01  Bruno Haible  <bruno@clisp.org>
8184
8185         New ACL tests.
8186         * tests/test-file-has-acl.sh: New file.
8187         * tests/test-file-has-acl.c: New file.
8188         * tests/test-set-mode-acl.sh: New file.
8189         * tests/test-set-mode-acl.c: New file.
8190         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
8191         * tests/test-copy-acl.c: New file.
8192         * modules/acl-tests: New file, based on modules/copy-file-tests.
8193         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
8194         (Depends-on): Add acl-tests.
8195         (configure.ac): Remove checks.
8196         (Makefile.am): Don't create test-sameacls program here any more.
8197
8198 2008-06-01  Bruno Haible  <bruno@clisp.org>
8199
8200         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
8201         * tests/test-sameacls.c: Include progname.h.
8202         (main): Invoke set_program_name. Portability fixes for MacOS X,
8203         Solaris, HP-UX.
8204
8205 2008-06-01  Bruno Haible  <bruno@clisp.org>
8206
8207         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
8208         function.
8209         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
8210
8211 2008-06-01  Bruno Haible  <bruno@clisp.org>
8212
8213         * modules/rpmatch (Depends-on): Add strdup.
8214
8215 2008-06-01  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/pipe.c: Include unistd-safer.h.
8218         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
8219         * modules/pipe (Depends-on): Add unistd-safer.
8220
8221 2008-05-30  Simon Josefsson  <simon@josefsson.org>
8222
8223         * modules/autobuild (configure.ac): Call AB_INIT.
8224
8225 2008-05-30  Simon Josefsson  <simon@josefsson.org>
8226
8227         * tests/test-getaddrinfo.c: Don't print debug messages by default.
8228         Suggested by Bruno Haible <bruno@clisp.org>.
8229
8230 2008-05-30  Simon Josefsson  <simon@josefsson.org>
8231
8232         * tests/test-base64.c: Cast size_t to unsigned long when invoking
8233         printf.  Use %lu instead of %d.  Reported by Bruno Haible
8234         <bruno@clisp.org>.
8235
8236 2008-05-29  Eric Blake  <ebb9@byu.net>
8237
8238         Prefer new POSIX 200x interfaces over futimesat.
8239         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
8240         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
8241         when available.
8242         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
8243
8244 2008-05-28  Bruno Haible  <bruno@clisp.org>
8245
8246         * modules/stpcpy (License): Change to LGPLv2+.
8247         Requested by David Lutterkort <dlutter@redhat.com>.
8248
8249 2008-05-27  Bruno Haible  <bruno@clisp.org>
8250
8251         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
8252         current mingw.
8253         Reported by Jose E. Marchesi <jemarch@gnu.org>.
8254
8255 2008-05-27  Bruno Haible  <bruno@clisp.org>
8256
8257         * modules/iconv_open (Link): New section, from module 'iconv'.
8258         * modules/striconv (Link): Likewise.
8259         * modules/striconveh (Link): Likewise.
8260         * modules/xstriconv (Link): Likewise.
8261         * modules/unicodeio (Link): Likewise.
8262         * modules/propername (Link): Likewise.
8263         Reported by Jim Meyering.
8264
8265 2008-05-26  Jim Meyering  <meyering@redhat.com>
8266
8267         sha256: do not artificially restrict buffer length to be < 2^32
8268         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
8269         uint32_t to size_t.
8270         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
8271         to match.
8272
8273         avoid unaligned access errors, e.g., on sparc
8274         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
8275         direct access through a possibly-unaligned uint64* pointer.
8276         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
8277         direct access through a possibly-unaligned uint32* pointer.
8278         Prompted by this patch from Tom "spot" Callaway:
8279         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
8280
8281         sha512.c: fix typo in comment
8282         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
8283
8284 2008-05-25  Bruno Haible  <bruno@clisp.org>
8285
8286         * lib/set-mode-acl.c: Renamed from lib/acl.c.
8287         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
8288         (Makefile.am): Update lib_SOURCES.
8289
8290 2008-05-25  Bruno Haible  <bruno@clisp.org>
8291
8292         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
8293
8294 2008-05-25  Jim Meyering  <meyering@redhat.com>
8295
8296         useless-if-before-free: freed expr may have white-space differences
8297         * build-aux/useless-if-before-free: Recognize cases in which the
8298         freed expression differs from the tested one in embedded white
8299         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
8300         $1 was used, so we can't make any regexp shy.  Improved tests now
8301         detect this.
8302
8303         useless-if-before-free: accept white space in the expression.
8304         * build-aux/useless-if-before-free: For now, any white space
8305         in the expression must be identical in the free argument.
8306
8307         useless-if-before-free: efficiency tweak
8308         * build-aux/useless-if-before-free: Make the expression-matching
8309         regexp "shy".
8310         Make the *outer* regexp shy, not the expr-matching one.
8311
8312         update code-in-comment to accept cast of free arg
8313         * build-aux/useless-if-before-free: Update regexp.
8314
8315 2008-05-25  Bruno Haible  <bruno@clisp.org>
8316
8317         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
8318         * modules/copy-file-tests (Files, Makefile.am): Update.
8319         * tests/test-copy-file.c (func_test_copy): Update.
8320
8321 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
8322
8323         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
8324
8325 2008-05-23  Bruno Haible  <bruno@clisp.org>
8326
8327         Improve support for ACLs on OSF/1.
8328         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
8329         Remove fallback for unknown flavors of ACLs.
8330
8331 2008-05-22  Bruno Haible  <bruno@clisp.org>
8332
8333         Add support for ACLs on OSF/1.
8334         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
8335         replacements.
8336         (acl_free_text): New macro fallback.
8337         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
8338         acl_free.
8339         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
8340         acl_free_text function. Require AC_C_INLINE.
8341
8342 2008-05-22  Bruno Haible  <bruno@clisp.org>
8343
8344         Make copy_acl work on MacOS X 10.5.
8345         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
8346         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
8347         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
8348         If MODE_INSIDE_ACL, don't assume that every system has the same text
8349         representation for ACLs as FreeBSD.
8350         * lib/copy-acl.c (copy_acl): Add support for platforms with
8351         !MODE_INSIDE_ACL.
8352         * lib/file-has-acl.c (file_has_acl): Likewise.
8353         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
8354         FreeBSD, MacOS X, or IRIX, respectively.
8355
8356 2008-05-22  Bruno Haible  <bruno@clisp.org>
8357
8358         * lib/acl.h: Don't include <sys/acl.h>.
8359         (GETACLCNT): Move fallback to lib/acl-internal.h.
8360         * lib/acl-internal.h: Include <sys/acl.h> here.
8361         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
8362
8363 2008-05-22  Bruno Haible  <bruno@clisp.org>
8364
8365         Split off copy_acl function to separate file.
8366         * lib/copy-acl.c: New file, extracted from lib/acl.c.
8367         * lib/acl.c (copy_acl): Moved function to separate file.
8368         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
8369         * modules/acl (Files): Add lib/copy-acl.c.
8370         (Makefiles.am): Augment lib_SOURCES.
8371
8372 2008-05-22  Bruno Haible  <bruno@clisp.org>
8373
8374         * modules/copy-file-tests: New file.
8375         * tests/test-copy-file.sh: New file.
8376         * tests/test-copy-file.c: New file.
8377         * tests/test-copy-file-sameacls.c: New file.
8378
8379 2008-05-22  Eric Blake  <ebb9@byu.net>
8380
8381         Avoid gcc warning.
8382         * tests/test-memcmp.c (main): Pass NULL indirectly.
8383
8384 2008-05-21  Bruno Haible  <bruno@clisp.org>
8385
8386         Add reference doc about ACLs.
8387         * doc/acl-resources.txt: New file.
8388         * doc/acl-cygwin.txt: New file.
8389
8390 2008-05-21  Bruno Haible  <bruno@clisp.org>
8391
8392         Avoid one more warning from gcc.
8393         * lib/vasnprintf.c (IF_LINT): Update comments.
8394         (VASNPRINTF): Use it also for the 'prefix' array initializer.
8395
8396 2008-05-21  Jim Meyering  <meyering@redhat.com>
8397
8398         avoid a warning from gcc
8399         * lib/vasnprintf.c (IF_LINT): Define.
8400         (scale10_round_decimal_long_double):
8401         Use it to avoid a "may be used uninitialized" warning.
8402         (scale10_round_decimal_double): Likewise.
8403
8404 2008-05-21  Simon Josefsson  <simon@josefsson.org>
8405
8406         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
8407         declared.
8408
8409 2008-05-20  Bruno Haible  <bruno@clisp.org>
8410
8411         * tests/test-memcmp.c (main): Test also the sign of the result. Test
8412         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
8413
8414 2008-05-20  Simon Josefsson  <simon@josefsson.org>
8415
8416         * modules/memcmp-tests: New file.
8417         * tests/test-memcmp.c: New file.
8418
8419 2008-05-19  Bruno Haible  <bruno@clisp.org>
8420
8421         * modules/propername (Notice, configure.ac): Put quoted "..." into
8422         --keyword option.
8423         * lib/propername.h: Update comments accordingly.
8424         Reported by Eric Blake.
8425
8426 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
8427
8428         * modules/getpass-gnu (Depends-on): Add fseeko.
8429
8430 2008-05-19  Simon Josefsson  <simon@josefsson.org>
8431
8432         * modules/base64-tests: New file.
8433
8434 2008-05-19  Bo Borgerson <gigabo@gmail.com>
8435
8436         * lib/base64.c (base64_decode_ctx): If a decode context structure
8437         was passed in use it to ignore newlines.  If a context structure
8438         was _not_ passed in, continue to treat newlines as garbage (this
8439         is the historical behavior).  Formerly base64_decode.
8440         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
8441         takes a decode context structure.
8442         * lib/base64.h (base64_decode): Macro for four-argument calls.
8443         (base64_decode_alloc): Likewise.
8444         * lib/base64.c (base64_decode_ctx): If a decode context structure
8445         was passed in use it to ignore newlines.  If a context structure
8446         was _not_ passed in, continue to treat newlines as garbage (this
8447         is the historical behavior).  Formerly base64_decode.
8448         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
8449         takes a decode context structure.
8450         * lib/base64.h (base64_decode): Macro for four-argument calls.
8451         (base64_decode_alloc): Likewise.
8452
8453 2008-05-19  Jim Meyering  <meyering@redhat.com>
8454
8455         avoid a warning from gcc
8456         * lib/trim.c (IF_LINT): Define.
8457         (trim2): Use it to avoid a "may be used uninitialized" warning.
8458
8459         Fix doc typo.
8460         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
8461
8462 2008-05-19  Bruno Haible  <bruno@clisp.org>
8463
8464         * doc/glibc-functions/getpass.texi: Document limits of other
8465         implementations.
8466
8467 2008-05-19  Simon Josefsson  <simon@josefsson.org>
8468             Bruno Haible <bruno@clisp.org>
8469
8470         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
8471
8472 2008-05-18  Bruno Haible  <bruno@clisp.org>
8473
8474         * modules/propername: New file, from GNU gettext.
8475         * lib/propername.h: New file, from GNU gettext.
8476         * lib/propername.c: New file, from GNU gettext.
8477         * MODULES.html.sh (Internationalization functions): Add propername.
8478
8479 2008-05-16  Jim Meyering  <meyering@redhat.com>
8480             Bruno Haible  <bruno@clisp.org>
8481
8482         Avoid some warnings from "gcc -Wshadow".
8483         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
8484
8485 2008-05-15  Eric Blake  <ebb9@byu.net>
8486
8487         Extend previous patch to cygwin 1.7.0.
8488         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
8489         fast implementation in cygwin >= 1.7.0.
8490         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8492
8493 2008-05-15  Bruno Haible  <bruno@clisp.org>
8494
8495         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
8496         implementation in glibc >= 2.9.
8497         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8499
8500 2008-05-15  Bruno Haible  <bruno@clisp.org>
8501
8502         * MODULES.html.sh (Internationalization functions): Remove linebreak.
8503         (Unicode string functions): Add unilbrk/*.
8504         Reported by Karl Berry.
8505
8506 2008-05-15  Eric Blake  <ebb9@byu.net>
8507
8508         Fix violation of <stdbool.h> replacement in regex.
8509         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
8510         * lib/regexec.c (re_search_internal): Likewise.
8511         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
8512
8513 2008-05-15  Jim Meyering  <meyering@redhat.com>
8514
8515         avoid distracting test output when git or cvs is not found
8516         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
8517         * tests/test-vc-list-files-git.sh: Likewise.
8518
8519 2008-05-15  Eric Blake  <ebb9@byu.net>
8520
8521         Glibc finally accepted the memmem speedup code, bugzilla #5514.
8522         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
8523         glibc version.
8524         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8525         * doc/posix-functions/strstr.texi (strstr): Likewise.
8526         * lib/str-two-way.h (MAX): Sychronize with glibc.
8527
8528 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
8529
8530         * lib/regcomp.c (optimize_utf8): Add a note on why we test
8531         opr.ctx_type.
8532         (calc_first): Initialize constraint field.
8533         (duplicate_node_closure): Use it instead of special casing ANCHORS.
8534         Fix grammar.
8535         (duplicate_node): Merge constraint field for all node types.
8536         (calc_eclosure_iter): Look at constraint field for all node types.
8537         * lib/regex_internal.c (create_cd_newstate): Don't look at
8538         opr.ctx_type.
8539
8540 2008-05-14  Bruno Haible  <bruno@clisp.org>
8541
8542         Help GCC to do better code generation.
8543         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
8544         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8545         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
8546         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
8547         Declare with attribute 'malloc' if supported.
8548
8549 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
8550
8551         use "echo STR|wc -c" rather than unportable "expr length STR"
8552         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
8553         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
8554
8555 2008-05-14  Jim Meyering  <meyering@redhat.com>
8556
8557         use dd ibs=$n count=1 ... rather than less-portable head -c$n
8558         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
8559         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
8560         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
8561         via Collin Lasse.
8562
8563 2008-05-14  Eric Blake  <ebb9@byu.net>
8564
8565         Avoid quadratic growth in gl_LIBSOURCES.
8566         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
8567         Suggested by Bruno Haible.
8568
8569         Test xmemdup0.
8570         * modules/xmemdup0-tests: New file.
8571         * tests/test-xmemdup0.c: Likewise.
8572
8573 2008-05-13  Eric Blake  <ebb9@byu.net>
8574
8575         Split xmemdup0 into its own module.
8576         * modules/xmemdup0: New file.
8577         * lib/xmemdup0.h: Likewise.
8578         * lib/xmemdup0.c: Likewise.
8579         * MODULES.html.sh (Memory management functions): Add xmemdup0.
8580         * lib/xalloc.h (xmemdup0): Remove.
8581         * lib/xmalloc.c (xmemdup0): Likewise.
8582
8583 2008-05-13  Eric Blake  <ebb9@byu.net>
8584             Bruno Haible  <bruno@clisp.org>
8585
8586         Reduce number of forks required during autoconf.
8587         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
8588         and gl_LIBSOURCES_DIR.
8589         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
8590         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
8591         m4_syscmd per file.
8592         <m4_foreach_w>: Move...
8593         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
8594
8595 2008-05-13  Eric Blake  <ebb9@byu.net>
8596
8597         * gnulib-tool: Fix various comment typos.
8598
8599 2008-05-12  Bruno Haible  <bruno@clisp.org>
8600
8601         Tailor the linebreaking algorithm.
8602         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
8603
8604 2008-05-12  Bruno Haible  <bruno@clisp.org>
8605
8606         Update to Unicode 5.0.0.
8607         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
8608         LBP_JV, LBP_JT. Redistribute values.
8609         (unilbrk_table): Change size.
8610         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
8611         Unicode TR#14 rev. 22.
8612         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
8613         LBP_JV, LBP_JT. Redistribute values.
8614         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
8615         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
8616         Update.
8617         * lib/unilbrk/lbrkprop1.h: Regenerated.
8618         * lib/unilbrk/lbrkprop2.h: Regenerated.
8619         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
8620         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
8621         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
8622         Likewise.
8623         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
8624         Likewise.
8625         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
8626         result.
8627         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8628         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8629         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8630         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
8631         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
8632         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
8633
8634 2008-05-11  Bruno Haible  <bruno@clisp.org>
8635
8636         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
8637
8638 2008-05-11  Bruno Haible  <bruno@clisp.org>
8639
8640         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
8641         * modules/unilbrk/gen-lbrk: New file.
8642
8643 2008-05-11  Bruno Haible  <bruno@clisp.org>
8644
8645         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
8646         * m4/sha512.m4 (gl_SHA512): Likewise.
8647
8648 2008-05-11  Jim Meyering  <meyering@redhat.com>
8649
8650         New modules: crypto/sha256, crypto/sha512 (from coreutils)
8651         * modules/crypto/sha256: New file.
8652         * modules/crypto/sha512: Likewise.
8653         * lib/sha256.c: Likewise.
8654         * lib/sha256.h: Likewise.
8655         * lib/sha512.c: Likewise.
8656         * lib/sha512.h: Likewise.
8657         * lib/u64.h: Likewise.
8658         * m4/sha256.m4: Likewise.
8659         * m4/sha512.m4: Likewise.
8660         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
8661
8662 2008-05-10  Bruno Haible  <bruno@clisp.org>
8663
8664         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
8665         (Input/Output <stdio.h>): Add xprintf.
8666         (Signal handling <signal.h>): Add strsignal.
8667         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
8668         (Core language properties): Add func.
8669         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
8670         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
8671         strings.
8672         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
8673         (Input/output): New section.
8674         (File system functions): Add openat-die, stat-macros.
8675         (Networking functions): Add sockets.
8676         (Unicode string functions): Add unictype/*.
8677         (Support for building libraries and executables): Add gperf.
8678         (Support for building documentation): Add agpl-3.0.
8679         (Misc): Add nocrash.
8680
8681 2008-05-10  Bruno Haible  <bruno@clisp.org>
8682
8683         * modules/unictype/gen-ctype: New file.
8684
8685 2008-05-10  Jim Meyering  <meyering@redhat.com>
8686
8687         Make chdir-safer.c more efficient on a system with no symlinks.
8688         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
8689         also if ELOOP is zero.  Suggested by Bruno Haible.
8690
8691         Make chdir-safer.c slightly safer.
8692         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
8693         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
8694
8695         Avoid compile failure on systems without ELOOP (like mingw).
8696         * lib/chdir-safer.c (ELOOP): Define if not already defined.
8697         Reported by Bruno Haible.
8698
8699 2008-05-10  Bruno Haible  <bruno@clisp.org>
8700
8701         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
8702         (is_utf8_encoding): Use a case-insensitive comparison.
8703         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
8704         streq.
8705
8706 2008-05-10  Bruno Haible  <bruno@clisp.org>
8707
8708         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
8709         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
8710         * lib/unilbrk/ulc-common.h (iconv_string_length,
8711         iconv_string_keeping_offsets): Remove declarations.
8712         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
8713         Don't include <iconv.h>, streq.h, xsize.h.
8714         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
8715         conversion.
8716         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
8717         <iconv.h>, streq.h, xsize.h.
8718         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
8719         conversion.
8720         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
8721         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
8722         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
8723         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
8724
8725 2008-05-10  Bruno Haible  <bruno@clisp.org>
8726
8727         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
8728         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
8729
8730         * modules/unilbrk/u32-width-linebreaks-tests: New file.
8731         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
8732
8733         * modules/unilbrk/u16-width-linebreaks-tests: New file.
8734         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
8735
8736         * modules/unilbrk/u8-width-linebreaks-tests: New file.
8737         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
8738
8739         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
8740         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
8741
8742         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
8743         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
8744
8745         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
8746         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
8747
8748         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
8749         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
8750
8751 2008-05-10  Bruno Haible  <bruno@clisp.org>
8752
8753         Split up 'linebreak' module.
8754         * lib/unilbrk.h: New file, based on lib/linebreak.h.
8755         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
8756         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
8757         modifications.
8758         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
8759         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
8760         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
8761         lib/linebreak.c.
8762         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
8763         lib/linebreak.c.
8764         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
8765         lib/linebreak.c.
8766         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
8767         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
8768         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
8769         lib/linebreak.c.
8770         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
8771         lib/linebreak.c.
8772         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
8773         lib/linebreak.c.
8774         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
8775         lib/linebreak.c.
8776         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
8777         lib/linebreak.c.
8778         * modules/unilbrk/base: New file.
8779         * modules/unilbrk/tables: New file.
8780         * modules/unilbrk/u8-possible-linebreaks: New file.
8781         * modules/unilbrk/u16-possible-linebreaks: New file.
8782         * modules/unilbrk/u32-possible-linebreaks: New file.
8783         * modules/unilbrk/ulc-common: New file.
8784         * modules/unilbrk/ulc-possible-linebreaks: New file.
8785         * modules/unilbrk/u8-width-linebreaks: New file.
8786         * modules/unilbrk/u16-width-linebreaks: New file.
8787         * modules/unilbrk/u32-width-linebreaks: New file.
8788         * modules/unilbrk/ulc-width-linebreaks: New file.
8789         * lib/linebreak.h: Remove file.
8790         * lib/linebreak.c: Remove file.
8791         * m4/linebreak.m4: Remove file.
8792         * modules/linebreak: Remove file.
8793         * NEWS: Mention the changes.
8794
8795 2008-05-09  Eric Blake  <ebb9@byu.net>
8796
8797         Add xmemdup0.
8798         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
8799         implementation.
8800         * lib/xmalloc.c (xmemdup0): New C implementation.
8801
8802 2008-05-08  Bruno Haible  <bruno@clisp.org>
8803
8804         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
8805
8806 2008-05-07  Eric Blake  <ebb9@byu.net>
8807
8808         Support cross-compilation of <wctype.h>.
8809         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
8810         AC_CACHE_CHECK.
8811
8812 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
8813
8814         * build-aux/vc-list-files: Add support for bzr.
8815
8816 2008-05-03  Jim Meyering  <meyering@redhat.com>
8817
8818         avoid failed assertion with tight malloc
8819         * tests/test-getndelim2.c: Correct an off-by-one assertion.
8820
8821 2008-05-03  Simon Josefsson  <simon@josefsson.org>
8822
8823         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
8824         are needed from arpa/inet.h.
8825         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
8826         Reported by Bruno Haible.
8827
8828 2008-05-02  Jim Meyering  <meyering@redhat.com>
8829
8830         avoid compilation error on FreeBSD 6
8831         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
8832
8833 2008-05-01  Jim Meyering  <meyering@redhat.com>
8834
8835         useless-if-before-free: correct --help's exit status description
8836         * build-aux/useless-if-before-free (usage): Like grep, exit 0
8837         for one or more matches, etc.  Reported by Bruno Haible.
8838
8839         vc-list-files: make the stand-alone gnulib test work
8840         * modules/vc-list-files-tests (configure.ac):
8841         Define and AC_SUBST abs_aux_dir.
8842         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
8843         $(abs_top_srcdir) to each script and having each of them
8844         duplicate the work of setting PATH, set PATH here, using
8845         the new variable, abs_aux_dir instead.
8846         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
8847         * tests/test-vc-list-files-git.sh: Likewise.
8848         Reported by Bruno Haible.
8849
8850 2008-05-01  Bruno Haible  <bruno@clisp.org>
8851
8852         * lib/getndelim2.c (getndelim2): Fix newsize computation during
8853         reallocation. Rename 'done' to 'found_delimiter'.
8854
8855 2008-05-01  Jim Meyering  <meyering@redhat.com>
8856
8857         vc-list-files: accommodate /bin/sh like the one from Solaris 10
8858         * build-aux/vc-list-files: Use `...`, not $(...).
8859
8860 2008-04-30  Jim Meyering  <meyering@redhat.com>
8861
8862         add tests for vc-list-files
8863         * modules/vc-list-files-tests: New module.
8864         * tests/test-vc-list-files-cvs.sh: New file.
8865         * tests/test-vc-list-files-git.sh: New file.
8866
8867         avoid a warning from gcc
8868         * lib/getndelim2.c (IF_LINT): Define.
8869         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
8870
8871         vc-list-files: work properly with build-aux/cvsu, too
8872         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
8873         to all cvs-based clauses.
8874
8875         vc-list-files: work properly in the CVS+awk case, too
8876         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
8877
8878         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
8879         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
8880         take more than one file argument, so .  Add quotes, just in case $dir
8881         ever contains a shell meta-character.  Prompted by Soren Hansen in
8882         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
8883
8884 2008-04-29  Eric Blake  <ebb9@byu.net>
8885
8886         Optimize getndelim2 to use block operations when possible.
8887         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
8888         freadseek, and memchr2.
8889         * lib/getndelim2.c (getndelim2): Use them for block reads.
8890
8891 2008-04-29  Bruno Haible  <bruno@clisp.org>
8892
8893         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
8894         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8895         * modules/inet_ntop (Depends-on): Add extensions.
8896         * modules/inet_pton (Depends-on): Likewise.
8897         Reported by Simon Josefsson.
8898
8899 2008-04-29  Jim Meyering  <meyering@redhat.com>
8900
8901         When the is more than one match in a block, match all of them.
8902         * build-aux/useless-if-before-free: Iterate through each block
8903         until there are no more matches.
8904
8905         Fix broken useless-if-before-free script.
8906         * build-aux/useless-if-before-free: Fix typo: missing "?" after
8907         the expression to match cast of argument to free-like function.
8908
8909 2008-04-29  Eric Blake  <ebb9@byu.net>
8910
8911         Use new header.
8912         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
8913
8914 2008-04-29  Jim Meyering  <meyering@redhat.com>
8915
8916         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
8917         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
8918         by gnulib to exist and to declare e.g., inet_ntop.
8919         Don't include "inet_ntop.h", now removed.
8920
8921         * m4/arpa_inet_h.m4: Remove trailing blanks.
8922
8923 2008-04-29  Eric Blake  <ebb9@byu.net>
8924
8925         Silence valgrind on safe reads beyond potential array bounds.
8926         * lib/rawmemchr.valgrind: New file.
8927         * lib/strchrnul.valgrind: Likewise.
8928         * modules/rawmemchr (Files): Distribute new file.
8929         * modules/strchrnul (Files): Likewise.
8930         Suggested by Bruno Haible.
8931
8932 2008-04-29  Bruno Haible  <bruno@clisp.org>
8933
8934         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
8935         (inet_ntop, inet_pton): Change portability warning's wording.
8936         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
8937         Invoke gl_CHECK_NEXT_HEADERS.
8938         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
8939         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
8940         set ARPA_INET_H.
8941         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8942         * modules/arpa_inet (Description): No longer only for systems that
8943         lack it.
8944         (Depends-on): Add include_next.
8945         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
8946         HAVE_ARPA_INET_H.
8947
8948 2008-04-29  Jim Meyering  <meyering@redhat.com>
8949
8950         * modules/mkdir (License): Re-license as LGPLv2+.
8951
8952 2008-04-29  Bruno Haible  <bruno@clisp.org>
8953
8954         * modules/rawmemchr (Maintainer): Set to Eric.
8955         * modules/strchrnul (Maintainer): Likewise.
8956
8957 2008-04-29  Simon Josefsson  <simon@josefsson.org>
8958
8959         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
8960         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
8961
8962         * modules/arpa_inet (arpa/inet.h): Use them.
8963
8964 2008-04-28  Eric Blake  <ebb9@byu.net>
8965
8966         Test getndelim2.
8967         * modules/getndelim2-tests: New file.
8968         * tests/test-getndelim2.c: Likewise.
8969         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
8970         stream.
8971         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
8972
8973         * MODULES.html.sh: Document new module.
8974
8975 2008-04-20  Bruno Haible  <bruno@clisp.org>
8976
8977         * lib/c-stack.c (die): Use raise.
8978         * modules/c-stack (Depends-on): Add raise.
8979
8980 2008-04-28  Bruno Haible  <bruno@clisp.org>
8981
8982         Expect rpmatch to be declared.
8983         * lib/yesno.c (rpmatch): Remove declaration.
8984
8985         Declare rpmatch.
8986         * lib/stdlib.in.h (rpmatch): New declaration.
8987         * lib/rpmatch.c: Include <stdlib.h> first.
8988         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
8989         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
8990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
8991         HAVE_RPMATCH.
8992         * modules/rpmatch (Depends-on): Add stdlib, extensions.
8993         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8994         (Include): Set to <stdlib.h>.
8995         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
8996         HAVE_RPMATCH.
8997         * NEWS: Document the change.
8998
8999 2008-04-28  Bruno Haible  <bruno@clisp.org>
9000
9001         Change rpmatch to use nl_langinfo when appropriate.
9002         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
9003         (N_): New macro.
9004         (localized_pattern): New function/macro.
9005         (try): Remove match, nomatch arguments. Copy the pattern into safe
9006         memory before caching it.
9007         (rpmatch): Use localized_pattern. Add translator comments.
9008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
9009         Suggested by Eric Blake.
9010         * modules/rpmatch (Depends-on): Add stdbool.
9011
9012 2008-04-28  Eric Blake  <ebb9@byu.net>
9013
9014         Add rawmemchr module, matching glibc.
9015         * modules/string (Makefile.am): New indicator.
9016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
9017         * lib/string.in.h (rawmemchr): Declare when appropriate.
9018         * modules/rawmemchr: New file.
9019         * m4/rawmemchr.m4: Likewise.
9020         * lib/rawmemchr.c: Likewise.
9021         * modules/rawmemchr-tests: Likewise.
9022         * tests/test-rawmemchr.c: Likewise.
9023         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
9024         module.
9025         * modules/strchrnul (Depends-on): Add rawmemchr.
9026         * lib/strchrnul.c (strchrnul): Optimize a corner case.
9027
9028         Whitespace cleanup.
9029         * tests/test-strchrnul.c: Reindent.
9030         * lib/strchrnul.c: Likewise.
9031
9032         Optimize and test strchrnul.
9033         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
9034         * modules/strchrnul-tests: New file.
9035         * tests/test-strchrnul.c: Likewise.
9036
9037         Remove intprops dependency.
9038         * modules/memchr (Depends-on): Remove intprops.
9039         * modules/memrchr (Depends-on): Likewise.
9040         * modules/memchr2 (Depends-on): Likewise.
9041         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
9042         * lib/memrchr.c (__memrchr): Likewise.
9043         * lib/memrchr2.c (memchr2): Likewise.
9044         Reported by Simon Josefsson.
9045
9046 2008-04-28  Simon Josefsson  <simon@josefsson.org>
9047
9048         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
9049         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9050
9051 2008-04-28  Simon Josefsson  <simon@josefsson.org>
9052
9053         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
9054
9055         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
9056
9057         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
9058
9059         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
9060         declarations.
9061         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
9062
9063         * m4/inet_pton.m4: Don't check for header files.
9064
9065         * m4/inet_ntop.m4: Don't check for header files.
9066
9067 2008-04-28  Simon Josefsson  <simon@josefsson.org>
9068
9069         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
9070         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
9071         trigger for cygwin).
9072         Reported by Bruno Haible  <bruno@clisp.org>.
9073
9074 2008-04-28  Bruno Haible  <bruno@clisp.org>
9075
9076         * doc/posix-functions/strdup.texi: Mention mingw problem.
9077
9078 2008-04-27  Bruno Haible  <bruno@clisp.org>
9079
9080         * modules/stat-time-tests (Depends-on): Add sleep.
9081         * tests/test-stat-time.c (force_unlink): New function.
9082         (cleanup): Use it.
9083         (test_mtime): Remove the ctime related tests.
9084         (test_ctime): New function, containing the ctime related tests.
9085         (main): Call test_ctime, except on native Windows platforms.
9086
9087 2008-04-27  Bruno Haible  <bruno@clisp.org>
9088
9089         * lib/rpmatch.c (rpmatch): Add some comments.
9090         Reported by James Youngman <jay@gnu.org>.
9091
9092 2008-04-27  Bruno Haible  <bruno@clisp.org>
9093
9094         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
9095         quiet NaNs.
9096
9097 2008-04-27  Bruno Haible  <bruno@clisp.org>
9098
9099         Make test-yesno.sh work on mingw.
9100         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
9101         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
9102         (main): Set stdin to binary mode.
9103         * modules/yesno-tests (Depends-on): Add binary-io.
9104
9105 2008-04-27  Bruno Haible  <bruno@clisp.org>
9106
9107         Fix 'isfinite' on x86, x86_64, ia64 platforms.
9108         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
9109         argument that lie outside the IEEE 854 domain.
9110         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
9111         (gl_ISFINITE): Use it.
9112         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
9113
9114 2008-04-27  Bruno Haible  <bruno@clisp.org>
9115
9116         Allow local renaming in config.h.
9117         * lib/memrchr.c (memrchr): Don't undefine outside libc.
9118
9119 2008-04-27  Bruno Haible  <bruno@clisp.org>
9120
9121         * lib/memchr.c (__memchr): Change type of 'i'.
9122         * lib/memchr2.c (memchr2): Likewise.
9123
9124 2008-04-26  Eric Blake  <ebb9@byu.net>
9125         and Bruno Haible  <bruno@clisp.org>
9126
9127         Optimize and test memrchr.
9128         * modules/memrchr (Depends-on): Add intprops.
9129         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
9130         * modules/memrchr-tests: New file.
9131         * tests/test-memrchr.c: New file.
9132
9133 2008-04-26  Bruno Haible  <bruno@clisp.org>
9134
9135         Add tentative support for DragonFly BSD.
9136         * lib/stdio-impl.h: Add macros for DragonFly BSD.
9137         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
9138         fp.
9139         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
9140         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
9141         * lib/fpurge.c (fpurge): Likewise.
9142         * lib/freadable.c (freaadable): Likewise.
9143         * lib/freadahead.c (freadahead): Likewise.
9144         * lib/freading.c (freading): Likewise.
9145         * lib/freadptr.c (freadptr): Likewise.
9146         * lib/freadseek.c (freadptrinc): Likewise.
9147         * lib/fseeko.c (fseeko): Likewise.
9148         * lib/fseterr.c (fseterr): Likewise.
9149         * lib/fwritable.c (fwritable): Likewise.
9150         * lib/fwriting.c (fwriting): Likewise.
9151
9152 2008-04-26  Bruno Haible  <bruno@clisp.org>
9153
9154         * lib/stdio-impl.h: New file.
9155         * lib/fbufmode.c: Include stdio-impl.h.
9156         (fbufmode): Use fp_, remove redundant #defines.
9157         * lib/fflush.c: Include stdio-impl.h.
9158         (clear_ungetc_buffer): Remove redundant #defines.
9159         * lib/fpurge.c: Include stdio-impl.h.
9160         (fpurge): Remove redundant #defines.
9161         * lib/freadable.c: Include stdio-impl.h.
9162         (freadable): Remove redundant #defines.
9163         * lib/freadahead.c: Include stdio-impl.h.
9164         (freadahead): Remove redundant #defines.
9165         * lib/freading.c: Include stdio-impl.h.
9166         (freading): Remove redundant #defines.
9167         * lib/freadptr.c: Include stdio-impl.h.
9168         (freadptr): Remove redundant #defines.
9169         * lib/freadseek.c: Include stdio-impl.h.
9170         (freadptrinc): Remove redundant #defines.
9171         * lib/fseeko.c: Include stdio-impl.h.
9172         (rpl_fseeko): Remove redundant #defines.
9173         * lib/fseterr.c: Include stdio-impl.h.
9174         (fseterr): Remove redundant #defines.
9175         * lib/fwritable.c: Include stdio-impl.h.
9176         (fwritable: Remove redundant #defines.
9177         * lib/fwriting.c: Include stdio-impl.h.
9178         (fwriting): Remove redundant #defines.
9179         * modules/fbufmode (Files): Add lib/stdio-impl.h.
9180         * modules/fflush (Files): Likewise.
9181         * modules/fpurge (Files): Likewise.
9182         * modules/freadable (Files): Likewise.
9183         * modules/freadahead (Files): Likewise.
9184         * modules/freading (Files): Likewise.
9185         * modules/freadptr (Files): Likewise.
9186         * modules/freadseek (Files): Likewise.
9187         * modules/fseeko (Files): Likewise.
9188         * modules/fseterr (Files): Likewise.
9189         * modules/fwritable (Files): Likewise.
9190         * modules/fwriting (Files): Likewise.
9191
9192 2008-04-26  Bruno Haible  <bruno@clisp.org>
9193
9194         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
9195         restore_seek_optimization, update_fpos_cache): New functions, extracted
9196         from rpl_fflush.
9197         (rpl_fflush): Use them.
9198         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
9199         (gl_REPLACE_FFLUSH): Use it.
9200
9201 2008-04-26  Bruno Haible  <bruno@clisp.org>
9202
9203         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
9204         on Solaris.
9205         * tests/test-xstrtoimax.sh: Likewise.
9206         * tests/test-xstrtoumax.sh: Likewise.
9207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9208
9209 2008-04-26  Bruno Haible  <bruno@clisp.org>
9210
9211         * modules/memchr-tests: New file.
9212         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
9213
9214 2008-04-26  Eric Blake  <ebb9@byu.net>
9215             Bruno Haible  <bruno@clisp.org>
9216
9217         * lib/memchr.c: Include intprops.h.
9218         (__memchr): Optimize parallel detection of matching bytes. Rename local
9219         variables. Add explanatory comments.
9220
9221 2008-04-26  Bruno Haible  <bruno@clisp.org>
9222
9223         Fix module 'memchr', broken since 2000-10-28.
9224         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
9225
9226 2008-04-26  Bruno Haible  <bruno@clisp.org>
9227
9228         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
9229         comments.
9230
9231 2008-04-25  Eric Blake  <ebb9@byu.net>
9232
9233         Use native fstatat on cygwin 1.7.0.
9234         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
9235         first.
9236
9237 2008-04-23  Eric Blake  <ebb9@byu.net>
9238
9239         Improve memchr2 performance.
9240         * lib/memchr2.c (memchr2): Further optimize parallel detection of
9241         NUL bytes.
9242         * modules/memchr2 (Depends-on): Use intprops.h.
9243
9244 2008-04-23  Simon Josefsson  <simon@josefsson.org>
9245
9246         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
9247         an inline function instead of a CPP macro.  Patch by Ben Pfaff
9248         <blp@cs.stanford.edu>.
9249
9250 2008-04-23  Simon Josefsson  <simon@josefsson.org>
9251
9252         * lib/arpa_inet.in.h: New file.
9253
9254         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
9255         (Makefile.am): Sed in substitute header file.
9256
9257         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
9258         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
9259
9260         * modules/inet_ntop (configure.ac): Use
9261         gl_ARPA_INET_MODULE_INDICATOR.
9262
9263         * modules/inet_pton (configure.ac): Use
9264         gl_ARPA_INET_MODULE_INDICATOR.
9265
9266 2008-04-22  Jim Meyering  <meyering@redhat.com>
9267
9268         * modules/verify (License): Re-license as LGPLv2+.
9269
9270 2008-04-22  Simon Josefsson  <simon@josefsson.org>
9271
9272         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
9273         parameter to void* as per POSIX standard (MinGW uses char*).
9274
9275 2008-04-21  Bruno Haible  <bruno@clisp.org>
9276
9277         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9278         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
9279         Define to replacements if REPLACE_ISWCNTRL is 1.
9280         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
9281         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
9282         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
9283         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
9284         what it fixes.
9285         * doc/posix-functions/iswalpha.texi: Likewise.
9286         * doc/posix-functions/iswblank.texi: Likewise.
9287         * doc/posix-functions/iswcntrl.texi: Likewise.
9288         * doc/posix-functions/iswdigit.texi: Likewise.
9289         * doc/posix-functions/iswgraph.texi: Likewise.
9290         * doc/posix-functions/iswlower.texi: Likewise.
9291         * doc/posix-functions/iswprint.texi: Likewise.
9292         * doc/posix-functions/iswpunct.texi: Likewise.
9293         * doc/posix-functions/iswspace.texi: Likewise.
9294         * doc/posix-functions/iswupper.texi: Likewise.
9295         * doc/posix-functions/iswxdigit.texi: Likewise.
9296         Reported by Alain Guibert.
9297
9298 2008-04-21  Bruno Haible  <bruno@clisp.org>
9299
9300         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
9301         Patch by Alain Guibert.
9302
9303 2008-04-21  Bruno Haible  <bruno@clisp.org>
9304
9305         Fix test failures on mingw.
9306         * tests/test-xstrtol.c (print_no_progname): New function.
9307         (main): Install it in error_print_progname hook.
9308         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
9309         * tests/test-xstrtoimax.sh: Likewise.
9310         * tests/test-xstrtoumax.sh: Likewise.
9311
9312 2008-04-21  Bruno Haible  <bruno@clisp.org>
9313
9314         Fix test failure on mingw.
9315         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
9316
9317 2008-04-21  Bruno Haible  <bruno@clisp.org>
9318
9319         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
9320         Actually assign a value.
9321
9322 2008-04-20  Bruno Haible  <bruno@clisp.org>
9323
9324         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
9325         take 2.
9326         * lib/canonicalize.c (canonicalize_file_name): Elide if the
9327         'canonicalize-lgpl' module is also used.
9328         * lib/canonicalize-lgpl.c: Undo last change.
9329         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
9330
9331 2008-04-20  Bruno Haible  <bruno@clisp.org>
9332
9333         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
9334         config.h. Provide _mkdir based fallback for mingw.
9335         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
9336         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
9337         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
9338         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
9339         rather than defining mkdir in config.h.
9340         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
9341         (gl_SYS_STAT_H_DEFAULTS): New macro.
9342         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
9343         HAVE_IO_H any more.
9344         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
9345         HAVE_DECL_MKDIR and HAVE_IO_H.
9346
9347 2008-04-20  Bruno Haible  <bruno@clisp.org>
9348
9349         * lib/isapipe.c: Port to native Windows platforms.
9350
9351 2008-04-20  Bruno Haible  <bruno@clisp.org>
9352
9353         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
9354
9355 2008-04-21  Eric Blake  <ebb9@byu.net>
9356
9357         Work around preprocessors that don't handle UINTMAX_MAX.
9358         * lib/memchr2.c (memchr2): Avoid embedded #if.
9359         Reported by Alain Guibert, fix suggested by Bruno Haible.
9360
9361 2008-04-21  Simon Josefsson  <simon@josefsson.org>
9362
9363         * doc/posix-functions/strftime.texi (strftime): Explain better
9364         Windows incompatibility.  Suggested by Micah Cowan
9365         <micah@cowan.name>.
9366
9367 2008-04-20  Bruno Haible  <bruno@clisp.org>
9368
9369         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
9370         unistr/u8-mblen.
9371
9372 2008-04-20  Bruno Haible  <bruno@clisp.org>
9373
9374         Fix test failure on platforms with non-GNU iconv.
9375         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
9376         (U_TO_U8): Use it, rather than u16_to_u8.
9377         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
9378         units at the end of the input string.
9379         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
9380
9381 2008-04-20  Bruno Haible  <bruno@clisp.org>
9382
9383         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
9384         when the resulting length is 0.
9385         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
9386
9387 2008-04-20  Bruno Haible  <bruno@clisp.org>
9388
9389         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
9390         works.
9391         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
9392
9393 2008-04-20  Bruno Haible  <bruno@clisp.org>
9394
9395         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
9396         * modules/tsearch-tests (configure.ac): Test for initstate function.
9397
9398 2008-04-20  Bruno Haible  <bruno@clisp.org>
9399
9400         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
9401         for nlink_t if missing.
9402         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
9403
9404 2008-04-19  Bruno Haible  <bruno@clisp.org>
9405
9406         Work around snprintf bug on Linux libc5.
9407         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
9408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9409         gl_SNPRINTF_SIZE1.
9410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9411         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
9412         that test failed.
9413         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9414         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
9415         * modules/snprintf (Files): Add m4/printf.m4.
9416         * modules/vsnprintf (Files): Likewise.
9417         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
9418         * doc/posix-functions/vsnprintf.texi: Likewise.
9419
9420 2008-04-19  Bruno Haible  <bruno@clisp.org>
9421
9422         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
9423         from 0.0058 to less than 10^-7.
9424
9425 2008-04-19  Bruno Haible  <bruno@clisp.org>
9426
9427         Fix rounding when a precision is given.
9428         * lib/vasnprintf.c (is_borderline): New function.
9429         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
9430         9...9x.
9431         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
9432         %e, %g.
9433         * tests/test-vasprintf-posix.c (test_function): Likewise.
9434         * tests/test-snprintf-posix.h (test_function): Likewise.
9435         * tests/test-sprintf-posix.h (test_function): Likewise.
9436         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
9437         * tests/test-printf-posix.h (test_function): Likewise.
9438         * tests/test-printf-posix.output: Update.
9439         Reported by John Darrington <john@darrington.wattle.id.au> via
9440         Ben Pfaff <blp@cs.stanford.edu>.
9441
9442 2008-04-18  Simon Josefsson  <simon@josefsson.org>
9443
9444         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
9445         Suggested by Bruno Haible <bruno@clisp.org>.
9446
9447 2008-04-17  Bruno Haible  <bruno@clisp.org>
9448
9449         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
9450         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
9451         implementation.
9452         Patch by Bruce Merry <bmerry@gmail.com>.
9453
9454 2008-04-17  Simon Josefsson  <simon@josefsson.org>
9455
9456         * doc/posix-functions/strftime.texi (strftime): Mention that %e
9457         doesn't work under Windows.
9458
9459 2008-04-16  Bruno Haible  <bruno@clisp.org>
9460
9461         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
9462         New macros.
9463         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
9464         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
9465         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
9466         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
9467         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
9468         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
9469         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
9470         macros.
9471         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
9472         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
9473         Northern Sotho, Uighur.
9474
9475 2008-04-16  Bruno Haible  <bruno@clisp.org>
9476
9477         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
9478         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
9479         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
9480         Reported by Daniel Bergström <daniel@octocode.com>.
9481
9482 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
9483             Bruno Haible  <bruno@clisp.org>
9484
9485         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
9486         function.
9487         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
9488         New functions, mostly extracted from gl_locale_name_default.
9489         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
9490
9491 2008-04-16  Eric Blake  <ebb9@byu.net>
9492
9493         Adjust strtod detection to catch glibc 2.7 bug.
9494         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
9495         Reported by John Gatewood Ham.
9496
9497 2008-04-16  Bruno Haible  <bruno@clisp.org>
9498
9499         Add tentative support for Linux libc5.
9500         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
9501         * lib/fpurge.c (fpurge): Likewise.
9502         * lib/freadable.c (freadable): Likewise.
9503         * lib/freadahead.c (freadahead): Likewise.
9504         * lib/freading.c (freading): Likewise.
9505         * lib/freadptr.c (freadptr): Likewise.
9506         * lib/freadseek.c (freadptrinc): Likewise.
9507         * lib/fseeko.c (rpl_fseeko): Likewise.
9508         * lib/fseterr.c (fseterr): Likewise.
9509         * lib/fwritable.c (fwritable): Likewise.
9510         * lib/fwriting.c (fwriting): Likewise.
9511         Reported by Alain Guibert <alguibert+bts@free.fr>.
9512
9513 2008-04-15  Bruno Haible  <bruno@clisp.org>
9514
9515         * modules/mathl (configure.ac): Define module indicator.
9516
9517 2008-04-15  Bruno Haible  <bruno@clisp.org>
9518
9519         * lib/logl.c (logl): Remove unused variables.
9520
9521 2008-04-15  Bruno Haible  <bruno@clisp.org>
9522
9523         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
9524         fails.
9525
9526 2008-04-15  Bruno Haible  <bruno@clisp.org>
9527
9528         * lib/trim.c (trim2): Fix argument of isspace() macro.
9529
9530 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
9531
9532         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
9533         to 0.
9534         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
9535
9536 2008-04-14  Bruno Haible  <bruno@clisp.org>
9537
9538         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
9539         AC_LANG_PROGRAM argument.
9540         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
9541         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
9542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9544         * m4/math_h.m4 (gl_MATH_H): Likewise.
9545         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9547         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9548         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
9549         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9550         * m4/regex.m4 (gl_REGEX): Likewise.
9551         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
9552         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
9553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
9555         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9556         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9558         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9559
9560 2008-04-14  Jim Meyering  <meyering@redhat.com>
9561
9562         test-strtod: fix typos: s/abs/fabs/
9563         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
9564
9565 2008-04-13  Bruno Haible  <bruno@clisp.org>
9566
9567         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
9568         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
9569         module is also used and while not building the reloc-wrapper.
9570
9571 2008-04-13  Bruno Haible  <bruno@clisp.org>
9572
9573         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
9574
9575 2008-04-13  Bruno Haible  <bruno@clisp.org>
9576
9577         Fix AIX compilation failure introduced on 2008-04-02.
9578         * tests/test-frexp.c (exp): Undefine before redefining.
9579         * tests/test-frexpl.c (exp): Likewise.
9580
9581 2008-04-13  Bruno Haible  <bruno@clisp.org>
9582
9583         Work around a HP-UX stdio bug.
9584         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
9585         * tests/test-ftello.c (main): Likewise.
9586         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
9587         * doc/posix-functions/ftello.texi: Likewise.
9588
9589 2008-04-13  Bruno Haible  <bruno@clisp.org>
9590
9591         Make test-signbit pass on HP-UX/hppa.
9592         * tests/test-signbit.c (minus_zerol): New variable.
9593         (test_signbitl): Use it.
9594
9595 2008-04-13  Bruno Haible  <bruno@clisp.org>
9596
9597         Make truncl work on OSF/1 4.0.
9598         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
9599         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
9600         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
9601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
9602         HAVE_DECL_TRUNCL.
9603         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
9604         HAVE_DECL_TRUNCL.
9605         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
9606
9607 2008-04-13  Bruno Haible  <bruno@clisp.org>
9608
9609         * lib/unictype.h: Remove trailing comma from enumeration definitions.
9610
9611 2008-04-13  Bruno Haible  <bruno@clisp.org>
9612
9613         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
9614         expression, so as to avoid HP-UX 11 cc compiler bug.
9615
9616 2008-04-13  Bruno Haible  <bruno@clisp.org>
9617
9618         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
9619
9620 2008-04-13  Bruno Haible  <bruno@clisp.org>
9621
9622         * lib/git-merge-changelog.c: Remove empty declaration outside of
9623         functions.
9624
9625 2008-04-13  Bruno Haible  <bruno@clisp.org>
9626
9627         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
9628
9629 2008-04-13  Bruno Haible  <bruno@clisp.org>
9630
9631         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
9632         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
9633         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
9634         also if it exists but lacks definitions of the SHUT_* macros.
9635         * modules/sys_socket (Description): Update.
9636         Reported by Elbert Pol <e.pol@chello.nl>.
9637
9638 2008-04-13  Bruno Haible  <bruno@clisp.org>
9639
9640         * lib/localcharset.c (OS2): Don't redefine if already defined.
9641         Reported by Elbert Pol <e.pol@chello.nl>.
9642
9643 2008-04-13  Bruno Haible  <bruno@clisp.org>
9644
9645         * lib/binary-io.h [__EMX__]: Include <io.h>.
9646         Reported by Elbert Pol <e.pol@chello.nl>.
9647
9648 2008-04-12  Bruno Haible  <bruno@clisp.org>
9649
9650         * lib/fpucw.h: Enable the definitions also for x86_64.
9651         Needed for NetBSD/x86_64.
9652         Reported by Thomas Klausner <tk@giga.or.at>.
9653
9654 2008-04-12  Bruno Haible  <bruno@clisp.org>
9655
9656         * tests/test-strtod.c: Include isnand.h.
9657         (main): Use isnand instead of isnan.
9658         Reported by Jim Meyering.
9659
9660 2008-04-12  Bruno Haible  <bruno@clisp.org>
9661
9662         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
9663         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9664
9665 2008-04-12  Jim Meyering  <meyering@redhat.com>
9666
9667         * m4/math_h.m4 (gl_MATH_H): Fix typos.
9668
9669 2008-04-12  Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
9672         Reported by Elbert Pol <e.pol@chello.nl>.
9673
9674 2008-04-12  Eric Blake  <ebb9@byu.net>
9675
9676         Work around Solaris 10 math.h bug.
9677         * m4/math_h.m4 (gl_MATH_H): Check for bug.
9678         (gl_MATH_H_DEFAULTS): Set up default.
9679         * modules/math (Makefile.am): Replace new indicators.
9680         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
9681         * tests/test-math.c (main): Test this.
9682         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
9683         * doc/posix-headers/math.texi (math.h): Mention bug.
9684         Reported by Nelson H. F. Beebe and Jim Meyering.
9685
9686 2008-04-11  Bruno Haible  <bruno@clisp.org>
9687
9688         Adapt to future versions of Apple GCC.
9689         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
9690         Reported by Peter O'Gorman <peter@pogma.com>.
9691
9692 2008-04-11  Bruno Haible  <bruno@clisp.org>
9693
9694         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
9695
9696 2008-04-11  Bruno Haible  <bruno@clisp.org>
9697
9698         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
9699
9700         * modules/getaddrinfo-tests (Makefile.am): Define
9701         test_getaddrinfo_LDADD.
9702
9703 2008-04-11  Bruno Haible  <bruno@clisp.org>
9704
9705         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
9706         (init): Fix syntax error.
9707         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
9708         is declared.
9709
9710 2008-04-11  Bruno Haible  <bruno@clisp.org>
9711
9712         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
9713         * modules/glob (Depends-on): Add stdbool.
9714
9715 2008-04-11  Bruno Haible  <bruno@clisp.org>
9716
9717         * lib/trim.c: Include <string.h>.
9718
9719 2008-04-11  Eric Blake  <ebb9@byu.net>
9720
9721         Avoid compile failure on OS/2.
9722         * lib/regex_internal.h (internal_function): Disable optimization
9723         on OS/2 (__EMX__), where it caused compiler error.
9724         Reported by Elbert Pol.
9725
9726 2008-04-11  Bruno Haible  <bruno@clisp.org>
9727
9728         Flush the standard error stream before aborting. Needed on mingw.
9729         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
9730         * tests/test-array_list.c (ASSERT): Likewise.
9731         * tests/test-array_oset.c (ASSERT): Likewise.
9732         * tests/test-avltree_list.c (ASSERT): Likewise.
9733         * tests/test-avltree_oset.c (ASSERT): Likewise.
9734         * tests/test-avltreehash_list.c (ASSERT): Likewise.
9735         * tests/test-binary-io.c (ASSERT): Likewise.
9736         * tests/test-byteswap.c (ASSERT): Likewise.
9737         * tests/test-c-ctype.c (ASSERT): Likewise.
9738         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
9739         * tests/test-c-strcasestr.c (ASSERT): Likewise.
9740         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
9741         * tests/test-c-strstr.c (ASSERT): Likewise.
9742         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
9743         * tests/test-canonicalize.c (ASSERT): Likewise.
9744         * tests/test-carray_list.c (ASSERT): Likewise.
9745         * tests/test-ceilf1.c (ASSERT): Likewise.
9746         * tests/test-ceilf2.c (ASSERT): Likewise.
9747         * tests/test-ceill.c (ASSERT): Likewise.
9748         * tests/test-count-one-bits.c (ASSERT): Likewise.
9749         * tests/test-fbufmode.c (ASSERT): Likewise.
9750         * tests/test-fflush2.c (ASSERT): Likewise.
9751         * tests/test-floorf1.c (ASSERT): Likewise.
9752         * tests/test-floorf2.c (ASSERT): Likewise.
9753         * tests/test-floorl.c (ASSERT): Likewise.
9754         * tests/test-fopen.c (ASSERT): Likewise.
9755         * tests/test-fpending.c (ASSERT): Likewise.
9756         * tests/test-fprintf-posix.c (ASSERT): Likewise.
9757         * tests/test-fpurge.c (ASSERT): Likewise.
9758         * tests/test-freadable.c (ASSERT): Likewise.
9759         * tests/test-freadahead.c (ASSERT): Likewise.
9760         * tests/test-freading.c (ASSERT): Likewise.
9761         * tests/test-freadptr.c (ASSERT): Likewise.
9762         * tests/test-freadptr2.c (ASSERT): Likewise.
9763         * tests/test-freadseek.c (ASSERT): Likewise.
9764         * tests/test-freopen.c (ASSERT): Likewise.
9765         * tests/test-frexp.c (ASSERT): Likewise.
9766         * tests/test-frexpl.c (ASSERT): Likewise.
9767         * tests/test-fseek.c (ASSERT): Likewise.
9768         * tests/test-fseeko.c (ASSERT): Likewise.
9769         * tests/test-fstrcmp.c (ASSERT): Likewise.
9770         * tests/test-ftell.c (ASSERT): Likewise.
9771         * tests/test-ftello.c (ASSERT): Likewise.
9772         * tests/test-func.c (ASSERT): Likewise.
9773         * tests/test-fwritable.c (ASSERT): Likewise.
9774         * tests/test-fwriting.c (ASSERT): Likewise.
9775         * tests/test-getdelim.c (ASSERT): Likewise.
9776         * tests/test-getline.c (ASSERT): Likewise.
9777         * tests/test-i-ring.c (ASSERT): Likewise.
9778         * tests/test-iconv-utf.c (ASSERT): Likewise.
9779         * tests/test-iconv.c (ASSERT): Likewise.
9780         * tests/test-isfinite.c (ASSERT): Likewise.
9781         * tests/test-isnand.c (ASSERT): Likewise.
9782         * tests/test-isnanf.c (ASSERT): Likewise.
9783         * tests/test-isnanl.h (ASSERT): Likewise.
9784         * tests/test-ldexpl.c (ASSERT): Likewise.
9785         * tests/test-linked_list.c (ASSERT): Likewise.
9786         * tests/test-linkedhash_list.c (ASSERT): Likewise.
9787         * tests/test-localename.c (ASSERT): Likewise.
9788         * tests/test-lseek.c (ASSERT): Likewise.
9789         * tests/test-mbscasecmp.c (ASSERT): Likewise.
9790         * tests/test-mbscasestr1.c (ASSERT): Likewise.
9791         * tests/test-mbscasestr2.c (ASSERT): Likewise.
9792         * tests/test-mbscasestr3.c (ASSERT): Likewise.
9793         * tests/test-mbscasestr4.c (ASSERT): Likewise.
9794         * tests/test-mbschr.c (ASSERT): Likewise.
9795         * tests/test-mbscspn.c (ASSERT): Likewise.
9796         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
9797         * tests/test-mbspbrk.c (ASSERT): Likewise.
9798         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
9799         * tests/test-mbsrchr.c (ASSERT): Likewise.
9800         * tests/test-mbsspn.c (ASSERT): Likewise.
9801         * tests/test-mbsstr1.c (ASSERT): Likewise.
9802         * tests/test-mbsstr2.c (ASSERT): Likewise.
9803         * tests/test-mbsstr3.c (ASSERT): Likewise.
9804         * tests/test-memchr2.c (ASSERT): Likewise.
9805         * tests/test-memmem.c (ASSERT): Likewise.
9806         * tests/test-open.c (ASSERT): Likewise.
9807         * tests/test-printf-frexp.c (ASSERT): Likewise.
9808         * tests/test-printf-frexpl.c (ASSERT): Likewise.
9809         * tests/test-printf-posix.c (ASSERT): Likewise.
9810         * tests/test-quotearg.c (ASSERT): Likewise.
9811         * tests/test-rbtree_list.c (ASSERT): Likewise.
9812         * tests/test-rbtree_oset.c (ASSERT): Likewise.
9813         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
9814         * tests/test-round1.c (ASSERT): Likewise.
9815         * tests/test-roundf1.c (ASSERT): Likewise.
9816         * tests/test-roundl.c (ASSERT): Likewise.
9817         * tests/test-signbit.c (ASSERT): Likewise.
9818         * tests/test-sleep.c (ASSERT): Likewise.
9819         * tests/test-snprintf-posix.c (ASSERT): Likewise.
9820         * tests/test-snprintf.c (ASSERT): Likewise.
9821         * tests/test-sprintf-posix.c (ASSERT): Likewise.
9822         * tests/test-stat-time.c (ASSERT): Likewise.
9823         * tests/test-strcasestr.c (ASSERT): Likewise.
9824         * tests/test-strerror.c (ASSERT): Likewise.
9825         * tests/test-striconv.c (ASSERT): Likewise.
9826         * tests/test-striconveh.c (ASSERT): Likewise.
9827         * tests/test-striconveha.c (ASSERT): Likewise.
9828         * tests/test-strsignal.c (ASSERT): Likewise.
9829         * tests/test-strstr.c (ASSERT): Likewise.
9830         * tests/test-strtod.c (ASSERT): Likewise.
9831         * tests/test-trunc1.c (ASSERT): Likewise.
9832         * tests/test-trunc2.c (ASSERT): Likewise.
9833         * tests/test-truncf1.c (ASSERT): Likewise.
9834         * tests/test-truncf2.c (ASSERT): Likewise.
9835         * tests/test-truncl.c (ASSERT): Likewise.
9836         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
9837         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
9838         * tests/test-vasnprintf.c (ASSERT): Likewise.
9839         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
9840         * tests/test-vasprintf.c (ASSERT): Likewise.
9841         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
9842         * tests/test-vprintf-posix.c (ASSERT): Likewise.
9843         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
9844         * tests/test-vsnprintf.c (ASSERT): Likewise.
9845         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
9846         * tests/test-wcwidth.c (ASSERT): Likewise.
9847         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
9848         * tests/test-xprintf-posix.c (ASSERT): Likewise.
9849         * tests/test-xvasprintf.c (ASSERT): Likewise.
9850         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
9851         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
9852         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
9853         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
9854         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
9855         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
9856         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
9857         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
9858         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
9859         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
9860         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
9861         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
9862         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
9863         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
9864         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
9865         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
9866         * tests/unictype/test-block_list.c (ASSERT): Likewise.
9867         * tests/unictype/test-block_of.c (ASSERT): Likewise.
9868         * tests/unictype/test-block_test.c (ASSERT): Likewise.
9869         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
9870         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
9871         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
9872         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
9873         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
9874         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
9875         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
9876         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
9877         * tests/unictype/test-combining.c (ASSERT): Likewise.
9878         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
9879         * tests/unictype/test-digit.c (ASSERT): Likewise.
9880         * tests/unictype/test-mirror.c (ASSERT): Likewise.
9881         * tests/unictype/test-numeric.c (ASSERT): Likewise.
9882         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
9883         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
9884         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
9885         * tests/unictype/test-scripts.c (ASSERT): Likewise.
9886         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
9887         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
9888         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
9889         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
9890         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
9891         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
9892         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
9893         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
9894         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
9895         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
9896         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
9897         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
9898         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
9899         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
9900         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
9901         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
9902         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
9903         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
9904         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
9905         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
9906         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
9907         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
9908         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
9909         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
9910         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
9911         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
9912         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
9913         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
9914         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
9915         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
9916         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
9917         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
9918         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
9919         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
9920         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
9921         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
9922         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
9923         Reported by Eric Blake.
9924
9925 2008-04-11  Bruno Haible  <bruno@clisp.org>
9926
9927         * lib/wchar.in.h: Tweak comment.
9928
9929 2008-04-11  Bruno Haible  <bruno@clisp.org>
9930
9931         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
9932         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
9933         gl_COMMON.
9934         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
9935
9936 2008-04-11  Bruno Haible  <bruno@clisp.org>
9937
9938         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
9939
9940 2008-04-11  Simon Josefsson  <simon@josefsson.org>
9941
9942         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
9943         of attempting to use non-existing /dev/*random.  Based on patch
9944         from Adam Strzelecki <ono@java.pl> in
9945         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
9946
9947 2008-04-08  Bruno Haible  <bruno@clisp.org>
9948
9949         Add tentative support for emx+gcc.
9950         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
9951         * lib/fpurge.c (fpurge): Likewise.
9952         * lib/freadable.c (freadable): Likewise.
9953         * lib/freadahead.c (freadahead): Likewise.
9954         * lib/freading.c (freading): Likewise.
9955         * lib/freadptr.c (freadptr): Likewise.
9956         * lib/freadseek.c (freadptrinc): Likewise.
9957         * lib/fseeko.c (rpl_fseeko): Likewise.
9958         * lib/fseterr.c (fseterr): Likewise.
9959         * lib/fwritable.c (fwritable): Likewise.
9960         * lib/fwriting.c (fwriting): Likewise.
9961         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
9962
9963 2008-04-09  Eric Blake  <ebb9@byu.net>
9964
9965         Avoid some autoconf warnings.
9966         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
9967         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
9968         * m4/afs.m4 (gl_AFS): Likewise.
9969         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
9970         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
9971         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9972         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
9973         (gl_INTEGER_TYPE_SUFFIX): Likewise.
9974         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
9975         (AC_CHECK_DECLS_ONCE): Likewise.
9976         Rename file...
9977         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
9978         gnulib-tool requires autoconf 2.59 or better.
9979         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
9980
9981 2008-04-08  Eric Blake  <ebb9@byu.net>
9982
9983         Use 'git describe --match' if present (added in git 1.5.5).
9984         * build-aux/git-version-gen: Limit result to tags that match 'v*'
9985         if possible.
9986
9987 2008-04-08  Bruno Haible  <bruno@clisp.org>
9988
9989         Add tentative support for OpenServer.
9990         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
9991         _ptr, _cnt.
9992         * lib/fpurge.c (fpurge): Likewise.
9993         * lib/freadable.c (freadable): Likewise.
9994         * lib/freadahead.c (freadahead): Likewise.
9995         * lib/freading.c (freading): Likewise.
9996         * lib/freadptr.c (freadptr): Likewise.
9997         * lib/freadseek.c (freadptrinc): Likewise.
9998         * lib/fseeko.c (rpl_fseeko): Likewise.
9999         * lib/fseterr.c (fseterr): Likewise.
10000         * lib/fwritable.c (fwritable): Likewise.
10001         * lib/fwriting.c (fwriting): Likewise.
10002         Reported by Roger Cornelius <rac@tenzing.org> and
10003         Brian K. White <brian@aljex.com>.
10004
10005 2008-04-06  Jim Meyering  <meyering@redhat.com>
10006
10007         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
10008
10009 2008-04-06  Bruno Haible  <bruno@clisp.org>
10010
10011         Avoid possible error with non-ASCII bytes in UTF-8 locales.
10012         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
10013         * tests/test-printf-posix.sh: Likewise.
10014         * tests/test-vfprintf-posix.sh: Likewise.
10015         * tests/test-vprintf-posix.sh: Likewise.
10016         * tests/test-xprintf-posix.sh: Likewise.
10017
10018 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10019
10020         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
10021         hide error from 'ls', needed on OS/2.
10022         Report by Elbert Pol <elbert.pol@gmail.com>.
10023
10024 2008-04-04  Eric Blake  <ebb9@byu.net>
10025
10026         Make test-fseeko.c failures meaningful.
10027         * tests/test-fseeko.c: Print line number on failure.
10028         * tests/test-fseek.c: Likewise.
10029         Reported by Nelson H. F. Beebe.
10030
10031         Improve strtod bug detection check.
10032         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
10033         required for Solaris 10.
10034         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
10035
10036 2008-04-04  Bruno Haible  <bruno@clisp.org>
10037
10038         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
10039         by m4/setenv.m4.
10040
10041 2008-04-03  Eric Blake  <ebb9@byu.net>
10042
10043         Ensure sane .version contents.
10044         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
10045         version string.
10046         * build-aux/git-version-gen: Improve documentation.
10047
10048         Make GNU make output nicer.
10049         * top/GNUmakefile [!_have-Makefile]: Add dependency on
10050         MAKECMDGOALS to enforce message for all command line targets.  Set
10051         srcdir for use in maint.mk.
10052
10053         Another maintainer tweak.
10054         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
10055         a target that regenerates version.
10056
10057 2008-04-03  Jim Meyering  <meyering@redhat.com>
10058
10059         vc-list-files: don't cause coreutils "make po-check" failure
10060         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
10061
10062 2008-04-03  Eric Blake  <ebb9@byu.net>
10063
10064         Allow VPATH usage of vc-list-files.
10065         * build-aux/vc-list-files (scriptversion): Add timestamp.
10066         (options): Add --help, --version, -C.
10067         (CVS): Support installed cvsu.
10068
10069 2008-04-02  Bruno Haible  <bruno@clisp.org>
10070
10071         Avoid some "statement with no effect" warnings from gcc.
10072         * tests/test-wctype.c (main): Explicitly ignore unused values.
10073         Reported by Jim Meyering.
10074
10075 2008-04-02  Jim Meyering  <meyering@redhat.com>
10076
10077         Avoid some warnings from "gcc -Wshadow".
10078         * tests/test-frexp.c (exp): Define to a different identifier.
10079         * tests/test-frexpl.c (exp): Likewise.
10080
10081 2008-04-03  Jim Meyering  <meyering@redhat.com>
10082
10083         bootstrap: remove dangling *.[ch] symlinks from lib
10084         * build-aux/bootstrap [dangling symlink removal]: Move find's
10085         -depth option to precede all others, to avoid a warning.
10086         Remove *.[ch] files too, and from "$source_base" (usually lib/).
10087
10088 2008-04-02  Bruno Haible  <bruno@clisp.org>
10089
10090         Avoid some warnings from "gcc -Wshadow".
10091         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
10092         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
10093         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
10094         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
10095         Reported by Jim Meyering.
10096
10097 2008-04-01  Bruno Haible  <bruno@clisp.org>
10098
10099         Fix test to work on IRIX 6.5 with cc.
10100         * tests/test-math.c (numeric_equal): New function.
10101         (main): Use it.
10102
10103 2008-04-01  Bruno Haible  <bruno@clisp.org>
10104
10105         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
10106
10107 2008-04-01  Bruno Haible  <bruno@clisp.org>
10108
10109         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
10110         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
10111         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
10112         (Depends-on): Remove math.
10113
10114         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
10115         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
10116         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
10117         (Depends-on): Remove math.
10118
10119         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
10120         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
10121         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
10122         (Depends-on): Remove math.
10123         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
10124         (Depends-on): Remove math.
10125
10126         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
10127         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
10128         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
10129         (Depends-on): Remove math.
10130         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
10131         (Depends-on): Remove math.
10132
10133         * tests/test-round1.c: Include nan.h.
10134         (main): Use NaNd instead of NAN.
10135         * modules/round-tests (Files): Add tests/nan.h.
10136
10137         * tests/test-trunc1.c: Include nan.h.
10138         (main): Use NaNd instead of NAN.
10139         * modules/trunc-tests (Files): Add tests/nan.h.
10140
10141         * tests/test-roundf1.c: Include nan.h.
10142         (main): Use NaNf instead of NAN.
10143         * modules/roundf-tests (Files): Add tests/nan.h.
10144
10145         * tests/test-truncf1.c: Include nan.h.
10146         (main): Use NaNf instead of NAN.
10147         * modules/truncf-tests (Files): Add tests/nan.h.
10148
10149         * tests/test-ceilf1.c: Include nan.h.
10150         (main): Use NaNf instead of NAN.
10151         * modules/ceilf-tests (Files): Add tests/nan.h.
10152
10153         * tests/test-floorf1.c: Include nan.h.
10154         (main): Use NaNf instead of NAN.
10155         * modules/floorf-tests (Files): Add tests/nan.h.
10156
10157         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
10158         (main): Use NaNf instead of NAN.
10159         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
10160
10161         * tests/test-isnand.c: Include nan.h instead of <math.h>.
10162         (main): Use NaNd instead of NAN.
10163         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
10164
10165         * tests/test-frexp.c: Include nan.h.
10166         (main): Use NaNd instead of NAN.
10167         * modules/frexp-tests (Files): Add tests/nan.h.
10168
10169         * lib/isnan.c: Don't include <math.h>.
10170         (FUNC): Don't use NAN macro.
10171         * modules/isnand-nolibm (Depends-on): Remove math.
10172         * modules/isnanf-nolibm (Depends-on): Remove math.
10173         * modules/isnanl (Depends-on): Remove math.
10174         * modules/isnanl-nolibm (Depends-on): Remove math.
10175
10176         * tests/nan.h: New file.
10177
10178 2008-04-01  Eric Blake  <ebb9@byu.net>
10179
10180         Fix typos.
10181         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
10182         values to be the right type.
10183
10184         For now, cater to gnulib strtod inaccuracies.
10185         * tests/test-strtod.c (main): Allow 1-ulp error on expected
10186         fractional results.  While not as nice from a QoI perspective, it
10187         is a quicker patch than correctly implementing decimal to binary
10188         rounding.
10189
10190 2008-03-31  Eric Blake  <ebb9@byu.net>
10191
10192         Guarantee a definition of NAN.
10193         * lib/math.in.h (NAN): Define if missing.
10194         * tests/test-math.c (main): Test it.
10195         * doc/posix-headers/math.texi (math.h): Document this.
10196         * lib/isnan.c (rpl_isnand): Use it.
10197         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
10198         * tests/test-floorf1.c (NaN): Likewise.
10199         * tests/test-frexp.c (NaN): Likewise.
10200         * tests/test-isnand.c (NaN): Likewise.
10201         * tests/test-isnanf.c (NaN): Likewise.
10202         * tests/test-round1.c (NaN): Likewise.
10203         * tests/test-roundf1.c (NaN): Likewise.
10204         * tests/test-snprintf-posix.h (NaN): Likewise.
10205         * tests/test-sprintf-posix.h (NaN): Likewise.
10206         * tests/test-trunc1.c (NaN): Likewise.
10207         * tests/test-truncf1.c (NaN): Likewise.
10208         * tests/test-vasnprintf-posix.c (NaN): Likewise.
10209         * tests/test-vasprintf-posix.c (NaN): Likewise.
10210         * modules/isnand-nolibm (Depends-on): Add math.
10211         * modules/isnanf-nolibm (Depends-on): Likewise.
10212         * modules/isnanl (Depends-on): Likewise.
10213         * modules/isnanl-nolibm (Depends-on): Likewise.
10214         * modules/snprintf-posix-tests (Depends-on): Likewise.
10215         * modules/sprintf-posix-tests (Depends-on): Likewise.
10216         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
10217         * modules/vsprintf-posix-tests (Depends-on): Likewise.
10218         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
10219         * modules/vasprintf-posix-tests (Depends-on): Likewise.
10220
10221 2008-03-31  Bruno Haible  <bruno@clisp.org>
10222
10223         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
10224         * doc/posix-functions/strtod.texi: Likewise.
10225
10226 2008-03-31  Bruno Haible  <bruno@clisp.org>
10227
10228         * tests/test-strtod.c (main): Don't use C99 syntax.
10229
10230 2008-03-31  Bruno Haible  <bruno@clisp.org>
10231
10232         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
10233         Reported by Eric Blake.
10234
10235 2008-03-31  Jim Meyering  <meyering@redhat.com>
10236
10237         Don't compare actual signbit return values.
10238         * tests/test-strtod.c (main): Rather, compare only their
10239         zero/non-zero nature.
10240
10241 2008-03-31  Eric Blake  <ebb9@byu.net>
10242
10243         More strtod documentation.
10244         * doc/posix-functions/strtod.texi (strtod): Interpret more test
10245         failures as distinct bugs.
10246
10247 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10248
10249         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
10250         Problem reported by Erik Benada in
10251         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
10252
10253 2008-03-30  Bruno Haible  <bruno@clisp.org>
10254
10255         * tests/test-strtod.c: Add comments about which assertion fails on which
10256         platform.
10257         * doc/posix-functions/strtod.texi: Add info about many more platforms.
10258
10259 2008-03-30  Eric Blake  <ebb9@byu.net>
10260
10261         Test signbit behavior on zeros.
10262         * tests/test-signbit.c (test_signbitf): Add tests for zero.
10263         (test_signbitd, test_signbitl): Likewise.
10264
10265         More strtod touchups.
10266         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
10267         sign of negative underflow, for now.  Use .5, not .1.
10268         * doc/posix-functions/strtod.texi (strtod): Mention these
10269         limitations.
10270         Reported by Jim Meyering.
10271
10272 2008-03-30  Bruno Haible  <bruno@clisp.org>
10273
10274         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
10275         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
10276
10277 2008-03-30  Bruno Haible  <bruno@clisp.org>
10278
10279         Avoid failure when attempting to return empty iconv results on some
10280         platforms.
10281         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
10282         allocation, don't report ENOMEM when the resulting string is empty.
10283
10284 2008-03-30  Bruno Haible  <bruno@clisp.org>
10285
10286         Fix buffer overrun.
10287         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
10288         Don't consider the width for tmp_length. Check count against tmp_length
10289         before doing the padding. Ensure enough allocation during padding.
10290
10291 2008-03-30  Eric Blake  <ebb9@byu.net>
10292
10293         strtod touchups.
10294         * lib/strtod.c (strtod): Avoid compiler warnings.
10295         Reported by Jim Meyering.
10296
10297 2008-03-30  Bruno Haible  <bruno@clisp.org>
10298
10299         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
10300         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
10301         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
10302         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
10303         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
10304         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
10305         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
10306         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
10307
10308         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
10309         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
10310         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
10311         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
10312         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
10313         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
10314         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
10315         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
10316
10317         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
10318         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
10319         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
10320         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
10321         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
10322         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
10323         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
10324         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
10325
10326         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
10327         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
10328
10329         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
10330         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
10331
10332         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
10333         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
10334
10335         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
10336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
10337         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
10338
10339         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
10340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
10341         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
10342
10343         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
10344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
10345         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
10346
10347         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
10348         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
10349         * modules/vasprintf (Depends-on): Add EOVERFLOW.
10350
10351         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
10352         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
10353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
10354         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
10355         (Depends-on): Add EOVERFLOW.
10356         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
10357         (Depends-on): Add EOVERFLOW.
10358         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
10359         (Depends-on): Add EOVERFLOW.
10360         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
10361         (Depends-on): Add EOVERFLOW.
10362         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
10363         (Depends-on): Add EOVERFLOW.
10364         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
10365         (Depends-on): Add EOVERFLOW.
10366         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
10367         (Depends-on): Add EOVERFLOW.
10368         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
10369         (Depends-on): Add EOVERFLOW.
10370
10371         * lib/sprintf.c (EOVERFLOW): Remove fallback.
10372         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
10373         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
10374
10375         * lib/snprintf.c (EOVERFLOW): Remove fallback.
10376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
10377         * modules/snprintf (Depends-on): Add EOVERFLOW.
10378
10379         * lib/poll.c (EOVERFLOW): Remove fallback.
10380         * modules/poll (Depends-on): Add EOVERFLOW.
10381
10382         * lib/getugroups.c (EOVERFLOW): Remove fallback.
10383         * modules/getugroups (Depends-on): Add EOVERFLOW.
10384
10385         * lib/getdelim.c (EOVERFLOW): Remove fallback.
10386         * modules/getdelim (Depends-on): Add EOVERFLOW.
10387
10388         * lib/ftell.c (EOVERFLOW): Remove fallback.
10389         * modules/ftell (Depends-on): Add EOVERFLOW.
10390
10391         * lib/fprintf.c (EOVERFLOW): Remove fallback.
10392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
10393         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
10394
10395         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
10396
10397         * modules/EOVERFLOW-tests: New file.
10398         * tests/test-EOVERFLOW.c: New file.
10399
10400         * modules/EOVERFLOW: New file.
10401         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
10402
10403 2008-03-30  Bruno Haible  <bruno@clisp.org>
10404
10405         Fix bug introduced on 2007-06-10.
10406         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
10407         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
10408
10409 2008-03-30  Bruno Haible  <bruno@clisp.org>
10410
10411         Improve freadseek's efficiency after ungetc.
10412         * lib/freadseek.c: Include freadahead.h.
10413         (freadptrinc): New function, extracted from freadseek.
10414         (freadseek): Use it in a loop. Use freadahead to determine the number
10415         of loop iterations.
10416         * modules/freadseek (Depends-on): Add freadahead.
10417         (configure.ac): Require AC_C_INLINE.
10418
10419 2008-03-30  Bruno Haible  <bruno@clisp.org>
10420
10421         * lib/freadseek.c (freadseek): Don't ignore the return value of
10422         freadptr.
10423
10424 2008-03-29  Eric Blake  <ebb9@byu.net>
10425
10426         Add hex float support.
10427         * modules/strtod (Depends-on): Add c-ctype.
10428         (Link): Mention POW_LIB.
10429         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
10430         whitespace between 'e' and exponent.
10431         * tests/test-strtod.c (main): Enable hex float tests.
10432         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
10433         now provides.
10434
10435         Document various strtod bugs, with some fixes.
10436         * doc/posix-functions/strtod.texi (strtod): Document bugs with
10437         "-0x", "inf", "nan", and hex constants.
10438         * doc/posix-functions/atof.texi (atof): Likewise.
10439         * modules/stdlib (Makefile.am): Support strtod.
10440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10441         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
10442         detect additional strtod bugs.
10443         * lib/stdlib.in.h (rpl_strtod): Add declarations.
10444         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
10445         bool where appropriate.  Parse 'inf' and 'nan'.
10446         * tests/test-strtod.c: New file.
10447         * modules/strtod (Depends-on): Add stdbool, stdlib.
10448         (configure.ac): Turn on module indicator.
10449         * modules/strtod-tests: New module.
10450
10451 2008-03-29  Eric Blake  <ebb9@byu.net>
10452
10453         Fix ftell on mingw.
10454         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
10455         * modules/ftell-tests (Depends-on): Add binary-io.
10456         * modules/ftello-tests (Depends-on): Likewise.
10457         * tests/test-ftell.c (main): Enhance test to cover behavior after
10458         ungetc.  Enforce binary mode.
10459         * tests/test-ftello.c (main): Likewise.
10460
10461         Pass test-freadseek on cygwin.
10462         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
10463         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
10464         ungetc buffer.
10465
10466         * tests/test-fflush2.c (main): Fix typo.
10467
10468 2008-03-29  Bruno Haible  <bruno@clisp.org>
10469
10470         * tests/test-fflush2.c (main): Temporarily disable the contents of
10471         this test.
10472         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
10473         Reported by Eric Blake.
10474
10475 2008-03-28  Simon Josefsson  <simon@josefsson.org>
10476
10477         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
10478         (GC_SHA224_DIGEST_SIZE): Add.
10479
10480         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
10481         (gc_hash_digest_length): Likewise.
10482         (gc_hash_buffer): Likewise.
10483
10484 2008-03-25  Bruno Haible  <bruno@clisp.org>
10485
10486         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
10487         detail which gettext release to use.
10488         Reported by Simon Josefsson.
10489
10490 2008-03-26  Jim Meyering  <meyering@redhat.com>
10491
10492         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
10493         * modules/gnumakefile (clean-GNUmakefile): Also, use
10494         test ... && ... || : syntax rather than if-then ... fi.
10495
10496         gnumakefile: Don't double-quote-expand $(VPATH) value.
10497         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
10498
10499 2008-03-24  Eric Blake  <ebb9@byu.net>
10500
10501         Alter GNUmakefile to install into top directory.
10502         * modules/maintainer-makefile: Split, and add dependency...
10503         * modules/gnumakefile: to this new module.
10504         * build-aux/GNUmakefile: Move...
10505         * top/GNUmakefile: ...here.
10506         * build-aux/maint.mk: Move...
10507         * top/maint.mk: ...here.
10508         * MODULES.html.sh (Support for maintaining...): Document new
10509         module.
10510
10511 2008-03-23  Bruno Haible  <bruno@clisp.org>
10512
10513         * gnulib-tool: New options --vc-files, --no-vc-files.
10514         (func_usage): Document them.
10515         (vc_files): New variable.
10516         (func_import): Consider vc_files.
10517         (func_create_testdir): Set vc_files to empty.
10518         Suggested by Jim Meyering and Karl Berry.
10519
10520 2008-03-23  Bruno Haible  <bruno@clisp.org>
10521
10522         Fix regex compilation error on HP-UX 11.
10523         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
10524         * modules/regex (Files): Add m4/mbstate_t.m4.
10525         Reported by Ton Voon <ton.voon@altinity.com>.
10526
10527 2008-03-23  Bruno Haible  <bruno@clisp.org>
10528
10529         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
10530
10531 2008-03-23  Eric Blake  <ebb9@byu.net>
10532             Bruno Haible  <bruno@clisp.org>
10533
10534         Install files from top/ in the destination directory.
10535         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
10536         augmentation also for the files from top/.
10537         (func_import, func_create_testdir): Rewrite file names:
10538         top/filename -> filename.
10539
10540 2008-03-23  Bruno Haible  <bruno@clisp.org>
10541
10542         Tweak "gnulib --version" output.
10543         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
10544
10545 2008-03-23  Bruno Haible  <bruno@clisp.org>
10546
10547         Tweak "gnulib --version" output.
10548         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
10549         rather than contents of ChangeLog, when possible.
10550
10551 2008-03-21  Eric Blake  <ebb9@byu.net>
10552
10553         More --version tweaks.
10554         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
10555         date of last ChangeLog entry.
10556
10557 2008-03-21  Jim Meyering  <meyering@redhat.com>
10558
10559         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
10560
10561 2008-03-20  Eric Blake  <ebb9@byu.net>
10562
10563         VPATH fix.
10564         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
10565
10566 2008-03-20  Simon Josefsson  <simon@josefsson.org>
10567
10568         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
10569         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
10570
10571 2008-03-20  Eric Blake  <ebb9@byu.net>
10572
10573         Sync GNUmakefile with coreutils.
10574         * build-aux/GNUmakefile (have-Makefile): Rename...
10575         (_have-Makefile): ...to this, for namespace consideration.
10576         (GNUmakefile.cfg): Include, if present.
10577         (_autoreconf): Define a default.
10578         (_is-dist-target): New rule for rebuilds to pick up intra-release
10579         version.
10580         (maint-cfg.mk): Rename...
10581         (cfg.mk): ...to this.
10582
10583 2008-03-18  Jim Meyering  <meyering@redhat.com>
10584
10585         New script and module: mktempd
10586         * MODULES.html.sh (maint+release support): Add mktempd.
10587         * build-aux/mktempd: New file.
10588         * modules/mktempd: New file.
10589
10590 2008-03-15  Jim Meyering  <meyering@redhat.com>
10591
10592         Undo last change.
10593         * lib/sha1.c, lib/md5.c: 63 != ~63.
10594         Reported by Andreas Schwab.
10595
10596         sha1.c, md5.c: Hoist a redundant expression.
10597         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
10598         "ctx->buflen" only once, before calling *_process_block.
10599         * lib/md5.c (md5_process_bytes): Likewise.
10600
10601 2008-03-14  Eric Blake  <ebb9@byu.net>
10602
10603         Bump copyright year in files generated by gnulib-tool.
10604         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
10605         gnulib-tool, rather than hard-coding it.
10606
10607         Fix 'gnulib-tool --version' output to work with git.
10608         * gnulib-tool (func_gnulib_dir): New function, extracted from...
10609         (startup): ...here.
10610         (func_version): Use it to invoke git-version-gen, rather than
10611         relying on CVS keyword expansion.  Modernize wording.
10612         (cvsdatestamp, last_checkin_date, version): Kill unused
10613         variables.
10614
10615 2008-03-12  Jim Meyering  <meyering@redhat.com>
10616
10617         Recognize optional cast of the argument to free.
10618         * build-aux/useless-if-before-free: Update regexps.
10619
10620         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
10621
10622 2008-03-11  Bruno Haible  <bruno@clisp.org>
10623
10624         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
10625         by a single package.
10626         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
10627         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
10628         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
10629         Reported by Sam Steingold <sds@gnu.org>.
10630
10631 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10632
10633         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
10634         repositories.
10635
10636 2008-03-11  Bruno Haible  <bruno@clisp.org>
10637
10638         Avoid conflicts between local macro definitions.
10639         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10640         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
10641
10642 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
10643             Bruno Haible  <bruno@clisp.org>
10644
10645         Make va_copy work with some version of xlc on AIX 5.1.
10646         * lib/stdarg.in.h: New file.
10647         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
10648         On AIX, use a <stdarg.h> file substitute.
10649         * modules/stdarg (Files): Add lib/stdarg.in.h.
10650         (Depends-on): Add include_next.
10651         (Makefile.am): Build a stdarg.h substitute if requested.
10652         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
10653
10654 2008-03-10  Bruno Haible  <bruno@clisp.org>
10655
10656         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
10657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10658         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
10659
10660 2008-03-10  Bruno Haible  <bruno@clisp.org>
10661
10662         * modules/stdlib (Depends-on): Add include_next, remove
10663         absolute-header.
10664
10665 2008-03-09  Bruno Haible  <bruno@clisp.org>
10666
10667         * lib/freadahead.h (freadahead): Document more precisely.
10668         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
10669         the sum of both buffer sizes.
10670         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
10671         * NEWS: Document the change.
10672
10673 2008-03-09  Bruno Haible  <bruno@clisp.org>
10674
10675         Extend freadptr to return also the buffer size.
10676         * lib/freadptr.h (freadptr): Add sizep argument.
10677         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
10678         (freadptr): Add sizep argument. Determine buffer size like freadahead
10679         does.
10680         * tests/test-freadptr.c: Don't include freadahead.h.
10681         (main): Adapt for new calling convention of freadptr.
10682         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
10683         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
10684         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
10685         tests/test-freadptr2.sh.
10686         (Depends): Remove freadahead.
10687         (TESTS): Add test-freadptr2.sh.
10688         (check_PROGRAMS): Add test-freadptr2.
10689
10690 2008-03-09  Bruno Haible  <bruno@clisp.org>
10691
10692         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
10693         Report and solution by Simon Josefsson.
10694
10695 2008-03-06  Bruno Haible  <bruno@clisp.org>
10696
10697         Make fflush after ungetc work on BSD platforms.
10698         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
10699         * tests/test-fflush2.c: New file.
10700         * tests/test-fflush2.sh: New file.
10701         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
10702         tests/test-fflush2.c.
10703         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
10704         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
10705
10706 2008-03-06  Eric Blake  <ebb9@byu.net>
10707
10708         Likewise for ftello.
10709         * modules/ftello (Dependencies): Add extensions.
10710         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
10711
10712 2008-03-06  Bruno Haible  <bruno@clisp.org>
10713
10714         * modules/fseeko (Dependencies): Add extensions.
10715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
10716         Needed on glibc systems.
10717
10718 2008-03-06  Bruno Haible  <bruno@clisp.org>
10719
10720         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
10721         email address.
10722         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10723
10724 2008-03-06  Bruno Haible  <bruno@clisp.org>
10725
10726         * users.txt: Add libgnupdf.
10727
10728 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10729
10730         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
10731         (Header File Substitutes, Function Substitutes,
10732         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
10733         (Build robot for gnulib): Fix typo.
10734
10735 2008-03-06  Bruno Haible  <bruno@clisp.org>
10736
10737         * doc/gnulib-tool.texi (VCS Issues): Small updates.
10738         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10739
10740 2008-03-06  Bruno Haible  <bruno@clisp.org>
10741
10742         * doc/func.texi: New file, extracted from doc/gnulib.texi.
10743         * doc/gnulib.texi: Include it.
10744
10745 2008-03-06  Simon Josefsson  <simon@josefsson.org>
10746
10747         * modules/func (License): Change license to unlimited; there was
10748         no LGPL parts in the module anyway.
10749
10750 2008-03-06  Simon Josefsson  <simon@josefsson.org>
10751
10752         * modules/__func__: Renamed to modules/func.
10753         * modules/__func__-tests: Renamed to modules/func-tests.
10754         * tests/test-__func__.c: Renamed to tests/test-func.c.
10755         * m4/__func__.m4: Renamed to m4/func.m4.
10756         * doc/gnulib.texi (__func__): Section renamed to func.
10757         Suggested by Eric Blake <ebb9@byu.net>.
10758
10759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
10760
10761         * doc/gnulib.texi (__func__): Use C99 terminology when talking
10762         about __func__.  Make example self-contained.  Suggested by Eric
10763         Blake <ebb9@byu.net>.
10764
10765         * tests/test-__func__.c (main): Avoid extraneous () around __func.
10766         Suggested by Eric Blake <ebb9@byu.net>.
10767
10768 2008-03-06  Simon Josefsson  <simon@josefsson.org>
10769
10770         * modules/__func__: New file.
10771         * modules/__func__-tests: New file.
10772         * tests/test-__func__.c: New file.
10773         * m4/__func__.m4: New file.
10774         * doc/gnulib.texi (__func__): Document __func__ module.
10775
10776 2008-03-05  Simon Josefsson  <simon@josefsson.org>
10777
10778         * modules/byteswap (License): Re-license as LGPLv2+.
10779
10780 2008-03-05  Simon Josefsson  <simon@josefsson.org>
10781
10782         * doc/Makefile: Add pdf target.
10783
10784 2008-03-05  Simon Josefsson  <simon@josefsson.org>
10785
10786         * modules/inline (License): Use 'unlimited', since there are only
10787         *.m4 files in this module.
10788
10789 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
10790             Bruno Haible  <bruno@clisp.org>
10791
10792         Add support for HP C 7.1 on OpenVMS 8.3.
10793         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
10794
10795 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
10796
10797         Update VMS specifics.
10798         * lib/getopt.c [VMS]: Remove include of unixlib.h.
10799
10800 2008-03-02  Jim Meyering  <meyering@redhat.com>
10801
10802         Remove the last dependency on the "free" module.
10803         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
10804         Reported by Bob Proulx.
10805
10806         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
10807
10808         Remove useless "if" tests before free.  Deprecate "free" module.
10809         * doc/posix-functions/free.texi: Mention that this
10810         module is no longer useful.
10811         * modules/free (Notice): Say this module is obsolete.
10812         * modules/readutmp (Depends-on): Remove free.
10813         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
10814         * lib/putenv.c (putenv): Likewise.
10815         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
10816         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
10817         * tests/test-c-strcasestr.c (main): Likewise.
10818         * tests/test-c-strstr.c (main): Likewise.
10819         * tests/test-mbscasestr1.c (main): Likewise.
10820         * tests/test-mbscasestr2.c (main): Likewise.
10821         * tests/test-mbsstr1.c (main): Likewise.
10822         * tests/test-mbsstr2.c (main): Likewise.
10823         * tests/test-memmem.c (main): Likewise.
10824         * tests/test-strcasestr.c (main): Likewise.
10825         * tests/test-striconv.c (main): Likewise.
10826         * tests/test-striconveh.c (main): Likewise.
10827         * tests/test-striconveha.c (main): Likewise.
10828         * tests/test-strstr.c (main): Likewise.
10829
10830         * build-aux/git-version-gen: Adjust a comment and the Usage string.
10831
10832         bootstrap: sync from coreutils again
10833         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
10834
10835 2008-03-01  Jim Meyering  <meyering@redhat.com>
10836
10837         bootstrap: sync from coreutils
10838         * build-aux/bootstrap (update_po_files): Copy a .po file into place
10839         also when the target doesn't exist.
10840
10841 2008-03-01  Eric Blake  <ebb9@byu.net>
10842
10843         Fix bugs in last patch.
10844         * lib/memchr2.c (memchr2): Fix typo.
10845         * tests/test-memchr2.c: Test previous bug, and don't use GNU
10846         extension.
10847         Reported by Bruce Korb.
10848
10849         New module 'memchr2'.
10850         * modules/memchr2: New file.
10851         * modules/memchr2-tests: Likewise.
10852         * lib/memchr2.h: Likewise.
10853         * lib/memchr2.c: Likewise, based on memchr.c.
10854         * tests/test-memchr2.c: New test.
10855         * MODULES.html.sh (String handling): Add memchr2.
10856
10857 2008-02-29  Bruno Haible  <bruno@clisp.org>
10858
10859         * modules/freadseek-tests: New file.
10860         * tests/test-freadseek.sh: New file.
10861         * tests/test-freadseek.c: New file.
10862
10863         New module 'freadseek'.
10864         * modules/freadseek: New file.
10865         * lib/freadseek.h: New file.
10866         * lib/freadseek.c: New file.
10867         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
10868
10869 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
10870
10871         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
10872         wydawca.
10873
10874         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
10875         program_invocation_name and program_invocation_short_name are
10876         present.
10877
10878 2008-02-28  Bruno Haible  <bruno@clisp.org>
10879
10880         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
10881         * tests/test-freadptr.sh: Also test non-seekable stdin.
10882
10883 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
10884
10885         * build-aux/bootstrap (source_base, m4_base)
10886         (doc_base, tests_base): New variables.
10887         (gnulib_tool_options): Do not hardcode base directories, use
10888         the above variables instead.
10889
10890 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
10891
10892         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
10893
10894 2008-02-28  Bruno Haible  <bruno@clisp.org>
10895
10896         * modules/freadptr-tests: New file.
10897         * tests/test-freadptr.sh: New file.
10898         * tests/test-freadptr.c: New file.
10899
10900         New module 'freadptr'.
10901         * modules/freadptr: New file.
10902         * lib/freadptr.h: New file.
10903         * lib/freadptr.c: New file.
10904         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
10905
10906 2008-02-26  Karl Berry  <karl@freefriends.org>
10907
10908         Sync from Libtool:
10909         * libltdl/argz.c (argz_add, argz_count): New functions.
10910         * libltdl/argz.in.h: Declare them.
10911         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
10912
10913 2008-02-22  Bruno Haible  <bruno@clisp.org>
10914
10915         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
10916         is a pointer type.  Needed for HP-UX 10.
10917         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
10918         * doc/posix-functions/gmtime_r.texi: Likewise.
10919         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
10920
10921 2008-02-24  Bruno Haible  <bruno@clisp.org>
10922
10923         * modules/environ-tests: New file.
10924         * tests/test-environ.c: New file.
10925
10926         New module 'environ'.
10927         * modules/environ: New file.
10928         * lib/unistd.in.h (environ): New declaration.
10929         * m4/environ.m4: New file.
10930         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
10931         after use.
10932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
10933         HAVE_DECL_ENVIRON.
10934         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
10935         HAVE_DECL_ENVIRON.
10936         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
10937         wrong claim that 'environ' is missing on some systems.
10938         * modules/execute (Depends-on): Add environ.
10939         * lib/execute.c (environ): Remove fallback declaration.
10940         * modules/pipe (Depends-on): Add environ.
10941         * lib/pipe.c (environ): Remove fallback declaration.
10942         * modules/setenv (Depends-on): Add environ.
10943         * lib/setenv.c (environ): Remove fallback declaration.
10944         * modules/unsetenv (Depends-on): Add environ.
10945         * lib/unsetenv.c (environ): Remove fallback declaration.
10946         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
10947         m4/environ.m4.
10948         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
10949         (gl_PREREQ_UNSETENV): Likewise.
10950
10951 2008-02-24  Bruno Haible  <bruno@clisp.org>
10952
10953         * doc/posix-functions/environ.texi: Document the MacOS X problem.
10954
10955 2008-02-20  Bob Proulx  <bob@proulx.com>
10956
10957         Enable use of older two part flavor 'git describe'.
10958         * build-aux/git-version-gen: If using the older two part flavor of
10959         git version then recreate the third part now present in the
10960         newer three part flavor of git describe.
10961
10962 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
10963
10964         * lib/fts.c (fts_build): Typo correction to comment.
10965
10966 2008-02-17  Bruno Haible  <bruno@clisp.org>
10967
10968         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
10969         generating no-op conflicts.
10970
10971 2008-02-17  Bruno Haible  <bruno@clisp.org>
10972
10973         Speed up by 10%.
10974         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
10975         result_entries, rather than an index-based loop.
10976
10977 2008-02-17  Bruno Haible  <bruno@clisp.org>
10978
10979         Speed up by 25%.
10980         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
10981         'hashcode_cached'.
10982         (entry_create): New function.
10983         (entry_hashcode): Use the cached hashcode if possible.
10984         (read_changelog_file, try_split_merged_entry): Use entry_create.
10985
10986 2008-02-17  Bruno Haible  <bruno@clisp.org>
10987
10988         Speed up from O(n^2) to O(n) for long ChangeLog files.
10989         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
10990         (read_changelog_file): Change implementation of entries_reversed list
10991         to rbtreehash.
10992         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
10993
10994 2008-02-17  Bruno Haible  <bruno@clisp.org>
10995
10996         New option --split-merged-entry.
10997         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
10998         (find_paragraph_end, try_split_merged_entry): New functions.
10999         (long_options): Add option --split-merged-entry.
11000         (usage): Document option --split-merged-entry.
11001         (main): Implement option --split-merged-entry.
11002         Reported by Eric Blake.
11003
11004 2008-02-17  Bruno Haible  <bruno@clisp.org>
11005
11006         * lib/git-merge-changelog.c: Include c-strstr.h.
11007         (main): Support the "git pull --rebase" situation.
11008         * modules/git-merge-changelog (Depends-on): Add c-strstr.
11009         Reported by Eric Blake.
11010
11011 2008-02-16  Eric Blake  <ebb9@byu.net>
11012
11013         Avoid doubling \ in common case of "c-maybe" quoting style.
11014         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
11015         eliding outer quotes.
11016         * lib/quotearg.h: Document this.
11017         * tests/test-quotearg.c (result_strings, inputs, results_g)
11018         (flag_results, locale_results): Test it by adding a new string to
11019         each test group.
11020         (compare_strings): Test new string.
11021
11022 2008-02-13  Eric Blake  <ebb9@byu.net>
11023
11024         Avoid trigraph quoting in default output.
11025         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
11026         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
11027         unless explicitly requested.
11028         * tests/test-quotearg.c (flag_results, main): Add additional tests.
11029
11030 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
11031
11032         Don't rely on signed integer overflowing to negative value.
11033         * lib/getugroups.c (getugroups): Include <limits.h>.
11034         Instead, compare against INT_MAX, and increment only if the test passes.
11035
11036 2008-02-13  Jim Meyering  <meyering@redhat.com>
11037         and Eric Blake  <ebb9@byu.net>
11038
11039         Avoid shadowing warning and compile errors on Linux.
11040         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
11041         forwarding macros on Linux.
11042         (dcgettext): Define a stub, for Linux.
11043         (results_g, main): Avoid warnings.
11044
11045 2008-02-12  Eric Blake  <ebb9@byu.net>
11046
11047         Silence warning in last patch.
11048         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
11049
11050         Quotearg part 4: add tests, fix c-maybe colon quoting.
11051         * lib/quotearg.h: Improve documentation.
11052         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
11053         escapes when adding outer quotes.  When quoting trigraphs, use
11054         valid C notation.  When quoting NUL, omit extra characters if next
11055         character is not digit.  Alter prototype.
11056         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
11057         callers.
11058         * modules/quotearg-tests: New module.
11059         * tests/test-quotearg.c: New test.
11060
11061 2008-02-07  Eric Blake  <ebb9@byu.net>
11062
11063         Quotearg part 3: add flag to control outer quote elision.
11064         * lib/quotearg.h (c_maybe_quoting_style): New style.
11065         (enum quoting_flags): Better documentation of flags.
11066         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
11067         c-maybe style.
11068         (quotearg_buffer_restyled): Handle new flag to elide outer
11069         quotes.
11070
11071         Quotearg part 2: add flag that can control NUL elision.
11072         * lib/quotearg.h (set_quoting_flags): New prototype.
11073         * lib/quotearg.c (struct quoting_options): Add flag field.
11074         (set_quoting_flags): New function.
11075         (quotearg_buffer_restyled): Add flags parameter.
11076         (quotearg_alloc_mem): Set the flag if length cannot be returned.
11077         (quotearg_n_options): Set the flag, since length cannot be
11078         returned.
11079         (quoting_options_from_style): Default flags correctly.
11080
11081         Quotearg part 1: more wrappers, restore quotearg_char state.
11082         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
11083         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
11084         (quotearg_colon_mem): New wrappers.
11085         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
11086         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
11087         functions.
11088         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
11089         (quotearg_colon_mem): New functions.
11090
11091 2008-02-11  Bruno Haible  <bruno@clisp.org>
11092
11093         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
11094         library in the current directory: it does not work with parallel make.
11095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11096
11097 2008-02-11  Bruno Haible  <bruno@clisp.org>
11098
11099         * .gitattributes: New file.
11100
11101 2008-02-11  Jim Meyering  <meyering@redhat.com>
11102
11103         useless-if-before-free: Fix reversed exit values.
11104         * build-aux/useless-if-before-free: Use correct values
11105         for EXIT_MATCH and EXIT_NO_MATCH.
11106
11107         * build-aux/useless-if-before-free: Close stdout carefully.
11108
11109 2008-02-10  Bruno Haible  <bruno@clisp.org>
11110
11111         New module 'git-merge-changelog'.
11112         * modules/git-merge-changelog: New file.
11113         * lib/git-merge-changelog.c: New file.
11114
11115 2008-02-10  Jim Meyering  <meyering@redhat.com>
11116
11117         useless-if-before-free: New option: --list (-l).
11118
11119         useless-if-before-free: Don't exit immediately upon open failure.
11120         * build-aux/useless-if-before-free: Exit 2 for errors.
11121         Upon failure to open a file, don't exit immediately.
11122         Rather, just warn and continue with any remaining files.
11123
11124 2008-02-10  Bruno Haible  <bruno@clisp.org>
11125
11126         New abstract list operation 'node_set_value'.
11127         * lib/gl_list.h (gl_list_node_set_value): New function.
11128         (struct gl_list_implementation): New field node_set_value.
11129         * lib/gl_list.c (gl_list_node_set_value): New function.
11130         * lib/gl_array_list.c (gl_array_node_set_value): New function.
11131         (gl_array_list_implementation): Update.
11132         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
11133         (gl_carray_list_implementation): Update.
11134         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
11135         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
11136         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
11137         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
11138         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
11139         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
11140         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
11141         Update.
11142         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
11143         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
11144         (gl_sublist_list_implementation): Update.
11145
11146 2008-02-10  Bruno Haible  <bruno@clisp.org>
11147
11148         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
11149         Needed when ELEMENT is #defined to 'some_type *'.
11150
11151 2008-02-10  Jim Meyering  <meyering@redhat.com>
11152
11153         New script and module: useless-if-before-free
11154         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
11155         * build-aux/useless-if-before-free: New file.
11156         * modules/useless-if-before-free: New file.
11157
11158         * build-aux/gitlog-to-changelog: Use committer date, not author date.
11159
11160         xstrtol_error: Fix typo.
11161         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
11162         s/exit_failure/exit_status/.
11163
11164 2008-02-09  Jim Meyering  <meyering@redhat.com>
11165
11166         New script and module: gitlog-to-changelog
11167         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
11168         * modules/gitlog-to-changelog: New file.
11169         * build-aux/gitlog-to-changelog: New file.
11170
11171 2008-02-08  Jim Meyering  <meyering@redhat.com>
11172
11173         Avoid two "parameter unused" warnings.
11174         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
11175         Mark "st" as used.
11176
11177         Use "git COMMAND", not "git-COMMAND".
11178         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
11179         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
11180         * build-aux/git-version-gen: Use "git status", not "git-status".
11181
11182 2008-02-07  Bruno Haible  <bruno@clisp.org>
11183
11184         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
11185         Avoids a crash on Windows Vista.
11186         Reported by Adam Strzelecki <ono@java.pl> via
11187         Simon Josefsson <simon@josefsson.org>.
11188
11189 2008-02-06  Bruno Haible  <bruno@clisp.org>
11190
11191         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
11192         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
11193         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
11194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
11195         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
11196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11197         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
11198         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
11199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11206         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
11207         left-adjust flag.
11208         * tests/test-snprintf-posix.h (test_function): Likewise.
11209         * tests/test-sprintf-posix.h (test_function): Likewise.
11210         * tests/test-vasprintf-posix.c (test_function): Likewise.
11211         * doc/posix-functions/fprintf.texi: Update.
11212         * doc/posix-functions/printf.texi: Update.
11213         * doc/posix-functions/snprintf.texi: Update.
11214         * doc/posix-functions/sprintf.texi: Update.
11215         * doc/posix-functions/vfprintf.texi: Update.
11216         * doc/posix-functions/vprintf.texi: Update.
11217         * doc/posix-functions/vsnprintf.texi: Update.
11218         * doc/posix-functions/vsprintf.texi: Update.
11219         Reported by Peter Fales <psfales@alcatel-lucent.com>.
11220
11221 2008-02-06  Bruno Haible  <bruno@clisp.org>
11222
11223         Fix bug introduced on 2008-01-26.
11224         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
11225
11226 2008-02-06  Bruno Haible  <bruno@clisp.org>
11227
11228         Fix bug introduced on 2007-06-10.
11229         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
11230         !NEED_PRINTF_FLAG_ZERO.
11231
11232 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
11233
11234         getloadavg: use libperfstat on AIX5
11235         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
11236
11237 2008-02-03  Bruno Haible  <bruno@clisp.org>
11238
11239         * lib/diffseq.h: Add comments about required #includes.
11240         Reported by Michael Biggs <gnulib@doubleplum.net>.
11241
11242 2008-02-01  Bruno Haible  <bruno@clisp.org>
11243
11244         * users.txt: Add gnuit.
11245
11246 2008-01-31  Bruno Haible  <bruno@clisp.org>
11247
11248         * lib/md4.c (set_uint32): Mark as inline.
11249         * lib/md5.c (set_uint32): Likewise.
11250         * lib/sha1.c (set_uint32): Likewise.
11251         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
11252         * m4/md5.m4 (gl_MD5): Likewise.
11253         * m4/sha1.m4 (gl_SHA1): Likewise.
11254
11255 2008-01-31  Jim Meyering  <meyering@redhat.com>
11256
11257         Use "sizeof VAR", rather than a literal "4".
11258         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
11259         * lib/md4.c (md4_read_ctx): Likewise.
11260         * lib/sha1.c (sha1_read_ctx): Likewise.
11261
11262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
11263
11264         * tests/test-sha1.c: New file, based on test-md5.c.
11265
11266         * modules/crypto/sha1-tests: New file.
11267
11268 2008-01-31  Simon Josefsson  <simon@josefsson.org>
11269
11270         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
11271
11272 2008-01-31  Jim Meyering  <meyering@redhat.com>
11273
11274         Prefer "sizeof v" over the equivalent "4".
11275         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
11276         * lib/md5.c (set_uint32): Likewise.
11277         * lib/sha1.c (set_uint32): Likewise.
11278
11279 2008-01-31  Simon Josefsson  <simon@josefsson.org>
11280
11281         * lib/sha1.c (set_uint32): Mark function as static.
11282
11283 2008-01-31  Simon Josefsson  <simon@josefsson.org>
11284
11285         md2: clarify comments to say that alignment is not required.
11286         * lib/md2.h: Remove warning about alignment in comment.
11287         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
11288         never been required.
11289
11290 2008-01-31  Simon Josefsson  <simon@josefsson.org>
11291
11292         md4: adapt alignment constraint fix from sha1.
11293         * lib/md4.c (set_uint32): New function, from sha1.c
11294         (md4_read_ctx): Use it.
11295         (md4_finish_ctx): Doc fix.
11296         * lib/md4.h: Doc fix.
11297
11298 2008-01-31  Simon Josefsson  <simon@josefsson.org>
11299
11300         md5: adapt alignment constraint fix from sha1.
11301         * lib/md5.c (set_uint32): New function, from sha1.c
11302         (md5_read_ctx): Use it.
11303         (md5_finish_ctx): Doc fix.
11304         * lib/md5.h: Doc fix.
11305
11306 2008-01-30  Peter Palfrader  <weasel@debian.org>
11307
11308         sha1: remove the result buffer alignment constraint
11309         * lib/sha1.c (set_uint32): New function.
11310         (sha1_read_ctx): Rewrite to remove the result buffer alignment
11311         constraint.
11312         (sha1_finish_ctx): Remove comment warning about alignment constraint.
11313         * lib/sha1.h: Likewise.
11314
11315 2008-01-30  Andreas Schwab  <schwab@suse.de>
11316             Bruno Haible  <bruno@clisp.org>
11317
11318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
11319         correct definition of LDBL_MIN_EXP.
11320
11321 2008-01-30  Karl Berry  <karl@gnu.org>
11322
11323         * config/srclist-update: try to preserve x bit on updates.
11324         * config/srclistvars.sh: update for karl.
11325
11326 2008-01-29  Jim Meyering  <meyering@redhat.com>
11327
11328         vasnprintf.c: Avoid warning about unused label
11329         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
11330         "overflow" label definition and associated code with the
11331         same cpp condition that guards the sole use of that label.
11332
11333 2008-01-26  Bruno Haible  <bruno@clisp.org>
11334
11335         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
11336         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
11337         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
11338         * lib/isnanl-nolibm.h (isnanl): Likewise.
11339         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11340
11341 2008-01-26  Bruno Haible  <bruno@clisp.org>
11342
11343         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
11344         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
11345
11346 2008-01-26  Bruno Haible  <bruno@clisp.org>
11347
11348         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
11349         GCC >= 4.0 built-in.
11350         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
11351
11352 2008-01-26  Bruno Haible  <bruno@clisp.org>
11353
11354         Rename isnan, applicable to 'double' only, to isnand.
11355         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
11356         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
11357         (configure.ac): Update.
11358         (Include): Replace "isnan.h" with "isnand.h".
11359         * m4/isnand.m4: Renamed from m4/isnan.m4.
11360         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
11361         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
11362         instead of isnan.c.
11363         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
11364         instead of HAVE_ISNAN_IN_LIBC.
11365         (isnand): Renamed from isnan.
11366         * lib/isnand.c: New file.
11367         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
11368         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
11369         (Makefile.am): Update.
11370         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
11371         Include isnand.h instead of isnan.h.
11372         (main): Test isnand instead of isnan.
11373         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
11374         isnan-nolibm.
11375         * modules/frexp (Depends-on): Likewise.
11376         * modules/frexp-tests (Depends-on): Likewise.
11377         * modules/frexp-nolibm (Depends-on): Likewise.
11378         * modules/frexp-nolibm-tests (Depends-on): Likewise.
11379         * modules/isfinite (Depends-on): Likewise.
11380         * modules/round-tests (Depends-on): Likewise.
11381         * modules/signbit (Depends-on): Likewise.
11382         * modules/signbit-tests (Depends-on): Likewise.
11383         * modules/snprintf-posix (Depends-on): Likewise.
11384         * modules/sprintf-posix (Depends-on): Likewise.
11385         * modules/trunc-tests (Depends-on): Likewise.
11386         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11387         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11388         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11389         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11390         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11391         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11392         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11393         * modules/vasnprintf-posix (Depends-on): Likewise.
11394         * modules/vasprintf-posix (Depends-on): Likewise.
11395         * modules/vfprintf-posix (Depends-on): Likewise.
11396         * modules/vsnprintf-posix (Depends-on): Likewise.
11397         * modules/vsprintf-posix (Depends-on): Likewise.
11398         * lib/frexp.c: Include isnand.h instead of isnan.h.
11399         (ISNAN): Set to isnand instead of isnan.
11400         * lib/isfinite.c: Include isnand.h instead of isnan.h.
11401         (gl_isfinited): Use isnand instead of isnan.
11402         * lib/signbitd.c: Include isnand.h instead of isnan.h.
11403         (gl_signbitd): Use isnand instead of isnan.
11404         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
11405         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
11406         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
11407         (main): Use isnand instead of isnan.
11408         * tests/test-round1.c: Include isnand.h.
11409         (main): Use isnand instead of isnan.
11410         * tests/test-round2.c: Include isnand.h instead of isnan.h.
11411         (ISNAN): Set to isnand instead of isnan.
11412         * tests/test-trunc1.c: Include isnand.h.
11413         (main): Use isnand instead of isnan.
11414         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
11415         (equal): Use isnand instead of isnan.
11416         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
11417         isnand-nolibm.
11418         * NEWS: Mention the change.
11419
11420 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
11421             Bruno Haible  <bruno@clisp.org>
11422
11423         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
11424         the GCC builtins for signbits are present and set
11425         REPLACE_SIGNBIT_USING_GCC if so.
11426         * lib/math.in.h (signbit): Define using GCC builtins if
11427         REPLACE_SIGNBIT_USING_GCC is set.
11428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
11429         REPLACE_SIGNBIT_USING_GCC.
11430         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
11431
11432 2008-01-25  Jim Meyering  <meyering@redhat.com>
11433
11434         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
11435         * lib/poll.c: Include <config.h>, not "config.h".
11436         * tests/test-getaddrinfo.c: Likewise.
11437
11438 2008-01-25  Simon Josefsson  <simon@josefsson.org>
11439
11440         * modules/sockets-tests: New file.
11441
11442 2008-01-24  Simon Josefsson  <simon@josefsson.org>
11443
11444         * modules/sockets: New module, can be used to call WSA_Startup and
11445         WSA_Cleanup when needed.
11446
11447         * lib/sockets.h, lib/sockets.c: New files.
11448
11449         * m4/sockets.m4: New file.
11450
11451         * tests/test-sockets.c: New file.
11452
11453 2008-01-19  Bruno Haible  <bruno@clisp.org>
11454
11455         * doc/posix-headers: Renamed from doc/headers.
11456         * doc/posix-functions: Renamed from doc/functions.
11457         * doc/gnulib.texi: Update.
11458
11459 2008-01-19  Bruno Haible  <bruno@clisp.org>
11460
11461         * doc/glibc-functions/strcasestr.texi: Include contents of
11462         doc/functions/strcasestr.texi, fixing the list of platforms.
11463         * doc/functions/strcasestr.texi: Remove file.
11464
11465 2008-01-19  Bruno Haible  <bruno@clisp.org>
11466
11467         * doc/glibc-functions/memmem.texi: Include contents of
11468         doc/functions/memmem.texi.
11469         * doc/functions/memmem.texi: Remove file.
11470
11471 2008-01-18  Bruno Haible  <bruno@clisp.org>
11472
11473         * doc/glibc-functions/*.texi: New files.
11474         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
11475         to use the new files.
11476
11477 2008-01-17  Bruno Haible  <bruno@clisp.org>
11478
11479         * tests/test-gethostname.c (main): Fix printf statement.
11480
11481 2008-01-17  Simon Josefsson  <simon@josefsson.org>
11482
11483         * modules/gethostname-tests: New file.
11484
11485         * tests/test-gethostname.c: New file.
11486
11487 2008-01-17  Simon Josefsson  <simon@josefsson.org>
11488
11489         * lib/gethostname.c: Include string.h unconditionally, strncpy is
11490         used by the UNAME case.  Reported by Bruno Haible
11491         <bruno@clisp.org>.
11492
11493 2008-01-17  Eric Blake  <ebb9@byu.net>
11494
11495         Convert c-strcasestr to be more efficient.
11496         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
11497         (Depends-on): Add c-strcase, remove malloca, strnlen.
11498         * tests/test-c-strcasestr.c (main): Enhance test.
11499         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
11500
11501 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
11502
11503         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
11504         Use it in creating po/Makevars.
11505
11506 2008-01-15  Simon Josefsson  <simon@josefsson.org>
11507
11508         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
11509         Applications that requires it should initialize libgcrypt
11510         manually.
11511
11512 2008-01-16  Simon Josefsson  <simon@josefsson.org>
11513
11514         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
11515
11516 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11517
11518         Fix problem with getdate on mingw32 reported by Simon Josefsson
11519         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
11520         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
11521         tzname", when deciding whether to declare tzname.
11522         * lib/strftime.c (tzname): Likewise.
11523
11524 2008-01-15  Bruno Haible  <bruno@clisp.org>
11525
11526         Work around a MacOS X 10.5 bug in frexpl().
11527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
11528         * doc/functions/frexpl.texi: Document the bug.
11529         Reported by Elias Pipping <pipping@gentoo.org>.
11530
11531 2008-01-14  Eric Blake  <ebb9@byu.net>
11532
11533         Touch up previous patch.
11534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
11535         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
11536
11537         Convert strcasestr module to use Two-Way algorithm.
11538         * modules/strcasestr-simple: New module, based on the old
11539         strcasestr, but with Two-Way rather than KMP.
11540         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
11541         * lib/string.in.h (rpl_strcasestr): Declare.
11542         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
11543         performance.
11544         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
11545         * modules/string (Makefile.am): Support strcasestr.
11546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11547         * modules/strcasestr-tests (Depends-on): Check for alarm.
11548         * tests/test-strcasestr.c: Augment test.
11549         * lib/str-two-way.h: Clean up stray macro.
11550         * NEWS: Document new module.
11551         * MODULES.html.sh (string handling): Likewise.
11552         * doc/functions/strcasestr.texi: New file.
11553         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
11554         here, since it is not a POSIX function.
11555
11556 2008-01-14  Colin Watson  <cjwatson@debian.org>
11557             Bruno Haible  <bruno@clisp.org>
11558
11559         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
11560         works fine; if not, set REPLACE_STRSIGNAL.
11561         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
11562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11563         REPLACE_STRSIGNAL.
11564         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
11565         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
11566         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
11567
11568 2008-01-14  Bruno Haible  <bruno@clisp.org>
11569
11570         * modules/strsignal (Include): Change to <string.h>.
11571
11572 2008-01-14  Colin Watson  <cjwatson@debian.org>
11573
11574         * modules/argp (Notice): Add a notice recommending to change
11575         XGETTEXT_OPTIONS.
11576         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
11577
11578 2008-01-13  Colin Watson  <cjwatson@debian.org>
11579
11580         * modules/strsignal-tests: New file.
11581         * tests/test-strsignal.c: New file.
11582
11583         * lib/strsignal.c: New file, from glibc with modifications.
11584         * lib/siglist.h: New file, from glibc with modifications.
11585         * lib/string.in.h (strsignal): New declaration.
11586         * m4/strsignal.m4: New file.
11587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11588         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
11589         * modules/strsignal: New file.
11590         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
11591         HAVE_DECL_STRSIGNAL.
11592
11593 2008-01-13  Bruno Haible  <bruno@clisp.org>
11594
11595         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
11596         locale encoding is not ASCII. Needed for OpenBSD 4.0.
11597         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11598         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11599
11600 2008-01-13  Bruno Haible  <bruno@clisp.org>
11601
11602         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
11603         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
11604         * lib/argp.h (__attribute__): Likewise.
11605         * lib/c-stack.c (__attribute__): Likewise.
11606         * lib/error.h (__attribute__): Likewise.
11607         * lib/fts.c (__attribute__): Likewise.
11608         * lib/openat.h (__attribute__): Likewise.
11609         * lib/stdio.in.h (__attribute__): Likewise.
11610         * lib/string.in.h (__attribute__): Likewise.
11611         * lib/utimens.c (__attribute__): Likewise.
11612         * lib/vasnprintf.h (__attribute__): Likewise.
11613         * lib/xalloc.h (__attribute__): Likewise.
11614         * lib/xprintf.h (__attribute__): Likewise.
11615         * lib/xstrtol.h (__attribute__): Likewise.
11616         * lib/xvasprintf.h (__attribute__): Likewise.
11617
11618 2008-01-12  Bruno Haible  <bruno@clisp.org>
11619
11620         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
11621         * doc/glibc-headers/a.out.texi: New file.
11622         * doc/glibc-headers/aliases.texi: New file.
11623         * doc/glibc-headers/alloca.texi: New file.
11624         * doc/glibc-headers/ar.texi: New file.
11625         * doc/glibc-headers/argp.texi: New file.
11626         * doc/glibc-headers/argz.texi: New file.
11627         * doc/glibc-headers/byteswap.texi: New file.
11628         * doc/glibc-headers/crypt.texi: New file.
11629         * doc/glibc-headers/endian.texi: New file.
11630         * doc/glibc-headers/envz.texi: New file.
11631         * doc/glibc-headers/err.texi: New file.
11632         * doc/glibc-headers/error.texi: New file.
11633         * doc/glibc-headers/execinfo.texi: New file.
11634         * doc/glibc-headers/fpu_control.texi: New file.
11635         * doc/glibc-headers/fstab.texi: New file.
11636         * doc/glibc-headers/fts.texi: New file.
11637         * doc/glibc-headers/getopt.texi: New file.
11638         * doc/glibc-headers/ieee754.texi: New file.
11639         * doc/glibc-headers/ifaddrs.texi: New file.
11640         * doc/glibc-headers/libintl.texi: New file.
11641         * doc/glibc-headers/mcheck.texi: New file.
11642         * doc/glibc-headers/mntent.texi: New file.
11643         * doc/glibc-headers/obstack.texi: New file.
11644         * doc/glibc-headers/paths.texi: New file.
11645         * doc/glibc-headers/printf.texi: New file.
11646         * doc/glibc-headers/pty.texi: New file.
11647         * doc/glibc-headers/resolv.texi: New file.
11648         * doc/glibc-headers/shadow.texi: New file.
11649         * doc/glibc-headers/sysexits.texi: New file.
11650         * doc/glibc-headers/ttyent.texi: New file.
11651
11652 2008-01-12  Jim Meyering  <meyering@redhat.com>
11653
11654         announce-gen: emit Gnulib's git-based version string.
11655         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
11656         New option --gnulib-version=V, where V is expected to be
11657         the output of running git describe in the gnulib directory.
11658         (get_tool_versions): Request feedback on xdelta.  I suspect it's
11659         not useful, and plan to stop publishing an xdelta file with each
11660         coreutils release.
11661
11662         * build-aux/announce-gen: Also check for lzma-compressed files.
11663
11664 2008-01-11  Bruno Haible  <bruno@clisp.org>
11665
11666         * tests/test-memmem.c (main): Increase maximum allowed time.
11667         * tests/test-strstr.c (main): Likewise.
11668
11669 2008-01-11  Bruno Haible  <bruno@clisp.org>
11670
11671         * doc/functions/memmem.texi: Add more precisions about platforms.
11672         * doc/functions/strstr.texi: Likewise.
11673
11674 2008-01-10  Eric Blake  <ebb9@byu.net>
11675
11676         * m4/strstr.m4: Delete cruft from copy-n-paste.
11677         Reported by Bruno Haible.
11678
11679 2008-01-10  Bruno Haible  <bruno@clisp.org>
11680
11681         Make c-strstr rely on strstr.
11682         * lib/c-strstr.c: Don't include str-kmp.h.
11683         (c_strstr): Define in terms of strstr.
11684         * modules/c-strstr (Files): Remove lib/str-kmp.h.
11685         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
11686
11687 2008-01-10  Bruno Haible  <bruno@clisp.org>
11688
11689         * doc/gnulib.texi (String Functions in C Locale): New section.
11690         * doc/c-ctype.texi: New file.
11691         * doc/c-strcase.texi: New file.
11692         * doc/c-strcaseeq.texi: New file.
11693         * doc/c-strcasestr.texi: New file.
11694         * doc/c-strstr.texi: New file.
11695         * doc/c-strtod.texi: New file.
11696         * doc/c-strtold.texi: New file.
11697
11698 2008-01-10  Eric Blake  <ebb9@byu.net>
11699
11700         * lib/relocatable.h: Fix a comment.
11701
11702 2008-01-10  Eric Blake  <ebb9@byu.net>
11703
11704         Share two-way algorithm.
11705         * lib/str-two-way.h: New file, merged from...
11706         * lib/memmem.c: ...here...
11707         * lib/strstr.c: ...and here.
11708         * modules/memmem (Files): Use it.
11709         * modules/strstr (Files): Likewise.
11710
11711         Avoid quadratic strstr implementations.
11712         * lib/strstr.c: New file.
11713         * m4/strstr.m4: Likewise.
11714         * modules/strstr: Likewise.
11715         * modules/strstr-tests: Likewise.
11716         * tests/test-strstr.c: Likewise.
11717         * lib/string.in.h (rpl_strstr): Declare.
11718         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
11719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
11720         * modules/string (Makefile.am): Likewise.
11721         * MODULES.html.sh (string handling): Mention new module.
11722         * doc/functions/strstr.texi (strstr): Document the bug.
11723
11724 2008-01-10  Bruno Haible  <bruno@clisp.org>
11725
11726         * lib/relocatable.h (relocate): State whether result is freshly
11727         allocated or not.
11728         * lib/relocatable.c (relocate): Return a freshly allocated string
11729         instead of a pointer to a privately held string.
11730         Reported by Sylvain Beucler <beuc@gnu.org>.
11731
11732 2008-01-10  Colin Watson  <cjwatson@debian.org>
11733
11734         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
11735         s/S_ISNLK/S_ISLNK/.
11736
11737 2008-01-09  Bruno Haible  <bruno@clisp.org>
11738
11739         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
11740         and other files.
11741         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
11742         if it's only a guess.
11743         * modules/memmem: Simplify by depending on memmem-simple.
11744
11745 2008-01-09  Bruno Haible  <bruno@clisp.org>
11746
11747         Work around OpenBSD 4.0 tdelete() bug.
11748         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
11749         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
11750         macros and don't redefine the enum values.
11751         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
11752         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
11753         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
11754
11755 2008-01-09  Bruno Haible  <bruno@clisp.org>
11756
11757         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
11758         (main): Don't perform the tests if setlocale did not install a UTF-8
11759         locale. Needed on OpenBSD 4.0.
11760         * modules/wcwidth-tests (Depends-on): Add localcharset.
11761
11762 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11763
11764         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
11765         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
11766         * NEWS: announce this.
11767         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
11768
11769 2008-01-09  Simon Josefsson  <simon@josefsson.org>
11770         and Eric Blake  <ebb9@byu.net>
11771
11772         Add memmem-simple module.
11773         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
11774         (gl_FUNC_MEMMEM): Separate performance from presence checks.
11775         * modules/memmem-simple: New file.
11776         * modules/memmem (Description): Tweak.
11777         * MODULES.html.sh (string handling): Mention new module.
11778         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
11779         addressed by memmem-simple.
11780         * NEWS: Document the difference.
11781
11782 2008-01-09  Eric Blake  <ebb9@byu.net>
11783
11784         Give gcc some memmem optimization hints.
11785         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
11786         (strcasestr): Declare as pure.
11787         * modules/memmem (Maintainer): Claim my implementation.
11788
11789 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11790
11791         Support AIX 6.1 and higher.
11792         * build-aux/config.libpath: Likewise.
11793         * build-aux/config.rpath: Likewise.
11794
11795 2008-01-08  Jim Meyering  <meyering@redhat.com>
11796             Bruno Haible  <bruno@clisp.org>
11797
11798         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
11799         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
11800         Reported by Peter Fales in
11801         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
11802
11803 2008-01-08  Bruno Haible  <bruno@clisp.org>
11804
11805         * modules/unictype/category-of (Depends-on): Add
11806         unictype/category-none.
11807         * modules/unictype/category-and-tests (Depends-on): Add
11808         unictype/category-{L,N,Lu,Nd}.
11809         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
11810         * modules/unictype/category-or-tests (Depends-on): Add
11811         unictype/category-{L,N}.
11812         * modules/unictype/category-name-tests (Depends-on): Add
11813         unictype/category-{Z,Nl}.
11814         Reported by Simon Josefsson.
11815
11816 2008-01-08  Bruno Haible  <bruno@clisp.org>
11817
11818         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
11819         convention better.
11820         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
11821         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
11822         Reported by Peter Miller <millerp@canb.auug.org.au>.
11823
11824 2008-01-08  Eric Blake  <ebb9@byu.net>
11825
11826         Rewrite memmem to guarantee linear complexity without malloc.
11827         * lib/memmem.c (memmem): Use Two-Way rather than
11828         Knuth-Morris-Pratt, to allow O(1) space usage.
11829         (critical_factorization, two_way_short_needle)
11830         (two_way_long_needle): New functions.
11831         (knuth_morris_pratt): Delete.
11832         * modules/memmem (Depends-on): No longer need malloca or stdbool.
11833         Add stdint.
11834         * tests/test-memmem.c (main): Add tests for periodic needle and
11835         sublinear performance.
11836         * doc/functions/memmem.texi (memmem): Document other deficiencies
11837         in cygwin and older glibc.
11838
11839 2008-01-08  Bruno Haible  <bruno@clisp.org>
11840
11841         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
11842         augmentation.
11843
11844 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
11845
11846         Add a configure time option: --disable-acl.
11847         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
11848         AC_ARG_ENABLE(acl).
11849
11850 2008-01-06  Simon Josefsson  <simon@josefsson.org>
11851
11852         * tests/test-localename.c: Don't include obsolete "setenv.h".
11853
11854         * modules/localename-tests (Depends-on): Need unsetenv.
11855
11856 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11857
11858         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
11859
11860 2008-01-06  Colin Watson  <cjwatson@debian.org>
11861
11862         * users.txt: Add man-db.
11863
11864 2008-01-07  Bruno Haible  <bruno@clisp.org>
11865
11866         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
11867         previous section name.
11868
11869 2008-01-07  Bruno Haible  <bruno@clisp.org>
11870
11871         * lib/progname.c (set_program_name): Don't strip off a leading
11872         "lt-" prefix outside a .libs directory.
11873         Suggested by Paul Eggert.
11874
11875 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
11876             Bruno Haible  <bruno@clisp.org>
11877
11878         Improve memory cleanup in 'relocatable' module.
11879         * lib/relocatable.h (compute_curr_prefix): Change return type to
11880         'char *'.
11881         * lib/relocatable.c (compute_curr_prefix): Change return type to
11882         'char *'. Free curr_installdir after use.
11883         (relocate): Free curr_prefix_better after use.
11884         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
11885
11886 2008-01-01  Bruno Haible  <bruno@clisp.org>
11887
11888         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
11889         failure on older glibc systems.
11890         Reported by Peter Fales <psfales@alcatel-lucent.com>.
11891
11892 2008-01-05  Eric Blake  <ebb9@byu.net>
11893
11894         Avoid quadratic system memmem.
11895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
11896         Reported by Ralf Wildenhues.
11897
11898         Fix memmem test for mingw.
11899         * modules/memmem-tests (configure.ac): Check for alarm.
11900         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
11901         it.
11902         * doc/functions/memmem.texi: New file.
11903         * doc/gnulib.texi (Function Substitutes): Add memmem.
11904         Reported by Bruno Haible.
11905
11906 2008-01-04  Bruno Haible  <bruno@clisp.org>
11907
11908         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
11909         Require gl_HEADER_STRINGS_H_DEFAULTS, not
11910         gl_HEADER_STRING_H_DEFAULTS.
11911
11912 2008-01-04  Eric Blake  <ebb9@byu.net>
11913
11914         Shorten duration of memmem test.
11915         * tests/test-memmem.c (main): Use alarm to declare failure if test
11916         is taking too long.
11917         Reported by Ralf Wildenhues.
11918
11919 2007-12-21  Simon Josefsson  <simon@josefsson.org>
11920
11921         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
11922         string, needed by strerror.
11923
11924 2008-01-03  Colin Watson  <cjwatson@debian.org>
11925             Bruno Haible  <bruno@clisp.org>
11926
11927         * doc/gnulib-tool.texi (Localization): New section.
11928
11929 2008-01-02  Bruno Haible  <bruno@clisp.org>
11930
11931         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
11932         variables to 'unsigned char *' type.
11933         Reported by Paul Eggert.
11934
11935 2008-01-02  Jim Meyering  <jim@meyering.net>
11936
11937         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
11938
11939 2007-12-31  Jim Meyering  <jim@meyering.net>
11940
11941         Avoid use of private FTS type name.
11942         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
11943
11944 2007-12-30  Karl Berry  <karl@gnu.org>
11945
11946         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
11947         work around defect in Texinfo and/or the standalone Info browser.
11948
11949 2007-12-30  Bruno Haible  <bruno@clisp.org>
11950
11951         Unify 5 copies of the KMP code.
11952         * lib/str-kmp.h: New file.
11953         * lib/c-strcasestr.c: Include str-kmp.h.
11954         (knuth_morris_pratt): Remove function.
11955         (c_strcasestr): Update.
11956         * lib/c-strstr.c: Include str-kmp.h.
11957         (knuth_morris_pratt): Remove function.
11958         (c_strcasestr): Update.
11959         * lib/mbscasestr.c: Include str-kmp.h.
11960         (knuth_morris_pratt_unibyte): Remove function.
11961         * lib/mbsstr.c: Include str-kmp.h.
11962         (knuth_morris_pratt_unibyte): Remove function.
11963         * lib/strcasestr.c: Include str-kmp.h.
11964         (knuth_morris_pratt): Remove function.
11965         (strcasestr): Update.
11966         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
11967         * modules/c-strstr (Files): Likewise.
11968         * modules/mbscasestr (Files): Likewise.
11969         * modules/mbsstr (Files): Likewise.
11970         * modules/strcasestr (Files): Likewise.
11971         Suggested by Paul Eggert.
11972
11973 2007-12-30  Bruno Haible  <bruno@clisp.org>
11974
11975         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
11976         defined.
11977
11978 2007-12-30  Bruno Haible  <bruno@clisp.org>
11979
11980         * lib/xmalloca.h: Include xalloc.h.
11981         (xnmalloca): New macro.
11982
11983 2007-12-30  Bruno Haible  <bruno@clisp.org>
11984
11985         * lib/malloca.h (nmalloca): New macro.
11986         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
11987         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
11988         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
11989         knuth_morris_pratt_multibyte): Likewise.
11990         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
11991         knuth_morris_pratt_multibyte): Likewise.
11992         * lib/memmem.c (knuth_morris_pratt): Likewise.
11993         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
11994
11995 2007-12-25  Bruno Haible  <bruno@clisp.org>
11996
11997         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
11998         * lib/glob.c: Don't include openat.h.
11999         (link_exists2_p): Add back the code that deals with the
12000         !GLOB_ALTDIRFUNC case.
12001         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
12002         let it do the filename concatenation.
12003         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
12004         * modules/glob (Depends-on): Remove openat.
12005
12006 2007-12-31  Bruno Haible  <bruno@clisp.org>
12007
12008         * modules/dirfd (License): Change to LGPLv2+.
12009         Approved by Jim Meyering.
12010
12011 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12012
12013         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
12014         when multiplying M by sizeof (size_t).
12015
12016 2007-12-10  Martin Lambers  <marlam@marlam.de>
12017
12018         Override getpagesize on mingw.
12019         * lib/getpagesize.c: New file.
12020         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
12021         * modules/getpagesize (Files): Add lib/getpagesize.c.
12022         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
12023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12024         REPLACE_GETPAGESIZE.
12025         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
12026
12027 2007-12-25  Bruno Haible  <bruno@clisp.org>
12028
12029         * modules/localcharset (Notice): New field.
12030         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
12031         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12032
12033 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12034             Bruno Haible  <bruno@clisp.org>
12035
12036         Avoid using the syntax symbol() in formatted documentation.
12037         * MODULES.html.sh (func_module): When replacing symbol() with a
12038         hyperlink, remove the parentheses. Show an error if some remain.
12039         Recognize and render the '...' syntax.
12040         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
12041         Rework. Add paragraph about GCC's inlining.
12042         * doc/alloca.texi: Likewise.
12043         * doc/error.texi: Remove parentheses from symbol reference.
12044         * doc/gnulib-intro.texi: Likewise.
12045         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
12046         * modules/fnmatch (Description): Reword to say "the ... function".
12047         * modules/full-read (Description): Likewise.
12048         * modules/full-write (Description): Likewise.
12049         * modules/safe-read (Description): Likewise.
12050         * modules/safe-write (Description): Likewise.
12051         * modules/strchrnul (Description): Likewise.
12052         * modules/trim (Description): Likewise.
12053         * modules/error (Description): Remove parentheses from symbol
12054         references.
12055         * modules/verror (Description): Likewise.
12056         Reported by Karl Berry.
12057
12058 2007-12-25  Bruno Haible  <bruno@clisp.org>
12059
12060         Fixup after 2007-10-16 commit.
12061         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
12062
12063 2007-12-24  Bruno Haible  <bruno@clisp.org>
12064
12065         Make --enable-relocatable work with DESTDIR.
12066         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
12067         to compute installdir from destprog.
12068         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
12069         also set the RELOC_DESTDIR variable.
12070         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
12071
12072 2007-12-24  Bruno Haible  <bruno@clisp.org>
12073
12074         Fix link error due to xalloc_die().
12075         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
12076         of xreadlink.
12077         * lib/relocwrapper.c: Update comments.
12078         * build-aux/install-reloc: Remove xreadlink.c from file list.
12079         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
12080         xreadlink.c.
12081         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
12082
12083 2007-12-24  Bruno Haible  <bruno@clisp.org>
12084
12085         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
12086         * lib/setenv.h: Remove file.
12087         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
12088         lib/setenv.h.
12089         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
12090         (Depends-on): Add stdlib.
12091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
12092         gl_FUNC_UNSETENV.
12093         (Include): Replace setenv.h with <stdlib.h>.
12094         * modules/unsetenv: New file.
12095         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
12096         * lib/unsetenv.c: Include <stdlib.h> first.
12097         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
12098         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
12099         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
12100         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
12101         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
12102         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
12103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
12104         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
12105         * doc/functions/unsetenv.texi: Update.
12106         * modules/xsetenv (Depends-on): Add unsetenv.
12107         * modules/getdate (Depends-on): Likewise.
12108         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
12109         * lib/xsetenv.c: Don't include setenv.h.
12110         * lib/getdate.y: Likewise.
12111         * lib/relocwrapper.c: Likewise.
12112         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
12113         (Depends-on): Add stdlib.
12114         * NEWS: Mention the changes.
12115         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
12116
12117 2007-12-23  Bruno Haible  <bruno@clisp.org>
12118
12119         * lib/memmem.c (memmem): Use lowercase variable names. Tab
12120         indentation.
12121
12122 2007-12-23  Bruno Haible  <bruno@clisp.org>
12123
12124         * lib/c-strcasestr.c: Add more comments.
12125         * lib/c-strstr.c: Likewise.
12126         * lib/mbscasestr.c: Likewise.
12127         * lib/mbsstr.c: Likewise.
12128         * lib/strcasestr.c: Likewise.
12129         * lib/memmem.c: Likewise.
12130
12131 2007-12-23  Bruno Haible  <bruno@clisp.org>
12132
12133         * tests/test-memmem.c: Include <string.h> first.
12134
12135 2007-12-22  Bruno Haible  <bruno@clisp.org>
12136
12137         * gnulib-tool (func_create_testdir): Change $auxdir while generating
12138         the contents of $testsbase.
12139         Reported by Ralf Wildenhues.
12140
12141 2007-12-22  Bruno Haible  <bruno@clisp.org>
12142
12143         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
12144         two variables local_ldadd_before, local_ldadd_last.
12145
12146 2007-12-20  Eric Blake  <ebb9@byu.net>
12147
12148         Work around circular library issue when cross-compiling.
12149         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
12150         that progname.o does not need to pull in rpl_memcmp.
12151
12152 2007-12-19  Eric Blake  <ebb9@byu.net>
12153
12154         Fix memmem to avoid O(n^2) worst-case complexity.
12155         * lib/memmem.c (knuth_morris_pratt): New function.
12156         (memmem): Use it if first few naive iterations fail.
12157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
12158         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
12159         * modules/memchr (License): Likewise.
12160         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
12161         malloca.
12162         * tests/test-memmem.c: Rewrite, borrowing ideas from
12163         test-mbsstr1.c; the old version wouldn't even compile!
12164         * modules/memmem-tests: New file.
12165         * lib/string.in.h (rpl_memmem): Add declaration.
12166         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
12167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
12168         REPLACE_MEMMEM.
12169
12170 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12171
12172         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
12173         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
12174         before any system include files, and undef after them all.  This
12175         should fix a problem on VMS reported by John E. Malmberg in
12176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
12177
12178 2007-12-17  Eric Blake  <ebb9@byu.net>
12179
12180         Revert addition of verify, for BSD/OS.
12181         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
12182         can't handle large files, for the sake of obsolete platforms.
12183         * modules/fseeko (Depends-on): Remove verify.
12184         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
12185         * doc/functions/ftello.texi (ftello): Likewise.
12186         * doc/functions/fgetpos.texi (fgetpos): Likewise.
12187         Reported by Larry Jones.
12188
12189 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
12190
12191         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
12192         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
12193
12194 2007-12-17  Jim Meyering  <meyering@redhat.com>
12195
12196         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
12197         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
12198         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
12199         * modules/getcwd (Depends-on): Add openat.
12200         Reported by Petr Salinger.
12201
12202 2007-12-17  Bruno Haible  <bruno@clisp.org>
12203
12204         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
12205         avoid a segmentation fault of the configure test on x86_64 systems.
12206
12207 2007-12-15  Jim Meyering  <meyering@redhat.com>
12208
12209         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
12210
12211 2007-12-13  Eric Blake  <ebb9@byu.net>
12212
12213         Another fseek test.
12214         * tests/test-fseek.c (main): Also test ungetc handling.
12215         * tests/test-fseeko.c (main): Likewise.
12216         * modules/fseeko (Depends-on): Add verify.
12217         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
12218         large.
12219         Reported by Larry Jones.
12220
12221         Fix fseeko on mingw.
12222         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
12223         seek.
12224
12225         Beef up fseek tests.
12226         * tests/test-fseek.c (main): Also test eof handling.
12227         * tests/test-fseeko.c (main): Likewise.
12228         Reported by Larry Jones.
12229
12230 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
12231
12232         Fix fseeko on BSD-based platforms.
12233         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
12234         successful seek.
12235
12236 2007-12-12  Eric Blake  <ebb9@byu.net>
12237
12238         Allow circular dependency of separate libtests.a
12239         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
12240         when use_libtests.
12241
12242 2007-12-11  Eric Blake  <ebb9@byu.net>
12243
12244         Fix bug with -0.0L in previous patch.
12245         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
12246         * tests/test-isnan.c (main): Also test on zeroes.
12247         * tests/test-isnanf.c (main): Likewise.
12248         * tests/test-isnanl.h (main): Likewise.
12249
12250         Detect pseudo-denormals on x86 even when cross-compiling.
12251         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
12252         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
12253         invalid bit patterns that happen to satisfy ==.
12254
12255         Avoid link failures with separate libtests.a.
12256         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
12257         last, to satisfy circular dependencies.
12258
12259 2007-12-11  Eric Blake  <ebb9@byu.net>
12260         and Bruno Haible  <bruno@clisp.org>
12261
12262         Fix OpenBSD 4.0 <float.h> handling of long double.
12263         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
12264         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
12265         * doc/headers/float.texi (float.h): Document OpenBSD bug.
12266
12267 2007-12-11  Jim Meyering  <meyering@redhat.com>
12268
12269         * users.txt: Add libvirt.
12270
12271         Support versions of autoconf prior to 2.59c.
12272         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
12273         if it is not already defined.
12274
12275 2007-12-09  Bruno Haible  <bruno@clisp.org>
12276
12277         Let 'gnulib-tool --import' collect sources needed for the tests in
12278         tests/ rather than in lib/.
12279         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
12280         argument. If true, add rules to generate libtests.a, and put libtests.a
12281         into $(LDADD). Consider source files in subdirectories and set
12282         uses_subdirs.
12283         (func_emit_initmacro_start, func_emit_initmacro_end,
12284         func_emit_initmacro_done): Pass all arguments explicitly.
12285         (func_import): Determine two module lists main_modules,
12286         testsrelated_modules. Determine use_libtests. Determine two variables
12287         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
12288         instead of just sed_transform_lib_file. Determine two variables
12289         main_files and testsrelated_files. Compute 'files' as the union of
12290         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
12291         func_add_or_update. In the generated gnulib-comp.m4, collect the
12292         object files for tests/ in different variables than those for lib/.
12293         Substitute LIBTESTS_LIBDEPS.
12294         (func_create_testdir): Combine the uses_subdirs results from
12295         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
12296
12297 2007-12-09  Bruno Haible  <bruno@clisp.org>
12298
12299         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
12300         the build-aux directory.
12301
12302 2007-12-09  Bruno Haible  <bruno@clisp.org>
12303
12304         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
12305         introduced on 2006-09-09.
12306
12307 2007-12-07  Jim Meyering  <meyering@redhat.com>
12308
12309         Let these macros work also with autoconf-2.59.
12310         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
12311         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
12312         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12313
12314 2007-12-06  Jim Meyering  <meyering@redhat.com>
12315
12316         Avoid a configure-time syntax error in gl_FUNC_ACL.
12317         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
12318         function in each branch, before testing the cache variable.
12319
12320 2007-12-04  Eric Blake  <ebb9@byu.net>
12321
12322         Make scripts executable.
12323         * build-aux/config.guess: Add execute permissions.
12324         * build-aux/config.sub: Likewise.
12325         * build-aux/gendocs.sh: Likewise.
12326
12327         Fix frexp on mingw.
12328         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
12329         cross-compiling.
12330         * doc/functions/frexp.texi (frexp): Document the bug.
12331
12332         Make cygwin fseeko check more reliable.
12333         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
12334         version numbers, rather than unrelated feature check.
12335         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
12336         * doc/functions/ftello.texi (ftello): Likewise.
12337         Reported by Bruno Haible.
12338
12339         * m4/strerror.m4: Bump version number.
12340
12341 2007-12-03  Bruno Haible  <bruno@clisp.org>
12342
12343         * doc/functions/mprotect.texi: Mention the mingw problem.
12344
12345 2007-12-03  Eric Blake  <ebb9@byu.net>
12346
12347         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
12348         REPLACE_STRERROR is initialized before this macro.
12349
12350 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
12351
12352         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
12353         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
12354         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
12355         put -lsec in even for programs other than 'ls'.  This fixes a problem
12356         for gettext reported by Bruno Haible in
12357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
12358         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
12359         Add support for Solaris 10.  This isn't efficient, but should get the
12360         job done for now.
12361
12362 2007-12-03  James Youngman  <jay@gnu.org>
12363
12364         * doc/regexprops-generic.texi: change "an close-group" to "a
12365         close-group" and "illegal" to "not allowed".
12366
12367 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12368
12369         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
12370         pr_byname.h. Needed for the rare case when the maintainer has done
12371         "make maintainer-clean" in the source directory and then attempts a
12372         build outside the source directory.
12373         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
12374         scripts_byname.h.
12375
12376 2007-12-02  Martin Lambers <marlam@marlam.de>
12377             Bruno Haible  <bruno@clisp.org>
12378
12379         * lib/getpagesize.h: Remove file.
12380         * lib/unistd.in.h: Include declaration of getpagesize here.
12381         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
12382         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
12383         HAVE_SYS_PARAM_H.
12384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
12385         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
12386         * modules/getpagesize (Files): Remove lib/getpagesize.h.
12387         (Depends-on): Add unistd.
12388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12389         (Include): Use <unistd.h> instead of getpagesize.h.
12390         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
12391         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
12392         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
12393         gl_GETPAGESIZE invocation, already handled by module dependency.
12394         * lib/pagealign_alloc.c: Don't include getpagesize.h.
12395
12396 2007-12-02  Bruno Haible  <bruno@clisp.org>
12397
12398         * modules/strings-tests: New file.
12399         * tests/test-strings.c: New file.
12400
12401         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
12402         * lib/strings.in.h: New file.
12403         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
12404         * m4/strings_h.m4: New file.
12405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
12406         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
12407         * modules/strings: New file.
12408         * modules/string (Makefile.am): Update.
12409         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
12410         Reported by Karl Berry.
12411
12412 2007-12-01  Eric Blake  <ebb9@byu.net>
12413
12414         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
12415         accomodate fix in cygwin 1.5.25.
12416
12417 2007-12-01  Jim Meyering  <meyering@redhat.com>
12418
12419         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
12420         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
12421         that would inhibit utf8-optimization of a regexp containing line-
12422         or buffer-anchors, e.g., `^', `$'.
12423
12424 2007-11-30  Bruno Haible  <bruno@clisp.org>
12425
12426         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
12427         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
12428         glthread_recursive_lock_init.
12429         * lib/lock.c (glthread_recursive_lock_init)
12430         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
12431         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12432
12433 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12434
12435         New function qset_acl, like set_acl but with syscall semantics.
12436         * lib/acl.h (qset_acl): New decl.
12437         * lib/acl.c (qset_acl): New function.
12438         (set_acl): Use new function.  Use more-consistent diagnostics.
12439
12440 2007-11-28  Jim Meyering  <meyering@redhat.com>
12441
12442         * modules/physmem (License): Change from GPL to LGPLv2+.
12443
12444 2007-11-26  Bruno Haible  <bruno@clisp.org>
12445
12446         * lib/vasnprintf.c (decode_long_double): Don't abort if the
12447         'long double' type has excess precision.
12448         Reported by Jim Meyering in
12449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
12450
12451 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12452
12453         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
12454         Sync from <http://gnu.org/licenses>.
12455         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
12456         with license text from same location.
12457         * doc/maintain.texi, doc/standards.texi:  Sync from
12458         <http://savannah.gnu.org/projects/gnustandards>.
12459
12460 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
12461         and Jim Meyering  <meyering@redhat.com>
12462
12463         Adjust getdate' grammar to accept a slightly more regular language.
12464         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
12465         Before, the former was rejected.
12466         * lib/getdate.y (digits_to_date_time): New function, factored
12467         out of ...
12468         (number): ...here.  Just call digits_to_date_time.
12469         (hybrid): New non-terminal to handle an <unsigned number,
12470         signed relative offset> sequence consistently.
12471
12472 2007-11-18  Jim Meyering  <meyering@redhat.com>
12473
12474         Pull my changes from coreutils:
12475         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
12476         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
12477         use of $gnulib_tool_option_extras, so that it's separated from the
12478         preceding argument.
12479
12480         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
12481         * build-aux/bootstrap (cp_mark_as_generated): Create any required
12482         parent destination directories before copying a file into place.
12483
12484 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
12485
12486         bootstrap: work also with 4-argument variant of AC_INIT
12487         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
12488
12489 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12490
12491         Port test-getaddrinfo to Solaris.
12492         Problem reported by Bruno Haible in
12493         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
12494         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
12495         explanation of setting 'hints'.
12496         Don't reject an implementation merely because it returns EAI_SERVICE.
12497         (EAI_SERVICE): Define to 0 if not defined.
12498
12499 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12500
12501         The license of gnu-make and posix-shell is now "GPLed build tool".
12502         * modules/gnu-make (License): Likewise.
12503         * modules/posix-shell (License): Likewise.
12504
12505         New module posix-shell, for determining a POSIX shell
12506         or perhaps something that is close enough to a POSIX shell.
12507         * m4/posix-shell.m4: New file.
12508         * modules/posix-shell: New file.
12509
12510         * MODULES.html.sh: Mention new module.
12511
12512         New module gnu-make, for determining whether we're using GNU Make.
12513         * m4/gnu-make.m4: New file.
12514         * modules/gnu-make: New file.
12515         * MODULES.html.sh: Mention new module.
12516
12517 2007-11-14  Jim Meyering  <meyering@redhat.com>
12518
12519         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
12520         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
12521         use this macro to create a function _definition_.
12522         Remove useless "#undef ARGMATCH_DIE".
12523
12524 2007-11-14  Bruno Haible  <bruno@clisp.org>
12525
12526         * lib/config.charset: Update for OpenBSD 4.1.
12527         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
12528
12529 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
12530
12531         Document 64-bit #if problems in stdint.texi.
12532         * doc/headers/stdint.texi (stdint.h): Mention problems with
12533         64-bit-#if, and how to work around them.
12534
12535         Don't insist on 'long long int' support in the preprocessor.  It
12536         breaks too many things.  For example, PRIdMAX still uses a 'long
12537         long int' format with the latest Sun compiler, even though
12538         HAVE_LONG_LONG_INT isn't defined due to that compiler's
12539         preprocessor problem.  This causes the latest coreutils to dump
12540         core on Solaris 10 sparc with the Sun C compiler.
12541         Instead, fix the 2007-10-16 problem in a different way, by evaluating
12542         the troublesome expressions at configure-time, not at #if-time.
12543         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
12544         preprocessor.
12545         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
12546         compile-time C checks, done at 'configure'-time.
12547         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
12548         * modules/inttypes (Makefile): Substitute the new symbols that
12549         gl_INTTYPES_H now generates.
12550         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
12551
12552 2007-11-12  Bruno Haible  <bruno@clisp.org>
12553
12554         Tests for Unicode character classification functions.
12555
12556         * modules/unictype/bidicategory-byname-tests: New file.
12557         * modules/unictype/bidicategory-name-tests: New file.
12558         * modules/unictype/bidicategory-of-tests: New file.
12559         * modules/unictype/bidicategory-test-tests: New file.
12560         * modules/unictype/block-list-tests: New file.
12561         * modules/unictype/block-of-tests: New file.
12562         * modules/unictype/block-test-tests: New file.
12563         * modules/unictype/category-C-tests: New file.
12564         * modules/unictype/category-Cc-tests: New file.
12565         * modules/unictype/category-Cf-tests: New file.
12566         * modules/unictype/category-Cn-tests: New file.
12567         * modules/unictype/category-Co-tests: New file.
12568         * modules/unictype/category-Cs-tests: New file.
12569         * modules/unictype/category-L-tests: New file.
12570         * modules/unictype/category-Ll-tests: New file.
12571         * modules/unictype/category-Lm-tests: New file.
12572         * modules/unictype/category-Lo-tests: New file.
12573         * modules/unictype/category-Lt-tests: New file.
12574         * modules/unictype/category-Lu-tests: New file.
12575         * modules/unictype/category-M-tests: New file.
12576         * modules/unictype/category-Mc-tests: New file.
12577         * modules/unictype/category-Me-tests: New file.
12578         * modules/unictype/category-Mn-tests: New file.
12579         * modules/unictype/category-N-tests: New file.
12580         * modules/unictype/category-Nd-tests: New file.
12581         * modules/unictype/category-Nl-tests: New file.
12582         * modules/unictype/category-No-tests: New file.
12583         * modules/unictype/category-P-tests: New file.
12584         * modules/unictype/category-Pc-tests: New file.
12585         * modules/unictype/category-Pd-tests: New file.
12586         * modules/unictype/category-Pe-tests: New file.
12587         * modules/unictype/category-Pf-tests: New file.
12588         * modules/unictype/category-Pi-tests: New file.
12589         * modules/unictype/category-Po-tests: New file.
12590         * modules/unictype/category-Ps-tests: New file.
12591         * modules/unictype/category-S-tests: New file.
12592         * modules/unictype/category-Sc-tests: New file.
12593         * modules/unictype/category-Sk-tests: New file.
12594         * modules/unictype/category-Sm-tests: New file.
12595         * modules/unictype/category-So-tests: New file.
12596         * modules/unictype/category-Z-tests: New file.
12597         * modules/unictype/category-Zl-tests: New file.
12598         * modules/unictype/category-Zp-tests: New file.
12599         * modules/unictype/category-Zs-tests: New file.
12600         * modules/unictype/category-and-not-tests: New file.
12601         * modules/unictype/category-and-tests: New file.
12602         * modules/unictype/category-byname-tests: New file.
12603         * modules/unictype/category-name-tests: New file.
12604         * modules/unictype/category-none-tests: New file.
12605         * modules/unictype/category-of-tests: New file.
12606         * modules/unictype/category-or-tests: New file.
12607         * modules/unictype/category-test-withtable-tests: New file.
12608         * modules/unictype/combining-class-tests: New file.
12609         * modules/unictype/ctype-alnum-tests: New file.
12610         * modules/unictype/ctype-alpha-tests: New file.
12611         * modules/unictype/ctype-blank-tests: New file.
12612         * modules/unictype/ctype-cntrl-tests: New file.
12613         * modules/unictype/ctype-digit-tests: New file.
12614         * modules/unictype/ctype-graph-tests: New file.
12615         * modules/unictype/ctype-lower-tests: New file.
12616         * modules/unictype/ctype-print-tests: New file.
12617         * modules/unictype/ctype-punct-tests: New file.
12618         * modules/unictype/ctype-space-tests: New file.
12619         * modules/unictype/ctype-upper-tests: New file.
12620         * modules/unictype/ctype-xdigit-tests: New file.
12621         * modules/unictype/decimal-digit-tests: New file.
12622         * modules/unictype/digit-tests: New file.
12623         * modules/unictype/mirror-tests: New file.
12624         * modules/unictype/numeric-tests: New file.
12625         * modules/unictype/property-alphabetic-tests: New file.
12626         * modules/unictype/property-ascii-hex-digit-tests: New file.
12627         * modules/unictype/property-bidi-arabic-digit-tests: New file.
12628         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
12629         * modules/unictype/property-bidi-block-separator-tests: New file.
12630         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
12631         * modules/unictype/property-bidi-common-separator-tests: New file.
12632         * modules/unictype/property-bidi-control-tests: New file.
12633         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
12634         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
12635         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
12636         * modules/unictype/property-bidi-european-digit-tests: New file.
12637         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
12638         * modules/unictype/property-bidi-left-to-right-tests: New file.
12639         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
12640         * modules/unictype/property-bidi-other-neutral-tests: New file.
12641         * modules/unictype/property-bidi-pdf-tests: New file.
12642         * modules/unictype/property-bidi-segment-separator-tests: New file.
12643         * modules/unictype/property-bidi-whitespace-tests: New file.
12644         * modules/unictype/property-byname-tests: New file.
12645         * modules/unictype/property-combining-tests: New file.
12646         * modules/unictype/property-composite-tests: New file.
12647         * modules/unictype/property-currency-symbol-tests: New file.
12648         * modules/unictype/property-dash-tests: New file.
12649         * modules/unictype/property-decimal-digit-tests: New file.
12650         * modules/unictype/property-default-ignorable-code-point-tests: New file.
12651         * modules/unictype/property-deprecated-tests: New file.
12652         * modules/unictype/property-diacritic-tests: New file.
12653         * modules/unictype/property-extender-tests: New file.
12654         * modules/unictype/property-format-control-tests: New file.
12655         * modules/unictype/property-grapheme-base-tests: New file.
12656         * modules/unictype/property-grapheme-extend-tests: New file.
12657         * modules/unictype/property-grapheme-link-tests: New file.
12658         * modules/unictype/property-hex-digit-tests: New file.
12659         * modules/unictype/property-hyphen-tests: New file.
12660         * modules/unictype/property-id-continue-tests: New file.
12661         * modules/unictype/property-id-start-tests: New file.
12662         * modules/unictype/property-ideographic-tests: New file.
12663         * modules/unictype/property-ids-binary-operator-tests: New file.
12664         * modules/unictype/property-ids-trinary-operator-tests: New file.
12665         * modules/unictype/property-ignorable-control-tests: New file.
12666         * modules/unictype/property-iso-control-tests: New file.
12667         * modules/unictype/property-join-control-tests: New file.
12668         * modules/unictype/property-left-of-pair-tests: New file.
12669         * modules/unictype/property-line-separator-tests: New file.
12670         * modules/unictype/property-logical-order-exception-tests: New file.
12671         * modules/unictype/property-lowercase-tests: New file.
12672         * modules/unictype/property-math-tests: New file.
12673         * modules/unictype/property-non-break-tests: New file.
12674         * modules/unictype/property-not-a-character-tests: New file.
12675         * modules/unictype/property-numeric-tests: New file.
12676         * modules/unictype/property-other-alphabetic-tests: New file.
12677         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
12678         * modules/unictype/property-other-grapheme-extend-tests: New file.
12679         * modules/unictype/property-other-id-continue-tests: New file.
12680         * modules/unictype/property-other-id-start-tests: New file.
12681         * modules/unictype/property-other-lowercase-tests: New file.
12682         * modules/unictype/property-other-math-tests: New file.
12683         * modules/unictype/property-other-uppercase-tests: New file.
12684         * modules/unictype/property-paired-punctuation-tests: New file.
12685         * modules/unictype/property-paragraph-separator-tests: New file.
12686         * modules/unictype/property-pattern-syntax-tests: New file.
12687         * modules/unictype/property-pattern-white-space-tests: New file.
12688         * modules/unictype/property-private-use-tests: New file.
12689         * modules/unictype/property-punctuation-tests: New file.
12690         * modules/unictype/property-quotation-mark-tests: New file.
12691         * modules/unictype/property-radical-tests: New file.
12692         * modules/unictype/property-sentence-terminal-tests: New file.
12693         * modules/unictype/property-soft-dotted-tests: New file.
12694         * modules/unictype/property-space-tests: New file.
12695         * modules/unictype/property-terminal-punctuation-tests: New file.
12696         * modules/unictype/property-test-tests: New file.
12697         * modules/unictype/property-titlecase-tests: New file.
12698         * modules/unictype/property-unassigned-code-value-tests: New file.
12699         * modules/unictype/property-unified-ideograph-tests: New file.
12700         * modules/unictype/property-uppercase-tests: New file.
12701         * modules/unictype/property-variation-selector-tests: New file.
12702         * modules/unictype/property-white-space-tests: New file.
12703         * modules/unictype/property-xid-continue-tests: New file.
12704         * modules/unictype/property-xid-start-tests: New file.
12705         * modules/unictype/property-zero-width-tests: New file.
12706         * modules/unictype/scripts-tests: New file.
12707         * modules/unictype/syntax-c-ident-tests: New file.
12708         * modules/unictype/syntax-c-whitespace-tests: New file.
12709         * modules/unictype/syntax-java-ident-tests: New file.
12710         * modules/unictype/syntax-java-whitespace-tests: New file.
12711         * tests/unictype/test-bidi_byname.c: New file.
12712         * tests/unictype/test-bidi_name.c: New file.
12713         * tests/unictype/test-bidi_of.c: New file.
12714         * tests/unictype/test-bidi_test.c: New file.
12715         * tests/unictype/test-block_list.c: New file.
12716         * tests/unictype/test-block_of.c: New file.
12717         * tests/unictype/test-block_test.c: New file.
12718         * tests/unictype/test-categ_and.c: New file.
12719         * tests/unictype/test-categ_and_not.c: New file.
12720         * tests/unictype/test-categ_byname.c: New file.
12721         * tests/unictype/test-categ_name.c: New file.
12722         * tests/unictype/test-categ_none.c: New file.
12723         * tests/unictype/test-categ_of.c: New file.
12724         * tests/unictype/test-categ_or.c: New file.
12725         * tests/unictype/test-categ_test_withtable.c: New file.
12726         * tests/unictype/test-combining.c: New file.
12727         * tests/unictype/test-decdigit.c: New file.
12728         * tests/unictype/test-digit.c: New file.
12729         * tests/unictype/test-mirror.c: New file.
12730         * tests/unictype/test-numeric.c: New file.
12731         * tests/unictype/test-pr_byname.c: New file.
12732         * tests/unictype/test-pr_test.c: New file.
12733         * tests/unictype/test-predicate-part1.h: New file.
12734         * tests/unictype/test-predicate-part2.h: New file.
12735         * tests/unictype/test-scripts.c: New file.
12736         * tests/unictype/test-sy_c_ident.c: New file.
12737         * tests/unictype/test-sy_java_ident.c: New file.
12738
12739         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
12740         for Unicode 5.0.0.
12741         * tests/unictype/test-categ_Cc.c: Likewise.
12742         * tests/unictype/test-categ_Cf.c: Likewise.
12743         * tests/unictype/test-categ_Cn.c: Likewise.
12744         * tests/unictype/test-categ_Co.c: Likewise.
12745         * tests/unictype/test-categ_Cs.c: Likewise.
12746         * tests/unictype/test-categ_L.c: Likewise.
12747         * tests/unictype/test-categ_Ll.c: Likewise.
12748         * tests/unictype/test-categ_Lm.c: Likewise.
12749         * tests/unictype/test-categ_Lo.c: Likewise.
12750         * tests/unictype/test-categ_Lt.c: Likewise.
12751         * tests/unictype/test-categ_Lu.c: Likewise.
12752         * tests/unictype/test-categ_M.c: Likewise.
12753         * tests/unictype/test-categ_Mc.c: Likewise.
12754         * tests/unictype/test-categ_Me.c: Likewise.
12755         * tests/unictype/test-categ_Mn.c: Likewise.
12756         * tests/unictype/test-categ_N.c: Likewise.
12757         * tests/unictype/test-categ_Nd.c: Likewise.
12758         * tests/unictype/test-categ_Nl.c: Likewise.
12759         * tests/unictype/test-categ_No.c: Likewise.
12760         * tests/unictype/test-categ_P.c: Likewise.
12761         * tests/unictype/test-categ_Pc.c: Likewise.
12762         * tests/unictype/test-categ_Pd.c: Likewise.
12763         * tests/unictype/test-categ_Pe.c: Likewise.
12764         * tests/unictype/test-categ_Pf.c: Likewise.
12765         * tests/unictype/test-categ_Pi.c: Likewise.
12766         * tests/unictype/test-categ_Po.c: Likewise.
12767         * tests/unictype/test-categ_Ps.c: Likewise.
12768         * tests/unictype/test-categ_S.c: Likewise.
12769         * tests/unictype/test-categ_Sc.c: Likewise.
12770         * tests/unictype/test-categ_Sk.c: Likewise.
12771         * tests/unictype/test-categ_Sm.c: Likewise.
12772         * tests/unictype/test-categ_So.c: Likewise.
12773         * tests/unictype/test-categ_Z.c: Likewise.
12774         * tests/unictype/test-categ_Zl.c: Likewise.
12775         * tests/unictype/test-categ_Zp.c: Likewise.
12776         * tests/unictype/test-categ_Zs.c: Likewise.
12777         * tests/unictype/test-ctype_alnum.c: Likewise.
12778         * tests/unictype/test-ctype_alpha.c: Likewise.
12779         * tests/unictype/test-ctype_blank.c: Likewise.
12780         * tests/unictype/test-ctype_cntrl.c: Likewise.
12781         * tests/unictype/test-ctype_digit.c: Likewise.
12782         * tests/unictype/test-ctype_graph.c: Likewise.
12783         * tests/unictype/test-ctype_lower.c: Likewise.
12784         * tests/unictype/test-ctype_print.c: Likewise.
12785         * tests/unictype/test-ctype_punct.c: Likewise.
12786         * tests/unictype/test-ctype_space.c: Likewise.
12787         * tests/unictype/test-ctype_upper.c: Likewise.
12788         * tests/unictype/test-ctype_xdigit.c: Likewise.
12789         * tests/unictype/test-decdigit.h: Likewise.
12790         * tests/unictype/test-digit.h: Likewise.
12791         * tests/unictype/test-numeric.h: Likewise.
12792         * tests/unictype/test-pr_alphabetic.c: Likewise.
12793         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
12794         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12795         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12796         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
12797         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12798         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
12799         * tests/unictype/test-pr_bidi_control.c: Likewise.
12800         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
12801         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
12802         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12803         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12804         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12805         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12806         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12807         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12808         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
12809         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
12810         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
12811         * tests/unictype/test-pr_combining.c: Likewise.
12812         * tests/unictype/test-pr_composite.c: Likewise.
12813         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12814         * tests/unictype/test-pr_dash.c: Likewise.
12815         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12816         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
12817         * tests/unictype/test-pr_deprecated.c: Likewise.
12818         * tests/unictype/test-pr_diacritic.c: Likewise.
12819         * tests/unictype/test-pr_extender.c: Likewise.
12820         * tests/unictype/test-pr_format_control.c: Likewise.
12821         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12822         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12823         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12824         * tests/unictype/test-pr_hex_digit.c: Likewise.
12825         * tests/unictype/test-pr_hyphen.c: Likewise.
12826         * tests/unictype/test-pr_id_continue.c: Likewise.
12827         * tests/unictype/test-pr_id_start.c: Likewise.
12828         * tests/unictype/test-pr_ideographic.c: Likewise.
12829         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
12830         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
12831         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12832         * tests/unictype/test-pr_iso_control.c: Likewise.
12833         * tests/unictype/test-pr_join_control.c: Likewise.
12834         * tests/unictype/test-pr_left_of_pair.c: Likewise.
12835         * tests/unictype/test-pr_line_separator.c: Likewise.
12836         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12837         * tests/unictype/test-pr_lowercase.c: Likewise.
12838         * tests/unictype/test-pr_math.c: Likewise.
12839         * tests/unictype/test-pr_non_break.c: Likewise.
12840         * tests/unictype/test-pr_not_a_character.c: Likewise.
12841         * tests/unictype/test-pr_numeric.c: Likewise.
12842         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12843         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
12844         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
12845         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12846         * tests/unictype/test-pr_other_id_start.c: Likewise.
12847         * tests/unictype/test-pr_other_lowercase.c: Likewise.
12848         * tests/unictype/test-pr_other_math.c: Likewise.
12849         * tests/unictype/test-pr_other_uppercase.c: Likewise.
12850         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
12851         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
12852         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
12853         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
12854         * tests/unictype/test-pr_private_use.c: Likewise.
12855         * tests/unictype/test-pr_punctuation.c: Likewise.
12856         * tests/unictype/test-pr_quotation_mark.c: Likewise.
12857         * tests/unictype/test-pr_radical.c: Likewise.
12858         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12859         * tests/unictype/test-pr_soft_dotted.c: Likewise.
12860         * tests/unictype/test-pr_space.c: Likewise.
12861         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12862         * tests/unictype/test-pr_titlecase.c: Likewise.
12863         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12864         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12865         * tests/unictype/test-pr_uppercase.c: Likewise.
12866         * tests/unictype/test-pr_variation_selector.c: Likewise.
12867         * tests/unictype/test-pr_white_space.c: Likewise.
12868         * tests/unictype/test-pr_xid_continue.c: Likewise.
12869         * tests/unictype/test-pr_xid_start.c: Likewise.
12870         * tests/unictype/test-pr_zero_width.c: Likewise.
12871         * tests/unictype/test-sy_c_whitespace.c: Likewise.
12872         * tests/unictype/test-sy_java_whitespace.c: Likewise.
12873
12874 2007-11-12  Bruno Haible  <bruno@clisp.org>
12875
12876         Unicode character classification functions.
12877         * lib/unictype.h: New file.
12878         * modules/unictype/base: New file.
12879         * modules/unictype/category-L: New file.
12880         * modules/unictype/category-Lu: New file.
12881         * modules/unictype/category-Ll: New file.
12882         * modules/unictype/category-Lt: New file.
12883         * modules/unictype/category-Lm: New file.
12884         * modules/unictype/category-Lo: New file.
12885         * modules/unictype/category-M: New file.
12886         * modules/unictype/category-Mn: New file.
12887         * modules/unictype/category-Mc: New file.
12888         * modules/unictype/category-Me: New file.
12889         * modules/unictype/category-N: New file.
12890         * modules/unictype/category-Nd: New file.
12891         * modules/unictype/category-Nl: New file.
12892         * modules/unictype/category-No: New file.
12893         * modules/unictype/category-P: New file.
12894         * modules/unictype/category-Pc: New file.
12895         * modules/unictype/category-Pd: New file.
12896         * modules/unictype/category-Ps: New file.
12897         * modules/unictype/category-Pe: New file.
12898         * modules/unictype/category-Pi: New file.
12899         * modules/unictype/category-Pf: New file.
12900         * modules/unictype/category-Po: New file.
12901         * modules/unictype/category-S: New file.
12902         * modules/unictype/category-Sm: New file.
12903         * modules/unictype/category-Sc: New file.
12904         * modules/unictype/category-Sk: New file.
12905         * modules/unictype/category-So: New file.
12906         * modules/unictype/category-Z: New file.
12907         * modules/unictype/category-Zs: New file.
12908         * modules/unictype/category-Zl: New file.
12909         * modules/unictype/category-Zp: New file.
12910         * modules/unictype/category-C: New file.
12911         * modules/unictype/category-Cc: New file.
12912         * modules/unictype/category-Cf: New file.
12913         * modules/unictype/category-Cs: New file.
12914         * modules/unictype/category-Co: New file.
12915         * modules/unictype/category-Cn: New file.
12916         * modules/unictype/category-or: New file.
12917         * modules/unictype/category-of: New file.
12918         * modules/unictype/category-test: New file.
12919         * modules/unictype/category-test-withtable: New file.
12920         * modules/unictype/category-byname: New file.
12921         * modules/unictype/category-none: New file.
12922         * modules/unictype/category-and: New file.
12923         * modules/unictype/category-and-not: New file.
12924         * modules/unictype/category-name: New file.
12925         * modules/unictype/combining-class: New file.
12926         * modules/unictype/category-all: New file.
12927         * modules/unictype/bidicategory-all: New file.
12928         * modules/unictype/bidicategory-byname: New file.
12929         * modules/unictype/bidicategory-name: New file.
12930         * modules/unictype/bidicategory-of: New file.
12931         * modules/unictype/bidicategory-test: New file.
12932         * modules/unictype/decimal-digit: New file.
12933         * modules/unictype/digit: New file.
12934         * modules/unictype/numeric: New file.
12935         * modules/unictype/mirror: New file.
12936         * modules/unictype/property-white-space: New file.
12937         * modules/unictype/property-alphabetic: New file.
12938         * modules/unictype/property-other-alphabetic: New file.
12939         * modules/unictype/property-not-a-character: New file.
12940         * modules/unictype/property-default-ignorable-code-point: New file.
12941         * modules/unictype/property-other-default-ignorable-code-point: New
12942         file.
12943         * modules/unictype/property-deprecated: New file.
12944         * modules/unictype/property-logical-order-exception: New file.
12945         * modules/unictype/property-variation-selector: New file.
12946         * modules/unictype/property-private-use: New file.
12947         * modules/unictype/property-unassigned-code-value: New file.
12948         * modules/unictype/property-uppercase: New file.
12949         * modules/unictype/property-other-uppercase: New file.
12950         * modules/unictype/property-lowercase: New file.
12951         * modules/unictype/property-other-lowercase: New file.
12952         * modules/unictype/property-titlecase: New file.
12953         * modules/unictype/property-soft-dotted: New file.
12954         * modules/unictype/property-id-start: New file.
12955         * modules/unictype/property-other-id-start: New file.
12956         * modules/unictype/property-id-continue: New file.
12957         * modules/unictype/property-other-id-continue: New file.
12958         * modules/unictype/property-xid-start: New file.
12959         * modules/unictype/property-xid-continue: New file.
12960         * modules/unictype/property-pattern-white-space: New file.
12961         * modules/unictype/property-pattern-syntax: New file.
12962         * modules/unictype/property-join-control: New file.
12963         * modules/unictype/property-grapheme-base: New file.
12964         * modules/unictype/property-grapheme-extend: New file.
12965         * modules/unictype/property-other-grapheme-extend: New file.
12966         * modules/unictype/property-grapheme-link: New file.
12967         * modules/unictype/property-bidi-control: New file.
12968         * modules/unictype/property-bidi-left-to-right: New file.
12969         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
12970         * modules/unictype/property-bidi-arabic-right-to-left: New file.
12971         * modules/unictype/property-bidi-european-digit: New file.
12972         * modules/unictype/property-bidi-eur-num-separator: New file.
12973         * modules/unictype/property-bidi-eur-num-terminator: New file.
12974         * modules/unictype/property-bidi-arabic-digit: New file.
12975         * modules/unictype/property-bidi-common-separator: New file.
12976         * modules/unictype/property-bidi-block-separator: New file.
12977         * modules/unictype/property-bidi-segment-separator: New file.
12978         * modules/unictype/property-bidi-whitespace: New file.
12979         * modules/unictype/property-bidi-non-spacing-mark: New file.
12980         * modules/unictype/property-bidi-boundary-neutral: New file.
12981         * modules/unictype/property-bidi-pdf: New file.
12982         * modules/unictype/property-bidi-embedding-or-override: New file.
12983         * modules/unictype/property-bidi-other-neutral: New file.
12984         * modules/unictype/property-hex-digit: New file.
12985         * modules/unictype/property-ascii-hex-digit: New file.
12986         * modules/unictype/property-ideographic: New file.
12987         * modules/unictype/property-unified-ideograph: New file.
12988         * modules/unictype/property-radical: New file.
12989         * modules/unictype/property-ids-binary-operator: New file.
12990         * modules/unictype/property-ids-trinary-operator: New file.
12991         * modules/unictype/property-zero-width: New file.
12992         * modules/unictype/property-space: New file.
12993         * modules/unictype/property-non-break: New file.
12994         * modules/unictype/property-iso-control: New file.
12995         * modules/unictype/property-format-control: New file.
12996         * modules/unictype/property-dash: New file.
12997         * modules/unictype/property-hyphen: New file.
12998         * modules/unictype/property-punctuation: New file.
12999         * modules/unictype/property-line-separator: New file.
13000         * modules/unictype/property-paragraph-separator: New file.
13001         * modules/unictype/property-quotation-mark: New file.
13002         * modules/unictype/property-sentence-terminal: New file.
13003         * modules/unictype/property-terminal-punctuation: New file.
13004         * modules/unictype/property-currency-symbol: New file.
13005         * modules/unictype/property-math: New file.
13006         * modules/unictype/property-other-math: New file.
13007         * modules/unictype/property-paired-punctuation: New file.
13008         * modules/unictype/property-left-of-pair: New file.
13009         * modules/unictype/property-combining: New file.
13010         * modules/unictype/property-composite: New file.
13011         * modules/unictype/property-decimal-digit: New file.
13012         * modules/unictype/property-numeric: New file.
13013         * modules/unictype/property-diacritic: New file.
13014         * modules/unictype/property-extender: New file.
13015         * modules/unictype/property-ignorable-control: New file.
13016         * modules/unictype/property-test: New file.
13017         * modules/unictype/property-byname: New file.
13018         * modules/unictype/property-all: New file.
13019         * modules/unictype/scripts: New file.
13020         * modules/unictype/scripts-all: New file.
13021         * modules/unictype/block-of: New file.
13022         * modules/unictype/block-test: New file.
13023         * modules/unictype/block-list: New file.
13024         * modules/unictype/block-all: New file.
13025         * modules/unictype/syntax-c-whitespace: New file.
13026         * modules/unictype/syntax-java-whitespace: New file.
13027         * modules/unictype/syntax-c-ident: New file.
13028         * modules/unictype/syntax-java-ident: New file.
13029         * modules/unictype/ctype-alnum: New file.
13030         * modules/unictype/ctype-alpha: New file.
13031         * modules/unictype/ctype-cntrl: New file.
13032         * modules/unictype/ctype-digit: New file.
13033         * modules/unictype/ctype-graph: New file.
13034         * modules/unictype/ctype-lower: New file.
13035         * modules/unictype/ctype-print: New file.
13036         * modules/unictype/ctype-punct: New file.
13037         * modules/unictype/ctype-space: New file.
13038         * modules/unictype/ctype-upper: New file.
13039         * modules/unictype/ctype-xdigit: New file.
13040         * modules/unictype/ctype-blank: New file.
13041         * lib/unictype/bidi_byname.c: New file.
13042         * lib/unictype/bidi_name.c: New file.
13043         * lib/unictype/bidi_of.c: New file.
13044         * lib/unictype/bidi_test.c: New file.
13045         * lib/unictype/bitmap.h: New file.
13046         * lib/unictype/block_test.c: New file.
13047         * lib/unictype/blocks.c: New file.
13048         * lib/unictype/categ_C.c: New file.
13049         * lib/unictype/categ_Cc.c: New file.
13050         * lib/unictype/categ_Cf.c: New file.
13051         * lib/unictype/categ_Cn.c: New file.
13052         * lib/unictype/categ_Co.c: New file.
13053         * lib/unictype/categ_Cs.c: New file.
13054         * lib/unictype/categ_L.c: New file.
13055         * lib/unictype/categ_Ll.c: New file.
13056         * lib/unictype/categ_Lm.c: New file.
13057         * lib/unictype/categ_Lo.c: New file.
13058         * lib/unictype/categ_Lt.c: New file.
13059         * lib/unictype/categ_Lu.c: New file.
13060         * lib/unictype/categ_M.c: New file.
13061         * lib/unictype/categ_Mc.c: New file.
13062         * lib/unictype/categ_Me.c: New file.
13063         * lib/unictype/categ_Mn.c: New file.
13064         * lib/unictype/categ_N.c: New file.
13065         * lib/unictype/categ_Nd.c: New file.
13066         * lib/unictype/categ_Nl.c: New file.
13067         * lib/unictype/categ_No.c: New file.
13068         * lib/unictype/categ_P.c: New file.
13069         * lib/unictype/categ_Pc.c: New file.
13070         * lib/unictype/categ_Pd.c: New file.
13071         * lib/unictype/categ_Pe.c: New file.
13072         * lib/unictype/categ_Pf.c: New file.
13073         * lib/unictype/categ_Pi.c: New file.
13074         * lib/unictype/categ_Po.c: New file.
13075         * lib/unictype/categ_Ps.c: New file.
13076         * lib/unictype/categ_S.c: New file.
13077         * lib/unictype/categ_Sc.c: New file.
13078         * lib/unictype/categ_Sk.c: New file.
13079         * lib/unictype/categ_Sm.c: New file.
13080         * lib/unictype/categ_So.c: New file.
13081         * lib/unictype/categ_Z.c: New file.
13082         * lib/unictype/categ_Zl.c: New file.
13083         * lib/unictype/categ_Zp.c: New file.
13084         * lib/unictype/categ_Zs.c: New file.
13085         * lib/unictype/categ_and.c: New file.
13086         * lib/unictype/categ_and_not.c: New file.
13087         * lib/unictype/categ_byname.c: New file.
13088         * lib/unictype/categ_name.c: New file.
13089         * lib/unictype/categ_none.c: New file.
13090         * lib/unictype/categ_of.c: New file.
13091         * lib/unictype/categ_or.c: New file.
13092         * lib/unictype/categ_test.c: New file.
13093         * lib/unictype/combining.c: New file.
13094         * lib/unictype/ctype_alnum.c: New file.
13095         * lib/unictype/ctype_alpha.c: New file.
13096         * lib/unictype/ctype_blank.c: New file.
13097         * lib/unictype/ctype_cntrl.c: New file.
13098         * lib/unictype/ctype_digit.c: New file.
13099         * lib/unictype/ctype_graph.c: New file.
13100         * lib/unictype/ctype_lower.c: New file.
13101         * lib/unictype/ctype_print.c: New file.
13102         * lib/unictype/ctype_punct.c: New file.
13103         * lib/unictype/ctype_space.c: New file.
13104         * lib/unictype/ctype_upper.c: New file.
13105         * lib/unictype/ctype_xdigit.c: New file.
13106         * lib/unictype/decdigit.c: New file.
13107         * lib/unictype/digit.c: New file.
13108         * lib/unictype/identsyntaxmap.h: New file.
13109         * lib/unictype/mirror.c: New file.
13110         * lib/unictype/numeric.c: New file.
13111         * lib/unictype/pr_alphabetic.c: New file.
13112         * lib/unictype/pr_ascii_hex_digit.c: New file.
13113         * lib/unictype/pr_bidi_arabic_digit.c: New file.
13114         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
13115         * lib/unictype/pr_bidi_block_separator.c: New file.
13116         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
13117         * lib/unictype/pr_bidi_common_separator.c: New file.
13118         * lib/unictype/pr_bidi_control.c: New file.
13119         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
13120         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
13121         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
13122         * lib/unictype/pr_bidi_european_digit.c: New file.
13123         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
13124         * lib/unictype/pr_bidi_left_to_right.c: New file.
13125         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
13126         * lib/unictype/pr_bidi_other_neutral.c: New file.
13127         * lib/unictype/pr_bidi_pdf.c: New file.
13128         * lib/unictype/pr_bidi_segment_separator.c: New file.
13129         * lib/unictype/pr_bidi_whitespace.c: New file.
13130         * lib/unictype/pr_byname.c: New file.
13131         * lib/unictype/pr_byname.gperf: New file.
13132         * lib/unictype/pr_combining.c: New file.
13133         * lib/unictype/pr_composite.c: New file.
13134         * lib/unictype/pr_currency_symbol.c: New file.
13135         * lib/unictype/pr_dash.c: New file.
13136         * lib/unictype/pr_decimal_digit.c: New file.
13137         * lib/unictype/pr_default_ignorable_code_point.c: New file.
13138         * lib/unictype/pr_deprecated.c: New file.
13139         * lib/unictype/pr_diacritic.c: New file.
13140         * lib/unictype/pr_extender.c: New file.
13141         * lib/unictype/pr_format_control.c: New file.
13142         * lib/unictype/pr_grapheme_base.c: New file.
13143         * lib/unictype/pr_grapheme_extend.c: New file.
13144         * lib/unictype/pr_grapheme_link.c: New file.
13145         * lib/unictype/pr_hex_digit.c: New file.
13146         * lib/unictype/pr_hyphen.c: New file.
13147         * lib/unictype/pr_id_continue.c: New file.
13148         * lib/unictype/pr_id_start.c: New file.
13149         * lib/unictype/pr_ideographic.c: New file.
13150         * lib/unictype/pr_ids_binary_operator.c: New file.
13151         * lib/unictype/pr_ids_trinary_operator.c: New file.
13152         * lib/unictype/pr_ignorable_control.c: New file.
13153         * lib/unictype/pr_iso_control.c: New file.
13154         * lib/unictype/pr_join_control.c: New file.
13155         * lib/unictype/pr_left_of_pair.c: New file.
13156         * lib/unictype/pr_line_separator.c: New file.
13157         * lib/unictype/pr_logical_order_exception.c: New file.
13158         * lib/unictype/pr_lowercase.c: New file.
13159         * lib/unictype/pr_math.c: New file.
13160         * lib/unictype/pr_non_break.c: New file.
13161         * lib/unictype/pr_not_a_character.c: New file.
13162         * lib/unictype/pr_numeric.c: New file.
13163         * lib/unictype/pr_other_alphabetic.c: New file.
13164         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
13165         * lib/unictype/pr_other_grapheme_extend.c: New file.
13166         * lib/unictype/pr_other_id_continue.c: New file.
13167         * lib/unictype/pr_other_id_start.c: New file.
13168         * lib/unictype/pr_other_lowercase.c: New file.
13169         * lib/unictype/pr_other_math.c: New file.
13170         * lib/unictype/pr_other_uppercase.c: New file.
13171         * lib/unictype/pr_paired_punctuation.c: New file.
13172         * lib/unictype/pr_paragraph_separator.c: New file.
13173         * lib/unictype/pr_pattern_syntax.c: New file.
13174         * lib/unictype/pr_pattern_white_space.c: New file.
13175         * lib/unictype/pr_private_use.c: New file.
13176         * lib/unictype/pr_punctuation.c: New file.
13177         * lib/unictype/pr_quotation_mark.c: New file.
13178         * lib/unictype/pr_radical.c: New file.
13179         * lib/unictype/pr_sentence_terminal.c: New file.
13180         * lib/unictype/pr_soft_dotted.c: New file.
13181         * lib/unictype/pr_space.c: New file.
13182         * lib/unictype/pr_terminal_punctuation.c: New file.
13183         * lib/unictype/pr_test.c: New file.
13184         * lib/unictype/pr_titlecase.c: New file.
13185         * lib/unictype/pr_unassigned_code_value.c: New file.
13186         * lib/unictype/pr_unified_ideograph.c: New file.
13187         * lib/unictype/pr_uppercase.c: New file.
13188         * lib/unictype/pr_variation_selector.c: New file.
13189         * lib/unictype/pr_white_space.c: New file.
13190         * lib/unictype/pr_xid_continue.c: New file.
13191         * lib/unictype/pr_xid_start.c: New file.
13192         * lib/unictype/pr_zero_width.c: New file.
13193         * lib/unictype/scripts.c: New file.
13194         * lib/unictype/sy_c_ident.c: New file.
13195         * lib/unictype/sy_c_whitespace.c: New file.
13196         * lib/unictype/sy_java_ident.c: New file.
13197         * lib/unictype/sy_java_whitespace.c: New file.
13198
13199         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
13200         Unicode 5.0.0.
13201         * lib/unictype/blocks.h: Likewise.
13202         * lib/unictype/categ_C.h: Likewise.
13203         * lib/unictype/categ_Cc.h: Likewise.
13204         * lib/unictype/categ_Cf.h: Likewise.
13205         * lib/unictype/categ_Cn.h: Likewise.
13206         * lib/unictype/categ_Co.h: Likewise.
13207         * lib/unictype/categ_Cs.h: Likewise.
13208         * lib/unictype/categ_L.h: Likewise.
13209         * lib/unictype/categ_Ll.h: Likewise.
13210         * lib/unictype/categ_Lm.h: Likewise.
13211         * lib/unictype/categ_Lo.h: Likewise.
13212         * lib/unictype/categ_Lt.h: Likewise.
13213         * lib/unictype/categ_Lu.h: Likewise.
13214         * lib/unictype/categ_M.h: Likewise.
13215         * lib/unictype/categ_Mc.h: Likewise.
13216         * lib/unictype/categ_Me.h: Likewise.
13217         * lib/unictype/categ_Mn.h: Likewise.
13218         * lib/unictype/categ_N.h: Likewise.
13219         * lib/unictype/categ_Nd.h: Likewise.
13220         * lib/unictype/categ_Nl.h: Likewise.
13221         * lib/unictype/categ_No.h: Likewise.
13222         * lib/unictype/categ_P.h: Likewise.
13223         * lib/unictype/categ_Pc.h: Likewise.
13224         * lib/unictype/categ_Pd.h: Likewise.
13225         * lib/unictype/categ_Pe.h: Likewise.
13226         * lib/unictype/categ_Pf.h: Likewise.
13227         * lib/unictype/categ_Pi.h: Likewise.
13228         * lib/unictype/categ_Po.h: Likewise.
13229         * lib/unictype/categ_Ps.h: Likewise.
13230         * lib/unictype/categ_S.h: Likewise.
13231         * lib/unictype/categ_Sc.h: Likewise.
13232         * lib/unictype/categ_Sk.h: Likewise.
13233         * lib/unictype/categ_Sm.h: Likewise.
13234         * lib/unictype/categ_So.h: Likewise.
13235         * lib/unictype/categ_Z.h: Likewise.
13236         * lib/unictype/categ_Zl.h: Likewise.
13237         * lib/unictype/categ_Zp.h: Likewise.
13238         * lib/unictype/categ_Zs.h: Likewise.
13239         * lib/unictype/categ_of.h: Likewise.
13240         * lib/unictype/combining.h: Likewise.
13241         * lib/unictype/ctype_alnum.h: Likewise.
13242         * lib/unictype/ctype_alpha.h: Likewise.
13243         * lib/unictype/ctype_blank.h: Likewise.
13244         * lib/unictype/ctype_cntrl.h: Likewise.
13245         * lib/unictype/ctype_digit.h: Likewise.
13246         * lib/unictype/ctype_graph.h: Likewise.
13247         * lib/unictype/ctype_lower.h: Likewise.
13248         * lib/unictype/ctype_print.h: Likewise.
13249         * lib/unictype/ctype_punct.h: Likewise.
13250         * lib/unictype/ctype_space.h: Likewise.
13251         * lib/unictype/ctype_upper.h: Likewise.
13252         * lib/unictype/ctype_xdigit.h: Likewise.
13253         * lib/unictype/decdigit.h: Likewise.
13254         * lib/unictype/digit.h: Likewise.
13255         * lib/unictype/mirror.h: Likewise.
13256         * lib/unictype/numeric.h: Likewise.
13257         * lib/unictype/pr_alphabetic.h: Likewise.
13258         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13259         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13260         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13261         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13262         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13263         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13264         * lib/unictype/pr_bidi_control.h: Likewise.
13265         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13266         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13267         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13268         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13269         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13270         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13271         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13272         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13273         * lib/unictype/pr_bidi_pdf.h: Likewise.
13274         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13275         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13276         * lib/unictype/pr_combining.h: Likewise.
13277         * lib/unictype/pr_composite.h: Likewise.
13278         * lib/unictype/pr_currency_symbol.h: Likewise.
13279         * lib/unictype/pr_dash.h: Likewise.
13280         * lib/unictype/pr_decimal_digit.h: Likewise.
13281         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13282         * lib/unictype/pr_deprecated.h: Likewise.
13283         * lib/unictype/pr_diacritic.h: Likewise.
13284         * lib/unictype/pr_extender.h: Likewise.
13285         * lib/unictype/pr_format_control.h: Likewise.
13286         * lib/unictype/pr_grapheme_base.h: Likewise.
13287         * lib/unictype/pr_grapheme_extend.h: Likewise.
13288         * lib/unictype/pr_grapheme_link.h: Likewise.
13289         * lib/unictype/pr_hex_digit.h: Likewise.
13290         * lib/unictype/pr_hyphen.h: Likewise.
13291         * lib/unictype/pr_id_continue.h: Likewise.
13292         * lib/unictype/pr_id_start.h: Likewise.
13293         * lib/unictype/pr_ideographic.h: Likewise.
13294         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13295         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13296         * lib/unictype/pr_ignorable_control.h: Likewise.
13297         * lib/unictype/pr_iso_control.h: Likewise.
13298         * lib/unictype/pr_join_control.h: Likewise.
13299         * lib/unictype/pr_left_of_pair.h: Likewise.
13300         * lib/unictype/pr_line_separator.h: Likewise.
13301         * lib/unictype/pr_logical_order_exception.h: Likewise.
13302         * lib/unictype/pr_lowercase.h: Likewise.
13303         * lib/unictype/pr_math.h: Likewise.
13304         * lib/unictype/pr_non_break.h: Likewise.
13305         * lib/unictype/pr_not_a_character.h: Likewise.
13306         * lib/unictype/pr_numeric.h: Likewise.
13307         * lib/unictype/pr_other_alphabetic.h: Likewise.
13308         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13309         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13310         * lib/unictype/pr_other_id_continue.h: Likewise.
13311         * lib/unictype/pr_other_id_start.h: Likewise.
13312         * lib/unictype/pr_other_lowercase.h: Likewise.
13313         * lib/unictype/pr_other_math.h: Likewise.
13314         * lib/unictype/pr_other_uppercase.h: Likewise.
13315         * lib/unictype/pr_paired_punctuation.h: Likewise.
13316         * lib/unictype/pr_paragraph_separator.h: Likewise.
13317         * lib/unictype/pr_pattern_syntax.h: Likewise.
13318         * lib/unictype/pr_pattern_white_space.h: Likewise.
13319         * lib/unictype/pr_private_use.h: Likewise.
13320         * lib/unictype/pr_punctuation.h: Likewise.
13321         * lib/unictype/pr_quotation_mark.h: Likewise.
13322         * lib/unictype/pr_radical.h: Likewise.
13323         * lib/unictype/pr_sentence_terminal.h: Likewise.
13324         * lib/unictype/pr_soft_dotted.h: Likewise.
13325         * lib/unictype/pr_space.h: Likewise.
13326         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13327         * lib/unictype/pr_titlecase.h: Likewise.
13328         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13329         * lib/unictype/pr_unified_ideograph.h: Likewise.
13330         * lib/unictype/pr_uppercase.h: Likewise.
13331         * lib/unictype/pr_variation_selector.h: Likewise.
13332         * lib/unictype/pr_white_space.h: Likewise.
13333         * lib/unictype/pr_xid_continue.h: Likewise.
13334         * lib/unictype/pr_xid_start.h: Likewise.
13335         * lib/unictype/pr_zero_width.h: Likewise.
13336         * lib/unictype/scripts.h: Likewise.
13337         * lib/unictype/scripts_byname.gperf: Likewise.
13338         * lib/unictype/sy_c_ident.h: Likewise.
13339         * lib/unictype/sy_c_whitespace.h: Likewise.
13340         * lib/unictype/sy_java_ident.h: Likewise.
13341         * lib/unictype/sy_java_whitespace.h: Likewise.
13342
13343         * lib/unictype/Makefile: New file.
13344         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
13345         glibc.
13346         * lib/unictype/3level.h: New file, copied from glibc.
13347         * lib/unictype/3levelbit.h: New file.
13348
13349 2007-11-11  Bruno Haible  <bruno@clisp.org>
13350
13351         * modules/gperf: New file.
13352         * modules/iconv_open (Depends-on): Add it.
13353         (Makefile.am): Remove the GPERF definition.
13354
13355 2007-11-11  Bruno Haible  <bruno@clisp.org>
13356
13357         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
13358         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
13359
13360 2007-11-11  Bruno Haible  <bruno@clisp.org>
13361
13362         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
13363         (usage): Remove function.
13364
13365 2007-11-11  Bruno Haible  <bruno@clisp.org>
13366
13367         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
13368         gl_FUNC_CEILF_LIBS.
13369         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
13370         gl_FUNC_CEIL_LIBS.
13371         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
13372         gl_FUNC_CEILL_LIBS.
13373         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
13374         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
13375         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
13376
13377 2007-11-11  Bruno Haible  <bruno@clisp.org>
13378
13379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
13380         roundf were declared but do not exist on functions.
13381         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
13382         roundl were declared but do not exist on functions.
13383         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
13384         HAVE_FLOORL_AND_CEILL, respectively.
13385         Needed for Sun C on Solaris 10.
13386
13387 2007-11-11  Bruno Haible  <bruno@clisp.org>
13388
13389         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
13390         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
13391         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
13392         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
13393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
13394         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
13395         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
13396         HAVE_DECL_ROUNDF.
13397         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
13398         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
13399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
13400         of HAVE_DECL_ROUND*.
13401         * modules/math (Makefile.am): Update.
13402
13403 2007-11-10  Bruno Haible  <bruno@clisp.org>
13404
13405         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
13406         ptrdiff_t as m4/intl.m4.
13407
13408 2007-11-10  Jim Meyering  <meyering@redhat.com>
13409
13410         Avoid link failure for the argmatch test.
13411         * tests/test-argmatch.c (usage): Define function to avoid a link
13412         failure: argmatch_die requires a usage function.
13413
13414 2007-11-09  Bruno Haible  <bruno@clisp.org>
13415
13416         * doc/functions/snprintf.texi: Mention BeOS deficiency.
13417         * doc/functions/vsnprintf.texi: Likewise.
13418         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
13419         with a size argument < 2.
13420
13421 2007-11-09  Bruno Haible  <bruno@clisp.org>
13422
13423         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
13424         buffer. Fixes an inefficiency introduced on 2007-11-03.
13425
13426 2007-11-09  Bruno Haible  <bruno@clisp.org>
13427
13428         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
13429         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
13430
13431 2007-11-08  Jim Meyering  <meyering@redhat.com>
13432
13433         Change cache variable name prefix "jm_" to "gl_" everywhere.
13434         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
13435         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
13436         * m4/uptime.m4: s/gl_/jm_/
13437
13438 2007-11-07  Bruno Haible  <bruno@clisp.org>
13439
13440         Update to GNU gettext 0.17.
13441         * m4/intl.m4: Update to GNU gettext 0.17.
13442         * m4/po.m4: Likewise.
13443         * modules/gettext (Files): Remove m4/ulonglong.m4.
13444         (configure.ac): Require gettext infrastructure from version 0.17.
13445
13446 2007-11-06  Bruno Haible  <bruno@clisp.org>
13447
13448         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
13449         symbolic values are not defined in a public header.
13450         * lib/freadable.c (freadable) [QNX]: Likewise.
13451         * lib/freadahead.c (freadahead) [QNX]: Likewise.
13452         * lib/freading.c (freading) [QNX]: Likewise.
13453         * lib/fseterr.c (fseterr) [QNX]: Likewise.
13454         * lib/fwritable.c (fwritable) [QNX]: Likewise.
13455         * lib/fwriting.c (fwriting) [QNX]: Likewise.
13456         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
13457         Reported by Alain Magloire.
13458
13459         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
13460
13461 2007-11-05  Bruno Haible  <bruno@clisp.org>
13462
13463         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
13464         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
13465         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
13466         Reported by Eric Blake.
13467
13468 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13469             Bruno Haible  <bruno@clisp.org>
13470
13471         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
13472         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
13473         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
13474         (malloc): Undefine also before including <stdlib.h>.
13475         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
13476         Needed on OSF/1 4.0.
13477
13478 2007-11-05  Jim Meyering  <meyering@redhat.com>
13479
13480         git-version-gen: sync from coreutils.
13481         * build-aux/git-version-gen: Add comments.
13482         Change the first '-' to '.' in the snapshot version string,
13483         e.g., 6.9-377-08144 -> 6.9.377-08144
13484         Remove first parameter.
13485         Don't declare a version "-dirty" merely because a time
13486         stamp has changed.
13487
13488 2007-11-04  Bruno Haible  <bruno@clisp.org>
13489
13490         * lib/lock.h: Protect all macro definitions containing an 'if'
13491         statement through a "do { ... } while (0)".
13492         * lib/tls.h: Likewise.
13493
13494 2007-11-04  Bruno Haible  <bruno@clisp.org>
13495
13496         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
13497
13498 2007-11-04  Bruno Haible  <bruno@clisp.org>
13499
13500         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
13501         * modules/fprintf-posix (Depends-on): Add nocrash.
13502         * modules/snprintf-posix (Depends-on): Likewise.
13503         * modules/sprintf-posix (Depends-on): Likewise.
13504         * modules/vasnprintf-posix (Depends-on): Likewise.
13505         * modules/vasprintf-posix (Depends-on): Likewise.
13506         * modules/vfprintf-posix (Depends-on): Likewise.
13507         * modules/vsnprintf-posix (Depends-on): Likewise.
13508         * modules/vsprintf-posix (Depends-on): Likewise.
13509         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13510         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13511         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13513         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13514         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13515         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13516
13517 2007-11-04  Bruno Haible  <bruno@clisp.org>
13518
13519         * modules/nocrash: New file.
13520         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
13521         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
13522
13523 2007-11-04  Bruno Haible  <bruno@clisp.org>
13524
13525         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
13526         precision handling.
13527         * tests/test-vasprintf-posix.c (test_function): Likewise.
13528         * tests/test-snprintf-posix.h (test_function): Likewise.
13529         * tests/test-sprintf-posix.h (test_function): Likewise.
13530
13531         Fix *printf behaviour for large precisions on mingw and BeOS.
13532         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
13533         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
13534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
13535         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13537         gl_PRINTF_PRECISION and test its result. Invoke
13538         gl_PREREQ_VASNPRINTF_PRECISION.
13539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13542         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13543         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13545         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13546         * doc/functions/fprintf.texi: Update.
13547         * doc/functions/printf.texi: Update.
13548         * doc/functions/snprintf.texi: Update.
13549         * doc/functions/sprintf.texi: Update.
13550         * doc/functions/vfprintf.texi: Update.
13551         * doc/functions/vprintf.texi: Update.
13552         * doc/functions/vsnprintf.texi: Update.
13553         * doc/functions/vsprintf.texi: Update.
13554
13555 2007-11-04  Bruno Haible  <bruno@clisp.org>
13556
13557         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
13558
13559 2007-11-04  Bruno Haible  <bruno@clisp.org>
13560
13561         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
13562         Reported by Sylvain Beucler <beuc@gnu.org>.
13563
13564 2007-11-03  Bruno Haible  <bruno@clisp.org>
13565
13566         * tests/test-fprintf-posix2.sh: New file.
13567         * tests/test-fprintf-posix2.c: New file.
13568         * modules/fprintf-posix-tests (Files): Add them.
13569         (TESTS): Add test-fprintf-posix2.sh.
13570         (configure.ac): Check for getrlimit and setrlimit.
13571         (check_PROGRAMS): Add test-fprintf-posix2.
13572
13573         * tests/test-printf-posix2.sh: New file.
13574         * tests/test-printf-posix2.c: New file.
13575         * modules/printf-posix-tests (Files): Add them.
13576         (TESTS): Add test-printf-posix2.sh.
13577         (configure.ac): Check for getrlimit and setrlimit.
13578         (check_PROGRAMS): Add test-printf-posix2.
13579
13580         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
13581         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
13582         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
13583         (decode_double): New function, copied from decode_long_double.
13584         (scale10_round_decimal_decoded): New function, extracted from
13585         scale10_round_decimal_long_double.
13586         (scale10_round_decimal_long_double): Use it.
13587         (scale10_round_decimal_double): New function.
13588         (floorlog10): New function.
13589         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
13590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
13591         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13593         gl_PRINTF_ENOMEM and test its result. Invoke
13594         gl_PREREQ_VASNPRINTF_ENOMEM.
13595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13602         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
13603         * modules/snprintf-posix (Depends-on): Likewise.
13604         * modules/sprintf-posix (Depends-on): Likewise.
13605         * modules/vasnprintf-posix (Depends-on): Likewise.
13606         * modules/vasprintf-posix (Depends-on): Likewise.
13607         * modules/vfprintf-posix (Depends-on): Likewise.
13608         * modules/vsnprintf-posix (Depends-on): Likewise.
13609         * modules/vsprintf-posix (Depends-on): Likewise.
13610         * doc/functions/fprintf.texi: Update.
13611         * doc/functions/printf.texi: Update.
13612         * doc/functions/snprintf.texi: Update.
13613         * doc/functions/sprintf.texi: Update.
13614         * doc/functions/vfprintf.texi: Update.
13615         * doc/functions/vprintf.texi: Update.
13616         * doc/functions/vsnprintf.texi: Update.
13617         * doc/functions/vsprintf.texi: Update.
13618
13619 2007-11-03  Bruno Haible  <bruno@clisp.org>
13620
13621         * modules/frexp-nolibm-tests: New file.
13622
13623         * modules/frexp-nolibm: New file.
13624         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
13625
13626 2007-11-03  Bruno Haible  <bruno@clisp.org>
13627
13628         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
13629         value is C99 compliant.
13630         Needed for OSF/1 5.1.
13631
13632 2007-11-03  Bruno Haible  <bruno@clisp.org>
13633
13634         Fix out-of-memory handling of vasnprintf.
13635         * lib/printf-parse.c: Include <errno.h>.
13636         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
13637         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
13638         is already set.
13639
13640 2007-11-02  Eric Blake  <ebb9@byu.net>
13641
13642         Fix tests on cygwin.
13643         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
13644
13645 2007-11-01  Bruno Haible  <bruno@clisp.org>
13646
13647         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
13648         warning.
13649         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
13650         needed for POSIX compatibility.
13651
13652 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
13653
13654         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
13655         for compatibility with GNU.
13656
13657 2007-11-01  Bruno Haible  <bruno@clisp.org>
13658
13659         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
13660         (putenv): Renamed from rpl_putenv. Change argument type from
13661         'const char *' to 'char *'.
13662         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
13663         of defining putenv in config.h, just set REPLACE_PUTENV.
13664         * modules/putenv (Depends-on): Add stdlib.
13665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13666         (Include): Use <stdlib.h>.
13667         * lib/stdlib.in.h (putenv): New declaration.
13668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
13669         REPLACE_PUTENV.
13670         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
13671         REPLACE_PUTENV.
13672         Needed for MacOS X 10.5.0.
13673         Reported by Peter O'Gorman <peter@pogma.com>.
13674
13675 2007-11-01  Jim Meyering  <meyering@redhat.com>
13676
13677         Treat an empty date string exactly like "0".
13678         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
13679         if the remaining date string (to be parsed) is empty, use "0".
13680         Reported by Mischa Molhoek and discussed in this thread:
13681         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
13682
13683 2007-10-31  Bruno Haible  <bruno@clisp.org>
13684
13685         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
13686         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
13687         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
13688         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
13689         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
13690         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
13691
13692 2007-10-31  Bruno Haible  <bruno@clisp.org>
13693
13694         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
13695         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
13696         (AC_TYPE_LONG_LONG_INT): Use it.
13697         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
13698         it as well.
13699         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
13700         to m4/longlong.m4.
13701         * modules/stdint (Files): Remove m4/ulonglong.m4.
13702         * modules/strtoull (Files): Use m4/longlong.m4 instead of
13703         m4/ulonglong.m4.
13704         * modules/strtoumax (Files): Likewise.
13705
13706 2007-10-30  Bruno Haible  <bruno@clisp.org>
13707
13708         * modules/xvasprintf-posix: New file.
13709         Suggested by Eric Blake.
13710
13711 2007-10-30  Bruno Haible  <bruno@clisp.org>
13712
13713         * modules/xprintf-posix-tests: New file.
13714         * tests/test-xprintf-posix.sh: New file.
13715         * tests/test-xprintf-posix.c: New file.
13716         * tests/test-xfprintf-posix.c: New file.
13717
13718         * modules/xprintf-posix: New file.
13719
13720 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13721
13722         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
13723         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
13724         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
13725
13726 2007-10-29  Bruno Haible  <bruno@clisp.org>
13727
13728         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
13729         contain the special marker '_cv_'.
13730         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13731         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13732         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13733         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13734         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13735         Reported by Ralf Wildenhues.
13736
13737 2007-10-29  Bruno Haible  <bruno@clisp.org>
13738
13739         * gnulib-tool (func_import): When --lgpl is not specified, set
13740         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
13741         GPLv3.
13742         Reported by Simon Josefsson.
13743
13744 2007-10-28  Bruno Haible  <bruno@clisp.org>
13745
13746         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
13747         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
13748         HAVE_DECL_ISFINITE.
13749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
13750         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
13751         HAVE_DECL_ISFINITE.
13752
13753 2007-10-28  Bruno Haible  <bruno@clisp.org>
13754
13755         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
13756         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
13757
13758 2007-10-28  Bruno Haible  <bruno@clisp.org>
13759
13760         Fix link errors with Sun C 5.0 on Solaris 10.
13761         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
13762         function is declared but not present in the compiler's libm.
13763         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13764         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13765         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
13766         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
13767         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
13768         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
13769         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
13770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
13771         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
13772         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
13773         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
13774         HAVE_DECL_FLOORL.
13775
13776 2007-10-28  Bruno Haible  <bruno@clisp.org>
13777
13778         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
13779         gl_FUNC_FLOORL. Cache the result.
13780         (gl_FUNC_FLOORL): Use it.
13781         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
13782         gl_FUNC_CEILL. Cache the result.
13783         (gl_FUNC_CEILL): Use it.
13784
13785         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
13786         gl_FUNC_FLOOR. Cache the result.
13787         (gl_FUNC_FLOOR): Use it.
13788         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
13789         gl_FUNC_CEIL. Cache the result.
13790         (gl_FUNC_CEIL): Use it.
13791
13792         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
13793         gl_FUNC_FLOORF. Cache the result.
13794         (gl_FUNC_FLOORF): Use it.
13795         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
13796         gl_FUNC_CEILF. Cache the result.
13797         (gl_FUNC_CEILF): Use it.
13798
13799 2007-10-28  Bruno Haible  <bruno@clisp.org>
13800
13801         * gnulib-tool: Allow specifying the LGPL version number through
13802         --lgpl=2 or --lgpl=3.
13803         (func_usage): Document --lgpl with argument.
13804         Handle --lgpl=... arguments.
13805         (func_import): Recognize also gl_LGPL calls with an argument. When
13806         --lgpl=2 is used and the module's license is just LGPL, report an
13807         error. Set sed_transform_lib_file according to the lgpl variable. In
13808         the generated files, use --lgpl or gl_LGPL invocations with argument,
13809         if necessary.
13810         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
13811         an LGPv2+ license.
13812         * doc/gnulib-tool.texi (Modified imports): Update explanation of
13813         gl_LGPL macro.
13814
13815 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13816             Bruno Haible  <bruno@clisp.org>
13817
13818         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
13819         (u16_uctomb_aux): Likewise.
13820         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
13821         !HAVE_INLINE.
13822         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
13823
13824 2007-10-28  Bruno Haible  <bruno@clisp.org>
13825
13826         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
13827         Invoke AM_GETTEXT_OPTION if it exists.
13828         * modules/vasprintf: Likewise.
13829         * modules/verror: Likewise.
13830         * modules/xprintf: Likewise.
13831         * modules/xvasprintf: Likewise.
13832
13833 2007-10-27  Ben Pfaff  <blp@gnu.org>
13834
13835         * lib/math.in.h: Define isfinite macro and prototypes for
13836         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
13837         implementations.
13838         * m4/math_h.m4: New substitutions for isfinite module.
13839         * lib/isfinite.c: New file.
13840         * m4/isfinite.m4: New file.
13841         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
13842         * modules/isfinite: New file.
13843         * modules/isfinite-tests: New file.
13844         * tests/tests-isfinite.c: New file.
13845         * doc/functions/isfinite.texi: Mention isfinite module.
13846         * MODULES.html.sh: Mention new module.
13847
13848 2007-10-27  Ben Pfaff  <blp@gnu.org>
13849
13850         Ralf Wildenhues reported that Tru64 4.0D declares the round
13851         functions but does not have definitions.
13852         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
13853         cannot be found in any library, set the output variable to
13854         "missing" instead of "".
13855         * m4/round.m4: Also use our substitute if we cannot find round in
13856         any library, even if it is declared.
13857         * m4/roundf.m4: Likewise for roundf.
13858         * m4/roundl.m4: Likewise for roundl.
13859         * lib/math.in.h: Undefine roundf, round, roundl before defining
13860         their replacements, to allow for hypothetical systems where these
13861         may be defined as macros but not available in libraries.
13862
13863 2007-10-27  Bruno Haible  <bruno@clisp.org>
13864
13865         * doc/gnulib.texi: Invoke @firstparagraphindent.
13866         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
13867         changes in gnulib.
13868         (Source changes): New section.
13869
13870 2007-10-26  Bruno Haible  <bruno@clisp.org>
13871
13872         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
13873         borrowed from autoconf.
13874
13875 2007-10-26  Bruno Haible  <bruno@clisp.org>
13876
13877         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
13878         strerror returned the empty string. Needed on HP-UX 11.00.
13879
13880 2007-10-24  Micah Cowan  <micah@cowan.name>
13881
13882         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
13883         * build-aux/bootstrap: Remove support for now-unnecessary option,
13884         --cvs-user, and envvars CVS_USER, CVS_RSH.
13885
13886 2007-10-24  Jim Meyering  <meyering@redhat.com>
13887
13888         Avoid diagnostics from sha1sum when there is no cached checksum.
13889         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
13890         if the po.s1 file hasn't been created yet.
13891
13892         * build-aux/bootstrap: Sync from coreutils:
13893         2007-10-24  Jim Meyering  <meyering@redhat.com>
13894         Get gnulib from the git repository, not from an obsolete cvs one.
13895         * build-aux/bootstrap: Suggestion from Micah Cowan.
13896         2007-10-04  Jim Meyering  <jim@meyering.net>
13897         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
13898         (update_po_files): Work also when there are no .po files in po/.
13899
13900 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13901
13902         * README: Append ".git" to git and cg examples.
13903         Problem reported by Benoit Sigoure.
13904
13905 2007-10-23  Micah Cowan  <micah@cowan.name>
13906
13907         * users.txt: Add wget.
13908
13909 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13910
13911         Fix linking of some unistdio tests on FreeBSD.
13912         * modules/unistdio/u16-vsnprintf-tests
13913         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
13914         * modules/unistdio/u16-vsprintf-tests
13915         (test_u16_vsnprintf1_LDADD): Likewise.
13916         * modules/unistdio/u32-vsnprintf-tests
13917         (test_u32_vsnprintf1_LDADD): Likewise.
13918         * modules/unistdio/u32-vsprintf-tests
13919         (test_u32_vsprintf1_LDADD): Likewise.
13920         * modules/unistdio/u8-vsnprintf-tests
13921         (test_u8_vsnprintf1_LDADD): Likewise.
13922         * modules/unistdio/u8-vsprintf-tests
13923         (test_u8_vsprintf1_LDADD): Likewise.
13924         * modules/unistdio/ulc-vsnprintf-tests
13925         (test_ulc_vsnprintf1_LDADD): Likewise.
13926         * modules/unistdio/ulc-vsprintf-tests
13927         (test_ulc_vsprintf1_LDADD): Likewise.
13928
13929         Fix linking of some uniconv tests on FreeBSD.
13930         * modules/uniconv/u16-conv-from-enc-tests
13931         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
13932         * modules/uniconv/u16-conv-to-enc-tests
13933         (test_u16_conv_to_enc_LDADD): Likewise.
13934         * modules/uniconv/u16-strconv-from-enc-tests
13935         (test_u16_strconv_from_enc_LDADD): Likewise.
13936         * modules/uniconv/u16-strconv-to-enc-tests
13937         (test_u16_strconv_to_enc_LDADD): Likewise.
13938         * modules/uniconv/u32-conv-from-enc-tests
13939         (test_u32_conv_from_enc_LDADD): Likewise.
13940         * modules/uniconv/u32-conv-to-enc-tests
13941         (test_u32_conv_to_enc_LDADD): Likewise.
13942         * modules/uniconv/u32-strconv-from-enc-tests
13943         (test_u32_strconv_from_enc_LDADD): Likewise.
13944         * modules/uniconv/u32-strconv-to-enc-tests
13945         (test_u32_strconv_to_enc_LDADD): Likewise.
13946         * modules/uniconv/u8-conv-from-enc-tests
13947         (test_u8_conv_from_enc_LDADD): Likewise.
13948         * modules/uniconv/u8-conv-to-enc-tests
13949         (test_u8_conv_to_enc_LDADD): Likewise.
13950         * modules/uniconv/u8-strconv-from-enc-tests
13951         (test_u8_strconv_from_enc_LDADD): Likewise.
13952         * modules/uniconv/u8-strconv-to-enc-tests
13953         (test_u8_strconv_to_enc_LDADD): Likewise.
13954
13955 2007-10-22  Bruno Haible  <bruno@clisp.org>
13956
13957         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
13958         size.
13959
13960 2007-10-22  Eric Blake  <ebb9@byu.net>
13961
13962         Tweak x*printf documentation.
13963         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
13964         variable name and comments.
13965         Suggested by Bruno Haible.
13966
13967 2007-10-22  Bruno Haible  <bruno@clisp.org>
13968
13969         * lib/acl.c (copy_acl): Fix file name in comment.
13970
13971 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         Fix Tru64 problem with stdbool.h.
13974         * lib/stdbool.in.h (false, true):
13975         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
13976         Don't declare as an enum in this situation; it runs afoul of Tru64.
13977         Problem reported by Steven M. Schweda in
13978         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
13979
13980 2007-10-22  Eric Blake  <ebb9@byu.net>
13981
13982         Also wrap vf?printf.
13983         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
13984         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
13985         (xvprintf, xvfprintf): New functions.
13986
13987 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13988
13989         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
13990         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
13991
13992         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
13993         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
13994
13995 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
13996
13997         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
13998         by Bruno Haible.
13999
14000 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14001
14002         * lib/getloadavg.c
14003         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
14004         Undef `sys' after including sys/table.h, for Tru64 4.0D.
14005
14006         * tests/test-i-ring.c: Work for C89.
14007
14008 2007-10-22  Bruno Haible  <bruno@clisp.org>
14009
14010         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
14011         -1u, in preprocessor expression, so that we don't test for the bug
14012         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
14013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
14014
14015 2007-10-22  Eric Blake  <ebb9@byu.net>
14016
14017         * tests/test-yesno.sh: Silence stderr during test.
14018
14019 2007-10-22  Simon Josefsson  <simon@josefsson.org>
14020
14021         * modules/crypto/gc-camellia: New file.
14022
14023         * m4/gc-camellia.m4: New file.
14024
14025         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
14026
14027         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
14028
14029 2007-10-22  Simon Josefsson  <simon@josefsson.org>
14030
14031         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
14032         --help to stdout.  Reported by sms@antinode.org (Steven
14033         M. Schweda).
14034
14035 2007-10-22  Simon Josefsson  <simon@josefsson.org>
14036
14037         * users.txt: Fix link to libksba.
14038
14039 2007-10-21  Ben Pfaff  <blp@gnu.org>
14040
14041         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
14042         round.c roundf implementation that depends on floorf and ceilf to
14043         be tested unconditionally.
14044
14045 2007-10-21  Ben Pfaff  <blp@gnu.org>
14046
14047         * m4/check-libm-func.m4: Removed.
14048         * m4/check-math-lib.m4: New file.
14049         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
14050         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
14051         definition and lack of AC_LIBOBJ([roundf]).
14052         * m4/roundl.m4: Ditto, and similarly for roundl.
14053         * modules/round: Reference new m4 file.
14054         * modules/roundf: Ditto.
14055         * modules/roundl: Ditto.
14056         * tests/test-round2.c (main): Use ROUND instead of round.
14057         Bug report from Bruno Haible.
14058
14059 2007-10-21  Bruno Haible  <bruno@clisp.org>
14060
14061         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
14062         context.
14063
14064 2007-10-21  Bruno Haible  <bruno@clisp.org>
14065
14066         * tests/test-wcwidth.c (main): Allow negative result for some control
14067         characters.
14068
14069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
14070         Needed on OSF/1 5.1.
14071
14072 2007-10-21  Bruno Haible  <bruno@clisp.org>
14073
14074         * tests/test-floorf1.c: Include isnanf.h.
14075         (main): Use isnanf() instead of isnan().
14076         * tests/test-ceilf1.c: Include isnanf.h.
14077         (main): Use isnanf() instead of isnan().
14078         * tests/test-truncf1.c: Include isnanf.h.
14079         (main): Use isnanf() instead of isnan().
14080         * tests/test-roundf1.c: Include isnanf.h.
14081         (main): Use isnanf() instead of isnan().
14082
14083 2007-10-21  Eric Blake  <ebb9@byu.net>
14084
14085         * users.txt: Update URL for m4.
14086
14087 2007-10-21  Bruno Haible  <bruno@clisp.org>
14088
14089         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
14090
14091 2007-10-21  Bruno Haible  <bruno@clisp.org>
14092
14093         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
14094         Git's management files if the CVS files are not present.
14095
14096 2007-10-20  Bruno Haible  <bruno@clisp.org>
14097
14098         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
14099         gcc-3.4.x.
14100
14101 2007-10-20  Ben Pfaff  <blp@gnu.org>
14102
14103         * lib/math.in.h: Declare round, roundf, roundl if we are providing
14104         implementations.
14105         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
14106         * lib/round.c: New file.
14107         * lib/roundf.c: New file.
14108         * lib/roundl.c: New file.
14109         * m4/round.m4: New file.
14110         * m4/roundf.m4: New file.
14111         * m4/roundl.m4: New file.
14112         * m4/check-libm-func-m4: New file.
14113         * modules/math: Replace round, roundf, roundl related @VARS@ in
14114         math.in.h.
14115         * modules/round: New file.
14116         * modules/round-tests: New file.
14117         * modules/roundf: New file.
14118         * modules/roundf-tests: New file.
14119         * modules/roundl: New file.
14120         * modules/roundl-tests: New file.
14121         * tests/test-round1.c: New file.
14122         * tests/test-round2.c: New file.
14123         * tests/test-roundf1.c: New file.
14124         * tests/test-roundf2.c: New file.
14125         * tests/test-roundl.c: New file.
14126         * doc/functions/round.texi: Mention round module.
14127         * doc/functions/roundf.texi: Mention roundf module.
14128         * doc/functions/roundl.texi: Mention roundl module.
14129         * MODULES.html.sh: Mention new modules.
14130         Thanks to Bruno Haible for suggestions.
14131
14132 2007-10-20  Jim Meyering  <meyering@redhat.com>
14133
14134         * lib/xprintf.c: Include <config.h> unconditionally.
14135
14136         Change xprintf's license to GPL.
14137         * modules/xprintf (License): s/LGPL/GPL/, since this module
14138         depends on modules (exit and exitfail) which are GPL.
14139         Suggestion from Bruno Haible.
14140
14141         xprintf fixes.
14142         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
14143         Use a clearer diagnostic.
14144         Patch from Bruno Haible.
14145
14146 2007-10-20  Bruno Haible  <bruno@clisp.org>
14147
14148         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
14149         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
14150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14151
14152 2007-10-20  Bruno Haible  <bruno@clisp.org>
14153
14154         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
14155         precision in the comparison result > x - 1 or similar.
14156         * tests/test-ceilf2.c (correct_result_p): Likewise.
14157         * tests/test-truncf2.c (correct_result_p): Likewise.
14158         * tests/test-trunc2.c (correct_result_p): Likewise.
14159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14160
14161 2007-10-20  Bruno Haible  <bruno@clisp.org>
14162
14163         * modules/ceil: New file.
14164         * m4/ceil.m4: New file.
14165         * doc/functions/ceil.texi: Mention the 'ceil' module.
14166
14167 2007-10-20  Bruno Haible  <bruno@clisp.org>
14168
14169         * modules/floor: New file.
14170         * m4/floor.m4: New file.
14171         * doc/functions/floor.texi: Mention the 'floor' module.
14172
14173 2007-10-20  Bruno Haible  <bruno@clisp.org>
14174
14175         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
14176         of %a.
14177         * modules/floorf-tests (Depends-on): Likewise.
14178         * modules/truncf-tests (Depends-on): Likewise.
14179         * modules/trunc-tests (Depends-on): Likewise.
14180         Reported by Ben Pfaff.
14181
14182 2007-10-19  Jim Meyering  <meyering@redhat.com>
14183
14184         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
14185         Don't bother testing specific errno values.  Just test ferror.
14186
14187         New module: xprintf
14188         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
14189
14190 2007-10-19  Bruno Haible  <bruno@clisp.org>
14191
14192         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
14193         syntax.
14194         * modules/javaexec (Makefile.am): Likewise.
14195         * modules/relocatable-prog (Makefile.am): Likewise.
14196         Suggested by Jim Meyering.
14197
14198 2007-10-18  Bruno Haible  <bruno@clisp.org>
14199
14200         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
14201         Reported by Jim Meyering.
14202
14203 2007-10-18  Eric Blake  <ebb9@byu.net>
14204
14205         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
14206
14207 2007-10-18  Bruno Haible  <bruno@clisp.org>
14208
14209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
14210         the format string into writable memory. Needed in Fortify conditions.
14211
14212 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
14213             Bruno Haible  <bruno@clisp.org>
14214
14215         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
14216         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
14217         * modules/trim (Depends-on): Add mbchar.
14218         (configure.ac): Add gl_FUNC_MBRTOWC.
14219         (Makefile.am): Augment lib_SOURCES.
14220
14221 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         Modify glob.c to use fstatat and dirfd, to simplify it.
14224         Suggested by Eric Blake.
14225         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
14226         Don't include <stdbool.h>; not used.
14227         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
14228         (link_exists_p): Simplify implementation, since we can now assume
14229         dirfd and fstatat.
14230         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
14231
14232 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14233
14234         * gnulib-tool (func_get_dependencies): Fix sed script to
14235         match only tests.
14236
14237 2007-10-17  Bruno Haible  <bruno@clisp.org>
14238
14239         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
14240         allow locale names without encoding suffix.
14241         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14242         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14243
14244 2007-10-16  Bruno Haible  <bruno@clisp.org>
14245
14246         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
14247         * lib/getgroups.c (getgroups): Likewise.
14248         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
14249
14250 2007-10-16  Bruno Haible  <bruno@clisp.org>
14251
14252         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
14253         * modules/malloc-posix (License): Likewise.
14254         * modules/realloc-posix (License): Likewise.
14255         * modules/calloc-posix (License): Likewise.
14256         * modules/intprops (License): Change from GPL to LGPL, with
14257         Paul Eggert's approval.
14258
14259 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14260
14261         Merge glibc changes into lib/glob.c.
14262
14263         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
14264         2007-10-15 04:59:03 UTC.  Here are the changes:
14265
14266         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
14267
14268         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
14269
14270         * lib/glob.c: Add some branch prediction throughout.
14271
14272         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
14273
14274         [BZ #5103]
14275         * lib/glob.c (glob): Recognize patterns starting \/.
14276
14277         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
14278
14279         [BZ #3996]
14280         * lib/glob.c (attribute_hidden): Define if not defined.
14281         (glob): Unescape dirname, filename or username when needed and not
14282         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
14283         is NULL.  Handle unescaped [ in pattern without closing ].
14284         Don't pass GLOB_CHECK down to recursive glob for directories.
14285         (__glob_pattern_type): New function.
14286         (__glob_pattern_p): Implement using __glob_pattern_type.
14287         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
14288         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
14289         Remove unreachable code.
14290
14291         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
14292
14293         * lib/glob.c (glob_in_dir): Add some comments and asserts to
14294         explain why there are no leaks.
14295
14296         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
14297
14298         [BZ #3253]
14299         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
14300         time, rather allocate increasingly bigger arrays of pointers, if
14301         possible with alloca, if too large with malloc.
14302
14303 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14304
14305         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
14306         Problem reported by H.Merijn Brand in
14307         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
14308         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
14309         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14310
14311 2007-10-15  Bruno Haible  <bruno@clisp.org>
14312
14313         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
14314         with explicit rpl_ prefix.
14315         * lib/fopen.c (fopen): Likewise.
14316         * lib/freopen.c (freopen): Likewise.
14317         * lib/iconv.c (iconv): Likewise.
14318         * lib/iconv_close.c (iconv_close): Likewise.
14319
14320 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14321
14322         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
14323
14324 2007-10-15  Bruno Haible  <bruno@clisp.org>
14325
14326         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
14327         <stddef.h> instead of <stdlib.h> since we only need NULL.
14328         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14329
14330 2007-10-15  Bruno Haible  <bruno@clisp.org>
14331
14332         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
14333         Replace paragraph talking about LIBOBJS.
14334         Reported by Colin Watson <cjwatson@debian.org>.
14335
14336 2007-10-15  Bruno Haible  <bruno@clisp.org>
14337
14338         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
14339         <stdlib.h> before using NULL.
14340
14341 2007-10-15  Simon Josefsson  <simon@josefsson.org>
14342
14343         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
14344         Reported by Albert Chin <china@thewrittenword.com>.
14345
14346 2007-10-14  Bruno Haible  <bruno@clisp.org>
14347
14348         * modules/iconv_open-utf-tests: New file.
14349         * tests/test-iconv-utf.c: New file.
14350
14351         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
14352         * modules/iconv_open-utf: New file.
14353         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
14354         (iconv, iconv_close): New declarations.
14355         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
14356         be defined.
14357         (iconv_open): Add special handling of conversion between UTF-8 and
14358         UTF-{16,32}{BE,LE}.
14359         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
14360         * lib/iconv_close.c: New file.
14361         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
14362         gl_FUNC_ICONV_OPEN.
14363         (gl_FUNC_ICONV_OPEN): Use it.
14364         (gl_FUNC_ICONV_OPEN_UTF): New macro.
14365         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
14366         and REPLACE_ICONV_UTF.
14367         * modules/iconv_open (Depends-on): Add c-strcase.
14368         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
14369         ICONV_CONST.
14370         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
14371
14372 2007-10-13  Albert Chin  <china@thewrittenword.com>
14373             Bruno Haible  <bruno@clisp.org>
14374
14375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
14376         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
14377
14378 2007-10-13  Bruno Haible  <bruno@clisp.org>
14379
14380         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
14381         defined, use the ISO C99 inline semantics.
14382         * lib/argp.h (ARGP_EI): Likewise.
14383
14384 2007-10-13  Bruno Haible  <bruno@clisp.org>
14385
14386         Handle 'inline' change in gcc 4.3.0.
14387         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
14388         argp_fmtstream_write, argp_fmtstream_set_lmargin,
14389         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
14390         argp_fmtstream_point): Disable 'extern' declaration if the function
14391         definition is going to be provided inline.
14392         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
14393         semantics, not the ISO C99 inline semantics.
14394         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
14395         'extern' declaration if the function definition is going to be provided
14396         inline.
14397         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
14398         the GNU C inline semantics, not the ISO C99 inline semantics. With
14399         GCC 4.2, avoid a warning.
14400
14401 2007-10-13  Bruno Haible  <bruno@clisp.org>
14402
14403         * lib/freading.h (freading): Enable the use of __freading for
14404         glibc >= 2.7.
14405         * lib/freading.c (freading): Likewise.
14406
14407 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
14410         "warning: C99 inline functions are not supported; using GNU89".
14411
14412 2007-10-12  Bruno Haible  <bruno@clisp.org>
14413
14414         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
14415         of 2.
14416         * tests/test-ceilf2.c: New file.
14417         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
14418
14419         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
14420         * modules/ceilf-tests: Update.
14421
14422 2007-10-12  Bruno Haible  <bruno@clisp.org>
14423
14424         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
14425         of 2.
14426         * tests/test-floorf2.c: New file.
14427         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
14428
14429         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
14430         * modules/floorf-tests: Update.
14431
14432 2007-10-12  Bruno Haible  <bruno@clisp.org>
14433
14434         * tests/test-trunc2.c: New file.
14435         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
14436
14437         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
14438         * modules/trunc-tests: Update.
14439
14440 2007-10-12  Bruno Haible  <bruno@clisp.org>
14441
14442         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
14443         of 2.
14444         * tests/test-truncf2.c: New file.
14445         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
14446
14447         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
14448         * modules/truncf-tests: Update.
14449
14450 2007-10-11  Eric Blake  <ebb9@byu.net>
14451
14452         Don't claim strerror is broken on Interix.
14453         * doc/functions/strerror.texi (strerror): Known broken systems are
14454         now Solaris 8, and not Interix.
14455         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
14456         Interix on cross-compile.
14457         Reported by Martin Koeppe in
14458         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
14459
14460 2007-10-11  Bruno Haible  <bruno@clisp.org>
14461
14462         * modules/i-ring-tests: New file.
14463         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
14464         instead of assert.
14465
14466 2007-10-11  Bruno Haible  <bruno@clisp.org>
14467
14468         * modules/filenamecat-tests: New file.
14469         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
14470         * lib/filenamecat.c: Remove test code.
14471
14472 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14473
14474         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
14475
14476         * lib/strerror.c: Include <string.h> always, to test interface,
14477         and to remove the need for the dummy.
14478         Include intprops.h to compute width instead of doing it ourselves
14479         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
14480         (strerror): Define it to return NULL if there's no system strerror.
14481         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
14482         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
14483         ancient pre-strerror Unix systems well any more.  Saying "unknown
14484         system error" is enough.
14485         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
14486         simpler strerror.c implementation.
14487         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
14488         Simplify the tests to reflect the simpler strerror implementation.
14489         * modules/strerror (Depends-on): Add intprops.
14490
14491 2007-10-09  Eric Blake  <ebb9@byu.net>
14492
14493         Silence test-fpending.
14494         * modules/fpending-tests (Files): Add wrapper script.
14495         * tests/test-fpending.sh: New file.
14496
14497 2007-10-09  Bruno Haible  <bruno@clisp.org>
14498
14499         * MODULES.html.sh (func_module): Don't create a hyperlink for
14500         function names like 'printf_frexp'.
14501         (Misc): Add crc, memxor.
14502         (Characteristics of floating types): New section.
14503         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
14504         isnanf-nolibm, signbit, trunc, truncf, truncl.
14505         (Enhancements for ISO C 99 functions): New subsection Input/output.
14506         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
14507         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
14508         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
14509         (Compatibility checks for POSIX:2001 functions): Add clock-time.
14510         (Enhancements for POSIX:2001 functions): Add chdir-long.
14511         (File system functions): Add areadlink, chdir-safer, read-file.
14512         Remove cycle-check.
14513         (File system as inode set): New section.
14514         (Date and time): Add gethrxtime.
14515         (Multithreading): Add openmp.
14516         (Internationalization functions): Add localename.
14517         (Unicode string functions): Add unistr/u*-mbsnlen.
14518         (Support for maintaining and releasing projects): Add git-version-gen.
14519         (Lone files): Remove directories.
14520
14521 2007-10-08  Ben Pfaff  <blp@gnu.org>
14522
14523         * lib/xmalloca.h: Fix typo in comment.
14524
14525 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14526
14527         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
14528         when avoiding problems with integer overflow.  Use a portable test
14529         instead.
14530
14531 2007-10-08  Simon Josefsson  <simon@josefsson.org>
14532
14533         * modules/dummy (License): Change to LGPLv2+.
14534         * modules/float (License): Likewise
14535         * modules/realloc (License): Likewise
14536         * modules/stdlib (License): Likewise
14537
14538 2007-10-07  Bruno Haible  <bruno@clisp.org>
14539
14540         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
14541         * floor.c (TWO_MANT_DIG): Likewise.
14542         * ceil.c (TWO_MANT_DIG): Likewise.
14543         Reported by Ben Pfaff.
14544
14545 2007-10-07  Bruno Haible  <bruno@clisp.org>
14546
14547         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
14548         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
14549         * lib/frexp.c (FUNC): Likewise.
14550         * lib/printf-frexp.h (printf_frexp): Likewise.
14551         * lib/printf-frexpl.h (printf_frexpl): Likewise.
14552         * lib/printf-frexp.c (FUNC): Likewise.
14553         Suggested by Jim Meyering.
14554
14555 2007-10-07  Jim Meyering  <meyering@redhat.com>
14556
14557         Make xnanosleep's integer overflow test more robust.
14558         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
14559         so that gcc-4.3.0 doesn't optimize away this test for overflow.
14560
14561 2007-10-07  Bruno Haible  <bruno@clisp.org>
14562
14563         * NEWS: Mention the license change.
14564
14565         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
14566         abbreviations in the modules files.
14567
14568         Change copyright notice from GPLv2+ to GPLv3+.
14569         * README: Change copyright notice.
14570         * MODULES.html.sh: Likewise.
14571         * build-aux/bootstrap.conf: Likewise.
14572         * build-aux/config.libpath: Likewise.
14573         * build-aux/csharpcomp.sh.in: Likewise.
14574         * build-aux/csharpexec.sh.in: Likewise.
14575         * build-aux/install-reloc: Likewise.
14576         * build-aux/javacomp.sh.in: Likewise.
14577         * build-aux/javaexec.sh.in: Likewise.
14578         * build-aux/ldd.sh.in: Likewise.
14579         * build-aux/reloc-ldflags: Likewise.
14580         * build-aux/relocatable.sh.in: Likewise.
14581         * build-aux/x-to-1.in: Likewise.
14582         * check-module: Likewise.
14583         * config/srclistvars.sh: Likewise.
14584         * gnulib-tool: Likewise.
14585         * lib/acl-internal.h: Likewise.
14586         * lib/acl.c: Likewise.
14587         * lib/acl.h: Likewise.
14588         * lib/acl_entries.c: Likewise.
14589         * lib/areadlink-with-size.c: Likewise.
14590         * lib/areadlink.c: Likewise.
14591         * lib/areadlink.h: Likewise.
14592         * lib/argmatch.c: Likewise.
14593         * lib/argmatch.h: Likewise.
14594         * lib/argp-ba.c: Likewise.
14595         * lib/argp-eexst.c: Likewise.
14596         * lib/argp-fmtstream.c: Likewise.
14597         * lib/argp-fmtstream.h: Likewise.
14598         * lib/argp-fs-xinl.c: Likewise.
14599         * lib/argp-help.c: Likewise.
14600         * lib/argp-namefrob.h: Likewise.
14601         * lib/argp-parse.c: Likewise.
14602         * lib/argp-pin.c: Likewise.
14603         * lib/argp-pv.c: Likewise.
14604         * lib/argp-pvh.c: Likewise.
14605         * lib/argp-xinl.c: Likewise.
14606         * lib/argp.h: Likewise.
14607         * lib/at-func.c: Likewise.
14608         * lib/atanl.c: Likewise.
14609         * lib/backupfile.c: Likewise.
14610         * lib/backupfile.h: Likewise.
14611         * lib/basename.c: Likewise.
14612         * lib/binary-io.h: Likewise.
14613         * lib/byteswap.in.h: Likewise.
14614         * lib/c-stack.c: Likewise.
14615         * lib/c-stack.h: Likewise.
14616         * lib/c-strcasestr.c: Likewise.
14617         * lib/c-strcasestr.h: Likewise.
14618         * lib/c-strstr.c: Likewise.
14619         * lib/c-strstr.h: Likewise.
14620         * lib/c-strtod.c: Likewise.
14621         * lib/calloc.c: Likewise.
14622         * lib/canon-host.c: Likewise.
14623         * lib/canon-host.h: Likewise.
14624         * lib/canonicalize-lgpl.c: Likewise.
14625         * lib/canonicalize.c: Likewise.
14626         * lib/canonicalize.h: Likewise.
14627         * lib/ceil.c: Likewise.
14628         * lib/ceilf.c: Likewise.
14629         * lib/ceill.c: Likewise.
14630         * lib/chdir-long.c: Likewise.
14631         * lib/chdir-long.h: Likewise.
14632         * lib/chdir-safer.c: Likewise.
14633         * lib/chdir-safer.h: Likewise.
14634         * lib/chown.c: Likewise.
14635         * lib/classpath.c: Likewise.
14636         * lib/classpath.h: Likewise.
14637         * lib/clean-temp.c: Likewise.
14638         * lib/clean-temp.h: Likewise.
14639         * lib/cloexec.c: Likewise.
14640         * lib/close-stream.c: Likewise.
14641         * lib/closein.c: Likewise.
14642         * lib/closein.h: Likewise.
14643         * lib/closeout.c: Likewise.
14644         * lib/closeout.h: Likewise.
14645         * lib/concat-filename.c: Likewise.
14646         * lib/copy-file.c: Likewise.
14647         * lib/copy-file.h: Likewise.
14648         * lib/count-one-bits.h: Likewise.
14649         * lib/crc.c: Likewise.
14650         * lib/crc.h: Likewise.
14651         * lib/creat-safer.c: Likewise.
14652         * lib/csharpcomp.c: Likewise.
14653         * lib/csharpcomp.h: Likewise.
14654         * lib/csharpexec.c: Likewise.
14655         * lib/csharpexec.h: Likewise.
14656         * lib/cycle-check.c: Likewise.
14657         * lib/cycle-check.h: Likewise.
14658         * lib/diacrit.c: Likewise.
14659         * lib/diacrit.h: Likewise.
14660         * lib/diffseq.h: Likewise.
14661         * lib/dirchownmod.c: Likewise.
14662         * lib/dirent.in.h: Likewise.
14663         * lib/dirfd.c: Likewise.
14664         * lib/dirfd.h: Likewise.
14665         * lib/dirname.c: Likewise.
14666         * lib/dirname.h: Likewise.
14667         * lib/dummy.c: Likewise.
14668         * lib/dup-safer.c: Likewise.
14669         * lib/dup2.c: Likewise.
14670         * lib/eealloc.h: Likewise.
14671         * lib/error.c: Likewise.
14672         * lib/error.h: Likewise.
14673         * lib/euidaccess.c: Likewise.
14674         * lib/exclude.c: Likewise.
14675         * lib/exclude.h: Likewise.
14676         * lib/execute.c: Likewise.
14677         * lib/execute.h: Likewise.
14678         * lib/exitfail.c: Likewise.
14679         * lib/exitfail.h: Likewise.
14680         * lib/expl.c: Likewise.
14681         * lib/fatal-signal.c: Likewise.
14682         * lib/fatal-signal.h: Likewise.
14683         * lib/fbufmode.c: Likewise.
14684         * lib/fbufmode.h: Likewise.
14685         * lib/fchdir.c: Likewise.
14686         * lib/fchmodat.c: Likewise.
14687         * lib/fchownat.c: Likewise.
14688         * lib/fcntl--.h: Likewise.
14689         * lib/fcntl-safer.h: Likewise.
14690         * lib/fcntl.in.h: Likewise.
14691         * lib/fd-safer.c: Likewise.
14692         * lib/fflush.c: Likewise.
14693         * lib/file-has-acl.c: Likewise.
14694         * lib/file-set.c: Likewise.
14695         * lib/file-type.c: Likewise.
14696         * lib/file-type.h: Likewise.
14697         * lib/fileblocks.c: Likewise.
14698         * lib/filemode.c: Likewise.
14699         * lib/filemode.h: Likewise.
14700         * lib/filename.h: Likewise.
14701         * lib/filenamecat.c: Likewise.
14702         * lib/filenamecat.h: Likewise.
14703         * lib/findprog.c: Likewise.
14704         * lib/findprog.h: Likewise.
14705         * lib/float.in.h: Likewise.
14706         * lib/floor.c: Likewise.
14707         * lib/floorf.c: Likewise.
14708         * lib/floorl.c: Likewise.
14709         * lib/fopen-safer.c: Likewise.
14710         * lib/fopen.c: Likewise.
14711         * lib/fpending.c: Likewise.
14712         * lib/fpending.h: Likewise.
14713         * lib/fprintf.c: Likewise.
14714         * lib/fprintftime.h: Likewise.
14715         * lib/fpucw.h: Likewise.
14716         * lib/fpurge.c: Likewise.
14717         * lib/fpurge.h: Likewise.
14718         * lib/freadable.c: Likewise.
14719         * lib/freadable.h: Likewise.
14720         * lib/freadahead.c: Likewise.
14721         * lib/freadahead.h: Likewise.
14722         * lib/freading.c: Likewise.
14723         * lib/freading.h: Likewise.
14724         * lib/free.c: Likewise.
14725         * lib/freopen.c: Likewise.
14726         * lib/frexp.c: Likewise.
14727         * lib/frexpl.c: Likewise.
14728         * lib/fseek.c: Likewise.
14729         * lib/fseterr.c: Likewise.
14730         * lib/fseterr.h: Likewise.
14731         * lib/fstatat.c: Likewise.
14732         * lib/fstrcmp.c: Likewise.
14733         * lib/fstrcmp.h: Likewise.
14734         * lib/fsusage.c: Likewise.
14735         * lib/fsusage.h: Likewise.
14736         * lib/ftell.c: Likewise.
14737         * lib/ftello.c: Likewise.
14738         * lib/fts-cycle.c: Likewise.
14739         * lib/fts.c: Likewise.
14740         * lib/fts_.h: Likewise.
14741         * lib/full-read.c: Likewise.
14742         * lib/full-read.h: Likewise.
14743         * lib/full-write.c: Likewise.
14744         * lib/full-write.h: Likewise.
14745         * lib/fwritable.c: Likewise.
14746         * lib/fwritable.h: Likewise.
14747         * lib/fwriteerror.c: Likewise.
14748         * lib/fwriteerror.h: Likewise.
14749         * lib/fwriting.c: Likewise.
14750         * lib/fwriting.h: Likewise.
14751         * lib/gcd.c: Likewise.
14752         * lib/gcd.h: Likewise.
14753         * lib/getcwd.c: Likewise.
14754         * lib/getdate.h: Likewise.
14755         * lib/getdate.y: Likewise.
14756         * lib/getdomainname.c: Likewise.
14757         * lib/getdomainname.h: Likewise.
14758         * lib/getgroups.c: Likewise.
14759         * lib/gethostname.c: Likewise.
14760         * lib/gethrxtime.c: Likewise.
14761         * lib/gethrxtime.h: Likewise.
14762         * lib/getloadavg.c: Likewise.
14763         * lib/getndelim2.c: Likewise.
14764         * lib/getndelim2.h: Likewise.
14765         * lib/getnline.c: Likewise.
14766         * lib/getnline.h: Likewise.
14767         * lib/getopt.c: Likewise.
14768         * lib/getopt.in.h: Likewise.
14769         * lib/getopt1.c: Likewise.
14770         * lib/getopt_int.h: Likewise.
14771         * lib/getpagesize.h: Likewise.
14772         * lib/getsubopt.c: Likewise.
14773         * lib/gettime.c: Likewise.
14774         * lib/getugroups.c: Likewise.
14775         * lib/getugroups.h: Likewise.
14776         * lib/getusershell.c: Likewise.
14777         * lib/gl_anyavltree_list1.h: Likewise.
14778         * lib/gl_anyavltree_list2.h: Likewise.
14779         * lib/gl_anyhash_list1.h: Likewise.
14780         * lib/gl_anyhash_list2.h: Likewise.
14781         * lib/gl_anylinked_list1.h: Likewise.
14782         * lib/gl_anylinked_list2.h: Likewise.
14783         * lib/gl_anyrbtree_list1.h: Likewise.
14784         * lib/gl_anyrbtree_list2.h: Likewise.
14785         * lib/gl_anytree_list1.h: Likewise.
14786         * lib/gl_anytree_list2.h: Likewise.
14787         * lib/gl_anytree_oset.h: Likewise.
14788         * lib/gl_anytreehash_list1.h: Likewise.
14789         * lib/gl_anytreehash_list2.h: Likewise.
14790         * lib/gl_array_list.c: Likewise.
14791         * lib/gl_array_list.h: Likewise.
14792         * lib/gl_array_oset.c: Likewise.
14793         * lib/gl_array_oset.h: Likewise.
14794         * lib/gl_avltree_list.c: Likewise.
14795         * lib/gl_avltree_list.h: Likewise.
14796         * lib/gl_avltree_oset.c: Likewise.
14797         * lib/gl_avltree_oset.h: Likewise.
14798         * lib/gl_avltreehash_list.c: Likewise.
14799         * lib/gl_avltreehash_list.h: Likewise.
14800         * lib/gl_carray_list.c: Likewise.
14801         * lib/gl_carray_list.h: Likewise.
14802         * lib/gl_linked_list.c: Likewise.
14803         * lib/gl_linked_list.h: Likewise.
14804         * lib/gl_linkedhash_list.c: Likewise.
14805         * lib/gl_linkedhash_list.h: Likewise.
14806         * lib/gl_list.c: Likewise.
14807         * lib/gl_list.h: Likewise.
14808         * lib/gl_oset.c: Likewise.
14809         * lib/gl_oset.h: Likewise.
14810         * lib/gl_rbtree_list.c: Likewise.
14811         * lib/gl_rbtree_list.h: Likewise.
14812         * lib/gl_rbtree_oset.c: Likewise.
14813         * lib/gl_rbtree_oset.h: Likewise.
14814         * lib/gl_rbtreehash_list.c: Likewise.
14815         * lib/gl_rbtreehash_list.h: Likewise.
14816         * lib/gl_sublist.c: Likewise.
14817         * lib/gl_sublist.h: Likewise.
14818         * lib/group-member.c: Likewise.
14819         * lib/group-member.h: Likewise.
14820         * lib/hard-locale.c: Likewise.
14821         * lib/hard-locale.h: Likewise.
14822         * lib/hash-pjw.c: Likewise.
14823         * lib/hash-pjw.h: Likewise.
14824         * lib/hash-triple.c: Likewise.
14825         * lib/hash.c: Likewise.
14826         * lib/hash.h: Likewise.
14827         * lib/human.c: Likewise.
14828         * lib/human.h: Likewise.
14829         * lib/i-ring.c: Likewise.
14830         * lib/i-ring.h: Likewise.
14831         * lib/idcache.c: Likewise.
14832         * lib/imaxabs.c: Likewise.
14833         * lib/imaxdiv.c: Likewise.
14834         * lib/inet_pton.c: Likewise.
14835         * lib/inet_pton.h: Likewise.
14836         * lib/intprops.h: Likewise.
14837         * lib/inttostr.c: Likewise.
14838         * lib/inttostr.h: Likewise.
14839         * lib/inttypes.in.h: Likewise.
14840         * lib/isapipe.c: Likewise.
14841         * lib/isdir.c: Likewise.
14842         * lib/isnan.c: Likewise.
14843         * lib/isnan.h: Likewise.
14844         * lib/isnanf.c: Likewise.
14845         * lib/isnanf.h: Likewise.
14846         * lib/isnanl-nolibm.h: Likewise.
14847         * lib/isnanl.c: Likewise.
14848         * lib/isnanl.h: Likewise.
14849         * lib/javacomp.c: Likewise.
14850         * lib/javacomp.h: Likewise.
14851         * lib/javaexec.c: Likewise.
14852         * lib/javaexec.h: Likewise.
14853         * lib/javaversion.c: Likewise.
14854         * lib/javaversion.h: Likewise.
14855         * lib/javaversion.java: Likewise.
14856         * lib/lbrkprop.h: Likewise.
14857         * lib/lchmod.h: Likewise.
14858         * lib/lchown.c: Likewise.
14859         * lib/ldexpl.c: Likewise.
14860         * lib/linebreak.c: Likewise.
14861         * lib/linebreak.h: Likewise.
14862         * lib/linebuffer.c: Likewise.
14863         * lib/linebuffer.h: Likewise.
14864         * lib/locale.in.h: Likewise.
14865         * lib/logl.c: Likewise.
14866         * lib/long-options.c: Likewise.
14867         * lib/long-options.h: Likewise.
14868         * lib/lstat.c: Likewise.
14869         * lib/lstat.h: Likewise.
14870         * lib/math.in.h: Likewise.
14871         * lib/mbchar.c: Likewise.
14872         * lib/mbchar.h: Likewise.
14873         * lib/mbfile.h: Likewise.
14874         * lib/mbiter.h: Likewise.
14875         * lib/mbscasecmp.c: Likewise.
14876         * lib/mbscasestr.c: Likewise.
14877         * lib/mbschr.c: Likewise.
14878         * lib/mbscspn.c: Likewise.
14879         * lib/mbslen.c: Likewise.
14880         * lib/mbsncasecmp.c: Likewise.
14881         * lib/mbsnlen.c: Likewise.
14882         * lib/mbspbrk.c: Likewise.
14883         * lib/mbspcasecmp.c: Likewise.
14884         * lib/mbsrchr.c: Likewise.
14885         * lib/mbssep.c: Likewise.
14886         * lib/mbsspn.c: Likewise.
14887         * lib/mbsstr.c: Likewise.
14888         * lib/mbstok_r.c: Likewise.
14889         * lib/mbswidth.c: Likewise.
14890         * lib/mbswidth.h: Likewise.
14891         * lib/mbuiter.h: Likewise.
14892         * lib/memcasecmp.c: Likewise.
14893         * lib/memcasecmp.h: Likewise.
14894         * lib/memchr.c: Likewise.
14895         * lib/memcmp.c: Likewise.
14896         * lib/memcoll.c: Likewise.
14897         * lib/memcoll.h: Likewise.
14898         * lib/memcpy.c: Likewise.
14899         * lib/memrchr.c: Likewise.
14900         * lib/mkancesdirs.c: Likewise.
14901         * lib/mkdir-p.c: Likewise.
14902         * lib/mkdir-p.h: Likewise.
14903         * lib/mkdir.c: Likewise.
14904         * lib/mkdirat.c: Likewise.
14905         * lib/mkdtemp.c: Likewise.
14906         * lib/mkstemp-safer.c: Likewise.
14907         * lib/mkstemp.c: Likewise.
14908         * lib/modechange.c: Likewise.
14909         * lib/modechange.h: Likewise.
14910         * lib/mountlist.c: Likewise.
14911         * lib/mountlist.h: Likewise.
14912         * lib/mpsort.c: Likewise.
14913         * lib/nanosleep.c: Likewise.
14914         * lib/obstack.c: Likewise.
14915         * lib/obstack.h: Likewise.
14916         * lib/open-safer.c: Likewise.
14917         * lib/open.c: Likewise.
14918         * lib/openat-die.c: Likewise.
14919         * lib/openat-priv.h: Likewise.
14920         * lib/openat-proc.c: Likewise.
14921         * lib/openat.c: Likewise.
14922         * lib/openat.h: Likewise.
14923         * lib/pagealign_alloc.c: Likewise.
14924         * lib/pagealign_alloc.h: Likewise.
14925         * lib/physmem.c: Likewise.
14926         * lib/physmem.h: Likewise.
14927         * lib/pipe-safer.c: Likewise.
14928         * lib/pipe.c: Likewise.
14929         * lib/pipe.h: Likewise.
14930         * lib/posixtm.c: Likewise.
14931         * lib/posixtm.h: Likewise.
14932         * lib/posixver.c: Likewise.
14933         * lib/printf-frexp.c: Likewise.
14934         * lib/printf-frexp.h: Likewise.
14935         * lib/printf-frexpl.c: Likewise.
14936         * lib/printf-frexpl.h: Likewise.
14937         * lib/printf.c: Likewise.
14938         * lib/progname.c: Likewise.
14939         * lib/progname.h: Likewise.
14940         * lib/progreloc.c: Likewise.
14941         * lib/putenv.c: Likewise.
14942         * lib/quote.c: Likewise.
14943         * lib/quote.h: Likewise.
14944         * lib/quotearg.c: Likewise.
14945         * lib/quotearg.h: Likewise.
14946         * lib/raise.c: Likewise.
14947         * lib/readline.c: Likewise.
14948         * lib/readline.h: Likewise.
14949         * lib/readlink.c: Likewise.
14950         * lib/readtokens.c: Likewise.
14951         * lib/readtokens.h: Likewise.
14952         * lib/readtokens0.c: Likewise.
14953         * lib/readtokens0.h: Likewise.
14954         * lib/readutmp.c: Likewise.
14955         * lib/readutmp.h: Likewise.
14956         * lib/realloc.c: Likewise.
14957         * lib/relocwrapper.c: Likewise.
14958         * lib/rename-dest-slash.c: Likewise.
14959         * lib/rename.c: Likewise.
14960         * lib/rmdir.c: Likewise.
14961         * lib/rpmatch.c: Likewise.
14962         * lib/safe-read.c: Likewise.
14963         * lib/safe-read.h: Likewise.
14964         * lib/safe-write.c: Likewise.
14965         * lib/safe-write.h: Likewise.
14966         * lib/same-inode.h: Likewise.
14967         * lib/same.c: Likewise.
14968         * lib/same.h: Likewise.
14969         * lib/save-cwd.c: Likewise.
14970         * lib/save-cwd.h: Likewise.
14971         * lib/savedir.c: Likewise.
14972         * lib/savedir.h: Likewise.
14973         * lib/savewd.c: Likewise.
14974         * lib/savewd.h: Likewise.
14975         * lib/search.in.h: Likewise.
14976         * lib/setenv.c: Likewise.
14977         * lib/setenv.h: Likewise.
14978         * lib/settime.c: Likewise.
14979         * lib/sh-quote.c: Likewise.
14980         * lib/sh-quote.h: Likewise.
14981         * lib/sig2str.c: Likewise.
14982         * lib/sig2str.h: Likewise.
14983         * lib/signal.in.h: Likewise.
14984         * lib/signbitd.c: Likewise.
14985         * lib/signbitf.c: Likewise.
14986         * lib/signbitl.c: Likewise.
14987         * lib/sigprocmask.c: Likewise.
14988         * lib/sincosl.c: Likewise.
14989         * lib/sleep.c: Likewise.
14990         * lib/sprintf.c: Likewise.
14991         * lib/sqrtl.c: Likewise.
14992         * lib/stat-time.h: Likewise.
14993         * lib/stdio--.h: Likewise.
14994         * lib/stdio-safer.h: Likewise.
14995         * lib/stdlib--.h: Likewise.
14996         * lib/stdlib-safer.h: Likewise.
14997         * lib/stdlib.in.h: Likewise.
14998         * lib/stpcpy.c: Likewise.
14999         * lib/stpncpy.c: Likewise.
15000         * lib/strchrnul.c: Likewise.
15001         * lib/strcspn.c: Likewise.
15002         * lib/strerror.c: Likewise.
15003         * lib/strftime.c: Likewise.
15004         * lib/strftime.h: Likewise.
15005         * lib/striconveh.c: Likewise.
15006         * lib/striconveh.h: Likewise.
15007         * lib/striconveha.c: Likewise.
15008         * lib/striconveha.h: Likewise.
15009         * lib/stripslash.c: Likewise.
15010         * lib/strnlen1.c: Likewise.
15011         * lib/strnlen1.h: Likewise.
15012         * lib/strtod.c: Likewise.
15013         * lib/strtoimax.c: Likewise.
15014         * lib/strtok_r.c: Likewise.
15015         * lib/strtol.c: Likewise.
15016         * lib/strtoll.c: Likewise.
15017         * lib/strtoul.c: Likewise.
15018         * lib/strtoull.c: Likewise.
15019         * lib/sysexits.in.h: Likewise.
15020         * lib/tempname.c: Likewise.
15021         * lib/tempname.h: Likewise.
15022         * lib/timespec.h: Likewise.
15023         * lib/tls.c: Likewise.
15024         * lib/tls.h: Likewise.
15025         * lib/tmpdir.c: Likewise.
15026         * lib/tmpdir.h: Likewise.
15027         * lib/tmpfile-safer.c: Likewise.
15028         * lib/tmpfile.c: Likewise.
15029         * lib/trigl.c: Likewise.
15030         * lib/trigl.h: Likewise.
15031         * lib/trim.c: Likewise.
15032         * lib/trim.h: Likewise.
15033         * lib/trunc.c: Likewise.
15034         * lib/truncf.c: Likewise.
15035         * lib/truncl.c: Likewise.
15036         * lib/tsearch.c: Likewise.
15037         * lib/unicodeio.c: Likewise.
15038         * lib/unicodeio.h: Likewise.
15039         * lib/unistd--.h: Likewise.
15040         * lib/unistd-safer.h: Likewise.
15041         * lib/unistdio/ulc-fprintf.c: Likewise.
15042         * lib/unistdio/ulc-vfprintf.c: Likewise.
15043         * lib/unlinkdir.c: Likewise.
15044         * lib/unlinkdir.h: Likewise.
15045         * lib/unlocked-io.h: Likewise.
15046         * lib/unsetenv.c: Likewise.
15047         * lib/userspec.c: Likewise.
15048         * lib/utime.c: Likewise.
15049         * lib/utimecmp.c: Likewise.
15050         * lib/utimecmp.h: Likewise.
15051         * lib/utimens.c: Likewise.
15052         * lib/verify.h: Likewise.
15053         * lib/verror.c: Likewise.
15054         * lib/verror.h: Likewise.
15055         * lib/version-etc-fsf.c: Likewise.
15056         * lib/version-etc.c: Likewise.
15057         * lib/version-etc.h: Likewise.
15058         * lib/vfprintf.c: Likewise.
15059         * lib/vprintf.c: Likewise.
15060         * lib/vsprintf.c: Likewise.
15061         * lib/w32spawn.h: Likewise.
15062         * lib/wait-process.c: Likewise.
15063         * lib/wait-process.h: Likewise.
15064         * lib/wcwidth.c: Likewise.
15065         * lib/write-any-file.c: Likewise.
15066         * lib/xalloc-die.c: Likewise.
15067         * lib/xalloc.h: Likewise.
15068         * lib/xasprintf.c: Likewise.
15069         * lib/xgetcwd.c: Likewise.
15070         * lib/xgetcwd.h: Likewise.
15071         * lib/xgetdomainname.c: Likewise.
15072         * lib/xgetdomainname.h: Likewise.
15073         * lib/xgethostname.c: Likewise.
15074         * lib/xmalloc.c: Likewise.
15075         * lib/xmalloca.c: Likewise.
15076         * lib/xmalloca.h: Likewise.
15077         * lib/xmemcoll.c: Likewise.
15078         * lib/xnanosleep.c: Likewise.
15079         * lib/xreadlink.c: Likewise.
15080         * lib/xreadlink.h: Likewise.
15081         * lib/xsetenv.c: Likewise.
15082         * lib/xsetenv.h: Likewise.
15083         * lib/xstriconv.c: Likewise.
15084         * lib/xstriconv.h: Likewise.
15085         * lib/xstrndup.c: Likewise.
15086         * lib/xstrndup.h: Likewise.
15087         * lib/xstrtod.c: Likewise.
15088         * lib/xstrtod.h: Likewise.
15089         * lib/xstrtol-error.c: Likewise.
15090         * lib/xstrtol.c: Likewise.
15091         * lib/xstrtol.h: Likewise.
15092         * lib/xtime.h: Likewise.
15093         * lib/xvasprintf.c: Likewise.
15094         * lib/xvasprintf.h: Likewise.
15095         * lib/yesno.c: Likewise.
15096         * lib/yesno.h: Likewise.
15097         * posix-modules: Likewise.
15098         * tests/test-alloca-opt.c: Likewise.
15099         * tests/test-arcfour.c: Likewise.
15100         * tests/test-arctwo.c: Likewise.
15101         * tests/test-argmatch.c: Likewise.
15102         * tests/test-argp-2.sh: Likewise.
15103         * tests/test-argp.c: Likewise.
15104         * tests/test-arpa_inet.c: Likewise.
15105         * tests/test-array_list.c: Likewise.
15106         * tests/test-array_oset.c: Likewise.
15107         * tests/test-atexit.c: Likewise.
15108         * tests/test-avltree_list.c: Likewise.
15109         * tests/test-avltree_oset.c: Likewise.
15110         * tests/test-avltreehash_list.c: Likewise.
15111         * tests/test-base64.c: Likewise.
15112         * tests/test-binary-io.c: Likewise.
15113         * tests/test-byteswap.c: Likewise.
15114         * tests/test-c-ctype.c: Likewise.
15115         * tests/test-c-strcasecmp.c: Likewise.
15116         * tests/test-c-strcasestr.c: Likewise.
15117         * tests/test-c-strncasecmp.c: Likewise.
15118         * tests/test-c-strstr.c: Likewise.
15119         * tests/test-canonicalize-lgpl.c: Likewise.
15120         * tests/test-canonicalize.c: Likewise.
15121         * tests/test-carray_list.c: Likewise.
15122         * tests/test-ceilf.c: Likewise.
15123         * tests/test-ceill.c: Likewise.
15124         * tests/test-count-one-bits.c: Likewise.
15125         * tests/test-crc.c: Likewise.
15126         * tests/test-dirname.c: Likewise.
15127         * tests/test-fbufmode.c: Likewise.
15128         * tests/test-fcntl.c: Likewise.
15129         * tests/test-fflush.c: Likewise.
15130         * tests/test-floorf.c: Likewise.
15131         * tests/test-floorl.c: Likewise.
15132         * tests/test-fopen.c: Likewise.
15133         * tests/test-fprintf-posix.c: Likewise.
15134         * tests/test-fprintf-posix.h: Likewise.
15135         * tests/test-fpurge.c: Likewise.
15136         * tests/test-freadable.c: Likewise.
15137         * tests/test-freadahead.c: Likewise.
15138         * tests/test-freading.c: Likewise.
15139         * tests/test-freopen.c: Likewise.
15140         * tests/test-frexp.c: Likewise.
15141         * tests/test-frexpl.c: Likewise.
15142         * tests/test-fseek.c: Likewise.
15143         * tests/test-fseeko.c: Likewise.
15144         * tests/test-fseterr.c: Likewise.
15145         * tests/test-fstrcmp.c: Likewise.
15146         * tests/test-ftell.c: Likewise.
15147         * tests/test-ftello.c: Likewise.
15148         * tests/test-fwritable.c: Likewise.
15149         * tests/test-fwriting.c: Likewise.
15150         * tests/test-getaddrinfo.c: Likewise.
15151         * tests/test-getpass.c: Likewise.
15152         * tests/test-gettimeofday.c: Likewise.
15153         * tests/test-hmac-md5.c: Likewise.
15154         * tests/test-hmac-sha1.c: Likewise.
15155         * tests/test-iconv.c: Likewise.
15156         * tests/test-iconvme.c: Likewise.
15157         * tests/test-inttypes.c: Likewise.
15158         * tests/test-isnan.c: Likewise.
15159         * tests/test-isnanf.c: Likewise.
15160         * tests/test-isnanl-nolibm.c: Likewise.
15161         * tests/test-isnanl.c: Likewise.
15162         * tests/test-isnanl.h: Likewise.
15163         * tests/test-ldexpl.c: Likewise.
15164         * tests/test-linked_list.c: Likewise.
15165         * tests/test-linkedhash_list.c: Likewise.
15166         * tests/test-locale.c: Likewise.
15167         * tests/test-localename.c: Likewise.
15168         * tests/test-lock.c: Likewise.
15169         * tests/test-lseek.c: Likewise.
15170         * tests/test-malloca.c: Likewise.
15171         * tests/test-math.c: Likewise.
15172         * tests/test-mbscasecmp.c: Likewise.
15173         * tests/test-mbscasestr1.c: Likewise.
15174         * tests/test-mbscasestr2.c: Likewise.
15175         * tests/test-mbscasestr3.c: Likewise.
15176         * tests/test-mbscasestr4.c: Likewise.
15177         * tests/test-mbschr.c: Likewise.
15178         * tests/test-mbscspn.c: Likewise.
15179         * tests/test-mbsncasecmp.c: Likewise.
15180         * tests/test-mbspbrk.c: Likewise.
15181         * tests/test-mbspcasecmp.c: Likewise.
15182         * tests/test-mbsrchr.c: Likewise.
15183         * tests/test-mbsspn.c: Likewise.
15184         * tests/test-mbsstr1.c: Likewise.
15185         * tests/test-mbsstr2.c: Likewise.
15186         * tests/test-mbsstr3.c: Likewise.
15187         * tests/test-md5.c: Likewise.
15188         * tests/test-memmem.c: Likewise.
15189         * tests/test-netinet_in.c: Likewise.
15190         * tests/test-open.c: Likewise.
15191         * tests/test-printf-frexp.c: Likewise.
15192         * tests/test-printf-frexpl.c: Likewise.
15193         * tests/test-printf-posix.c: Likewise.
15194         * tests/test-printf-posix.h: Likewise.
15195         * tests/test-rbtree_list.c: Likewise.
15196         * tests/test-rbtree_oset.c: Likewise.
15197         * tests/test-rbtreehash_list.c: Likewise.
15198         * tests/test-read-file.c: Likewise.
15199         * tests/test-rijndael.c: Likewise.
15200         * tests/test-search.c: Likewise.
15201         * tests/test-signbit.c: Likewise.
15202         * tests/test-sleep.c: Likewise.
15203         * tests/test-snprintf-posix.c: Likewise.
15204         * tests/test-snprintf-posix.h: Likewise.
15205         * tests/test-snprintf.c: Likewise.
15206         * tests/test-sprintf-posix.c: Likewise.
15207         * tests/test-sprintf-posix.h: Likewise.
15208         * tests/test-stat-time.c: Likewise.
15209         * tests/test-stdbool.c: Likewise.
15210         * tests/test-stdint.c: Likewise.
15211         * tests/test-stdio.c: Likewise.
15212         * tests/test-stdlib.c: Likewise.
15213         * tests/test-stpncpy.c: Likewise.
15214         * tests/test-strcasestr.c: Likewise.
15215         * tests/test-striconv.c: Likewise.
15216         * tests/test-striconveh.c: Likewise.
15217         * tests/test-striconveha.c: Likewise.
15218         * tests/test-string.c: Likewise.
15219         * tests/test-sys_select.c: Likewise.
15220         * tests/test-sys_socket.c: Likewise.
15221         * tests/test-sys_stat.c: Likewise.
15222         * tests/test-sys_time.c: Likewise.
15223         * tests/test-sysexits.c: Likewise.
15224         * tests/test-time.c: Likewise.
15225         * tests/test-tls.c: Likewise.
15226         * tests/test-trunc.c: Likewise.
15227         * tests/test-truncf.c: Likewise.
15228         * tests/test-truncl.c: Likewise.
15229         * tests/test-unistd.c: Likewise.
15230         * tests/test-vasnprintf-posix.c: Likewise.
15231         * tests/test-vasnprintf-posix2.c: Likewise.
15232         * tests/test-vasnprintf.c: Likewise.
15233         * tests/test-vasprintf-posix.c: Likewise.
15234         * tests/test-vasprintf.c: Likewise.
15235         * tests/test-verify.c: Likewise.
15236         * tests/test-vfprintf-posix.c: Likewise.
15237         * tests/test-vprintf-posix.c: Likewise.
15238         * tests/test-vsnprintf-posix.c: Likewise.
15239         * tests/test-vsnprintf.c: Likewise.
15240         * tests/test-vsprintf-posix.c: Likewise.
15241         * tests/test-wchar.c: Likewise.
15242         * tests/test-wctype.c: Likewise.
15243         * tests/test-wcwidth.c: Likewise.
15244         * tests/test-xstrtol.c: Likewise.
15245         * tests/test-xvasprintf.c: Likewise.
15246         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
15247         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
15248         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
15249         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
15250         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
15251         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
15252         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
15253         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
15254         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
15255         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
15256         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
15257         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
15258         * tests/uniname/test-uninames.c: Likewise.
15259         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
15260         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
15261         * tests/unistdio/test-u16-printf1.h: Likewise.
15262         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
15263         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
15264         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
15265         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
15266         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
15267         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
15268         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
15269         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
15270         * tests/unistdio/test-u32-printf1.h: Likewise.
15271         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
15272         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
15273         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
15274         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
15275         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
15276         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
15277         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
15278         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
15279         * tests/unistdio/test-u8-printf1.h: Likewise.
15280         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
15281         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
15282         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
15283         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
15284         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
15285         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
15286         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
15287         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
15288         * tests/unistdio/test-ulc-printf1.h: Likewise.
15289         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
15290         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
15291         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
15292         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
15293         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
15294         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
15295         * tests/uniwidth/test-u16-strwidth.c: Likewise.
15296         * tests/uniwidth/test-u16-width.c: Likewise.
15297         * tests/uniwidth/test-u32-strwidth.c: Likewise.
15298         * tests/uniwidth/test-u32-width.c: Likewise.
15299         * tests/uniwidth/test-u8-strwidth.c: Likewise.
15300         * tests/uniwidth/test-u8-width.c: Likewise.
15301         * tests/uniwidth/test-uc_width.c: Likewise.
15302         * config/srclist-update: Likewise.
15303         (fixlicense): Update to GPLv3+.
15304
15305         Change copyright notice from LGPLv2.1+ to LGPLv3+.
15306         * tests/test-tsearch.c: Change copyright notice.
15307
15308         Change copyright notice from LGPLv2.0+ to LGPLv3+.
15309         * lib/c-strcaseeq.h: Change copyright notice.
15310         * lib/streq.h: Likewise.
15311         * lib/uniconv.h: Likewise.
15312         * lib/uniconv/u-conv-from-enc.h: Likewise.
15313         * lib/uniconv/u-conv-to-enc.h: Likewise.
15314         * lib/uniconv/u-strconv-from-enc.h: Likewise.
15315         * lib/uniconv/u-strconv-to-enc.h: Likewise.
15316         * lib/uniconv/u16-conv-from-enc.c: Likewise.
15317         * lib/uniconv/u16-conv-to-enc.c: Likewise.
15318         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
15319         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
15320         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
15321         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
15322         * lib/uniconv/u32-conv-from-enc.c: Likewise.
15323         * lib/uniconv/u32-conv-to-enc.c: Likewise.
15324         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
15325         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
15326         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
15327         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
15328         * lib/uniconv/u8-conv-from-enc.c: Likewise.
15329         * lib/uniconv/u8-conv-to-enc.c: Likewise.
15330         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
15331         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
15332         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
15333         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
15334         * lib/uniname.h: Likewise.
15335         * lib/uniname/uniname.c: Likewise.
15336         * lib/unistdio.h: Likewise.
15337         * lib/unistdio/u-asnprintf.h: Likewise.
15338         * lib/unistdio/u-asprintf.h: Likewise.
15339         * lib/unistdio/u-printf-args.c: Likewise.
15340         * lib/unistdio/u-printf-args.h: Likewise.
15341         * lib/unistdio/u-printf-parse.h: Likewise.
15342         * lib/unistdio/u-snprintf.h: Likewise.
15343         * lib/unistdio/u-sprintf.h: Likewise.
15344         * lib/unistdio/u-vasprintf.h: Likewise.
15345         * lib/unistdio/u-vsnprintf.h: Likewise.
15346         * lib/unistdio/u-vsprintf.h: Likewise.
15347         * lib/unistdio/u16-asnprintf.c: Likewise.
15348         * lib/unistdio/u16-asprintf.c: Likewise.
15349         * lib/unistdio/u16-printf-parse.c: Likewise.
15350         * lib/unistdio/u16-snprintf.c: Likewise.
15351         * lib/unistdio/u16-sprintf.c: Likewise.
15352         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
15353         * lib/unistdio/u16-u16-asprintf.c: Likewise.
15354         * lib/unistdio/u16-u16-snprintf.c: Likewise.
15355         * lib/unistdio/u16-u16-sprintf.c: Likewise.
15356         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
15357         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
15358         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
15359         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
15360         * lib/unistdio/u16-vasnprintf.c: Likewise.
15361         * lib/unistdio/u16-vasprintf.c: Likewise.
15362         * lib/unistdio/u16-vsnprintf.c: Likewise.
15363         * lib/unistdio/u16-vsprintf.c: Likewise.
15364         * lib/unistdio/u32-asnprintf.c: Likewise.
15365         * lib/unistdio/u32-asprintf.c: Likewise.
15366         * lib/unistdio/u32-printf-parse.c: Likewise.
15367         * lib/unistdio/u32-snprintf.c: Likewise.
15368         * lib/unistdio/u32-sprintf.c: Likewise.
15369         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
15370         * lib/unistdio/u32-u32-asprintf.c: Likewise.
15371         * lib/unistdio/u32-u32-snprintf.c: Likewise.
15372         * lib/unistdio/u32-u32-sprintf.c: Likewise.
15373         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
15374         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
15375         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
15376         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
15377         * lib/unistdio/u32-vasnprintf.c: Likewise.
15378         * lib/unistdio/u32-vasprintf.c: Likewise.
15379         * lib/unistdio/u32-vsnprintf.c: Likewise.
15380         * lib/unistdio/u32-vsprintf.c: Likewise.
15381         * lib/unistdio/u8-asnprintf.c: Likewise.
15382         * lib/unistdio/u8-asprintf.c: Likewise.
15383         * lib/unistdio/u8-printf-parse.c: Likewise.
15384         * lib/unistdio/u8-snprintf.c: Likewise.
15385         * lib/unistdio/u8-sprintf.c: Likewise.
15386         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
15387         * lib/unistdio/u8-u8-asprintf.c: Likewise.
15388         * lib/unistdio/u8-u8-snprintf.c: Likewise.
15389         * lib/unistdio/u8-u8-sprintf.c: Likewise.
15390         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
15391         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
15392         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
15393         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
15394         * lib/unistdio/u8-vasnprintf.c: Likewise.
15395         * lib/unistdio/u8-vasprintf.c: Likewise.
15396         * lib/unistdio/u8-vsnprintf.c: Likewise.
15397         * lib/unistdio/u8-vsprintf.c: Likewise.
15398         * lib/unistdio/ulc-asnprintf.c: Likewise.
15399         * lib/unistdio/ulc-asprintf.c: Likewise.
15400         * lib/unistdio/ulc-printf-parse.c: Likewise.
15401         * lib/unistdio/ulc-snprintf.c: Likewise.
15402         * lib/unistdio/ulc-sprintf.c: Likewise.
15403         * lib/unistdio/ulc-vasnprintf.c: Likewise.
15404         * lib/unistdio/ulc-vasprintf.c: Likewise.
15405         * lib/unistdio/ulc-vsnprintf.c: Likewise.
15406         * lib/unistdio/ulc-vsprintf.c: Likewise.
15407         * lib/unistr.h: Likewise.
15408         * lib/unistr/u-cpy-alloc.h: Likewise.
15409         * lib/unistr/u-cpy.h: Likewise.
15410         * lib/unistr/u-endswith.h: Likewise.
15411         * lib/unistr/u-move.h: Likewise.
15412         * lib/unistr/u-set.h: Likewise.
15413         * lib/unistr/u-startswith.h: Likewise.
15414         * lib/unistr/u-stpcpy.h: Likewise.
15415         * lib/unistr/u-stpncpy.h: Likewise.
15416         * lib/unistr/u-strcat.h: Likewise.
15417         * lib/unistr/u-strcpy.h: Likewise.
15418         * lib/unistr/u-strcspn.h: Likewise.
15419         * lib/unistr/u-strdup.h: Likewise.
15420         * lib/unistr/u-strlen.h: Likewise.
15421         * lib/unistr/u-strncat.h: Likewise.
15422         * lib/unistr/u-strncpy.h: Likewise.
15423         * lib/unistr/u-strnlen.h: Likewise.
15424         * lib/unistr/u-strpbrk.h: Likewise.
15425         * lib/unistr/u-strspn.h: Likewise.
15426         * lib/unistr/u-strstr.h: Likewise.
15427         * lib/unistr/u-strtok.h: Likewise.
15428         * lib/unistr/u16-check.c: Likewise.
15429         * lib/unistr/u16-chr.c: Likewise.
15430         * lib/unistr/u16-cmp.c: Likewise.
15431         * lib/unistr/u16-cpy-alloc.c: Likewise.
15432         * lib/unistr/u16-cpy.c: Likewise.
15433         * lib/unistr/u16-endswith.c: Likewise.
15434         * lib/unistr/u16-mblen.c: Likewise.
15435         * lib/unistr/u16-mbsnlen.c: Likewise.
15436         * lib/unistr/u16-mbtouc-aux.c: Likewise.
15437         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
15438         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
15439         * lib/unistr/u16-mbtouc.c: Likewise.
15440         * lib/unistr/u16-mbtoucr.c: Likewise.
15441         * lib/unistr/u16-move.c: Likewise.
15442         * lib/unistr/u16-next.c: Likewise.
15443         * lib/unistr/u16-prev.c: Likewise.
15444         * lib/unistr/u16-set.c: Likewise.
15445         * lib/unistr/u16-startswith.c: Likewise.
15446         * lib/unistr/u16-stpcpy.c: Likewise.
15447         * lib/unistr/u16-stpncpy.c: Likewise.
15448         * lib/unistr/u16-strcat.c: Likewise.
15449         * lib/unistr/u16-strchr.c: Likewise.
15450         * lib/unistr/u16-strcmp.c: Likewise.
15451         * lib/unistr/u16-strcpy.c: Likewise.
15452         * lib/unistr/u16-strcspn.c: Likewise.
15453         * lib/unistr/u16-strdup.c: Likewise.
15454         * lib/unistr/u16-strlen.c: Likewise.
15455         * lib/unistr/u16-strmblen.c: Likewise.
15456         * lib/unistr/u16-strmbtouc.c: Likewise.
15457         * lib/unistr/u16-strncat.c: Likewise.
15458         * lib/unistr/u16-strncmp.c: Likewise.
15459         * lib/unistr/u16-strncpy.c: Likewise.
15460         * lib/unistr/u16-strnlen.c: Likewise.
15461         * lib/unistr/u16-strpbrk.c: Likewise.
15462         * lib/unistr/u16-strrchr.c: Likewise.
15463         * lib/unistr/u16-strspn.c: Likewise.
15464         * lib/unistr/u16-strstr.c: Likewise.
15465         * lib/unistr/u16-strtok.c: Likewise.
15466         * lib/unistr/u16-to-u32.c: Likewise.
15467         * lib/unistr/u16-to-u8.c: Likewise.
15468         * lib/unistr/u16-uctomb-aux.c: Likewise.
15469         * lib/unistr/u16-uctomb.c: Likewise.
15470         * lib/unistr/u32-check.c: Likewise.
15471         * lib/unistr/u32-chr.c: Likewise.
15472         * lib/unistr/u32-cmp.c: Likewise.
15473         * lib/unistr/u32-cpy-alloc.c: Likewise.
15474         * lib/unistr/u32-cpy.c: Likewise.
15475         * lib/unistr/u32-endswith.c: Likewise.
15476         * lib/unistr/u32-mblen.c: Likewise.
15477         * lib/unistr/u32-mbsnlen.c: Likewise.
15478         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15479         * lib/unistr/u32-mbtouc.c: Likewise.
15480         * lib/unistr/u32-mbtoucr.c: Likewise.
15481         * lib/unistr/u32-move.c: Likewise.
15482         * lib/unistr/u32-next.c: Likewise.
15483         * lib/unistr/u32-prev.c: Likewise.
15484         * lib/unistr/u32-set.c: Likewise.
15485         * lib/unistr/u32-startswith.c: Likewise.
15486         * lib/unistr/u32-stpcpy.c: Likewise.
15487         * lib/unistr/u32-stpncpy.c: Likewise.
15488         * lib/unistr/u32-strcat.c: Likewise.
15489         * lib/unistr/u32-strchr.c: Likewise.
15490         * lib/unistr/u32-strcmp.c: Likewise.
15491         * lib/unistr/u32-strcpy.c: Likewise.
15492         * lib/unistr/u32-strcspn.c: Likewise.
15493         * lib/unistr/u32-strdup.c: Likewise.
15494         * lib/unistr/u32-strlen.c: Likewise.
15495         * lib/unistr/u32-strmblen.c: Likewise.
15496         * lib/unistr/u32-strmbtouc.c: Likewise.
15497         * lib/unistr/u32-strncat.c: Likewise.
15498         * lib/unistr/u32-strncmp.c: Likewise.
15499         * lib/unistr/u32-strncpy.c: Likewise.
15500         * lib/unistr/u32-strnlen.c: Likewise.
15501         * lib/unistr/u32-strpbrk.c: Likewise.
15502         * lib/unistr/u32-strrchr.c: Likewise.
15503         * lib/unistr/u32-strspn.c: Likewise.
15504         * lib/unistr/u32-strstr.c: Likewise.
15505         * lib/unistr/u32-strtok.c: Likewise.
15506         * lib/unistr/u32-to-u16.c: Likewise.
15507         * lib/unistr/u32-to-u8.c: Likewise.
15508         * lib/unistr/u32-uctomb.c: Likewise.
15509         * lib/unistr/u8-check.c: Likewise.
15510         * lib/unistr/u8-chr.c: Likewise.
15511         * lib/unistr/u8-cmp.c: Likewise.
15512         * lib/unistr/u8-cpy-alloc.c: Likewise.
15513         * lib/unistr/u8-cpy.c: Likewise.
15514         * lib/unistr/u8-endswith.c: Likewise.
15515         * lib/unistr/u8-mblen.c: Likewise.
15516         * lib/unistr/u8-mbsnlen.c: Likewise.
15517         * lib/unistr/u8-mbtouc-aux.c: Likewise.
15518         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
15519         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
15520         * lib/unistr/u8-mbtouc.c: Likewise.
15521         * lib/unistr/u8-mbtoucr.c: Likewise.
15522         * lib/unistr/u8-move.c: Likewise.
15523         * lib/unistr/u8-next.c: Likewise.
15524         * lib/unistr/u8-prev.c: Likewise.
15525         * lib/unistr/u8-set.c: Likewise.
15526         * lib/unistr/u8-startswith.c: Likewise.
15527         * lib/unistr/u8-stpcpy.c: Likewise.
15528         * lib/unistr/u8-stpncpy.c: Likewise.
15529         * lib/unistr/u8-strcat.c: Likewise.
15530         * lib/unistr/u8-strchr.c: Likewise.
15531         * lib/unistr/u8-strcmp.c: Likewise.
15532         * lib/unistr/u8-strcpy.c: Likewise.
15533         * lib/unistr/u8-strcspn.c: Likewise.
15534         * lib/unistr/u8-strdup.c: Likewise.
15535         * lib/unistr/u8-strlen.c: Likewise.
15536         * lib/unistr/u8-strmblen.c: Likewise.
15537         * lib/unistr/u8-strmbtouc.c: Likewise.
15538         * lib/unistr/u8-strncat.c: Likewise.
15539         * lib/unistr/u8-strncmp.c: Likewise.
15540         * lib/unistr/u8-strncpy.c: Likewise.
15541         * lib/unistr/u8-strnlen.c: Likewise.
15542         * lib/unistr/u8-strpbrk.c: Likewise.
15543         * lib/unistr/u8-strrchr.c: Likewise.
15544         * lib/unistr/u8-strspn.c: Likewise.
15545         * lib/unistr/u8-strstr.c: Likewise.
15546         * lib/unistr/u8-strtok.c: Likewise.
15547         * lib/unistr/u8-to-u16.c: Likewise.
15548         * lib/unistr/u8-to-u32.c: Likewise.
15549         * lib/unistr/u8-uctomb-aux.c: Likewise.
15550         * lib/unistr/u8-uctomb.c: Likewise.
15551         * lib/unitypes.h: Likewise.
15552         * lib/uniwidth.h: Likewise.
15553         * lib/uniwidth/cjk.h: Likewise.
15554         * lib/uniwidth/u16-strwidth.c: Likewise.
15555         * lib/uniwidth/u16-width.c: Likewise.
15556         * lib/uniwidth/u32-strwidth.c: Likewise.
15557         * lib/uniwidth/u32-width.c: Likewise.
15558         * lib/uniwidth/u8-strwidth.c: Likewise.
15559         * lib/uniwidth/u8-width.c: Likewise.
15560         * lib/uniwidth/width.c: Likewise.
15561
15562 2007-10-07  Bruno Haible  <bruno@clisp.org>
15563
15564         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
15565         The file is still under LGPL (see modules/inttypes).
15566
15567 2007-10-06  Bruno Haible  <bruno@clisp.org>
15568
15569         * modules/trunc (Dependencies): Add 'extensions'.
15570         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
15571         Reported by Ben Pfaff <blp@gnu.org>.
15572
15573 2007-10-06  Bruno Haible  <bruno@clisp.org>
15574
15575         * modules/freopen-tests: New file.
15576         * tests/test-freopen.c: New file.
15577
15578         * modules/fopen-tests: New file.
15579         * tests/test-fopen.c: New file.
15580
15581         * modules/fopen: New file.
15582         * lib/fopen.c: New file.
15583         * m4/fopen.m4: New file.
15584         * modules/freopen: New file.
15585         * lib/freopen.c: New file.
15586         * m4/freopen.m4: New file.
15587         * lib/stdio.in.h (fopen, freopen): New declarations.
15588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
15589         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
15590         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
15591         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
15592         * doc/functions/fopen.texi: Mention the 'fopen' module.
15593         * doc/functions/freopen.texi: Mention the 'freopen' module.
15594
15595 2007-10-06  Bruno Haible  <bruno@clisp.org>
15596
15597         * modules/open-tests: New file.
15598         * tests/test-open.c: New file.
15599
15600         * modules/open: New file.
15601         * lib/open.c: New file.
15602         * m4/open.m4: New file.
15603         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
15604         lib/open.c does.
15605         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
15606         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
15607         macros.
15608         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
15609         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
15610         REPLACE_OPEN.
15611         * doc/functions/open.texi: Mention the 'open' module.
15612
15613 2007-10-04  Bruno Haible  <bruno@clisp.org>
15614
15615         * modules/ceill-tests: New file.
15616         * tests/test-ceill.c: New file.
15617
15618         * modules/ceill: New file.
15619         * lib/ceill.c: Replace entire file.
15620         * m4/ceill.m4: New file.
15621         * lib/math.in.h (ceill): Replace declaration.
15622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
15623         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
15624         * doc/functions/ceill.texi: Mention the 'ceill' module.
15625         * modules/mathl (Files): Remove lib/ceill.c.
15626         (Depends-on): Add ceill.
15627
15628 2007-10-04  Bruno Haible  <bruno@clisp.org>
15629
15630         * modules/ceilf-tests: New file.
15631         * tests/test-ceilf.c: New file.
15632
15633         * modules/ceilf: New file.
15634         * lib/ceil.c: New file.
15635         * lib/ceilf.c: New file.
15636         * m4/ceilf.m4: New file.
15637         * lib/math.in.h (ceilf): New declaration.
15638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
15639         HAVE_DECL_CEILF.
15640         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
15641         HAVE_DECL_CEILF.
15642         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
15643
15644 2007-10-04  Bruno Haible  <bruno@clisp.org>
15645
15646         * modules/floorl-tests: New file.
15647         * tests/test-floorl.c: New file.
15648
15649         * modules/floorl: New file.
15650         * lib/floorl.c: Replace entire file.
15651         * m4/floorl.m4: New file.
15652         * lib/math.in.h (floorl): Replace declaration.
15653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
15654         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
15655         * doc/functions/floorl.texi: Mention the 'floorl' module.
15656         * modules/mathl (Files): Remove lib/floorl.c.
15657         (Depends-on): Add floorl.
15658
15659 2007-10-04  Bruno Haible  <bruno@clisp.org>
15660
15661         * modules/floorf-tests: New file.
15662         * tests/test-floorf.c: New file.
15663
15664         * modules/floorf: New file.
15665         * lib/floor.c: New file.
15666         * lib/floorf.c: New file.
15667         * m4/floorf.m4: New file.
15668         * lib/math.in.h (floorf): New declaration.
15669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
15670         HAVE_DECL_FLOORF.
15671         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
15672         HAVE_DECL_FLOORF.
15673         * doc/functions/floorf.texi: Mention the 'floorf' module.
15674
15675 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
15676             Bruno Haible  <bruno@clisp.org>
15677
15678         Advertise for the Git server instead of the CVS server.
15679         * doc/gnulib-intro.texi (Steady Development): Mention the Git
15680         repository instead of the CVS one.
15681         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
15682         about all VCS systems generically.
15683         * doc/gnulib.texi (Introduction): Capitalize `Git'.
15684
15685 2007-10-04  Bruno Haible  <bruno@clisp.org>
15686
15687         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
15688         means.
15689         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
15690
15691 2007-10-04  Bruno Haible  <bruno@clisp.org>
15692
15693         * modules/truncl-tests: New file.
15694         * tests/test-truncl.c: New file.
15695
15696         * modules/truncl: New file.
15697         * lib/truncl.c: New file.
15698         * m4/truncl.m4: New file.
15699         * lib/math.in.h (truncl): New declaration.
15700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
15701         HAVE_DECL_TRUNCL.
15702         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
15703         HAVE_DECL_TRUNCL.
15704         * doc/functions/truncl.texi: Mention the 'truncl' module.
15705
15706 2007-10-04  Bruno Haible  <bruno@clisp.org>
15707
15708         * modules/truncf-tests: New file.
15709         * tests/test-truncf.c: New file.
15710
15711         * modules/truncf: New file.
15712         * lib/trunc.c: Make paramerizable through USE_* macros.
15713         * lib/truncf.c: New file.
15714         * m4/truncf.m4: New file.
15715         * lib/math.in.h (truncf): New declaration.
15716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
15717         HAVE_DECL_TRUNCF.
15718         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
15719         HAVE_DECL_TRUNCF.
15720         * doc/functions/truncf.texi: Mention the 'truncf' module.
15721
15722 2007-10-03  Bruno Haible  <bruno@clisp.org>
15723
15724         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
15725         augmentation also for tests modules.
15726         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
15727         * modules/atexit-tests (Makefile.am): Likewise.
15728         * modules/binary-io-tests (Makefile.am): Likewise.
15729         * modules/c-strcase-tests (Makefile.am): Likewise.
15730         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
15731         * modules/canonicalize-tests (Makefile.am): Likewise.
15732         * modules/closein-tests (Makefile.am): Likewise.
15733         * modules/fprintf-posix-tests (Makefile.am): Likewise.
15734         * modules/freadahead-tests (Makefile.am): Likewise.
15735         * modules/fseek-tests (Makefile.am): Likewise.
15736         * modules/fseeko-tests (Makefile.am): Likewise.
15737         * modules/ftell-tests (Makefile.am): Likewise.
15738         * modules/ftello-tests (Makefile.am): Likewise.
15739         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
15740         * modules/isnanl-tests (Makefile.am): Likewise.
15741         * modules/lseek-tests (Makefile.am): Likewise.
15742         * modules/mbscasecmp-tests (Makefile.am): Likewise.
15743         * modules/mbscasestr-tests (Makefile.am): Likewise.
15744         * modules/mbschr-tests (Makefile.am): Likewise.
15745         * modules/mbscspn-tests (Makefile.am): Likewise.
15746         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
15747         * modules/mbspbrk-tests (Makefile.am): Likewise.
15748         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
15749         * modules/mbsrchr-tests (Makefile.am): Likewise.
15750         * modules/mbsspn-tests (Makefile.am): Likewise.
15751         * modules/mbsstr-tests (Makefile.am): Likewise.
15752         * modules/printf-posix-tests (Makefile.am): Likewise.
15753         * modules/snprintf-posix-tests (Makefile.am): Likewise.
15754         * modules/sprintf-posix-tests (Makefile.am): Likewise.
15755         * modules/tsearch-tests (Makefile.am): Likewise.
15756         * modules/uniname/uniname-tests (Makefile.am): Likewise.
15757         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
15758         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
15759         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
15760         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
15761         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
15762         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
15763         * modules/vprintf-posix-tests (Makefile.am): Likewise.
15764         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
15765         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
15766         * modules/xstrtoimax-tests (Makefile.am): Likewise.
15767         * modules/xstrtol-tests (Makefile.am): Likewise.
15768         * modules/xstrtoumax-tests (Makefile.am): Likewise.
15769         * modules/yesno-tests (Makefile.am): Likewise.
15770
15771 2007-10-03  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/trunc-tests: New file.
15774         * tests/test-trunc.c: New file.
15775
15776         * modules/trunc: New file.
15777         * lib/trunc.c: New file.
15778         * m4/trunc.m4: New file.
15779         * lib/math.in.h (trunc): New declaration.
15780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
15781         HAVE_DECL_TRUNC.
15782         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
15783         HAVE_DECL_TRUNC.
15784         * doc/functions/trunc.texi: Mention the 'trunc' module.
15785
15786 2007-10-03  Bruno Haible  <bruno@clisp.org>
15787
15788         * tests/test-fpending.c: New file, mostly copied
15789         from coreutils/lib/t-fpending.c.
15790         * modules/fpending-tests: New file.
15791
15792 2007-10-03  Bruno Haible  <bruno@clisp.org>
15793
15794         Port the stdio extensions to QNX (untested).
15795         * lib/fseterr.c (fseterr): Add support for QNX.
15796         * lib/fbufmode.c (fbufmode): Likewise.
15797         * lib/freadable.c (freadable): Likewise.
15798         * lib/fwritable.c (fwritable): Likewise.
15799         * lib/freading.c (freading): Likewise.
15800         * lib/fwriting.c (fwriting): Likewise.
15801         * lib/freadahead.c (freadahed): Likewise.
15802         * lib/fpurge.c (fpurge): Likewise.
15803         * lib/fseeko.c (rpl_fseeko): Likewise.
15804
15805 2007-10-03  Bruno Haible  <bruno@clisp.org>
15806             Jim Meyering  <jim@meyering.net>
15807             Eric Blake  <ebb9@byu.net>
15808
15809         * doc/relocatable.texi: Use @command instead of @program.
15810
15811 2007-10-02  Jim Meyering  <jim@meyering.net>
15812
15813         Perform one more "_.h" -> ".in.h" substitution.
15814         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
15815         instead of unistd_.h here, too.
15816
15817 2007-10-01  Bruno Haible  <bruno@clisp.org>
15818
15819         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
15820         Needed for the alloca-opt module.
15821
15822 2007-09-30  Bruno Haible  <bruno@clisp.org>
15823
15824         * lib/alloca.in.h: Renamed from lib/alloca_.h.
15825         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
15826         alloca_.h.
15827         * lib/argz.in.h: Renamed from lib/argz_.h.
15828         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
15829         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
15830         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
15831         byteswap_.h.
15832         * lib/dirent.in.h: Renamed from lib/dirent_.h.
15833         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
15834         dirent_.h.
15835         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
15836         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
15837         fcntl_.h.
15838         * lib/float.in.h: Renamed from lib/float_.h.
15839         * modules/float (Files, Makefile.am): Use float.in.h instead of
15840         float_.h.
15841         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
15842         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
15843         fnmatch_.h.
15844         * lib/getopt.in.h: Renamed from lib/getopt_.h.
15845         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
15846         getopt_.h.
15847         * lib/glob.in.h: Renamed from lib/glob_.h.
15848         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
15849         * lib/iconv.in.h: Renamed from lib/iconv_.h.
15850         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
15851         iconv_.h.
15852         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
15853         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
15854         inttypes_.h.
15855         * lib/locale.in.h: Renamed from lib/locale_.h.
15856         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
15857         locale_.h.
15858         * lib/math.in.h: Renamed from lib/math_.h.
15859         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
15860         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
15861         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
15862         of netinet_in_.h. Add dependency.
15863         * lib/poll.in.h: Renamed from lib/poll_.h.
15864         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
15865         * lib/search.in.h: Renamed from lib/search_.h.
15866         * modules/search (Files, Makefile.am): Use search.in.h instead of
15867         search_.h.
15868         * lib/signal.in.h: Renamed from lib/signal_.h.
15869         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
15870         _signal.h.
15871         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
15872         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
15873         stdbool_.h.
15874         * lib/stdint.in.h: Renamed from lib/stdint_.h.
15875         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
15876         stdint_.h.
15877         * lib/stdio.in.h: Renamed from lib/stdio_.h.
15878         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
15879         stdio_.h.
15880         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
15881         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
15882         stdlib_.h.
15883         * lib/string.in.h: Renamed from lib/string_.h.
15884         * modules/string (Files, Makefile.am): Use string.in.h instead of
15885         string_.h.
15886         * doc/gnulib-tool.texi (Initial import): Update.
15887         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
15888         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
15889         of sys_select_.h. Add dependency.
15890         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
15891         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
15892         of sys_socket_.h.
15893         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
15894         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
15895         sys_stat_.h.
15896         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
15897         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
15898         sys_time_.h.
15899         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
15900         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
15901         sysexits_.h.
15902         * lib/time.in.h: Renamed from lib/time_.h.
15903         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
15904         * lib/unistd.in.h: Renamed from lib/unistd_.h.
15905         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
15906         unistd_.h.
15907         * lib/wchar.in.h: Renamed from lib/wchar_.h.
15908         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
15909         wchar_.h.
15910         * lib/wctype.in.h: Renamed from lib/wctype_.h.
15911         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
15912         wctype_.h.
15913         * build-aux/bootstrap (slurp): Update.
15914         * lib/.cppi-disable: Update.
15915
15916 2007-09-30  Bruno Haible  <bruno@clisp.org>
15917
15918         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
15919         Needed on BeOS.
15920
15921 2007-09-30  Bruno Haible  <bruno@clisp.org>
15922
15923         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
15924
15925 2007-09-29  Bruno Haible  <bruno@clisp.org>
15926
15927         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
15928
15929 2007-09-29  Bruno Haible  <bruno@clisp.org>
15930
15931         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
15932         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
15933         * build-aux/install-reloc: Compile also areadlink.c.
15934         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
15935
15936 2007-09-29  Bruno Haible  <bruno@clisp.org>
15937
15938         * gnulib-tool (func_emit_initmacro_done): Indentation.
15939
15940 2007-09-29  Bruno Haible  <bruno@clisp.org>
15941
15942         * README: Add CVS checkout update instructions.
15943         Info from Bob Proulx <bob@proulx.com>.
15944
15945 2007-09-28  Eric Blake  <ebb9@byu.net>
15946
15947         Provide move-if-change.
15948         * build-aux/move-if-change: New file, based on best practice
15949         rather than any canonical upstream location.
15950
15951 2007-09-28  Jim Meyering  <jim@meyering.net>
15952
15953         Fix canonicalize loop-detection corner case.
15954         Do not attempt to stat the symlink values stored via seen_triple.
15955         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
15956         on linux-2.6.18, (but not 2.6.22).
15957         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
15958         triple_compare.  The former compares dev,ino,filename, while the latter
15959         would actually stat dirname(filename) when dev and ino were equal.
15960         * lib/hash-triple.c: Install <string.h>.
15961         (STREQ): Define.
15962         (triple_compare_ino_str): New function.
15963         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
15964
15965 2007-09-28  Eric Blake  <ebb9@byu.net>
15966
15967         Enforce that AC_REPLACE_FUNCS files exist.
15968         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
15969         override check for typos.
15970
15971         Fix test-closein on Solaris 10.
15972         * tests/test-closein.c (main): Don't assume stdin can be inherited
15973         closed on all systems.
15974         * tests/test-closein.sh: Likewise.
15975         Reported by Piotr Tarnowski.
15976
15977 2007-09-28  Jim Meyering  <jim@meyering.net>
15978
15979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
15980
15981 2007-09-27  Jim Meyering  <jim@meyering.net>
15982
15983         canonicalize: Avoid a false-positive cycle failure.
15984         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
15985         Sort.  Remove cycle-check.
15986         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
15987         not cycle-check.h.
15988         (seen_triple): New function.
15989         (canonicalize_filename_mode): Use it instead of cycle-check.
15990         * tests/test-canonicalize.c: Add a test for this bug.
15991         * tests/test-canonicalize.sh: Set up and run the test.
15992
15993         New module, file-set, from coreutils.
15994         * modules/file-set: Define it.
15995         * lib/file-set.c, lib/file-set.h: Implement.
15996
15997         New module, hash-triple, from coreutils.
15998         * modules/hash-triple: Define it.
15999         * lib/hash-triple.c, lib/hash-triple.h: Implement.
16000
16001 2007-09-25  Eric Blake  <ebb9@byu.net>
16002
16003         Fix strerror on Interix.
16004         * lib/string_.h (strerror): Declare replacement.
16005         * doc/functions/strerror.texi (strerror): Document the Interix
16006         shortcoming.
16007         * modules/string (Makefile.am): Support new hooks.
16008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
16009         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
16010         gl_FUNC_STRERROR_SEPARATE.
16011         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
16012         * lib/strerror.c (rpl_strerror): Provide replacement.
16013         * modules/strerror (Depends-on): Add string.
16014         (configure.ac): Detect use of module.
16015         * tests/test-strerror.c: New file.
16016         * modules/strerror-tests: New test module.
16017         * modules/argp (Depends-on): Add strerror.
16018         * modules/error (Depends-on): Likewise.
16019         Reported by Martin Koeppe.
16020
16021 2007-09-24  Bruno Haible  <bruno@clisp.org>
16022
16023         * README: Update git instructions.
16024
16025 2007-09-24  Eric Blake  <ebb9@byu.net>
16026
16027         Revert fpending breakage from 2007-09-08.
16028         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
16029         __fpending.c.
16030
16031 2007-09-24  Jim Meyering  <jim@meyering.net>
16032
16033         filenamecat.c: Add a test.
16034         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
16035         showing how the function works when DIR is the empty string.
16036
16037 2007-09-21  Simon Josefsson  <simon@josefsson.org>
16038
16039         * tests/test-canonicalize.sh: Turn on executable bit.
16040
16041 2007-09-19  Eric Blake  <ebb9@byu.net>
16042
16043         * README: Update CVS instructions.
16044
16045 2007-09-18  Bruno Haible  <bruno@clisp.org>
16046
16047         * modules/areadlink: New file.
16048         * lib/areadlink.h (areadlink): New declaration.
16049         * lib/areadlink.c: New file, based on lib/xreadlink.c.
16050
16051 2007-09-17  Jim Meyering  <jim@meyering.net>
16052
16053         * lib/savewd.c (ESTALE) [!defined]: Define.
16054         Reported to be required on Interix by Martin Koeppe.
16055
16056 2007-09-17  Bruno Haible  <bruno@clisp.org>
16057
16058         * gnulib-tool (func_version): Use $version.
16059
16060 2007-09-16  Bruno Haible  <bruno@clisp.org>
16061
16062         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
16063         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
16064         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
16065         Reported by Greg Schafer <gschafer@zip.com.au>.
16066
16067 2007-09-15  Bruno Haible  <bruno@clisp.org>
16068
16069         * gnulib-tool (sed): Try a little harder to make bash understand the
16070         alias.
16071         Reported by Bruce Korb <bruce.korb@gmail.com>.
16072
16073 2007-09-13  Eric Blake  <ebb9@byu.net>
16074
16075         * ChangeLog: Remove conflict markers.
16076
16077 2007-09-13  Simon Josefsson  <simon@josefsson.org>
16078
16079         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
16080         Reported by Bruno Haible <bruno@clisp.org>.
16081
16082 2007-09-12  Bruno Haible  <bruno@clisp.org>
16083
16084         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
16085         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
16086         is not defined.
16087
16088 2007-09-12  Eric Blake  <ebb9@byu.net>
16089
16090         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
16091         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
16092         Autoconf definition.
16093         * modules/euidaccess (Depends-on): Add extensions, for
16094         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
16095         * modules/fnmatch (Depends-on): Likewise.
16096         * modules/getaddrinfo (Depends-on): Likewise.
16097         * modules/getdelim (Depends-on): Likewise.
16098         * modules/getline (Depends-on): Likewise.
16099         * modules/getsubopt (Depends-on): Likewise.
16100         * modules/gettext (Depends-on): Likewise.
16101         * modules/group-member (Depends-on): Likewise.
16102         * modules/mbchar (Depends-on): Likewise.
16103         * modules/memmem (Depends-on): Likewise.
16104         * modules/mempcpy (Depends-on): Likewise.
16105         * modules/memrchr (Depends-on): Likewise.
16106         * modules/pagealign_alloc (Depends-on): Likewise.
16107         * modules/readutmp (Depends-on): Likewise.
16108         * modules/stpcpy (Depends-on): Likewise.
16109         * modules/stpncpy (Depends-on): Likewise.
16110         * modules/strchrnul (Depends-on): Likewise.
16111         * modules/strndup (Depends-on): Likewise.
16112         * modules/strsep (Depends-on): Likewise.
16113         * modules/strverscmp (Depends-on): Likewise.
16114         * modules/vasprintf (Depends-on): Likewise.
16115         * modules/wcwidth (Depends-on): Likewise.
16116         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
16117         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
16118         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
16119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
16120         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16121         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16122         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
16123         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
16124         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
16125         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
16126         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16127         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
16128         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
16129         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16130         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
16131         * m4/readutmp.m4 (gl_READUTMP): Likewise.
16132         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16133         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
16134         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16135         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
16136         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16137         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
16138         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
16139         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
16140         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
16141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16142         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
16143         so that lock.m4 can be used in gettext without extensions module.
16144
16145 2007-09-11  Bruno Haible  <bruno@clisp.org>
16146
16147         * m4/isc-posix.m4: Remove file.
16148         Suggested by Eric Blake.
16149
16150 2007-09-11  Eric Blake  <ebb9@byu.net>
16151
16152         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
16153
16154 2007-09-10  Bruno Haible  <bruno@clisp.org>
16155
16156         * posix-modules: Fix typo in error message.
16157         Reported by Matt <mkraai@beckman.com>.
16158
16159 2007-09-09  Bruno Haible  <bruno@clisp.org>
16160
16161         * doc/functions/getdelim.texi: Update list of platforms lacking the
16162         function.
16163         * doc/functions/getline.texi: Likewise.
16164
16165 2007-09-09  Jim Meyering  <jim@meyering.net>
16166
16167         * lib/hash.c (hash_initialize): Detect calloc failure.
16168         Reported by Bruno Haible.
16169
16170 2007-09-09  Bruno Haible  <bruno@clisp.org>
16171
16172         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
16173         malloc or realloc fails.
16174
16175 2007-09-09  Bruno Haible  <bruno@clisp.org>
16176
16177         * modules/getcwd (Depends-on): Add malloc-posix.
16178         * modules/glob (Depends-on): Likewise.
16179         * modules/putenv (Depends-on): Likewise.
16180         * modules/strdup (Depends-on): Likewise.
16181         * modules/getdelim (Depends-on): Add realloc-posix.
16182         * modules/read-file (Depends-on): Likewise.
16183
16184 2007-09-09  Bruno Haible  <bruno@clisp.org>
16185
16186         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
16187         (gl_FUNC_MALLOC_POSIX): Require it.
16188         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
16189         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
16190         * modules/realloc (Files): Add m4/malloc.m4.
16191         * modules/calloc (Files): Likewise.
16192
16193 2007-09-09  Bruno Haible  <bruno@clisp.org>
16194
16195         * modules/malloc-posix: New file.
16196         * modules/malloc (Depends-on): Add malloc-posix.
16197         * lib/malloc.c: Include errno.h.
16198         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
16199         and a POSIX-compatible malloc into a single function. Set ENOMEM
16200         when returning NULL.
16201         * m4/malloc.m4: New file.
16202         * doc/functions/malloc.texi: Mention the malloc-posix module.
16203         * lib/stdlib_.h (malloc): New declaration.
16204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16205         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
16206         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
16207         and HAVE_MALLOC_POSIX.
16208
16209 2007-09-09  Bruno Haible  <bruno@clisp.org>
16210
16211         * modules/realloc-posix: New file.
16212         * modules/realloc (Depends-on): Add realloc-posix.
16213         * lib/realloc.c: Include errno.h.
16214         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
16215         and a POSIX-compatible realloc into a single function. Set ENOMEM
16216         when returning NULL.
16217         * m4/realloc.m4: New file.
16218         * doc/functions/realloc.texi: Mention the realloc-posix module.
16219         * lib/stdlib_.h (realloc): New declaration.
16220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16221         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
16222         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
16223         and HAVE_REALLOC_POSIX.
16224
16225 2007-09-09  Bruno Haible  <bruno@clisp.org>
16226
16227         * modules/calloc-posix: New file.
16228         * modules/calloc (Depends-on): Add calloc-posix.
16229         * lib/calloc.c: Include errno.h.
16230         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
16231         and a POSIX-compatible calloc into a single function. Set ENOMEM
16232         when returning NULL.
16233         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
16234         * doc/functions/calloc.texi: Mention the calloc-posix module.
16235         * lib/stdlib_.h (calloc): New declaration.
16236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16237         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
16238         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
16239         and HAVE_CALLOC_POSIX.
16240
16241 2007-09-09  Bruno Haible  <bruno@clisp.org>
16242
16243         Allow for modules to show an arbitrary notice.
16244         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
16245         * gnulib-tool: New option --extract-notice.
16246         (func_usage): Document it.
16247         (sed_extract_prog): Update.
16248         (func_get_notice): New function.
16249         (func_modules_notice): New function.
16250         (func_import, func_create_testdir): Invoke it.
16251         Suggested by Jim Meyering.
16252
16253 2007-09-09  Bruno Haible  <bruno@clisp.org>
16254
16255         * gnulib-tool: New options --verbose, --quiet.
16256         (func_usage): Document them.
16257         (verbose): New variable.
16258         (func_execute_command): New function.
16259         (func_import): Don't show the module list and the file list if
16260         $verbose < 0.
16261         (func_create_testdir): Likewise. Use func_execute_command.
16262         (func_create_megatestdir): Use func_execute_command.
16263
16264 2007-09-08  Bruno Haible  <bruno@clisp.org>
16265
16266         * gnulib-tool (func_import): Prefer rsync over wget when available,
16267         for fetching the PO files.
16268
16269 2007-09-08  Bruno Haible  <bruno@clisp.org>
16270
16271         * posix-modules: New file. Portions copied from gnulib-tool.
16272         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
16273
16274 2007-09-08  Jim Meyering  <jim@meyering.net>
16275
16276         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
16277         * lib/fpending.h: Rename from __fpending.h.
16278         * lib/fpending.c: Rename from __fpending.c.
16279         Include "fpending.h", not "__fpending.h".
16280         * lib/__fpending.h, lib/__fpending.c: Remove files.
16281         * modules/fpending (Files): Reflect new file names.
16282         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
16283
16284 2007-09-08  Bruno Haible  <bruno@clisp.org>
16285
16286         * m4/inttypes-h.m4: Remove stub file.
16287
16288 2007-09-07  Simon Josefsson  <simon@josefsson.org>
16289
16290         * doc/headers/stdint.texi: Discuss #include_next issue.
16291
16292 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         * build-aux/bootstrap: Remove obsolete comment about wget --help.
16295
16296 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16297
16298         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
16299         in variable name.
16300
16301 2007-09-03  Jim Meyering  <jim@meyering.net>
16302
16303         New module: git-version-gen.
16304         * modules/git-version-gen: New file.
16305
16306         Import changes from coreutils for bootstrap script.
16307
16308         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
16309
16310         bootstrap: uses rsync to download the .po files
16311         * build-aux/bootstrap (po_download_command_format): New global.
16312         (download_po_files): Use rsync.
16313         (update_po_files): Don't remove .po files after download,
16314         so future rsync runs can take advantage of the copies.
16315
16316         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
16317
16318         Solve the unnecessary-.po-file-regeneration problem once and for all.
16319         * build-aux/bootstrap (download_po_files): New function, renamed from
16320         get_translations.  Now, downloads, but doesn't update LINGUAS.
16321         (update_po_files): New function.
16322
16323         bootstrap: Ignore more.
16324         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
16325         uniwidth to e.g., lib/.gitignore.
16326         (slurp): Handle the sys_stat_.h -> sys mapping, too.
16327
16328         * build-aux/bootstrap: New setting: vc_ignore.
16329         (insert_sorted_if_absent): Create $file if absent.
16330         Adapt to new, possibly empty, list: $vc_ignore.
16331
16332         bootstrap: generate more ignorable names
16333         * build-aux/bootstrap (slurp): When generating ignorable names,
16334         also map .sin to .sed, .gperf to .c, and .y to .c.
16335
16336 2007-09-03  Jim Meyering  <jim@meyering.net>
16337
16338         * build-aux/git-version-gen: New file, from coreutils.  For details, see
16339         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
16340
16341 2007-09-02  Bruno Haible  <bruno@clisp.org>
16342
16343         Fix mis-recognition of 'mcs' on QNX 6.
16344         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
16345         output contains the string "Mono".
16346         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
16347         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
16348
16349 2007-09-01  Bruno Haible  <bruno@clisp.org>
16350
16351         Fix collision between uniwidth/* and linebreak modules.
16352         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
16353         u32_width): Remove declarations.
16354         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
16355         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
16356         streq3, streq2, streq1, streq0): Remove functions.
16357         (STREQ): Remove macro.
16358         (is_cjk_encoding): Remove function.
16359         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
16360         (uc_width, u8_width, u16_width, u32_width): Remove functions.
16361         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
16362         * NEWS: Document the change.
16363
16364 2007-09-01  Bruno Haible  <bruno@clisp.org>
16365
16366         * lib/streq.h: Add double-inclusion guard.
16367
16368 2007-09-01  Karl Berry  <karl@gnu.org>
16369
16370         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
16371
16372 2007-08-28  Jim Meyering  <jim@meyering.net>
16373
16374         Rename mreadlink_with_size to areadlink_with_size.
16375         * NEWS: Document the change.
16376         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
16377         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
16378         * lib/mreadlink.h: Rename this to...
16379         * lib/areadlink.h: ...this.
16380         * modules/mreadlink-with-size: Rename this to...
16381         * modules/areadlink-with-size: ...this.
16382         * lib/canonicalize.c: Reflect the renaming.
16383         * modules/canonicalize: Likewise.
16384
16385 2007-08-26  Bruno Haible  <bruno@clisp.org>
16386
16387         * gnulib-tool (func_import): When deciding which files to remove,
16388         consider also dangling symbolic links.
16389         Reported by Eric Blake.
16390
16391 2007-08-26  Bruno Haible  <bruno@clisp.org>
16392
16393         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
16394
16395 2007-08-23  Simon Josefsson  <simon@josefsson.org>
16396
16397         * lib/readline.c: Don't include getline.h, the prototype is now
16398         found in stdio.h.
16399
16400 2007-08-23  Jim Meyering  <jim@meyering.net>
16401
16402         Getdelim touchup.
16403         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
16404         around the funlockfile call, since funlockfile never sets errno.
16405         Don't set errno upon failed realloc.
16406
16407 2007-08-22  Eric Blake  <ebb9@byu.net>
16408
16409         Getline touchups.
16410         * lib/getdelim.c (getdelim): Revert regression that required *n to
16411         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
16412         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
16413         getdelim, rather than whether implementation is missing.
16414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
16415         * lib/stdio_.h (getline): Also declare if replacement is
16416         required.
16417         * doc/functions/getdelim.texi: New file.
16418         * doc/functions/getline.texi: Likewise.
16419         * doc/gnulib.texi (Function Substitutes): Add new files.
16420         Reported by Bruno Haible.
16421
16422 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
16423
16424         * users.txt: Add Guile.
16425
16426 2007-08-22  Eric Blake  <ebb9@byu.net>
16427
16428         * tests/test-getdelim.c (main): Use remove, not unlink.
16429         * tests/test-getline.c (main): Likewise.
16430
16431         Move getline and getdelim into stdio.h, per POSIX 200x.
16432         * modules/getline (Files): Remove getline.h.
16433         (Depends-on): Add stdio.
16434         (configure.ac): Add module indicator.
16435         * modules/getdelim (Files): Remove getdelim.h.
16436         (Depends-on): Add stdio.
16437         (configure.ac): Add module indicator.
16438         * modules/stdio (Makefile.am): Work with new indicators.
16439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
16440         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
16441         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16442         * lib/getdelim.h: Delete.
16443         * lib/getline.h: Delete.
16444         * lib/stdio_.h (getdelim, getline): Declare.
16445         * modules/getdelim-tests: New module.
16446         * modules/getline-tests: Likewise.
16447         * tests/test-getdelim.c: New file.
16448         * tests/test-getline.c: Likewise.
16449         * NEWS: Document the change.
16450         * lib/getline.c: Update choice of header.
16451         * lib/csharpcomp.c: Likewise.
16452         * lib/getpass.c: Likewise.
16453         * lib/javacomp.c: Likewise.
16454         * lib/javaversion.c: Likewise.
16455         * lib/yesno.c: Likewise.
16456         * lib/getdelim.c: Likewise.
16457         (getdelim): Set errno on failure, and avoid memory leak.
16458
16459 2007-08-19  Bruno Haible  <bruno@clisp.org>
16460
16461         * modules/closein (Depends-on): Add freadahead.
16462         * lib/closein.c: Include freadahead.h.
16463         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
16464         is zero.
16465
16466 2007-08-19  Bruno Haible  <bruno@clisp.org>
16467
16468         * modules/freadahead-tests: New file.
16469         * tests/test-freadahead.sh: New file.
16470         * tests/test-freadahead.c: New file.
16471
16472         * modules/freadahead: New file.
16473         * lib/freadahead.h: New file.
16474         * lib/freadahead.c: New file.
16475         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
16476         fbufmode, fpurge, freadable, fwritable.
16477
16478 2007-08-19  Eric Blake  <ebb9@byu.net>
16479
16480         Test yesno in combination with closein.
16481         * lib/yesno.c (yesno): Document use of stdin.
16482         * modules/yesno-tests (Files): New module.
16483         * tests/test-yesno.c (main): New file.
16484         * tests/test-yesno.sh: Likewise.
16485
16486 2007-08-19  Bruno Haible  <bruno@clisp.org>
16487
16488         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
16489         * lib/fseeko.c (rpl_fseeko): Likewise.
16490         * lib/fseterr.c (fseterr): Likewise.
16491
16492 2007-08-19  Bruno Haible  <bruno@clisp.org>
16493
16494         * tests/test-lseek.c (main): Disable a test for BeOS.
16495         * doc/functions/lseek.texi: Document the BeOS bug.
16496
16497 2007-08-19  Bruno Haible  <bruno@clisp.org>
16498             Eric Blake  <ebb9@byu.net>
16499
16500         * lib/lseek.c: Include <sys/stat.h>.
16501         (rpl_lseek): Add workaround code also for Unix platforms.
16502         Needed for BeOS.
16503         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
16504         * doc/functions/lseek.texi: Document BeOS definiency.
16505
16506 2007-08-18  Bruno Haible  <bruno@clisp.org>
16507
16508         * modules/fstrcmp-tests: New file.
16509         * tests/test-fstrcmp.c: New file.
16510
16511 2007-08-18  Bruno Haible  <bruno@clisp.org>
16512
16513         * modules/fstrcmp: New file, from GNU gettext with modifications.
16514         * lib/fstrcmp.h: New file, from GNU gettext.
16515         * lib/fstrcmp.c: New file, from GNU gettext.
16516         * MODULES.html.sh (String handling): Add fstrcmp.
16517
16518 2007-08-18  Bruno Haible  <bruno@clisp.org>
16519
16520         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
16521         'bool'.
16522         (diag, compareseq): Remove const from the ctxt argument.
16523         (USE_HEURISTIC): Undefine at the end.
16524
16525 2007-08-18  Jim Meyering  <jim@meyering.net>
16526
16527         New file: lib/idcache.h
16528         * NEWS: Mention the addition.
16529         * modules/idcache (Files): Add lib/idcache.h
16530         * lib/idcache.c: Include "idcache.h".
16531         Don't include <sys/types.h>.
16532         Add a FIXME comment.
16533         Move file-scoped "static" declarations to the top.
16534         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
16535
16536 2007-08-17  Bruno Haible  <bruno@clisp.org>
16537         and Paul Eggert  <eggert@cs.ucla.edu>
16538
16539         * MODULES.html.sh: Add diffseq.
16540         * modules/diffseq: New file.
16541         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
16542         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
16543
16544 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16545
16546         Import changes from coreutils for bootstrap script.
16547
16548         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
16549
16550         * build-aux/bootstrap (slurp): Work even in environments where
16551         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
16552         current code does not slurp files whose names start with ".", and
16553         this looks like it might be a troublesome area.
16554
16555         2007-07-11  Jim Meyering  <jim@meyering.net>
16556
16557         If there's a GPL vN copyright comment, require that N == 3.
16558
16559         2007-07-08  Jim Meyering  <jim@meyering.net>
16560
16561         Run the coreutils-specific code only if tests/Makefile.am.in exists.
16562         * build-aux/bootstrap (mam_template): Move definition out of loop.
16563
16564         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
16565
16566         * build-aux/bootstrap (symlink_to_dir): Rename function from
16567         symlink_to_gnulib.  Add a directory parameter.  Update all
16568         callers.
16569         (cp_mark_as_generated): Also check for -- and link to -- files in
16570         gl/.
16571
16572         2007-07-08  Jim Meyering  <jim@meyering.net>
16573
16574         Adapt to deeper hierarchy in gnulib.
16575         * build-aux/bootstrap (symlink_to_dir): If the destination
16576         directory doesn't exist, create it. This is required at least for
16577         "lib/uniwidth/cjk.h".
16578
16579         2007-05-15  Jim Meyering  <jim@meyering.net>
16580
16581         * build-aux/bootstrap: Now that generated Makefile.am files
16582         are no longer under version control, they must be created at
16583         bootstrap time.
16584
16585 2007-08-14  Ben Pfaff  <blp@gnu.org>
16586
16587         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
16588
16589 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
16592         given the changes below.
16593         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
16594         even on hosts that have padding bits beyond the supported 64.
16595
16596 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16597
16598         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
16599         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
16600         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
16601         depends on it.
16602         (xstrtol_error): Remove.
16603         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
16604         but with a different signature.
16605         (ATTRIBUTE_NORETURN, __attribute__): New macros.
16606         * lib/xstrtol-error.c: Include exitfail.h.
16607         (xstrtol_fatal): New function, with a different signature from the
16608         old xstrtol_error, so that the caller need not worry about passing
16609         in an exit status, or about storage management of the option argument.
16610         (xstrtol_error): Now a static function.  Redo signature to
16611         implement xstrtol_fatal.  Output the correct number of hyphens in
16612         front of the option so that the caller need not worry about
16613         storage management.
16614         (N_): New macro.
16615         (_): Remove; not used now.
16616         * modules/xstrtol: Depend on getopt.
16617         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
16618         of old STRTOL_FATAL_ERROR macro.
16619         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
16620         of test program.
16621         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
16622         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
16623
16624 2007-08-08  Eric Blake  <ebb9@byu.net>
16625
16626         * lib/xstrtol-error.c: Add missing include.
16627
16628         Move xstrtol messages into gnulib domain, when --pobase is used.
16629         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
16630         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
16631         * modules/xstrtol (Files): Distribute new file.
16632         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
16633         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
16634         * tests/test-xstrtol.c: ...into new file.
16635         * tests/test-xstrtoul.c: Also test xstrtoul.
16636         * tests/test-xstrtoimax.c: Also test xstrtoimax.
16637         * tests/test-xstrtoumax.c: Also test xstrtoumax.
16638         * tests/test-xstrtol.sh: Drive the tests.
16639         * tests/test-xstrtoimax.sh: Likewise.
16640         * tests/test-xstrtoumax.sh: Likewise.
16641         * modules/xstrtol-tests: New module.
16642         * modules/xstrtoimax-tests: Likewise.
16643         * modules/xstrtoumax-tests: Likewise.
16644
16645 2007-08-08  Jim Meyering  <jim@meyering.net>
16646
16647         New function: mfile_name_concat.
16648         * lib/filenamecat.c (mfile_name_concat): New function, just like
16649         file_name_concat, but return NULL upon failure rather than exiting
16650         with a diagnostic.
16651         * lib/filenamecat.h: Declare it.
16652
16653 2007-08-07  Bruno Haible  <bruno@clisp.org>
16654
16655         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
16656         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
16657         warning from gcc.
16658         Reported by Eric Blake.
16659
16660 2007-08-07  Simon Josefsson  <simon@josefsson.org>
16661
16662         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
16663         * modules/crypto/arcfour (License): Likewise.
16664         * modules/crypto/des-tests (License): Likewise.
16665         * modules/crypto/gc-arctwo-tests (License): Likewise.
16666         * modules/crypto/gc-des-tests (License): Likewise.
16667         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
16668         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
16669         * modules/crypto/gc-md2-tests (License): Likewise.
16670         * modules/crypto/gc-md4-tests (License): Likewise.
16671         * modules/crypto/gc-md5-tests (License): Likewise.
16672         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
16673         * modules/crypto/gc-rijndael-tests (License): Likewise.
16674         * modules/crypto/gc-sha1-tests (License): Likewise.
16675         * modules/crypto/gc-tests (License): Likewise.
16676         * modules/crypto/hmac-md5 (License): Likewise.
16677         * modules/crypto/hmac-sha1 (License): Likewise.
16678         * modules/crypto/md2-tests (License): Likewise.
16679         * modules/crypto/md4-tests (License): Likewise.
16680         * modules/crypto/md5 (License): Likewise.
16681         * modules/crypto/rijndael (License): Likewise.
16682         * modules/crypto/sha1 (License): Likewise.
16683         * modules/memxor (License): Likewise.
16684
16685 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16686         and Bruno Haible  <bruno@clisp.org>
16687
16688         * NEWS: Describe interface changes to human, xstrtol.
16689         * lib/human.h: Include <xstrtol.h>.
16690         (human_options): Return enum strtol_error, not int.  Remove
16691         bool arg; take int * instead.
16692         * lib/human.c: Don't include "gettext.h".
16693         (_): Remove; no longer used.
16694         Don't include <xstrtol.h>, since human.h does it.
16695         (human_options): Adjust to abovementioned interface changes.
16696         Do not report error to stderr; that's now the caller's
16697         responsibility.
16698         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
16699         interface change.
16700         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
16701         Str, Argument_type_string.  All uses changed.  Put " argument"
16702         in diagnostics to make them clearer.  Change wording of suffix
16703         message for clarity.
16704         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
16705         Argument_type_string.
16706         (STRTOL_FATAL_WARN): Remove; no longer used.
16707         * modules/human (Depends-on): Remove gettext-h.
16708
16709 2007-08-06  Simon Josefsson  <simon@josefsson.org>
16710
16711         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
16712
16713 2007-07-31  Bruno Haible  <bruno@clisp.org>
16714
16715         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
16716         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
16717         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
16718
16719 2007-07-31  Bruno Haible  <bruno@clisp.org>
16720
16721         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
16722         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
16723
16724 2007-07-30  Bruno Haible  <bruno@clisp.org>
16725
16726         * modules/base64 (License): Use the synonymous term "LGPLv2+".
16727         * modules/c-ctype (License): Likewise.
16728         * modules/c-strcase (License): Likewise.
16729         * modules/check-version (License): Likewise.
16730         * modules/iconv (License): Likewise.
16731         * modules/iconv_open (License): Likewise.
16732         * modules/read-file (License): Likewise.
16733         * modules/striconv (License): Likewise.
16734         * modules/strverscmp (License): Likewise.
16735         * modules/vasprintf (License): Likewise.
16736         * modules/crypto/des (License): Likewise.
16737         * modules/crypto/gc (License): Likewise.
16738         * modules/crypto/gc-arcfour (License): Likewise.
16739         * modules/crypto/gc-arctwo (License): Likewise.
16740         * modules/crypto/gc-des (License): Likewise.
16741         * modules/crypto/gc-hmac-md5 (License): Likewise.
16742         * modules/crypto/gc-hmac-sha1 (License): Likewise.
16743         * modules/crypto/gc-md2 (License): Likewise.
16744         * modules/crypto/gc-md4 (License): Likewise.
16745         * modules/crypto/gc-md5 (License): Likewise.
16746         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
16747         * modules/crypto/gc-random (License): Likewise.
16748         * modules/crypto/gc-rijndael (License): Likewise.
16749         * modules/crypto/gc-sha1 (License): Likewise.
16750         * modules/crypto/md2 (License): Likewise.
16751         * modules/crypto/md4 (License): Likewise.
16752
16753 2007-07-30  Jim Meyering  <jim@meyering.net>
16754
16755         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
16756         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
16757         it has valid stat data.  This bug would cause du not to count the
16758         sizes of inaccessible directories.
16759         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
16760         in <http://bugzilla.redhat.com/250077>.
16761
16762 2007-07-25  Peter O'Gorman  <peter@pogma.com>
16763             Bruno Haible  <bruno@clisp.org>
16764
16765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
16766         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
16767         #include_next, gives a diagnostic about it, but reports no error in
16768         the exit code.
16769         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16770
16771 2007-07-24  Ben Pfaff  <blp@gnu.org>
16772
16773         Improve name: "count-one-bits" is better than "popcount".
16774         * MODULES.html.sh: Update name.
16775         * lib/popcount.h: Renamed lib/count-one-bits.h.
16776         (popcount): Renamed count_one_bits.
16777         (popcountl): Renamed count_one_bits_l.
16778         (popcountll): Renamed count_one_bits_ll.
16779         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
16780         * modules/popcount: Renamed module/count-one-bits.
16781         * modules/popcount-tests: Renamed module/count-one-bits-tests.
16782         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
16783
16784 2007-07-23  Ben Pfaff  <blp@gnu.org>
16785
16786         * lib/popcount.h (popcount32): Reduce size of constants, to allow
16787         better code generation, and add U to large constants to avoid
16788         warnings, in non-GCC case.
16789         Suggested by Bruno Haible.
16790
16791 2007-07-23  Ben Pfaff  <blp@gnu.org>
16792
16793         * lib/popcount.h: Use verify_true instead of if...abort.
16794         * modules/popcount: Depend on verify module.
16795         Suggested by Jim Meyering.
16796
16797 2007-07-23  Bruno Haible  <bruno@clisp.org>
16798
16799         * gnulib-tool (func_import): Create a .cvsignore file also when the
16800         directory is not yet in CVS but the toplevel directory is. When
16801         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
16802         Reported by Karl Berry.
16803
16804 2007-07-22  Ben Pfaff  <blp@gnu.org>
16805
16806         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
16807         case.
16808         Suggested by Eric Blake.
16809
16810 2007-07-22  Ben Pfaff  <blp@gnu.org>
16811
16812         New module: popcount.
16813         * MODULES.html.sh: Add popcount.
16814         * modules/popcount: New file.
16815         * modules/popcount-tests: New file.
16816         * tests/test-popcount.c: New file.
16817         * lib/popcount.h: New file.
16818         * m4/popcount.m4: New file.
16819
16820 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16821
16822         * build-aux/announce-gen: Update to GPLv3.
16823
16824         * build-aux/config.guess: Update from config.
16825
16826 2007-07-21  Bruno Haible  <bruno@clisp.org>
16827
16828         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
16829         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
16830
16831 2007-07-20  Jim Meyering  <jim@meyering.net>
16832
16833         * check-module: Diagnose a self-dependency.
16834
16835 2007-07-19  Bruno Haible  <bruno@clisp.org>
16836
16837         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
16838         empty.
16839         Reported by Eric Blake.
16840
16841 2007-07-18  Bruno Haible  <bruno@clisp.org>
16842
16843         * gnulib-tool: New options --po-base, --po-domain.
16844         (func_usage): Document them.
16845         (pobase, po_domain): New variables.
16846         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
16847         DEFAULT_TEXT_DOMAIN.
16848         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
16849         (func_import): Consider pobase and po_domain. Create a po/ directory.
16850         (func_create_testdir): Set pobase and po_domain to empty.
16851         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
16852         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
16853
16854 2007-07-18  Bruno Haible  <bruno@clisp.org>
16855
16856         * gnulib-tool (func_get_automake_snippet): Synthesize also an
16857         EXTRA_DIST augmentation for files in build-aux/.
16858
16859 2007-07-16  Bruno Haible  <bruno@clisp.org>
16860
16861         * modules/lseek (License): Use the synonymous term "LGPLv2+".
16862         * modules/getdelim (License): Likewise.
16863
16864 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16865
16866         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
16867         * modules/d-type (License): Likewise.
16868         * modules/extensions (License): Likewise.
16869         * modules/fnmatch (License): Likewise.
16870         * modules/fseeko (License): Likewise.
16871         * modules/getaddrinfo (License): Likewise.
16872         * modules/getline (License): Likewise.
16873         * modules/getlogin_r (License): Likewise.
16874         * modules/getpass (License): Likewise.
16875         * modules/gettimeofday (License): Likewise.
16876         * modules/glob (License): Likewise.
16877         * modules/inet_ntop (License): Likewise.
16878         * modules/malloc (License): Likewise.
16879         * modules/malloca (License): Likewise.
16880         * modules/memmem (License): Likewise.
16881         * modules/mempcpy (License): Likewise.
16882         * modules/memset (License): Likewise.
16883         * modules/minmax (License): Likewise.
16884         * modules/mktime (License): Likewise.
16885         * modules/netinet_in (License): Likewise.
16886         * modules/pathmax (License): Likewise.
16887         * modules/poll (License): Likewise.
16888         * modules/regex (License): Likewise.
16889         * modules/snprintf (License): Likewise.
16890         * modules/stdbool (License): Likewise.
16891         * modules/stdint (License): Likewise.
16892         * modules/stdio (License): Likewise.
16893         * modules/strcase (License): Likewise.
16894         * modules/strcasestr (License): Likewise.
16895         * modules/strdup (License): Likewise.
16896         * modules/string (License): Likewise.
16897         * modules/strndup (License): Likewise.
16898         * modules/strnlen (License): Likewise.
16899         * modules/strpbrk (License): Likewise.
16900         * modules/strptime (License): Likewise.
16901         * modules/strsep (License): Likewise.
16902         * modules/sys_select (License): Likewise.
16903         * modules/sys_socket (License): Likewise.
16904         * modules/sys_stat (License): Likewise.
16905         * modules/sys_time (License): Likewise.
16906         * modules/time (License): Likewise.
16907         * modules/time_r (License): Likewise.
16908         * modules/timegm (License): Likewise.
16909         * modules/unistd (License): Likewise.
16910         * modules/vsnprintf (License): Likewise.
16911         * modules/wctype (License): Likewise.
16912
16913 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16914
16915         * modules/argz (License): LGPLv2+.
16916
16917 2007-07-15  Karl Berry  <karl@gnu.org>
16918
16919         * doc/gnulib.texi: revise node structure per new fdl.texi.
16920
16921 2007-07-14  Bruno Haible  <bruno@clisp.org>
16922
16923         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
16924         the output file.
16925         * lib/uniname/uninames.h: Regenerated.
16926
16927 2007-07-14  Karl Berry  <karl@gnu.org>
16928
16929         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
16930         omitting sectioning and index commands.
16931
16932 2007-07-13  Bruno Haible  <bruno@clisp.org>
16933
16934         New gnulib-tool option --more-symlinks.
16935         * gnulib-tool (func_usage): Document --more-symlinks.
16936         (do_copyrights): New variable.
16937         Recognize option --more-symlinks.
16938         (func_import): Don't add a copyright notice transform to
16939         sed_transform_lib_file if do_copyrights is empty.
16940
16941 2007-07-13  Bruno Haible  <bruno@clisp.org>
16942
16943         * lib/vasnprintf.c (decimal_point_char): Define also if
16944         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
16945         && !NEED_PRINTF_DIRECTIVE_A.
16946         Reported by Clemens Koller <clemens.koller@anagramm.de> via
16947         Gary V. Vaughan <gary@gnu.org>.
16948
16949 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
16950
16951         * lib/inttypes_.h: Undo previous change, since it was fixed
16952         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
16953
16954 2007-07-13  Bruno Haible  <bruno@clisp.org>
16955
16956         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
16957         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
16958
16959 2007-07-13  Jim Meyering  <jim@meyering.net>
16960
16961         df: Don't fail for Tru64's "file-on-file mount".
16962         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
16963         so we fall through and use statfs instead.  Details here:
16964         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
16965         Reported by Albert Chin.
16966
16967 2007-07-13  Bruno Haible  <bruno@clisp.org>
16968
16969         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
16970         * modules/configmake (License): Likewise.
16971         * modules/gettext (License): Likewise.
16972         * modules/gettext-h (License): Likewise.
16973         * modules/include_next (License): Likewise.
16974         * modules/link-warning (License): Likewise.
16975         * modules/localcharset (License): Likewise.
16976         * modules/localename (License): Likewise.
16977         * modules/lock (License): Likewise.
16978         * modules/relocatable-lib-lgpl (License): Likewise.
16979         * modules/size_max (License): Likewise.
16980         * modules/vasnprintf (License): Likewise.
16981         * modules/wchar (License): Likewise.
16982         * modules/xsize (License): Likewise.
16983
16984 2007-07-13  Bruno Haible  <bruno@clisp.org>
16985
16986         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
16987         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
16988
16989 2007-07-12  Bruno Haible  <bruno@clisp.org>
16990
16991         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
16992         in the modules files.
16993
16994 2007-07-11  Karl Berry  <karl@gnu.org>
16995
16996         * MODULES.html.sh (func_module): use
16997          sed -e '\|^'"${includefile}"'$|d'
16998          instead of /.../d, to avoid errors on $includefile's containing /.
16999
17000 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17001
17002         * gnulib-tool (func_import): Avoid duplication of --avoid
17003         statements
17004         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
17005         names to `_' in variable names.
17006
17007 2007-07-10  Eric Blake  <ebb9@byu.net>
17008
17009         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
17010         * NEWS: Document this change.
17011
17012 2007-07-08  Bruno Haible  <bruno@clisp.org>
17013
17014         Update to Unicode 5.0.
17015         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
17016         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
17017         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
17018         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
17019         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
17020         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
17021         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
17022         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
17023         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
17024         U+10A3F, U+1D242..U+1D244.
17025         (nonspacing_table_ind): Update.
17026         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
17027         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
17028
17029 2007-07-08  Bruno Haible  <bruno@clisp.org>
17030
17031         Update to Unicode 5.0.
17032         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
17033         code transform. Extend the name index field of unicode_name_to_code and
17034         unicode_code_to_name from 16 to 24 bits.
17035         * lib/uniname/uniname.c (unicode_character_name,
17036         unicode_name_character): Add the range 0x12xxx to the code transform.
17037         * lib/uniname/uninames.h: Regenerated.
17038         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
17039
17040 2007-07-07  Bruno Haible  <bruno@clisp.org>
17041
17042         * modules/wcwidth-tests: New file.
17043         * tests/test-wcwidth.c: New file.
17044
17045         Work around MacOS X wcwidth() bug.
17046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
17047         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
17048         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
17049         original wcwidth in non-UTF-8 locales.
17050         * modules/wcwidth (Depends-on): Add localcharset, streq,
17051         uniwidth/width.
17052         * doc/functions/wcwidth.texi: Update.
17053
17054 2007-07-07  Bruno Haible  <bruno@clisp.org>
17055
17056         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
17057         (wcwidth): New declaration.
17058         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
17059         macros.
17060         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
17061         here. Prepare for creating <wchar.h> unconditionally.
17062         * modules/wchar (Depends-on): Add link-warning.
17063         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
17064         REPLACE_WCWIDTH, and GL_LINK_WARNING.
17065         * lib/wcwidth.h: Remove file.
17066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
17067         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
17068         * modules/wcwidth (Files): Remove lib/wcwidth.h.
17069         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
17070         (Include): Replace wcwidth.h with <wchar.h>.
17071         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
17072         * lib/mbchar.h: Don't include wcwidth.h.
17073         * lib/mbswidth.c: Likewise.
17074         * NEWS: Mention the change.
17075
17076 2007-07-07  Bruno Haible  <bruno@clisp.org>
17077
17078         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
17079         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
17080         definition with an external declaration.
17081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
17082         defined as a function. Remove AC_C_INLINE requirement.
17083         * modules/wcwidth (Files): Add lib/wcwidth.c.
17084         (Makefile.am): Remove redundant statement.
17085
17086 2007-07-07  Bruno Haible  <bruno@clisp.org>
17087
17088         * MODULES.html.sh (Unicode string functions): Add the new modules.
17089
17090         * tests/uniwidth/test-u32-strwidth.c: New file.
17091         * modules/uniwidth/u32-strwidth-tests: New file.
17092
17093         * lib/uniwidth/u32-strwidth.c: New file.
17094         * modules/uniwidth/u32-strwidth: New file.
17095
17096         * tests/uniwidth/test-u16-strwidth.c: New file.
17097         * modules/uniwidth/u16-strwidth-tests: New file.
17098
17099         * lib/uniwidth/u16-strwidth.c: New file.
17100         * modules/uniwidth/u16-strwidth: New file.
17101
17102         * tests/uniwidth/test-u8-strwidth.c: New file.
17103         * modules/uniwidth/u8-strwidth-tests: New file.
17104
17105         * lib/uniwidth/u8-strwidth.c: New file.
17106         * modules/uniwidth/u8-strwidth: New file.
17107
17108         * tests/uniwidth/test-u32-width.c: New file.
17109         * modules/uniwidth/u32-width-tests: New file.
17110
17111         * lib/uniwidth/u32-width.c: New file.
17112         * modules/uniwidth/u32-width: New file.
17113
17114         * tests/uniwidth/test-u16-width.c: New file.
17115         * modules/uniwidth/u16-width-tests: New file.
17116
17117         * lib/uniwidth/u16-width.c: New file.
17118         * modules/uniwidth/u16-width: New file.
17119
17120         * tests/uniwidth/test-u8-width.c: New file.
17121         * modules/uniwidth/u8-width-tests: New file.
17122
17123         * lib/uniwidth/u8-width.c: New file.
17124         * modules/uniwidth/u8-width: New file.
17125
17126         * tests/uniwidth/test-uc_width.c: New file.
17127         * modules/uniwidth/width-tests: New file.
17128
17129         * lib/uniwidth/width.c: New file, from GNU libiconv.
17130         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
17131         * modules/uniwidth/width: New file.
17132
17133         * lib/uniwidth.h: New file, from GNU libiconv.
17134         * modules/uniwidth/base: New file.
17135
17136 2007-07-07  Bruno Haible  <bruno@clisp.org>
17137
17138         * lib/uniname.h: New file, from GNU gettext.
17139         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
17140         * lib/uniname/uninames.h: New file, from GNU gettext.
17141         * lib/uniname/uniname.c: New file, from GNU gettext.
17142         * tests/uniname/test-uninames.sh: New file.
17143         * tests/uniname/test-uninames.c: New file, from GNU gettext.
17144         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
17145         * modules/uniname/base: New file.
17146         * modules/uniname/uniname: New file.
17147         * modules/uniname/uniname-tests: New file.
17148         * MODULES.html.sh (Unicode string functions): Add the new modules.
17149
17150 2007-07-06  Bruno Haible  <bruno@clisp.org>
17151
17152         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
17153
17154 2007-07-06  Bruno Haible  <bruno@clisp.org>
17155
17156         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
17157         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
17158         includes <cygwin/sys_time.h> which includes <sys/select.h> which
17159         include <sys/time.h>.
17160         Reported by Eric Blake.
17161
17162 2007-07-06  Eric Blake  <ebb9@byu.net>
17163
17164         Fix testing canonicalize on cygwin.
17165         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
17166         Revert patch from 2007-06-19.
17167         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
17168         canonicalize module is also in use.
17169         * tests/test-canonicalize.c: New file.
17170         * tests/test-canonicalize.sh: Likewise.
17171         * modules/canonicalize-tests: Likewise.
17172
17173 2007-07-06  Jim Meyering  <jim@meyering.net>
17174
17175         * lib/getugroups.c (getugroups): Detect getgrent failure.
17176         Adjust comment to reflect reality: this function may return -1.
17177
17178 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17179
17180         * build-aux/bootstrap (TP_URL,get_translations): Update to use
17181         the new TP address.
17182         (usage): Fix typo
17183         (gnulib_mk): New variable.
17184
17185 2007-07-05  Jim Meyering  <jim@meyering.net>
17186
17187         Don't let endgrent clobber errno, no matter how improbable.
17188         * lib/getugroups.c (getugroups): Save and restore errno around
17189         endgrent call.
17190
17191         Close the group DB even when failing with 2^31 or more members.
17192         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
17193
17194 2007-07-04  Jim Meyering  <jim@meyering.net>
17195
17196         * lib/getugroups.h: New file.
17197         * lib/getugroups.c: Include "getugroups.h".
17198         Remove uses of "register" keyword.
17199         Move local variable, "cp", down into scope where used.
17200         Give "username" parameter the "const" attribute.
17201         * modules/getugroups (Files): Add lib/getugroups.h
17202
17203 2007-07-04  Karl Berry  <karl@gnu.org>
17204
17205         * MODULES.html.sh (func_all_modules): Complete rename of
17206         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
17207
17208 2007-07-02  Bruno Haible  <bruno@clisp.org>
17209
17210         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
17211         mode, when inttypes.h comes from gnulib.
17212         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17213
17214 2007-07-02  Simon Josefsson  <simon@josefsson.org>
17215
17216         * NEWS: Mention lgpl module name change.
17217
17218         * modules/lgpl-2.1: Renamed from lgpl.
17219
17220         * NEWS: Mention gpl module name change.
17221
17222         * modules/gpl-3.0: New file, based on gpl-2.0.
17223
17224         * modules/gpl-2.0: Renamed from gpl.
17225
17226         * modules/gpl: Fix filename, doc/gpl.texi is now found at
17227         doc/gpl-2.0.texi.
17228
17229 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
17230
17231         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
17232         #define __STDC_LIMIT_MACROS temporarily while including
17233         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
17234         Problem reported by Joel E. Denny in
17235         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
17236
17237 2007-07-01  Bruno Haible  <bruno@clisp.org>
17238
17239         * lib/unistdio.h: New file.
17240         * lib/unistdio/u-asnprintf.h: New file.
17241         * lib/unistdio/u-asprintf.h: New file.
17242         * lib/unistdio/u-printf-args.c: New file.
17243         * lib/unistdio/u-printf-args.h: New file.
17244         * lib/unistdio/u-printf-parse.h: New file.
17245         * lib/unistdio/u-snprintf.h: New file.
17246         * lib/unistdio/u-sprintf.h: New file.
17247         * lib/unistdio/u-vasprintf.h: New file.
17248         * lib/unistdio/u-vsnprintf.h: New file.
17249         * lib/unistdio/u-vsprintf.h: New file.
17250         * lib/unistdio/ulc-asnprintf.c: New file.
17251         * lib/unistdio/ulc-asprintf.c: New file.
17252         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
17253         * lib/unistdio/ulc-printf-parse.c: New file.
17254         * lib/unistdio/ulc-snprintf.c: New file.
17255         * lib/unistdio/ulc-sprintf.c: New file.
17256         * lib/unistdio/ulc-vasnprintf.c: New file.
17257         * lib/unistdio/ulc-vasprintf.c: New file.
17258         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
17259         * lib/unistdio/ulc-vsnprintf.c: New file.
17260         * lib/unistdio/ulc-vsprintf.c: New file.
17261         * lib/unistdio/u8-asnprintf.c: New file.
17262         * lib/unistdio/u8-asprintf.c: New file.
17263         * lib/unistdio/u8-printf-parse.c: New file.
17264         * lib/unistdio/u8-snprintf.c: New file.
17265         * lib/unistdio/u8-sprintf.c: New file.
17266         * lib/unistdio/u8-vasnprintf.c: New file.
17267         * lib/unistdio/u8-vasprintf.c: New file.
17268         * lib/unistdio/u8-vsnprintf.c: New file.
17269         * lib/unistdio/u8-vsprintf.c: New file.
17270         * lib/unistdio/u8-u8-asnprintf.c: New file.
17271         * lib/unistdio/u8-u8-asprintf.c: New file.
17272         * lib/unistdio/u8-u8-snprintf.c: New file.
17273         * lib/unistdio/u8-u8-sprintf.c: New file.
17274         * lib/unistdio/u8-u8-vasnprintf.c: New file.
17275         * lib/unistdio/u8-u8-vasprintf.c: New file.
17276         * lib/unistdio/u8-u8-vsnprintf.c: New file.
17277         * lib/unistdio/u8-u8-vsprintf.c: New file.
17278         * lib/unistdio/u16-asnprintf.c: New file.
17279         * lib/unistdio/u16-asprintf.c: New file.
17280         * lib/unistdio/u16-printf-parse.c: New file.
17281         * lib/unistdio/u16-snprintf.c: New file.
17282         * lib/unistdio/u16-sprintf.c: New file.
17283         * lib/unistdio/u16-vasnprintf.c: New file.
17284         * lib/unistdio/u16-vasprintf.c: New file.
17285         * lib/unistdio/u16-vsnprintf.c: New file.
17286         * lib/unistdio/u16-vsprintf.c: New file.
17287         * lib/unistdio/u16-u16-asnprintf.c: New file.
17288         * lib/unistdio/u16-u16-asprintf.c: New file.
17289         * lib/unistdio/u16-u16-snprintf.c: New file.
17290         * lib/unistdio/u16-u16-sprintf.c: New file.
17291         * lib/unistdio/u16-u16-vasnprintf.c: New file.
17292         * lib/unistdio/u16-u16-vasprintf.c: New file.
17293         * lib/unistdio/u16-u16-vsnprintf.c: New file.
17294         * lib/unistdio/u16-u16-vsprintf.c: New file.
17295         * lib/unistdio/u32-asnprintf.c: New file.
17296         * lib/unistdio/u32-asprintf.c: New file.
17297         * lib/unistdio/u32-printf-parse.c: New file.
17298         * lib/unistdio/u32-snprintf.c: New file.
17299         * lib/unistdio/u32-sprintf.c: New file.
17300         * lib/unistdio/u32-vasnprintf.c: New file.
17301         * lib/unistdio/u32-vasprintf.c: New file.
17302         * lib/unistdio/u32-vsnprintf.c: New file.
17303         * lib/unistdio/u32-vsprintf.c: New file.
17304         * lib/unistdio/u32-u32-asnprintf.c: New file.
17305         * lib/unistdio/u32-u32-asprintf.c: New file.
17306         * lib/unistdio/u32-u32-snprintf.c: New file.
17307         * lib/unistdio/u32-u32-sprintf.c: New file.
17308         * lib/unistdio/u32-u32-vasnprintf.c: New file.
17309         * lib/unistdio/u32-u32-vasprintf.c: New file.
17310         * lib/unistdio/u32-u32-vsnprintf.c: New file.
17311         * lib/unistdio/u32-u32-vsprintf.c: New file.
17312         * tests/unistdio/test-ulc-asnprintf1.c: New file.
17313         * tests/unistdio/test-ulc-asnprintf1.h: New file.
17314         * tests/unistdio/test-ulc-printf1.h: New file.
17315         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
17316         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
17317         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
17318         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
17319         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
17320         * tests/unistdio/test-ulc-vasprintf1.c: New file.
17321         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
17322         * tests/unistdio/test-ulc-vsprintf1.c: New file.
17323         * tests/unistdio/test-u8-asnprintf1.c: New file.
17324         * tests/unistdio/test-u8-asnprintf1.h: New file.
17325         * tests/unistdio/test-u8-printf1.h: New file.
17326         * tests/unistdio/test-u8-vasnprintf1.c: New file.
17327         * tests/unistdio/test-u8-vasnprintf2.c: New file.
17328         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
17329         * tests/unistdio/test-u8-vasnprintf3.c: New file.
17330         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
17331         * tests/unistdio/test-u8-vasprintf1.c: New file.
17332         * tests/unistdio/test-u8-vsnprintf1.c: New file.
17333         * tests/unistdio/test-u8-vsprintf1.c: New file.
17334         * tests/unistdio/test-u16-asnprintf1.c: New file.
17335         * tests/unistdio/test-u16-asnprintf1.h: New file.
17336         * tests/unistdio/test-u16-printf1.h: New file.
17337         * tests/unistdio/test-u16-vasnprintf1.c: New file.
17338         * tests/unistdio/test-u16-vasnprintf2.c: New file.
17339         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
17340         * tests/unistdio/test-u16-vasnprintf3.c: New file.
17341         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
17342         * tests/unistdio/test-u16-vasprintf1.c: New file.
17343         * tests/unistdio/test-u16-vsnprintf1.c: New file.
17344         * tests/unistdio/test-u16-vsprintf1.c: New file.
17345         * tests/unistdio/test-u32-asnprintf1.c: New file.
17346         * tests/unistdio/test-u32-asnprintf1.h: New file.
17347         * tests/unistdio/test-u32-printf1.h: New file.
17348         * tests/unistdio/test-u32-vasnprintf1.c: New file.
17349         * tests/unistdio/test-u32-vasnprintf2.c: New file.
17350         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
17351         * tests/unistdio/test-u32-vasnprintf3.c: New file.
17352         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
17353         * tests/unistdio/test-u32-vasprintf1.c: New file.
17354         * tests/unistdio/test-u32-vsnprintf1.c: New file.
17355         * tests/unistdio/test-u32-vsprintf1.c: New file.
17356         * modules/unistdio/base: New file.
17357         * modules/unistdio/u-printf-args: New file.
17358         * modules/unistdio/ulc-asnprintf: New file.
17359         * modules/unistdio/ulc-asprintf: New file.
17360         * modules/unistdio/ulc-fprintf: New file.
17361         * modules/unistdio/ulc-printf-parse: New file.
17362         * modules/unistdio/ulc-snprintf: New file.
17363         * modules/unistdio/ulc-sprintf: New file.
17364         * modules/unistdio/ulc-vasnprintf: New file.
17365         * modules/unistdio/ulc-vasprintf: New file.
17366         * modules/unistdio/ulc-vfprintf: New file.
17367         * modules/unistdio/ulc-vsnprintf: New file.
17368         * modules/unistdio/ulc-vsprintf: New file.
17369         * modules/unistdio/u8-asnprintf: New file.
17370         * modules/unistdio/u8-asprintf: New file.
17371         * modules/unistdio/u8-printf-parse: New file.
17372         * modules/unistdio/u8-snprintf: New file.
17373         * modules/unistdio/u8-sprintf: New file.
17374         * modules/unistdio/u8-vasnprintf: New file.
17375         * modules/unistdio/u8-vasprintf: New file.
17376         * modules/unistdio/u8-vsnprintf: New file.
17377         * modules/unistdio/u8-vsprintf: New file.
17378         * modules/unistdio/u8-u8-asnprintf: New file.
17379         * modules/unistdio/u8-u8-asprintf: New file.
17380         * modules/unistdio/u8-u8-snprintf: New file.
17381         * modules/unistdio/u8-u8-sprintf: New file.
17382         * modules/unistdio/u8-u8-vasnprintf: New file.
17383         * modules/unistdio/u8-u8-vasprintf: New file.
17384         * modules/unistdio/u8-u8-vsnprintf: New file.
17385         * modules/unistdio/u8-u8-vsprintf: New file.
17386         * modules/unistdio/u16-asnprintf: New file.
17387         * modules/unistdio/u16-asprintf: New file.
17388         * modules/unistdio/u16-printf-parse: New file.
17389         * modules/unistdio/u16-snprintf: New file.
17390         * modules/unistdio/u16-sprintf: New file.
17391         * modules/unistdio/u16-vasnprintf: New file.
17392         * modules/unistdio/u16-vasprintf: New file.
17393         * modules/unistdio/u16-vsnprintf: New file.
17394         * modules/unistdio/u16-vsprintf: New file.
17395         * modules/unistdio/u16-u16-asnprintf: New file.
17396         * modules/unistdio/u16-u16-asprintf: New file.
17397         * modules/unistdio/u16-u16-snprintf: New file.
17398         * modules/unistdio/u16-u16-sprintf: New file.
17399         * modules/unistdio/u16-u16-vasnprintf: New file.
17400         * modules/unistdio/u16-u16-vasprintf: New file.
17401         * modules/unistdio/u16-u16-vsnprintf: New file.
17402         * modules/unistdio/u16-u16-vsprintf: New file.
17403         * modules/unistdio/u32-asnprintf: New file.
17404         * modules/unistdio/u32-asprintf: New file.
17405         * modules/unistdio/u32-printf-parse: New file.
17406         * modules/unistdio/u32-snprintf: New file.
17407         * modules/unistdio/u32-sprintf: New file.
17408         * modules/unistdio/u32-vasnprintf: New file.
17409         * modules/unistdio/u32-vasprintf: New file.
17410         * modules/unistdio/u32-vsnprintf: New file.
17411         * modules/unistdio/u32-vsprintf: New file.
17412         * modules/unistdio/u32-u32-asnprintf: New file.
17413         * modules/unistdio/u32-u32-asprintf: New file.
17414         * modules/unistdio/u32-u32-snprintf: New file.
17415         * modules/unistdio/u32-u32-sprintf: New file.
17416         * modules/unistdio/u32-u32-vasnprintf: New file.
17417         * modules/unistdio/u32-u32-vasprintf: New file.
17418         * modules/unistdio/u32-u32-vsnprintf: New file.
17419         * modules/unistdio/u32-u32-vsprintf: New file.
17420         * modules/unistdio/ulc-asnprintf-tests: New file.
17421         * modules/unistdio/ulc-vasnprintf-tests: New file.
17422         * modules/unistdio/ulc-vasprintf-tests: New file.
17423         * modules/unistdio/ulc-vsnprintf-tests: New file.
17424         * modules/unistdio/ulc-vsprintf-tests: New file.
17425         * modules/unistdio/u8-asnprintf-tests: New file.
17426         * modules/unistdio/u8-vasnprintf-tests: New file.
17427         * modules/unistdio/u8-vasprintf-tests: New file.
17428         * modules/unistdio/u8-vsnprintf-tests: New file.
17429         * modules/unistdio/u8-vsprintf-tests: New file.
17430         * modules/unistdio/u16-asnprintf-tests: New file.
17431         * modules/unistdio/u16-vasnprintf-tests: New file.
17432         * modules/unistdio/u16-vasprintf-tests: New file.
17433         * modules/unistdio/u16-vsnprintf-tests: New file.
17434         * modules/unistdio/u16-vsprintf-tests: New file.
17435         * modules/unistdio/u32-asnprintf-tests: New file.
17436         * modules/unistdio/u32-vasnprintf-tests: New file.
17437         * modules/unistdio/u32-vasprintf-tests: New file.
17438         * modules/unistdio/u32-vsnprintf-tests: New file.
17439         * modules/unistdio/u32-vsprintf-tests: New file.
17440         * MODULES.html.sh (Unicode string functions): Add the new modules.
17441
17442 2007-07-01  Bruno Haible  <bruno@clisp.org>
17443
17444         * lib/sprintf.c (sprintf): Limit the available length estimation,
17445         to avoid address wraparound.
17446         * lib/vsprintf.c (vsprintf): Likewise.
17447         * modules/sprintf-posix (Dependencies): Add stdint.
17448         * modules/vsprintf-posix (Dependencies): Likewise.
17449
17450 2007-07-01  Bruno Haible  <bruno@clisp.org>
17451
17452         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
17453         Windows PATH as well. Conservative double-quoting. Comments.
17454
17455 2007-07-01  Bruno Haible  <bruno@clisp.org>
17456             Eric Blake  <ebb9@byu.net>
17457             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17458
17459         * gnulib-tool (self_abspathname): Fix algorithm to cope with
17460         empty components in $PATH, denoting '.'.
17461
17462 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17463
17464         * gnulib-tool: Fix indentation.
17465         (func_create_megatestdir): Likewise.
17466         Report by Bruno Haible.
17467
17468 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17469
17470         Sync from Automake.
17471         * build-aux/gnupload: Fix shell portability issues with for loops.
17472         Report by Karl Berry.
17473
17474 2007-06-29  Simon Josefsson  <simon@josefsson.org>
17475
17476         * build-aux/maint.mk (POURL): Use translationproject.org.
17477
17478 2007-06-27  Simon Josefsson  <simon@josefsson.org>
17479             Bruno Haible  <bruno@clisp.org>
17480
17481         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
17482         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
17483         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
17484         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
17485         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
17486
17487 2007-06-27  Bruno Haible  <bruno@clisp.org>
17488
17489         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
17490         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
17491
17492 2007-06-26  Karl Berry  <karl@gnu.org>
17493
17494         * MODULES.html.sh: remove xreadlink-with-size.
17495
17496 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17497
17498         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
17499         method that I hope also handles the double-include problem noted
17500         by Bruno Haible in
17501         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
17502
17503 2007-06-23  Bruno Haible  <bruno@clisp.org>
17504
17505         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17506         Don't let the 'mostlyclean' target fail if the last subdirectory could
17507         not be removed.
17508         Reported by Karl Berry.
17509
17510 2007-06-23  Bruno Haible  <bruno@clisp.org>
17511
17512         * gnulib-tool (echo): Add a speedier workaround for ksh.
17513         * tests/test-echo.sh: Likewise.
17514
17515 2007-06-23  Bruno Haible  <bruno@clisp.org>
17516
17517         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
17518         * tests/test-echo.sh: Likewise.
17519
17520 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17521
17522         * gnulib-tool (IFS): Initialize early, so we don't set it to
17523         empty later.
17524         (self_abspathname): Rewrite algorithm to set it, reindent.
17525         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
17526         (func_create_megatestdir): Merge some sed scripts.
17527
17528 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17529
17530         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
17531         exposed by Sun Studio 11 cc on Solaris 8.
17532
17533 2007-06-22  Bruno Haible  <bruno@clisp.org>
17534
17535         * gnulib-tool (echo): Ensure the echo primitive does not interpret
17536         backslashes.
17537         * tests/test-echo.sh: New file.
17538
17539 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17540
17541         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
17542         simplify `sed_replace_build_aux' scripts, they are portable but
17543         echoing them with `echo' is not.
17544         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
17545
17546 2007-06-21  Karl Berry  <karl@gnu.org>
17547
17548         * config/srclist.txt: guess we can't handle the licenses via
17549         srclist at the moment.
17550
17551 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17552
17553         * MODULES.html.sh: Add include_next.
17554         * modules/include_next: New file.
17555
17556 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17557
17558         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
17559         INCLUDE_NEXT.
17560         (gl_CHECK_NEXT_HEADERS): New macro.
17561         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
17562         the obsolescent gl_ABSOLUTE_HEADER.
17563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
17564         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
17565         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
17566         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17567         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17568         * m4/math_h.m4 (gl_MATH_H): Likewise.
17569         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
17570         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17571         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17572         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17573         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17574         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17575         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17576         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17577         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17578         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17579         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17580         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17581         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
17582         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17583         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17584         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17585         * m4/inttypes.m4 (gl_INTTYPES_H): Define
17586         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
17587         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
17588         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
17589         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
17590         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
17591         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
17592         * lib/float_.h: Likewise.
17593         * lib/inttypes_.h: Likewise.
17594         * lib/math_.h: Likewise.
17595         * lib/search_.h: Likewise.
17596         * lib/signal_.h: Likewise.
17597         * lib/stdint_.h: Likewise.
17598         * lib/stdio_.h: Likewise.
17599         * lib/stdlib_.h: Likewise.
17600         * lib/string_.h: Likewise.
17601         * lib/sys_stat_.h: Likewise.
17602         * lib/sys_time_.h: Likewise.
17603         * lib/time_.h: Likewise.
17604         * lib/unistd_.h: Likewise.
17605         * lib/wchar_.h: Likewise.
17606         * lib/wctype_.h: Likewise.
17607         * lib/dirent_.h: Likewise.
17608         * lib/iconv_.h: Likewise.
17609         * lib/locale_.h: Likewise.
17610         * lib/netinet_in_.h: Likewise.
17611         * lib/sys_select_.h: Likewise.
17612         * lib/sys_socket_.h: Likewise.
17613         * lib/sysexits_.h: Likewise.
17614         * modules/fcntl (Depends-on): Depend on include_next, not
17615         absolute_header.
17616         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
17617         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
17618         * modules/fchdir: Likewise.
17619         * modules/float: Likewise.
17620         * modules/iconv_open: Likewise.
17621         * modules/inttypes: Likewise.
17622         * modules/locale: Likewise.
17623         * modules/math: Likewise.
17624         * modules/netinet_in: Likewise.
17625         * modules/search: Likewise.
17626         * modules/signal: Likewise.
17627         * modules/stdint: Likewise.
17628         * modules/stdio: Likewise.
17629         * modules/stdlib: Likewise.
17630         * modules/string: Likewise.
17631         * modules/sys_select: Likewise.
17632         * modules/sys_socket: Likewise.
17633         * modules/sys_stat: Likewise.
17634         * modules/sys_time: Likewise.
17635         * modules/sysexits: Likewise.
17636         * modules/time: Likewise.
17637         * modules/unistd: Likewise.
17638         * modules/wchar: Likewise.
17639         * modules/wctype: Likewise.
17640         * modules/sys_stat: Change maintainer to "all".
17641         * modules/unistd: Likewise.
17642
17643 2007-06-20  Karl Berry  <karl@gnu.org>
17644
17645         * config/srclist.txt: track www changes in license files.
17646
17647 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
17648
17649         * build-aux/bootstrap: Remove stray dot.
17650         Make sure build_aux settings are honored when linking
17651         gnulib_extra_files.
17652
17653 2007-06-19  Eric Blake  <ebb9@byu.net>
17654
17655         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
17656         Allow compilation on cygwin.
17657
17658 2007-06-19  Jim Meyering  <jim@meyering.net>
17659
17660         xreadlink-with-size: Remove module.  No longer used.
17661         Ex-callers now use xreadlink or mreadlink-with-size.
17662         * modules/xreadlink-with-size: Remove module.
17663         * lib/xreadlink-with-size.c: Remove file.
17664         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
17665         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
17666         just before the function definition *is* accurate.
17667
17668         Eliminate one way canonicalize_filename_mode could exit.
17669         * lib/canonicalize.c (canonicalize_filename_mode):
17670         Use mreadlink_with_size, not xreadlink_with_size.
17671
17672 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         Detect porting problems to FreeBSD/arm, which has time_t wider than
17675         long int.  Original problem reported for GNU diff by Xin Li in
17676         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
17677         * modules/getdate (Depends-on): Add intprops, verify.
17678         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
17679         is an integer type no wider than long int.
17680
17681 2007-06-18  Jim Meyering  <jim@meyering.net>
17682
17683         New module: mreadlink-with-size.
17684         * MODULES.html.sh: Add mreadlink-with-size.
17685         * modules/mreadlink-with-size: New module
17686         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
17687         not xreadlink-with-size.
17688         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
17689
17690 2007-06-16  Bruno Haible  <bruno@clisp.org>
17691
17692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
17693         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
17694         Reported by Gary V. Vaughan <gary@gnu.org>.
17695
17696 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17697
17698         Revamp lchown so that it lives in unistd.h where it belongs.
17699         * lib/lchown.h: Remove.
17700         * lib/dirchownmod.c: Don't include lib/lchown.h.
17701         * lib/fchownat.c: Likewise.
17702         * lib/openat.c: Likewise.
17703         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
17704         does not follow symlinks.
17705         (EOPNOTSUPP): Define if not defined.
17706         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
17707         is defined to 0.
17708         (lchown): New decl.
17709         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
17710         Do not check for lchown decl.
17711         Set REPLACE_LCHOWN.
17712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
17713         REPLACE_LCHOWN.
17714         * modules/chown: Make it clear it follows symlinks.
17715         * modules/lchown: Make it clear it doesn't follow symlinks.
17716         (Files): Remove lib/lchown.h
17717         (Depends-on): Add unistd.
17718         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
17719         (Include): Include <unistd.h>, not "lchown.h".
17720         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
17721         REPLACE_LCHOWN.
17722
17723 2007-06-15  Jim Meyering  <jim@meyering.net>
17724
17725         Change license (GPL to LGPL) of fsusage and dependents.
17726         * modules/fsusage (License): Change to LGPL.
17727         * modules/full-read (License): Likewise.
17728         * modules/full-write (License): Likewise.
17729         * modules/safe-read (License): Likewise.
17730         * modules/safe-write (License): Likewise.
17731
17732 2007-06-14  Ben Pfaff  <blp@gnu.org>
17733
17734         Missing part of allocsa -> malloca transition.
17735         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
17736         gl_MALLOCA.
17737
17738 2007-06-12  Bruno Haible  <bruno@clisp.org>
17739
17740         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
17741         to ia64, x86_64, i386.
17742         Reported by Eric Blake.
17743
17744 2007-06-12  Bruno Haible  <bruno@clisp.org>
17745
17746         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
17747         cross-compiling to x86_64.
17748
17749 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
17750
17751         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
17752         glitch reported by Ralf Wildenhues in
17753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
17754
17755         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
17756         Vin Shelton.
17757
17758 2007-06-11  Bruno Haible  <bruno@clisp.org>
17759
17760         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
17761         replacement string.
17762         Reported by Eric Blake.
17763
17764 2007-06-10  Bruno Haible  <bruno@clisp.org>
17765
17766         Prepare vasnprintf code for use with Unicode strings.
17767         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
17768         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
17769         TYPE_U32_STRING.
17770         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
17771         a_u32_string variants.
17772         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
17773         * lib/printf-args.c: Don't include config.h and the specification
17774         header if PRINTF_FETCHARGS is already defined.
17775         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
17776         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
17777         TYPE_U16_STRING, TYPE_U32_STRING.
17778         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
17779         u16_directive, u16_directives, u32_directive, u32_directives): New
17780         types.
17781         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
17782         New declarations.
17783         * lib/printf-parse.c: Don't include config.h and the specification
17784         header if PRINTF_PARSE is already defined. Eliminate the set of
17785         parameters for WIDE_CHAR_VERSION; the user of this file must provide
17786         them now. Include c-ctype.h.
17787         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
17788         directive and CHAR_T_ONLY_ASCII.
17789         * lib/vasnprintf.c: Don't include config.h and the specification header
17790         if VASNPRINTF is already defined.
17791         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
17792         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
17793         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
17794         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
17795         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
17796         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
17797         code accordingly.
17798         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
17799         pad_ourselves also in this case, with the 'c' and 's' directives, and
17800         with a different notion of "width".
17801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
17802
17803 2007-06-10  Bruno Haible  <bruno@clisp.org>
17804
17805         * modules/unistr/u32-mbsnlen: New file.
17806         * lib/unistr/u32-mbsnlen.c: New file.
17807
17808         * modules/unistr/u16-mbsnlen: New file.
17809         * lib/unistr/u16-mbsnlen.c: New file.
17810
17811         * modules/unistr/u8-mbsnlen: New file.
17812         * lib/unistr/u8-mbsnlen.c: New file.
17813
17814         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
17815         declarations.
17816
17817 2007-06-10  Bruno Haible  <bruno@clisp.org>
17818
17819         * lib/string_.h (mbsnlen): New declaration.
17820         * lib/mbsnlen.c: New file.
17821         * m4/mbsnlen.m4: New file.
17822         * modules/mbsnlen: New file.
17823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
17824         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
17825         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
17826
17827 2007-06-10  Bruno Haible  <bruno@clisp.org>
17828
17829         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
17830
17831 2007-06-10  Bruno Haible  <bruno@clisp.org>
17832
17833         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
17834         * lib/mbuiter.h: Likewise.
17835
17836 2007-06-10  Bruno Haible  <bruno@clisp.org>
17837
17838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
17839         declaration.
17840
17841 2007-06-10  Karl Berry  <karl@gnu.org>
17842
17843         * config/srclist.txt: remove gettext entries, Bruno prefers
17844         to update individually.
17845
17846 2007-06-10  Bruno Haible  <bruno@clisp.org>
17847
17848         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
17849         'maxlen'. Ensure only length + width bytes are allocated, not
17850         length + 1 + width.
17851
17852 2007-06-09  Bruno Haible  <bruno@clisp.org>
17853
17854         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
17855         (CHAR_T): Remove macro.
17856         (VASNPRINTF): Update.
17857
17858 2007-06-09  Bruno Haible  <bruno@clisp.org>
17859
17860         * MODULES.html.sh (Unicode string functions): Add the new modules.
17861
17862         * modules/uniconv/u32-conv-to-enc: New file.
17863         * lib/uniconv/u32-conv-to-enc.c: New file.
17864         * modules/uniconv/u32-conv-to-enc-tests: New file.
17865         * tests/uniconv/test-u32-conv-to-enc.c: New file.
17866
17867         * modules/uniconv/u16-conv-to-enc: New file.
17868         * lib/uniconv/u16-conv-to-enc.c: New file.
17869         * lib/uniconv/u-conv-to-enc.h: New file.
17870         * modules/uniconv/u16-conv-to-enc-tests: New file.
17871         * tests/uniconv/test-u16-conv-to-enc.c: New file.
17872
17873         * modules/uniconv/u8-conv-to-enc: New file.
17874         * lib/uniconv/u8-conv-to-enc.c: New file.
17875         * modules/uniconv/u8-conv-to-enc-tests: New file.
17876         * tests/uniconv/test-u8-conv-to-enc.c: New file.
17877
17878         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17879         u32_conv_to_encoding): New declarations.
17880
17881 2007-06-09  Bruno Haible  <bruno@clisp.org>
17882
17883         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
17884
17885 2007-06-09  Bruno Haible  <bruno@clisp.org>
17886
17887         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
17888         * modules/malloca: Renamed from modules/allocsa, updated.
17889         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
17890         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
17891         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
17892         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
17893         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
17894         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
17895         * modules/xmalloca: Renamed from modules/xallocsa, updated.
17896         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
17897         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
17898         * modules/c-strcasestr (Depends-on): Update.
17899         * lib/c-strcasestr.c: Update.
17900         * modules/c-strstr (Depends-on): Update.
17901         * lib/c-strstr.c: Update.
17902         * modules/canonicalize-lgpl (Depends-on): Update.
17903         * lib/canonicalize-lgpl.c: Update.
17904         * modules/clean-temp (Depends-on): Update.
17905         * lib/clean-temp.c: Update.
17906         * modules/csharpcomp (Depends-on): Update.
17907         * lib/csharpcomp.c: Update.
17908         * modules/csharpexec (Depends-on): Update.
17909         * lib/csharpexec.c: Update.
17910         * modules/javacomp (Depends-on): Update.
17911         * lib/javacomp.c: Update.
17912         * modules/javaexec (Depends-on): Update.
17913         * lib/javaexec.c: Update.
17914         * modules/mbscasestr (Depends-on): Update.
17915         * lib/mbscasestr.c: Update.
17916         * modules/mbsstr (Depends-on): Update.
17917         * lib/mbsstr.c: Update.
17918         * modules/setenv (Depends-on): Update.
17919         * lib/setenv.c: Update.
17920         * modules/strcasestr (Depends-on): Update.
17921         * lib/strcasestr.c: Update.
17922         * modules/striconveha (Depends-on): Update.
17923         * lib/striconveha.c: Update.
17924         * modules/relocatable-prog-wrapper (Files): Update.
17925         * lib/relocwrapper.c: Update.
17926         * build-aux/install-reloc: Update.
17927         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
17928
17929 2007-06-08  Bruno Haible  <bruno@clisp.org>
17930
17931         Port to uClibc.
17932         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
17933         * lib/fpurge.c (fpurge): Likewise.
17934         * lib/freading.c (freading): Likewise.
17935         * lib/fseeko.c (rpl_fseeko): Likewise.
17936         * lib/fseterr.c (fseterr): Likewise.
17937         * lib/fwriting.c (fwriting): Likewise.
17938         * tests/test-fflush.c (main): Avoid a failure on uClibc.
17939
17940 2007-06-08  Bruno Haible  <bruno@clisp.org>
17941
17942         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
17943         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
17944         * modules/gettext (Files): Add m4/intlmacosx.m4.
17945
17946 2007-06-07  Bruno Haible  <bruno@clisp.org>
17947
17948         * modules/localename-tests: New file.
17949         * tests/test-localename.c: New file.
17950
17951         New module 'localename'.
17952         * lib/localename.h: New file.
17953         * lib/localename.c: New file, from GNU gettext.
17954         * m4/localename.m4: New file.
17955         * modules/localename: New file.
17956
17957 2007-06-07  Bruno Haible  <bruno@clisp.org>
17958
17959         Work around the lack of <wchar.h> on some builds of uClibc.
17960         * doc/headers/wchar.texi: Update.
17961         * lib/wchar_.h: Include <wchar.h> only if it exists.
17962         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
17963         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
17964         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
17965         doesn't exist.
17966         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
17967         * modules/mbfile (Depends-on): Add wchar.
17968         * modules/mbiter (Depends-on): Likewise.
17969         * modules/mbuiter (Depends-on): Likewise.
17970         Reported by Simon Josefsson.
17971
17972 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
17973
17974         Work around problem reported by Steven M. Schweda in
17975         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
17976         Tru64 5.1B with the Compaq compiler environment installed declares
17977         an 'isblank' function but does not define it in the C library.
17978         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
17979         * lib/regex_internal.h (isblank): Likewise.
17980         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
17981         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17982
17983 2007-06-05  Bruno Haible  <bruno@clisp.org>
17984
17985         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
17986         ia64.
17987         * modules/printf-safe: New file.
17988         * modules/fprintf-posix (Depends-on): Add printf-safe.
17989         * modules/printf-posix (Depends-on): Likewise.
17990         * modules/snprintf-posix (Depends-on): Likewise.
17991         * modules/sprintf-posix (Depends-on): Likewise.
17992         * modules/vasnprintf-posix (Depends-on): Likewise.
17993         * modules/vasprintf-posix (Depends-on): Likewise.
17994         * modules/vfprintf-posix (Depends-on): Likewise.
17995         * modules/vprintf-posix (Depends-on): Likewise.
17996         * modules/vsnprintf-posix (Depends-on): Likewise.
17997         * modules/vsprintf-posix (Depends-on): Likewise.
17998         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
17999         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
18000         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
18001         "no" on i386, x86_64, ia64.
18002         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
18003         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
18004         on i386, x86_64, ia64.
18005         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
18006         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
18007         on i386, x86_64, ia64.
18008         * tests/test-vasnprintf-posix.c: Include float.h.
18009         (LDBL80_WORDS): New macro.
18010         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
18011         on i386, x86_64, ia64.
18012         * tests/test-vasprintf-posix.c: Include float.h.
18013         (LDBL80_WORDS): New macro.
18014         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
18015         on i386, x86_64, ia64.
18016         * tests/test-snprintf-posix.c: Include float.h.
18017         * tests/test-sprintf-posix.c: Likewise.
18018         * tests/test-vsnprintf-posix.c: Likewise.
18019         * tests/test-vsprintf-posix.c: Likewise.
18020
18021 2007-06-05  Bruno Haible  <bruno@clisp.org>
18022
18023         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
18024         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
18025         non-IEEE numbers on i386, x86_64, ia64.
18026         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
18027         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
18028         * tests/test-isnanl.h: Include float.h.
18029         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
18030
18031 2007-06-05  Bruno Haible  <bruno@clisp.org>
18032
18033         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
18034         also the %a / %A. Handle the %a / %A code before this extra handling.
18035
18036 2007-06-05  Bruno Haible  <bruno@clisp.org>
18037
18038         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
18039         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
18040
18041 2007-06-05  Bruno Haible  <bruno@clisp.org>
18042
18043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
18044         typo in variable name.
18045
18046 2007-06-05  Eric Blake  <ebb9@byu.net>
18047
18048         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
18049         Reported by Simon Josefsson.
18050
18051 2007-06-04  Bruno Haible  <bruno@clisp.org>
18052
18053         Avoid test failures on some PowerPC platforms.
18054         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
18055         Define differently for PowerPC.
18056         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
18057         Reported by Gary V. Vaughan <gary@gnu.org>.
18058
18059 2007-06-02  Bruno Haible  <bruno@clisp.org>
18060
18061         Fix test-stdint failure on FreeBSD/ia64.
18062         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
18063         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
18064         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
18065         * doc/headers/stdint.texi: Update.
18066
18067 2007-06-01  Bruno Haible  <bruno@clisp.org>
18068
18069         * tests/test-binary-io.c (main): Pass a third argument to open().
18070         Reported by Gary V. Vaughan <gary@gnu.org>.
18071
18072 2007-06-01  Bruno Haible  <bruno@clisp.org>
18073
18074         * doc/functions/frexpl.texi: Update for mingw.
18075
18076 2007-06-01  Bruno Haible  <bruno@clisp.org>
18077
18078         * tests/test-lseek.c (main): Disable test of errno for invalid third
18079         argument.
18080         * doc/functions/lseek.texi: Update.
18081         Reported by Gary V. Vaughan <gary@gnu.org>.
18082
18083 2007-05-28  Bruno Haible  <bruno@clisp.org>
18084
18085         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
18086
18087 2007-05-31  Eric Blake  <ebb9@byu.net>
18088
18089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
18090         cross compiling.
18091
18092 2007-05-30  Eric Blake  <ebb9@byu.net>
18093         and Bruno Haible  <bruno@clisp.org>
18094
18095         Work around mingw test failures exposed by m4-1.4.9b.
18096         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
18097         * tests/test-unistd.c: Disable uid_t and git_t tests for the
18098         moment.
18099
18100 2007-05-30  Bruno Haible  <bruno@clisp.org>
18101
18102         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
18103         assuming that they are closed. Needed on HP-UX 11.
18104
18105 2007-05-29  Bruno Haible  <bruno@clisp.org>
18106
18107         Fix a problem with #include_next.
18108         * lib/dirent_.h: Split the double-inclusion guard.
18109         * lib/fcntl_.h: Likewise.
18110         * lib/float_.h: Likewise.
18111         * lib/iconv_.h: Likewise.
18112         * lib/inttypes_.h: Likewise.
18113         * lib/locale_.h: Likewise.
18114         * lib/math_.h: Likewise.
18115         * lib/netinet_in_.h: Likewise.
18116         * lib/search_.h: Likewise.
18117         * lib/signal_.h: Likewise.
18118         * lib/stdint_.h: Likewise.
18119         * lib/stdio_.h: Likewise.
18120         * lib/stdlib_.h: Likewise.
18121         * lib/string_.h: Likewise.
18122         * lib/sys_select_.h: Likewise.
18123         * lib/sys_socket_.h: Likewise.
18124         * lib/sys_stat_.h: Likewise.
18125         * lib/sys_time_.h: Likewise.
18126         * lib/sysexits_.h: Likewise.
18127         * lib/time_.h: Likewise.
18128         * lib/unistd_.h: Likewise.
18129         * lib/wchar_.h: Likewise.
18130         * lib/wctype_.h: Likewise.
18131
18132 2007-05-29  Bruno Haible  <bruno@clisp.org>
18133
18134         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
18135         for the moment.
18136
18137 2007-05-29  Bruno Haible  <bruno@clisp.org>
18138
18139         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
18140         invocation.
18141         Reported by Eric Blake.
18142
18143 2007-05-29  Bruno Haible  <bruno@clisp.org>
18144
18145         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
18146         compiling case.
18147
18148 2007-05-29  Eric Blake  <ebb9@byu.net>
18149             Bruno Haible  <bruno@clisp.org>
18150
18151         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
18152         cross compiles.
18153
18154 2007-05-28  Eric Blake  <ebb9@byu.net>
18155
18156         * modules/closein-tests (test_closein_LDADD): Support test on
18157         cygwin with libtool.
18158
18159 2007-05-28  Bruno Haible  <bruno@clisp.org>
18160
18161         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
18162         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18163         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18164         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18165         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18166         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18167         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18168         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18169         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18170
18171 2007-05-28  Eric Blake  <ebb9@byu.net>
18172
18173         Unconditionally include <config.h> in unit tests.
18174         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
18175         * tests/test-allocsa.c, tests/test-arcfour.c,
18176         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
18177         tests/test-array_list.c, tests/test-array_oset.c,
18178         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
18179         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
18180         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
18181         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
18182         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
18183         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
18184         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
18185         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
18186         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
18187         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
18188         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
18189         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
18190         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
18191         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
18192         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
18193         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
18194         test-md5.c, test-memmem.c, test-printf-posix.c,
18195         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
18196         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
18197         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
18198         test-strcasestr.c, test-striconv.c, test-striconveh.c,
18199         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
18200         test-vasnprintf-posix2.c, test-vasnprintf.c,
18201         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
18202         test-vfprintf-posix.c, test-vprintf-posix.c,
18203         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
18204         test-xvasprintf.c: Likewise.
18205
18206 2007-05-28  Bruno Haible  <bruno@clisp.org>
18207
18208         * gnulib-tool (func_import): Remember the --with-tests command-line
18209         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
18210         Reported by Eric Blake.
18211
18212 2007-05-28  Bruno Haible  <bruno@clisp.org>
18213
18214         * modules/ftell-tests: New file.
18215         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
18216         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
18217
18218         * lib/ftell.c: New file.
18219         * modules/ftell: New file.
18220         * m4/ftell.m4: New file.
18221         * doc/functions/ftell.texi: Update.
18222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
18223         REPLACE_FTELL.
18224         * lib/stdio_.h (rpl_ftell): New declaration.
18225         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
18226         REPLACE_FTELL.
18227
18228 2007-05-28  Eric Blake  <ebb9@byu.net>
18229
18230         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
18231
18232 2007-05-28  Bruno Haible  <bruno@clisp.org>
18233
18234         * modules/fseek-tests: New file.
18235         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
18236         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
18237
18238         * lib/fseek.c: New file.
18239         * modules/fseek: New file.
18240         * m4/fseek.m4: New file.
18241         * doc/functions/fseek.texi: Update.
18242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
18243         REPLACE_FSEEK.
18244         * lib/stdio_.h (rpl_fseek): New declaration.
18245         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
18246         REPLACE_FSEEK.
18247
18248 2007-05-28  Bruno Haible  <bruno@clisp.org>
18249
18250         * lib/stdio_.h (fflush): More comments.
18251
18252 2007-05-28  Bruno Haible  <bruno@clisp.org>
18253
18254         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
18255         runtime test.
18256
18257 2007-05-28  Eric Blake  <ebb9@byu.net>
18258
18259         Improve lseek module.
18260         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
18261         * lib/unistd_.h (lseek): Scale back link warning message.
18262         * tests/test-lseek.c: Beef up test.
18263         * tests/test-lseek.sh: Exercise more facets of lseek.
18264         Reported by Bruno Haible.
18265
18266 2007-05-28  Bruno Haible  <bruno@clisp.org>
18267
18268         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
18269         to define.
18270
18271 2007-05-27  Bruno Haible  <bruno@clisp.org>
18272
18273         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
18274
18275 2007-05-27  Bruno Haible  <bruno@clisp.org>
18276
18277         * modules/openmp: New file.
18278         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
18279         Noah Misch.
18280
18281 2007-05-26  Bruno Haible  <bruno@clisp.org>
18282
18283         * modules/chdir-long (Depends-on): Add fchdir.
18284         * modules/chdir-safer (Depends-on): Likewise.
18285         * modules/fts (Depends-on): Likewise.
18286         * modules/fts-lgpl (Depends-on): Likewise.
18287         * modules/openat (Depends-on): Likewise.
18288         * modules/savewd (Depends-on): Likewise.
18289
18290 2007-05-24  Eric Blake  <ebb9@byu.net>
18291
18292         Fix lseek on mingw.
18293         * modules/lseek: New module.
18294         * m4/lseek.m4: New file.
18295         * lib/lseek.c: New file.
18296         * modules/lseek-tests: New file.
18297         * tests/test-lseek.c: New file.
18298         * tests/test-lseek.sh: New file.
18299         * MODULES.html.sh: Document lseek module.
18300         * modules/fflush (Depends-on): Add lseek, fseeko.
18301         * modules/fseeko (Depends-on): Likewise.
18302         * modules/ftello (Depends-on): Likewise.
18303         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
18304         broken.
18305         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
18306         broken.
18307         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
18308         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
18309         * lib/ftello.c (rpl_ftello): Likewise.
18310         * tests/test-fseeko.c (main): Test this.
18311         * tests/test-fseeko.sh: Likewise.
18312         * tests/test-ftello.c (main): Likewise.
18313         * tests/test-ftello.sh: Likewise.
18314         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
18315         implies replacing fseek.
18316         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
18317         HAVE_FTELLO.
18318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
18319         * modules/unistd (Makefile.am): Likewise.
18320         * lib/unistd_.h (lseek): Declare a replacement.
18321         * doc/functions/lseek.texi (lseek): Document this fix.
18322         * doc/functions/fseek.texi (fseek): Likewise.
18323         * doc/functions/ftell.texi (ftell): Likewise.
18324
18325 2007-05-24  Bruno Haible  <bruno@clisp.org>
18326
18327         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
18328         in the printed representation of a NaN.
18329         * tests/test-vasprintf-posix.c (test_function): Likewise.
18330         * tests/test-snprintf-posix.h (test_function): Likewise.
18331         * tests/test-sprintf-posix.h (test_function): Likewise.
18332         Reported by Eric Blake.
18333
18334 2007-05-23  Eric Blake  <ebb9@byu.net>
18335
18336         Fix fseeko/ftello on cygwin 1.5.24.
18337         * doc/functions/fseeko.texi (fseeko): Document the fix.
18338         * doc/functions/ftello.texi (ftello): Document the fix.
18339         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
18340         * doc/functions/stdout.text (stdout): New file.
18341         * doc/functions/stderr.text (stderr): New file.
18342         * doc/gnulib.texi (Function Substitutes): Use new files.
18343         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
18344         prior to 1.7.0.
18345         * tests/test-ftello.c (main): Likewise for ftello.
18346         * tests/test-fseeko.sh: New file.
18347         * tests/test-ftello.sh: New file.
18348         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
18349         with seekable stdin.
18350         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
18351         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
18352         (gl_REPLACE_FSEEKO): New macro.
18353         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
18354         * modules/fseeko (Files): Distribute fseeko.c.
18355         * modules/ftello (Files): Distribute ftello.c.
18356         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
18357         mode.
18358         * lib/ftello.c (rpl_ftello): New file.
18359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
18360         fseeko, ftello.
18361         (gl_STDIN_LARGE_OFFSET): New macro.
18362         * modules/stdio (Makefile.am): Perform the replacement.
18363         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
18364
18365 2007-05-23  Bruno Haible  <bruno@clisp.org>
18366
18367         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
18368         GNULIB_POSIXCHECK is defined.
18369
18370 2007-05-21  Bruno Haible  <bruno@clisp.org>
18371
18372         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
18373         Check also the output for NaN arguments. When cross-compiling, guess
18374         no on IRIX.
18375         * lib/vasnprintf.c: Update comments.
18376         * tests/test-vasnprintf-posix.c (strisnan): New function.
18377         (test_function): Use it.
18378         * tests/test-vasprintf-posix.c (strisnan): New function.
18379         (test_function): Use it.
18380         * tests/test-snprintf-posix.h (strisnan): New function.
18381         (test_function): Use it.
18382         * tests/test-sprintf-posix.h (strisnan): New function.
18383         (test_function): Use it.
18384         Reported by Eric Blake.
18385
18386 2007-05-20  Bruno Haible  <bruno@clisp.org>
18387
18388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
18389         numbers that fails on BeOS.
18390         * doc/functions/frexpl.texi: Update.
18391
18392 2007-05-20  Jim Meyering  <jim@meyering.net>
18393
18394         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
18395         forced upon us by glibc-2.6.
18396
18397 2007-05-20  Bruno Haible  <bruno@clisp.org>
18398
18399         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
18400         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
18401         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
18402         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
18403         NEED_PRINTF_INFINITE.
18404         (is_infinitel): New function.
18405         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
18406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
18407         gl_PREREQ_VASNPRINTF_INFINITE.
18408         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
18409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18410         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
18411         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
18412         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
18413         gl_PREREQ_VASNPRINTF_INFINITE.
18414         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18415         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18416         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18417         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18420         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18421         * doc/functions/fprintf.texi: Update.
18422         * doc/functions/printf.texi: Update.
18423         * doc/functions/snprintf.texi: Update.
18424         * doc/functions/sprintf.texi: Update.
18425         * doc/functions/vfprintf.texi: Update.
18426         * doc/functions/vprintf.texi: Update.
18427         * doc/functions/vsnprintf.texi: Update.
18428         * doc/functions/vsprintf.texi: Update.
18429
18430 2007-05-20  Bruno Haible  <bruno@clisp.org>
18431
18432         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
18433         was not found in libc.
18434         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18435
18436 2007-05-20  Bruno Haible  <bruno@clisp.org>
18437
18438         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
18439         printed as "-nan" instead of "nan".
18440         * tests/test-vasprintf-posix.c (test_function): Likewise.
18441         * tests/test-snprintf-posix.h (test_function): Likewise.
18442         * tests/test-sprintf-posix.h (test_function): Likewise.
18443         Needed for HP-UX 11.
18444
18445 2007-05-20  Jim Meyering  <jim@meyering.net>
18446
18447         Fix buggy test for the fchownat-deref bug.
18448         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
18449         symlink required for the run-test.  Without it, this test would
18450         always declare that fchownat doesn't work, and client code would
18451         unnecessarily use the replacement function with fixed libc.
18452         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
18453         Reported by Greg Schafer.
18454
18455 2007-05-19  Bruno Haible  <bruno@clisp.org>
18456
18457         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
18458         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
18459         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
18460         Needed for IRIX 6.5 and Solaris 2.5.1.
18461
18462 2007-05-19  Bruno Haible  <bruno@clisp.org>
18463
18464         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
18465         (test_function): Skip tests involving -0.0 on platforms where
18466         -0.0 = 0.0.
18467         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
18468         (test_function): Skip tests involving -0.0 on platforms where
18469         -0.0 = 0.0.
18470         * tests/test-snprintf-posix.h (have_minus_zero): New function.
18471         (test_function): Skip tests involving -0.0 on platforms where
18472         -0.0 = 0.0.
18473         * tests/test-sprintf-posix.h (have_minus_zero): New function.
18474         (test_function): Skip tests involving -0.0 on platforms where
18475         -0.0 = 0.0.
18476         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
18477         tests.
18478         * tests/test-printf-posix.h (test_function): Likewise.
18479         * tests/test-printf-posix.output: Remove all -0.0 related results.
18480         Needed for IRIX 6.5.
18481
18482 2007-05-19  Bruno Haible  <bruno@clisp.org>
18483
18484         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
18485         printed as "nan0x7fffffff" instead of "nan".
18486         * tests/test-vasprintf-posix.c (test_function): Likewise.
18487         * tests/test-snprintf-posix.h (test_function): Likewise.
18488         * tests/test-sprintf-posix.h (test_function): Likewise.
18489         * tests/test-fprintf-posix.h (NaN): Remove macro.
18490         (test_function): Remove all NaN related tests.
18491         * tests/test-printf-posix.h (NaN): Remove macro.
18492         (test_function): Remove all NaN related tests.
18493         * tests/test-printf-posix.output: Remove all NaN related results.
18494         Needed for IRIX 6.5.
18495
18496 2007-05-19  Bruno Haible  <bruno@clisp.org>
18497
18498         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
18499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18500
18501 2007-05-19  Bruno Haible  <bruno@clisp.org>
18502
18503         * lib/float_.h: New file.
18504         * m4/float_h.m4: New file.
18505         * modules/float: New file.
18506         * modules/isnanl (Dependencies): Add float.
18507         * modules/isnanl-nolibm (Dependencies): Likewise.
18508         * modules/mathl (Dependencies): Likewise.
18509         * modules/printf-frexpl (Dependencies): Likewise.
18510         * modules/signbit (Dependencies): Likewise.
18511         * modules/vasnprintf (Dependencies): Likewise.
18512         * doc/headers/float.texi: Update.
18513
18514 2007-05-19  Jim Meyering  <jim@meyering.net>
18515
18516         * lib/utimens.c (gl_futimens): Rename from futimens,
18517         now that glibc-2.6 declares futimens.
18518         * lib/utimens.h: Likewise.
18519
18520 2007-05-19  Bruno Haible  <bruno@clisp.org>
18521
18522         Avoid test failures on mingw.
18523         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
18524         * tests/test-printf-posix.sh: Likewise.
18525         * tests/test-vfprintf-posix.sh: Likewise.
18526         * tests/test-vprintf-posix.sh: Likewise.
18527
18528 2007-05-19  Bruno Haible  <bruno@clisp.org>
18529
18530         Fix *printf result for NaN, Inf, -0.0 on mingw.
18531         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
18532         * lib/vasnprintf.c: Include math.h and isnan.h.
18533         (is_infinite_or_zero): New function.
18534         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
18535         values in the %f, %F, %e, %E, %g, %G directives.
18536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
18537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18538         gl_PRINTF_INFINITE and test its result. Invoke
18539         gl_PREREQ_VASNPRINTF_INFINITE.
18540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18541         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18547         * doc/functions/fprintf.texi: Update.
18548         * doc/functions/printf.texi: Update.
18549         * doc/functions/snprintf.texi: Update.
18550         * doc/functions/sprintf.texi: Update.
18551         * doc/functions/vfprintf.texi: Update.
18552         * doc/functions/vprintf.texi: Update.
18553         * doc/functions/vsnprintf.texi: Update.
18554         * doc/functions/vsprintf.texi: Update.
18555
18556 2007-05-19  Bruno Haible  <bruno@clisp.org>
18557
18558         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
18559         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
18560         Instead of multiplying with 10^k, set extra_zeroes to k.
18561         (scale10_round_long_double): Remove function.
18562
18563 2007-05-18  Bruno Haible  <bruno@clisp.org>
18564
18565         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
18566         introduced on 2007-05-06.
18567
18568 2007-05-18  Bruno Haible  <bruno@clisp.org>
18569
18570         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
18571         %g directives.
18572         * tests/test-vasprintf-posix.c (test_function): Likewise.
18573         * tests/test-snprintf-posix.h (test_function): Likewise.
18574         * tests/test-sprintf-posix.h (test_function): Likewise.
18575
18576 2007-05-18  Bruno Haible  <bruno@clisp.org>
18577
18578         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
18579         (strmatch): New function.
18580         (test_function): Test the %f directive on numbers of various exponents.
18581         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
18582         (strmatch): New function.
18583         (test_function): Test the %f directive on numbers of various exponents.
18584         * tests/test-snprintf-posix.h (strmatch): New function.
18585         (test_function): Test the %f directive on numbers of various exponents.
18586         * tests/test-sprintf-posix.h (strmatch): New function.
18587         (test_function): Test the %f directive on numbers of various exponents.
18588         * tests/test-snprintf-posix.c (SIZEOF): New macro.
18589         * tests/test-sprintf-posix.c (SIZEOF): New macro.
18590         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
18591         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
18592
18593 2007-05-18  Bruno Haible  <bruno@clisp.org>
18594
18595         Add support for 'long double' number output.
18596         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
18597         * lib/vasnprintf.c: Include math.h and float+.h.
18598         (mp_limb_t): New type.
18599         (GMP_LIMB_BITS): New macro.
18600         (mp_twolimb_t): New type.
18601         (GMP_TWOLIMB_BITS): New macro.
18602         (mpn_t): New type.
18603         (multiply, divide, convert_to_decimal, decode_long_double,
18604         scale10_round_long_double, scale10_round_decimal_long_double,
18605         floorlog10l): New functions.
18606         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
18607         for the %f, %F, %e, %E, %g, %G directives.
18608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
18609         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18610         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
18611         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
18612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18619         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
18620         * modules/snprintf-posix (Depends-on): Likewise.
18621         * modules/sprintf-posix (Depends-on): Likewise.
18622         * modules/vasnprintf-posix (Depends-on): Likewise.
18623         * modules/vasprintf-posix (Depends-on): Likewise.
18624         * modules/vfprintf-posix (Depends-on): Likewise.
18625         * modules/vsnprintf-posix (Depends-on): Likewise.
18626         * modules/vsprintf-posix (Depends-on): Likewise.
18627         * modules/vasnprintf (Files): Add lib/float+.h.
18628         * doc/functions/fprintf.texi: Update.
18629         * doc/functions/printf.texi: Update.
18630         * doc/functions/snprintf.texi: Update.
18631         * doc/functions/sprintf.texi: Update.
18632         * doc/functions/vfprintf.texi: Update.
18633         * doc/functions/vprintf.texi: Update.
18634         * doc/functions/vsnprintf.texi: Update.
18635         * doc/functions/vsprintf.texi: Update.
18636
18637 2007-05-18  Bruno Haible  <bruno@clisp.org>
18638
18639         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
18640
18641 2007-05-18  Bruno Haible  <bruno@clisp.org>
18642
18643         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
18644         for printing 64-bit integers. Needed for mingw.
18645
18646 2007-05-18  Bruno Haible  <bruno@clisp.org>
18647
18648         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
18649         gl_FUNC_FREXPL_WORKS.
18650         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
18651
18652 2007-05-18  Bruno Haible  <bruno@clisp.org>
18653
18654         * modules/frexpl-nolibm-tests: New file.
18655
18656         * modules/frexpl-nolibm: New file.
18657         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
18658
18659 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18660
18661         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
18662         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
18663         GCC 4.2, which otherwise issues a lot of warnings.
18664         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
18665         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
18666         Likewise.
18667         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
18668         * modules/iconv_open (iconv.h): Likewise.
18669         * modules/locale (locale.h): Likewise.
18670         * modules/netinet_in (netinet/in.h): Likewise.
18671         * modules/sys_select (sys_select.h): Likewise.
18672         * modules/sys_socket (sys/socket.h): Likewise.
18673         * modules/sys_stat (sys/stat.h): Likewise.
18674         * modules/sysexits (sysexits.h): Likewise.
18675         * modules/unistd (unistd.h): Likewise.
18676
18677 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18678
18679         * modules/closein-tests (Makefile.am): Distribute
18680         `test-closein.sh'.
18681
18682 2007-05-17  Bruno Haible  <bruno@clisp.org>
18683
18684         * tests/test-printf-posix.output: Renamed from
18685         tests/test-fprintf-posix.out.
18686         * modules/fprintf-posix-tests: Update.
18687         * modules/printf-posix-tests: Update.
18688         * modules/vfprintf-posix-tests: Update.
18689         * modules/vprintf-posix-tests: Update.
18690         * tests/test-fprintf-posix.sh: Update.
18691         * tests/test-printf-posix.sh: Update.
18692         * tests/test-vfprintf-posix.sh: Update.
18693         * tests/test-vprintf-posix.sh: Update.
18694         Reported by Ralf Wildenhues.
18695
18696 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18697
18698         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
18699         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
18700         GCC 4.2, which otherwise issues a lot of warnings.
18701         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
18702         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
18703         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
18704         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
18705         it should no longer be needed.
18706         * lib/string_.h: Likewise.
18707         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
18708         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
18709         * modules/inttypes (inttypes.h): Likewise.
18710         * modules/math (math.h): Likewise.
18711         * modules/search (search.h): Likewise.
18712         * modules/signal (signal.h): Likewise.
18713         * modules/stdint (stdint.h): Likewise.
18714         * modules/stdio (stdio.h): Likewise.
18715         * modules/stdlib (stdlib.h): Likewise.
18716         * modules/string (string.h): Likewise.
18717         * modules/sys_time (sys/time.h): Likewise.
18718         * modules/time (time.h): Likewise.
18719         * modules/wchar (wchar.h): Likewise.
18720         * modules/wctype (wtype.h): Likewise.
18721
18722 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18723
18724         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
18725
18726 2007-05-13  Bruno Haible  <bruno@clisp.org>
18727
18728         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
18729         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18730         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
18731         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18732         (gl_PREREQ_STRTOK_R): Don't require it here.
18733
18734 2007-05-13  Bruno Haible  <bruno@clisp.org>
18735
18736         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
18737         when used in C++ mode.
18738
18739 2007-05-12  Bruno Haible  <bruno@clisp.org>
18740
18741         * lib/linebuffer.h: Tweak doc.
18742         * lib/linebuffer.c: Likewise.
18743
18744 2007-05-12  James Youngman  <jay@gnu.org>
18745
18746         * lib/linebuffer.c (readlinebuffer_delim): New function,
18747         like readlinebuffer, but use a caller-specified delimiter.
18748         (readlinebuffer): Just call readlinebuffer_delim with '\n'
18749         as the delimiter.
18750         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
18751
18752 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18753
18754         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
18755         * modules/openat (Files): Remove openat-die.c.
18756         (Depends-on): Add openat-die.
18757         * modules/openat-die: New module.
18758
18759 2007-05-06  Bruno Haible  <bruno@clisp.org>
18760
18761         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
18762         Update with info about Cygwin.
18763         * doc/functions/fprintf.texi: Update.
18764         * doc/functions/printf.texi: Update.
18765         * doc/functions/snprintf.texi: Update.
18766         * doc/functions/sprintf.texi: Update.
18767         * doc/functions/vfprintf.texi: Update.
18768         * doc/functions/vprintf.texi: Update.
18769         * doc/functions/vsnprintf.texi: Update.
18770         * doc/functions/vsprintf.texi: Update.
18771         Reported by Eric Blake.
18772
18773 2007-05-06  Bruno Haible  <bruno@clisp.org>
18774
18775         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
18776         padding ourselves for the floating-point directives.
18777         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
18778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
18779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
18780         gl_PRINTF_FLAG_ZERO and test its result. Invoke
18781         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
18782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18783         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
18784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18789         * tests/test-snprintf-posix.h (test_function): Also check the width
18790         and some flags in the %f directive.
18791         * tests/test-sprintf-posix.h (test_function): Likewise.
18792         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18793         * tests/test-vasprintf-posix.c (test_function): Likewise.
18794         * doc/functions/fprintf.texi: Update.
18795         * doc/functions/printf.texi: Update.
18796         * doc/functions/snprintf.texi: Update.
18797         * doc/functions/sprintf.texi: Update.
18798         * doc/functions/vfprintf.texi: Update.
18799         * doc/functions/vprintf.texi: Update.
18800         * doc/functions/vsnprintf.texi: Update.
18801         * doc/functions/vsprintf.texi: Update.
18802
18803 2007-05-06  Bruno Haible  <bruno@clisp.org>
18804
18805         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
18806         pass the ' flag character to sprintf or snprintf.
18807         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
18808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
18809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
18810         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
18811         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
18812         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18813         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
18814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18819         * tests/test-snprintf-posix.h (test_function): Also check the grouping
18820         flag.
18821         * tests/test-sprintf-posix.h (test_function): Likewise.
18822         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18823         * tests/test-vasprintf-posix.c (test_function): Likewise.
18824         * doc/functions/fprintf.texi: Update.
18825         * doc/functions/printf.texi: Update.
18826         * doc/functions/snprintf.texi: Update.
18827         * doc/functions/sprintf.texi: Update.
18828         * doc/functions/vfprintf.texi: Update.
18829         * doc/functions/vprintf.texi: Update.
18830         * doc/functions/vsnprintf.texi: Update.
18831         * doc/functions/vsprintf.texi: Update.
18832
18833 2007-05-01  Bruno Haible  <bruno@clisp.org>
18834
18835         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
18836
18837 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18838
18839         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
18840         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
18841
18842 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18843
18844         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
18845         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
18846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
18847
18848 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
18849
18850         * lib/argp-help.c (struct hol_entry): New member `ord'.
18851         (HOL_ENTRY_PTRCMP): Use ord for comparison
18852         (hol_sort): Initialize ord.
18853
18854 2007-05-01  Bruno Haible  <bruno@clisp.org>
18855
18856         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
18857         Reported by Eric Blake.
18858         * doc/gnulib.texi (Function Substitutes): Update.
18859
18860 2007-05-01  Bruno Haible  <bruno@clisp.org>
18861
18862         * doc/functions.texi: Remove file, now redundant through
18863         doc/functions/*.texi.
18864
18865 2007-05-01  Bruno Haible  <bruno@clisp.org>
18866
18867         * modules/argp (Depends-on): Add sleep.
18868
18869 2007-05-01  Bruno Haible  <bruno@clisp.org>
18870
18871         * modules/sleep-tests: New file.
18872         * tests/test-sleep.c: New file.
18873
18874         * modules/sleep: New file.
18875         * lib/sleep.c: New file.
18876         * m4/sleep.m4: New file.
18877         * lib/unistd_.h (sleep): New declaration.
18878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
18879         HAVE_SLEEP.
18880         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
18881         * doc/functions/sleep.texi: Document the sleep module.
18882
18883 2007-05-01  Bruno Haible  <bruno@clisp.org>
18884
18885         * lib/sigprocmask.h: Remove file.
18886         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
18887         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
18888         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
18889         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
18890         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
18891         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
18892         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
18893         HAVE_SIGSET_T as a shell variable.
18894         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
18895         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
18896         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
18897         (Depends-on): Add signal. Remove verify.
18898         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
18899         (Include): Mention <signal.h> instead of sigprocmask.h.
18900         * NEWS: Mention the change.
18901         * lib/fatal-signal.c: Don't include sigprocmask.h.
18902
18903 2007-05-01  Bruno Haible  <bruno@clisp.org>
18904
18905         * modules/signal: New file.
18906         * lib/signal_.h: New file.
18907         * m4/signal_h.m4: New file.
18908
18909 2007-05-01  Bruno Haible  <bruno@clisp.org>
18910
18911         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
18912         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
18913         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
18914         HAVE_WCTYPE_CTMP_BUG into wctype.h.
18915
18916 2007-05-01  Bruno Haible  <bruno@clisp.org>
18917
18918         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
18919         configure time.
18920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
18921         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
18922         * modules/sys_stat (Makefile.am): Substitute their values into
18923         sys/stat.h.
18924
18925 2007-05-01  Bruno Haible  <bruno@clisp.org>
18926
18927         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
18928         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
18929         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
18930
18931 2007-05-01  Bruno Haible  <bruno@clisp.org>
18932
18933         * doc/header/assert.texi: Undo last change: don't mention the gnulib
18934         'assert' module here.
18935
18936 2007-05-01  Bruno Haible  <bruno@clisp.org>
18937
18938         * doc/functions/*.texi: New files.
18939         * doc/functions/google-ranking.txt: New file.
18940         * doc/gnulib.texi (Function Substitutes): New chapter.
18941         (ctime, inet_ntoa): Remove sections.
18942         * doc/ctime.texi: Remove file.
18943         * doc/inet_ntoa.texi: Remove file.
18944         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
18945         dependencies.
18946         (%.info): New rule, specifying a --reference-limit.
18947
18948 2007-05-01  Bruno Haible  <bruno@clisp.org>
18949
18950         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
18951
18952 2007-05-01  Bruno Haible  <bruno@clisp.org>
18953
18954         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
18955         the portability of 'mkdir' to mingw systems.
18956
18957 2007-05-01  Bruno Haible  <bruno@clisp.org>
18958
18959         * doc/headers/google-ranking.txt: New file.
18960
18961 2007-04-30  Eric Blake  <ebb9@byu.net>
18962
18963         Prefer fseeko to fseek.
18964         * modules/getpass (Depends-on): Add fseeko.
18965         * lib/getpass.c (getpass): Use fseeko, not fseek.
18966
18967 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
18968
18969         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
18970         assumes the sorting is stable, while most qsort implementations
18971         are not.  Use argument addresses to ensure they never compare as
18972         equal.
18973
18974         * tests/test-argp-2.sh (usage-indent test): Fix output
18975         (func_compare): Restore diff options
18976         * tests/test-argp.c: Restore #include "progname.h"
18977
18978 2007-04-29  Bruno Haible  <bruno@clisp.org>
18979
18980         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
18981         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
18982         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
18983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18984         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
18985         (configure.ac): Define CHECK_SNPRINTF_POSIX.
18986         (TESTS, check_PROGRAMS): Add test-snprintf.
18987         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
18988         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
18989         (TESTS, check_PROGRAMS): Add test-vsnprintf.
18990         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
18991         assertions that fail on HP-UX, OSF/1, or IRIX.
18992         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
18993
18994 2007-04-29  Bruno Haible  <bruno@clisp.org>
18995
18996         * MODULES.html.sh (posix_functions): Remove 'contents'.
18997
18998 2007-04-29  Karl Berry  <karl@gnu.org>
18999
19000         * config/srclist.txt (gendocs_template_min): new entry.
19001
19002 2007-04-29  Bruno Haible  <bruno@clisp.org>
19003
19004         Work around fpurge bug on BSD systems.
19005         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
19006         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
19007         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
19008         fpurge to rpl_fpurge if the system already has this function.
19009         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
19010         the case where the system already has this function. Correct invariants
19011         on BSD systems.
19012         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
19013         BSD systems.
19014
19015 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
19016
19017         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
19018         proposed by Sven Verdoolaege.
19019
19020         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
19021         options.
19022         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
19023         (usage and help tests): Update
19024
19025 2007-04-29  Bruno Haible  <bruno@clisp.org>
19026
19027         * tests/test-fflush.c (main): Use a file of size 17, not 10.
19028         Print more information in case of failure. Disable a test on BeOS.
19029
19030 2007-04-29  Bruno Haible  <bruno@clisp.org>
19031
19032         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
19033         This helps debugging on systems on which no gdb is available.
19034
19035 2007-04-29  Bruno Haible  <bruno@clisp.org>
19036
19037         * lib/freading.h: Improve comments.
19038         * lib/fwriting.h: Likewise.
19039         * tests/test-freading.c (main): Don't check freading immediately after
19040         repositioning. Needed for glibc.
19041
19042 2007-04-29  Bruno Haible  <bruno@clisp.org>
19043
19044         * lib/freading.c (freading): Trivial simplification.
19045
19046 2007-04-28  Bruno Haible  <bruno@clisp.org>
19047
19048         * tests/test-fwriting.c (main): Also test the interaction between
19049         fflush and fwriting.
19050         * modules/fwriting-tests (Depends-on): Add fflush.
19051
19052         * tests/test-freading.c (main): Also test the interaction between
19053         fflush and freading.
19054         * modules/freading-tests (Depends-on): Add fflush.
19055
19056 2007-04-28  Bruno Haible  <bruno@clisp.org>
19057
19058         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
19059         fseeko and ftello.
19060         Suggested by Eric Blake.
19061
19062 2007-04-28  Jim Meyering  <jim@meyering.net>
19063
19064         Avoid false-negative in gl_STDINT_H's C99 conformance test.
19065         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
19066         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
19067
19068 2007-04-27  Eric Blake  <ebb9@byu.net>
19069
19070         * doc/headers/assert.texi (assert.h): Document assert module use.
19071
19072 2007-04-27  Bruno Haible  <bruno@clisp.org>
19073
19074         * doc/headers/*.texi: New files.
19075         * doc/gnulib.texi (Header File Substitutes): New chapter.
19076         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
19077         dependencies.
19078         (standards.info ,standards.html, standards.dvi): Update dependencies.
19079         (mostlyclean, clean): New targets.
19080
19081 2007-04-27  Bruno Haible  <bruno@clisp.org>
19082
19083         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
19084         * modules/sysexits (Files, Makefile.am): Update.
19085
19086         * lib/sys_socket_.h: Renamed from lib/socket_.h.
19087         * modules/sys_socket (Files, Makefile.am): Update.
19088
19089         * lib/sys_stat_.h: Renamed from lib/stat_.h.
19090         * modules/sys_stat (Files, Makefile.am): Update.
19091
19092 2007-04-27  Eric Blake  <ebb9@byu.net>
19093
19094         * lib/freading.h: Improve comments.
19095         * lib/fwriting.h: Likewise.
19096         * lib/fflush.c: Likewise.
19097
19098         Fix closein for mingw.
19099         * modules/closein-tests: Add tests for closein.
19100         * tests/test-closein.c: New file.
19101         * tests/test-closein.sh: Likewise.
19102         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
19103         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
19104
19105 2007-04-27  Bruno Haible  <bruno@clisp.org>
19106
19107         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
19108         version is < 6.
19109         * lib/math_.h [__DECC]: Likewise.
19110         * lib/stdio_.h [__DECC]: Likewise.
19111         * lib/stdlib_.h [__DECC]: Likewise.
19112         * lib/string_.h [__DECC]: Likewise.
19113         * lib/time_.h [__DECC]: Likewise.
19114         * lib/wchar_.h [__DECC]: Likewise.
19115         * lib/wctype_.h [__DECC]: Likewise.
19116
19117 2007-04-27  Bruno Haible  <bruno@clisp.org>
19118
19119         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
19120
19121 2007-04-27  Bruno Haible  <bruno@clisp.org>
19122
19123         * lib/fflush.c: Add comments.
19124         * modules/fpurge-tests (Depends-on): Add fflush.
19125         * modules/freadable-tests (Depends-on): Likewise.
19126         * modules/fwritable-tests (Depends-on): Likewise.
19127
19128 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
19129
19130         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
19131         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
19132         Report by Bruno Haible <bruno@clisp.org>.
19133
19134 2007-04-26  Eric Blake  <ebb9@byu.net>
19135
19136         Fix fflush on mingw.
19137         * modules/fflush (Depends-on): Add freading.
19138         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
19139         but unread data.
19140
19141 2007-04-26  Eric Blake  <ebb9@byu.net>
19142         and Bruno Haible  <bruno@clisp.org>
19143
19144         Implement freading and fwriting.
19145         * lib/freading.c: New file.
19146         * lib/freading.h: Likewise.
19147         * m4/freading.m4: Likewise.
19148         * modules/freading: Likewise.
19149         * modules/freading-tests: Likewise.
19150         * tests/test-freading.c: Likewise.
19151         * lib/fwriting.c: New file.
19152         * lib/fwriting.h: Likewise.
19153         * m4/fwriting.m4: Likewise.
19154         * modules/fwriting: Likewise.
19155         * modules/fwriting-tests: Likewise.
19156         * tests/test-fwriting.c: Likewise.
19157         * MODULES.html.sh (File stream based Input/Output): Mention them.
19158
19159 2007-04-26  Bruno Haible  <bruno@clisp.org>
19160
19161         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
19162         'long' when we assume it.
19163         Suggested by Eric Blake.
19164
19165 2007-04-26  Bruno Haible  <bruno@clisp.org>
19166
19167         Ensure fseeko, ftello are declared on glibc systems.
19168         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
19169         * modules/fseeko (configure.ac-early): Likewise.
19170         * modules/ftello (configure.ac-early): Likewise.
19171         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
19172         AC_FUNC_FSEEKO for this.
19173         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
19174         (gl_CHECK_FSEEKO): Remove macro.
19175
19176 2007-04-26  Bruno Haible  <bruno@clisp.org>
19177
19178         * tests/test-fflush.c (main): Also check the ftell result after
19179         fflush and fseek/fseeko.
19180         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
19181         file descriptor position cache in the stream.
19182         * lib/fseeko.c (rpl_fseeko): Likewise.
19183
19184 2007-04-26  Bruno Haible  <bruno@clisp.org>
19185
19186         * modules/fflush-tests (Depends-on): Add fseeko.
19187
19188 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
19189             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19190
19191         * lib/argz_.h: ensure error_t definition is obtained in same
19192         mechanism system argz.h would have.
19193         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
19194         argz facilities are known bad.  Err on the side of caution if
19195         cross-compiling.
19196
19197 2007-04-25  Eric Blake  <ebb9@byu.net>
19198
19199         * lib/fpurge.c (includes): Use stdlib.h for free.
19200         * tests/test-fflush.c (main): Also test fflush-fseeko.
19201
19202 2007-04-25  Bruno Haible  <bruno@clisp.org>
19203
19204         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
19205         * lib/fseeko.c: New file.
19206         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
19207         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
19208         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
19209         gl_FUNC_FSEEKO.
19210         (gl_FUNC_FSEEKO): Invoke it.
19211         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
19212         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
19213         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
19214
19215 2007-04-25  Bruno Haible  <bruno@clisp.org>
19216
19217         * modules/fflush (Depends-on): Add ftello.
19218
19219 2007-04-25  Bruno Haible  <bruno@clisp.org>
19220
19221         * modules/ftello-tests: New file.
19222         * tests/test-ftello.c: New file.
19223
19224         * modules/ftello: New file.
19225         * m4/ftello.m4: New file.
19226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
19227         HAVE_FTELLO.
19228         * lib/stdio_.h (ftello): New declaration.
19229         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
19230         HAVE_FTELLO.
19231
19232 2007-04-25  Bruno Haible  <bruno@clisp.org>
19233
19234         * modules/fseeko-tests: New file.
19235         * tests/test-fseeko.c: New file.
19236
19237         * modules/fseeko: New file.
19238         * m4/fseeko.m4: New file.
19239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
19240         HAVE_FSEEKO.
19241         * lib/stdio_.h (fseeko): New declaration.
19242         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
19243         HAVE_FSEEKO.
19244
19245 2007-04-25  Bruno Haible  <bruno@clisp.org>
19246
19247         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
19248
19249 2007-04-25  Bruno Haible  <bruno@clisp.org>
19250
19251         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
19252         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
19253         * tests/test-unistd.c: Likewise.
19254         * tests/test-fcntl.c: Likewise.
19255
19256 2007-04-23  Eric Blake  <ebb9@byu.net>
19257
19258         * lib/fflush.c: Fix missing include.
19259         Reported by Bruno Haible.
19260
19261 2007-04-23  Bruno Haible  <bruno@clisp.org>
19262
19263         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
19264         Reported by Eric Blake.
19265
19266 2007-04-23  Bruno Haible  <bruno@clisp.org>
19267
19268         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
19269
19270 2007-04-23  Bruno Haible  <bruno@clisp.org>
19271
19272         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
19273
19274 2007-04-23  Bruno Haible  <bruno@clisp.org>
19275
19276         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
19277         Needed on HP-UX 11.
19278
19279 2007-04-16  Eric Blake  <ebb9@byu.net>
19280
19281         Make fflush rely on fpurge.
19282         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
19283         open coding all variants.
19284         * modules/fflush (Depends-on): Add fpurge and unistd.
19285         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
19286         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
19287
19288         Fix --with-tests compilation on cygwin.
19289         * modules/argmatch-tests (Makefile.am): List gnulib library first
19290         in LDADD.
19291         * modules/argp-tests (Makefile.am): Likewise.
19292         * modules/array-list-tests (Makefile.am): Likewise.
19293         * modules/array-oset-tests (Makefile.am): Likewise.
19294         * modules/avltree-list-tests (Makefile.am): Likewise.
19295         * modules/avltree-oset-tests (Makefile.am): Likewise.
19296         * modules/avltreehash-list-tests (Makefile.am): Likewise.
19297         * modules/carray-list-tests (Makefile.am): Likewise.
19298         * modules/dirname-tests (Makefile.am): Likewise.
19299         * modules/frexp-tests (Makefile.am): Likewise.
19300         * modules/isnanl-tests (Makefile.am): Likewise.
19301         * modules/linked-list-tests (Makefile.am): Likewise.
19302         * modules/linkedhash-list-tests (Makefile.am): Likewise.
19303         * modules/lock-tests (Makefile.am): Likewise.
19304         * modules/rbtree-list-tests (Makefile.am): Likewise.
19305         * modules/rbtree-oset-tests (Makefile.am): Likewise.
19306         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
19307         * modules/tls-tests (Makefile.am): Likewise.
19308         * modules/tsearch-tests (Makefile.am): Likewise.
19309         * modules/xvasprintf-tests (Makefile.am): Likewise.
19310
19311         Fix fpurge for cygwin.
19312         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
19313         value.
19314         * modules/fpurge-tests (Depends-on): Clean up trash.
19315
19316 2007-04-16  Simon Josefsson  <simon@josefsson.org>
19317
19318         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
19319
19320         * m4/autobuild.m4: Re-indent.
19321
19322 2007-04-13  Bruno Haible  <bruno@clisp.org>
19323
19324         * modules/fpurge-tests: New file.
19325         * tests/test-fpurge.c: New file.
19326
19327         * modules/fpurge: New file.
19328         * lib/fpurge.h: New file.
19329         * lib/fpurge.c: New file.
19330         * m4/fpurge.m4: New file.
19331
19332 2007-04-13  Bruno Haible  <bruno@clisp.org>
19333
19334         * modules/fbufmode-tests: New file.
19335         * tests/test-fbufmode.c: New file.
19336
19337         * modules/fbufmode: New file.
19338         * lib/fbufmode.h: New file.
19339         * lib/fbufmode.c: New file.
19340         * m4/fbufmode.m4: New file.
19341
19342 2007-04-13  Bruno Haible  <bruno@clisp.org>
19343
19344         * modules/fwritable-tests: New file.
19345         * tests/test-fwritable.c: New file.
19346
19347         * modules/fwritable: New file.
19348         * lib/fwritable.h: New file.
19349         * lib/fwritable.c: New file.
19350         * m4/fwritable.m4: New file.
19351
19352 2007-04-13  Bruno Haible  <bruno@clisp.org>
19353
19354         * modules/freadable-tests: New file.
19355         * tests/test-freadable.c: New file.
19356
19357         * modules/freadable: New file.
19358         * lib/freadable.h: New file.
19359         * lib/freadable.c: New file.
19360         * m4/freadable.m4: New file.
19361
19362 2007-04-13  Bruno Haible  <bruno@clisp.org>
19363
19364         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
19365         MOSTLYCLEANFILES.
19366
19367 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19368
19369         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
19370         gzip bootstrap.conf to avoid dragging in i18n machinery.
19371         (gnulib_tool_option): Use it.
19372
19373 2007-04-13  Bruno Haible  <bruno@clisp.org>
19374
19375         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
19376         %F directives.
19377         * tests/test-vasprintf-posix.c (test_function): Likewise.
19378         * tests/test-snprintf-posix.h (test_function): Likewise.
19379         * tests/test-sprintf-posix.h (test_function): Likewise.
19380         * tests/test-fprintf-posix.h (test_function): Likewise.
19381         * tests/test-printf-posix.h (test_function): Likewise.
19382         * tests/test-fprintf-posix.out: Likewise.
19383
19384 2007-04-13  Bruno Haible  <bruno@clisp.org>
19385
19386         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
19387         * modules/tls-tests (configure.ac): Likewise.
19388         Reported by Arto C. Nirkko <anirkko@insel.ch>.
19389
19390 2007-04-13  Bruno Haible  <bruno@clisp.org>
19391
19392         * lib/tls.c (glthread_tls_get): Fix return type.
19393         Patch by Arto C. Nirkko <anirkko@insel.ch>.
19394
19395 2007-04-12  Eric Blake  <ebb9@byu.net>
19396
19397         * modules/gettime (Depends-on): Remove gettime.
19398         Reported by Dmitry V. Levin.
19399
19400 2007-04-12  Bruno Haible  <bruno@clisp.org>
19401
19402         * modules/fflush (Include): Mention <stdio.h>.
19403         * modules/strtoimax (Include): Mention <inttypes.h>.
19404         * modules/strtoumax (Include): Likewise.
19405
19406 2007-04-12  Eric Blake  <ebb9@byu.net>
19407
19408         * .cvsignore: New file.
19409         * .gitignore: Likewise.
19410
19411 2007-04-12  Bruno Haible  <bruno@clisp.org>
19412
19413         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
19414         not before, since $(LDADD) often contains libgnu.a.
19415         * modules/striconv-tests (test_striconv_LDADD): Likewise.
19416         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
19417         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
19418         Needed on Cygwin.
19419
19420 2007-04-12  Eric Blake  <ebb9@byu.net>
19421
19422         Work around glibc's failure to flush stdin on fclose.
19423         * lib/closein.c (close_stdin): Flush stdin before closing.
19424
19425         Work around glibc's failure to reset seekable stdin on exit.
19426         * modules/closein: New module.
19427         * lib/closein.c: New file.
19428         * lib/closein.h: Likewise.
19429         * m4/closein.m4: Likewise.
19430         * MODULES.html.sh (File stream based Input/Output): Document it.
19431
19432 2007-04-12  Simon Josefsson  <simon@josefsson.org>
19433
19434         * gnulib-tool: Rename generated 'autobuild' script to
19435         'do-autobuild' in --create-megatestdir output.
19436
19437         * doc/gnulib.texi (Build robot for gnulib): Fix.
19438
19439 2007-04-12  Simon Josefsson  <simon@josefsson.org>
19440
19441         * modules/sysexits (Depends-on): Add absolute-header.
19442
19443 2007-04-12  Eric Blake  <ebb9@byu.net>
19444
19445         No need to preserve errno on success.
19446         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
19447         Reported by Bruno Haible.
19448
19449 2007-04-12  Simon Josefsson  <simon@josefsson.org>
19450
19451         * MODULES.html.sh (Support for maintaining and releasing
19452         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
19453
19454 2007-04-12  Simon Josefsson  <simon@josefsson.org>
19455
19456         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
19457
19458 2007-04-12  Simon Josefsson  <simon@josefsson.org>
19459
19460         * modules/autobuild: New module.
19461
19462         * m4/autobuild.m4: New file.
19463
19464 2007-04-11  Bruno Haible  <bruno@clisp.org>
19465
19466         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
19467         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
19468         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
19469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
19470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
19477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
19480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
19483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
19486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
19489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
19492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
19493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
19494         Reported by Eric Blake.
19495
19496 2007-04-11  Bruno Haible  <bruno@clisp.org>
19497
19498         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
19499
19500 2007-04-10  Bruno Haible  <bruno@clisp.org>
19501
19502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
19503         for NaN and Infinity. Needed on FreeBSD 6.1.
19504         * tests/test-vasnprintf-posix.c (test_function): Undo last change
19505         regarding results for "%010a" of Infinity and NaN.
19506         * tests/test-vasprintf-posix.c (test_function): Likewise.
19507         * tests/test-snprintf-posix.h (test_function): Likewise.
19508         * tests/test-sprintf-posix.h (test_function): Likewise.
19509         * tests/test-fprintf-posix.h (test_function): Likewise.
19510         * tests/test-printf-posix.h (test_function): Likewise.
19511         * tests/test-fprintf-posix.out: Likewise.
19512
19513 2007-04-10  Bruno Haible  <bruno@clisp.org>
19514
19515         * modules/locale-tests: New file.
19516         * tests/test-locale.c: New file.
19517
19518         * modules/locale: New file.
19519         * lib/locale_.h: New file.
19520         * m4/locale_h.m4: New file.
19521
19522 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
19523             Bruno Haible  <bruno@clisp.org>
19524
19525         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
19526         be determined, test for availability of the copysignf, copysign,
19527         copysignl functions.
19528         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
19529         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
19530         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
19531
19532 2007-04-09  Eric Blake  <ebb9@byu.net>
19533
19534         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
19535         * modules/stdio (Makefile.am): Support fflush.
19536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19537         * modules/fflush: New file.
19538         * lib/fflush.c: Likewise.
19539         * m4/fflush.m4: Likewise.
19540         * modules/fflush-tests: New test.
19541         * tests/test-fflush.c: Likewise.
19542         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
19543
19544 2007-04-06  Bruno Haible  <bruno@clisp.org>
19545
19546         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
19547         (VASNPRINTF): Use signbit for faster determination whether to print a
19548         minus sign.
19549         * modules/vasnprintf (Files): Remove lib/float+.h.
19550         * modules/fprintf-posix (Depends-on): Add signbit.
19551         * modules/snprintf-posix (Depends-on): Likewise.
19552         * modules/sprintf-posix (Depends-on): Likewise.
19553         * modules/vasnprintf-posix (Depends-on): Likewise.
19554         * modules/vasprintf-posix (Depends-on): Likewise.
19555         * modules/vfprintf-posix (Depends-on): Likewise.
19556         * modules/vsnprintf-posix (Depends-on): Likewise.
19557         * modules/vsprintf-posix (Depends-on): Likewise.
19558
19559 2007-04-06  Bruno Haible  <bruno@clisp.org>
19560
19561         * tests/test-frexp.c (main): Test also the sign bit of zero results.
19562         * tests/test-frexpl.c (main): Likewise.
19563         * tests/test-ldexpl.c (main): Likewise.
19564         * modules/frexp-tests (Depends-on): Add signbit.
19565         * modules/frexpl-tests (Depdends-on): Likewise.
19566         * modules/ldexpl-tests (Depdends-on): Likewise.
19567
19568 2007-04-06  Bruno Haible  <bruno@clisp.org>
19569
19570         * modules/signbit-tests: New file.
19571         * tests/test-signbit.c: New file.
19572
19573         * modules/signbit: New file.
19574         * lib/signbitf.c: New file.
19575         * lib/signbitd.c: New file.
19576         * lib/signbitl.c: New file.
19577         * m4/signbit.m4: New file.
19578         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
19579         (signbit): New macro.
19580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
19581         REPLACE_SIGNBIT.
19582         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
19583         REPLACE_FREXPL into math.h.
19584
19585 2007-04-06  Bruno Haible  <bruno@clisp.org>
19586
19587         * modules/isnanf-nolibm-tests: New file.
19588         * tests/test-isnanf.c: New file.
19589
19590         * modules/isnanf-nolibm: New file.
19591         * lib/isnanf.h: New file.
19592         * lib/isnanf.c: New file.
19593         * lib/isnan.c: Consider the USE_FLOAT macro.
19594         * m4/isnanf.m4: New file.
19595
19596 2007-04-06  Bruno Haible  <bruno@clisp.org>
19597
19598         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
19599         (Link): New section.
19600
19601         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
19602
19603 2007-04-06  Bruno Haible  <bruno@clisp.org>
19604
19605         Assume the 'long double' type.
19606         * m4/longdouble.m4: Remove file.
19607         * config/srclist.txt: Don't mention longdouble.m4.
19608         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
19609         * lib/float+.h: Likewise.
19610         * lib/frexp.c: Likewise.
19611         * lib/printf-args.h: Likewise.
19612         * lib/printf-args.c: Likewise.
19613         * lib/printf-frexp.c: Likewise.
19614         * lib/printf-parse.c: Likewise.
19615         * lib/vasnprintf.c: Likewise.
19616         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
19617         * m4/intl.m4: Likewise.
19618         * m4/isnanl.m4: Likewise.
19619         * m4/printf.m4: Likewise.
19620         * m4/printf-frexpl.m4: Likewise.
19621         * m4/vasnprintf.m4: Likewise.
19622         * modules/allocsa (Files): Remove m4/longdouble.m4.
19623         * modules/gettext (Files): Likewise.
19624         * modules/relocatable-prog-wrapper (Files): Likewise.
19625         * modules/vasnprintf (Files): Likewise.
19626         * modules/isnanl (Files): Likewise.
19627         (Include): Simplify.
19628         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
19629         (Include): Simplify.
19630         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
19631         (Include): Simplify.
19632         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
19633         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
19634         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
19635         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
19636         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
19637         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
19638         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
19639         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
19640         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
19641         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
19642         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
19643         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
19644         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
19645         * tests/test-isnanl.c: Likewise.
19646         * tests/test-snprintf-posix.h: Likewise.
19647         * tests/test-sprintf-posix.h: Likewise.
19648         * tests/test-vasnprintf-posix.c: Likewise.
19649         * tests/test-vasnprintf-posix2.c: Likewise.
19650         * tests/test-vasprintf-posix.c: Likewise.
19651
19652 2007-04-06  Bruno Haible  <bruno@clisp.org>
19653
19654         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
19655         * lib/math_.h [__DECC]: Include the overridden include file through
19656         #include_next, outside the double-inclusion guard.
19657         * lib/stdio_.h [__DECC]: Likewise.
19658         * lib/stdlib_.h [__DECC]: Likewise.
19659         * lib/string_.h [__DECC]: Likewise.
19660         * lib/time_.h [__DECC]: Likewise.
19661         * lib/wchar_.h [__DECC]: Likewise.
19662         * lib/wctype_.h [__DECC]: Likewise.
19663         * lib/inttypes_.h [__DECC]: Likewise.
19664         Reported by Albert Chin <china@thewrittenword.com> in
19665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
19666
19667 2007-04-04  Eric Blake  <ebb9@byu.net>
19668
19669         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
19670         1.5.x.
19671
19672 2007-04-04  Bruno Haible  <bruno@clisp.org>
19673
19674         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
19675         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
19676
19677 2007-04-04  Bruno Haible  <bruno@clisp.org>
19678
19679         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
19680         results for "%010a" of Infinity and NaN.
19681         * tests/test-vasprintf-posix.c (test_function): Likewise.
19682         * tests/test-snprintf-posix.h (test_function): Likewise.
19683         * tests/test-sprintf-posix.h (test_function): Likewise.
19684         * tests/test-fprintf-posix.h (test_function): Remove these tests.
19685         * tests/test-printf-posix.h (test_function): Likewise.
19686         * tests/test-fprintf-posix.out: Update.
19687         Needed for FreeBSD 6.1.
19688
19689 2007-04-04  Bruno Haible  <bruno@clisp.org>
19690
19691         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
19692         directly used by the gnulib modules nor by gnulib-tool.
19693
19694 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         * DEPENDENCIES: Give overall description of version dependency
19697         desirability.  Use more-typical names for apps.
19698         Add shell, coreutils, diffutils, grep, tar, gzip.
19699
19700 2007-04-04  Simon Josefsson  <simon@josefsson.org>
19701
19702         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
19703
19704 2007-04-04  Karl Berry  <karl@gnu.org>
19705
19706         * MODULES.html.sh (func_module): missing '.
19707
19708 2007-04-03  Bruno Haible  <bruno@clisp.org>
19709
19710         * modules/argmatch-tests (Makefile.am): New variable
19711         test_argmatch_LDADD.
19712         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
19713         * modules/array-list-tests (Makefile.am): New variable
19714         test_array_list_LDADD.
19715         * modules/array-oset-tests (Makefile.am): New variable
19716         test_array_oset_LDADD.
19717         * modules/avltree-list-tests (Makefile.am): New variable
19718         test_avltree_list_LDADD.
19719         * modules/avltree-oset-tests (Makefile.am): New variable
19720         test_avltree_oset_LDADD.
19721         * modules/avltreehash-list-tests (Makefile.am): New variable
19722         test_avltreehash_list_LDADD.
19723         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
19724         test_canonicalize_lgpl_LDADD.
19725         * modules/carray-list-tests (Makefile.am): New variable
19726         test_carray_list_LDADD.
19727         * modules/dirname-tests (Makefile.am): New variable
19728         test_dirname_LDADD.
19729         * modules/linked-list-tests (Makefile.am): New variable
19730         test_linked_list_LDADD.
19731         * modules/linkedhash-list-tests (Makefile.am): New variable
19732         test_linkedhash_list_LDADD.
19733         * modules/rbtree-list-tests (Makefile.am): New variable
19734         test_rbtree_list_LDADD.
19735         * modules/rbtree-oset-tests (Makefile.am): New variable
19736         test_rbtree_oset_LDADD.
19737         * modules/rbtreehash-list-tests (Makefile.am): New variable
19738         test_rbtreehash_list_LDADD.
19739         * modules/xvasprintf-tests (Makefile.am): New variable
19740         test_xvasprintf_LDADD.
19741         Reported by Eric Blake.
19742
19743 2007-04-03  Eric Blake  <ebb9@byu.net>
19744
19745         * DEPENDENCIES: Weaken m4 requirements.
19746
19747 2007-04-03  Bruno Haible  <bruno@clisp.org>
19748
19749         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
19750         * modules/isnanl-tests (configure.ac): Likewise.
19751
19752 2007-04-03  Ben Pfaff  <blp@gnu.org>
19753
19754         * modules/iconv_open: Add $(srcdir)/ to source directory
19755         references in Makefile fragments that call gperf, to fix VPATH
19756         builds.
19757
19758 2007-04-03  Bruno Haible  <bruno@clisp.org>
19759
19760         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
19761         * lib/ldexpl.c: Undo last change.
19762
19763 2007-04-03  Bruno Haible  <bruno@clisp.org>
19764
19765         * modules/printf-frexpl (Depends-on): Undo last change.
19766         (Files): Add m4/ldexpl.m4.
19767
19768 2007-04-03  Bruno Haible  <bruno@clisp.org>
19769
19770         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
19771         * modules/isnanl (Link): New section.
19772
19773         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
19774         * modules/frexp (Link): New section.
19775
19776         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
19777         * modules/frexpl (Link): New section.
19778
19779         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
19780         * modules/ldexpl (Link): New section.
19781
19782 2007-04-03  Bruno Haible  <bruno@clisp.org>
19783
19784         * modules/TEMPLATE-EXTENDED: New file.
19785         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
19786
19787 2007-04-03  Bruno Haible  <bruno@clisp.org>
19788
19789         * DEPENDENCIES: New file.
19790         Suggested by Simon Josefsson.
19791
19792 2007-04-03  Bruno Haible  <bruno@clisp.org>
19793
19794         * doc/gnulib.texi: Escape @.
19795
19796 2007-04-03  James Youngman  <jay@gnu.org>
19797         and Paul Eggert  <eggert@cs.ucla.edu>
19798
19799         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
19800         birthtime on all systems that have birthtime, not just those which
19801         use st_birthtimensec rather than st_birthtim.  Putting zero in
19802         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
19803         that the birth time is not available for files on an NFS mount.
19804
19805 2007-04-03  Simon Josefsson  <simon@josefsson.org>
19806
19807         * modules/memxor: Move back from crypto/, suggested by Bruno.
19808         * modules/crypto/hmac-sha1: Fix memxor dependency.
19809
19810         * modules/crypto/gc: Moved from ../.
19811
19812 2007-04-02  Eric Blake  <ebb9@byu.net>
19813
19814         * lib/ldexpl.c (includes): Avoid libm.
19815
19816         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
19817
19818 2007-04-02  Bruno Haible  <bruno@clisp.org>
19819
19820         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
19821         on IRIX.
19822
19823 2007-04-02  Bruno Haible  <bruno@clisp.org>
19824
19825         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
19826         x86 or x86_64 platforms running MacOS X.
19827         Reported by Ryan Schmidt <@ryandesign.com>.
19828
19829 2007-04-02  Bruno Haible  <bruno@clisp.org>
19830
19831         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
19832         i386.
19833
19834 2007-04-01  Simon Josefsson  <simon@josefsson.org>
19835
19836         * modules/crypto/arcfour: Moved from ../.
19837         * modules/crypto/arcfour-tests: Moved from ../.
19838         * modules/crypto/arctwo: Moved from ../.
19839         * modules/crypto/arctwo-tests: Moved from ../.
19840         * modules/crypto/des: Moved from ../.
19841         * modules/crypto/des-tests: Moved from ../.
19842         * modules/crypto/gc-arcfour: Moved from ../.
19843         * modules/crypto/gc-arcfour-tests: Moved from ../.
19844         * modules/crypto/gc-arctwo: Moved from ../.
19845         * modules/crypto/gc-arctwo-tests: Moved from ../.
19846         * modules/crypto/gc-des: Moved from ../.
19847         * modules/crypto/gc-des-tests: Moved from ../.
19848         * modules/crypto/gc-hmac-md5: Moved from ../.
19849         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
19850         * modules/crypto/gc-hmac-sha1: Moved from ../.
19851         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
19852         * modules/crypto/gc-md2: Moved from ../.
19853         * modules/crypto/gc-md2-tests: Moved from ../.
19854         * modules/crypto/gc-md4: Moved from ../.
19855         * modules/crypto/gc-md4-tests: Moved from ../.
19856         * modules/crypto/gc-md5: Moved from ../.
19857         * modules/crypto/gc-md5-tests: Moved from ../.
19858         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
19859         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
19860         * modules/crypto/gc-random: Moved from ../.
19861         * modules/crypto/gc-rijndael: Moved from ../.
19862         * modules/crypto/gc-rijndael-tests: Moved from ../.
19863         * modules/crypto/gc-sha1: Moved from ../.
19864         * modules/crypto/gc-sha1-tests: Moved from ../.
19865         * modules/crypto/gc-tests: Moved from ../.
19866         * modules/crypto/hmac-md5: Moved from ../.
19867         * modules/crypto/hmac-md5-tests: Moved from ../.
19868         * modules/crypto/hmac-sha1: Moved from ../.
19869         * modules/crypto/hmac-sha1-tests: Moved from ../.
19870         * modules/crypto/md2: Moved from ../.
19871         * modules/crypto/md2-tests: Moved from ../.
19872         * modules/crypto/md4: Moved from ../.
19873         * modules/crypto/md4-tests: Moved from ../.
19874         * modules/crypto/md5: Moved from ../.
19875         * modules/crypto/md5-tests: Moved from ../.
19876         * modules/crypto/memxor: Moved from ../.
19877         * modules/crypto/rijndael: Moved from ../.
19878         * modules/crypto/rijndael-tests: Moved from ../.
19879         * modules/crypto/sha1: Moved from ../.
19880
19881 2007-03-30  James Youngman  <jay@gnu.org>
19882
19883         * tests/test-stat-time.c (prepare_test): use chmod() rather than
19884         rename() to change the ctime of a file (because ctime is unaffected
19885         by rename on jfs2 on AIX 5.1).
19886         (main): Start by doing cleanup, in case a previous run failed leaving
19887         test files behind.
19888
19889 2007-03-31  Bruno Haible  <bruno@clisp.org>
19890
19891         Support old proprietary implementations of iconv.
19892         * modules/iconv_open: New file.
19893         * lib/iconv_.h: New file.
19894         * m4/iconv_h.m4: New file.
19895         * lib/iconv_open.c: New file.
19896         * lib/iconv_open-aix.gperf: New file.
19897         * lib/iconv_open-hpux.gperf: New file.
19898         * lib/iconv_open-irix.gperf: New file.
19899         * lib/iconv_open-osf.gperf: New file.
19900         * m4/iconv_open.m4: New file.
19901         * modules/linebreak (Depends-on): Add iconv_open.
19902         * modules/striconv (Depends-on): Likewise.
19903         * modules/striconveh (Depends-on): Likewise.
19904         * modules/unicodeio (Depends-on): Likewise.
19905         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
19906         (iconv_t)(-1).
19907         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
19908         conversion if cd is (iconv_t)(-1).
19909         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
19910         is not possible.
19911
19912 2007-03-31  Bruno Haible  <bruno@clisp.org>
19913
19914         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
19915         work on Solaris either. Protect also second use of "autodetect_jp".
19916
19917 2007-03-31  Bruno Haible  <bruno@clisp.org>
19918
19919         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
19920         the function is not present.
19921
19922 2007-03-31  Bruno Haible  <bruno@clisp.org>
19923
19924         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
19925         the function is not present.
19926
19927 2007-03-31  Bruno Haible  <bruno@clisp.org>
19928
19929         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
19930         a bug in HP-UX iconv_open().
19931
19932 2007-03-31  Bruno Haible  <bruno@clisp.org>
19933
19934         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
19935         (Mathematics <math.h>): New section, add fpieee.
19936         (Input/output <stdio.h>): Add fseterr.
19937         (Mathematics <math.h>): New section, add printf-frexp.
19938         (Container data structures): Add sublist.
19939         (Core language properties): Add fpucw, inline.
19940         (Functions for greatest-width integer types <inttypes.h>): Add
19941         imaxabs, imaxdiv, inttypes.
19942         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
19943         isnanl-nolibm, ldexp.
19944         (Mathematics <math.h>): New section, add printf-frexpl.
19945         (Support for systems lacking POSIX:2001): Add fprintf-posix,
19946         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
19947         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
19948         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
19949         (Unicode string functions): Add unistr/u*-mbtoucr.
19950         (Java): Add javacomp-script, javaexec-script.
19951         (C#): Add csharpcomp-script, csharpexec-script.
19952         (Support for building libraries and executables): Add havelib,
19953         relocatable-*.
19954         (Support for maintaining and releasing projects): Renamed from
19955         'Support for maintaining and release projects'. Add announce-gen.
19956
19957 2007-03-31  Bruno Haible  <bruno@clisp.org>
19958
19959         * README: Talk primarily about git.
19960         (git and CVS): Renamed from CVS.
19961         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
19962         gnulib is available through git.
19963         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
19964
19965 2007-03-30  Bruno Haible  <bruno@clisp.org>
19966
19967         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
19968         * lib/poll_.h: Likewise.
19969         * lib/stat_.h: Likewise.
19970         * lib/sys_time_.h: Likewise.
19971         * lib/sysexit_.h: Likewise.
19972         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
19973         * lib/stdbool_.h: Likewise.
19974         * lib/byteswap_.h: Add double-inclusion guard.
19975
19976 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
19977
19978         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
19979
19980 2007-03-30  Karl Berry  <karl@gnu.org>
19981
19982         * config/srclist-update: double space after USA in the license
19983         substitution, since that's how it's usually (?) written.
19984
19985 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19986
19987         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
19988         reported by Bruno Haible.
19989
19990 2007-03-29  Bruno Haible  <bruno@clisp.org>
19991
19992         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
19993         a bug in AIX iconv().
19994
19995 2007-03-29  Bruno Haible  <bruno@clisp.org>
19996
19997         * modules/ldexpl-tests: New file.
19998         * tests/test-ldexpl.c: New file.
19999
20000 2007-03-29  Bruno Haible  <bruno@clisp.org>
20001
20002         * lib/ldexpl.c: Include fpucw.h.
20003         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
20004         multiplication.
20005         * modules/ldexpl (Depends-on): Add fpucw.
20006
20007 2007-03-29  Bruno Haible  <bruno@clisp.org>
20008
20009         * modules/ldexpl: New file.
20010         * m4/ldexpl.m4: New file.
20011         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
20012         set.
20013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
20014         REPLACE_LDEXPL.
20015         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
20016         REPLACE_LDEXPL.
20017         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20018         gl_FUNC_LDEXPL_WORKS.
20019         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
20020         * modules/mathl (Files): Remove lib/ldexpl.c.
20021         (Depends-on): Add ldexpl.
20022
20023 2007-03-29  Bruno Haible  <bruno@clisp.org>
20024
20025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
20026
20027 2007-03-29  Bruno Haible  <bruno@clisp.org>
20028
20029         * tests/test-striconveh.c (main): Don't assume that a direct conversion
20030         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
20031         and possibly also HP-UX.
20032         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
20033         work on AIX, IRIX, HP-UX, OSF/1.
20034         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20035         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20036         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20037         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20038         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20039         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20040
20041 2007-03-29  Bruno Haible  <bruno@clisp.org>
20042
20043         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
20044
20045 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
20046
20047         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
20048         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
20049
20050 2007-03-29  Eric Blake  <ebb9@byu.net>
20051
20052         * lib/acl-internal.h: Remove redundant include.
20053         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
20054         Cygwin when a file is locked.
20055
20056 2007-03-29  Bruno Haible  <bruno@clisp.org>
20057
20058         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
20059         file.
20060         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
20061
20062 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
20063
20064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
20065         try to remove a parent directory if the child couldn't be removed
20066         (except for the first rmdir, which could fail because the child
20067         doesn't exist).  Problem reported by Jeff Blaine in
20068         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
20069
20070 2007-03-28  Bruno Haible  <bruno@clisp.org>
20071
20072         * lib/striconveh.c (utf8conv_carefully): New function.
20073         (mem_cd_iconveh_internal): Invoke it.
20074
20075 2007-03-28  Bruno Haible  <bruno@clisp.org>
20076
20077         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
20078         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
20079         input.
20080         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
20081         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
20082         unistr/u8-uctomb.
20083
20084 2007-03-28  Bruno Haible  <bruno@clisp.org>
20085
20086         * modules/unistr/u8-mbtoucr: New file.
20087         * lib/unistr/u8-mbtoucr.c: New file.
20088         * modules/unistr/u16-mbtoucr: New file.
20089         * lib/unistr/u16-mbtoucr.c: New file.
20090         * modules/unistr/u16-mbtoucr: New file.
20091         * lib/unistr/u16-mbtoucr.c: New file.
20092         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
20093
20094 2007-03-27  Simon Josefsson  <simon@josefsson.org>
20095             Bruno Haible  <bruno@clisp.org>
20096
20097         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
20098         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
20099         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
20100
20101         * m4/stdio_h.m4: Add stubs for vasprintf too.
20102
20103         * modules/stdio: Support vasprintf in sed command.
20104
20105         * modules/vasprintf: Depend on stdio for prototypes.  Remove
20106         vasprintf.h.  Add stdio module indicator.
20107
20108         * lib/stdio_.h: Declare asprintf and vasprintf, based on
20109         vasprintf.h.
20110
20111         * lib/vasprintf.h: File removed.
20112
20113         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
20114         * lib/vasprintf.c: Ditto.
20115         * lib/xvasprintf.c: Ditto.
20116         * tests/test-vasprintf-posix.c: Ditto.
20117         * tests/test-vasprintf.c: Ditto.
20118
20119 2007-03-27  Bruno Haible  <bruno@clisp.org>
20120
20121         Make vasnprintf multithread-safe.
20122         * lib/vasnprintf.c (decimal_point_char): New function.
20123         (VASNPRINTF): Use it.
20124         Suggested by Simon Josefsson.
20125
20126 2007-03-27  Eric Blake  <ebb9@byu.net>
20127
20128         Support sub-second birthtime on cygwin.
20129         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
20130         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
20131         (get_stat_birthtime): Also work with st_birthtim.
20132
20133 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         * lib/stat-time.h (USE_BIRTHTIME): Remove.
20136         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
20137         (get_stat_birthtime_ns): Do not try to use "spare" fields.
20138         (get_stat_birthtime_ns): Simplify compile-time tests.
20139         (get_stat_birthtime): Change the API to look like
20140         get_stat_mtime etc., except return a negative tv_nsec on error.
20141         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
20142         Don't check for "spare" fields.
20143         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
20144         or for struct stat.st_birthtime, as these tests aren't used.
20145         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
20146
20147 2007-03-27  Bruno Haible  <bruno@clisp.org>
20148
20149         * lib/stat-time.h: Include <sys/stat.h>.
20150
20151 2007-03-27  James Youngman  <jay@gnu.org>
20152
20153         * lib/stat-time.h (get_stat_birthtime): New function for
20154           retrieving st_birthtime as provided by UFS2 (hence *BSD).
20155         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
20156           and its variants.
20157         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
20158         * modules/stat-time-test: New file.
20159         * tests/test-stat-time.c: New test, devised by Bruno Haible.
20160
20161 2007-03-26  Bruno Haible  <bruno@clisp.org>
20162
20163         Better support of signalling NaNs.
20164         * lib/atanl.c: Include isnanl.h.
20165         (atanl): Perform test for NaN at the beginning of the function and
20166         through a call to isnanl.
20167         * lib/cosl.c: Include isnanl.h.
20168         (cosl): Perform test for NaN at the beginning of the function and
20169         through a call to isnanl.
20170         * lib/ldexpl.c: Include isnanl.h.
20171         (ldexpl): Perform test for NaN through a call to isnanl.
20172         * lib/logl.c: Include isnanl.h.
20173         (logl): Perform test for NaN at the beginning of the function and
20174         through a call to isnanl.
20175         * lib/sinl.c: Include isnanl.h.
20176         (sinl): Perform test for NaN at the beginning of the function and
20177         through a call to isnanl.
20178         * lib/sqrtl.c: Include isnanl.h.
20179         (sqrtl): Perform test for NaN at the beginning of the function and
20180         through a call to isnanl.
20181         * lib/tanl.c: Include isnanl.h.
20182         (tanl): Perform test for NaN at the beginning of the function and
20183         through a call to isnanl.
20184         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
20185         * modules/mathl (Depends-on): Add isnanl.
20186
20187 2007-03-26  Eric Blake  <ebb9@byu.net>
20188
20189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
20190         regression in logic sense of previous patch.
20191
20192 2007-03-26  Bruno Haible  <bruno@clisp.org>
20193
20194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
20195         unportable shell command "if ! ...".
20196         Reported by Ralf Wildenhues.
20197
20198 2007-03-25  Bruno Haible  <bruno@clisp.org>
20199
20200         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
20201         <sysexits.h> file, and only add EX_CONFIG.
20202         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
20203         absolute file name and whether it is sufficient. Substitute also
20204         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
20205         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
20206         ABSOLUTE_SYSEXITS_H into sysexits.h.
20207
20208 2007-03-25  Bruno Haible  <bruno@clisp.org>
20209
20210         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
20211         hints is NULL.
20212
20213 2007-03-25  Bruno Haible  <bruno@clisp.org>
20214
20215         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
20216         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
20217
20218 2007-03-25  Bruno Haible  <bruno@clisp.org>
20219
20220         * lib/vasnprintf.c: Include langinfo.h.
20221         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
20222         multithread-safe.
20223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
20224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
20225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20226         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20227         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20228         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20229         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20230         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
20231         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20232         Reported by Simon Josefsson.
20233
20234 2007-03-25  Bruno Haible  <bruno@clisp.org>
20235
20236         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
20237         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
20238         * modules/vasnprintf (Depends-on): Add stdint.
20239
20240 2007-03-25  Bruno Haible  <bruno@clisp.org>
20241
20242         * modules/fpieee: New file.
20243         * m4/fpieee.m4: New file.
20244         * modules/isnan-nolibm (Depends-on): Add fpieee.
20245         * modules/isnanl-nolibm (Depends-on): Add fpieee.
20246         * modules/isnanl (Depends-on): Add fpieee.
20247
20248 2007-03-25  Bruno Haible  <bruno@clisp.org>
20249
20250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
20251
20252 2007-03-25  Bruno Haible  <bruno@clisp.org>
20253
20254         Avoid test failures on IRIX 6.5.
20255         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
20256         (main): Use it.
20257         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
20258         macros.
20259         (main): Use them.
20260
20261 2007-03-25  Bruno Haible  <bruno@clisp.org>
20262
20263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
20264         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
20265         exists but doesn't work.
20266         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
20267         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
20268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
20269         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
20270
20271 2007-03-25  Bruno Haible  <bruno@clisp.org>
20272
20273         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
20274         returns inf. Needed on IRIX 6.5.
20275
20276 2007-03-25  Bruno Haible  <bruno@clisp.org>
20277
20278         * tests/test-frexpl.c: Include isnanl-nolibm.h.
20279         (main): Use isnanl instead of x != x idiom.
20280         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
20281
20282         * tests/test-frexp.c: Include isnan.h.
20283         (main): Use isnan instead of x != x idiom.
20284         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
20285
20286 2007-03-25  Bruno Haible  <bruno@clisp.org>
20287
20288         * tests/test-frexp.c (NaN): New function/macro.
20289         (main): Use it instead of 0.0 / 0.0.
20290         * tests/test-isnan.c (NaN): New function/macro.
20291         (main): Use it instead of 0.0 / 0.0.
20292         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
20293         (test_function): Use it instead of 0.0 / 0.0.
20294         * tests/test-vasprintf-posix.c (NaN): New function/macro.
20295         (test_function): Use it instead of 0.0 / 0.0.
20296         * tests/test-snprintf-posix.h (NaN): New function/macro.
20297         (test_function): Use it instead of 0.0 / 0.0.
20298         * tests/test-sprintf-posix.h (NaN): New function/macro.
20299         (test_function): Use it instead of 0.0 / 0.0.
20300         * tests/test-fprintf-posix.h (NaN): New function/macro.
20301         (test_function): Use it instead of 0.0 / 0.0.
20302         * tests/test-printf-posix.h (NaN): New function/macro.
20303         (test_function): Use it instead of 0.0 / 0.0.
20304
20305         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
20306
20307 2007-03-25  Bruno Haible  <bruno@clisp.org>
20308
20309         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
20310
20311 2007-03-25  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/regexec.c (merge_state_with_log): Make static.
20314
20315 2007-03-25  Bruno Haible  <bruno@clisp.org>
20316
20317         * lib/trigl.c (kernel_rem_pio2): Make static.
20318
20319 2007-03-25  Bruno Haible  <bruno@clisp.org>
20320
20321         * lib/sincosl.c (sincosl_table): Make static.
20322
20323 2007-03-25  Bruno Haible  <bruno@clisp.org>
20324
20325         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
20326         if the compiler does not support C99.
20327
20328 2007-03-25  Bruno Haible  <bruno@clisp.org>
20329
20330         * modules/time (Makefile.am): Ensure all rule action lines start with a
20331         tab.
20332
20333 2007-03-24  Bruno Haible  <bruno@clisp.org>
20334
20335         * modules/tsearch-tests: New file.
20336         * tests/test-tsearch.sh: New file.
20337         * tests/test-tsearch.c: New file, mostly copied from glibc.
20338
20339         * modules/search-tests: New file.
20340         * tests/test-search.c: New file.
20341
20342         * modules/search: New file.
20343         * lib/search_.h: New file, incorporating lib/tsearch.h.
20344         * m4/search_h.m4: New file.
20345         * lib/tsearch.h: Remove file.
20346         * lib/tsearch.c: Include search.h instead of tsearch.h.
20347         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
20348         HAVE_TSEARCH.
20349         * modules/tsearch (Files): Remove lib/tsearch.h.
20350         (Depends-on): Add search.
20351         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
20352         (Include): Change tsearch.h into search.h.
20353
20354 2007-03-24  Bruno Haible  <bruno@clisp.org>
20355
20356         * modules/fpucw: New file.
20357         * lib/fpucw.h: New file.
20358         * lib/frexp.c: Include fpucw.h.
20359         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
20360         (FUNC): Use them.
20361         * lib/printf-frexp.c: Include fpucw.h.
20362         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
20363         (FUNC): Use them.
20364         * lib/vasnprintf.c: Include fpucw.h.
20365         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
20366         'long double' calculations.
20367         * tests/test-frexpl.c: Include fpucw.h.
20368         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
20369         * tests/test-printf-frexpl.c: Include fpucw.h.
20370         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
20371         * modules/frexpl (Depends-on): Add fpucw.
20372         * modules/printf-frexpl (Depends-on): Likewise.
20373         * modules/fprintf-posix (Depends-on): Likewise.
20374         * modules/snprintf-posix (Depends-on): Likewise.
20375         * modules/sprintf-posix (Depends-on): Likewise.
20376         * modules/vasnprintf-posix (Depends-on): Likewise.
20377         * modules/vasprintf-posix (Depends-on): Likewise.
20378         * modules/vfprintf-posix (Depends-on): Likewise.
20379         * modules/vsnprintf-posix (Depends-on): Likewise.
20380         * modules/vsprintf-posix (Depends-on): Likewise.
20381         * modules/frexpl-tests (Depends-on): Likewise.
20382         * modules/printf-frexpl-tests (Depends-on): Likewise.
20383
20384 2007-03-24  Bruno Haible  <bruno@clisp.org>
20385
20386         * lib/float+.h: New file.
20387         * lib/isnan.c: Include float+.h.
20388         (SIZE): New macro.
20389         (FUNC): Compare only SIZE bytes of the value.
20390         * lib/vasnprintf.c: Include float+.h.
20391         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
20392         SIZEOF_LDBL or SIZEOF_DBL bytes.
20393         * modules/isnan-nolibm (Files): Add lib/float+.h.
20394         * modules/isnanl-nolibm (Files): Add lib/float+.h.
20395         * modules/isnanl (Files): Add lib/float+.h.
20396         * modules/vasnprintf (Files): Add lib/float+.h.
20397
20398 2007-03-24  Bruno Haible  <bruno@clisp.org>
20399
20400         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
20401         include isnanl-nolibm.h.
20402
20403 2007-03-24  Bruno Haible  <bruno@clisp.org>
20404
20405         * tests/test-read-file.c (main): Don't produce spurious output for
20406         expected situations. Make the test fail if it encountered unexpected
20407         results.
20408
20409 2007-03-24  Bruno Haible  <bruno@clisp.org>
20410
20411         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
20412         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
20413
20414 2007-03-24  Bruno Haible  <bruno@clisp.org>
20415
20416         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
20417
20418 2007-03-24  Bruno Haible  <bruno@clisp.org>
20419
20420         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
20421         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
20422
20423         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
20424         * modules/utf8-ucs4: Turn into a symbolic link to module
20425         unistr/u8-mbtouc.
20426
20427         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
20428         utf8-ucs4-unsafe.
20429         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
20430         unistr/u8-mbtouc-unsafe.
20431
20432         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
20433         * modules/utf16-ucs4: Turn into a symbolic link to module
20434         unistr/u16-mbtouc.
20435
20436         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
20437         utf16-ucs4-unsafe.
20438         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
20439         unistr/u16-mbtouc-unsafe.
20440
20441         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
20442         * modules/ucs4-utf8: Turn into a symbolic link to module
20443         unistr/u8-ubtomb.
20444
20445         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
20446         * modules/ucs4-utf16: Turn into a symbolic link to module
20447         unistr/u16-ubtomb.
20448
20449 2007-03-24  Bruno Haible  <bruno@clisp.org>
20450
20451         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
20452         Enable the function only if HAVE_INLINE.
20453         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
20454         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
20455         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
20456         Enable the function only if HAVE_INLINE.
20457         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
20458         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
20459         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
20460         Enable the function only if HAVE_INLINE.
20461         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
20462         Enable the function only if HAVE_INLINE.
20463         * modules/utf8-ucs4: Update.
20464         * modules/utf8-ucs4-unsafe: Update.
20465         * modules/utf16-ucs4: Update.
20466         * modules/utf16-ucs4-unsafe: Update.
20467         * modules/ucs4-utf8: Update.
20468         * modules/ucs4-utf16: Update.
20469
20470 2007-03-24  Bruno Haible  <bruno@clisp.org>
20471
20472         * lib/utf8-ucs4.h: Remove file.
20473         * lib/utf8-ucs4-unsafe.h: Remove file.
20474         * lib/utf16-ucs4.h: Remove file.
20475         * lib/utf16-ucs4-unsafe.h: Remove file.
20476         * lib/ucs4-utf8.h: Remove file.
20477         * lib/ucs4-utf16.h: Remove file.
20478         * lib/unistr.h: Include their previous contents.
20479         * m4/utf-ucs4.m4: Remove file.
20480         * m4/ucs4-utf.m4: Remove file.
20481         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
20482         (Depends-on): Add unistr/base.
20483         (configure.ac): Remove gl_UTF_UCS4.
20484         (Makefile.am): Update.
20485         (Include): Change to unistr.h.
20486         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
20487         (Depends-on): Add unistr/base.
20488         (configure.ac): Remove gl_UTF_UCS4.
20489         (Makefile.am): Update.
20490         (Include): Change to unistr.h.
20491         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
20492         (Depends-on): Add unistr/base.
20493         (configure.ac): Remove gl_UTF_UCS4.
20494         (Makefile.am): Update.
20495         (Include): Change to unistr.h.
20496         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
20497         (Depends-on): Add unistr/base.
20498         (configure.ac): Remove gl_UTF_UCS4.
20499         (Makefile.am): Update.
20500         (Include): Change to unistr.h.
20501         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
20502         (Depends-on): Add unistr/base.
20503         (configure.ac): Remove gl_UCS4_UTF.
20504         (Makefile.am): Update.
20505         (Include): Change to unistr.h.
20506         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
20507         (Depends-on): Add unistr/base.
20508         (configure.ac): Remove gl_UCS4_UTF.
20509         (Makefile.am): Update.
20510         (Include): Change to unistr.h.
20511         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
20512         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
20513         utf8-ucs4-unsafe.h.
20514         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
20515         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
20516         utf16-ucs4-unsafe.h.
20517         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
20518         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
20519         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
20520         * lib/unistr/u8-strchr.c: Likewise.
20521         * lib/unistr/u8-strrchr.c: Likewise.
20522         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
20523         * lib/unistr/u16-strchr.c: Likewise.
20524         * lib/unistr/u16-strrchr.c: Likewise.
20525         * lib/striconveh.c: Update.
20526         * lib/linebreak.c: Update.
20527
20528 2007-03-24  Bruno Haible  <bruno@clisp.org>
20529
20530         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
20531         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
20532
20533 2007-03-22  Bruno Haible  <bruno@clisp.org>
20534
20535         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
20536
20537 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20538
20539         * MODULES.html.sh (File system functions): New module write-any-file.
20540         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
20541         * m4/write-any-file.m4: New files.
20542
20543 2007-03-23  Eric Blake  <ebb9@byu.net>
20544
20545         * gnulib-tool: Rearrange space-tab sequences, since some editors
20546         like to eat them.
20547
20548 2007-03-23  Eric Blake  <ebb9@byu.net>
20549
20550         * lib/version-etc.c (version_etc_va): Update license wording to
20551         be more concise.  Recommended by Richard Stallman.
20552
20553 2007-03-22  Bruno Haible  <bruno@clisp.org>
20554
20555         * lib/poll.c (MSG_PEEK): New fallback definition.
20556
20557 2007-03-22  Bruno Haible  <bruno@clisp.org>
20558
20559         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
20560         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
20561         (main): Update.
20562         Fixes a compilation error on BeOS.
20563
20564 2007-03-22  Bruno Haible  <bruno@clisp.org>
20565
20566         * modules/frexpl-tests: New file.
20567         * tests/test-frexpl.c: New file.
20568
20569         * modules/frexpl: New file.
20570         * m4/frexpl.m4: New file.
20571         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
20572         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
20573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
20574         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
20575         (Depends-on): Add frexpl. Remove isnanl-nolibm.
20576         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
20577
20578 2007-03-22  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/frexpl.c: Share code with lib/frexp.c.
20581         * modules/mathl (Files): Add lib/frexp.c.
20582         (Depends-on): Add isnanl-nolibm.
20583
20584 2007-03-22  Bruno Haible  <bruno@clisp.org>
20585
20586         * modules/printf-frexp (Files): Add m4/frexp.m4.
20587         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
20588         only if the found frexp function actually works.
20589
20590 2007-03-22  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/frexp.c: Remove older implementation that uses divisions.
20593
20594 2007-03-21  Bruno Haible  <bruno@clisp.org>
20595
20596         * modules/frexp-tests: New file.
20597         * tests/test-frexp.c: New file.
20598
20599         * modules/frexp: New file.
20600         * lib/frexp.c: New file.
20601         * m4/frexp.m4: New file.
20602         * lib/math_.h (frexp): New declaration.
20603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
20604         REPLACE_FREXP.
20605         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
20606
20607 2007-03-21  Bruno Haible  <bruno@clisp.org>
20608
20609         * modules/isnanl-tests: New file.
20610         * tests/test-isnanl.c: New file.
20611
20612         * modules/isnanl: New file.
20613         * lib/isnanl.h: New file.
20614         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
20615         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
20616         gl_FUNC_ISNANL_WORKS.
20617         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
20618         New macros.
20619
20620 2007-03-21  Bruno Haible  <bruno@clisp.org>
20621
20622         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
20623         lib/isnanl.h.
20624         (Include): Update.
20625         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
20626         * lib/vasnprintf.c: Update.
20627         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
20628         tests/test-isnanl.h, remove tests/test-isnanl.c.
20629         (Makefile.am): Update.
20630         * tests/test-isnanl-nolibm.c: New file.
20631         * tests/test-isnanl.h: New file.
20632         * tests/test-isnanl.c: Remove file.
20633
20634 2007-03-21  Jim Meyering  <jim@meyering.net>
20635
20636         When trying to open ".", treat ESTALE like EACCES.
20637         * lib/savewd.c (savewd_save): Resort to forking not just upon
20638         failure with EACCES, but also when errno is ESTALE.
20639
20640 2007-03-20  Bruno Haible  <bruno@clisp.org>
20641
20642         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
20643         Needed on AIX 5.1. Reported by Matthew Woehlke.
20644
20645 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20646
20647         Suggestions by Bruno Haible:
20648         * lib/acl-internal.h: Include "gettext.h" rather than rolling
20649         our own.
20650         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
20651         * modules/acl (Depends-on): Add gettext.
20652
20653 2007-03-19  Bruno Haible  <bruno@clisp.org>
20654
20655         * modules/iconvme: Remove file.
20656         * lib/iconvme.h: Remove file.
20657         * lib/iconvme.c: Remove file.
20658         * m4/iconvme.m4: Remove file.
20659
20660 2007-03-19  Bruno Haible  <bruno@clisp.org>
20661
20662         * doc/relocatable-maint.texi: Break long shell script line.
20663         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
20664
20665 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20666
20667         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
20668         handle file_has_acl.
20669         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
20670         * lib/acl.c: Move header inclusions and related macro defns into
20671         lib/acl-internal.h.
20672         (S_ISLNK): Remove defn, since that's now done for us.
20673         (file_has_acl): Move to lib/file-has-acl.c.
20674         Call acl_trivial if available.  This is the crucial part of the fix.
20675         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
20676         shared within the library.  Rewrite a bit, partly to make it compatible
20677         with the GNU coding style.
20678         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
20679         Remove unnecessary double-quotes.
20680         Don't test for acl_to_text; the build will catch that.
20681         Replace acl_entries if it doesn't exist and it is needed.
20682         Check for -lsec and acl_trivial (as used on Solaris 10).
20683         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
20684         lib/file-has-acl.c.
20685         (Depends-on): Add sys_stat, for S_ISLNK.
20686
20687 2007-03-19  Ben Pfaff  <blp@gnu.org>
20688
20689         * doc/gnulib.texi: Fix typos.
20690         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
20691
20692 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20693
20694         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
20695         If size is zero here, buf must be zero.
20696
20697 2007-03-19  Simon Josefsson  <simon@josefsson.org>
20698
20699         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
20700         <bruno@clisp.org>.
20701
20702 2007-03-18  Bruno Haible  <bruno@clisp.org>
20703
20704         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
20705         Suggested by Eric Blake.
20706
20707 2007-03-18  Ben Pfaff  <blp@gnu.org>
20708
20709         * doc/relocatable.texi: Recommend using as prefix a directory
20710         that does not exist and will never be created.  Based on
20711         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
20712         and others.
20713
20714 2007-03-17  Bruno Haible  <bruno@clisp.org>
20715
20716         * lib/fchownat.c: Include lchown.h.
20717
20718 2007-03-17  Bruno Haible  <bruno@clisp.org>
20719
20720         Fix endless loop when the given allocated size was > INT_MAX.
20721         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
20722         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
20723         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
20724         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
20725         * lib/sprintf.c (sprintf): Likewise.
20726
20727 2007-03-17  Bruno Haible  <bruno@clisp.org>
20728
20729         * tests/test-argp-2.sh (func_compare): Output a context diff.
20730
20731 2007-03-17  Bruno Haible  <bruno@clisp.org>
20732
20733         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
20734         locale's decimal-point character.
20735
20736 2007-03-17  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
20739         before comparing it. Needed because on some platforms (e.g. x86) a
20740         'long double' occupies less bytes than sizeof (long double).
20741
20742 2007-03-17  Bruno Haible  <bruno@clisp.org>
20743
20744         * tests/test-crc.c (main): Make printf statements 64-bit clean.
20745         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
20746         * tests/test-getaddrinfo.c (simple): Likewise.
20747         * tests/test-read-file.c (main): Likewise.
20748
20749 2007-03-17  Bruno Haible  <bruno@clisp.org>
20750
20751         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
20752
20753 2007-03-17  Bruno Haible  <bruno@clisp.org>
20754
20755         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
20756         unused variable.
20757
20758 2007-03-17  Bruno Haible  <bruno@clisp.org>
20759
20760         * tests/test-c-strcasecmp.c: Include c-strcase.h.
20761         * tests/test-c-strncasecmp.c: Likewise.
20762
20763 2007-03-17  Bruno Haible  <bruno@clisp.org>
20764
20765         * modules/stdlib (Depends-on): Add unistd.
20766         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
20767         Needed for MacOS X 10.3.
20768
20769 2007-03-17  Bruno Haible  <bruno@clisp.org>
20770
20771         * lib/unistr/u-strdup.h: Include <stdlib.h>.
20772
20773 2007-03-17  Bruno Haible  <bruno@clisp.org>
20774
20775         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
20776
20777 2007-03-17  Bruno Haible  <bruno@clisp.org>
20778
20779         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
20780         to reflect files copied from gnulib (with or without modifications).
20781         Suggested by Jim Meyering.
20782
20783 2007-03-17  Eric Blake  <ebb9@byu.net>
20784
20785         * NEWS: Document stdlib change from 2007-02-18.
20786
20787 2007-03-17  Jim Meyering  <jim@meyering.net>
20788
20789         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
20790         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
20791         someone uses a name containing shell meta-characters.
20792         Reported by Alfred M. Szmidt.
20793
20794         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
20795
20796 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
20797
20798         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
20799         and copy gettext configuration files only if configure.ac contains
20800         a use of AM_GNU_GETTEXT_VERSION.
20801
20802 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
20803
20804         * build-aux/bootstrap (gnulib_name): New variable.
20805         (gnulib_tool_options): Use it.
20806
20807 2007-03-13  Simon Josefsson  <simon@josefsson.org>
20808
20809         * tests/test-des.c: Use new namespace.
20810
20811 2007-03-15  Bruno Haible  <bruno@clisp.org>
20812
20813         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
20814         Reported by James Youngman <jay@gnu.org>.
20815
20816 2007-03-15  Bruno Haible  <bruno@clisp.org>
20817
20818         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
20819         declared prototype. Needed with cc on OSF/1 5.1.
20820
20821 2007-03-15  Bruno Haible  <bruno@clisp.org>
20822
20823         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
20824         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
20825         (struct gl_list_implementation): Add dispose_fn argument to the
20826         'create_empty', 'create' methods.
20827         (struct gl_list_impl_base): Add field 'dispose_fn'.
20828         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
20829         argument.
20830         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
20831         dispose_fn argument.
20832         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
20833         dispose_fn on the dropped values.
20834         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
20835         dispose_fn argument.
20836         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
20837         dropped values.
20838         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
20839         (gl_tree_remove_node): Call dispose_fn on the dropped value.
20840         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
20841         (gl_tree_remove_node): Call dispose_fn on the dropped value.
20842         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
20843         argument.
20844         (gl_tree_list_free): Call dispose_fn on the dropped values.
20845         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
20846         the dropped values.
20847         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
20848         Add dispose_fn argument.
20849         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
20850         Call dispose_fn on the dropped values.
20851         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
20852         Add dispose_fn argument.
20853         (gl_sublist_create): Initialize the 'dispose_fn' field.
20854         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
20855         * tests/test-array_list.c (main): Update.
20856         * tests/test-carray_list.c (main): Update.
20857         * tests/test-avltree_list.c (main): Update.
20858         * tests/test-rbtree_list.c (main): Update.
20859         * tests/test-avltreehash_list.c (main): Update.
20860         * tests/test-rbtreehash_list.c (main): Update.
20861         * tests/test-linked_list.c (main): Update.
20862         * tests/test-linkedhash_list.c (main): Update.
20863         * tests/test-array_oset.c (main): Update.
20864
20865 2007-03-15  Bruno Haible  <bruno@clisp.org>
20866
20867         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
20868         (gl_oset_create_empty): Add dispose_fn argument.
20869         (struct gl_oset_implementation): Add dispose_fn argument to
20870         'create_empty' method.
20871         (struct gl_oset_impl_base): Add dispose_fn field.
20872         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
20873         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
20874         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
20875         values.
20876         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
20877         (gl_tree_oset_free): Call dispose_fn on the dropped values.
20878         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
20879         dropped value.
20880         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
20881         dropped value.
20882         * tests/test-array_oset.c (main): Update.
20883         * tests/test-avltree_oset.c (main): Update.
20884         * tests/test-rbtree_oset.c (main): Update.
20885         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
20886
20887 2007-03-13  Bruno Haible  <bruno@clisp.org>
20888
20889         * tests/test-stdbool.c (i): Update after last patch.
20890
20891 2007-03-12  Bruno Haible  <bruno@clisp.org>
20892
20893         * lib/quotearg.c: Include <wctype.h> early, before the definition of
20894         the iswprint macro. Needed on Solaris 2.5.1.
20895
20896 2007-03-12  Bruno Haible  <bruno@clisp.org>
20897
20898         * tests/test-printf-frexp.c (main): Declare x as volatile.
20899
20900 2007-03-12  Simon Josefsson  <simon@josefsson.org>
20901
20902         * doc/gnulib.texi (Build robot for gnulib): New section.
20903
20904 2007-03-12  Jim Meyering  <jim@meyering.net>
20905
20906         * build-aux/bootstrap: New file.
20907         * build-aux/bootstrap.conf: New file, from coreutils.
20908
20909 2007-03-11  Bruno Haible  <bruno@clisp.org>
20910
20911         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
20912
20913 2007-03-12  Simon Josefsson  <simon@josefsson.org>
20914
20915         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
20916         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
20917         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
20918
20919 2007-03-11  Bruno Haible  <bruno@clisp.org>
20920
20921         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
20922         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
20923
20924 2007-03-11  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
20927         formula. Needed for SunPRO C 5.0.
20928
20929 2007-03-11  Bruno Haible  <bruno@clisp.org>
20930
20931         * modules/long-options (Depends-on): Add getopt.
20932
20933 2007-03-11  Bruno Haible  <bruno@clisp.org>
20934
20935         * modules/modechange (Depends-on): Add stdbool.
20936
20937 2007-03-11  Bruno Haible  <bruno@clisp.org>
20938
20939         * modules/i-ring (Depends-on): Add stdbool.
20940
20941 2007-03-11  Bruno Haible  <bruno@clisp.org>
20942
20943         * modules/gc-des (Depends-on): Add stdbool.
20944
20945 2007-03-11  Bruno Haible  <bruno@clisp.org>
20946
20947         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
20948
20949 2007-03-11  Bruno Haible  <bruno@clisp.org>
20950
20951         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
20952
20953 2007-03-11  Bruno Haible  <bruno@clisp.org>
20954
20955         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
20956
20957 2007-03-11  Bruno Haible  <bruno@clisp.org>
20958
20959         * lib/vasnprintf.c (sprintf): Undefine.
20960
20961 2007-03-11  Bruno Haible  <bruno@clisp.org>
20962
20963         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
20964         initializers in SunPRO C and Compaq C compilers.
20965
20966 2007-03-11  Bruno Haible  <bruno@clisp.org>
20967
20968         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
20969         decrementing code ANSI C compliant.
20970
20971 2007-03-11  Bruno Haible  <bruno@clisp.org>
20972
20973         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
20974         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
20975
20976 2007-03-11  Bruno Haible  <bruno@clisp.org>
20977
20978         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
20979         <stdbool.h> substitute doesn't pass.
20980
20981 2007-03-11  Bruno Haible  <bruno@clisp.org>
20982
20983         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
20984
20985 2007-03-11  Bruno Haible  <bruno@clisp.org>
20986
20987         * gnulib-tool (func_create_megatestdir): Create also an autobuild
20988         script, for submission to autobuild.josefsson.org.
20989
20990 2007-03-10  Bruno Haible  <bruno@clisp.org>
20991
20992         * modules/canonicalize-lgpl-tests: New file.
20993         * tests/test-canonicalize-lgpl.sh: New file.
20994         * tests/test-canonicalize-lgpl.c: New file.
20995
20996         * modules/c-strcase-tests: New file.
20997         * tests/test-c-strcase.sh: New file.
20998         * tests/test-c-strcasecmp.c: New file.
20999         * tests/test-c-strncasecmp.c: New file.
21000
21001         * modules/atexit-tests: New file.
21002         * tests/test-atexit.sh: New file.
21003         * tests/test-atexit.c: New file.
21004
21005 2007-03-10  Bruno Haible  <bruno@clisp.org>
21006
21007         * tests/test-binary-io.sh: Use temporary filenames that are not so
21008         likely to clash with those of other tests (in a parallel make).
21009         * tests/test-binary-io.c: Likewise.
21010
21011 2007-03-10  Bruno Haible  <bruno@clisp.org>
21012
21013         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
21014         fallback; use #error instead.
21015         Suggested by Simon Josefsson.
21016
21017 2007-03-10  Bruno Haible  <bruno@clisp.org>
21018
21019         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
21020         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
21021         first and the last.
21022
21023 2007-03-10  Bruno Haible  <bruno@clisp.org>
21024
21025         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
21026
21027 2007-03-10  Bruno Haible  <bruno@clisp.org>
21028
21029         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
21030         "make distcheck".
21031         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
21032         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
21033         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
21034
21035 2007-03-10  Bruno Haible  <bruno@clisp.org>
21036
21037         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
21038         variable.
21039         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
21040         variable.
21041
21042 2007-03-09  Eric Blake  <ebb9@byu.net>
21043         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
21044
21045         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
21046         types are not being provided by gnulib.
21047         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
21048         types are supported.
21049
21050 2007-03-10  Bruno Haible  <bruno@clisp.org>
21051
21052         * lib/stdio_.h (__attribute__): New macro.
21053         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
21054         vsprintf): Specify __attribute__ __format__ for GCC.
21055         Suggested by Eric Blake.
21056
21057 2007-03-09  Bruno Haible  <bruno@clisp.org>
21058
21059         * modules/printf-posix-tests: New file.
21060         * tests/test-printf-posix.sh: New file.
21061         * tests/test-printf-posix.c: New file.
21062
21063         * modules/printf-posix: New file.
21064         * lib/printf.c: New file.
21065         * m4/printf-posix-rpl.m4: New file.
21066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
21067         REPLACE_PRINTF.
21068         * lib/stdio_.h (printf): New declaration.
21069         (format, __format__, ____printf____, ____scanf____, ____strftime____,
21070         ____strfmon____): New macros.
21071         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
21072         REPLACE_PRINTF.
21073
21074 2007-03-09  Bruno Haible  <bruno@clisp.org>
21075
21076         * tests/test-vasnprintf-posix2.sh: New file.
21077         * tests/test-vasnprintf-posix2.c: New file.
21078         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
21079         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
21080         (Makefile.am): Activate test-vasnprintf-posix2.sh.
21081
21082         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
21083         a locale dependent decimal point, rather than always '.'.
21084
21085 2007-03-09  Eric Blake  <ebb9@byu.net>
21086
21087         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
21088         spite of platforms like Tandem/NSK that define it to -1.
21089
21090 2007-03-08  Bruno Haible  <bruno@clisp.org>
21091
21092         * modules/vprintf-posix-tests: New file.
21093         * tests/test-vprintf-posix.sh: New file.
21094         * tests/test-vprintf-posix.c: New file.
21095         * tests/test-printf-posix.h: New file.
21096
21097         * modules/vprintf-posix: New file.
21098         * lib/vprintf.c: New file.
21099         * m4/vprintf-posix.m4: New file.
21100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
21101         REPLACE_VPRINTF.
21102         * lib/stdio_.h (vprintf): New declaration.
21103         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
21104         REPLACE_VPRINTF.
21105
21106 2007-03-08  Bruno Haible  <bruno@clisp.org>
21107
21108         * modules/fprintf-posix-tests: New file.
21109         * tests/test-fprintf-posix.sh: New file.
21110         * tests/test-fprintf-posix.c: New file.
21111
21112         * modules/fprintf-posix: New file.
21113         * lib/fprintf.c: New file.
21114         * m4/fprintf-posix.m4: New file.
21115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
21116         REPLACE_FPRINTF.
21117         * lib/stdio_.h (fprintf): New declaration.
21118         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
21119         REPLACE_FPRINTF.
21120
21121 2007-03-08  Bruno Haible  <bruno@clisp.org>
21122
21123         * modules/vfprintf-posix-tests: New file.
21124         * tests/test-vfprintf-posix.sh: New file.
21125         * tests/test-vfprintf-posix.c: New file.
21126         * tests/test-fprintf-posix.h: New file.
21127         * tests/test-fprintf-posix.out: New file.
21128
21129         * modules/vfprintf-posix: New file.
21130         * lib/vfprintf.c: New file.
21131         * m4/vfprintf-posix.m4: New file.
21132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
21133         REPLACE_VFPRINTF.
21134         * lib/stdio_.h (vfprintf): New declaration.
21135         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
21136         REPLACE_VFPRINTF.
21137
21138 2007-03-08  Bruno Haible  <bruno@clisp.org>
21139
21140         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
21141
21142 2007-03-08  Bruno Haible  <bruno@clisp.org>
21143
21144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
21145         instead of 'expr' invocations.
21146         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21150         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21151         Suggested by Paul Eggert.
21152
21153 2007-03-08  Bruno Haible  <bruno@clisp.org>
21154
21155         * modules/fseterr-tests: New file.
21156         * tests/test-fseterr.c: New file.
21157
21158         * modules/fseterr: New file.
21159         * lib/fseterr.h: New file.
21160         * lib/fseterr.c: New file.
21161
21162 2007-03-08  Bruno Haible  <bruno@clisp.org>
21163
21164         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
21165         * lib/getopt_.h: Likewise.
21166         * lib/mbswidth.h: Likewise.
21167         * lib/setenv.h: Likewise.
21168         * lib/vasnprintf.h: Likewise.
21169         * lib/vasprintf.h: Likewise.
21170         * lib/verror.h: Likewise.
21171         * lib/xsetenv.h: Likewise.
21172         * lib/xvasprintf.h: Likewise.
21173
21174 2007-03-08  Jim Meyering  <jim@meyering.net>
21175
21176         * users.txt: Add parted.
21177
21178         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
21179
21180 2007-03-07  Bruno Haible  <bruno@clisp.org>
21181
21182         * m4/printf.m4: Make the shell script snippets copy&pastable.
21183
21184 2007-03-02  Bruno Haible  <bruno@clisp.org>
21185
21186         * lib/netinet_in_.h: New file.
21187         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
21188         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
21189         * modules/netinet_in (Files): Add lib/netinet_in_.h.
21190         (Depends-on): Add absolute-header.
21191         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
21192         into netinet/in.h.
21193
21194 2007-03-03  Bruno Haible  <bruno@clisp.org>
21195
21196         * lib/sys_select_.h: New file.
21197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
21198         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
21199         * modules/sys_select (Files): Add lib/sys_select_.h.
21200         (Depends-on): Add absolute-header.
21201         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
21202         into sys/select.h.
21203
21204 2007-03-02  Bruno Haible  <bruno@clisp.org>
21205
21206         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
21207         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
21208         values.
21209         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
21210         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
21211         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
21212         * modules/sys_socket (Depends-on): Add absolute-header.
21213         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
21214         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
21215         (Include): Remove requirement of inclusion of <sys/types.h>.
21216
21217 2007-03-02  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/byteswap_.h (bswap_32): Fix formula.
21220
21221 2007-03-06  Bruno Haible  <bruno@clisp.org>
21222
21223         * modules/sprintf-posix-tests: New file.
21224         * tests/test-sprintf-posix.c: New file.
21225
21226         * modules/sprintf-posix: New file.
21227         * lib/sprintf.c: New file.
21228         * m4/sprintf-posix.m4: New file.
21229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
21230         REPLACE_SPRINTF.
21231         * lib/stdio_.h (sprintf): New declaration.
21232         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
21233         REPLACE_SPRINTF.
21234
21235 2007-03-06  Bruno Haible  <bruno@clisp.org>
21236
21237         * modules/vsprintf-posix-tests: New file.
21238         * tests/test-vsprintf-posix.c: New file.
21239         * tests/test-sprintf-posix.h: New file.
21240
21241         * modules/vsprintf-posix: New file.
21242         * lib/vsprintf.c: New file.
21243         * m4/vsprintf-posix.m4: New file.
21244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
21245         REPLACE_VSPRINTF.
21246         * lib/stdio_.h (vsprintf): New declaration.
21247         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
21248         REPLACE_VSPRINTF.
21249
21250 2007-03-06  Bruno Haible  <bruno@clisp.org>
21251
21252         * modules/vsnprintf (Depend-on): Remove minmax.
21253
21254 2007-03-06  Bruno Haible  <bruno@clisp.org>
21255
21256         * modules/snprintf-posix-tests: New file.
21257         * tests/test-snprintf-posix.c: New file.
21258
21259         * modules/snprintf-posix: New file.
21260         * m4/snprintf-posix.m4: New file.
21261         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
21262         gl_FUNC_SNPRINTF.
21263         (gl_FUNC_SNPRINTF): Invoke it.
21264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
21265         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
21266         is set.
21267         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
21268
21269 2007-03-06  Bruno Haible  <bruno@clisp.org>
21270
21271         * modules/vsnprintf-posix-tests: New file.
21272         * tests/test-vsnprintf-posix.c: New file.
21273         * tests/test-snprintf-posix.h: New file.
21274
21275         * modules/vsnprintf-posix: New file.
21276         * m4/vsnprintf-posix.m4: New file.
21277         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
21278         gl_FUNC_VSNPRINTF.
21279         (gl_FUNC_VSNPRINTF): Invoke it.
21280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
21281         * lib/stdio_.h (vsnprintf): Define as a replacement if
21282         REPLACE_VSNPRINTF is set.
21283         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
21284
21285 2007-03-06  Bruno Haible  <bruno@clisp.org>
21286
21287         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
21288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
21289
21290 2007-03-06  Bruno Haible  <bruno@clisp.org>
21291
21292         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
21293         (asinl): Declare also if HAVE_DECL_ASINL is set.
21294         (atanl): Declare also if HAVE_DECL_ATANL is set.
21295         (ceill): Declare also if HAVE_DECL_CEILL is set.
21296         (cosl): Declare also if HAVE_DECL_COSL is set.
21297         (expl): Declare also if HAVE_DECL_EXPL is set.
21298         (floorl): Declare also if HAVE_DECL_FLOORL is set.
21299         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
21300         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
21301         (logl): Declare also if HAVE_DECL_LOGL is set.
21302         (sinl): Declare also if HAVE_DECL_SINL is set.
21303         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
21304         (tanl): Declare also if HAVE_DECL_TANL is set.
21305         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
21306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
21307         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
21308         declaration of frexpl, ldexpl.
21309         * modules/printf-frexpl (Depends-on): Add math.
21310         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
21311
21312 2007-03-05  Bruno Haible  <bruno@clisp.org>
21313
21314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
21315         frexpl and ldexpl are declared.
21316         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
21317
21318 2007-03-05  Bruno Haible  <bruno@clisp.org>
21319
21320         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
21321         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
21322
21323 2007-03-05  Bruno Haible  <bruno@clisp.org>
21324
21325         * lib/stdio_.h: Include <stddef.h>.
21326
21327 2007-03-05  Bruno Haible  <bruno@clisp.org>
21328
21329         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
21330
21331 2007-03-05  Bruno Haible  <bruno@clisp.org>
21332
21333         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
21334         NetBSD 4, from Ralf Wildenhues.
21335
21336 2007-03-04  Bruno Haible  <bruno@clisp.org>
21337
21338         * lib/vasprintf.h: Update #if logic for the case when the functions
21339         exist but are overridden.
21340
21341 2007-03-04  Bruno Haible  <bruno@clisp.org>
21342
21343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
21344         implementations: glibc-2.4 and MacOS X 10.3.
21345         * tests/test-vasnprintf-posix.c (test_function): Test also the case
21346         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
21347         * tests/test-vasprintf-posix.c (test_function): Likewise.
21348
21349 2007-03-04  Bruno Haible  <bruno@clisp.org>
21350
21351         * modules/vasprintf-posix-tests: New file.
21352         * tests/test-vasprintf-posix.c: New file.
21353
21354         * modules/vasprintf-posix: New file.
21355         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
21356         defined.
21357         * m4/vasprintf-posix.m4: New file.
21358         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
21359         gl_FUNC_VASPRINTF.
21360         (gl_FUNC_VASPRINTF): Invoke it.
21361         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
21362         here.
21363         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
21364
21365 2007-03-04  Bruno Haible  <bruno@clisp.org>
21366
21367         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
21368         REPLACE_GETTIMEOFDAY.
21369         * modules/sys_time (Makefile.am): Likewise.
21370         * m4/sys_time_h.m4: Likewise.
21371         * m4/gettimeofday.m4: Likewise.
21372
21373 2007-03-04  Bruno Haible  <bruno@clisp.org>
21374
21375         * modules/vasnprintf-posix-tests: New file.
21376         * tests/test-vasnprintf-posix.c: New file.
21377
21378         * modules/vasnprintf-posix: New file.
21379         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
21380         printf-frexpl.h.
21381         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
21382         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
21383         REPLACE_VASNPRINTF is defined.
21384         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
21385         gl_FUNC_VASNPRINTF.
21386         (gl_FUNC_VASNPRINTF): Invoke it.
21387         * m4/vasnprintf-posix.m4: New file.
21388         * m4/printf.m4: New file.
21389
21390 2007-03-04  Bruno Haible  <bruno@clisp.org>
21391
21392         Compile progreloc.c only if --enable-relocatable is specified.
21393         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
21394         if --enable-relocatable was specified.
21395         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
21396         lib_SOURCES.
21397
21398 2007-03-04  Jim Meyering  <jim@meyering.net>
21399
21400         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
21401         Use it consistently, rather than enumerating errno constants.
21402
21403 2007-03-04  Bruno Haible  <bruno@clisp.org>
21404
21405         * modules/xvasprintf-tests: New file.
21406         * tests/test-xvasprintf.c: New file.
21407
21408         * modules/vasprintf-tests: New file.
21409         * tests/test-vasprintf.c: New file.
21410
21411         * modules/vasnprintf-tests: New file.
21412         * tests/test-vasnprintf.c: New file.
21413
21414         * modules/vsnprintf-tests: New file.
21415         * tests/test-vsnprintf.c: New file.
21416
21417         * modules/snprintf-tests: New file.
21418         * tests/test-snprintf.c: New file.
21419
21420 2007-03-04  Bruno Haible  <bruno@clisp.org>
21421
21422         Compile relocatable.c only if --enable-relocatable is specified.
21423         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
21424         gl_RELOCATABLE_LIBRARY.
21425         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
21426         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
21427         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
21428         gl_RELOCATABLE_LIBRARY.
21429         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
21430         (Makefile.am): Remove lib_SOURCES.
21431         * modules/relocatable-lib-lgpl (configure.ac): Invoke
21432         gl_RELOCATABLE_LIBRARY.
21433         (Makefile.am): Remove lib_SOURCES.
21434         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
21435         always.
21436         * modules/relocatable-prog-wrapper (configure.ac): Invoke
21437         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
21438
21439 2007-03-04  Bruno Haible  <bruno@clisp.org>
21440
21441         * modules/argmatch-tests: New file.
21442         * tests/test-argmatch.c: New file.
21443
21444         * tests/test-allocsa.c (main): Halve the number of loop runs.
21445
21446         * modules/alloca-opt-tests: New file.
21447         * tests/test-alloca-opt.c: New file.
21448
21449 2007-03-04  Jim Meyering  <jim@meyering.net>
21450
21451         Work around difference between Linux ACLs and Solaris 10 ZFS.
21452         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
21453         for EINVAL.
21454
21455 2007-03-03  Bruno Haible  <bruno@clisp.org>
21456
21457         * modules/relocatable-prog (Depends-on): Add back progreloc's
21458         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
21459
21460 2007-03-03  Bruno Haible  <bruno@clisp.org>
21461
21462         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
21463         * modules/relocatable-lib: New file.
21464
21465 2007-03-03  Bruno Haible  <bruno@clisp.org>
21466
21467         * modules/relocatable-prog: Renamed from modules/relocatable.
21468         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
21469
21470 2007-03-03  Bruno Haible  <bruno@clisp.org>
21471
21472         * modules/relocatable-script (Files): Add doc/relocatable.texi,
21473         m4/relocatable-lib.m4.
21474         (Depends-on): Remove 'relocatable'.
21475         (configure.ac): Add gl_RELOCATABLE_NOP.
21476
21477 2007-03-03  Bruno Haible  <bruno@clisp.org>
21478
21479         * modules/relocatable-prog-wrapper: New file.
21480         * modules/relocatable (Depends-on): Add it. Remove all other
21481         dependencies except progname.
21482         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
21483
21484         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
21485         (gl_FUNC_STRERROR): Nop.
21486         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
21487
21488         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
21489         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
21490
21491         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
21492         (gl_FUNC_READLINK): Update.
21493
21494         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
21495
21496 2007-03-03  Bruno Haible  <bruno@clisp.org>
21497
21498         * lib/xreadlink.c: Include <unistd.h> unconditionally.
21499         * modules/xreadlink (Depends-on): Add unistd.
21500         * modules/xreadlink-with-size (Depends-on): Likewise.
21501
21502 2007-03-03  Bruno Haible  <bruno@clisp.org>
21503
21504         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
21505         extracted from gt_FUNC_SETENV.
21506         (gt_FUNC_SETENV): Remove macro.
21507         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
21508         remove gt_FUNC_SETENV.
21509
21510 2007-03-03  Bruno Haible  <bruno@clisp.org>
21511
21512         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
21513         ENABLE_RELOCATABLE here.
21514         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
21515
21516 2007-03-03  Bruno Haible  <bruno@clisp.org>
21517
21518         * modules/rbtreehash-list-tests (Depends-on): Add progname.
21519         * tests/test-rbtreehash_list.c: Include progname.h.
21520         (main): Call set_program_name.
21521
21522         * modules/rbtree-oset-tests (Depends-on): Add progname.
21523         * tests/test-rbtree_oset.c: Include progname.h.
21524         (main): Call set_program_name.
21525
21526         * modules/rbtree-list-tests (Depends-on): Add progname.
21527         * tests/test-rbtree_list.c: Include progname.h.
21528         (main): Call set_program_name.
21529
21530         * modules/linked-list-tests (Depends-on): Add progname.
21531         * tests/test-linked_list.c: Include progname.h.
21532         (main): Call set_program_name.
21533
21534 2007-03-03  Bruno Haible  <bruno@clisp.org>
21535
21536         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
21537         All uses of __restrict changed to _Restrict_.
21538         * lib/glob_.h (__restrict): Remove macro.
21539
21540 2007-03-02  Bruno Haible  <bruno@clisp.org>
21541
21542         * modules/gettext (configure.ac): Require gettext infrastructure
21543         from version 0.16.1.
21544
21545 2007-03-02  Bruno Haible  <bruno@clisp.org>
21546
21547         * modules/linkedhash-list-tests (Depends-on): Add progname.
21548         * tests/test-linkedhash_list.c: Include progname.h.
21549         (main): Call set_program_name.
21550
21551         * modules/carray-list-tests (Depends-on): Add progname.
21552         * tests/test-carray_list.c: Include progname.h.
21553         (main): Call set_program_name.
21554
21555         * modules/avltreehash-list-tests (Depends-on): Add progname.
21556         * tests/test-avltreehash_list.c: Include progname.h.
21557         (main): Call set_program_name.
21558
21559         * modules/avltree-oset-tests (Depends-on): Add progname.
21560         * tests/test-avltree_oset.c: Include progname.h.
21561         (main): Call set_program_name.
21562
21563         * modules/avltree-list-tests (Depends-on): Add progname.
21564         * tests/test-avltree_list.c: Include progname.h.
21565         (main): Call set_program_name.
21566
21567         * modules/array-oset-tests (Depends-on): Add progname.
21568         * tests/test-array_oset.c: Include progname.h.
21569         (main): Call set_program_name.
21570
21571         * modules/array-list-tests (Depends-on): Add progname.
21572         * tests/test-array_list.c: Include progname.h.
21573         (main): Call set_program_name.
21574
21575         * modules/argp-tests (Depends-on): Add progname.
21576         * tests/test-argp.c: Include argp.h first. Include progname.h.
21577         (main): Call set_program_name.
21578
21579 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
21580
21581         * doc/gnulib-tool.texi (Initial import): Reword description of
21582         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
21583         limited effect even if defined after the first system include.
21584
21585 2007-03-01  Bruno Haible  <bruno@clisp.org>
21586
21587         * build-aux/config.libpath: Update to libtool-1.5.22.
21588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21589
21590 2007-03-01  Bruno Haible  <bruno@clisp.org>
21591
21592         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
21593         foo_CFLAGS.
21594         Reported by Ralf Wildenhues.
21595
21596 2007-03-01  Bruno Haible  <bruno@clisp.org>
21597
21598         * build-aux/install-reloc: Remove object files left over by some
21599         compilers.
21600         Reported by Ralf Wildenhues.
21601
21602 2007-03-01  Bruno Haible  <bruno@clisp.org>
21603
21604         * build-aux/install-reloc: Break long lines.
21605
21606 2007-03-01  Bruno Haible  <bruno@clisp.org>
21607
21608         * doc/relocatable.texi: Document that it may not work on OpenBSD.
21609         Reported by Ralf Wildenhues.
21610
21611 2007-03-01  Bruno Haible  <bruno@clisp.org>
21612
21613         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
21614         include ordering constraints.
21615
21616 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21617
21618         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
21619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
21620         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
21621         as another example.
21622         * lib/time_.h: Fix misspelling.
21623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
21624         Require gl_HEADER_TIME_H_DEFAULTS.
21625         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
21626         * m4/time_r.m4 (gl_TIME_R): Likewise.
21627         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
21628
21629 2007-03-01  Bruno Haible  <bruno@clisp.org>
21630
21631         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
21632         * m4/utimens.m4 (gl_UTIMENS): Likewise.
21633
21634 2007-03-01  Jim Meyering  <jim@meyering.net>
21635
21636         * modules/xreadlink (Maintainer): Add my name.
21637         * modules/xreadlink-with-size (Depends-on): Alphabetize.
21638
21639 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
21640             Bruno Haible  <bruno@clisp.org>
21641
21642         * build-aux/install-reloc: Compile also c-ctype.c.
21643         * build-aux/relocatable.sh.in: New file.
21644         * doc/relocatable.texi: New file.
21645         * doc/relocatable-maint.texi: New file.
21646         * doc/gnulib.texi: Include relocatable-maint.texi.
21647         * lib/progreloc.c: Include unistd.h unconditionally.
21648         * lib/relocwrapper.c: Include unistd.h unconditionally.
21649         Include c-ctype.h.
21650         (add_dotbin): Use c_tolower.
21651         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
21652         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
21653         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
21654         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
21655         to m4/relocatable-lib.m4.
21656         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
21657         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
21658         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
21659         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
21660         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
21661         * modules/relocatable: New file.
21662         * modules/relocatable-lib: New file.
21663         * modules/relocatable-script: New file.
21664
21665 2007-02-28  Bruno Haible  <bruno@clisp.org>
21666
21667         Import --enable-relocatable infrastructure.
21668         * build-aux/config.libpath: New file, from GNU gettext.
21669         * build-aux/install-reloc: New file, from GNU gettext.
21670         * build-aux/reloc-ldflags: New file, from GNU gettext.
21671         * lib/relocatable.h: New file, from GNU gettext.
21672         * lib/relocatable.c: New file, from GNU gettext.
21673         * lib/relocwrapper.c: New file, from GNU gettext.
21674         * m4/relocatable.m4: New file, from GNU gettext.
21675
21676 2007-02-28  Bruno Haible  <bruno@clisp.org>
21677
21678         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
21679
21680         * modules/xreadlink: New file, from GNU gettext with modifications.
21681         * lib/xreadlink.c: New file, from GNU gettext.
21682         * lib/xreadlink.h: Add comments.
21683         (xreadlink): New declaration.
21684
21685         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
21686         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
21687         lib/xreadlink-with-size.c.
21688         (configure.ac): Remove gl_XREADLINK invocation.
21689         (Makefile.am): Augment lib_SOURCES.
21690         * m4/xreadlink.m4: Remove file.
21691         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
21692         (xreadlink_with_size): Renamed from xreadink.
21693         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
21694         * modules/canonicalize (Depends-on): Replace xreadlink with
21695         xreadlink-with-size.
21696         * lib/canonicalize.c (canonicalize_filename_mode): Update.
21697
21698 2007-02-25  Jim Meyering  <jim@meyering.net>
21699
21700         * build-aux/announce-gen: When complaining about excess arguments,
21701         list them.
21702
21703 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21704
21705         * README: Document signed integer overflow situation more
21706         accurately.
21707
21708 2007-02-25  Bruno Haible  <bruno@clisp.org>
21709
21710         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
21711         'a' or 'A' conversion.
21712
21713 2007-02-25  Bruno Haible  <bruno@clisp.org>
21714
21715         * modules/filename: Renamed from modules/pathname.
21716         (Files): Replace lib/pathname.h with lib/filename.h. Replace
21717         lib/concatpath.c with lib/concat-filename.c.
21718         (Makefile.am): Update.
21719         (Include): Replace pathname.h with filename.h.
21720         * lib/filename.h: Renamed from lib/pathname.h.
21721         (concatenated_filename): Renamed from concatenated_pathname.
21722         * lib/concat-filename.c: Renamed from lib/concatpath.c.
21723         (concatenated_filename): Renamed from concatenated_pathname.
21724         * lib/findprog.c: Include filename.h instead of pathname.h.
21725         (find_in_path): Update.
21726         * lib/javacomp.c: Include filename.h instead of pathname.h.
21727         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21728         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21729         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21730         is_oldgcj_14_13_usable, is_javac_usable): Update.
21731         * lib/javaexec.c: Include filename.h instead of pathname.h.
21732         (execute_java_class): Update.
21733         * modules/findprog: Update.
21734         * modules/javacomp: Update.
21735         * modules/javaexec: Update.
21736         * MODULES.html.sh (File system functions): Add 'filename', remove
21737         'pathname'.
21738
21739 2007-02-25  Bruno Haible  <bruno@clisp.org>
21740
21741         * modules/printf-frexpl-tests: New file.
21742         * tests/test-printf-frexpl.c: New file.
21743
21744         * modules/printf-frexpl: New file.
21745         * lib/printf-frexpl.h: New file.
21746         * lib/printf-frexpl.c: New file.
21747         * m4/printf-frexpl.m4: New file.
21748
21749 2007-02-25  Bruno Haible  <bruno@clisp.org>
21750
21751         * modules/printf-frexp-tests: New file.
21752         * tests/test-printf-frexp.c: New file.
21753
21754         * modules/printf-frexp: New file.
21755         * lib/printf-frexp.h: New file.
21756         * lib/printf-frexp.c: New file.
21757         * m4/printf-frexp.m4: New file.
21758
21759 2007-02-25  Bruno Haible  <bruno@clisp.org>
21760
21761         Assume automake >= 1.10 for the tests.
21762         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
21763         * modules/arctwo-tests: Likewise.
21764         * modules/argp-tests: Likewise.
21765         * modules/avltree-list-tests: Likewise.
21766         * modules/avltree-oset-tests: Likewise.
21767         * modules/avltreehash-list-tests: Likewise.
21768         * modules/carray-list-tests: Likewise.
21769         * modules/crc-tests: Likewise.
21770         * modules/des-tests: Likewise.
21771         * modules/gc-arcfour-tests: Likewise.
21772         * modules/gc-arctwo-tests: Likewise.
21773         * modules/gc-des-tests: Likewise.
21774         * modules/gc-hmac-md5-tests: Likewise.
21775         * modules/gc-hmac-sha1-tests: Likewise.
21776         * modules/gc-md2-tests: Likewise.
21777         * modules/gc-md4-tests: Likewise.
21778         * modules/gc-md5-tests: Likewise.
21779         * modules/gc-pbkdf2-sha1-tests: Likewise.
21780         * modules/gc-rijndael-tests: Likewise.
21781         * modules/gc-sha1-tests: Likewise.
21782         * modules/gc-tests: Likewise.
21783         * modules/getaddrinfo-tests: Likewise.
21784         * modules/hmac-md5-tests: Likewise.
21785         * modules/hmac-sha1-tests: Likewise.
21786         * modules/linked-list-tests: Likewise.
21787         * modules/linkedhash-list-tests: Likewise.
21788         * modules/lock-tests: Likewise.
21789         * modules/md2-tests: Likewise.
21790         * modules/md4-tests: Likewise.
21791         * modules/md5-tests: Likewise.
21792         * modules/rbtree-list-tests: Likewise.
21793         * modules/rbtree-oset-tests: Likewise.
21794         * modules/rbtreehash-list-tests: Likewise.
21795         * modules/read-file-tests: Likewise.
21796         * modules/rijndael-tests: Likewise.
21797         * modules/stdint-tests: Likewise.
21798         * modules/tls-tests: Likewise.
21799
21800 2007-02-24  Bruno Haible  <bruno@clisp.org>
21801
21802         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
21803         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
21804         function; instead check whether isnan with a double argument links.
21805         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
21806         function; instead check whether isnan with a 'long double' argument
21807         links.
21808         Reported by Eric Blake <ebb9@byu.net>.
21809
21810 2007-02-24  Bruno Haible  <bruno@clisp.org>
21811
21812         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
21813         defined.
21814         * lib/isnanl.c: Remove all code. Just include isnan.c.
21815         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
21816
21817 2007-02-25  Jim Meyering  <jim@meyering.net>
21818
21819         Avoid conflicting types for 'unsetenv' on FreeBSD.
21820         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
21821         conflicting with FreeBSD's (5.0 and 6.1) function declaration
21822         in stdlib.h.
21823
21824 2007-02-24  Bruno Haible  <bruno@clisp.org>
21825
21826         * modules/isnanl-nolibm-tests: New file.
21827         * tests/test-isnanl.c: New file.
21828
21829         * modules/isnanl-nolibm: New file.
21830         * lib/isnanl.h: New file.
21831         * lib/isnanl.c: New file.
21832         * m4/isnanl.m4: New file.
21833
21834 2007-02-24  Bruno Haible  <bruno@clisp.org>
21835
21836         * modules/isnan-nolibm-tests: New file.
21837         * tests/test-isnan.c: New file.
21838
21839         * modules/isnan-nolibm: New file.
21840         * lib/isnan.h: New file.
21841         * lib/isnan.c: New file.
21842         * m4/isnan.m4: New file.
21843
21844 2007-02-24  Bruno Haible  <bruno@clisp.org>
21845
21846         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
21847         assume that an exponent fits in 20 bits.
21848
21849 2007-02-24  Jim Meyering  <jim@meyering.net>
21850
21851         * m4/regex.m4: Update the description of the configure-time option,
21852         --without-included-regex, to state accurately what the defaults are,
21853         and perhaps to give people an idea why using this option is risky.
21854
21855 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21856
21857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
21858         loops on small arguments.  This attempts to avoid the problem
21859         Bruno Haible reported for AIX 4.3.2 in
21860         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
21861
21862 2007-02-23  Bruno Haible  <bruno@clisp.org>
21863
21864         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
21865         Needed for help2man.
21866
21867 2007-02-23  Karl Berry  <karl@gnu.org>
21868
21869         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
21870         exists, foo.h should be cvs-ignored, not committed.
21871
21872 2007-02-23  Eric Blake  <ebb9@byu.net>
21873
21874         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
21875         * lib/stat-time.h (includes): Likewise.
21876         * lib/utimecmp.c (includes): Likewise.
21877         * lib/utimens.h (includes): Likewise.
21878         * lib/getdate.y (includes): Also include "timespec.h" for use
21879         internal to the module.
21880         * modules/utimens (Depends-on): Revert yesterday's patch.
21881         * modules/nanosleep (Depends-on): Add missing dependency.
21882
21883 2007-02-22  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/glob.c: Don't include getlogin_r.h.
21886
21887 2007-02-22  Jim Meyering  <jim@meyering.net>
21888
21889         * modules/utimens (Depends-on): Add timespec, required for
21890         utimens.h's inclusion of timespec.h.
21891
21892 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
21893
21894         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
21895         long unreadable paths in GNU/Linux.  Problem reported by Andreas
21896         Schwab in
21897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
21898         I'll try to think of a better way to fix the Solaris problem.
21899
21900         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
21901         like glibc; on Solaris 10, it fails with errno == EINVAL.
21902         POSIX says the behavior is unspecified if the first argument is NULL,
21903         so play it safe and never pass NULL to the system getcwd.
21904
21905 2007-02-21  Jim Meyering  <jim@meyering.net>
21906
21907         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
21908         of gettimeofday.  It would conflict with the one now always
21909         provided via sys_time_.h.  Reported by Matthew Woehlke, as
21910         an IRIX 6.5 build failure.
21911
21912 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21913
21914         Minor fixups to port to Solaris 10 with Sun C 5.8.
21915         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
21916         * modules/getcwd (Depends-on): Add dirfd.
21917         * lib/putenv.c (putenv): #undef it.
21918         (rpl_putenv): New decl.
21919         (malloc, free): Include <stdlib.h> rather than prototyping separately.
21920
21921 2007-02-20  Bruno Haible  <bruno@clisp.org>
21922
21923         * modules/stdio-tests: New file.
21924         * tests/test-stdio.c: New file.
21925
21926         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
21927         (Depends-on): Add stdio.
21928         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21929         (Include): Use <stdio.h> instead of vsnprintf.h.
21930         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
21931         HAVE_DECL_VSNPRINTF.
21932         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
21933
21934         * modules/snprintf (Files): Remove lib/snprintf.h.
21935         (Depends-on): Add stdio.
21936         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21937         (Include): Use <stdio.h> instead of snprintf.h.
21938         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
21939         HAVE_DECL_SNPRINTF.
21940         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
21941         * lib/getaddrinfo.c: Likewise.
21942
21943         * modules/stdio: New file.
21944         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
21945         * lib/snprintf.h: Remove file.
21946         * lib/vsnprintf.h: Remove file.
21947         * lib/.cppi-disable: Remove snprintf.h.
21948         * m4/stdio_h.m4: New file.
21949         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
21950
21951 2007-02-20  Jim Meyering  <jim@meyering.net>
21952
21953         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
21954         used by e.g., mingw.  From Bruno Haible.
21955
21956 2007-02-19  Bruno Haible  <bruno@clisp.org>
21957
21958         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
21959         warnings.
21960         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21961
21962 2007-02-19  Bruno Haible  <bruno@clisp.org>
21963
21964         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
21965         from mingw users.
21966
21967 2007-02-19  Bruno Haible  <bruno@clisp.org>
21968
21969         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
21970         warnings.
21971         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
21972
21973 2007-02-19  Jim Meyering  <jim@meyering.net>
21974
21975         Don't use FD after a successful "fdopendir (fd)".
21976         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
21977         Reset it by calling dirfd on the just-obtained DIR*.
21978
21979         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
21980         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
21981
21982 2007-02-18  Bruno Haible  <bruno@clisp.org>
21983
21984         * lib/readlink.c: Include <unistd.h>.
21985         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
21986         HAVE_READLINK.
21987         * modules/readlink (Depends-on): Add unistd.
21988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21989         (Include): Add <unistd.h>.
21990
21991         * lib/getlogin_r.h: Remove file.
21992         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
21993         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
21994         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
21995         HAVE_DECL_GETLOGIN_R.
21996         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
21997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21998         (Include): Use <unistd.h> instead of getlogin_r.h.
21999
22000         * lib/getcwd.h: Remove file.
22001         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
22002         * lib/xgetcwd.c: Likewise.
22003         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
22004         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
22005         * modules/getcwd (Files): Remove lib/getcwd.h.
22006         (Depends-on): Add unistd.
22007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22008         (Include): Use <unistd.h> instad of getcwd.h.
22009
22010         * lib/ftruncate.c: Include <unistd.h> first.
22011         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
22012         Set HAVE_FTRUNCATE.
22013         * modules/ftruncate (Depends-on): Add unistd.
22014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22015
22016         * lib/fchdir.c: Include <unistd.h> first.
22017         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
22018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
22019         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
22020         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22021         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
22022
22023         * lib/dup2.c: Include <unistd.h> first.
22024         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
22025         HAVE_DUP2.
22026         * modules/dup2 (Depends-on): Add unistd.
22027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22028
22029         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
22030         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
22031         REPLACE_CHOWN. Don't define chown as a macro here.
22032         * modules/chown (Depends-on): Add unistd.
22033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22034
22035         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
22036         Add definition for GL_LINK_WARNING.
22037         (chown, dup2): New declarations.
22038         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
22039         link warning.
22040         (ftruncate): New declaration.
22041         (getcwd): New declaration, taken from old getcwd.h.
22042         (getlogin_r): New declaration, taken from old getlogin_r.h.
22043         (readlink): New declaration.
22044         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
22045         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
22046         (gl_PREREQ_UNISTD): Remove macro.
22047         (gl_UNISTD_MODULE_INDICATOR): New macro.
22048         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
22049         many new variables. Don't set UNISTD_H.
22050         * modules/unistd (Description): Change.
22051         (Depends-on): Add link-warning.
22052         (configure.ac): Update.
22053         (Makefile.am): Create unistd.h always. Substitute many new variables
22054         into it.
22055
22056 2007-02-18  Bruno Haible  <bruno@clisp.org>
22057
22058         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
22059         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
22060         HAVE_GETSUBOPT.
22061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
22062         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
22063         * lib/getsubopt.h: Remove file.
22064         * modules/getsubopt (Files): Remove lib/getsubopt.h.
22065         (Depends-on): Add stdlib.
22066         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22067         (Includes): Use <stdlib.h> instead of getsubopt.h.
22068         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
22069         Set HAVE_GETSUBOPT.
22070         * lib/getsubopt.c: Don't include getsubopt.h.
22071
22072 2007-02-18  Bruno Haible  <bruno@clisp.org>
22073
22074         * modules/fchdir (Depends-on): Add dup2.
22075
22076 2007-02-18  Bruno Haible  <bruno@clisp.org>
22077
22078         * lib/stdlib_.h: Handle glibc's special invocation convention
22079         specially.
22080
22081 2007-02-18  Bruno Haible  <bruno@clisp.org>
22082
22083         * modules/stdlib-tests: New file.
22084         * tests/test-stdlib.c: New file.
22085
22086         * modules/mkstemp (Files): Remove lib/mkstemp.h.
22087         (Depends-on): Add stdlib.
22088         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22089         (Includes): Use <stdlib.h> instead of mkstemp.h.
22090         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
22091         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
22092         * lib/mkstemp.c: Don't include mkstemp.h.
22093         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
22094         * lib/stdlib--.h: Don't include mkstemp.h.
22095
22096         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
22097         (Depends-on): Add stdlib.
22098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22099         (Includes): Use <stdlib.h> instead of mkdtemp.h.
22100         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
22101         HAVE_MKDTEMP.
22102         * lib/mkdtemp.c: Don't include mkdtemp.h.
22103         * lib/clean-temp.c: Don't include mkdtemp.h.
22104
22105         * modules/exit (Files): Remove lib/exit.h.
22106         (Depends-on): Add stdlib.
22107         (Makefile.am): Remove lib_SOURCES.
22108         (Include): Use <stdlib.h> instead of exit.h.
22109         * lib/argmatch.c: Don't include exit.h.
22110         * lib/execute.c: Likewise.
22111         * lib/pagealign_alloc.c: Likewise.
22112         * lib/pipe.c: Likewise.
22113         * lib/wait-process.c: Likewise.
22114         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
22115         * lib/exitfail.c: Likewise.
22116         * lib/savewd.c: Likewise.
22117         * lib/xsetenv.c: Likewise.
22118
22119         * modules/stdlib: New file.
22120         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
22121         and extra comments about mkstemp().
22122         * lib/exit.h: Remove file.
22123         * lib/mkdtemp.h: Remove file.
22124         * lib/mkstemp.h: Remove file.
22125         * m4/stdlib_h.m4: New file.
22126         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
22127
22128 2007-02-18  Bruno Haible  <bruno@clisp.org>
22129
22130         * modules/math-tests: New file.
22131         * tests/test-math.c: New file.
22132
22133         * modules/math: New file.
22134         * modules/mathl (Files): Remove lib/mathl.h.
22135         (Depends-on): Add math.
22136         (Makefile.am): Don't mention mathl.h.
22137         (Include): Use <math.h> instead of mathl.h.
22138         * lib/math_.h: New file.
22139         * lib/mathl.h: Remove file.
22140         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
22141         mathl.h.
22142         * lib/asinl.c: Likewise.
22143         * lib/atanl.c: Likewise.
22144         * lib/ceill.c: Likewise.
22145         * lib/cosl.c: Likewise.
22146         * lib/expl.c: Likewise.
22147         * lib/floorl.c: Likewise.
22148         * lib/frexpl.c: Likewise.
22149         * lib/ldexpl.c: Likewise.
22150         * lib/logl.c: Likewise.
22151         * lib/sincosl.c: Likewise.
22152         * lib/sinl.c: Likewise.
22153         * lib/sqrtl.c: Likewise.
22154         * lib/tanl.c: Likewise.
22155         * lib/trigl.c: Likewise.
22156         * m4/math_h.m4: New file.
22157         * MODULES.html.sh (Mathematics): Add math.
22158
22159 2007-02-17  Bruno Haible  <bruno@clisp.org>
22160
22161         * modules/wctype-tests: New file.
22162         * tests/test-wctype.c: New file.
22163
22164         * modules/wchar-tests: New file.
22165         * tests/test-wchar.c: New file.
22166
22167         * modules/unistd-tests: New file.
22168         * tests/test-unistd.c: New file.
22169
22170         * modules/time-tests: New file.
22171         * tests/test-time.c: New file.
22172
22173         * modules/sysexits-tests: New file.
22174         * tests/test-sysexits.c: New file.
22175
22176         * modules/sys_time-tests: New file.
22177         * tests/test-sys_time.c: New file.
22178
22179         * modules/sys_stat-tests: New file.
22180         * tests/test-sys_stat.c: New file.
22181
22182         * modules/sys_socket-tests: New file.
22183         * tests/test-sys_socket.c: New file.
22184
22185         * modules/sys_select-tests: New file.
22186         * tests/test-sys_select.c: New file.
22187
22188         * modules/string-tests: New file.
22189         * tests/test-string.c: New file.
22190
22191         * modules/stdbool-tests: New file.
22192         * tests/test-stdbool.c: New file.
22193
22194         * modules/netinet_in-tests: New file.
22195         * tests/test-netinet_in.c: New file.
22196
22197         * modules/inttypes-tests: New file.
22198         * tests/test-inttypes.c: New file.
22199
22200         * modules/fcntl-tests: New file.
22201         * tests/test-fcntl.c: New file.
22202
22203         * modules/byteswap-tests: New file.
22204         * tests/test-byteswap.c: New file.
22205
22206         * modules/arpa_inet-tests: New file.
22207         * tests/test-arpa_inet.c: New file.
22208
22209 2007-02-17  Bruno Haible  <bruno@clisp.org>
22210
22211         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
22212         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
22213         if the corresponding module is not enabled. Emit link warnings if
22214         the function is used nevertheless.
22215         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
22216         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
22217         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
22218         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
22219         * modules/inttypes (Depends-on): Add link-warning.
22220         (Makefile.am): Copy the contents of build-aux/link-warning.h into
22221         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
22222         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
22223         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
22224         * modules/imaxdiv (configure.ac): Likewise.
22225         * modules/strtoimax (configure.ac): Likewise.
22226         * modules/strtoumax (configure.ac): Likewise.
22227
22228 2007-02-17  Bruno Haible  <bruno@clisp.org>
22229
22230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
22231         gl_STRING_MODULE_INDICATOR_DEFAULTS.
22232         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
22233         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
22234
22235 2007-02-17  Bruno Haible  <bruno@clisp.org>
22236
22237         * modules/link-warning: New file.
22238         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
22239         * lib/string_.h (GL_LINK_WARNING): Remove definition.
22240         * modules/string (Depends-on): Add link-warning.
22241         (Makefile.am): Copy the contents of build-aux/link-warning.h into
22242         string.h.
22243         * MODULES.html.sh (Support for building libraries and executables): Add
22244         link-warning.
22245
22246 2007-02-17  Bruno Haible  <bruno@clisp.org>
22247
22248         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
22249         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
22250         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
22251         long lines.
22252
22253 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
22254             Bruno Haible  <bruno@clisp.org>
22255
22256         * modules/tmpfile: New file.
22257         * lib/tmpfile.c: New file.
22258         * m4/tmpfile.m4: New file.
22259         * MODULES.html.sh (func_all_modules): New section "Input/output".
22260
22261 2007-02-15  Bruno Haible  <bruno@clisp.org>
22262
22263         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
22264         (supports_delete_on_close): New function.
22265         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
22266
22267 2007-02-14  Bruno Haible  <bruno@clisp.org>
22268
22269         * modules/mbspcasecmp-tests: New file.
22270         * tests/test-mbspcasecmp.sh: New file.
22271         * tests/test-mbspcasecmp.c: New file.
22272
22273         New module mbspcasecmp.
22274         * modules/mbspcasecmp: New file.
22275         * lib/mbspcasecmp.c: New file.
22276         * lib/string_.h (strncasecmp): Change warning message.
22277         (mbspcasecmp): New declaration.
22278         * m4/mbspcasecmp.m4: New file.
22279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22280         GNULIB_MBSPCASECMP.
22281         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
22282         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
22283
22284 2007-02-14  Bruno Haible  <bruno@clisp.org>
22285
22286         * modules/mbsncasecmp-tests: New file.
22287         * tests/test-mbsncasecmp.sh: New file.
22288         * tests/test-mbsncasecmp.c: New file.
22289
22290         New module mbsncasecmp.
22291         * modules/mbsncasecmp: New file.
22292         * lib/mbsncasecmp.c: New file.
22293         * lib/string_.h (mbsncasecmp): New declaration.
22294         * m4/mbsncasecmp.m4: New file.
22295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22296         GNULIB_MBSNCASECMP.
22297         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
22298         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
22299
22300 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22301
22302         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
22303         Verify that it doesn't overlap with our flags.
22304         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
22305         do not have the desired effect in multibyte locales; instead, use
22306         mbscasecmp.
22307         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
22308         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
22309         we don't require GNU fnmatch ourselves (if our users require it, they
22310         should do so explicitly).
22311
22312         Fix regex code so it doesn't rely on strcasecmp.
22313         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
22314         Otherwise, include gnulib's langinfo.h.
22315         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
22316         undesirable behavior in non-C locales.  Instead, rely on localecharset.
22317         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
22318         * modules/regex (FILES): Remove m4/codeset.m4.
22319         (Depends-on): Add localcharset.  Remove strcase.
22320
22321 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22322
22323         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
22324         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22325
22326 2007-02-13  Bruno Haible  <bruno@clisp.org>
22327
22328         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
22329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22330
22331 2007-02-12  Bruno Haible  <bruno@clisp.org>
22332
22333         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
22334         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
22335         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
22336         time warning rather than a link error.
22337
22338 2007-02-12  Bruno Haible  <bruno@clisp.org>
22339
22340         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
22341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22343
22344 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22345
22346         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
22347         args, not 2.
22348
22349 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22350
22351         New module 'time', so that apps can include <time.h> as per
22352         POSIX and GNU instead of separate include files like time_r.h
22353         and timegm.h.  This implementation tries out a simpler approach
22354         for replacing decls in standard include files (as compared to
22355         the string module), somewhat as an experiment.
22356
22357         * config/srclist.txt: Comment out mktime.c for now.
22358         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
22359         since it doesn't apply any more.  Use generic wording instead.
22360         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
22361         'time'.
22362         * lib/time_.h, m4/time_h.m4, modules/time: New files.
22363         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
22364         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
22365         Don't include <sys/types.h>; no longer needed since we assume C89.
22366         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
22367         * lib/strftime.c: Likewise.
22368         * lib/time_r.c: Likewise.
22369         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
22370         * lib/nanosleep.c: Include <time.h> first, to check interface.
22371         * lib/strptime.c: Likewise.
22372         * lib/time_r.c: Likewise.
22373         * lib/timegm.c: Likewise.
22374         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
22375         needed.
22376         * lib/timegm.c: Don't include timegm.h; no longer needed.
22377         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
22378         time.h now handles any problems in that area.
22379         (struct timespec, nanosleep): Remove; time.h now arranges for these.
22380         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
22381         that time.h defines struct timespec.
22382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
22383         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
22384         handles that.
22385         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
22386         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
22387         needed.  Set REPLACE_LOCALTIME.
22388         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
22389         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
22390         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
22391         nanosleep; time_h.m4 now does that.  Don't require
22392         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
22393         module handles this now.
22394         * modules/getdate (Depends-on): Remove timespec.  Add time.
22395         * modules/nanosleep (Depends-on): Likewise.
22396         * modules/stat-time (Depends-on): Likewise.
22397         * modules/nanosleep (Include): Include time.h, not timespec.h.
22398         * modules/strptime (Files): Remove lib/strptime.h.
22399         (Depends-on): Add extensions, time.
22400         (Include): Include time.h, not strptime.h.
22401         * modules/time_r (Files): Remove lib/time_r.h.
22402         (Depends-on): Add time.
22403         (Include): Include time.h, not time_r.h.
22404         * modules/timegm: Likewise.
22405         * modules/timespec (Description): Now does timespec-related decls
22406         of our own, instead of struct timespec itself.
22407         (Depends-on): Add time; remove extensions.
22408         (Maintainer): Add self.
22409         * modules/utimecmp (Depends-on): Add time; remove timespec.
22410         * modules/utimens (Depends-on): Likewise.
22411         * modules/xnanosleep (Depends-on): Likewise.
22412
22413 2007-02-11  Bruno Haible  <bruno@clisp.org>
22414
22415         * lib/c-strstr.c: Include allocsa.h.
22416         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
22417         * lib/c-strcasestr.c: Include allocsa.h.
22418         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
22419         * lib/strcasestr.c: Include allocsa.h.
22420         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
22421         * lib/mbsstr.c: Include allocsa.h.
22422         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
22423         allocsa/freesa instead of malloc/free.
22424         * lib/mbscasestr.c: Include allocsa.h.
22425         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
22426         allocsa/freesa instead of malloc/free.
22427         * modules/c-strstr (Depends-on): Add allocsa.
22428         * modules/c-strcasestr (Depends-on): Likewise.
22429         * modules/strcasestr (Depends-on): Likewise.
22430         * modules/mbsstr (Depends-on): Likewise.
22431         * modules/mbscasestr (Depends-on): Likewise.
22432
22433 2007-02-11  Bruno Haible  <bruno@clisp.org>
22434
22435         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
22436
22437         * modules/mbsspn-tests: New file.
22438         * tests/test-mbsspn.sh: New file.
22439         * tests/test-mbsspn.c: New file.
22440
22441 2007-02-11  Bruno Haible  <bruno@clisp.org>
22442
22443         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
22444
22445         * modules/mbspbrk-tests: New file.
22446         * tests/test-mbspbrk.sh: New file.
22447         * tests/test-mbspbrk.c: New file.
22448
22449 2007-02-11  Bruno Haible  <bruno@clisp.org>
22450
22451         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
22452         unneeded cast.
22453
22454         * modules/mbscspn-tests: New file.
22455         * tests/test-mbscspn.sh: New file.
22456         * tests/test-mbscspn.c: New file.
22457
22458 2007-02-11  Bruno Haible  <bruno@clisp.org>
22459
22460         * modules/mbscasecmp-tests: New file.
22461         * tests/test-mbscasecmp.sh: New file.
22462         * tests/test-mbscasecmp.c: New file.
22463
22464 2007-02-11  Bruno Haible  <bruno@clisp.org>
22465
22466         Ensure O(n) worst-case complexity of mbscasestr.
22467         * lib/mbscasestr.c: Include stdbool.h.
22468         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
22469         functions.
22470         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
22471         the bookkeeping indicates that it's worth it.
22472         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
22473
22474         * modules/mbscasestr-tests: New file.
22475         * tests/test-mbscasestr1.c: New file.
22476         * tests/test-mbscasestr2.sh: New file.
22477         * tests/test-mbscasestr2.c: New file.
22478         * tests/test-mbscasestr3.sh: New file.
22479         * tests/test-mbscasestr3.c: New file.
22480         * tests/test-mbscasestr4.sh: New file.
22481         * tests/test-mbscasestr4.c: New file.
22482         * m4/locale-tr.m4: New file.
22483
22484 2007-02-11  Bruno Haible  <bruno@clisp.org>
22485
22486         Ensure O(n) worst-case complexity of mbsstr.
22487         * lib/mbsstr.c: Include stdbool.h.
22488         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
22489         functions.
22490         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
22491         bookkeeping indicates that it's worth it.
22492         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
22493
22494         * modules/mbsstr-tests: New file.
22495         * tests/test-mbsstr1.c: New file.
22496         * tests/test-mbsstr2.sh: New file.
22497         * tests/test-mbsstr2.c: New file.
22498         * tests/test-mbsstr3.sh: New file.
22499         * tests/test-mbsstr3.c: New file.
22500         * m4/locale-fr.m4: New file.
22501
22502 2007-02-11  Bruno Haible  <bruno@clisp.org>
22503
22504         * lib/mbsrchr.c (mbsrchr): Fix bug.
22505
22506         * modules/mbsrchr-tests: New file.
22507         * tests/test-mbsrchr.sh: New file.
22508         * tests/test-mbsrchr.c: New file.
22509
22510 2007-02-11  Bruno Haible  <bruno@clisp.org>
22511
22512         * lib/mbschr.c (mbschr): Fix bug.
22513
22514         * modules/mbschr-tests: New file.
22515         * tests/test-mbschr.sh: New file.
22516         * tests/test-mbschr.c: New file.
22517         * m4/locale-zh.m4: New file.
22518
22519 2007-02-11  Bruno Haible  <bruno@clisp.org>
22520
22521         Support for copying multibyte string iterators.
22522         * lib/mbiter.h: Include <string.h>.
22523         (mbiter_multi_copy): New function.
22524         (mbi_copy): New macro.
22525         * lib/mbuiter.h: Include <string.h>.
22526         (mbuiter_multi_copy): New function.
22527         (mbui_copy): New macro.
22528
22529 2007-02-11  Bruno Haible  <bruno@clisp.org>
22530
22531         New module mbslen.
22532         * modules/mbslen: New file.
22533         * lib/mbslen.c: New file.
22534         * lib/string_.h (mbslen): New declaration.
22535         * m4/mbslen.m4: New file.
22536         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22537         GNULIB_MBSLEN.
22538         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
22539         * MODULES.html.sh (Internationalization functions): Add mbslen.
22540
22541 2007-02-11  Bruno Haible  <bruno@clisp.org>
22542
22543         Ensure O(n) worst-case complexity of strcasestr substitute.
22544         * lib/strcasestr.c: Include stdbool.h.
22545         (knuth_morris_pratt): New function.
22546         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
22547         bookkeeping indicates that it's worth it.
22548         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
22549
22550         * modules/strcasestr-tests: New file.
22551         * tests/test-strcasestr.c: New file.
22552
22553 2007-02-11  Bruno Haible  <bruno@clisp.org>
22554
22555         Ensure O(n) worst-case complexity of c_strcasestr.
22556         * lib/c-strcasestr.c: Include stdbool.h, string.h.
22557         (knuth_morris_pratt): New function.
22558         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
22559         the bookkeeping indicates that it's worth it.
22560         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
22561
22562         * modules/c-strcasestr-tests: New file.
22563         * tests/test-c-strcasestr.c: New file.
22564
22565 2007-02-11  Bruno Haible  <bruno@clisp.org>
22566
22567         Ensure O(n) worst-case complexity of c_strstr.
22568         * lib/c-strstr.c: Include stdbool.h, string.h.
22569         (knuth_morris_pratt): New function.
22570         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
22571         bookkeeping indicates that it's worth it.
22572         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
22573
22574         * lib/c-strstr.c: Complete rewrite for maintainability.
22575
22576         * modules/c-strstr-tests: New file.
22577         * tests/test-c-strstr.c: New file.
22578
22579 2007-02-11  Bruno Haible  <bruno@clisp.org>
22580
22581         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
22582         5.2.1 and earlier, whereby \055 was treated just like the range
22583         delimiter '-'.
22584         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22585
22586 2007-02-08  Bruno Haible  <bruno@clisp.org>
22587
22588         * modules/regex (Depends-on): Add stdbool.
22589         Reported by Dalibor Topic <robilad@kaffe.org>.
22590
22591 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22592
22593         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
22594         Prefer returning from main to exiting from it.
22595         Remove unnecessary parens after sizeof.
22596
22597 2007-02-05  Bruno Haible  <bruno@clisp.org>
22598
22599         New module mbssep.
22600         * modules/mbssep: New file.
22601         * lib/mbssep.c: New file.
22602         * lib/string_.h (strsep): Add a conditional link warning.
22603         (mbssep): New declaration.
22604         * m4/mbssep.m4: New file.
22605         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22606         GNULIB_MBSSEP.
22607         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
22608         * MODULES.html.sh (Internationalization functions): Add mbssep.
22609
22610 2007-02-05  Bruno Haible  <bruno@clisp.org>
22611
22612         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
22613         Optimize search in case of 1 delimiter.
22614
22615 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
22616
22617         * lib/acl.h: Include sys/types.h before sys/acl.h.
22618
22619 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
22620
22621         Merge upstream fix for glibc bugzilla #3957:
22622
22623         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
22624
22625         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
22626         bit for RE_HAT_LISTS_NOT_NEWLINE.
22627         (build_charclass_op): Remove bogus comment.
22628
22629 2007-02-05  Simon Josefsson  <simon@josefsson.org>
22630
22631         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
22632
22633 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22634
22635         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
22636         * lib/memmem.c [!defined _LIBC]: Include config.h.
22637
22638 2007-02-04  Bruno Haible  <bruno@clisp.org>
22639
22640         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
22641         warning message.
22642
22643 2007-02-04  Bruno Haible  <bruno@clisp.org>
22644
22645         New module mbstok_r.
22646         * modules/mbstok_r: New file.
22647         * lib/mbstok_r.c: New file.
22648         * lib/string_.h (strtok_r): Change argument names to match the
22649         comments. Add a conditional link warning.
22650         (mbstok_r): New declaration.
22651         * m4/mbstok_r.m4: New file.
22652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22653         GNULIB_MBSTOK_R.
22654         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
22655         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
22656
22657 2007-02-04  Bruno Haible  <bruno@clisp.org>
22658
22659         New module mbsspn.
22660         * modules/mbsspn: New file.
22661         * lib/mbsspn.c: New file.
22662         * lib/string_.h (strspn): Add a conditional link warning.
22663         (mbsspn): New declaration.
22664         * m4/mbsspn.m4: New file.
22665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22666         GNULIB_MBSSPN.
22667         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
22668         * MODULES.html.sh (Internationalization functions): Add mbsspn.
22669
22670 2007-02-04  Bruno Haible  <bruno@clisp.org>
22671
22672         New module mbspbrk.
22673         * modules/mbspbrk: New file.
22674         * lib/mbspbrk.c: New file.
22675         * lib/string_.h (strpbrk): Add a conditional link warning.
22676         (mbspbrk): New declaration.
22677         * m4/mbspbrk.m4: New file.
22678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22679         GNULIB_MBSPBRK.
22680         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
22681         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
22682
22683 2007-02-04  Bruno Haible  <bruno@clisp.org>
22684
22685         New module mbscspn.
22686         * modules/mbscspn: New file.
22687         * lib/mbscspn.c: New file.
22688         * lib/string_.h (strcspn): Add a conditional link warning.
22689         (mbscspn): New declaration.
22690         * m4/mbscspn.m4: New file.
22691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22692         GNULIB_MBSCSPN.
22693         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
22694         * MODULES.html.sh (Internationalization functions): Add mbscspn.
22695
22696 2007-02-04  Bruno Haible  <bruno@clisp.org>
22697
22698         New module mbscasestr, reduced goal of strcasestr.
22699         * modules/mbscasestr: New file.
22700         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
22701         (mbscasestr): Renamed from strcasestr.
22702         * lib/strcasestr.c: Don't include mbuiter.h.
22703         (strcasestr): Remove support for multibyte locales.
22704         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
22705         Change the conditional link warning.
22706         (mbscasestr): New declaration.
22707         * m4/mbscasestr.m4: New file.
22708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
22709         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
22710         REPLACE_STRCASESTR.
22711         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
22712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22713         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
22714         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
22715         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
22716         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
22717         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
22718         (Depends-on): Remove mbuiter.
22719         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
22720
22721 2007-02-04  Bruno Haible  <bruno@clisp.org>
22722
22723         Simplify handling of strncasecmp.
22724         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
22725         the conditional link warning.
22726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22727         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
22728         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
22729         * modules/strcase (configure.ac): Don't invoke
22730         gl_STRING_MODULE_INDICATOR.
22731         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
22732
22733 2007-02-04  Bruno Haible  <bruno@clisp.org>
22734
22735         New module mbscasecmp, reduced goal of strcasecmp.
22736         * modules/mbscasecmp: New file.
22737         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
22738         (mbscasecmp): Renamed from strcasecmp.
22739         * lib/strcasecmp.c: Don't include mbuiter.h.
22740         (strcasecmp): Remove support for multibyte locales.
22741         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
22742         Change the conditional link warning.
22743         (mbscasecmp): New declaration.
22744         * m4/mbscasecmp.m4: New file.
22745         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
22746         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
22747         REPLACE_STRCASECMP.
22748         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
22749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22750         GNULIB_MBSCASECMP.
22751         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
22752         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
22753         * modules/strcase (Files): Remove m4/mbrtowc.m4.
22754         (Depends-on): Remove mbuiter.
22755         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
22756
22757 2007-02-04  Bruno Haible  <bruno@clisp.org>
22758
22759         New module mbsstr. Remove module strstr.
22760         * modules/mbsstr: New file.
22761         * modules/strstr: Remove file.
22762         * lib/mbsstr.c: Renamed from lib/strstr.c.
22763         (mbsstr): Renamed from strstr.
22764         * lib/string_.h (strstr): Remove declaration. Change the conditional
22765         link warning.
22766         (mbsstr): New declaration.
22767         * m4/mbsstr.m4: New file.
22768         * m4/strstr.m4: Remove file.
22769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22770         REPLACE_STRSTR.
22771         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
22772         Don't initialize GNULIB_STRSTR.
22773         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
22774         substitute GNULIB_STRSTR and REPLACE_STRSTR.
22775         * MODULES.html.sh (Internationalization functions): Add mbsstr.
22776         (Support for systems lacking ANSI C 89): Remove strstr.
22777
22778 2007-02-04  Bruno Haible  <bruno@clisp.org>
22779
22780         New module mbsrchr.
22781         * modules/mbsrchr: New file.
22782         * lib/mbsrchr.c: New file.
22783         * lib/string_.h (strrchr): Add a conditional link warning.
22784         (mbsrchr): New declaration.
22785         * m4/mbsrchr.m4: New file.
22786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22787         GNULIB_MBSRCHR.
22788         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
22789         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
22790
22791 2007-02-04  Bruno Haible  <bruno@clisp.org>
22792
22793         New module mbschr.
22794         * modules/mbschr: New file.
22795         * lib/mbschr.c: New file.
22796         * lib/string_.h (strchr): Add a conditional link warning.
22797         (mbschr): New declaration.
22798         * m4/mbschr.m4: New file.
22799         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
22800         GNULIB_MBSCHR.
22801         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
22802         * MODULES.html.sh (Internationalization functions): Add mbschr.
22803
22804 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22805
22806         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
22807
22808         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
22809
22810 2007-02-04  Bruno Haible  <bruno@clisp.org>
22811
22812         New module description section 'configure.ac-early'.
22813         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
22814         (func_get_autoconf_early_snippet): New function.
22815         (func_import, func_create_testdir): Use it. Remove special cases for
22816         modules 'extensions' and 'lock'.
22817         * modules/extensions (configure.ac-early): Require
22818         gl_USE_SYSTEM_EXTENSIONS.
22819         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
22820
22821 2007-02-04  Bruno Haible  <bruno@clisp.org>
22822
22823         Make use of gcj-4.3's -fsource and -ftarget option.
22824         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
22825         and if so try the options -fsource and -ftarget.
22826         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
22827         source_version, ftarget_option, target_version arguments.
22828         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
22829         (is_envjavac_oldgcj_14_14_usable): Renamed from
22830         is_envjavac_gcj_14_14_usable.
22831         (is_envjavac_oldgcj_14_13_usable): Renamed from
22832         is_envjavac_gcj_14_13_usable.
22833         (is_gcj_present): Update.
22834         (is_gcj_43, is_gcj43_usable): New functions.
22835         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
22836         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
22837         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
22838         try the options -fsource and -ftarget.
22839
22840 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
22841
22842         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
22843         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
22844         larger value.
22845
22846 2007-02-03  Jim Meyering  <jim@meyering.net>
22847
22848         Give tools a better chance to allocate space for very large buffers.
22849         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
22850
22851         Make pwd and readlink work also when run with an unreadable parent dir
22852         on systems with openat support.
22853         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
22854         provided getcwd function, even when we have openat support.
22855         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
22856
22857 2007-02-02  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
22860         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
22861         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
22862         portability problems if one of these functions is only used on specific
22863         platforms.
22864         Reported by Paul Eggert.
22865
22866 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
22867
22868         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
22869         is causing more trouble than it's curing.
22870         * lib/regex_internal.h (__mempcpy): Remove.
22871         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
22872         (and make the code a tad smaller to boot).
22873         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
22874
22875 2007-02-02  Jim Meyering  <jim@meyering.net>
22876
22877         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
22878         section, not in the Makefile.am: one.
22879
22880 2007-02-02  Eric Blake  <ebb9@byu.net>
22881
22882         * lib/strchrnul.c: Always include config.h first.
22883
22884         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
22885         gnulib strstr is not necessary here.
22886
22887 2007-02-02  Simon Josefsson  <simon@josefsson.org>
22888
22889         * m4/socklen.m4: Fix typo.
22890
22891 2007-02-02  Eric Blake  <ebb9@byu.net>
22892
22893         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
22894         * modules/netinet_in (Makefile.am): Likewise.
22895
22896 2007-02-01  Bruno Haible  <bruno@clisp.org>
22897
22898         * lib/string_.h (GL_LINK_WARNING): New macro.
22899         (strcasecmp, strstr, strcasestr): If provided by the system,
22900         conditionally define as a macro that leads to a warning instead of to
22901         an error.
22902         (strncasecmp): Conditionally define as a macro that leads to a warning.
22903
22904 2007-02-01  Karl Berry  <karl@gnu.org>
22905
22906         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
22907
22908 2007-02-01  Bruno Haible  <bruno@clisp.org>
22909
22910         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
22911         renamings.
22912
22913 2007-02-01  Eric Blake  <ebb9@byu.net>
22914
22915         * modules/regex (Depends-on): Revert dependence on mempcpy.
22916         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
22917         module's definition of mempcpy.
22918         Reported by Paul Eggert.
22919
22920 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
22921
22922         * lib/string_.h: If the gnulib module XYZ is not present, undefine
22923         the symbol XYZ before redefining it.  This fixes a problem with
22924         programs that don't use XYZ, when compiled on systems that define
22925         XYZ to something else.
22926
22927 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
22928
22929         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
22930         occurs when "mkdir -m foo" creates a setgid directory that is (1)
22931         writeable to group or other and (2) is intended to have a special
22932         mode bit that is set or cleared.  In such a case, the directory
22933         should be neither group- nor other-writeable until the special
22934         mode bits are right.
22935
22936 2007-01-31  Eric Blake  <ebb9@byu.net>
22937
22938         * modules/mountlist (Depends-on): Add strstr.
22939
22940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
22941         bug.
22942         * modules/string (Makefile.am): Remove redundant replacement.
22943         * modules/regex (Depends-on): Add mempcpy.
22944
22945 2007-01-31  Bruno Haible  <bruno@clisp.org>
22946
22947         New module description field 'Link'.
22948         * gnulib-tool (func_usage): Document --extract-link-directive.
22949         (sed_extract_prog): Recognize 'Link' directive.
22950         (func_get_link_directive): New function.
22951         (func_import): Show summary of link directives.
22952         Handle --extract-link-directive option.
22953         * modules/acl (Link): New section.
22954         * modules/clock-time (Link): New section.
22955         * modules/euidaccess (Link): New section.
22956         * modules/gettext (Link): New section.
22957         * modules/iconv (Link): New section.
22958         * modules/lock (Link): New section.
22959         * modules/nanosleep (Link): New section.
22960         * modules/readline (Link): New section.
22961
22962 2007-01-27  Bruno Haible  <bruno@clisp.org>
22963
22964         Enforce the use of gnulib modules for unportable <string.h> functions.
22965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
22966         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
22967         (gl_HEADER_STRING_H_BODY): Require it.
22968         * lib/string_.h: If the gnulib module XYZ is not present, redefine
22969         the symbol XYZ to one that gives a link error.
22970         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
22971         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
22972         * modules/mempcpy (configure.ac): Likewise.
22973         * modules/memrchr (configure.ac): Likewise.
22974         * modules/stpcpy (configure.ac): Likewise.
22975         * modules/stpncpy (configure.ac): Likewise.
22976         * modules/strcase (configure.ac): Likewise.
22977         * modules/strcasestr (configure.ac): Likewise.
22978         * modules/strchrnul (configure.ac): Likewise.
22979         * modules/strdup (configure.ac): Likewise.
22980         * modules/strndup (configure.ac): Likewise.
22981         * modules/strnlen (configure.ac): Likewise.
22982         * modules/strpbrk (configure.ac): Likewise.
22983         * modules/strsep (configure.ac): Likewise.
22984         * modules/strstr (configure.ac): Likewise.
22985         * modules/strtok_r (configure.ac): Likewise.
22986
22987 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
22988
22989         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
22990
22991 2007-01-30  Jim Meyering  <jim@meyering.net>
22992
22993         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
22994
22995 2007-01-29  Bruno Haible  <bruno@clisp.org>
22996
22997         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
22998         * lib/execute.c: Likewise.
22999         * lib/pipe.c: Likewise.
23000         * lib/printf-args.h: Likewise.
23001         * lib/printf-args.c: Likewise.
23002         * lib/printf-parse.c: Likewise.
23003         * lib/vasnprintf.c: Likewise.
23004
23005 2007-01-29  Eric Blake  <ebb9@byu.net>
23006
23007         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
23008         declaration.
23009
23010 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23011
23012         * lib/strptime.h (strptime): Use 'restrict' for args where
23013         POSIX requires this.
23014         * lib/strptime.c (strptime): Likewise.
23015         Change license notice from LGPL to GPL, since gnulib-tool will
23016         change this as needed.
23017         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
23018         defined.
23019         Include "strptime.h" first, to check interface.
23020         Do not #undef _LIBC and _NL_CURRENT.
23021         Do not include <stdlib.h>; no longer needed.
23022         Include "time_r.h" and declare ptime_locale_status
23023         only if _LIBC is not defined.
23024         (__P): Remove unused macro.
23025         (match_string): Bring back glibc version, but use it only if _LIBC
23026         is defined.
23027         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
23028         Remove unnecessary assertion and abort() call.
23029         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
23030         * m4/strptime.m4: Fix serial number comment.
23031         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
23032         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
23033         (Depends-on): Add time_r.
23034
23035 2007-01-29  Bruno Haible  <bruno@clisp.org>
23036
23037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23038         strptime.
23039         * modules/strptime (Depends-on): Add stdbool.
23040         * lib/strptime.h: Include <time.h> always. Add comments.
23041
23042 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23043
23044         * modules/strptime: New file.
23045         * lib/strptime.h: New file.
23046         * lib/strptime.c: New file.
23047         * m4/strptime.m4: New file.
23048
23049 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * MODULES.html.sh: New module mpsort.
23052         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
23053
23054         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
23055         a circularity problem with HP-UX ia64 reported by Bob Proulx in
23056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
23057         All uses changed.
23058         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
23059         All uses changed.
23060         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
23061         to _Restrict_.
23062         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
23063         the parameter matches the prototype.
23064
23065 2007-01-28  Jim Meyering  <jim@meyering.net>
23066
23067         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
23068         sys/time.h here, reverting that part of the previous patch:
23069         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
23070
23071 2007-01-28  Bruno Haible  <bruno@clisp.org>
23072
23073         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
23074         value of $(SYS_TIME_H).
23075         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
23076         remove it conditionally, too. [added by Jim Meyering]
23077         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
23078         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
23079         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
23080         GETTIMEOFDAY_REPLACEMENT to 1.
23081
23082 2007-01-28  Bruno Haible  <bruno@clisp.org>
23083
23084         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
23085         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
23086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
23087         Set UNISTD_H instead of UNISTD_H2.
23088         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
23089
23090 2007-01-28  Bruno Haible  <bruno@clisp.org>
23091
23092         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
23093         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
23094
23095 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23096
23097         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
23098         (func_create_testdir): Ensure C locale for `grep' and `tr'
23099         character ranges.
23100         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
23101         ACLOCAL_AMFLAGS parsing state machine.
23102
23103 2007-01-27  Bruno Haible  <bruno@clisp.org>
23104
23105         * modules/unistr/base: Update.
23106
23107 2007-01-27  Bruno Haible  <bruno@clisp.org>
23108
23109         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
23110         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
23111         * modules/unistr/u32-mbtouc-unsafe: Renamed from
23112         modules/unistr/u32-mbtouc.
23113         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
23114         * lib/unistr.h: Update.
23115         * lib/linebreak.c: Update.
23116         * modules/unistr/u32-mbtouc: Renamed from
23117         modules/unistr/u32-mbtouc-safe.
23118         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
23119         * lib/unistr.h: Update.
23120         * lib/unistr/u32-to-u8.c: Update.
23121         * lib/unistr/u32-to-u16.c: Update.
23122
23123 2007-01-27  Bruno Haible  <bruno@clisp.org>
23124
23125         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
23126         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
23127         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
23128         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
23129         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
23130         * modules/unistr/u16-mbtouc-unsafe: Renamed from
23131         modules/unistr/u16-mbtouc.
23132         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
23133         * lib/unistr.h: Update.
23134         * lib/linebreak.c: Update.
23135         * modules/linebreak: Update.
23136         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
23137         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
23138         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
23139         * modules/unistr/u16-mbtouc: Renamed from
23140         modules/unistr/u16-mbtouc-safe.
23141         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
23142         * lib/unistr.h: Update.
23143         * lib/unistr/u16-to-u8.c: Update.
23144         * modules/unistr/u16-to-u8: Update.
23145         * lib/unistr/u16-to-u32.c: Update.
23146         * modules/unistr/u16-to-u32: Update.
23147
23148 2007-01-27  Bruno Haible  <bruno@clisp.org>
23149
23150         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
23151         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
23152         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
23153         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
23154         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
23155         * modules/unistr/u8-mbtouc-unsafe: Renamed from
23156         modules/unistr/u8-mbtouc.
23157         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
23158         * lib/unistr.h: Update.
23159         * lib/striconveh.c: Update.
23160         * modules/striconveh: Update.
23161         * lib/linebreak.c: Update.
23162         * modules/linebreak: Update.
23163         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
23164         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
23165         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
23166         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
23167         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
23168         * lib/unistr.h: Update.
23169         * lib/striconveh.c: Update.
23170         * modules/striconveh: Update.
23171         * lib/unistr/u8-to-u16.c: Update.
23172         * modules/unistr/u8-to-u16: Update.
23173         * lib/unistr/u8-to-u32.c: Update.
23174         * modules/unistr/u8-to-u32: Update.
23175
23176 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23177
23178         Sync from Libtool.
23179         * lib/argz.c: Do not include strings.h nor memory.h, include
23180         string.h unconditionally.  Patch by Simon Josefsson.
23181
23182 2007-01-27  Bruno Haible  <bruno@clisp.org>
23183
23184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
23185         from gl_HEADER_STRING_H_BODY.
23186         (gl_HEADER_STRING_H_BODY): Require it.
23187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
23188         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
23189         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
23190         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
23191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23192         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
23193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23194         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
23195         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
23196         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
23198         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
23199         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
23200         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23201         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23202
23203 2007-01-27  Bruno Haible  <bruno@clisp.org>
23204
23205         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
23206         check_PROGRAMS into noinst_PROGRAMS.
23207         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
23208         check_PROGRAMS in this case.
23209         (func_import): Set for_test to false.
23210         (func_create_testdir): Set for_test to true.
23211
23212 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23213             Bruno Haible  <bruno@clisp.org>
23214
23215         * modules/strcasestr (Files): Remove lib/strcasestr.h.
23216         (Depends-on): Add string.
23217         (Includes): Use <string.h> instead of strcasestr.h.
23218         * modules/string (Makefile.am): Also substitute the value of
23219         REPLACE_STRCASESTR.
23220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
23221         assume strcasestr is declared in <string.h> not <strings.h>. Also
23222         set REPLACE_STRCASESTR.
23223         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
23224         REPLACE_STRCASESTR.
23225         * lib/strcasestr.h: Remove file.
23226         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
23227         * lib/string_.h (strcasestr): New declaration.
23228
23229 2007-01-27  Bruno Haible  <bruno@clisp.org>
23230
23231         * lib/string_.h: Use 'extern'.
23232
23233 2007-01-27  Jim Meyering  <jim@meyering.net>
23234
23235         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
23236         of set-but-not-used local, "q".
23237
23238         * lib/mempcpy.c: Include <config.h> before <string.h>.
23239         This fixes a compilation error on HP-UX, due to the system's
23240         "restrict"-using mempcpy prototype.
23241
23242 2007-01-26  Bruno Haible  <bruno@clisp.org>
23243
23244         Small optimization.
23245         * lib/javacomp.c: Include c-strstr.h.
23246          (is_envjavac_gcj): Use c_strstr instead of strstr.
23247         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
23248
23249 2007-01-26  Bruno Haible  <bruno@clisp.org>
23250
23251         * MODULES.html.sh (Unicode string functions): Add the new modules.
23252
23253         * modules/uniconv/u32-strconv-to-locale: New file.
23254         * lib/uniconv/u32-strconv-to-locale.c: New file.
23255
23256         * modules/uniconv/u16-strconv-to-locale: New file.
23257         * lib/uniconv/u16-strconv-to-locale.c: New file.
23258
23259         * modules/uniconv/u8-strconv-to-locale: New file.
23260         * lib/uniconv/u8-strconv-to-locale.c: New file.
23261
23262         * modules/uniconv/u32-strconv-from-locale: New file.
23263         * lib/uniconv/u32-strconv-from-locale.c: New file.
23264
23265         * modules/uniconv/u16-strconv-from-locale: New file.
23266         * lib/uniconv/u16-strconv-from-locale.c: New file.
23267
23268         * modules/uniconv/u8-strconv-from-locale: New file.
23269         * lib/uniconv/u8-strconv-from-locale.c: New file.
23270
23271         * modules/uniconv/u32-strconv-to-enc: New file.
23272         * lib/uniconv/u32-strconv-to-enc.c: New file.
23273         * modules/uniconv/u32-strconv-to-enc-tests: New file.
23274         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
23275
23276         * modules/uniconv/u16-strconv-to-enc: New file.
23277         * lib/uniconv/u16-strconv-to-enc.c: New file.
23278         * lib/uniconv/u-strconv-to-enc.h: New file.
23279         * modules/uniconv/u16-strconv-to-enc-tests: New file.
23280         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
23281
23282         * modules/uniconv/u8-strconv-to-enc: New file.
23283         * lib/uniconv/u8-strconv-to-enc.c: New file.
23284         * modules/uniconv/u8-strconv-to-enc-tests: New file.
23285         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
23286
23287         * modules/uniconv/u32-strconv-from-enc: New file.
23288         * lib/uniconv/u32-strconv-from-enc.c: New file.
23289         * modules/uniconv/u32-strconv-from-enc-tests: New file.
23290         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
23291
23292         * modules/uniconv/u16-strconv-from-enc: New file.
23293         * lib/uniconv/u16-strconv-from-enc.c: New file.
23294         * modules/uniconv/u16-strconv-from-enc-tests: New file.
23295         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
23296
23297         * modules/uniconv/u8-strconv-from-enc: New file.
23298         * lib/uniconv/u8-strconv-from-enc.c: New file.
23299         * lib/uniconv/u-strconv-from-enc.h: New file.
23300         * modules/uniconv/u8-strconv-from-enc-tests: New file.
23301         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
23302
23303         * modules/uniconv/u32-conv-from-enc: New file.
23304         * lib/uniconv/u32-conv-from-enc.c: New file.
23305         * modules/uniconv/u32-conv-from-enc-tests: New file.
23306         * tests/uniconv/test-u32-conv-from-enc.c: New file.
23307
23308         * modules/uniconv/u16-conv-from-enc: New file.
23309         * lib/uniconv/u16-conv-from-enc.c: New file.
23310         * lib/uniconv/u-conv-from-enc.h: New file.
23311         * modules/uniconv/u16-conv-from-enc-tests: New file.
23312         * tests/uniconv/test-u16-conv-from-enc.c: New file.
23313
23314         * modules/uniconv/u8-conv-from-enc: New file.
23315         * lib/uniconv/u8-conv-from-enc.c: New file.
23316         * modules/uniconv/u8-conv-from-enc-tests: New file.
23317         * tests/uniconv/test-u8-conv-from-enc.c: New file.
23318
23319         * modules/uniconv/base: New file.
23320         * lib/uniconv.h: New file.
23321
23322 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
23323
23324         * doc/gnulib-tool.texi (Initial import): Update to match current
23325         behavior with strdup module.
23326         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
23327         * lib/memmem.h: Remove; all uses removed.  This is now done
23328         by <string.h>.
23329         * lib/mempcpy.h: Likewise.
23330         * lib/memrchr.h: Likewise.
23331         * lib/stpcpy.h: Likewise.
23332         * lib/stpncpy.h: Likewise.
23333         * lib/strcase.h: Likewise.
23334         * lib/strchrnul.h: Likewise.
23335         * lib/strdup.h: Likewise.
23336         * lib/strndup.h: Likewise.
23337         * lib/strnlen.h: Likewise.
23338         * lib/strpbrk.h: Likewise.
23339         * lib/strsep.h: Likewise.
23340         * lib/strstr.h: Likewise.
23341         * lib/strtok_r.h: Likewise.
23342         * lib/string_.h: New file.
23343         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
23344         Rely on <string.h> instead.
23345         * lib/canon-host.c: Likewise.
23346         * lib/chdir-long.c: Likewise.
23347         * lib/concatpath.c: Likewise.
23348         * lib/exclude.c: Likewise.
23349         * lib/fchdir.c: Likewise.
23350         * lib/getaddrinfo.c: Likewise.
23351         * lib/getcwd.c: Likewise.
23352         * lib/getsubopt.c: Likewise.
23353         * lib/glob.c: Likewise.
23354         * lib/hard-locale.c: Likewise.
23355         * lib/iconvme.c: Likewise.
23356         * lib/javacomp.c: Likewise.
23357         * lib/mempcpy.c: Likewise.
23358         * lib/memrchr.c: Likewise.
23359         * lib/regex_internal.h: Likewise.
23360         * lib/stpncpy.c: Likewise.
23361         * lib/strcasecmp.c: Likewise.
23362         * lib/strchrnul.c: Likewise.
23363         * lib/strdup.c: Likewise.
23364         * lib/striconv.c: Likewise.
23365         * lib/striconveh.c: Likewise.
23366         * lib/striconveha.c: Likewise.
23367         * lib/strncasecmp.c: Likewise.
23368         * lib/strndup.c: Likewise.
23369         * lib/strnlen.c: Likewise.
23370         * lib/strsep.c: Likewise.
23371         * lib/strstr.c: Likewise.
23372         * lib/strtok_r.c: Likewise.
23373         * lib/userspec.c: Likewise.
23374         * lib/w32spawn.h: Likewise.
23375         * lib/xstrndup.c: Likewise.
23376         * lib/mountlist.c (strstr): Remove decl.
23377         * m4/string_h.m4: New file.
23378         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
23379         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
23380         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
23381         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
23382         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
23383         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
23384         Set REPLACE_STRCASECMP if necessary.
23385         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
23386         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
23387         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
23388         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
23389         HAVE_DECL_STRDUP if necessary.
23390         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
23391         since gl_FUNC_STRNDUP does that now.
23392         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
23393         Check for decl here...
23394         (gl_PREREQ_STRNLEN): ... not here.
23395         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
23396         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
23397         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
23398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
23399         necessary.
23400         * modules/string: New file.
23401         * modules/memmem (Files): Remove special-purpose include file.
23402         (Depends-on): Add string.
23403         (Include): Include <string.h>, not the removed file.
23404         * modules/mempcpy: Likewise.
23405         * modules/memrchr: Likewise.
23406         * modules/stpcpy: Likewise.
23407         * modules/stpncpy: Likewise.
23408         * modules/strcase: Likewise.
23409         * modules/strchrnul: Likewise.
23410         * modules/strdup: Likewise.
23411         * modules/strndup: Likewise.
23412         * modules/strnlen: Likewise.
23413         * modules/strpbrk: Likewise.
23414         * modules/strsep: Likewise.
23415         * modules/strstr: Likewise.
23416         * modules/strtok_r: Likewise.
23417         * tests/test-dirname.c: Don't include "strdup.h", since
23418         <string.h> now suffices.
23419         * tests/test-memmem.c: Don't include "memmem.h", since
23420         <string.h> now suffices.
23421
23422 2007-01-25  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
23425         *resultp is 0.
23426
23427         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
23428         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
23429         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
23430         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
23431
23432         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
23433         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
23434         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
23435         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
23436         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
23437         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
23438
23439 2007-01-24  Bruno Haible  <bruno@clisp.org>
23440
23441         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
23442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
23443         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
23444         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
23445         gl_FUNC_FTS_CORE.
23446         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
23447         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
23448         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23449         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
23450         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
23451         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
23452         gl_FUNC_FCHOWNAT.
23453         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
23454         gl_FUNC_STRFTIME.
23455         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
23456         Reported by Ralf Wildenhues.
23457
23458 2007-01-24  Bruno Haible  <bruno@clisp.org>
23459
23460         Drop AC_REQUIRE calls that are redundant with the module dependencies.
23461         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
23462         gl_GETADDRINFO.
23463         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
23464         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
23465         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
23466
23467 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
23468
23469         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
23470         Don't use 'exit'; just return from 'main'.
23471         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
23472
23473         * lib/fnmatch_.h: Readjust white space and comments to match
23474         glibc, to avoid spurious diffs.
23475
23476 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23477
23478         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
23479         2004-12-01 change by Jakub Jelinek, since this code won't compile
23480         if !LIBC.  Problem reported by Bob Proulx.
23481
23482 2007-01-23  Bruno Haible  <bruno@clisp.org>
23483
23484         * lib/striconveh.c: Include c-strcaseeq.h.
23485         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
23486         * modules/striconveh (Depends-on): Add c-strcaseeq.
23487
23488 2007-01-23  Bruno Haible  <bruno@clisp.org>
23489
23490         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
23491
23492         * modules/c-strcaseeq: New file.
23493         * lib/c-strcaseeq.h: New file.
23494
23495         * modules/streq: New file.
23496         * lib/streq.h: New file.
23497
23498 2007-01-23  Bruno Haible  <bruno@clisp.org>
23499
23500         * modules/striconveha-tests: New file.
23501         * tests/test-striconveha.c: New file.
23502
23503         * lib/striconveha.h: Include <stdbool.h>.
23504         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
23505         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
23506         (mem_iconveha_notranslit): Renamed from mem_iconveha.
23507         (mem_iconveha): New function.
23508         (str_iconveha_notranslit): Renamed from str_iconveha.
23509         (str_iconveha): New function.
23510         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
23511         c-strcase.
23512
23513 2007-01-23  Bruno Haible  <bruno@clisp.org>
23514
23515         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
23516         encodings without forgiving before trying any encoding with handler.
23517         (str_iconveha): Try all encodings without forgiving before trying any
23518         encoding with handler.
23519
23520 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23521
23522         Import the following changes from libc.
23523
23524         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
23525
23526         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
23527
23528         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
23529
23530         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
23531         normal_bracket label.
23532
23533         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
23534
23535         [BZ #361]
23536         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
23537         to normal_bracket after fetching the next character.
23538
23539 2007-01-22  Bruno Haible  <bruno@clisp.org>
23540
23541         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
23542         argument.
23543         * lib/striconveh.c (iconv_carefully_1): New function.
23544         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
23545         argument.
23546         (str_cd_iconveh): Update.
23547         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
23548         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
23549         * tests/test-striconveh.c (MAGIC): New macro.
23550         (new_offsets): New function.
23551         (main): Test call with and without offsets.
23552
23553 2007-01-22  Bruno Haible  <bruno@clisp.org>
23554
23555         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
23556         * modules/sys_select (Makefile.am): Likewise.
23557         * modules/sys_socket (Makefile.am): Likewise.
23558         * modules/sys_time (Makefile.am): Likewise.
23559
23560 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
23561
23562         * modules/gettimeofday (License): Change from GPL to LGPL, since
23563         gettimeofday is a library function.
23564
23565 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23566
23567         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
23568
23569 2007-01-21  Bruno Haible  <bruno@clisp.org>
23570
23571         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
23572
23573 2007-01-21  Bruno Haible  <bruno@clisp.org>
23574
23575         * modules/striconveha: New file.
23576         * lib/striconveha.h: New file.
23577         * lib/striconveha.c: New file.
23578         * MODULES.html.sh (Internationalization functions): Add striconveha.
23579         * lib/striconv.c (str_iconv): Optimize the case of an empty input
23580         string.
23581         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
23582
23583 2007-01-21  Bruno Haible  <bruno@clisp.org>
23584
23585         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
23586         * lib/striconveh.c (str_iconveh): Likewise.
23587
23588 2007-01-21  Bruno Haible  <bruno@clisp.org>
23589
23590         * lib/striconveh.h (mem_iconveh): New declaration.
23591         * lib/striconveh.c (mem_iconveh): New function.
23592         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
23593
23594 2007-01-21  Bruno Haible  <bruno@clisp.org>
23595
23596         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
23597
23598         * lib/striconveh.h (mem_cd_iconveh): Change specification.
23599         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
23600         original result buffer.
23601         (str_cd_iconveh): Update.
23602         * tests/test-striconveh.c (main): Update.
23603
23604         * lib/striconv.h (mem_cd_iconv): Change specification.
23605         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
23606         result buffer.
23607         (str_cd_iconv): Update.
23608         * tests/test-striconv.c (main): Update.
23609
23610 2007-01-21  Bruno Haible  <bruno@clisp.org>
23611
23612         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
23613
23614 2007-01-20  Jim Meyering  <jim@meyering.net>
23615
23616         * lib/userspec.c (parse_with_separator): If a user or group string
23617         starts with "+", skip the corresponding name-to-ID look-up, since
23618         such a look-up must fail: user and group names may not include "+".
23619
23620 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23621
23622         * lib/poll.c: Include sys/time.h and time.h unconditionally,
23623         since we now assume the sys_time module.
23624         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
23625         check for sys/time.h; no longer needed.
23626         * modules/poll (Depends-on): Depend on sys_time.
23627
23628 2007-01-18  Bruno Haible  <bruno@clisp.org>
23629
23630         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
23631         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
23632
23633         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
23634         gettimeofday.
23635
23636         * tests/test-gettimeofday.c: Include <time.h>.
23637         (dummy): Remove variable.
23638
23639         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
23640         gl_HEADER_SYS_TIME_H.
23641         (gl_HEADER_SYS_TIME_H): New macro.
23642
23643         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
23644         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
23645         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
23646         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
23647         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
23648         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
23649         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
23650         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
23651         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
23652         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
23653         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
23654
23655         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
23656         last change; it caused a compilation error when cross-compiling to
23657         Cygwin.
23658
23659 2007-01-18  Jim Meyering  <jim@meyering.net>
23660
23661         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
23662         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
23663         than the race-prone "test -d sys || mkdir sys".
23664         (configure.ac): Use AC_PROG_MKDIR_P.
23665         * modules/sys_select: Likewise.
23666         * modules/sys_socket: Likewise.
23667         * modules/sys_time: Likewise.
23668
23669 2007-01-18  Eric Blake  <ebb9@byu.net>
23670
23671         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
23672         replace gettimeofday.
23673         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
23674         name, to avoid infinite recursion.
23675
23676 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
23677
23678         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
23679         module sys_time.
23680         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
23681         assume timespec.h defines struct timeval.
23682         * lib/settime.c: Likewise.
23683         * lib/utimens.c: Likewise.
23684         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
23685         since we now assume the gettimeofday module.
23686         * lib/tempname.c (__gen_tempname): Likewise.
23687         * lib/gettimeofday.h: Remove.
23688         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
23689         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
23690         Include <time.h>, for 'time()'.
23691         (localtime_buffer_addr): Also use this workaround if
23692         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
23693         to simplify the uses.  All uses changed.
23694         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
23695         that #undef is inside {}, and 'const' follows type name consistently.
23696         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
23697         (gettimeofday): Do not use the maximum possible value for
23698         tv->tv_usec, since that might break usages other than ls.c.
23699         Instead, we'll leave ls.c alone.  This undoes today's patch
23700         by Bruno.  Add a compile-time warning for 1s-clock resolution;
23701         we've never observed the problem but might as well keep the
23702         canary.
23703         * lib/nanosleep.c: Include timespec.h first, for interface check.
23704         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
23705         now assume the sys_time module.
23706         * lib/tempname.c: Likewise.
23707         * lib/timespec.h: Likewise.
23708         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
23709         needed.
23710         * lib/strftime.c: Likewise.
23711         * lib/timespec.h: Likewise.
23712         * lib/posixtm.c: Include posixtm.h first, for interface check.
23713         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
23714         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
23715         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
23716         * lib/sys_time_.h: New file.
23717         * lib/timespec.h (struct timespec): Use long int, not long.
23718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
23719         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
23720         Remove obsolescent call to AC_HEADER_TIME.
23721         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23723         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
23724         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
23725         Likewise.
23726         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23727         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
23728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
23729         into the sys_time module.  Check for gettimeofday just once.
23730         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
23731         for gettimeofday signature to just check the signature.  Merely
23732         compile it, since linking doesn't test signature.  Improve test for
23733         whether gettimeofday.o is actually needed.
23734         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
23735         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
23736         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
23737         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
23738         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
23739         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
23740         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
23741         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
23742         than worrying about sys/time.h.
23743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23744         Don't bother worrying about TIME_WITH_SYS_TIME.
23745         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
23746         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
23747         * m4/sys_time_h.m4: New file.
23748         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
23749         Don't include sys/time.h.  Return from main rather than exiting.
23750         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
23751         all uses changed.
23752         * modules/gethrxtime (Depends-on): Add sys_time.
23753         * modules/gettime (Depends-on): Likewise.
23754         * modules/gettimeofday (Depends-on): Likewise.
23755         * modules/nanosleep (Depends-on): Likewise.
23756         * modules/settime (Depends-on): Likewise.
23757         * modules/tempname (Depends-on): Likewise.
23758         * modules/utimens (Depends-on): Likewise.
23759         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
23760         (Include:) Change back to <sys/time.h>.
23761         (Maintainer:) Add self.
23762         * modules/sys_time: New file.
23763         * modules/tempname (Depends-on): Add gettimeofday.
23764         * tests/test-gettimeofday.c: Include <sys/time.h>
23765         rather than gettimeofday.h.
23766
23767 2007-01-17  Bruno Haible  <bruno@clisp.org>
23768
23769         * gnulib-tool (func_get_license): Revert last patch. Instead, let
23770         the license default to GPL.
23771         (func_create_testdir): Don't complain if a module is LGPL and its
23772         tests module depends on GPLed modules.
23773
23774 2007-01-17  Bruno Haible  <bruno@clisp.org>
23775
23776         * lib/gettimeofday.c (gettimeofday): Add code for the case
23777         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
23778         maximum possible value for tv->tv_usec, rather than the minimum one.
23779
23780 2005-10-08  Martin Lambers  <marlam@marlam.de>
23781 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23782 2007-01-16  Bruno Haible  <bruno@clisp.org>
23783
23784         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
23785         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
23786         gl_FUNC_GETTIMEOFDAY.
23787         (Include): Add gettimeofday.h.
23788         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
23789         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
23790         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
23791         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
23792         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
23793         * lib/gettimeofday.h: New file.
23794         * lib/gettimeofday.c: Include <sys/timeb.h>.
23795         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
23796         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
23797         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
23798         fall back on time().
23799
23800         * tests/test-gettimeofday.c: New file.
23801         * modules/gettimeofday-tests: New file.
23802
23803 2007-01-16  Eric Blake  <ebb9@byu.net>
23804
23805         * modules/fnmatch (Depends-on): Depend on wchar.
23806         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
23807         * m4/fnmatch.m4: Likewise.
23808         * modules/mbchar (Makefile.am): Assume <wchar.h>.
23809         * m4/mbchar.m4: Likewise.
23810         * modules/mbswidth (Depends-on): Depend on wchar.
23811         * lib/mbswidth.c: Assume <wchar.h>.
23812         * m4/mbswidth.m4: Likewise.
23813         * modules/quotearg (Depends-on): Depend on wchar.
23814         * lib/quotearg.c: Assume <wchar.h>.
23815         * m4/quotearg.m4: Likewise.
23816         * modules/regex (Depends-on): Depend on wchar.
23817         * lib/regex_internal.h: Assume <wchar.h>.
23818         * m4/regex.m4: Likewise.
23819         * modules/stdint (Depends-on): Depend on wchar.
23820         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
23821         * m4/stdint.m4: Likewise.
23822         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
23823         * modules/strftime (Depends-on): Depend on wchar.
23824         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
23825         * modules/strtol (Depends-on): Depend on wchar.
23826         * lib/strtol.c: Assume <wchar.h>.
23827         * modules/wcwidth (Depends-on): Depend on wchar.
23828         * lib/wcwidth.h: Assume <wchar.h>.
23829         * m4/wcwidth.m4: Likewise.
23830
23831 2007-01-16  Bruno Haible  <bruno@clisp.org>
23832
23833         * modules/csharpexec-script: New, created from...
23834         * modules/csharpexec: ... this.
23835
23836 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
23837
23838         * modules/javaexec-script: New, created from...
23839         * modules/javaexec: ... this.
23840
23841 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23842
23843         * modules/poll (Dependencies): Add sys_select.
23844
23845 2007-01-15  Jim Meyering  <jim@meyering.net>
23846
23847         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
23848         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
23849         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
23850         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
23851
23852 2007-01-15  Bruno Haible  <bruno@clisp.org>
23853
23854         * modules/striconveh: New file.
23855         * lib/striconveh.h: New file.
23856         * lib/striconveh.c: New file.
23857         * MODULES.html.sh (Internationalization functions): Add striconveh.
23858
23859         * modules/striconveh-tests: New file.
23860         * tests/test-striconveh.c: New file.
23861
23862 2007-01-15  Bruno Haible  <bruno@clisp.org>
23863
23864         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
23865         not from GNU libiconv or GNU libc.
23866
23867 2007-01-15  Bruno Haible  <bruno@clisp.org>
23868
23869         * doc/gnulib-intro.texi (Copyright): Explain the different license
23870         terms for module descriptions, autoconf macros, tests, documentation.
23871
23872 2007-01-14  Bruno Haible  <bruno@clisp.org>
23873
23874         * modules/striconv-tests: New file.
23875         * tests/test-striconv.c: New file.
23876
23877 2007-01-14  Bruno Haible  <bruno@clisp.org>
23878
23879         * modules/iconv-tests: New file.
23880         * tests/test-iconv.c: New file.
23881
23882 2007-01-14  Bruno Haible  <bruno@clisp.org>
23883
23884         * gnulib-tool (func_get_license): For test modules, use the license of
23885         the main module.
23886
23887 2007-01-14  Bruno Haible  <bruno@clisp.org>
23888
23889         * modules/iconv (Include): Clarify that <iconv.h> can only be included
23890         if iconv is found to exist.
23891
23892 2007-01-14  Bruno Haible  <bruno@clisp.org>
23893
23894         * modules/c-ctype-tests: New file.
23895         * tests/test-c-ctype.c: New file.
23896
23897 2007-01-14  Bruno Haible  <bruno@clisp.org>
23898
23899         * modules/binary-io-tests: New file.
23900         * tests/test-binary-io.sh: New file.
23901         * tests/test-binary-io.c: New file.
23902
23903 2007-01-14  Bruno Haible  <bruno@clisp.org>
23904
23905         * modules/array-oset-tests: New file.
23906         * tests/test-array_oset.c: New file.
23907
23908 2007-01-14  Bruno Haible  <bruno@clisp.org>
23909
23910         * modules/array-list-tests: New file.
23911         * tests/test-array_list.c: New file.
23912
23913 2007-01-14  Bruno Haible  <bruno@clisp.org>
23914
23915         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
23916         and make.
23917         Reported by Simon Josefsson in
23918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
23919
23920 2007-01-14  Bruno Haible  <bruno@clisp.org>
23921
23922         * modules/allocsa-tests: New file.
23923         * tests/test-allocsa.c: New file.
23924
23925 2007-01-14  Bruno Haible  <bruno@clisp.org>
23926
23927         * modules/fchdir (Depends-on): Add absolute-header.
23928         * modules/unistd (Depends-on): Likewise.
23929
23930 2006-12-30  Bruno Haible  <bruno@clisp.org>
23931
23932         * modules/fchdir: New file.
23933         * modules/unistd (Files): Add lib/unistd_.h.
23934         (Makefile.am): Generate unistd.h from unistd_.h.
23935         * lib/fchdir.c: New file.
23936         * lib/dirent_.h: New file.
23937         * lib/unistd_.h: New file.
23938         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
23939         * m4/fchdir.m4: New file.
23940         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
23941         (gl_HEADER_UNISTD): Invoke it.
23942         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
23943         function.
23944         * lib/backupfile.c (opendir, closedir): Undefine.
23945         * lib/chown.c (open, close): Undefine.
23946         * lib/clean-temp.c (open, close): Undefine.
23947         * lib/copy-file.c (open, close): Undefine.
23948         * lib/execute.c (open, close): Undefine.
23949         * lib/fsusage.c (open, close): Undefine.
23950         * lib/gc-gnulib.c (open, close): Undefine.
23951         * lib/getcwd.c (opendir, closedir): Undefine.
23952         * lib/glob.c (opendir, closedir): Undefine.
23953         * lib/javacomp.c (open, close): Undefine.
23954         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
23955         * lib/openat-proc.c (open, close): Undefine.
23956         * lib/pagealign_alloc.c (open, close): Undefine.
23957         * lib/pipe.c (open, close): Undefine.
23958         * lib/progreloc.c (open, close): Undefine.
23959         * lib/savedir.c (opendir, closedir): Undefine.
23960         * lib/utime.c (open, close): Undefine.
23961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
23962
23963 2007-01-10  Bruno Haible  <bruno@clisp.org>
23964
23965         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
23966
23967 2007-01-12  Eric Blake  <ebb9@byu.net>
23968
23969         Provide a robust <wchar.h>.  Further simplifications are now
23970         possible in other modules, but not included here.
23971         * modules/wchar: New module.
23972         * m4/wchar.m4: New file.
23973         * lib/wchar_.h: Likewise.
23974         * modules/mbchar (Depends-on): Depend on wchar, as the first use
23975         of the new module.
23976         * MODULES.html.sh (Extended multibyte and wide character utilities):
23977         New section.
23978
23979 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
23980
23981         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
23982         to a reasonable default for memory allocation.
23983         (xreadlink): Don't allocate a huge buffer, to work around a buggy
23984         file system that reports garbage st_size values for symlinks.
23985         Problem reported by Liyang Hu.
23986
23987 2007-01-11  Simon Josefsson  <simon@josefsson.org>
23988
23989         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
23990         Emacs .#* auto-save files).
23991
23992 2007-01-11  Bruno Haible  <bruno@clisp.org>
23993
23994         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
23995         directory.
23996
23997 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
23998
23999         Use @...@ consistently in lib/wctype_.h.
24000         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
24001         on it being set to 1 or 0.
24002         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
24003         go back to AC_SUBSTing it.
24004         * modules/wctype (Makefile.am): Undo previous change.
24005
24006 2007-01-10  Eric Blake  <ebb9@byu.net>
24007
24008         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
24009         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
24010         * modules/wctype (Makefile.am): Likewise.
24011         Reported by Chris McGuire.
24012
24013 2007-01-10  Jim Meyering  <jim@meyering.net>
24014
24015         fts.c: a small readability/maintainability improvement
24016         * lib/fts.c (fts_read): Make this code slightly more readable and
24017         maintainable by hoisting the "sp->fts_cur = p" assignments to
24018         immediately follow the statements that set P.  Derived from
24019         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
24020
24021 2007-01-10  Eric Blake  <ebb9@byu.net>
24022
24023         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
24024         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
24025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24026         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24027         Reported by Chris McGuire.
24028
24029 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24030
24031         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
24032         in sed script.
24033
24034 2007-01-09  Bruno Haible  <bruno@clisp.org>
24035
24036         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
24037         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
24038         variables.
24039         (func_module): Use them.
24040
24041 2007-01-09  Bruno Haible  <bruno@clisp.org>
24042
24043         * modules/unistr/base: New file.
24044         * lib/unistr.h: New file.
24045
24046         * modules/unistr/u8-to-u16: New file.
24047         * lib/unistr/u8-to-u16.c: New file.
24048
24049         * modules/unistr/u8-to-u32: New file.
24050         * lib/unistr/u8-to-u32.c: New file.
24051
24052         * modules/unistr/u16-to-u8: New file.
24053         * lib/unistr/u16-to-u8.c: New file.
24054
24055         * modules/unistr/u16-to-u32: New file.
24056         * lib/unistr/u16-to-u32.c: New file.
24057
24058         * modules/unistr/u32-to-u8: New file.
24059         * lib/unistr/u32-to-u8.c: New file.
24060
24061         * modules/unistr/u32-to-u16: New file.
24062         * lib/unistr/u32-to-u16.c: New file.
24063
24064         * modules/unistr/u8-check: New file.
24065         * modules/unistr/u16-check: New file.
24066         * modules/unistr/u32-check: New file.
24067         * lib/unistr/u8-check.c: New file.
24068         * lib/unistr/u16-check.c: New file.
24069         * lib/unistr/u32-check.c: New file.
24070
24071         * modules/unistr/u8-chr: New file.
24072         * modules/unistr/u16-chr: New file.
24073         * modules/unistr/u32-chr: New file.
24074         * lib/unistr/u8-chr.c: New file.
24075         * lib/unistr/u16-chr.c: New file.
24076         * lib/unistr/u32-chr.c: New file.
24077
24078         * modules/unistr/u8-cmp: New file.
24079         * modules/unistr/u16-cmp: New file.
24080         * modules/unistr/u32-cmp: New file.
24081         * lib/unistr/u8-cmp.c: New file.
24082         * lib/unistr/u16-cmp.c: New file.
24083         * lib/unistr/u32-cmp.c: New file.
24084
24085         * modules/unistr/u8-cpy: New file.
24086         * modules/unistr/u16-cpy: New file.
24087         * modules/unistr/u32-cpy: New file.
24088         * lib/unistr/u8-cpy.c: New file.
24089         * lib/unistr/u16-cpy.c: New file.
24090         * lib/unistr/u32-cpy.c: New file.
24091         * lib/unistr/u-cpy.h: New file.
24092
24093         * modules/unistr/u8-cpy-alloc: New file.
24094         * modules/unistr/u16-cpy-alloc: New file.
24095         * modules/unistr/u32-cpy-alloc: New file.
24096         * lib/unistr/u8-cpy-alloc.c: New file.
24097         * lib/unistr/u16-cpy-alloc.c: New file.
24098         * lib/unistr/u32-cpy-alloc.c: New file.
24099         * lib/unistr/u-cpy-alloc.h: New file.
24100
24101         * modules/unistr/u8-endswith: New file.
24102         * modules/unistr/u16-endswith: New file.
24103         * modules/unistr/u32-endswith: New file.
24104         * lib/unistr/u8-endswith.c: New file.
24105         * lib/unistr/u16-endswith.c: New file.
24106         * lib/unistr/u32-endswith.c: New file.
24107         * lib/unistr/u-endswith.h: New file.
24108
24109         * modules/unistr/u8-mblen: New file.
24110         * modules/unistr/u16-mblen: New file.
24111         * modules/unistr/u32-mblen: New file.
24112         * lib/unistr/u8-mblen.c: New file.
24113         * lib/unistr/u16-mblen.c: New file.
24114         * lib/unistr/u32-mblen.c: New file.
24115
24116         * modules/unistr/u8-mbtouc: New file.
24117         * modules/unistr/u16-mbtouc: New file.
24118         * modules/unistr/u32-mbtouc: New file.
24119         * lib/unistr/u8-mbtouc.c: New file.
24120         * lib/unistr/u16-mbtouc.c: New file.
24121         * lib/unistr/u32-mbtouc.c: New file.
24122
24123         * modules/unistr/u8-mbtouc-safe: New file.
24124         * modules/unistr/u16-mbtouc-safe: New file.
24125         * modules/unistr/u32-mbtouc-safe: New file.
24126         * lib/unistr/u8-mbtouc-safe.c: New file.
24127         * lib/unistr/u16-mbtouc-safe.c: New file.
24128         * lib/unistr/u32-mbtouc-safe.c: New file.
24129
24130         * modules/unistr/u8-move: New file.
24131         * modules/unistr/u16-move: New file.
24132         * modules/unistr/u32-move: New file.
24133         * lib/unistr/u8-move.c: New file.
24134         * lib/unistr/u16-move.c: New file.
24135         * lib/unistr/u32-move.c: New file.
24136         * lib/unistr/u-move.h: New file.
24137
24138         * modules/unistr/u8-next: New file.
24139         * modules/unistr/u16-next: New file.
24140         * modules/unistr/u32-next: New file.
24141         * lib/unistr/u8-next.c: New file.
24142         * lib/unistr/u16-next.c: New file.
24143         * lib/unistr/u32-next.c: New file.
24144
24145         * modules/unistr/u8-prev: New file.
24146         * modules/unistr/u16-prev: New file.
24147         * modules/unistr/u32-prev: New file.
24148         * lib/unistr/u8-prev.c: New file.
24149         * lib/unistr/u16-prev.c: New file.
24150         * lib/unistr/u32-prev.c: New file.
24151
24152         * modules/unistr/u8-set: New file.
24153         * modules/unistr/u16-set: New file.
24154         * modules/unistr/u32-set: New file.
24155         * lib/unistr/u8-set.c: New file.
24156         * lib/unistr/u16-set.c: New file.
24157         * lib/unistr/u32-set.c: New file.
24158         * lib/unistr/u-set.h: New file.
24159
24160         * modules/unistr/u8-startswith: New file.
24161         * modules/unistr/u16-startswith: New file.
24162         * modules/unistr/u32-startswith: New file.
24163         * lib/unistr/u8-startswith.c: New file.
24164         * lib/unistr/u16-startswith.c: New file.
24165         * lib/unistr/u32-startswith.c: New file.
24166         * lib/unistr/u-startswith.h: New file.
24167
24168         * modules/unistr/u8-stpcpy: New file.
24169         * modules/unistr/u16-stpcpy: New file.
24170         * modules/unistr/u32-stpcpy: New file.
24171         * lib/unistr/u8-stpcpy.c: New file.
24172         * lib/unistr/u16-stpcpy.c: New file.
24173         * lib/unistr/u32-stpcpy.c: New file.
24174         * lib/unistr/u-stpcpy.h: New file.
24175
24176         * modules/unistr/u8-stpncpy: New file.
24177         * modules/unistr/u16-stpncpy: New file.
24178         * modules/unistr/u32-stpncpy: New file.
24179         * lib/unistr/u8-stpncpy.c: New file.
24180         * lib/unistr/u16-stpncpy.c: New file.
24181         * lib/unistr/u32-stpncpy.c: New file.
24182         * lib/unistr/u-stpncpy.h: New file.
24183
24184         * modules/unistr/u8-strcat: New file.
24185         * modules/unistr/u16-strcat: New file.
24186         * modules/unistr/u32-strcat: New file.
24187         * lib/unistr/u8-strcat.c: New file.
24188         * lib/unistr/u16-strcat.c: New file.
24189         * lib/unistr/u32-strcat.c: New file.
24190         * lib/unistr/u-strcat.h: New file.
24191
24192         * modules/unistr/u8-strchr: New file.
24193         * modules/unistr/u16-strchr: New file.
24194         * modules/unistr/u32-strchr: New file.
24195         * lib/unistr/u8-strchr.c: New file.
24196         * lib/unistr/u16-strchr.c: New file.
24197         * lib/unistr/u32-strchr.c: New file.
24198
24199         * modules/unistr/u8-strcmp: New file.
24200         * modules/unistr/u16-strcmp: New file.
24201         * modules/unistr/u32-strcmp: New file.
24202         * lib/unistr/u8-strcmp.c: New file.
24203         * lib/unistr/u16-strcmp.c: New file.
24204         * lib/unistr/u32-strcmp.c: New file.
24205
24206         * modules/unistr/u8-strcpy: New file.
24207         * modules/unistr/u16-strcpy: New file.
24208         * modules/unistr/u32-strcpy: New file.
24209         * lib/unistr/u8-strcpy.c: New file.
24210         * lib/unistr/u16-strcpy.c: New file.
24211         * lib/unistr/u32-strcpy.c: New file.
24212         * lib/unistr/u-strcpy.h: New file.
24213
24214         * modules/unistr/u8-strcspn: New file.
24215         * modules/unistr/u16-strcspn: New file.
24216         * modules/unistr/u32-strcspn: New file.
24217         * lib/unistr/u8-strcspn.c: New file.
24218         * lib/unistr/u16-strcspn.c: New file.
24219         * lib/unistr/u32-strcspn.c: New file.
24220         * lib/unistr/u-strcspn.h: New file.
24221
24222         * modules/unistr/u8-strdup: New file.
24223         * modules/unistr/u16-strdup: New file.
24224         * modules/unistr/u32-strdup: New file.
24225         * lib/unistr/u8-strdup.c: New file.
24226         * lib/unistr/u16-strdup.c: New file.
24227         * lib/unistr/u32-strdup.c: New file.
24228         * lib/unistr/u-strdup.h: New file.
24229
24230         * modules/unistr/u8-strlen: New file.
24231         * modules/unistr/u16-strlen: New file.
24232         * modules/unistr/u32-strlen: New file.
24233         * lib/unistr/u8-strlen.c: New file.
24234         * lib/unistr/u16-strlen.c: New file.
24235         * lib/unistr/u32-strlen.c: New file.
24236         * lib/unistr/u-strlen.h: New file.
24237
24238         * modules/unistr/u8-strmblen: New file.
24239         * modules/unistr/u16-strmblen: New file.
24240         * modules/unistr/u32-strmblen: New file.
24241         * lib/unistr/u8-strmblen.c: New file.
24242         * lib/unistr/u16-strmblen.c: New file.
24243         * lib/unistr/u32-strmblen.c: New file.
24244
24245         * modules/unistr/u8-strmbtouc: New file.
24246         * modules/unistr/u16-strmbtouc: New file.
24247         * modules/unistr/u32-strmbtouc: New file.
24248         * lib/unistr/u8-strmbtouc.c: New file.
24249         * lib/unistr/u16-strmbtouc.c: New file.
24250         * lib/unistr/u32-strmbtouc.c: New file.
24251
24252         * modules/unistr/u8-strncat: New file.
24253         * modules/unistr/u16-strncat: New file.
24254         * modules/unistr/u32-strncat: New file.
24255         * lib/unistr/u8-strncat.c: New file.
24256         * lib/unistr/u16-strncat.c: New file.
24257         * lib/unistr/u32-strncat.c: New file.
24258         * lib/unistr/u-strncat.h: New file.
24259
24260         * modules/unistr/u8-strncmp: New file.
24261         * modules/unistr/u16-strncmp: New file.
24262         * modules/unistr/u32-strncmp: New file.
24263         * lib/unistr/u8-strncmp.c: New file.
24264         * lib/unistr/u16-strncmp.c: New file.
24265         * lib/unistr/u32-strncmp.c: New file.
24266
24267         * modules/unistr/u8-strncpy: New file.
24268         * modules/unistr/u16-strncpy: New file.
24269         * modules/unistr/u32-strncpy: New file.
24270         * lib/unistr/u8-strncpy.c: New file.
24271         * lib/unistr/u16-strncpy.c: New file.
24272         * lib/unistr/u32-strncpy.c: New file.
24273         * lib/unistr/u-strncpy.h: New file.
24274
24275         * modules/unistr/u8-strnlen: New file.
24276         * modules/unistr/u16-strnlen: New file.
24277         * modules/unistr/u32-strnlen: New file.
24278         * lib/unistr/u8-strnlen.c: New file.
24279         * lib/unistr/u16-strnlen.c: New file.
24280         * lib/unistr/u32-strnlen.c: New file.
24281         * lib/unistr/u-strnlen.h: New file.
24282
24283         * modules/unistr/u8-strpbrk: New file.
24284         * modules/unistr/u16-strpbrk: New file.
24285         * modules/unistr/u32-strpbrk: New file.
24286         * lib/unistr/u8-strpbrk.c: New file.
24287         * lib/unistr/u16-strpbrk.c: New file.
24288         * lib/unistr/u32-strpbrk.c: New file.
24289         * lib/unistr/u-strpbrk.h: New file.
24290
24291         * modules/unistr/u8-strrchr: New file.
24292         * modules/unistr/u16-strrchr: New file.
24293         * modules/unistr/u32-strrchr: New file.
24294         * lib/unistr/u8-strrchr.c: New file.
24295         * lib/unistr/u16-strrchr.c: New file.
24296         * lib/unistr/u32-strrchr.c: New file.
24297
24298         * modules/unistr/u8-strspn: New file.
24299         * modules/unistr/u16-strspn: New file.
24300         * modules/unistr/u32-strspn: New file.
24301         * lib/unistr/u8-strspn.c: New file.
24302         * lib/unistr/u16-strspn.c: New file.
24303         * lib/unistr/u32-strspn.c: New file.
24304         * lib/unistr/u-strspn.h: New file.
24305
24306         * modules/unistr/u8-strstr: New file.
24307         * modules/unistr/u16-strstr: New file.
24308         * modules/unistr/u32-strstr: New file.
24309         * lib/unistr/u8-strstr.c: New file.
24310         * lib/unistr/u16-strstr.c: New file.
24311         * lib/unistr/u32-strstr.c: New file.
24312         * lib/unistr/u-strstr.h: New file.
24313
24314         * modules/unistr/u8-strtok: New file.
24315         * modules/unistr/u16-strtok: New file.
24316         * modules/unistr/u32-strtok: New file.
24317         * lib/unistr/u8-strtok.c: New file.
24318         * lib/unistr/u16-strtok.c: New file.
24319         * lib/unistr/u32-strtok.c: New file.
24320         * lib/unistr/u-strtok.h: New file.
24321
24322         * modules/unistr/u8-uctomb: New file.
24323         * modules/unistr/u16-uctomb: New file.
24324         * modules/unistr/u32-uctomb: New file.
24325         * lib/unistr/u8-uctomb.c: New file.
24326         * lib/unistr/u16-uctomb.c: New file.
24327         * lib/unistr/u32-uctomb.c: New file.
24328
24329         * MODULES.html.sh (Unicode string functions): Add the new modules.
24330
24331 2007-01-08  Bruno Haible  <bruno@clisp.org>
24332
24333         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
24334         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
24335         subdirectories.
24336
24337 2007-01-08  Karl Berry  <karl@gnu.org>
24338
24339         * doc/error.texi: mention that main() fns must set program_name
24340         when progname is used.
24341
24342 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24343
24344         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
24345         WCTYPE_H is empty, for the benefit of builds from non-distclean
24346         directories.  Problem reported by Eric Blake in
24347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
24348
24349 2007-01-08  Bruno Haible  <bruno@clisp.org>
24350
24351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
24352         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
24353         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
24354         PROVIDE_CANONICALIZE_FILENAME_MODE.
24355         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
24356
24357 2007-01-08  Bruno Haible  <bruno@clisp.org>
24358
24359         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
24360         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
24361         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
24362         * lib/fts.c: Likewise.
24363         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
24364
24365 2006-12-25  Bruno Haible  <bruno@clisp.org>
24366
24367         * modules/utf8-ucs4-safe: New file.
24368         * lib/utf8-ucs4-safe.h: New file.
24369         * lib/unistr/utf8-ucs4-safe.c: New file.
24370
24371         * modules/utf16-ucs4-safe: New file.
24372         * lib/utf16-ucs4-safe.h: New file.
24373         * lib/unistr/utf16-ucs4-safe.c: New file.
24374
24375         * MODULES.html.sh (Unicode string functions): Add the new modules.
24376
24377 2007-01-08  Bruno Haible  <bruno@clisp.org>
24378
24379         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
24380         (Depends-on): Add unitypes.
24381         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
24382         (u8_mbtouc_aux): Move out to separate file.
24383         (u8_mbtouc): Use ucs4_t, uint8_t types.
24384         * lib/unistr/utf8-ucs4.c: New file.
24385
24386         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
24387         (Depends-on): Add unitypes.
24388         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
24389         (u16_mbtouc_aux): Move out to separate file.
24390         (u16_mbtouc): Use ucs4_t, uint16_t types.
24391         * lib/unistr/utf16-ucs4.c: New file.
24392
24393         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
24394         (Depends-on): Add unitypes.
24395         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
24396         (u8_uctomb_aux): Move out to separate file.
24397         (u8_uctomb): Use ucs4_t, uint8_t types.
24398         * lib/unistr/ucs4-utf8.c: New file.
24399
24400         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
24401         (Depends-on): Add unitypes.
24402         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
24403         (u16_uctomb_aux): Move out to separate file.
24404         (u16_uctomb): Use ucs4_t, uint16_t types.
24405         * lib/unistr/ucs4-utf16.c: New file.
24406
24407 2006-12-25  Bruno Haible  <bruno@clisp.org>
24408
24409         * modules/unitypes: New file.
24410         * lib/unitypes.h: New file.
24411         * MODULES.html.sh (func_all_modules): New section "Unicode string
24412         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
24413         this section. Add unitypes.
24414
24415 2007-01-08  Bruno Haible  <bruno@clisp.org>
24416
24417         Avoid variable names that conflict with those from libtool.
24418         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
24419         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
24420         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
24421         library_names_spec to acl_library_names_spec, hardcode_* to
24422         acl_hardcode_*.
24423         Reported by Ralf Wildenhues.
24424
24425 2007-01-08  Bruno Haible  <bruno@clisp.org>
24426
24427         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
24428         definition.
24429         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
24430         definition.
24431         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
24432         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
24433         definition.
24434         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
24435         definition.
24436         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
24437         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
24438         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
24439         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
24440         definition.
24441         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
24442         definition.
24443         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
24444         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
24445         GC_USE_<algorithm>.
24446         * lib/gc-libgcrypt.c: Likewise.
24447         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
24448         * modules/gc-arctwo (configure.ac): Likewise.
24449         * modules/gc-des (configure.ac): Likewise.
24450         * modules/gc-hmac-md5 (configure.ac): Likewise.
24451         * modules/gc-hmac-sha1 (configure.ac): Likewise.
24452         * modules/gc-md2 (configure.ac): Likewise.
24453         * modules/gc-md4 (configure.ac): Likewise.
24454         * modules/gc-md5 (configure.ac): Likewise.
24455         * modules/gc-random (configure.ac): Likewise.
24456         * modules/gc-rijndael (configure.ac): Likewise.
24457         * modules/gc-sha1 (configure.ac): Likewise.
24458
24459 2007-01-08  Bruno Haible  <bruno@clisp.org>
24460
24461         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
24462         macro definition.
24463         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
24464         definition.
24465         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
24466         definition.
24467         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
24468         * modules/fcntl-safer (configure.ac): Likewise.
24469         * modules/fopen-safer (configure.ac): Likewise.
24470         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
24471         GNULIB_FWRITEERROR macro definition.
24472
24473 2007-01-08  Bruno Haible  <bruno@clisp.org>
24474
24475         * m4/gnulib-common.m4: New file.
24476         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
24477         (func_get_filelist): Add m4/gnulib-common.m4.
24478
24479 2007-01-08  Bruno Haible  <bruno@clisp.org>
24480
24481         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
24482         command.
24483
24484 2007-01-08  Jim Meyering  <jim@meyering.net>
24485
24486         Use a more robust test for a "can't happen" condition.
24487         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
24488         narrowed the st_size value.  Presuming the "can't happen" condition
24489         is true, that narrowing could conceivably convert an invalid st_size
24490         value into a valid one.  Instead, use a change based on Matthew
24491         Woehlke's original patch.
24492
24493         Slight readability improvement: use an assert-like macro
24494         in place of literal "abort ()" uses.
24495         * lib/fts.c (fts_assert): Define.
24496         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
24497         Use this macro instead of a bare 'abort'.
24498
24499 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
24500
24501         Don't worry about using IRIX 5.3's wctype.h broken definitions;
24502         simply work around them.
24503         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
24504         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
24505         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
24506         declaring.
24507         Don't bother to define as macros, since the standard doesn't require it.
24508         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
24509         longer worry about IRIX 5.3.
24510         (HAVE_WCTYPE_CTMP_BUG): Remove.
24511
24512 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24513
24514         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
24515         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
24516         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24517         Problems reported by Georg Schwarz for IRIX 5.3.
24518
24519         * gnulib-tool (autoconf_minversion): Take the maximum version number
24520         found, not the minimum.  Problem reported by James Youngman.
24521
24522 2007-01-03  Karl Berry  <karl@gnu.org>
24523
24524         * doc/error.texi: new file, explaining interaction with progname.
24525         * doc/gnulib.texi: include it.  Update copyright.
24526
24527 2007-01-03  Simon Josefsson  <simon@josefsson.org>
24528
24529         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
24530         AC_CANONICAL_HOST, to improve autobuild outputs.
24531
24532 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
24533             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24534
24535         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
24536         sockets, server sockets, and other file descriptors.  Count errors
24537         to compute the return value.  Reorder the code a bit to be easier
24538         to follow.  Don't set event bits that were not requested (except
24539         POLLERR and POLLHUP).
24540
24541 2007-01-01  Bruno Haible  <bruno@clisp.org>
24542
24543         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
24544
24545 2007-01-03  Jim Meyering  <jim@meyering.net>
24546
24547         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
24548
24549 2007-01-02  Bruno Haible  <bruno@clisp.org>
24550
24551         * modules/settime (Include): Require timespec.h.
24552         * modules/nanosleep (Include): Likewise.
24553
24554 2007-01-01  Bruno Haible  <bruno@clisp.org>
24555
24556         * gnulib-tool (func_emit_copyright_notice): Bump year.
24557         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
24558
24559 2007-01-01  Bruno Haible  <bruno@clisp.org>
24560
24561         Improve support for OpenBSD.
24562         * build-aux/config.rpath (libname_spec): Export.
24563         (library_names_spec): New variable. Export.
24564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
24565         library_names_spec from the config.rpath output. Locate shared library
24566         through the name pattern in library_names_spec.
24567
24568 2007-01-01  Eric Blake  <ebb9@byu.net>
24569
24570         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
24571
24572 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
24573
24574         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
24575         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
24576         assume the C locale, and avoid an "eval" that could cause trouble.
24577         Problem with SORT reported by Bob Proulx.
24578
24579         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
24580         Define.  Trivial patch from Henning Nielsen Lund, originally
24581         sent to bug-grep@gnu.org today.
24582
24583 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24584
24585         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
24586         struct stat.  Problem reported by Henning Nielsen Lund.
24587         * lib/acl.c: Include acl.h first, to check interface.  Don't
24588         bother to include sys/types.h and sys/stat.h again.
24589
24590 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24591
24592         Import the following change from libc; problem reported by
24593         Sven Verdoolaege.
24594
24595         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
24596
24597         [BZ #1373]
24598         * lib/argp.h: Remove __NTH for __argp_usage inline function.
24599
24600 2006-12-28  Jim Meyering  <jim@meyering.net>
24601
24602         * build-aux/announce-gen: Do not assume that the package
24603         builds any of tar.gz, tar.bz2, and .xdelta files.
24604         Suggestion from Simon Josefsson.
24605
24606 2006-12-28  Simon Josefsson  <simon@josefsson.org>
24607
24608         * modules/announce-gen: New file.
24609
24610 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24611
24612         * lib/mbchar.h: Just include <wctype.h>; the wctype module
24613         handles its gotchas now.
24614         * lib/mbswidth.c: Likewise.
24615         * lib/wcwidth.h: Likewise.
24616         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
24617         and iswcntrl; the wctype module does this stuff now.
24618         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24620         * modules/mbchar (Depends-on): Add wctype.
24621         * modules/mbswidth (Depends-on): Likewise.
24622         * modules/wcwidth (Depends-on): Likewise.
24623
24624 2006-12-27  Eric Blake  <ebb9@byu.net>
24625
24626         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
24627         module uses more than what <wctype.h> is required to provide.
24628
24629 2006-12-26  Eric Blake  <ebb9@byu.net>
24630
24631         * gnulib-tool (sed_extract_prog): Avoid space-tab.
24632
24633 2006-12-26  Eric Blake  <ebb9@byu.net>
24634
24635         * modules/absolute-header: New module.
24636         * modules/fcntl (Depends-on): Depend on it.
24637         * modules/inttypes (Depends-on): Likewise.
24638         * modules/stdint (Depends-on): Likewise.
24639         * modules/sys_stat (Depends-on): Likewise.
24640         * modules/wctype (Depends-on): Likewise.
24641         * MODULES.html.sh (Support for building libraries and
24642         executables): Document it.
24643
24644 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24645
24646         * gnulib-tool (SED): Remove, undoing previous change.
24647         The problem was that it broke coreutils on Solaris, because
24648         "sed --posix" leaked into a makefile.
24649         (sed): New alias, if 'alias' and GNU sed.
24650
24651 2006-12-24  Jim Meyering  <jim@meyering.net>
24652
24653         Work around an fchownat bug in glibc-2.4:
24654         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
24655         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
24656         in spite of the -P option.
24657         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
24658         New macros.
24659         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
24660         * modules/openat (Files): Add lib/fchownat.c.
24661         * lib/openat.c (fchownat): Don't define here.  Move to...
24662         * lib/fchownat.c: ...this new file.
24663
24664 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24665
24666         Fix bug reported by Bruno Haible in
24667         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
24668         where quotearg.c didn't compile on Mac OS X 10.2 because it
24669         lacks <wchar.h> and wint_t.
24670         * lib/wctype_.h (__wctype_wint_t): New type.
24671         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
24672         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
24673         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
24674         Arg is now of type __wctype_wint_t, not wint_t.
24675         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
24676         substitute HAVE_WINT_T.
24677         * modules/wctype (Files): Add m4/wint_t.m4.
24678         (wctype.h): Substitute HAVE_WINT_T.
24679
24680 2006-12-23  Bruno Haible  <bruno@clisp.org>
24681
24682         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
24683
24684 2006-12-23  Bruno Haible  <bruno@clisp.org>
24685
24686         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
24687         S_ISLNK.
24688         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
24689         mingw.
24690
24691 2006-12-22  Bruno Haible  <bruno@clisp.org>
24692
24693         * lib/copy-file.c: Include acl.h.
24694         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
24695         Close the file descriptors only after being done with copy_acl.
24696         * modules/copy-file (Depends-on): Add acl.
24697
24698 2006-12-22  Bruno Haible  <bruno@clisp.org>
24699
24700         * gnulib-tool (SED): New variable.
24701         Use $SED instead of sed everywhere.
24702
24703 2006-12-22  Bruno Haible  <bruno@clisp.org>
24704
24705         * modules/no-c++: New file.
24706         * m4/no-c++.m4: New file.
24707         * MODULES.html.sh (Support for building libraries and executables):
24708         Add no-c++.
24709
24710 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24711
24712         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24713         Include <limits.h>, and use its INT_MAX to rewrite the
24714         j loop so that it does not overflow 'int'.  Problem reported by
24715         Ralf Wildenhues in
24716         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
24717         Play it safe by shifting left by 1 rather than multiplying by 2,
24718         as GCC is less likely to optimize this away when the value
24719         is signed (when it assumes overflow leads to undefined behavior).
24720         Also, don't assume time_t uses two's complement.
24721
24722 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24723
24724         * MODULES.html.sh: New module wctype.
24725         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
24726         * lib/fnmatch.c: Don't bother to include <wchar.h> before
24727         <wctype.h>, since the new wctype module should fix this.
24728         * lib/quotearg.c: Include <wctype.h> unconditionally, since
24729         the wctype module should arrange for it.
24730         * lib/regex_internal.h: Likewise.
24731         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
24732         since the wctype module should handle this now.
24733         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
24734         * modules/fnmatch (Depends-on): Add wctype.
24735         * modules/quotearg (Depends-on): Likewise.
24736         * modules/regex (Depends-on): Likewise.
24737
24738 2006-12-19  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/strdup.h [C++]: Wrap definitions in extern "C".
24741         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
24742
24743 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24744
24745         * modules/savewd (Depends-on): Fix dependency on fcntl.
24746
24747 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24748
24749         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
24750         conforms to C99, rather than relying on the user's environment
24751         setting of STDINT_H.
24752
24753 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24754         and Eric Blake  <ebb9@byu.net>
24755
24756         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
24757         This is more consistent with the other defines here.
24758         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
24759         Port to z/OS.  Problem reported by Paul Gilmartin.
24760         Change local vars to use gl_ prefix rather than ac_.
24761         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
24762         with other defines.
24763         * modules/double-slash-root: New module.
24764         * modules/dirname (Files): Remove m4/double-slash-root.m4.
24765         (Depends-on): Add double-slash-root.
24766         * MODULES.html.sh (File system functions): Mention new module.
24767
24768 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
24769
24770         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
24771         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
24772         This is for the benefit of gzip, which doesn't do i18n.
24773
24774 2006-12-12  Jim Meyering  <jim@meyering.net>
24775
24776         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
24777         Reported by Andreas Schwab <schwab@suse.de>.
24778
24779 2006-12-12  Bruno Haible  <bruno@clisp.org>
24780
24781         Merge these changes.
24782         2006-09-05  Bruno Haible  <bruno@clisp.org>
24783         * lib/iconvme.c (iconv_string): No need to save and restore errno when
24784         iconv_alloc succeeded.
24785         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
24786         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
24787         test for " && dest " at the end - dest is always != NULL there. Call
24788         iconv with 4xNULL arguments initially, to reset the state. Call iconv
24789         with 2xNULL arguments, also to flush the state storage. Handle the
24790         IRIX iconv behaviour. Realloc the final result, to throw away unused
24791         memory.
24792
24793 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
24794
24795         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
24796         and fchmodat unconditionally, since glibc 2.4 has them.
24797         Problem reported by Arkadiusz Miskiewicz.
24798
24799 2006-12-10  Bruno Haible  <bruno@clisp.org>
24800
24801         * gnulib-tool (func_import): Show the include files only for those
24802         modules that are copied and specified.
24803         Reported by Karl Berry.
24804
24805 2006-12-08  Jim Meyering  <jim@meyering.net>
24806
24807         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
24808         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
24809
24810         * build-aux/announce-gen: Add two new options, both optional:
24811         --bootstrap-tools=TOOL_LIST
24812               a comma-separated list of tools, e.g.,
24813               autoconf,automake,bison,gnulib
24814         --gnulib-snapshot-date=DATE
24815               if gnulib is in the bootstrap tool list,
24816               then report this as the snapshot date.
24817               If not specified, use the current date/time.
24818               If you specify a date here, be sure it's UTC.
24819
24820 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24821
24822         * tests/test-argp-2.sh: Fix test to match actual output.
24823         (func_compare): Fix sed script to be portable.
24824
24825 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
24826
24827         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
24828         workaround for this case.  It is not autoconfigured now; offhand
24829         it's hard to see how to autoconfigure it.
24830
24831 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24832
24833         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
24834         a directory that is about to be chowned.  Such a directory's
24835         initial file permissions should permit the owner only and this
24836         should not be changed until after the chown, since the group and
24837         other bits would be incorrect if they granted permission before
24838         the chown.
24839
24840         Fix porting problem for iswctype reported by Georg Schwarz in:
24841         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
24842         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
24843         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
24844         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
24845         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24846
24847 2006-12-03  Jim Meyering  <jim@meyering.net>
24848
24849         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
24850         p->fts_statp may not yet be defined.
24851         (fts_read): Instead, set it in the caller, once p->fts_statp is
24852         sure to be defined, and corresponds to a top-level directory.
24853         This bug made du -x fail.  Here's the coreutils test case:
24854         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
24855         Reported by Mike Frysinger.
24856
24857 2006-12-01  Jim Meyering  <jim@meyering.net>
24858
24859         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
24860         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
24861         Reported by Simon Josefsson.
24862
24863 2006-11-30  Jim Meyering  <jim@meyering.net>
24864
24865         * m4/warning.m4: Use the all-permissive copyright notice
24866         recommended by RMS (rather than LGPL).
24867         * m4/vararrays.m4: Likewise.
24868         * m4/flexmember.m4: Likewise.
24869
24870 2006-11-29  Bruno Haible  <bruno@clisp.org>
24871
24872         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24873         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
24874         using +=.
24875         Reported by Simon Josefsson <simon@josefsson.org>.
24876
24877 2006-11-28  James Youngman <jay@gnu.org>
24878
24879         * README: Advise users that they might find the bug-gnulib@gnu.org
24880         and autotools-announce@gnu.org mailing lists useful.
24881
24882 2006-11-28  Bruno Haible  <bruno@clisp.org>
24883
24884         * m4/ptrdiff_max.m4: Remove file.
24885
24886 2006-11-21  Bruno Haible  <bruno@clisp.org>
24887
24888         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
24889         _AC_COMPUTE_INT.
24890         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
24891         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
24892         _AC_COMPUTE_INT.
24893         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
24894         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
24895         _AC_COMPUTE_INT.
24896         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
24897
24898 2006-11-28  Jim Meyering  <jim@meyering.net>
24899
24900         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
24901         warning from "gcc -Wshadow" about shadowing the builtin.
24902
24903 2006-11-27  Bruno Haible  <bruno@clisp.org>
24904
24905         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
24906         _AC_COMPUTE_INT.
24907         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
24908
24909 2006-11-27  Bruno Haible  <bruno@clisp.org>
24910             Paul Eggert  <eggert@cs.ucla.edu>
24911
24912         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
24913
24914 2006-11-26  Bruno Haible  <bruno@clisp.org>
24915
24916         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24917         noinst_LTLIBRARIES.
24918
24919 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
24920             Bruno Haible  <bruno@clisp.org>
24921
24922         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
24923         if compiling with "gcc -ansi".
24924
24925 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
24926
24927         Fix some incompatibilities with gcc -ansi -pedantic.
24928         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
24929         if compiling pedantically with GCC, unless it's C99 or later.
24930         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
24931         it mishandles gcc -ansi -pedantic as well.
24932         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
24933         if gcc -pedantic.
24934         * lib/regexec.c (check_node_accept_bytes): Don't use auto
24935         initializers for struct if -pedantic, unless it's C99 or later.
24936
24937 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
24938
24939         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
24940         Don't close an fd more than once. Identical atimes indicate
24941         success, not failure.
24942
24943 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
24944
24945         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
24946
24947 2006-11-23  Jim Meyering  <jim@meyering.net>
24948
24949         * build-aux/announce-gen: New file.  From coreutils.
24950
24951 2006-11-22  Jim Meyering  <jim@meyering.net>
24952
24953         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
24954         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
24955         (fts_read): Use a temporary to narrow the overused st_size member
24956         before using it in a switch statement.  Reported by Matthew Woehlke.
24957
24958         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
24959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24960
24961 2006-11-20  Bruno Haible  <bruno@clisp.org>
24962
24963         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
24964         changequote instead of pairs of brackets.
24965         Reported by Andreas Schwab <schwab@suse.de>.
24966
24967 2006-11-21  Jim Meyering  <jim@meyering.net>
24968
24969         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
24970         so as to remain compatible with older compilers.
24971         Patch from Michael Deutschmann.
24972
24973 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         * MODULES.html.sh (File system functions): Add openat.
24976
24977         * lib/openat.h (rpl_fstatat): New macro, if
24978         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
24979         (fstatat): Define to rpl_fstatat under the same conditions,
24980         unless COMPILING_FSTATAT.
24981         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
24982         seems to have the bug.
24983         * lib/fstatat.c: New file.
24984         * modules/openat (Files): Add it.
24985
24986 2006-11-20  Bruno Haible  <bruno@clisp.org>
24987
24988         * Makefile: New file.
24989
24990 2006-11-20  Jim Meyering  <jim@meyering.net>
24991
24992         The beginnings of syntax-related checks for gnulib.
24993         * lib/Makefile: New file.
24994         * lib/t-idcache: New script.  Ensure that the two halves of
24995         idcache.c stay in sync.
24996
24997         * lib/idcache.c: Adjust comments in user- and group- portions to
24998         be more accurate, and to be consistent with one another.
24999
25000 2006-11-20  Jim Meyering  <jim@meyering.net>
25001
25002         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
25003         continue using the flexible array member (thus, this module performs
25004         half as many malloc calls), with the addition that...
25005         (getgroup, getuser): Consistently record a non-match via an empty
25006         "name" string, and map an empty string match to a NULL return value.
25007         * modules/idcache (Depends-on): Re-add flexmember.
25008
25009         * lib/idcache.c (getuser): Remove all uses of the register keyword.
25010         (getuidbyname, getgroup, getgidbyname): Likewise.
25011
25012         Use cleaner syntax: NULL rather than 0.
25013         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
25014
25015 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
25018         It mishandled the case where the group was missing.
25019         Problem reported by Greg Schafer.
25020         * modules/idcache: Likewise.
25021
25022 2006-11-18  Jim Meyering  <jim@meyering.net>
25023
25024         * check-module (%exempt_header): Add exception for some
25025         conditionally-included headers.
25026
25027         * modules/i-ring (Depends-on): Add verify.
25028         (License): Change to LGPL.
25029
25030 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25031
25032         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
25033         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
25034         and inttostr.h.  Use snprintf rather than uinttostr, so that
25035         LGPLed code doesn't depend on GPLed.
25036
25037 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25038
25039         * modules/inline (License): Change from GPL to LGPL.
25040
25041 2006-11-17  Jim Meyering  <jim@meyering.net>
25042
25043         * modules/d-type (License): Switch to LGPL.
25044
25045 2006-11-15  Bruno Haible  <bruno@clisp.org>
25046
25047         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
25048
25049 2006-11-15  Eric Blake  <ebb9@byu.net>
25050
25051         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
25052         the module dependency.
25053
25054 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25055             Bruno Haible  <bruno@clisp.org>
25056
25057         * gnulib-tool (func_create_testdir): Add license consistency check.
25058
25059 2006-11-15  Eric Blake  <ebb9@byu.net>
25060
25061         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
25062         random "(cached)" in configure output.
25063
25064 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25065
25066         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
25067         test for conforming inttypes.h is both announced and cached.
25068
25069         * MODULES.html.sh (seen_modules, seen_files): New variables.
25070         (func_module): Rewrite to use a few less gnulib-tool and sed
25071         invocations.  Avoid a couple of quadratic algorithms for ...
25072         (missed_modules, missed_files): ... these, with ...
25073         (func_append, func_tmpdir): ... these new functions, from
25074         gnulib-tool.  Analogously, install traps for cleanup.
25075
25076         * tests/test-gc.c (main): Remove unused variables.
25077         * tests/test-read-file.c: Include stdlib.h, for 'free'.
25078
25079 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
25080
25081         * modules/inttostr (License): Change to LGPL.
25082
25083 2006-11-14  Eric Blake  <ebb9@byu.net>
25084
25085         * modules/tempname (License): Change to LGPL.
25086
25087 2006-11-14  Eric Blake  <ebb9@byu.net>
25088
25089         * doc/functions.texi (Function Portability): *printf functions on
25090         Cygwin now understand all POSIX size specifiers.
25091
25092 2006-11-14  Bruno Haible  <bruno@clisp.org>
25093
25094         * modules/c-ctype (License): Change to LGPL.
25095
25096 2006-11-12  Bruno Haible  <bruno@clisp.org>
25097
25098         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25099         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
25100         for GNOME libraries, for which the include files are installed in
25101         subdirectories of $prefix/include.
25102
25103 2006-11-12  Bruno Haible  <bruno@clisp.org>
25104
25105         * m4/lib-link.m4: Require at least autoconf-2.54.
25106         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
25107         name to underscores for the --with option.
25108
25109 2006-11-13  Bruno Haible  <bruno@clisp.org>
25110
25111         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
25112         the tests directory.
25113         Reported by Ralf Wildenhues.
25114
25115 2006-11-13  Bruno Haible  <bruno@clisp.org>
25116
25117         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
25118         (func_emit_initmacro_end): Undo the override here.
25119         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
25120         Works around the famous automake error in coreutils.
25121
25122 2006-11-13  Eric Blake  <ebb9@byu.net>
25123
25124         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
25125         element, not its node.
25126
25127 2006-11-12  Bruno Haible  <bruno@clisp.org>
25128
25129         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
25130         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
25131
25132 2006-11-12  Bruno Haible  <bruno@clisp.org>
25133
25134         * gnulib-tool: New option --local-symlink.
25135         (func_usage): Document it.
25136         (lsymbolic): New variable.
25137         (func_import, func_create_testdir): If --symlink was not specified,
25138         test whether --local-symlink was specified and the file comes from
25139         the local_gnulib_dir.
25140
25141 2006-11-12  Bruno Haible  <bruno@clisp.org>
25142
25143         * gnulib-tool (func_ln): New function.
25144         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
25145
25146 2006-11-12  Bruno Haible  <bruno@clisp.org>
25147
25148         Finish support for source files in subdirectories.
25149         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
25150         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
25151         AUTOMAKE_OPTIONS.
25152         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
25153
25154 2006-11-12  Bruno Haible  <bruno@clisp.org>
25155
25156         * gnulib-tool (func_get_automake_snippet): Synthesize also an
25157         EXTRA_lib_SOURCES augmentation.
25158         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
25159
25160 2006-11-12  Jim Meyering  <jim@meyering.net>
25161
25162         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
25163         file descriptors.  This also averts a failure on systems with
25164         native openat support when a traversed directory lacks "x" access.
25165         * lib/fts_.h: Include "i-ring.h"
25166         (struct FTS) [fts_fd_ring]: New member.
25167         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
25168         (FCHDIR): Add parentheses.
25169         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
25170         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
25171         When descending, rather than simply closing the previous
25172         fts_cwd_fd value, push that file descriptor onto the ring.
25173         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
25174         (fts_open): Initialize the new fd_ring member.
25175         (fts_close): Clear the ring.
25176         (fts_safe_changedir): When possible, use our new fd_ring to skip
25177         the diropen and fstat and dev/ino comparison that would normally
25178         accompany a virtual `chdir ("..")'.
25179
25180         * modules/fts (Depends-on): Add i-ring.
25181         * modules/i-ring: New module.
25182         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
25183         * m4/i-ring.m4: New file.
25184
25185 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25186
25187         * gnulib-tool (func_create_testdir): Fix replacement of
25188         `build-aux' in configure.ac.  Run autotools in gltests
25189         subdirectory.
25190         (func_create_testdir, func_create_megatestdir, test): There is
25191         no need for '--force' in most autotool invocations in a new
25192         tree.  Actually fail the whole test if any of the tools, or the
25193         configure or make stages fail.
25194
25195         Sync from Automake.
25196         * build-aux/gnupload: Revert last change.  Add pointer to upload
25197         instructions of the GNU Maintenance Instructions.
25198         Suggestion by Karl Berry.
25199
25200 2006-11-10  Jim Meyering  <jim@meyering.net>
25201
25202         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
25203
25204 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25205
25206         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
25207         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
25208         (bind_textdomain_codeset) [! ENABLE_NLS]:
25209         Evaluate all the arguments.  That way, callers get compatible behavior
25210         if the arguments have side effects.  Also, it avoids some GCC
25211         diagnostics in some cases; Joel E. Denny reported problems when Bison
25212         was configured with --enable-gcc-warnigs.
25213
25214 2006-11-10  Jim Meyering  <jim@meyering.net>
25215
25216         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
25217         relevant options in CFLAGS (like -O, -fno-inline) are taken into
25218         account.
25219
25220 2006-11-10  Jim Meyering  <jim@meyering.net>
25221
25222         * modules/inline: New file/module.
25223         * modules/xalloc (Files): Remove m4/inline.m4.
25224         (Depends-on): Add inline, instead.
25225         * modules/oset: Likewise.
25226         * modules/list: Likewise.
25227
25228 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
25229
25230         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
25231         Problem reported by Matthew Woehlke.
25232
25233 2006-11-09  Bruno Haible  <bruno@clisp.org>
25234
25235         * lib/tempname.c (gen_tempname): Remove variant that invokes
25236         __gen_tempname.
25237         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
25238         __gen_tempname.
25239
25240 2006-11-08  Bruno Haible  <bruno@clisp.org>
25241
25242         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
25243         to 'yes' instead of 'cross-compiling'.
25244
25245 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
25246
25247         * lib/quotearg.h (quotearg_free): New decl.
25248         * lib/quotearg.c (quotearg_free): New function.
25249         (slot0, nslots, slotvec0, slotvec):
25250         Now file-scope so that quotearg_free can get at them.
25251
25252 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25253
25254         Sync from Automake.
25255         * build-aux/gnupload: Add missing 'gnu' to example URL.
25256         Report by Karl Berry.
25257
25258 2006-11-08  Bruno Haible  <bruno@clisp.org>
25259
25260         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
25261         Suggested by Paul Eggert.
25262
25263 2006-11-08  Jim Meyering  <jim@meyering.net>
25264
25265         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
25266         It's already included if !_LIBC.
25267         (fts_safe_changedir): Add a comment.
25268
25269 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25270
25271         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
25272         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
25273         Matthew Woehlke.
25274
25275         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
25276         definitions up, to avoid colliding with change below.
25277         (static_inline) [HAVE_INLINE]: New macro.
25278         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
25279         Provide extern decls when !HAVE_INLINE.  Do not define unless
25280         static_inline is defined, either by us or by xmalloc.c.  Use
25281         static_inline rather than static inline.
25282         (XCALLOC): Optimize sizeof(T) = 1 case.
25283         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
25284
25285 2006-11-07  Bruno Haible  <bruno@clisp.org>
25286
25287         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
25288         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
25289         AC_C_INLINE.
25290         * modules/xalloc (Files): Add m4/inline.m4.
25291
25292 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25293
25294         * README: Fix typo.
25295         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
25296         (Miscellanous Notes): ...from this.
25297
25298 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25299
25300         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25301         Mention that offsetof should be used instead of sizeof.
25302         From Bruno Haible.
25303
25304 2006-11-07  Bruno Haible  <bruno@clisp.org>
25305
25306         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
25307
25308 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25309
25310         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
25311         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
25312         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
25313         (gl_tree_add_before, gl_tree_add_after):
25314         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
25315         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
25316         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
25317         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
25318         (gl_linked_add_after, gl_linked_add_at): Likewise.
25319         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
25320         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
25321         (gl_tree_add_before, gl_tree_add_after): Likewise.
25322         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
25323         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
25324         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25325
25326 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25327
25328         * lib/gl_oset.h: Use C comment style, not C++ comment style.
25329
25330 2006-11-06  Bruno Haible  <bruno@clisp.org>
25331
25332         * m4/inline.m4: New file.
25333         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
25334         * modules/list (Files): Add m4/inline.m4.
25335         * modules/oset (Files): Likewise.
25336
25337 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25338
25339         * lib/idcache.c: Include <stddef.h>, for offsetof.
25340         (struct userid.name): Change from char * to a flexible array member.
25341         All uses changed.
25342         * modules/idcache (Depends-on): Add flexmember.
25343
25344         * MODULES.html.sh (Core language properties): New module flexmember.
25345         * modules/flexmember, m4/flexmember.m4: New files.
25346
25347         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
25348         inline functions that are identical with the old xnmalloc_inline,
25349         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
25350         that we can avoid some unnecessary integer multiplications and
25351         divisions in the common case where the element size is known at
25352         compile time.
25353         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
25354         needed.
25355         (xnboundedmalloc): Remove.
25356         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
25357         arguments, for consistency with rest of this header.
25358         (xcharalloc): Rewrite using XNMALLOC.
25359         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
25360         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
25361         versions have been moved to lib/xalloc.h and renamed to be the
25362         non-*_inline versions.
25363         (xmalloc, xrealloc): Implement without reference to the xnmalloc
25364         and xnrealloc functions, since those functions are now inline and
25365         now call us.
25366         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
25367         renaming described above.
25368         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
25369         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
25370         captures the dependency in AC_C_INLINE.
25371
25372         New module canonicalize-lgpl, proposed by Charles Wilson in
25373         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
25374         with a few small changes afterwards.
25375         * MODULES.html.sh (File system functions): New module
25376         canonicalize-lgpl.
25377         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
25378         and canonicalize_file_name.
25379         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
25380         * modules/canonicalize-lgpl: New files.
25381
25382 2006-11-05  Bruno Haible  <bruno@clisp.org>
25383
25384         * gnulib-tool (func_import, func_create_testdir): Create directories
25385         also for files in subdirectories of lib/.
25386
25387 2006-11-05  Bruno Haible  <bruno@clisp.org>
25388
25389         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
25390         ANSI C compliant.
25391
25392 2006-11-03  Bruno Haible  <bruno@clisp.org>
25393
25394         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
25395         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
25396         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
25397         (xnboundedmalloc): New inline function.
25398         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
25399         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
25400         xmalloc.
25401         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
25402         xmalloc.
25403         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
25404         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
25405         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
25406         xmalloc.
25407         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
25408         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
25409         xmalloc.
25410         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
25411         gl_tree_add_after): Use XMALLOC instead of xmalloc.
25412         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
25413         xmalloc.
25414         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
25415         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
25416         gl_tree_add_after): Use XMALLOC instead of xmalloc.
25417         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
25418         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
25419         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
25420         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
25421
25422 2006-11-03  Bruno Haible  <bruno@clisp.org>
25423
25424         * lib/c-ctype.h [C++]: Define functions without name mangling.
25425         * lib/fwriteerror.h [C++]: Likewise.
25426         * lib/gcd.h [C++]: Likewise.
25427         * lib/linebreak.h [C++]: Likewise.
25428
25429 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25430
25431         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
25432         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
25433         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
25434         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
25435         Check for functions and headers just once.
25436         Check for declaration of canonicalize_file_name.
25437         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
25438
25439 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25440
25441         * gnulib-tool (func_import): Fix typo in actioncmd.
25442
25443 2006-11-02  Bruno Haible  <bruno@clisp.org>
25444
25445         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
25446         newline sequence in the Makefile.am snippet as a space, like "make"
25447         does.
25448         Reported by Roger Persson <perrog@gmail.com>.
25449
25450 2006-11-01  Bruno Haible  <bruno@clisp.org>
25451
25452         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
25453         already declared in <string.h>.
25454         * lib/strcase.h (strncasecmp): Don't declare it if yes.
25455
25456 2006-11-01  Bruno Haible  <bruno@clisp.org>
25457
25458         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
25459         * lib/strcase.h: Include <string.h>.
25460         (strcasecmp): Define to rpl_strcasecmp here.
25461
25462 2006-11-01  Bruno Haible  <bruno@clisp.org>
25463
25464         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
25465
25466 2006-11-01  Eric Blake  <ebb9@byu.net>
25467
25468         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
25469
25470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
25471
25472 2006-10-29  Bruno Haible  <bruno@clisp.org>
25473
25474         Make it compile in C++ mode.
25475         * lib/full-write.c (full_rw): Add a cast.
25476
25477 2006-11-01  Bruno Haible  <bruno@clisp.org>
25478
25479         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
25480         be POSIX compliant.
25481         Reported by Roger Persson <perrog@gmail.com>.
25482
25483 2006-11-01  Eric Blake  <ebb9@byu.net>
25484
25485         * lib/getopt_.h: Fix comments.
25486
25487 2006-10-31  Eric Blake  <ebb9@byu.net>
25488
25489         * modules/tmpdir (Depends-on): Add sys_stat.
25490         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
25491         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
25492         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
25493         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
25494         tempname.
25495
25496 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25497
25498         Avoid some C++ diagnostics reported by Bruno Haible.
25499         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
25500         xmalloc.
25501         (quotearg_alloc): Use xcharalloc rather than xmalloc.
25502         (struct slotvec): Move to top level.
25503         (quotearg_n_options): Rewrite to avoid xmalloc.
25504         * lib/xalloc.h (xcharalloc): New function.
25505         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
25506         [defined __cplusplus]: Add function template that provides result
25507         type propagation.  This part of the change is from Bruno Haible.
25508
25509 2006-10-29  Bruno Haible  <bruno@clisp.org>
25510
25511         Make it compile in C++ mode.
25512         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
25513         * lib/strnlen1.c (strnlen1): Cast memchr result.
25514         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
25515         * lib/clean-temp.c (string_equals, string_hash): Add casts.
25516         (create_temp_dir): Rename local variable 'template'.
25517         (compile_csharp_using_sscli): Add cast.
25518         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
25519         * lib/findprog.c (find_in_path): Likewise.
25520         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
25521         * lib/wait-process.c (register_slave_subprocess): Likewise.
25522
25523 2006-10-22  Bruno Haible  <bruno@clisp.org>
25524
25525         * modules/tsearch: New file.
25526         * lib/tsearch.h: New file.
25527         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
25528         * m4/tsearch.m4: New file.
25529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
25530
25531 2006-10-29  Eric Blake  <ebb9@byu.net>
25532
25533         * lib/arcfour.c: Assume config.h.
25534         * lib/arctwo.c: Likewise.
25535         * lib/base64.c: Likewise.
25536         * lib/check-version.c: Likewise.
25537         * lib/crc.c: Likewise.
25538         * lib/des.c: Likewise.
25539         * lib/gc-gnulib.c: Likewise.
25540         * lib/gc-libgcrypt.c: Likewise.
25541         * lib/gc-pbkdf2-sha1.c: Likewise.
25542         * lib/getaddrinfo.c: Likewise.
25543         * lib/getdelim.c: Likewise.
25544         * lib/getline.c: Likewise.
25545         * lib/hmac-md5.c: Likewise.
25546         * lib/hmac-sha1.c: Likewise.
25547         * lib/iconvme.c: Likewise.
25548         * lib/md2.c: Likewise.
25549         * lib/md4.c: Likewise.
25550         * lib/memxor.c: Likewise.
25551         * lib/read-file.c: Likewise.
25552         * lib/readline.c: Likewise.
25553         * lib/rijndael-alg-fst.c: Likewise.
25554         * lib/rijndael-api-fst.c: Likewise.
25555         * lib/xgetdomainname.c: Likewise.
25556
25557 2006-10-28  Eric Blake  <ebb9@byu.net>
25558
25559         * lib/xstrndup.c: Assume config.h.
25560
25561 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
25562
25563         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
25564         stat-macros.h is now for our own macros, whereas stat_h is for
25565         macros in the <sys/stat.h> name space.
25566         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
25567         (STAT_MACROS_H): Remove.
25568         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
25569         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
25570         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
25571         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
25572         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
25573         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
25574         Move these macros to ...
25575         * lib/stat_.h: here.  Don't include stat-macros.h.
25576         * lib/canonicalize.c: Don't include stat-macros.h.
25577         * lib/chown.c: Likewise.
25578         * lib/euidaccess.c: Likewise.
25579         * lib/file-type.c: Likewise.
25580         * lib/filemode.c: Likewise.
25581         * lib/glob.c: Likewise.
25582         * lib/isapipe.c: Likewise.
25583         * lib/lchown.c: Likewise.
25584         * lib/lstat.c: Likewise.
25585         * lib/mkdir-p.c: Likewise.
25586         * lib/rmdir.c: Likewise.
25587         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
25588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
25589         unless mkdir isn't declared, to speed up 'configure'.
25590         Always create sys/stat.h, since it's unlikely any real sys/stat.h
25591         would define all the S_* symbols.
25592         * modules/canonicalize (Depends-on):
25593         Depend on sys_stat, not stat-macros.
25594         * modules/chown: Likewise.
25595         * modules/euidaccess: Likewise.
25596         * modules/filemode: Likewise.
25597         * modules/file-type: Likewise.
25598         * modules/glob: Likewise.
25599         * modules/isapipe: Likewise.
25600         * modules/lchown: Likewise.
25601         * modules/lstat: Likewise.
25602         * modules/mkancesdirs: Likewise.
25603         * modules/rmdir: Likewise.
25604         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
25605         * modules/modechange: Likewise.
25606         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
25607         (configure.ac): Remove gl_STAT_MACROS.
25608         * modules/sys_stat (Depends-on): Remove stat-macros.
25609
25610 2006-10-27  Bruno Haible  <bruno@clisp.org>
25611
25612         * m4/signed.m4: Remove file.
25613         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
25614         invocation.
25615         * modules/vasnprintf (Files): Remove m4/signed.m4.
25616
25617 2006-10-27  Bruno Haible  <bruno@clisp.org>
25618
25619         Update to GNU gettext 0.16.
25620         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
25621         m4/inttypes-h.m4, m4/signed.m4.
25622         * m4/gettext.m4: Update to GNU gettext 0.16.
25623         * m4/intl.m4: New file, from GNU gettext.
25624         * m4/intldir.m4: New file, from GNU gettext.
25625         * config/srclist.txt: Update
25626
25627 2006-10-27  Eric Blake  <ebb9@byu.net>
25628
25629         * MODULES.html.sh: Document tempname.
25630         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
25631         dependencies.
25632         (Files): Move lib/tempname.c...
25633         * modules/tempname: ...to this new module.
25634         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
25635         (gl_PREREQ_TEMPNAME): Move...
25636         * m4/tempname.m4: ...to this new file.
25637         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
25638         * modules/sys_stat (Depends-on): Add stat-macros.
25639         * lib/stat_.h (includes): Pick up stat macros.
25640         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
25641         if stat macros are broken.
25642         * lib/tempname.c (includes): No need to include "stat-macros.h".
25643         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
25644         (direxists, __path_search) [!_LIBC]: Don't compile these in
25645         gnulib; the tmpdir module covers that.
25646         * lib/tempname.h: New file.
25647
25648 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25649
25650         * COPYING: Explain how gnulib-tool converts licence headers.
25651         Almost all wording by Eric Blake.
25652
25653 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25654
25655         * lib/mbchar.h (is_basic_table): Make read-only.
25656         * lib/mbchar.c (is_basic_table): Likewise.
25657         Reported by John Darrington.
25658
25659 2006-10-25  Bruno Haible  <bruno@clisp.org>
25660
25661         * lib/progname.h (set_program_name): Undefine before defining.
25662
25663 2006-10-25  Bruno Haible  <bruno@clisp.org>
25664
25665         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
25666         false for non-gcc C++ compilers.
25667         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25668
25669 2006-10-24  Bruno Haible  <bruno@clisp.org>
25670
25671         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
25672         iconv implementations like Irix iconv.
25673
25674 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
25675
25676         * modules/vararrays: New file.
25677         * m4/vararrays.m4: New file, taken from diffutils.
25678         * MODULES.html.sh: New module vararrays.
25679
25680 2006-10-24  Karl Berry  <karl@gnu.org>
25681
25682         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
25683         Don't call GNU Unix.
25684
25685 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25686
25687         * users.txt: Add Libtool.
25688
25689         Sync from Libtool:
25690
25691         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
25692
25693         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
25694         to gnulib's policy of including config.h unconditionally.
25695
25696 2006-10-24  Bruno Haible  <bruno@clisp.org>
25697
25698         * modules/wcwidth (Files): Add m4/wint_t.m4.
25699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
25700         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
25701
25702 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
25705         to pacify GCC with some -W flags enabled.  Problem reported by
25706         Bruno Haible.
25707
25708 2006-10-24  Jim Meyering  <jim@meyering.net>
25709
25710         * MODULES.html.sh: Remove uinttostr.  It's not a module.
25711         Reported by Karl Berry.
25712
25713 2006-10-23  Bruno Haible  <bruno@clisp.org>
25714
25715         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
25716
25717 2006-10-24  Bruno Haible  <bruno@clisp.org>
25718
25719         * lib/gl_list.h: Use C comment style, not C++ comment style.
25720
25721 2006-10-23  Eric Blake  <ebb9@byu.net>
25722
25723         * lib/getaddrinfo.c (includes): Add missing include.
25724
25725 2006-10-23  Bruno Haible  <bruno@clisp.org>
25726             Paul Eggert  <eggert@cs.ucla.edu>
25727
25728         Ability to rename obstack_free.
25729         * lib/obstack.h (__obstack_free): New macro. Declare instead of
25730         obstack_free.
25731         (obstack_free): Invoke the __obstack_free macro.
25732         * lib/obstack.c (obstack_free): Use __obstack_free macro.
25733
25734 2006-10-23  Bruno Haible  <bruno@clisp.org>
25735             Paul Eggert  <eggert@cs.ucla.edu>
25736
25737         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
25738         __argc, __argv from the declaration. (They are defined as macros on
25739         mingw.)
25740
25741 2006-10-22  Bruno Haible  <bruno@clisp.org>
25742
25743         * doc/gnulib-intro.texi: New file.
25744         * doc/gnulib.texi: Include it.
25745
25746 2006-10-21  Bruno Haible  <bruno@clisp.org>
25747
25748         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
25749         "Introduction", "Miscellanous Notes", "Particular Modules".
25750
25751 2006-10-21  Bruno Haible  <bruno@clisp.org>
25752
25753         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25754         Change mostlyclean-local rule to avoid sh syntax error from bash
25755         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
25756
25757 2006-10-23  Jim Meyering  <jim@meyering.net>
25758
25759         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
25760         in place of snprintf.
25761
25762         * modules/inttostr (Files): Add lib/uinttostr.c.
25763         * lib/uinttostr.c (inttostr): New file/function.
25764         * lib/inttostr.h (uinttostr): Declare.
25765         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
25766         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25767         Add uinttostr.
25768         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
25769
25770 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
25771
25772         * lib/canonicalize.c (ELOOP): Define if not already defined.
25773         Problem reported by Bruno Haible in
25774         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
25775
25776 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
25777
25778         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
25779         Problem reported by Perry Smith and Ville Laurikari.
25780
25781         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
25782         uses.
25783
25784 2006-10-19  Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
25787         for mingw.
25788
25789 2006-10-19  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
25792         Needed for mingw.
25793
25794 2006-10-19  Bruno Haible  <bruno@clisp.org>
25795
25796         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
25797
25798 2006-10-19  Bruno Haible  <bruno@clisp.org>
25799
25800         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
25801         it.
25802
25803 2006-10-19  Bruno Haible  <bruno@clisp.org>
25804
25805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
25806         invocation.
25807
25808 2006-10-19  Bruno Haible  <bruno@clisp.org>
25809
25810         * gnulib-tool (func_create_testdir): Don't include ftruncate and
25811         mountlist by default.
25812
25813 2006-10-16  Bruno Haible  <bruno@clisp.org>
25814
25815         * lib/c-strstr.c: Include c-strstr.h.
25816
25817 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
25818
25819         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
25820         in a slash.
25821
25822 2006-10-18  Bruno Haible  <bruno@clisp.org>
25823
25824         * lib/lock.h [C++]: Wrap definitions in extern "C".
25825
25826 2006-10-18  Bruno Haible  <bruno@clisp.org>
25827
25828         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
25829         gl_LIBOBJS list.
25830
25831 2006-10-18  Bruno Haible  <bruno@clisp.org>
25832
25833         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
25834
25835 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
25836
25837         * lib/xstrtol.h: Include gettext.h.
25838         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
25839         Problem reported by Eric Blake.
25840         * modules/xstrtol (Depends-on): Add gettext-h.
25841
25842 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
25843
25844         * lib/strftime.c (advance): New macro.
25845         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
25846         incomplete type, so you can't add 0 to it.  Problem and patch
25847         reported by Eelco Dolstra for dietlibc.
25848
25849 2006-10-18  Jim Meyering  <jim@meyering.net>
25850
25851         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
25852         type for a local, and rename it: s/up/user_proc/.
25853
25854 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
25855
25856         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
25857         READ_UTMP_USER_PROCESS.
25858         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
25859
25860 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
25861
25862         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
25863         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
25864
25865 2006-10-17  Eric Blake  <ebb9@byu.net>
25866
25867         * lib/sigprocmask.c (sigprocmask): Fix typo.
25868
25869         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
25870
25871         * modules/clean-temp (Makefile.am): Don't add to make output...
25872         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
25873         config.h.
25874
25875 2006-10-17  Bruno Haible  <bruno@clisp.org>
25876
25877         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
25878         differently if DEFAULT_TEXT_DOMAIN is set.
25879
25880 2006-10-16  Bruno Haible  <bruno@clisp.org>
25881
25882         * lib/clean-temp.c: Include fwriteerror.h.
25883
25884 2006-10-16  Bruno Haible  <bruno@clisp.org>
25885
25886         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
25887
25888 2006-10-16  Bruno Haible  <bruno@clisp.org>
25889
25890         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
25891         * lib/sigprocmask.h: Include <sys/types.h>.
25892         (sigset_t): Use the system's definition if present.
25893
25894 2006-10-17  Eric Blake  <ebb9@byu.net>
25895
25896         * lib/xvasprintf.c (includes): Assume config.h.
25897         * lib/xasprintf.c (includes): Likewise.
25898
25899 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25900
25901         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
25902         at least as wide as intmax_t.
25903
25904 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
25905
25906         (Imported from Automake.)
25907         * build-aux/gnupload: Update to version 1.1 of directive file.
25908
25909 2006-10-16  Eric Blake  <ebb9@byu.net>
25910
25911         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
25912         match Automake 1.10a.
25913
25914 2006-10-14  Bruno Haible  <bruno@clisp.org>
25915
25916         * modules/sigprocmask: New file.
25917         * lib/sigprocmask.h: New file.
25918         * lib/sigprocmask.c: New file.
25919         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
25920         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
25921         request sigprocmask.o.
25922         (gl_PREREQ_SIGPROCMASK): New macro.
25923         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
25924         (Depends-on): Add sigprocmask.
25925         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
25926         gt_SIGNALBLOCKING. Test for 'raise' only once.
25927         * lib/fatal-signal.c: Include sigprocmask.h.
25928         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
25929         unblock_fatal_signals): Define always.
25930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25931         sigprocmask.
25932
25933 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
25934
25935         Sync from Automake.
25936         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
25937         which incorrectly sets the mode of an existing destination
25938         directory.  In some cases the unpatched install-sh could do the
25939         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
25940         system.  We hope this is rare in practice, but it's clearly worth
25941         fixing.  Problem reported by Alex Unleashed in
25942         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
25943         Also, don't bother to check for -m bugs unless we're using -m;
25944         suggested by Stepan Kasal.
25945
25946 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25947
25948         Sync from Automake.
25949         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
25950         `-c' flag, so they appear at the same position as in %FASTDEP%
25951         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
25952         which ignores unknown options only after the first non-option.
25953         Bug report against M4 by Nelson H. F. Beebe.
25954
25955 2006-10-13  Jim Meyering  <jim@meyering.net>
25956
25957         Fix a bug in yesterday's change.
25958         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
25959         p->fts_statp->st_dev would be used uninitialized.
25960         Ensures that we always call fts_stat on the very first entry.
25961         Miklos Szeredi reported that find -xdev stopped working.
25962
25963 2006-10-12  Bruno Haible  <bruno@clisp.org>
25964
25965         * gnulib-tool (func_get_automake_snippet): Append an automatically
25966         computed EXTRA_DIST augmentation.
25967         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
25968         * modules/alloca-opt (Makefile.am): Likewise.
25969         * modules/allocsa (Makefile.am): Likewise.
25970         * modules/arcfour (Makefile.am): Likewise.
25971         * modules/arctwo (Makefile.am): Likewise.
25972         * modules/argmatch (Makefile.am): Likewise.
25973         * modules/argz (Makefile.am): Likewise.
25974         * modules/atexit (Makefile.am): Likewise.
25975         * modules/backupfile (Makefile.am): Likewise.
25976         * modules/byteswap (Makefile.am): Likewise.
25977         * modules/c-strtod (Makefile.am): Likewise.
25978         * modules/c-strtold (Makefile.am): Likewise.
25979         * modules/calloc (Makefile.am): Likewise.
25980         * modules/canon-host (Makefile.am): Likewise.
25981         * modules/canonicalize (Makefile.am): Likewise.
25982         * modules/chdir-long (Makefile.am): Likewise.
25983         * modules/chdir-safer (Makefile.am): Likewise.
25984         * modules/check-version (Makefile.am): Likewise.
25985         * modules/chown (Makefile.am): Likewise.
25986         * modules/cloexec (Makefile.am): Likewise.
25987         * modules/close-stream (Makefile.am): Likewise.
25988         * modules/closeout (Makefile.am): Likewise.
25989         * modules/crc (Makefile.am): Likewise.
25990         * modules/csharpexec (Makefile.am): Likewise.
25991         * modules/cycle-check (Makefile.am): Likewise.
25992         * modules/des (Makefile.am): Likewise.
25993         * modules/dev-ino (Makefile.am): Likewise.
25994         * modules/dirfd (Makefile.am): Likewise.
25995         * modules/dirname (Makefile.am): Likewise.
25996         * modules/dup2 (Makefile.am): Likewise.
25997         * modules/eealloc (Makefile.am): Likewise.
25998         * modules/error (Makefile.am): Likewise.
25999         * modules/euidaccess (Makefile.am): Likewise.
26000         * modules/exclude (Makefile.am): Likewise.
26001         * modules/exitfail (Makefile.am): Likewise.
26002         * modules/fcntl-safer (Makefile.am): Likewise.
26003         * modules/fcntl (Makefile.am): Likewise.
26004         * modules/file-type (Makefile.am): Likewise.
26005         * modules/fileblocks (Makefile.am): Likewise.
26006         * modules/filemode (Makefile.am): Likewise.
26007         * modules/filenamecat (Makefile.am): Likewise.
26008         * modules/fnmatch (Makefile.am): Likewise.
26009         * modules/fopen-safer (Makefile.am): Likewise.
26010         * modules/fpending (Makefile.am): Likewise.
26011         * modules/fprintftime (Makefile.am): Likewise.
26012         * modules/free (Makefile.am): Likewise.
26013         * modules/fsusage (Makefile.am): Likewise.
26014         * modules/ftruncate (Makefile.am): Likewise.
26015         * modules/fts (Makefile.am): Likewise.
26016         * modules/gc-arcfour (Makefile.am): Likewise.
26017         * modules/gc-des (Makefile.am): Likewise.
26018         * modules/gc-hmac-md5 (Makefile.am): Likewise.
26019         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
26020         * modules/gc-md4 (Makefile.am): Likewise.
26021         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
26022         * modules/gc-sha1 (Makefile.am): Likewise.
26023         * modules/gc (Makefile.am): Likewise.
26024         * modules/getaddrinfo (Makefile.am): Likewise.
26025         * modules/getcwd (Makefile.am): Likewise.
26026         * modules/getdelim (Makefile.am): Likewise.
26027         * modules/getdomainname (Makefile.am): Likewise.
26028         * modules/getgroups (Makefile.am): Likewise.
26029         * modules/gethostname (Makefile.am): Likewise.
26030         * modules/gethrxtime (Makefile.am): Likewise.
26031         * modules/getline (Makefile.am): Likewise.
26032         * modules/getloadavg (Makefile.am): Likewise.
26033         * modules/getlogin_r (Makefile.am): Likewise.
26034         * modules/getndelim2 (Makefile.am): Likewise.
26035         * modules/getopt (Makefile.am): Likewise.
26036         * modules/getpagesize (Makefile.am): Likewise.
26037         * modules/getpass-gnu (Makefile.am): Likewise.
26038         * modules/getpass (Makefile.am): Likewise.
26039         * modules/getsubopt (Makefile.am): Likewise.
26040         * modules/gettime (Makefile.am): Likewise.
26041         * modules/gettimeofday (Makefile.am): Likewise.
26042         * modules/getugroups (Makefile.am): Likewise.
26043         * modules/getusershell (Makefile.am): Likewise.
26044         * modules/glob (Makefile.am): Likewise.
26045         * modules/group-member (Makefile.am): Likewise.
26046         * modules/hard-locale (Makefile.am): Likewise.
26047         * modules/hash (Makefile.am): Likewise.
26048         * modules/hmac-md5 (Makefile.am): Likewise.
26049         * modules/hmac-sha1 (Makefile.am): Likewise.
26050         * modules/human (Makefile.am): Likewise.
26051         * modules/idcache (Makefile.am): Likewise.
26052         * modules/imaxabs (Makefile.am): Likewise.
26053         * modules/imaxdiv (Makefile.am): Likewise.
26054         * modules/inet_ntop (Makefile.am): Likewise.
26055         * modules/inet_pton (Makefile.am): Likewise.
26056         * modules/intprops (Makefile.am): Likewise.
26057         * modules/inttostr (Makefile.am): Likewise.
26058         * modules/inttypes (Makefile.am): Likewise.
26059         * modules/isapipe (Makefile.am): Likewise.
26060         * modules/javaversion (Makefile.am): Likewise.
26061         * modules/lchmod (Makefile.am): Likewise.
26062         * modules/lchown (Makefile.am): Likewise.
26063         * modules/localcharset (Makefile.am): Likewise.
26064         * modules/long-options (Makefile.am): Likewise.
26065         * modules/lstat (Makefile.am): Likewise.
26066         * modules/malloc (Makefile.am): Likewise.
26067         * modules/mathl (Makefile.am): Likewise.
26068         * modules/mbchar (Makefile.am): Likewise.
26069         * modules/md2 (Makefile.am): Likewise.
26070         * modules/md4 (Makefile.am): Likewise.
26071         * modules/md5 (Makefile.am): Likewise.
26072         * modules/memcasecmp (Makefile.am): Likewise.
26073         * modules/memchr (Makefile.am): Likewise.
26074         * modules/memcmp (Makefile.am): Likewise.
26075         * modules/memcoll (Makefile.am): Likewise.
26076         * modules/memcpy (Makefile.am): Likewise.
26077         * modules/memmem (Makefile.am): Likewise.
26078         * modules/memmove (Makefile.am): Likewise.
26079         * modules/mempcpy (Makefile.am): Likewise.
26080         * modules/memrchr (Makefile.am): Likewise.
26081         * modules/memset (Makefile.am): Likewise.
26082         * modules/memxor (Makefile.am): Likewise.
26083         * modules/mkancesdirs (Makefile.am): Likewise.
26084         * modules/mkdir-p (Makefile.am): Likewise.
26085         * modules/mkdir (Makefile.am): Likewise.
26086         * modules/mkdtemp (Makefile.am): Likewise.
26087         * modules/mkstemp (Makefile.am): Likewise.
26088         * modules/mktime (Makefile.am): Likewise.
26089         * modules/modechange (Makefile.am): Likewise.
26090         * modules/mountlist (Makefile.am): Likewise.
26091         * modules/nanosleep (Makefile.am): Likewise.
26092         * modules/obstack (Makefile.am): Likewise.
26093         * modules/openat (Makefile.am): Likewise.
26094         * modules/pagealign_alloc (Makefile.am): Likewise.
26095         * modules/pathmax (Makefile.am): Likewise.
26096         * modules/physmem (Makefile.am): Likewise.
26097         * modules/poll (Makefile.am): Likewise.
26098         * modules/posixtm (Makefile.am): Likewise.
26099         * modules/posixver (Makefile.am): Likewise.
26100         * modules/putenv (Makefile.am): Likewise.
26101         * modules/quote (Makefile.am): Likewise.
26102         * modules/quotearg (Makefile.am): Likewise.
26103         * modules/raise (Makefile.am): Likewise.
26104         * modules/read-file (Makefile.am): Likewise.
26105         * modules/readline (Makefile.am): Likewise.
26106         * modules/readlink (Makefile.am): Likewise.
26107         * modules/readtokens (Makefile.am): Likewise.
26108         * modules/readutmp (Makefile.am): Likewise.
26109         * modules/realloc (Makefile.am): Likewise.
26110         * modules/regex (Makefile.am): Likewise.
26111         * modules/rename-dest-slash (Makefile.am): Likewise.
26112         * modules/rename (Makefile.am): Likewise.
26113         * modules/rijndael (Makefile.am): Likewise.
26114         * modules/rmdir (Makefile.am): Likewise.
26115         * modules/rpmatch (Makefile.am): Likewise.
26116         * modules/safe-read (Makefile.am): Likewise.
26117         * modules/safe-write (Makefile.am): Likewise.
26118         * modules/same-inode (Makefile.am): Likewise.
26119         * modules/same (Makefile.am): Likewise.
26120         * modules/save-cwd (Makefile.am): Likewise.
26121         * modules/savedir (Makefile.am): Likewise.
26122         * modules/setenv (Makefile.am): Likewise.
26123         * modules/settime (Makefile.am): Likewise.
26124         * modules/sha1 (Makefile.am): Likewise.
26125         * modules/sig2str (Makefile.am): Likewise.
26126         * modules/snprintf (Makefile.am): Likewise.
26127         * modules/stat-macros (Makefile.am): Likewise.
26128         * modules/stat-time (Makefile.am): Likewise.
26129         * modules/stdbool (Makefile.am): Likewise.
26130         * modules/stdint (Makefile.am): Likewise.
26131         * modules/stdlib-safer (Makefile.am): Likewise.
26132         * modules/stpcpy (Makefile.am): Likewise.
26133         * modules/stpncpy (Makefile.am): Likewise.
26134         * modules/strcase (Makefile.am): Likewise.
26135         * modules/strcasestr (Makefile.am): Likewise.
26136         * modules/strchrnul (Makefile.am): Likewise.
26137         * modules/strcspn (Makefile.am): Likewise.
26138         * modules/strdup (Makefile.am): Likewise.
26139         * modules/strerror (Makefile.am): Likewise.
26140         * modules/strftime (Makefile.am): Likewise.
26141         * modules/strndup (Makefile.am): Likewise.
26142         * modules/strnlen (Makefile.am): Likewise.
26143         * modules/strpbrk (Makefile.am): Likewise.
26144         * modules/strsep (Makefile.am): Likewise.
26145         * modules/strstr (Makefile.am): Likewise.
26146         * modules/strtod (Makefile.am): Likewise.
26147         * modules/strtoimax (Makefile.am): Likewise.
26148         * modules/strtok_r (Makefile.am): Likewise.
26149         * modules/strtol (Makefile.am): Likewise.
26150         * modules/strtoll (Makefile.am): Likewise.
26151         * modules/strtoul (Makefile.am): Likewise.
26152         * modules/strtoull (Makefile.am): Likewise.
26153         * modules/strtoumax (Makefile.am): Likewise.
26154         * modules/strverscmp (Makefile.am): Likewise.
26155         * modules/sys_socket (Makefile.am): Likewise.
26156         * modules/sys_stat (Makefile.am): Likewise.
26157         * modules/sysexits (Makefile.am): Likewise.
26158         * modules/time_r (Makefile.am): Likewise.
26159         * modules/timegm (Makefile.am): Likewise.
26160         * modules/timespec (Makefile.am): Likewise.
26161         * modules/tmpfile-safer (Makefile.am): Likewise.
26162         * modules/trim (Makefile.am): Likewise.
26163         * modules/unistd-safer (Makefile.am): Likewise.
26164         * modules/unlinkdir (Makefile.am): Likewise.
26165         * modules/unlocked-io (Makefile.am): Likewise.
26166         * modules/userspec (Makefile.am): Likewise.
26167         * modules/utime (Makefile.am): Likewise.
26168         * modules/utimecmp (Makefile.am): Likewise.
26169         * modules/utimens (Makefile.am): Likewise.
26170         * modules/vasnprintf (Makefile.am): Likewise.
26171         * modules/vasprintf (Makefile.am): Likewise.
26172         * modules/vsnprintf (Makefile.am): Likewise.
26173         * modules/xalloc (Makefile.am): Likewise.
26174         * modules/xgetcwd (Makefile.am): Likewise.
26175         * modules/xnanosleep (Makefile.am): Likewise.
26176         * modules/xreadlink (Makefile.am): Likewise.
26177         * modules/xstrtod (Makefile.am): Likewise.
26178         * modules/xstrtol (Makefile.am): Likewise.
26179         * modules/xstrtold (Makefile.am): Likewise.
26180         * modules/yesno (Makefile.am): Likewise.
26181         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
26182
26183 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26184
26185         * modules/error (Makefile.am): Distribute files through
26186         EXTRA_DIST, not lib_SOURCES.
26187
26188 2006-10-12  Eric Blake  <ebb9@byu.net>
26189
26190         * modules/error (Makefile.am): Distribute files in /lib.
26191         * modules/obstack (Makefile.am): Likewise.
26192
26193 2006-10-12  Bruno Haible  <bruno@clisp.org>
26194
26195         * modules/acl (Makefile.am): Distribute all files in lib/ through
26196         EXTRA_DIST.
26197         * modules/arcfour (Makefile.am): Likewise.
26198         * modules/arctwo (Makefile.am): Likewise.
26199         * modules/argmatch (Makefile.am): Likewise.
26200         * modules/argz (Makefile.am): Likewise.
26201         * modules/atexit (Makefile.am): Likewise.
26202         * modules/backupfile (Makefile.am): Likewise.
26203         * modules/c-strtod (Makefile.am): Likewise.
26204         * modules/c-strtold (Makefile.am): Likewise.
26205         * modules/calloc (Makefile.am): Likewise.
26206         * modules/canon-host (Makefile.am): Likewise.
26207         * modules/canonicalize (Makefile.am): Likewise.
26208         * modules/chdir-long (Makefile.am): Likewise.
26209         * modules/chdir-safer (Makefile.am): Likewise.
26210         * modules/check-version (Makefile.am): Likewise.
26211         * modules/chown (Makefile.am): Likewise.
26212         * modules/cloexec (Makefile.am): Likewise.
26213         * modules/close-stream (Makefile.am): Likewise.
26214         * modules/closeout (Makefile.am): Likewise.
26215         * modules/crc (Makefile.am): Likewise.
26216         * modules/cycle-check (Makefile.am): Likewise.
26217         * modules/des (Makefile.am): Likewise.
26218         * modules/dirfd (Makefile.am): Likewise.
26219         * modules/dirname (Makefile.am): Likewise.
26220         * modules/dup2 (Makefile.am): Likewise.
26221         * modules/euidaccess (Makefile.am): Likewise.
26222         * modules/exclude (Makefile.am): Likewise.
26223         * modules/exitfail (Makefile.am): Likewise.
26224         * modules/fcntl-safer (Makefile.am): Likewise.
26225         * modules/file-type (Makefile.am): Likewise.
26226         * modules/fileblocks (Makefile.am): Likewise.
26227         * modules/filemode (Makefile.am): Likewise.
26228         * modules/filenamecat (Makefile.am): Likewise.
26229         * modules/fnmatch (Makefile.am): Likewise.
26230         * modules/fopen-safer (Makefile.am): Likewise.
26231         * modules/fpending (Makefile.am): Likewise.
26232         * modules/fprintftime (Makefile.am): Likewise.
26233         * modules/free (Makefile.am): Likewise.
26234         * modules/fsusage (Makefile.am): Likewise.
26235         * modules/ftruncate (Makefile.am): Likewise.
26236         * modules/fts (Makefile.am): Likewise.
26237         * modules/gc (Makefile.am): Likewise.
26238         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
26239         * modules/getaddrinfo (Makefile.am): Likewise.
26240         * modules/getcwd (Makefile.am): Likewise.
26241         * modules/getdelim (Makefile.am): Likewise.
26242         * modules/getdomainname (Makefile.am): Likewise.
26243         * modules/getgroups (Makefile.am): Likewise.
26244         * modules/gethostname (Makefile.am): Likewise.
26245         * modules/gethrxtime (Makefile.am): Likewise.
26246         * modules/getline (Makefile.am): Likewise.
26247         * modules/getloadavg (Makefile.am): Likewise.
26248         * modules/getlogin_r (Makefile.am): Likewise.
26249         * modules/getopt (Makefile.am): Likewise.
26250         * modules/getpass (Makefile.am): Likewise.
26251         * modules/getpass-gnu (Makefile.am): Likewise.
26252         * modules/getsubopt (Makefile.am): Likewise.
26253         * modules/gettime (Makefile.am): Likewise.
26254         * modules/gettimeofday (Makefile.am): Likewise.
26255         * modules/getugroups (Makefile.am): Likewise.
26256         * modules/getusershell (Makefile.am): Likewise.
26257         * modules/glob (Makefile.am): Likewise.
26258         * modules/group-member (Makefile.am): Likewise.
26259         * modules/hard-locale (Makefile.am): Likewise.
26260         * modules/hash (Makefile.am): Likewise.
26261         * modules/hmac-md5 (Makefile.am): Likewise.
26262         * modules/hmac-sha1 (Makefile.am): Likewise.
26263         * modules/human (Makefile.am): Likewise.
26264         * modules/idcache (Makefile.am): Likewise.
26265         * modules/imaxabs (Makefile.am): Likewise.
26266         * modules/imaxdiv (Makefile.am): Likewise.
26267         * modules/inet_ntop (Makefile.am): Likewise.
26268         * modules/inet_pton (Makefile.am): Likewise.
26269         * modules/inttostr (Makefile.am): Likewise.
26270         * modules/isapipe (Makefile.am): Likewise.
26271         * modules/lchown (Makefile.am): Likewise.
26272         * modules/long-options (Makefile.am): Likewise.
26273         * modules/lstat (Makefile.am): Likewise.
26274         * modules/malloc (Makefile.am): Likewise.
26275         * modules/mathl (Makefile.am): Likewise.
26276         * modules/mbchar (Makefile.am): Likewise.
26277         * modules/md2 (Makefile.am): Likewise.
26278         * modules/md4 (Makefile.am): Likewise.
26279         * modules/md5 (Makefile.am): Likewise.
26280         * modules/memcasecmp (Makefile.am): Likewise.
26281         * modules/memchr (Makefile.am): Likewise.
26282         * modules/memcmp (Makefile.am): Likewise.
26283         * modules/memcoll (Makefile.am): Likewise.
26284         * modules/memcpy (Makefile.am): Likewise.
26285         * modules/memmem (Makefile.am): Likewise.
26286         * modules/memmove (Makefile.am): Likewise.
26287         * modules/mempcpy (Makefile.am): Likewise.
26288         * modules/memrchr (Makefile.am): Likewise.
26289         * modules/memset (Makefile.am): Likewise.
26290         * modules/memxor (Makefile.am): Likewise.
26291         * modules/mkancesdirs (Makefile.am): Likewise.
26292         * modules/mkdir (Makefile.am): Likewise.
26293         * modules/mkdir-p (Makefile.am): Likewise.
26294         * modules/mkdtemp (Makefile.am): Likewise.
26295         * modules/mkstemp (Makefile.am): Likewise.
26296         * modules/mktime (Makefile.am): Likewise.
26297         * modules/modechange (Makefile.am): Likewise.
26298         * modules/mountlist (Makefile.am): Likewise.
26299         * modules/nanosleep (Makefile.am): Likewise.
26300         * modules/openat (Makefile.am): Likewise.
26301         * modules/pagealign_alloc (Makefile.am): Likewise.
26302         * modules/physmem (Makefile.am): Likewise.
26303         * modules/poll (Makefile.am): Likewise.
26304         * modules/posixtm (Makefile.am): Likewise.
26305         * modules/posixver (Makefile.am): Likewise.
26306         * modules/putenv (Makefile.am): Likewise.
26307         * modules/quote (Makefile.am): Likewise.
26308         * modules/quotearg (Makefile.am): Likewise.
26309         * modules/raise (Makefile.am): Likewise.
26310         * modules/read-file (Makefile.am): Likewise.
26311         * modules/readline (Makefile.am): Likewise.
26312         * modules/readlink (Makefile.am): Likewise.
26313         * modules/readtokens (Makefile.am): Likewise.
26314         * modules/readutmp (Makefile.am): Likewise.
26315         * modules/realloc (Makefile.am): Likewise.
26316         * modules/regex (Makefile.am): Likewise.
26317         * modules/rename (Makefile.am): Likewise.
26318         * modules/rename-dest-slash (Makefile.am): Likewise.
26319         * modules/rijndael (Makefile.am): Likewise.
26320         * modules/rmdir (Makefile.am): Likewise.
26321         * modules/rpmatch (Makefile.am): Likewise.
26322         * modules/safe-read (Makefile.am): Likewise.
26323         * modules/safe-write (Makefile.am): Likewise.
26324         * modules/same (Makefile.am): Likewise.
26325         * modules/save-cwd (Makefile.am): Likewise.
26326         * modules/savedir (Makefile.am): Likewise.
26327         * modules/setenv (Makefile.am): Likewise.
26328         * modules/settime (Makefile.am): Likewise.
26329         * modules/sha1 (Makefile.am): Likewise.
26330         * modules/sig2str (Makefile.am): Likewise.
26331         * modules/snprintf (Makefile.am): Likewise.
26332         * modules/stdlib-safer (Makefile.am): Likewise.
26333         * modules/stpcpy (Makefile.am): Likewise.
26334         * modules/stpncpy (Makefile.am): Likewise.
26335         * modules/strcase (Makefile.am): Likewise.
26336         * modules/strcasestr (Makefile.am): Likewise.
26337         * modules/strchrnul (Makefile.am): Likewise.
26338         * modules/strcspn (Makefile.am): Likewise.
26339         * modules/strdup (Makefile.am): Likewise.
26340         * modules/strerror (Makefile.am): Likewise.
26341         * modules/strftime (Makefile.am): Likewise.
26342         * modules/strndup (Makefile.am): Likewise.
26343         * modules/strnlen (Makefile.am): Likewise.
26344         * modules/strpbrk (Makefile.am): Likewise.
26345         * modules/strsep (Makefile.am): Likewise.
26346         * modules/strstr (Makefile.am): Likewise.
26347         * modules/strtod (Makefile.am): Likewise.
26348         * modules/strtoimax (Makefile.am): Likewise.
26349         * modules/strtok_r (Makefile.am): Likewise.
26350         * modules/strtol (Makefile.am): Likewise.
26351         * modules/strtoll (Makefile.am): Likewise.
26352         * modules/strtoul (Makefile.am): Likewise.
26353         * modules/strtoull (Makefile.am): Likewise.
26354         * modules/strtoumax (Makefile.am): Likewise.
26355         * modules/strverscmp (Makefile.am): Likewise.
26356         * modules/time_r (Makefile.am): Likewise.
26357         * modules/timegm (Makefile.am): Likewise.
26358         * modules/tmpfile-safer (Makefile.am): Likewise.
26359         * modules/unistd-safer (Makefile.am): Likewise.
26360         * modules/unlinkdir (Makefile.am): Likewise.
26361         * modules/userspec (Makefile.am): Likewise.
26362         * modules/utime (Makefile.am): Likewise.
26363         * modules/utimecmp (Makefile.am): Likewise.
26364         * modules/utimens (Makefile.am): Likewise.
26365         * modules/vasnprintf (Makefile.am): Likewise.
26366         * modules/vasprintf (Makefile.am): Likewise.
26367         * modules/vsnprintf (Makefile.am): Likewise.
26368         * modules/xalloc (Makefile.am): Likewise.
26369         * modules/xgetcwd (Makefile.am): Likewise.
26370         * modules/xnanosleep (Makefile.am): Likewise.
26371         * modules/xreadlink (Makefile.am): Likewise.
26372         * modules/xstrtod (Makefile.am): Likewise.
26373         * modules/xstrtol (Makefile.am): Likewise.
26374         * modules/xstrtold (Makefile.am): Likewise.
26375         * modules/yesno (Makefile.am): Likewise.
26376
26377 2006-10-12  Jim Meyering  <jim@meyering.net>
26378
26379         * m4/getloadavg.m4: Revert the change below.
26380
26381         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
26382         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
26383         fail with a symlink, which is what coreutils' ./bootstrap now
26384         creates by default.
26385
26386 2006-10-12  Bruno Haible  <bruno@clisp.org>
26387
26388         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
26389         mingw.
26390         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
26391         MSVC and mingw explicitly.
26392
26393 2006-10-11  Simon Josefsson  <jas@extundo.com>
26394             Bruno Haible  <bruno@clisp.org>
26395
26396         Add support for multiple gnulib-tool invocations in the scope of a
26397         single configure.ac file.
26398         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
26399         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
26400         with the same contents as the _LIBADD variable.
26401         (func_emit_initmacro_start, func_emit_initmacro_end,
26402         func_emit_initmacro_done): New functions.
26403         (func_import, func_create_testdir): Invoke them. Allow the identifiers
26404         gl_LIBOBJS and gl_LTLIBOBJS.
26405
26406 2006-10-11  Bruno Haible  <bruno@clisp.org>
26407
26408         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
26409         (func_create_testdir): Don't create po/Makefile.am, don't invoke
26410         autoreconf. Instead, invoke autopoint explicitly but move back the
26411         *.m4 files from gnulib.
26412
26413 2006-10-11  Bruno Haible  <bruno@clisp.org>
26414
26415         * gnulib-tool (func_usage): Make module names after --create-testdir
26416         optional.
26417         (func_create_testdir): If no module was specified, use nearly all
26418         modules.
26419
26420 2006-10-12  Jim Meyering  <jim@meyering.net>
26421
26422         Big performance improvement for fts-based tools that use FTS_NOSTAT.
26423         Avoid spurious inode-mismatch problems on non-POSIX file systems.
26424         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
26425         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
26426         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
26427         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
26428         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
26429         (fts_set_stat_required): New function.
26430         (fts_open): Defer the calls to fts_stat, if possible or requested.
26431         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
26432         into fts_stat itself.
26433         (fts_read): Perform any required (deferred) fts_stat call.
26434         (fts_build): Likewise, for the directory we're about to open and read.
26435         In the readdir loop, carefully decide whether each entry will require
26436         an eventual call to fts_stat, using dirent.d_type info if available.
26437         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
26438         a command line argument into this function.  Update all callers.
26439         Map a return value of FTS_DOT to FTS_D for a command line argument.
26440         * modules/fts (Depends-on): Add d-type.  Alphabetize.
26441         Thanks to Miklos Szeredi for his tenacity and for the initial
26442         bug report about "find" failing on a FUSE-based file system.
26443
26444         * lib/fts.c (fts_open): Use consistent indentation.
26445
26446 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26447
26448         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
26449         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
26450         reported by Jim Meyering.  All uses of cache variables renamed
26451         to match Autoconf's.
26452         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
26453         the other one.
26454
26455         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26456         Fix misspelling in diagnostic.
26457
26458 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26459
26460         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
26461         defined.  Problem reported by Matthew Woehlke.
26462
26463         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
26464         Add support for Tandem NonStop R series.
26465         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
26466         Use new macro.
26467
26468         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
26469         (has_trailing_slash): Omit size arg; all callers changed.
26470         Omit 'inline', since it doesn't help performance and we'd
26471         need to configure it.
26472         Don't count //, ///, etc. as having a trailing slash.
26473         As a side effect, this removes a C99ism reported by Matthew Woehlke.
26474         (rpl_rename_dest_slash): On failure, use rename's errno rather
26475         than (in some cases) an incorrect or junk errno.
26476         Simplify code by removing need to compute length; this does
26477         cause it to make two passes instead of one over the file name,
26478         but it's worth it.
26479
26480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
26481         change, since Autoconf's version may no longer be appropriate now
26482         that we are using CVS Autoconf's version.  Add support for Tandem.
26483
26484 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26485             Bruno Haible  <bruno@clisp.org>
26486
26487         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
26488         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
26489         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
26490         gl_AC_TYPE_LONG_LONG.
26491
26492         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
26493         instead of HAVE_LONG_LONG.
26494         * lib/printf-args.c (printf_fetchargs): Likewise.
26495         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26496         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
26498         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
26499         gl_AC_TYPE_LONG_LONG.
26500
26501 2006-10-11  Bruno Haible  <bruno@clisp.org>
26502
26503         * m4/longlong.m4: Add comments.
26504         * m4/ulonglong.m4: Likewise.
26505
26506 2006-10-10  Bruno Haible  <bruno@clisp.org>
26507
26508         Make it possible to #define stpcpy, strdup to aliases.
26509         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
26510         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
26511
26512 2006-10-10  Bruno Haible  <bruno@clisp.org>
26513
26514         Make it possible to #define gcd to an alias.
26515         * lib/gcd.c: Include config.h.
26516
26517 2006-10-10  Bruno Haible  <bruno@clisp.org>
26518
26519         Make it possible to #define c_isascii to an alias.
26520         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
26521         defined. Undefine the macros before defining them, to avoid gcc
26522         warnings.
26523         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
26524         define NO_C_CTYPE_MACROS early.
26525
26526 2006-10-10  Bruno Haible  <bruno@clisp.org>
26527
26528         Make it possible to #define set_program_name to an alias.
26529         * lib/progname.c: Don't undefine set_program_name; instead, undefine
26530         ENABLE_RELOCATABLE early.
26531
26532 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26533
26534         Port to Tandem NSK OSS, which has 64-bit signed int but at most
26535         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
26536         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
26537         More generally, don't assume that 64-bit signed int is available
26538         if unsigned int is, and vice versa.
26539         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
26540         unsigned symbols, not on their signed counterparts.
26541         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
26542         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
26543         (UINT64_C, UINTMAX_C):
26544         Likewise.
26545         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
26546         unsigned counterparts.
26547         (Have_long_long, Unsigned): New macros.
26548         (Int): Renamed from INT.
26549         (strtoimax): Use the new macros.
26550         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
26551         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
26552         * modules/inttypes (inttypes.h): Substitute
26553         HAVE_UNSIGNED_LONG_LONG_INT.
26554         * modules/stdint (stdint.h): Likewise.
26555         (Files): Add m4/ulonglong.m4.
26556
26557 2006-10-10  Bruno Haible  <bruno@clisp.org>
26558
26559         Fix a gcc -Wshadow warning.
26560         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
26561         to 'bucket'.
26562         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
26563         gl_linked_indexof_from_to): Likewise.
26564         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
26565         Likewise.
26566         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
26567         Likewise.
26568         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
26569         Reported by Eric Blake.
26570
26571 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
26572
26573         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
26574         for NetBSD.  Problem reported by Bruno Haible.
26575
26576 2006-10-09  Jim Meyering  <jim@meyering.net>
26577
26578         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
26579         Patch from Bruno Haible.
26580
26581 2006-10-09  Jim Meyering  <jim@meyering.net>
26582
26583         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
26584         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
26585         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
26586
26587 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26588
26589         Don't include <config.h> twice; this doesn't work in some cases,
26590         e.g., when config.h has "#define intmax_t long long int" and
26591         we include <config.h>, <inttypes.h>, <config.h> in that order.
26592         Problem reported by Matthew Woehlke in:
26593         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
26594         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
26595         * lib/fts-cycle.c: Don't include config.h.
26596         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
26597         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
26598         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
26599         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
26600         inttypes.h.
26601         * lib/xstrtoumax.c: Likewise.
26602         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
26603         __strtol and the like, so that this module is more like its siblings.
26604         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
26605         Remove; no longer needed now that we assume gnulib inttypes.h.
26606
26607 2006-10-08  Bruno Haible  <bruno@clisp.org>
26608
26609         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
26610         option.
26611
26612 2006-10-07  Jim Meyering  <jim@meyering.net>
26613
26614         * modules/inttypes (inttypes.h): Revert what seems to have been
26615         an inadvertent part of today's change: use "|", not "/" in the
26616         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
26617
26618 2006-10-07  Bruno Haible  <bruno@clisp.org>
26619
26620         * modules/sublist: New file.
26621
26622 2006-10-07  Bruno Haible  <bruno@clisp.org>
26623
26624         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
26625         * modules/argz (argz.h): Likewise.
26626         * modules/arpa_inet (arpa/inet.h): Likewise.
26627         * modules/byteswap (byteswap.h): Likewise.
26628         * modules/configmake (configmake.h): Likewise.
26629         * modules/fcntl (fcntl.h): Likewise.
26630         * modules/fnmatch (fnmatch.h): Likewise.
26631         * modules/getopt (getopt.h): Likewise.
26632         * modules/glob (glob.h): Likewise.
26633         * modules/inttypes (inttypes.h): Likewise.
26634         * modules/netinet_in (netinet/in.h): Likewise.
26635         * modules/poll (poll.h): Likewise.
26636         * modules/stdbool (stdbool.h): Likewise.
26637         * modules/stdint (stdint.h): Likewise.
26638         * modules/sys_select (sys/select.h): Likewise.
26639         * modules/sys_socket (sys/socket.h): Likewise.
26640         * modules/sys_stat (sys/stat.h): Likewise.
26641         * modules/sysexits (sysexits.h): Likewise.
26642         * modules/unistd (unistd.h): Likewise.
26643         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26644         Add a "DO NOT EDIT" comment to the generated file.
26645         (func_import): Likewise for gnulib-comp.m4.
26646
26647 2006-10-07  Bruno Haible  <bruno@clisp.org>
26648
26649         * lib/gl_sublist.h: New file.
26650         * lib/gl_sublist.c: New file.
26651
26652 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26653
26654         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
26655         name (relative to the original working directory) and the file
26656         name component (relative to the temporary working directory).  All
26657         callers changed.
26658         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
26659         * lib/mkdir-p.c (make_dir_parents): Likewise.
26660         * lib/mkdir-p.h (make_dir_parents): Likewise.
26661
26662 2006-10-06  Eric Blake  <ebb9@byu.net>
26663
26664         Define several macros for use by the clean-temp module.
26665         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
26666         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
26667         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
26668
26669         * lib/clean-temp.h (close_stream_temp): New declaration.
26670         * lib/clean-temp.c (includes): Pull in headers according to what
26671         other modules are in use.
26672         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
26673
26674 2006-10-06  Bruno Haible  <bruno@clisp.org>
26675
26676         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
26677         instead of fopen, fwriteerror.
26678
26679 2006-10-06  Bruno Haible  <bruno@clisp.org>
26680
26681         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
26682         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
26683         int.
26684         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
26685         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
26686         Return an error indicator.
26687         Suggested by Eric Blake.
26688
26689 2006-10-06  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
26692         Reported by Eric Blake.
26693
26694 2006-10-06  Bruno Haible  <bruno@clisp.org>
26695
26696         * modules/closeout (Description): Mention stderr too.
26697
26698 2006-10-06  Bruno Haible  <bruno@clisp.org>
26699         and Paul Eggert  <eggert@cs.ucla.edu>
26700
26701         * lib/closeout.c (close_stdout): Also close stderr.
26702         * lib/closeout.h: Update comment.
26703
26704 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26705
26706         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
26707         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
26708         * lib/dirchownmod.c: Include lchown.h.
26709         * lib/lchown.c: Don't include files that lchown.h now includes.
26710         Don't declare chown, since lchown.h now does that.
26711         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
26712         (lchown): Define to rpl_chown if lchown is declared but
26713         does not exist.  Declare using a prototype if lchown is not
26714         declared.  Add a copyright notice.
26715         * lib/mkstemp.h: Include <unistd.h>.
26716         * lib/openat.c: Include lchown.h.
26717
26718         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
26719         we now test for that separately.
26720         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
26721         rather than O_NOFOLLOW, when testing whether it's possible to
26722         avoid a race condition reliably.
26723         * lib/savewd.c (savewd_chdir): Likewise.
26724
26725         Remove macros that are no longer needed now that stdint.h is
26726         reliable.
26727         * lib/fsusage.c (UINTMAX_MAX): Remove.
26728         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
26729         * lib/utimecmp.c (SIZE_MAX): Remove.
26730
26731         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
26732
26733         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
26734         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
26735         O_NOATIME works.
26736
26737 2006-10-05  Bruno Haible  <bruno@clisp.org>
26738
26739         * lib/gl_list.h (gl_sortedlist_search_from_to,
26740         gl_sortedlist_indexof_from_to): New declarations.
26741         (gl_list_implementation): New fields sortedlist_search_from_to,
26742         sortedlist_indexof_from_to.
26743         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
26744         inline functions.
26745         * lib/gl_list.c (gl_sortedlist_search_from_to,
26746         gl_sortedlist_indexof_from_to): New functions.
26747         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
26748         function.
26749         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
26750         (gl_array_sortedlist_search_from_to): New function.
26751         (gl_array_list_implementation): Update.
26752         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
26753         function.
26754         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
26755         (gl_carray_sortedlist_search_from_to): New function.
26756         (gl_carray_list_implementation): Update.
26757         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
26758         gl_linked_sortedlist_indexof_from_to): New functions.
26759         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26760         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26761         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
26762         gl_tree_sortedlist_indexof_from_to): New functions.
26763         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26764         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26765         Update.
26766         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26767         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
26768         Update.
26769
26770 2006-10-05  Bruno Haible  <bruno@clisp.org>
26771
26772         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
26773         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
26774         (struct gl_list_implementation): Add fields search_from_to,
26775         indexof_from_to. Remove fields search, indexof.
26776         (gl_list_search): Use the search_from_to method.
26777         (gl_list_search_from, gl_list_search_from_to): New functions.
26778         (gl_list_indexof): Use the indexof_from_to method.
26779         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
26780         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
26781         (gl_list_search_from, gl_list_search_from_to): New functions.
26782         (gl_list_indexof): Use the indexof_from_to method.
26783         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
26784         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
26785         gl_array_indexof. Add start_index, end_index arguments.
26786         (gl_array_search_from_to): Renamed from gl_array_search. Add
26787         start_index, end_index arguments.
26788         (gl_array_remove, gl_array_list_implementation): Update.
26789         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
26790         gl_carray_indexof. Add start_index, end_index arguments.
26791         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
26792         start_index, end_index arguments.
26793         (gl_carray_remove, gl_carray_list_implementation): Update.
26794         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
26795         gl_linked_search. Add start_index, end_index arguments.
26796         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
26797         start_index, end_index arguments.
26798         (gl_linked_remove): Update.
26799         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26800         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26801         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
26802         field to 'size_t'.
26803         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
26804         gl_tree_search. Add start_index, end_index arguments.
26805         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
26806         start_index, end_index arguments.
26807         (gl_tree_remove): Update.
26808         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26809         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26810         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
26811         function.
26812         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
26813         gl_tree_search. Add start_index, end_index arguments.
26814         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
26815         start_index, end_index arguments.
26816         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26817         Update.
26818         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26819
26820 2006-10-05  Bruno Haible  <bruno@clisp.org>
26821
26822         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
26823
26824         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
26825         fwriteerror_temp): New declarations.
26826         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
26827         (descriptors): New variable.
26828         (cleanup): First, close the descriptors.
26829         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
26830         fclose_temp, fwriteerror_temp): New functions.
26831
26832 2006-10-04  Jim Meyering  <jim@meyering.net>
26833
26834         * lib/fts.c (fts_open): Tiny comment change.
26835
26836 2006-10-04  Bruno Haible  <bruno@clisp.org>
26837
26838         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
26839         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
26840         gl_LOCK_BODY.
26841         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
26842         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
26843         gl_LOCK_EARLY_BODY.
26844         (gl_LOCK): Require gl_LOCK_BODY.
26845
26846 2006-10-04  Bruno Haible  <bruno@clisp.org>
26847
26848         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
26849         (gl_oset_search_atleast): New declaration.
26850         (struct gl_oset_implementation): Add field 'search_atleast'.
26851         (gl_oset_search_atleast): New inline function.
26852         * lib/gl_oset.c (gl_oset_search_atleast): New function.
26853         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
26854         (gl_array_oset_implementation): Update.
26855         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
26856         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
26857         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
26858
26859 2006-10-04  Bruno Haible  <bruno@clisp.org>
26860
26861         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
26862
26863 2006-10-03  Bruno Haible  <bruno@clisp.org>
26864
26865         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
26866         from gl_avltreehash_list_implementation.
26867
26868 2006-10-03  Bruno Haible  <bruno@clisp.org>
26869
26870         * lib/gl_oset.c (gl_oset_add): Fix return type.
26871
26872 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
26873
26874         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
26875
26876 2006-10-02  Eric Blake  <ebb9@byu.net>
26877
26878         * modules/strnlen (Depends-on): Add extensions.
26879
26880 2006-10-02  Eric Blake  <ebb9@byu.net>
26881
26882         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
26883         definition in 2.60+.
26884
26885 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
26886
26887         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
26888         checks.
26889
26890 2006-10-02  Bruno Haible  <bruno@clisp.org>
26891
26892         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
26893         to the AUTOMAKE_OPTIONS.
26894         Reported by Jim Meyering.
26895
26896 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
26897
26898         Work around bug in Solaris 10 /proc file system:
26899         /proc/self/fd/NNN/.. isn't the parent directory of
26900         the directory whose file descriptor is NNN.  This needs to
26901         be worked around at run time, not compile time, since a
26902         program might be built on Solaris 8, where things work, and
26903         run on Solaris 10.
26904         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
26905         to use the following interface instead:
26906         (OPENAT_BUFFER_SIZE): New macro.
26907         (openat_proc_name): New function.
26908         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
26909         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
26910         Likewise.
26911         * lib/openat-proc.c: New file.
26912         * modules/openat (Files): Add lib/openat-proc.c.
26913         (Depends-on): Add same-inode, stdbool.
26914         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
26915
26916 2006-09-29  Bruno Haible  <bruno@clisp.org>
26917
26918         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
26919         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
26920         argument. Set stdout_closed before testing for ferror, not after.
26921         (fwriteerror, fwriteerror_no_ebadf): New functions.
26922
26923 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26924
26925         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
26926
26927 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
26928
26929         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
26930         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
26931
26932 2006-09-28  Jim Meyering  <jim@meyering.net>
26933
26934         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
26935         Include <unistd.h>.
26936
26937 2006-09-28  Bruno Haible  <bruno@clisp.org>
26938
26939         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
26940         * modules/linkedhash-list (Depends-on): Likewise.
26941         * modules/rbtreehash-list (Depends-on): Likewise.
26942
26943 2006-09-28  Bruno Haible  <bruno@clisp.org>
26944
26945         * lib/strndup.h: Simplify the redefinition of strndup.
26946         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
26947         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
26948
26949 2006-09-28  Bruno Haible  <bruno@clisp.org>
26950
26951         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
26952         * lib/gl_linkedhash_list.c: Likewise.
26953         * lib/gl_rbtreehash_list.c: Likewise.
26954
26955 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
26956
26957         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
26958         getaddrinfo.
26959
26960         * lib/__fpending.h: Don't include <stdio_ext.h> unless
26961         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
26962         it causes <stdio_ext.h> to cause a compile-time error.
26963         Problem reported by Nelson H. F. Beebe.
26964         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
26965         of HAVE_DECL___PENDING.
26966
26967         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
26968         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
26969         declaration.
26970
26971 2006-09-27  Jim Meyering  <jim@meyering.net>
26972
26973         This file could end up with a definition for a function
26974         named __strndup, rather than rpl_strndup on a system with
26975         incomplete weak_alias support.
26976         * lib/strndup.c (strndup): Rename from __strndup.
26977         Remove #defines that used to map __strndup to strndup.
26978         Don't use K&R prototypes.
26979         Remove LIBC-related code, since this file is not sync'd with glibc.
26980         * lib/strndup.h: Revamp, accordingly.
26981         * m4/strndup.m4: Modernize.
26982
26983 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26984
26985         * modules/savewd (Depends-on): Add 'raise'.
26986         * lib/savewd.c: Include <signal.h>, for 'raise'.
26987
26988 2006-09-26  Jim Meyering  <jim@meyering.net>
26989
26990         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
26991         when we detect Darwin 8.7.0's acl_get_file bug.
26992         Rearrange to perform the new (below) run-test while $LIBS
26993         contains any acl-related library.  Set USE_ACL at the end.
26994         (gl_ACL_GET_FILE): New function.
26995
26996 2006-09-26  Eric Blake  <ebb9@byu.net>
26997
26998         * lib/verror.c: Include <config.h> unconditionally.
26999
27000 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
27001
27002         * modules/clock-time (Maintainer): Add self.
27003         * modules/getlogin_r (Depends-on): Add extensions.
27004
27005 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27006
27007         * modules/clock-time: New module.
27008         * modules/nanosleep (Depends-on): Add clock-time.
27009         * modules/gethrxtime (Depends-on): Likewise.
27010         * modules/gettime (Depends-on): Likewise.
27011         * modules/settime (Depends-on): Likewise.
27012
27013         * modules/fts-lgpl: Depend on openat.
27014         * modules/mkancesdirs: Depend on savewd.
27015         * modules/mkdir-p: Likewise.
27016
27017 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27018
27019         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
27020
27021         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
27022         `gl_have_arbitrary_file_name_length_limit' to
27023         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
27024         actually works between configure runs.
27025
27026 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27027             Bruno Haible  <bruno@clisp.org>
27028
27029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
27030
27031 2006-09-25  Jim Meyering  <jim@meyering.net>
27032
27033         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
27034         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
27035
27036 2006-09-25  Eric Blake  <ebb9@byu.net>
27037
27038         * gnulib-tool (func_import, func_create_testdir): Fix typos in
27039         exec's in 2006-09-18 patch when shuffling fds.
27040
27041 2006-09-25  Bruno Haible  <bruno@clisp.org>
27042
27043         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
27044         Reported by Jim Meyering.
27045
27046 2006-09-24  Jim Meyering  <jim@meyering.net>
27047
27048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
27049         compare a pointer against a literal "0".  That caused failures with
27050         at least HP-UX's hpcc.
27051
27052 2006-09-22  Simon Josefsson  <jas@extundo.com>
27053
27054         * modules/gc-sha1:
27055         * modules/gc-md4:
27056         * modules/gc-hmac-sha1:
27057         * modules/gc-hmac-md5:
27058         * modules/gc-des:
27059         * modules/gc-arcfour: Distribute more files.
27060
27061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27062
27063         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
27064         (gl_linked_iterator_from_to): Initialize struct completely.
27065         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
27066         (gl_tree_iterator_from_to): Likewise
27067         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
27068         * lib/gl_array_list.c [lint] (gl_array_iterator)
27069         (gl_array_iterator_from_to): Likewise.
27070         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
27071         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
27072         (gl_carray_iterator_from_to): Likewise.
27073
27074         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
27075         * lib/md4.c (md4_process_block): Remove unused variable.
27076         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
27077         parentheses for clarity.
27078
27079 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27080
27081         * modules/bison-i18n (Depends-on): Add gettext.
27082
27083 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27084
27085         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
27086         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27087         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
27088         also add missing comma that caused broken test.
27089         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
27090         stdlib.h, for `abort'.
27091         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
27092         variables.
27093         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
27094         include unistd.h if present, for `rmdir'.
27095         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
27096         variables.
27097         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
27098         in the process include standard headers for prototypes.
27099         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
27100         gets declared on GNU/Linux.
27101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
27102         unistd.h, for `rmdir'.
27103         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
27104
27105         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
27106         always true.
27107         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
27108
27109         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
27110
27111 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27112
27113         * gnulib-tool (func_version): Create output all at once.  This
27114         may help avoid triggering unnecessary SIGPIPEs, and at any
27115         rate it doesn't hurt.
27116
27117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27118             Bruno Haible  <bruno@clisp.org>
27119
27120         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
27121         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27122         * m4/signed.m4 (bh_C_SIGNED): Likewise.
27123
27124         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
27125         (gl_FUNC_VASPRINTF): Invoke it.
27126
27127 2006-09-22  Bruno Haible  <bruno@clisp.org>
27128
27129         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
27130         getloadavg.c as first argument.
27131
27132 2006-09-22  Bruno Haible  <bruno@clisp.org>
27133
27134         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
27135         at the beginning of the gl_INIT macro.
27136         * modules/getloadavg (configure.ac): Pass $gl_source_base to
27137         gl_GETLOADAVG.
27138
27139 2006-09-22  Bruno Haible  <bruno@clisp.org>
27140
27141         * gnulib-tool (func_create_megatestdir): Don't include the config-h
27142         module.
27143         Suggested by Ralf Wildenhues.
27144
27145 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27146
27147         Import this patch from libc:
27148
27149         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
27150
27151         * lib/regex_internal.c (re_string_reconstruct): Handle
27152         offset < pstr->valid_raw_len && pstr->offsets_needed case.
27153         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
27154         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
27155         re_string_context_at.
27156
27157         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
27158         now requires it.
27159         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
27160         gl_REGEX now does it for us.
27161         (gl_REGEX): Add test taken from
27162         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
27163
27164         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
27165         Check that large offsets work.  Modernize Autoconf usages.
27166         Prefer "yes" to mean a good thing rather than a bad.
27167         Don't put "#define mkstemp" in config.h, as this might interfere
27168         with standard system headers that "#define mkstemp mkstemp64".
27169
27170         * modules/mkstemp (Depends-on): Add extensions, so that
27171         mkstemp is visible on some platforms.
27172         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
27173         (Include): Change to "mkstemp.h" from <stdlib.h>.
27174         (Files): Add mkstemp.h.
27175
27176         * lib/mkstemp.h: New file, since some standard headers
27177         #define mkstemp.
27178         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
27179         Include "mkstemp.h".
27180         Make the _LIBC code resemble glibc original more,
27181         e.g., use K&R style.
27182         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
27183         (mkstemp): Remove, since mkstemp.h does this for us.
27184         * lib/stdlib--.h: Include mkstemp.h.
27185
27186         Import this patch from libc:
27187
27188         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
27189
27190         * lib/tempname.c (__gen_tempname): Change attempts_min
27191         into a macro.  Use preprocessor to decide how to initialize
27192         attempts [Coverity CID 67].
27193
27194 2006-09-20  Bruno Haible  <bruno@clisp.org>
27195
27196         * lib/mkdtemp.c: Import from libc.
27197         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
27198                 * sysdeps/posix/tempname.c (__gen_tempname): Change
27199                 attempts_min into a macro.  Use preprocessor to decide how to
27200                 initialize attempts [Coverity CID 67].
27201         2001-11-27  Paul Eggert  <eggert@twinsun.com>
27202                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
27203                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
27204
27205 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27206
27207         * gnulib-tool (func_exit): New function, to allow to pass the
27208         exit status portably through the trap.  Use everywhere.
27209         (--help, --version): Signal a write error.
27210         (trap): catch SIGPIPE, for write errors.
27211         Exit at the end of the trap, with the correct exit status.
27212
27213 2006-09-19  Karl Berry  <karl@gnu.org>
27214
27215         * doc/gnulib.texi: note about the license texinfo files.
27216
27217 2006-09-19  Eric Blake  <ebb9@byu.net>
27218
27219         * gnulib-tool: Avoid space-tab.
27220
27221 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
27222
27223         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
27224         that prevented coreutils 6.1 from building.  Problem reported
27225         by Petter Reinholdtsen.
27226
27227 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
27228
27229         * gnulib-tool (avoidlist): Fix typo that broke options like
27230         --avoid=lock that are used by coreutils bootstrap.
27231
27232 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
27233
27234         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
27235         more systematically.
27236
27237 2006-09-18  Jim Meyering  <jim@meyering.net>
27238
27239         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
27240
27241 2006-09-18  Bruno Haible  <bruno@clisp.org>
27242
27243         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
27244
27245 2006-09-18  Bruno Haible  <bruno@clisp.org>
27246
27247         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
27248         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
27249         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
27250         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
27251         * m4/gettext.m4: Require autoconf >= 2.52.
27252         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
27253         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
27254         of gl_cv_header_inttypes_h.
27255
27256 2006-09-18  Bruno Haible  <bruno@clisp.org>
27257
27258         * lib/javaversion.c: Include configmake.h.
27259
27260 2006-09-18  Bruno Haible  <bruno@clisp.org>
27261
27262         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
27263         avoid that the while loops be executed in a subshell.
27264
27265 2006-09-18  Bruno Haible  <bruno@clisp.org>
27266
27267         * MODULES.html.sh (func_module): Break long lines.
27268         Suggested by Bruce Korb <bkorb@gnu.org>.
27269
27270 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27271
27272         Speed up by a factor of 1.12.
27273         * gnulib-tool (nl): New variable.
27274         (func_import): Rewrite include directive extraction to only read each
27275         directive once.
27276
27277 2006-09-17  Bruno Haible  <bruno@clisp.org>
27278
27279         * modules/javaversion (Makefile.am): Remove DEFS setting.
27280         (Depends-on): Add configmake, for PKGDATADIR definition.
27281
27282 2006-09-17  Bruno Haible  <bruno@clisp.org>
27283
27284         * gnulib-tool (func_create_testdir): Rewrite all files at once.
27285
27286 2006-09-17  Bruno Haible  <bruno@clisp.org>
27287
27288         * gnulib-tool (func_append): New function, stolen from libtool.m4.
27289         (func_modules_transitive_closure, func_modules_add_dummy,
27290         func_modules_to_filelist, func_import, func_create_testdir,
27291         func_create_megatestdir, ...): Use it wherever possible.
27292         Suggested by Ralf Wildenhues.
27293
27294 2006-09-16  Karl Berry  <karl@gnu.org>
27295
27296         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
27297         to avoid sectioning errors.
27298         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
27299         [ifinfo]: blank line after @center-ed titles.
27300         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
27301         Spell FSF address consistently with others.
27302         (These changes approved by rms.)
27303
27304 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27305
27306         Speed up by a factor of 1.61.
27307         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
27308         already checked module names again.
27309
27310 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27311
27312         Speed up by a factor of 1.13.
27313         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
27314         for new_files, and the input to func_add_or_update.
27315
27316 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27317
27318         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
27319         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
27320
27321 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27322
27323         * modules/mkancesdirs (Depends-on): Add fcntl.
27324         * modules/savewd: New file.
27325         * MODULES.html.sh (File system functions): Add savewd.
27326
27327         * modules/configmake (Makefile.am): Add support for the
27328         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
27329
27330 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27331
27332         * m4/savewd.m4: New file.
27333
27334 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27335
27336         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
27337         (dirchownmod): New arg FD.  All callers changed.
27338         Use FD rather than opening the directory ourself, as opening is
27339         now the caller's responsibility.
27340         * lib/dirchownmod.h: Likewise.
27341         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
27342         hosts that require <sys/types.h> before <sys/stat.h>.  Include
27343         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
27344         (test_dir): Remove.
27345         (mkancesdirs): Return length of prefix of FILE that has already
27346         been made, or -2 if there is a child doing the work.  Redo
27347         algorithm so that it is O(N) rather than O(N**2).  Optimize away
27348         ".", and treat ".." specially since it might stray back into
27349         already-created areas.  Use a subprocess if necessary.  New arg
27350         WD; all users changed.  MAKE_DIR function should now return 1
27351         if it creates a directory that is not readable.  Return -2 if
27352         a child process is spun off.
27353         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
27354         Adjust signature to match code.
27355         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
27356         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
27357         all users changed.
27358         * lib/savewd.c, lib/savewd.h: New files.
27359
27360 2006-09-15  Jim Meyering  <jim@meyering.net>
27361
27362         * modules/rename-dest-slash: New module.
27363         * MODULES.html.sh (posix_compat): Add it here.
27364
27365         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
27366
27367 2006-09-15  Jim Meyering  <jim@meyering.net>
27368
27369         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
27370         file.
27371
27372         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
27373
27374 2006-09-15  Jim Meyering  <jim@meyering.net>
27375
27376         * lib/rename-dest-slash.c (has_trailing_slash): Use
27377         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
27378         (rpl_rename_dest_slash): Perform the cheaper trailing slash
27379         test before testing whether SRC is a directory.
27380         Suggestions from Bruno Haible.
27381
27382         Avoid a warning about an unused variable.
27383         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
27384         into the #ifdef block where it's used.
27385
27386         * lib/rename-dest-slash.c: New file.
27387
27388 2006-09-14  Bruno Haible  <bruno@clisp.org>
27389
27390         * lib/allocsa.c: Include <config.h> unconditionally.
27391         * lib/asnprintf.c: Likewise.
27392         * lib/asprintf.c: Likewise.
27393         * lib/c-strcasecmp.c: Likewise.
27394         * lib/c-strcasestr.c: Likewise.
27395         * lib/c-strncasecmp.c: Likewise.
27396         * lib/c-strstr.c: Likewise.
27397         * lib/classpath.c: Likewise.
27398         * lib/clean-temp.c: Likewise.
27399         * lib/concatpath.c: Likewise.
27400         * lib/copy-file.c: Likewise.
27401         * lib/csharpcomp.c: Likewise.
27402         * lib/csharpexec.c: Likewise.
27403         * lib/execute.c: Likewise.
27404         * lib/fatal-signal.c: Likewise.
27405         * lib/findprog.c: Likewise.
27406         * lib/fwriteerror.c: Likewise.
27407         * lib/gl_array_list.c: Likewise.
27408         * lib/gl_array_oset.c: Likewise.
27409         * lib/gl_avltree_list.c: Likewise.
27410         * lib/gl_avltree_oset.c: Likewise.
27411         * lib/gl_avltreehash_list.c: Likewise.
27412         * lib/gl_carray_list.c: Likewise.
27413         * lib/gl_linked_list.c: Likewise.
27414         * lib/gl_linkedhash_list.c: Likewise.
27415         * lib/gl_list.c: Likewise.
27416         * lib/gl_oset.c: Likewise.
27417         * lib/gl_rbtree_list.c: Likewise.
27418         * lib/gl_rbtree_oset.c: Likewise.
27419         * lib/gl_rbtreehash_list.c: Likewise.
27420         * lib/imaxabs.c: Likewise.
27421         * lib/imaxdiv.c: Likewise.
27422         * lib/javacomp.c: Likewise.
27423         * lib/javaexec.c: Likewise.
27424         * lib/javaversion.c: Likewise.
27425         * lib/linebreak.c: Likewise.
27426         * lib/localcharset.c: Likewise.
27427         * lib/lock.c: Likewise.
27428         * lib/mbchar.c: Likewise.
27429         * lib/mbswidth.c: Likewise.
27430         * lib/mkdtemp.c: Likewise.
27431         * lib/pipe.c: Likewise.
27432         * lib/printf-args.c: Likewise.
27433         * lib/printf-parse.c: Likewise.
27434         * lib/progname.c: Likewise.
27435         * lib/progreloc.c: Likewise.
27436         * lib/readlink.c: Likewise.
27437         * lib/sh-quote.c: Likewise.
27438         * lib/stpcpy.c: Likewise.
27439         * lib/stpncpy.c: Likewise.
27440         * lib/strcasecmp.c: Likewise.
27441         * lib/strcasestr.c: Likewise.
27442         * lib/strcspn.c: Likewise.
27443         * lib/striconv.c: Likewise.
27444         * lib/strncasecmp.c: Likewise.
27445         * lib/strnlen1.c: Likewise.
27446         * lib/strstr.c: Likewise.
27447         * lib/strtok_r.c: Likewise.
27448         * lib/tls.c: Likewise.
27449         * lib/tmpdir.c: Likewise.
27450         * lib/unicodeio.c: Likewise.
27451         * lib/unsetenv.c: Likewise.
27452         * lib/vasnprintf.c: Likewise.
27453         * lib/vasprintf.c: Likewise.
27454         * lib/wait-process.c: Likewise.
27455         * lib/xallocsa.c: Likewise.
27456         * lib/xsetenv.c: Likewise.
27457         * lib/xstriconv.c: Likewise.
27458
27459 2006-09-13  Simon Josefsson  <jas@extundo.com>
27460
27461         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
27462         that internally, suggested by Ralf Wildenhues
27463         <Ralf.Wildenhues@gmx.de>.
27464
27465 2006-09-13  Simon Josefsson  <jas@extundo.com>
27466
27467         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
27468         @LIBOBJS@.
27469         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27470
27471 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27472
27473         * lib/_fpending.c: Include <config.h> unconditionally, since we no
27474         longer worry about uses that don't define HAVE_CONFIG_H.
27475         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
27476         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
27477         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
27478         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
27479         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
27480         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
27481         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
27482         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
27483         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
27484         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
27485         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
27486         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
27487         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
27488         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
27489         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
27490         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
27491         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
27492         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
27493         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
27494         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
27495         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
27496         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
27497         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
27498         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
27499         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
27500         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
27501         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
27502         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
27503         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
27504         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
27505         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
27506         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
27507         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
27508         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
27509         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
27510         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
27511         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
27512         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
27513         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
27514         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
27515         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
27516         Likewise.
27517
27518 2006-09-13  Eric Blake  <ebb9@byu.net>
27519
27520         * lib/getopt.c: Fix typo in last commit.
27521
27522 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27523
27524         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
27525         dgettext.
27526
27527 2006-09-12  Jim Meyering  <jim@meyering.net>
27528
27529         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
27530         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
27531         Reported by Nelson H. F. Beebe.
27532
27533 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
27534
27535         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
27536         program_invocation_name and program_invocation_short_name are
27537         initialized.
27538         * lib/argp-namefrob.h: Move declarations of program_invocation_name
27539         and program_invocation_short_name to argp.h, so they are visible
27540         to user programs.
27541         * lib/argp.h: Likewise
27542
27543 2006-09-10  Bruno Haible  <bruno@clisp.org>
27544
27545         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
27546         m4/inttypes_h.m4, m4/uintmax_t.m4.
27547
27548 2006-09-10  Bruno Haible  <bruno@clisp.org>
27549
27550         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
27551         gl_AC_TYPE_UINTMAX_T.
27552
27553 2006-09-10  Bruno Haible  <bruno@clisp.org>
27554
27555         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
27556
27557 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
27558
27559         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
27560         convention.  Text proposed by Bruno Haible.
27561         (struct argp_option): Document the use of N_() wrappers.
27562
27563         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
27564         '\v', and translate the two parts separately, instead of feeding
27565         the whole string to gettext.  This allows to exclude
27566         '\v' from the strings visible to the translator by writing doc
27567         strings as N_("..") "\v" N_("..").
27568
27569 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
27570
27571         * config/srclist.txt: Undo latest change; the bug was fixed.
27572
27573 2006-09-09  Bruno Haible  <bruno@clisp.org>
27574
27575         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
27576         assignments if building a library without libtool.
27577         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
27578         in func_emit_lib_Makefile_am.
27579         (func_import): When building a static library libfoo.a, arrange to
27580         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
27581         (func_create_testdir): Likewise.
27582         * modules/gc (configure.ac, Makefile.am): If building statically,
27583         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
27584         * modules/iconvme (configure.ac, Makefile.am): Likewise.
27585         * modules/striconv (configure.ac, Makefile.am): Likewise.
27586         Based on a suggestion by Ralf Wildenhues.
27587
27588 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27589
27590         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
27591         Check for unistd.h too, since Autoconf doesn't assume POSIX.
27592         Also:
27593
27594         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27595         Add year_2050_test to catch glibc bug 2821
27596         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
27597
27598         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27599         Prefer #ifdef to #if.
27600
27601         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27602         Return from 'main' instead of calling 'exit'.
27603
27604 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27605
27606         * lib/mktime.c (guess_time_tm): Fix bug where mktime
27607         returned the maximum time_t value rather than (time_t) -1.
27608         Problem originally reported by William Bardwell
27609         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
27610
27611         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
27612         Moved to here ...
27613         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
27614         ... from here.
27615
27616 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27617
27618         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
27619         2821 is fixed.
27620
27621 2006-09-08  Jim Meyering  <jim@meyering.net>
27622
27623         Don't make generated files read-only.  That would bother too many
27624         people.  However, do retain the ability to work when targets are
27625         read-only: remove the destination and temporary files before writing
27626         them (when generated via sed or echo), or by using the -f option for
27627         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
27628         * modules/alloca-opt, modules/argz, modules/arpa_inet:
27629         * modules/byteswap, modules/configmake, modules/fcntl:
27630         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
27631         * modules/localcharset, modules/netinet_in, modules/poll:
27632         * modules/stdbool, modules/stdint, modules/sys_select:
27633         * modules/sys_socket, modules/sys_stat, modules/sysexits:
27634
27635 2006-09-08  Jim Meyering  <jim@meyering.net>
27636
27637         Avoid new build failure on FreeBSD 6.0.
27638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
27639         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
27640         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
27641
27642 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27643
27644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
27645
27646 2006-09-07  Jim Meyering  <jim@meyering.net>
27647
27648         Fix global typo in last change: use chmod u-w, not chmod u-x.
27649         Spotted by Paul Eggert and Bruce Korb.
27650         * modules/alloca-opt, modules/argz, modules/arpa_inet:
27651         * modules/byteswap, modules/configmake, modules/fcntl:
27652         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
27653         * modules/localcharset, modules/netinet_in, modules/poll:
27654         * modules/stdbool, modules/stdint, modules/sys_select:
27655         * modules/sys_socket, modules/sys_stat, modules/sysexits:
27656
27657 2006-09-06  Jim Meyering  <jim@meyering.net>
27658
27659         Make generated files be read-only.
27660         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
27661         Ensure that each generated file is now read-only.
27662         * modules/argz: Likewise.
27663         * modules/arpa_inet: Likewise.
27664         * modules/byteswap: Likewise.
27665         * modules/configmake: Likewise.
27666         * modules/fcntl: Likewise.
27667         * modules/fnmatch: Likewise.
27668         * modules/getopt: Likewise.
27669         * modules/glob: Likewise.
27670         * modules/inttypes: Likewise.
27671         * modules/netinet_in: Likewise.
27672         * modules/poll: Likewise.
27673         * modules/stdbool: Likewise.
27674         * modules/stdint: Likewise.
27675         * modules/sys_select: Likewise.
27676         * modules/sys_socket: Likewise.
27677         * modules/sys_stat: Likewise.
27678         * modules/sysexits: Likewise.
27679         * modules/localcharset: Same as above, but continue using temporary
27680         file named "t-$@" (why different?) rather than the "$@-t" used
27681         everywhere else.
27682
27683         * modules/sysexits (Makefile.am): Replace literal occurrences
27684         of "sysexit.h" more readable, and more consistent, "$@".
27685
27686 2006-09-06  Bruno Haible  <bruno@clisp.org>
27687
27688         * modules/striconv: New file.
27689         * modules/xstriconv: New file.
27690         * MODULES.html.sh (Internationalization functions): Add striconv,
27691         xstriconv.
27692
27693 2006-09-06  Bruno Haible  <bruno@clisp.org>
27694
27695         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
27696         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
27697         not using libtool correctly.
27698
27699 2006-09-06  Bruno Haible  <bruno@clisp.org>
27700
27701         * lib/striconv.h: New file.
27702         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
27703         iconvstring.c.
27704         * lib/xstriconv.h: New file.
27705         * lib/xstriconv.c: New file.
27706
27707 2006-09-06  Bruno Haible  <bruno@clisp.org>
27708
27709         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
27710         lib_..._LDFLAGS.
27711
27712 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27713
27714         * lib/argz_.h: Sync from Libtool.
27715
27716         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
27717                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27718
27719         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
27720
27721 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
27722
27723         * modules/trim: New file.
27724
27725 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
27726
27727         * lib/trim.h: New file.
27728         * lib/trim.c: New file.
27729
27730 2006-09-05  Bruno Haible  <bruno@clisp.org>
27731
27732         * MODULES.html.sh (String handling): Add trim.
27733
27734 2006-09-04  Karl Berry  <karl@gnu.org>
27735
27736         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
27737         until next release.
27738
27739 2006-09-03  Bruno Haible  <bruno@clisp.org>
27740
27741         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
27742         correctly.
27743
27744 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27745
27746         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
27747         not gl_GETLOADAVG.  Omit unneeded semicolons.
27748         Problems reported by Ralf Wildenhues in
27749         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
27750         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
27751         at the end, which is the usual gnulib style.
27752
27753         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
27754         of doing all the work ourselves.
27755         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
27756         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
27757
27758 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27759
27760         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
27761         Problem reported by Ralf Wildenhues in
27762         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
27763
27764         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
27765         HAVE_STRUCT_STATFS_F_FSTYPENAME.
27766
27767 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27768
27769         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
27770         yesterday's patch by changing test -n to test -z.
27771
27772 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27773
27774         * modules/getloadavg (Files): Add m4/getloadavg.m4.
27775         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
27776         the former is now obsolescent.
27777
27778         * modules/chdir-long (Depends-on): Add fcntl.
27779
27780 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27781
27782         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
27783         obsolescent, and programs should use gnulib instead.
27784         * m4/getloadavg.m4: New file, with contents taken from Autoconf
27785         but with prefixes changed.
27786
27787 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
27788
27789         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
27790         or stdbool.h, because they might not exist while configuring.
27791
27792         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
27793         Don't include unistd.h or limits.h; not needed, since chdir-long.h
27794         does that for us.
27795         (O_DIRECTORY): Remove.
27796
27797 2006-08-31  Eric Blake  <ebb9@byu.net>
27798
27799         * gnulib-tool: Don't let emacs change spaces to TAB.
27800
27801 2006-08-31  Bruno Haible  <bruno@clisp.org>
27802
27803         * gnulib-tool: When calling func_import more than once, do it in a
27804         subshell.
27805         Reported by Eric Blake <ebb9@byu.net>.
27806
27807 2006-08-31  Bruno Haible  <bruno@clisp.org>
27808
27809         * gnulib-tool (nl): Remove variable.
27810         (sed_transform_lib_file): Use more robust test for config-h module.
27811         (func_import): Fix typo in 2006-08-25 patch.
27812
27813 2006-08-31  Bruno Haible  <bruno@clisp.org>
27814
27815         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
27816         specified, augment Makefile.am variables instead of assigning them.
27817
27818 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27819
27820         Work around a bug in both the Linux and SunOS 64-bit kernels:
27821         nanosleep mishandles sleeps for longer than 2**31 seconds.
27822         Problem reported by Frank v Waveren in
27823         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
27824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
27825         Check for nanosleep bug.
27826         (LIB_NANOSLEEP): Append clock_gettime library if needed.
27827
27828 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27829
27830         Work around a bug in both the Linux and SunOS 64-bit kernels:
27831         nanosleep mishandles sleeps for longer than 2**31 seconds.
27832         Problem reported by Frank v Waveren in
27833         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
27834         * lib/nanosleep.c (BILLION): New constant.
27835         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
27836         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
27837         implementation.
27838
27839 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27840
27841         * modules/nanosleep (Depends-on): Add gettime.
27842
27843 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27844         and Simon Josefsson  <jas@extundo.com>
27845         and Oskar Liljeblad  <oskar@osk.mine.nu>
27846
27847         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
27848         * gnulib-tool (func_import): New license type 'unmodifiable license
27849         text'.
27850         * modules/fdl: Use it.  Longer description.
27851         * module/gpl, module/lgpl: New files.
27852
27853 2006-08-30  Jim Meyering  <jim@meyering.net>
27854
27855         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
27856         shadowing the parameter.
27857
27858 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27859
27860         Sync from Libtool:
27861
27862         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27863
27864         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
27865         sharing with gnulib.  Report by Eric Blake.
27866
27867 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27868
27869         * modules/isapipe: New file.
27870         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
27871
27872 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27873
27874         * modules/configmake (Makefile.am): Add a comment, and omit
27875         the CONFIGMAKE_ prefix from generated macro names.  Suggested
27876         by Bruno Haible.
27877
27878 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27879
27880         * m4/isapipe.m4: New file.
27881
27882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27883
27884         * lib/isapipe.c, lib/isapipe.h: New files.
27885
27886 2006-08-29  Jim Meyering  <jim@meyering.net>
27887
27888         * modules/configmake (Makefile.am): Make configmake.h depend on
27889         Makefile.  Otherwise, a stale configmake.h could hang around.
27890
27891 2006-08-29  Eric Blake  <ebb9@byu.net>
27892
27893         * lib/error.c (error_at_line, print_errno_message): Match libc, after
27894         resolution of upstream bug 3044.
27895
27896 2006-08-29  Bruno Haible  <bruno@clisp.org>
27897
27898         * modules/localcharset (Depends-on): Add configmake.
27899         (Makefile.am): Remove setting of LIBDIR through DEFS.
27900
27901 2006-08-29  Bruno Haible  <bruno@clisp.org>
27902
27903         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
27904         defined.
27905
27906 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         * modules/fcntl: New file.
27909         * modules/chdir-safer (Depends-on): Add fcntl.
27910         * modules/fts: Likewise.
27911         * modules/mkdir-p: Likewise.
27912
27913         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
27914         This undoes the most recent change, since we're now addressing the
27915         problem in a different way.
27916
27917         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
27918         into output, since the output might be called Makefile.am even
27919         if $makefile_name is something different.
27920         (func_import): Use $makefile_am rather than
27921         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
27922         empty.
27923
27924         * modules/inttypes (Files): Add m4/inttypes-h.m4.
27925
27926 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
27927
27928         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
27929         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
27930         recent change to stdint.m4, since we're now addressing the problem in a
27931         different way.
27932
27933 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
27934
27935         * m4/fcntl_h.m4: New file.
27936
27937 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
27938
27939         * lib/fcntl_.h: New file.
27940         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
27941         the fcntl module.
27942         * lib/dirchownmod.c: Likewise.
27943         * lib/fts.c: Likewise.
27944
27945         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
27946         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
27947         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
27948         just before including <inttypes.h>, to avoid circular inclusion.
27949
27950 2006-08-28  Jim Meyering  <jim@meyering.net>
27951
27952         * doc/visibility.texi: Actually read and correct the grammar of the
27953         sentence affected by yesterday's change.
27954
27955 2006-08-28  Eric Blake  <ebb9@byu.net>
27956
27957         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
27958         needs wrapper.
27959
27960 2006-08-28  Eric Blake  <ebb9@byu.net>
27961
27962         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
27963
27964 2006-08-28  Eric Blake  <ebb9@byu.net>
27965
27966         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
27967
27968 2006-08-28  Bruno Haible  <bruno@clisp.org>
27969
27970         * modules/c-strstr: New file, from GNU gettext.
27971         * MODULES.html.sh (String handling): Add c-strstr.
27972
27973 2006-08-28  Bruno Haible  <bruno@clisp.org>
27974
27975         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
27976         macros.
27977         Reported by Eric Blake.
27978
27979 2006-08-28  Bruno Haible  <bruno@clisp.org>
27980
27981         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
27982         (VASNPRINTF): Return a string of length > INT_MAX without failing.
27983         * lib/vasprintf.c: Include errno.h, limits.h.
27984         (EOVERFLOW): New fallback definition.
27985         (vasprintf): Test here whether the string length is > INT_MAX.
27986         * lib/vsnprintf.c: Include errno.h, limits.h.
27987         (EOVERFLOW): New fallback definition.
27988         (vsnprintf): Fix bug when generated string was too long for the buffer.
27989         Test here whether the string length is > INT_MAX.
27990
27991 2006-08-28  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/inttypes_.h (SCNX*): Remove definitions.
27994         Reported by Eric Blake.
27995
27996 2006-08-28  Bruno Haible  <bruno@clisp.org>
27997
27998         * lib/c-strstr.h: New file, from GNU gettext.
27999         * lib/c-strstr.c: New file, from GNU gettext.
28000
28001 2006-08-28  Bruno Haible  <bruno@clisp.org>
28002
28003         * gnulib-tool: Reorder some statements.
28004
28005 2006-08-28  Bruno Haible  <bruno@clisp.org>
28006
28007         * gnulib-tool: New option --makefile-name.
28008         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
28009         $makefile_name.
28010         (func_import): Write $makefile_name to the cache file, and read it from
28011         there unless explicitly specified. Use $makefile_name as file name
28012         instead of Makefile.am. Adjust the recommendations accordingly.
28013
28014 2006-08-28  Bruno Haible  <bruno@clisp.org>
28015
28016         * gnulib-tool (func_verify_module): Check against misapplying patch.
28017
28018 2006-08-28  Bruno Haible  <bruno@clisp.org>
28019
28020         * gnulib-tool (func_relativize, func_relconcat): New functions.
28021         Give an error if --local-dir is given with --update.
28022         Remove trailing slashes from $local_gnulib_dir.
28023         (func_import): Store the relativized $local_gnulib_dir in
28024         gnulib-cache.m4, and read it from there if not specified explicitly.
28025
28026 2006-08-28  Bruno Haible  <bruno@clisp.org>
28027
28028         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
28029         is the current directory. Respect also $local_gnulib_dir.
28030
28031 2006-08-28  Bruno Haible  <bruno@clisp.org>
28032             Simon Josefsson  <jas@extundo.com>
28033
28034         BeOS portability.
28035         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
28036
28037 2006-08-27  Jim Meyering  <jim@meyering.net>
28038
28039         * doc/visibility.texi: Remove duplicate word: "pointer".
28040
28041 2006-08-26  Bruno Haible  <bruno@clisp.org>
28042
28043         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
28044         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
28045         (Makefile.am): Create inttypes.h from inttypes_.h.
28046         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
28047
28048         * modules/imaxabs: New file.
28049
28050         * modules/imaxdiv: New file.
28051
28052 2006-08-26  Bruno Haible  <bruno@clisp.org>
28053
28054         * m4/inttypes.m4: New file.
28055         * m4/_inttypes_h.m4: Remove file.
28056         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
28057         PRI_MACROS_BROKEN.
28058         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
28059
28060         * m4/imaxabs.m4: New file.
28061
28062         * m4/imaxdiv.m4: New file.
28063
28064 2006-08-26  Bruno Haible  <bruno@clisp.org>
28065
28066         * lib/inttypes_.h: New file.
28067         * lib/inttypes.h: Remove file.
28068         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
28069
28070         * lib/imaxabs.c: New file.
28071
28072         * lib/imaxdiv.c: New file.
28073
28074 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28075
28076         New config-h module, so that "make" output needn't be cluttered
28077         by -DHAVE_CONFIG_H.
28078         * MODULES.html.sh (Support for building libraries and executables):
28079         Add config-h.
28080         * modules/config-h: New file.
28081         * gnulib-tool (nl, sed_transform_lib_file): New vars.
28082         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
28083         the config-h module is used.
28084
28085         New configmake module, so that "make" output needn't be cluttered
28086         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
28087         * MODULES.html.sh (Support for building libraries and executables):
28088         Add configmake.
28089         * modules/configmake: New file.
28090
28091 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28092
28093         * m4/config-h.m4: New file.
28094
28095 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28096
28097         * config/srclist.txt: Add elisp-comp.
28098
28099 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28100
28101         * MODULES.html.sh (Support for building libraries and executables):
28102         Add elisp-comp.
28103         * build-aux/elisp-comp: New file.
28104         * modules/elisp-comp: New file.
28105
28106 2006-08-24  Bruno Haible  <bruno@clisp.org>
28107
28108         * gnulib-tool (func_create_testdir): Use non-default values of
28109         sourcebase and m4base.
28110
28111 2006-08-24  Bruno Haible  <bruno@clisp.org>
28112
28113         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
28114         HTML structure.
28115
28116 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28117
28118         * modules/openat (Depends-on): Add lchown.
28119
28120 2006-08-23  Bruno Haible  <bruno@clisp.org>
28121
28122         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
28123         of gl_LOCK_EARLY instead of gl_LOCK.
28124
28125 2006-08-23  Bruno Haible  <bruno@clisp.org>
28126
28127         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
28128         on OSF/1 to no.
28129         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
28130
28131 2006-08-23  Bruno Haible  <bruno@clisp.org>
28132
28133         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
28134         as unusable.
28135
28136         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
28137         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
28138         (gl_LOCK): New macro.
28139
28140 2006-08-22  Simon Josefsson  <jas@extundo.com>
28141
28142         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
28143         to md5 module.
28144
28145 2006-08-22  Simon Josefsson  <jas@extundo.com>
28146
28147         * MODULES.html.sh: Add "Support for maintaining and release
28148         projects".
28149
28150         * build-aux/gnupload: New file, from coreutils.
28151
28152 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
28153
28154         Avoid the need for AC_LIBSOURCES in m4 macros.
28155         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
28156         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
28157         * modules/check-version (EXTRA_DIST): Add check-version.h.
28158         * modules/crc (EXTRA_DIST): Add crc.h.
28159         * modules/des (EXTRA_DIST): Add des.h.
28160         * modules/gc (EXTRA_DIST): Add gc.h.
28161         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
28162         * modules/getline (EXTRA_DIST): Add getline.h.
28163         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
28164         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
28165         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
28166         * modules/md2 (EXTRA_DIST): Add md2.h.
28167         * modules/md4 (EXTRA_DIST): Add md4.h.
28168         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
28169         * modules/read-file (EXTRA_DIST): Add read-file.h.
28170         * modules/readline (EXTRA_DIST): Add readline.h.
28171         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
28172         rijndael-api-fst.h.
28173
28174 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
28175
28176         * m4/rijndael.m4 (gl_ARCFOUR):
28177         * m4/arctwo.m4 (gl_ARCTWO):
28178         * m4/check-version.m4 (gl_CHECK_VERSION):
28179         * m4/crc.m4 (gl_CRC):
28180         * m4/des.m4 (gl_DES):
28181         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
28182         * m4/gc.m4 (gl_GC):
28183         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28184         * m4/getline.m4 (gl_FUNC_GETLINE):
28185         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
28186         * m4/hmac-md5.m4 (gl_HMAC_MD5):
28187         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
28188         * m4/md2.m4 (gl_MD2):
28189         * m4/md4.m4 (gl_MD4):
28190         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
28191         * m4/read-file.m4 (gl_FUNC_READ_FILE):
28192         * m4/readline.m4 (gl_FUNC_READLINE):
28193         * m4/rijndael.m4 (gl_RIJNDAEL):
28194         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
28195         to get the necessary .h files and whatnot.
28196
28197 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
28198
28199         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
28200         gnulib rather than the other way around.
28201         * config/srclistvars.sh (COREUTILS): Remove.
28202
28203 2006-08-22  Jim Meyering  <jim@meyering.net>
28204
28205         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
28206
28207         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
28208
28209 2006-08-22  Eric Blake  <ebb9@byu.net>
28210
28211         * modules/regexprops-generic: New file.
28212         * MODULES.html.sh (Support for building documentation): List it.
28213
28214 2006-08-22  Eric Blake  <ebb9@byu.net>
28215
28216         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
28217         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28218         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
28219         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28220
28221 2006-08-22  Bruno Haible  <bruno@clisp.org>
28222
28223         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
28224         and lib_LTLIBRARIES like the other lib_* variables.
28225
28226 2006-08-22  Bruno Haible  <bruno@clisp.org>
28227
28228         * build-aux/x-to-1.in: New file, from GNU gettext.
28229
28230 2006-08-22  Bruno Haible  <bruno@clisp.org>
28231
28232         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
28233         <utmpx.h> exists.
28234
28235 2006-08-22  Bruno Haible  <bruno@clisp.org>
28236
28237         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
28238         <utmpx.h> exists.
28239
28240 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
28241
28242         BeOS portability.
28243         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
28244         exist.
28245         Problem reported by Bruno Haible.
28246
28247 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         Avoid the need for AC_LIBSOURCES in m4 macros.
28250         * modules/acl (EXTRA_DIST): Add acl.h.
28251         * modules/argmatch (Files): Add m4/argmatch.m4.
28252         (configure.ac): Add gl_ARGMATCH.
28253         (EXTRA_DIST): Renamed from lib_SOURCES, for
28254         consistency with the other modules.  Remove argmatch.c.
28255         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
28256         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
28257         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
28258         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
28259         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
28260         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
28261         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
28262         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
28263         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
28264         * modules/closeout (EXTRA_DIST): Add closeout.h.
28265         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
28266         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
28267         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
28268         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
28269         dirname.h; remove basename.c and stripslash.c.
28270         * modules/exclude (EXTRA_DIST): Add exclude.h.
28271         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
28272         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
28273         * modules/file-type (EXTRA_DIST): Add file-type.h.
28274         * modules/filemode (EXTRA_DIST): Add filemode.h.
28275         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
28276         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
28277         * modules/fpending (EXTRA_DIST): Add __fpending.h.
28278         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
28279         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
28280         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
28281         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
28282         * modules/getdate (EXTRA_DIST): Add getdate.c.
28283         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
28284         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
28285         * modules/getpass (EXTRA_DIST): Add getpass.h.
28286         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
28287         * modules/group-member (EXTRA_DIST): Add group-member.h.
28288         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
28289         * modules/hash (EXTRA_DIST): Add hash.h.
28290         * modules/human (EXTRA_DIST): Add human.h.
28291         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
28292         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
28293         * modules/lchown (EXTRA_DIST): Add lchown.h.
28294         * modules/long-options (EXTRA_DIST): Add long-options.h.
28295         * modules/lstat (EXTRA_DIST): Add lstat.h.
28296         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
28297         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
28298         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
28299         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
28300         * modules/memxor (EXTRA_DIST): Add memxor.h.
28301         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
28302         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
28303         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
28304         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
28305         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
28306         * modules/physmem (EXTRA_DIST): Add physmem.h.
28307         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
28308         * modules/posixver (EXTRA_DIST): Add posixver.h.
28309         * modules/quote (EXTRA_DIST): Add quote.h.
28310         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
28311         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
28312         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
28313         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
28314         regex_internal.h regexec.c.
28315         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
28316         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
28317         * modules/same (EXTRA_DIST): Add same.h.
28318         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
28319         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
28320         * modules/savedir (EXTRA_DIST): Add savedir.h.
28321         * modules/sha1 (EXTRA_DIST): Add sha1.h.
28322         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
28323         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
28324         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
28325         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
28326         * modules/strdup (EXTRA_DIST): Add strdup.h.
28327         * modules/strftime (EXTRA_DIST): Add strftime.h.
28328         * modules/strndup (EXTRA_DIST): Add strndup.h.
28329         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
28330         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
28331         * modules/time_r (EXTRA_DIST): Add time_r.h.
28332         * modules/timespec (EXTRA_DIST): Add timespec.h.
28333         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
28334         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
28335         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
28336         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
28337         * modules/userspec (EXTRA_DIST): Add userspec.h.
28338         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
28339         * modules/utimens (EXTRA_DIST): Add utimens.h.
28340         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
28341         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
28342         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
28343         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
28344         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
28345         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
28346         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
28347         * modules/yesno (EXTRA_DIST): Add yesno.h.
28348
28349 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
28350
28351         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
28352
28353         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
28354         * m4/dev-ino.m4, same-inode.m4: Remove.
28355
28356         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
28357         * m4/acl.m4 (AC_FUNC_ACL):
28358         * m4/backupfile.m4 (gl_BACKUPFILE):
28359         * m4/c-strtod.m4 (gl_C99_STRTOLD):
28360         * m4/canon-host.m4 (gl_CANON_HOST):
28361         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
28362         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
28363         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
28364         * m4/cloexec.m4 (gl_CLOEXEC):
28365         * m4/close-stream.m4 (gl_CLOSE_STREAM):
28366         * m4/closeout.m4 (gl_CLOSEOUT):
28367         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28368         * m4/dirname.m4 (gl_DIRNAME):
28369         * m4/exclude.m4 (gl_EXCLUDE):
28370         * m4/exitfail.m4 (gl_EXITFAIL):
28371         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
28372         * m4/file-type.m4 (gl_FILE_TYPE):
28373         * m4/filemode.m4 (gl_FILEMODE):
28374         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
28375         * m4/fpending.m4 (gl_FUNC_FPENDING):
28376         * m4/fprintftime.m4 (gl_FPRINTFTIME):
28377         * m4/fts.m4 (gl_FUNC_FTS):
28378         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28379         * m4/getdate.m4 (gl_GETDATE):
28380         * m4/gethrxtime.m4 (gl_GETHRXTIME):
28381         * m4/getpagesize.m4 (gl_GETPAGESIZE):
28382         * m4/getpass.m4 (gl_FUNC_GETPASS):
28383         * m4/gettime.m4 (gl_GETTIME):
28384         * m4/getugroups.m4 (gl_GETUGROUPS):
28385         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
28386         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
28387         * m4/hard-locale.m4 (gl_HARD_LOCALE):
28388         * m4/hash.m4 (gl_HASH):
28389         * m4/idcache.m4 (gl_IDCACHE):
28390         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
28391         * m4/lchown.m4 (gl_FUNC_LCHOWN):
28392         * m4/long-options.m4 (gl_LONG_OPTIONS):
28393         * m4/lstat.m4 (gl_FUNC_LSTAT):
28394         * m4/md5.m4 (gl_MD5):
28395         * m4/memcasecmp.m4 (gl_MEMCASECMP):
28396         * m4/memcoll.m4 (gl_MEMCOLL):
28397         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
28398         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
28399         * m4/memxor.m4 (gl_MEMXOR):
28400         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
28401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
28402         * m4/modechange.m4 (gl_MODECHANGE):
28403         * m4/mountlist.m4 (gl_MOUNTLIST):
28404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28405         * m4/openat.m4 (gl_FUNC_OPENAT):
28406         * m4/pathmax.m4 (gl_PATHMAX):
28407         * m4/physmem.m4 (gl_PHYSMEM):
28408         * m4/posixtm.m4 (gl_POSIXTM):
28409         * m4/posixver.m4 (gl_POSIXVER):
28410         * m4/quote.m4 (gl_QUOTE):
28411         * m4/quotearg.m4 (gl_QUOTEARG):
28412         * m4/readtokens.m4 (gl_READTOKENS):
28413         * m4/readutmp.m4 (gl_READUTMP):
28414         * m4/regex.m4 (gl_REGEX):
28415         * m4/safe-read.m4 (gl_SAFE_READ):
28416         * m4/safe-write.m4 (gl_SAFE_WRITE):
28417         * m4/same.m4 (gl_SAME):
28418         * m4/save-cwd.m4 (gl_SAVE_CWD):
28419         * m4/savedir.m4 (gl_SAVEDIR):
28420         * m4/settime.m4 (gl_SETTIME):
28421         * m4/sha1.m4 (gl_SHA1):
28422         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
28423         * m4/stat-macros.m4 (gl_STAT_MACROS):
28424         * m4/stat-time.m4 (gl_STAT_TIME):
28425         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
28426         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
28427         * m4/strdup.m4 (gl_FUNC_STRDUP):
28428         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
28429         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28430         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
28431         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
28432         * m4/time_r.m4 (gl_TIME_R):
28433         * m4/timespec.m4 (gl_TIMESPEC):
28434         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
28435         * m4/unlinkdir.m4 (gl_UNLINKDIR):
28436         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
28437         * m4/userspec.m4 (gl_USERSPEC):
28438         * m4/utimecmp.m4 (gl_UTIMECMP):
28439         * m4/utimens.m4 (gl_UTIMENS):
28440         * m4/xalloc.m4 (gl_XALLOC):
28441         * m4/xgetcwd.m4 (gl_XGETCWD):
28442         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
28443         * m4/xreadlink.m4 (gl_XREADLINK):
28444         * m4/xstrtod.m4 (gl_XSTRTOD):
28445         * m4/yesno.m4 (gl_YESNO):
28446         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
28447         to get the necessary .h files and whatnot.
28448
28449 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
28450             Bruno Haible  <bruno@clisp.org>
28451
28452         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
28453         /bin/sh understanding of '!' conditional negation.
28454
28455 2006-08-21  Jim Meyering  <jim@meyering.net>
28456
28457         * modules/openat (Depends-on): Really alphabetize.
28458
28459         * modules/acl (Depends-on): Add error and quote.
28460
28461         * check-module (find_included_lib_files): Add at-func.c to the
28462         ok-to-include-more-than-once white list.
28463
28464         * modules/openat (Depends-on): Add lstat.  Alphabetize.
28465
28466 2006-08-21  Bruno Haible  <bruno@clisp.org>
28467
28468         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28469         Emit a pkgdata_DATA variable only if some snippets add contents to it.
28470         Reported by Martin Lambers <marlam@marlam.de>.
28471
28472 2006-08-21  Bruno Haible  <bruno@clisp.org>
28473
28474         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
28475         specify an installation location, don't emit a noinst_LIBRARIES or
28476         noinst_LTLIBRARIES assignment.
28477
28478 2006-08-21  Bruno Haible  <bruno@clisp.org>
28479
28480         BeOS portability.
28481         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
28482         BeOS has mbrtowc() but no <wctype.h>.
28483
28484 2006-08-21  Bruno Haible  <bruno@clisp.org>
28485
28486         BeOS portability.
28487         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
28488         exist.
28489
28490 2006-08-21  Bruno Haible  <bruno@clisp.org>
28491
28492         BeOS portability.
28493         * lib/mbchar.h: Include <wctype.h> only if it exists.
28494
28495 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28496
28497         Remove files that are no longer needed by their respective modules.
28498         * m4/obstack.m4: Remove.
28499         * m4/strerror_r.m4: Remove.
28500         * m4/uint32_t.m4: Remove.
28501         * m4/uintptr_t.m4: Remove.
28502         * m4/ullong_max.m4: Remove.
28503         * m4/xstrtoimax.m4: Remove.
28504         * m4/xstrtoumax.m4: Remove.
28505
28506         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
28507         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
28508         dependencies now capture this.
28509
28510         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
28511         Do not use AC_LIBSOURCES, since gnulib modules now do this.
28512         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
28513         * m4/human.m4 (gl_HUMAN): Likewise.
28514         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
28515         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
28516
28517         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
28518
28519         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
28520         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
28521         stdint.
28522         * m4/human.m4 (gl_HUMAN): Likewise.
28523         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
28524         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
28525         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
28526         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
28527         * m4/xstrtol (gl_XSTRTOL): Likewise.
28528
28529         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
28530         AC_TYPE_LONG_LONG_INT.
28531         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
28532         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
28533         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
28534         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
28535
28536         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
28537         on stdbool.
28538
28539         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
28540         (gl_PREREQ_XSTRTOUL): Remove.
28541
28542         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
28543
28544         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
28545         mode.
28546
28547 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28548
28549         Add and change modules to make it easier for coreutils to use
28550         gnulib-tool.
28551         * modules/backupfile (Files): Remove m4/d-ino.m4.
28552         (Depends-on): Add d-ino.
28553         * modules/cycle-check (Depends-on): Add stdint.
28554         (lib_SOURCES): Add cycle-check.h.
28555         * modules/d-ino: New module.
28556         * modules/d-type: New module.
28557         * modules/error (Files): Remove m4/strerror_r.m4.
28558         * modules/filemode (Files): Add m4/st_dm_mode.m4.
28559         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
28560         m4/inttypes_h.m4, m4/uintmax_t.m4.
28561         (Depends-on): Add stdint.
28562         (lib_SOURCES): Add fsusage.h.
28563         * modules/getcwd (Files): Remove d-ino.m4.
28564         (Depends-on): Add d-ino.
28565         * modules/getndelim2 (Depends-on): Add stdint.
28566         * modules/glob (Files): Remove m4/d-type.m4.
28567         (Depends-on): Add d-type.
28568         * modules/host-os: New module.
28569         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
28570         m4/inttypes_h.m4, m4/uintmax_t.m4.
28571         * Depends-on: Add stdint.
28572         (lib_SOURCES): Add human.h.
28573         * modules/inttostr (Files): Remove m4/intmax_t.m4,
28574         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
28575         m4/uintmax_t.m4, m4/ulonglong.m4.
28576         (Depends-on): Add stdint.
28577         (EXTRA_DIST): Add inttostr.h.
28578         * modules/lchmod: New module.
28579         * modules/link-follow: New module.
28580         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
28581         (Depends-on): Add lchmod.
28582         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
28583         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
28584         (Depends-on): Add stdint.
28585         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
28586         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
28587         (Depends-on): Add stdint.
28588         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
28589         * modules/perl: New module.
28590         * modules/regex (Depends-on): Add stdint.
28591         * modules/rmdir-errno: New module.
28592         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
28593         m4/intmax_t.m4.
28594         (Depends-on): Add stdint.
28595         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
28596         m4/uintmax_t.m4.
28597         (Depends-on): Add stdint.
28598         * modules/unlink-busy: New module.
28599         * modules/utimecmp (Depends-on): Add stdint.
28600         * modules/uptime: New module.
28601         * modules/winsz-ioctl: New module.
28602         * modules/winsz-termios: New module.
28603         * modules/xnanosleep (Depends-on): Add nanosleep.
28604         * modules/ullong_max: Remove.
28605         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
28606         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
28607         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
28608         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
28609         (Depends-on): Add inttypes.
28610         (lib_SOURCES): Add xstrtol.h.
28611         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
28612         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
28613         * MODULES.html.sh: Move 'assert' into the assert section.
28614         Move 'dummy' into the linking section.
28615         Remove ullong_max.
28616         Add section for compatibility checks for POSIX:2001 functions,
28617         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
28618         winsz-ioctl, and winsz-termios into it.
28619         Add lchmod.
28620         Add top-level Misc section and put host-os, perl, and uptime
28621         into it.
28622
28623 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28624
28625         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
28626         now assume the stdint module.  Do not include inttypes.h.
28627         * lib/fsusage.h: Likewise.
28628         * lib/getndelim2.c: Likewise.
28629         * lib/human.h: Likewise.
28630         * lib/inttostr.h: Likewise.
28631         * lib/obstack.c: Likewise.
28632         * lib/regex_internal.h: Likewise.
28633         * lib/tempname.c: Likewise.
28634         * lib/utimecmp.c: Likewise.
28635         * lib/xstrtol.h: Likewise.
28636
28637         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
28638
28639         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
28640         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
28641         * lib/xtime.h: Likewise.
28642
28643 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28644
28645         * modules/openat (Files): Add lib/fchmodat.c.
28646         Fixes problem reported by Jay Youngman.
28647
28648 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28649
28650         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
28651         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
28652
28653 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28654             Bruno Haible  <bruno@clisp.org>
28655
28656         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
28657         and is a script that invokes bison. Tighten the code. Add comments.
28658
28659 2006-08-18  Jim Meyering  <jim@meyering.net>
28660
28661         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
28662         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
28663         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
28664         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
28665
28666 2006-08-18  Bruno Haible  <bruno@clisp.org>
28667
28668         * modules/bison-i18n: New file.
28669         * MODULES.html.sh (Internationalization functions): Add it.
28670
28671 2006-08-18  Bruno Haible  <bruno@clisp.org>
28672
28673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
28674         sys/statvfs.h. When getmntinfo was found, check its declaration and
28675         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
28676
28677 2006-08-18  Bruno Haible  <bruno@clisp.org>
28678
28679         * m4/bison-i18n.m4: New file, from bison.
28680
28681 2006-08-18  Bruno Haible  <bruno@clisp.org>
28682
28683         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
28684         (ME_DUMMY): Treat "kernfs" as a dummy.
28685         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
28686
28687 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28688
28689         Update from coreutils.
28690
28691         2006-08-15  Jim Meyering  <jim@meyering.net>
28692
28693         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
28694
28695         2006-01-17  Jim Meyering  <jim@meyering.net>
28696
28697         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
28698
28699         2006-01-11  Jim Meyering  <jim@meyering.net>
28700
28701         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
28702         Check for the lchmod function.
28703
28704 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28705
28706         Update from coreutils.
28707
28708         * lib/__fpending.h: Add copyright notice.
28709         * lib/fprintftime.h: Likewise.
28710         * lib/savedir.c: Use (C) in copyright notice.
28711         * lib/savedir.h: Likewise.
28712
28713         2006-08-15  Jim Meyering  <jim@meyering.net>
28714
28715         * lib/at-func.c: New file, with the logic of all emulated at-functions.
28716         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
28717         in support of the EXPECTED_ERRNO macro.
28718         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
28719         definitions.  Instead, define the appropriate symbols and include
28720         "at-func.c".
28721         * lib/mkdirat.c (mkdirat): Likewise.
28722         * lib/fchmodat.c (fchmodat): Likewise.
28723         (ENOSYS): Remove definition.
28724         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
28725         it.  Don't include "unistd--.h" -- it wasn't ever used.
28726
28727         2006-01-17  Jim Meyering  <jim@meyering.net>
28728
28729         Rewrite fts.c not to change the current working directory,
28730         by using openat, fstatat, fdopendir, etc..
28731
28732         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
28733         (HAVE_OPENAT_SUPPORT): Define.
28734         [_LIBC] (fchdir): Don't undef or define; no longer used.
28735         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
28736         Now, this `function' always succeeds, and consumes its file descriptor
28737         parameter -- so callers must not close such FDs.  Update callers.
28738         (diropen_fd, opendirat, cwd_advance_fd): New functions.
28739         (diropen): Add parameter, SP.  Adjust all callers.
28740         Implement using diropen_fd, rather than open.
28741         (fts_open): Initialize new member, fts_cwd_fd.
28742         Remove fts_rft-setting code.
28743         (fts_close): Close fts_cwd_fd, if necessary.
28744         (__opendir2): Define in terms of opendir or opendirat,
28745         depending on whether the FST_NOCHDIR flag is set.
28746         (fts_build): Since fts_safe_changedir consumes its FD, and since
28747         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
28748         and close the dup'd file descriptor upon failure.
28749         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
28750         (fts_safe_changedir): Tweak semantics to reflect that this function
28751         now calls cwd_advance_fd and hence consumes its FD argument.
28752         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
28753         [struct FTS] (fts_rft): Remove now-unused member.
28754         [struct FTS] (fts_cycle.state): Improve comment.
28755
28756         * lib/openat.c (openat_needs_fchdir): New function.
28757         * lib/openat.h (openat_needs_fchdir): Declare it.
28758
28759 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28760
28761         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
28762         Problem and fix reported by Pádraig Brady in
28763         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
28764
28765 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28766
28767         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
28768
28769 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28770
28771         * lib/memcoll.c (memcoll): Optimize for the common case where the
28772         arguments are bytewise equal.
28773
28774 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28775
28776         * doc/regexprops-generic.texi: Add a copyright notice.
28777
28778 2006-08-15  Bruno Haible  <bruno@clisp.org>
28779
28780         * modules/tmpdir (License): Change to LGPL.
28781
28782 2006-08-15  Bruno Haible  <bruno@clisp.org>
28783
28784         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
28785         module.
28786
28787 2006-08-14  Simon Josefsson  <jas@extundo.com>
28788
28789         * config/srclist.txt: Add gnupload.
28790
28791 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28792
28793         Change copyright notice from LGPL 2 to GPL 2, since that's the
28794         standard form used in the gnulib repository.
28795         * tests/test-lock.c: Likewise.
28796         * tests/test-stdint.c: Likewise.
28797         * tests/test-tls.c: Likewise.
28798
28799         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
28800         prelude-manager.  User shorter URLs for GNU projects, without '?'.
28801         Add copyright notice.
28802
28803         * check-module: Add copyright notice.  Output a copyright
28804         notice if "--version" is specified.
28805         * modules/COPYING: New file.
28806         * tests/test-getaddrinfo.c: Add copyright notice.
28807         * tests/test-verify.c: Likewise.
28808
28809 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28810
28811         Change copyright notice from LGPL 2 to GPL 2, since that's the
28812         standard form used in the gnulib repository.
28813         * lib/lock.c: LGPL -> GPL.
28814         * lib/lock.h: Likewise.
28815         * lib/strnlen1.c: Likewise.
28816         * lib/strnlen1.h: Likewise.
28817         * lib/tls.c: Likewise.
28818         * lib/tls.h: Likewise.
28819         * lib/tmpdir.c: Likewise.
28820
28821         * lib/TODO: Remove; this belongs only in coreutils.
28822
28823 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28824
28825         Add copyright notices to long-enough files that lack them, since
28826         otherwise the files aren't clearly free.  Use the same notice that
28827         getdate.texi already uses.
28828         * doc/alloca-opt.texi: Add copyright notice.
28829         * doc/alloca.texi: Likewise.
28830         * doc/ctime.texi: Likewise.
28831         * doc/functions.texi: Likewise.
28832         * doc/gcd.texi: Likewise.
28833         * doc/gnulib-tool.texi: Likewise.
28834         * doc/inet_ntoa.texi: Likewise.
28835         * doc/visibility.texi: Likewise.
28836
28837         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
28838         * doc/quote.texi: Add copyright notice.
28839
28840         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
28841         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
28842         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
28843         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
28844         is now obsolete, and give a pointer to the Sun list.
28845         Add copyright notice.
28846
28847 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28848
28849         * config/srclistvars.sh: Add copyright notice.
28850
28851 2006-08-14  Eric Blake  <ebb9@byu.net>
28852
28853         Import the following change from libc:
28854
28855         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
28856
28857         Upstream bug 2997.
28858         * lib/misc/error.c: Add space between program name and message if file
28859         name is missing.
28860
28861 2006-08-12  Karl Berry  <karl@gnu.org>
28862
28863         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
28864         remove, these originate in gnulib now.
28865
28866 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28867
28868         * doc/Makefile (standards.info standards.html standards.dvi):
28869         Also depend on make-stds.texi.
28870
28871 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
28874         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
28875
28876         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
28877         in wchar_t.  Problem reported by Eric Blake.
28878
28879         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
28880         LEN is smaller than SIZE.  Suggested by Bruno Haible.
28881         Also, help the compiler to keep LEN in a register.
28882
28883 2006-08-11  Eric Blake  <ebb9@byu.net>
28884
28885         * users.txt: Sort.  Add tar.
28886
28887 2006-08-11  Bruno Haible  <bruno@clisp.org>
28888
28889         * users.txt: New file.
28890
28891 2006-08-11  Bruno Haible  <bruno@clisp.org>
28892
28893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
28894         before <wchar.h>. Needed for OSF/1 and BSD/OS.
28895
28896 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28897
28898         * modules/snprintf (Depends-on): Remove minmax.
28899         (Maintainer): Add self and Bruno.
28900
28901 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28902
28903         * lib/.cppi-disable: Add snprintf.h, socket_.h.
28904         * lib/snprintf.c: Include <errno.h> and <limits.h>.
28905         (EOVERFLOW): Define if the system does not.
28906         Do not include "minmax.h"; it wasn't used.
28907         (snprintf): Don't assume size_t promotes to an unsigned type.
28908         Fix bug when generated string was too long for the buffer: the
28909         buffer's contents are supposed to be the initial prefix of the
28910         output.  Don't assume vasnprintf returns EOVERFLOW if the size
28911         exceeds INT_MAX; do the check ourselves.
28912
28913         Import the following changes from libc:
28914
28915         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
28916
28917         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
28918         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
28919         set wc to the byte which couldn't be converted.
28920         (re_string_reconstruct): Don't clear valid_raw_len before calling
28921         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
28922         tip_context using re_string_context_at.
28923
28924         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
28925
28926         * lib/posix/regex.h: g++ still cannot handled [restrict].
28927
28928         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
28929
28930         * lib/posix/regex.h: Remove special handling for VMS.
28931
28932 2006-08-10  Jim Meyering  <jim@meyering.net>
28933
28934         * modules/same-inode: New module.
28935         * modules/dev-ino: New module.
28936         * modules/cycle-check: Depend on these modules, rather than simply
28937         including their .h files.
28938         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
28939         required via m4/cycle-check.m4.
28940         * modules/same: Depend on new same-inode module, rather than
28941         including same-inode.h.
28942         * modules/chdir-safer: New file.
28943
28944         * modules/chown (Depends-on): Add stat-macros.
28945
28946 2006-08-10  Jim Meyering  <jim@meyering.net>
28947
28948         * m4/cycle-check.m4: New file.
28949         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
28950         * m4/dev-ino.m4, m4/same-inode.m4: New files.
28951
28952 2006-08-10  Eric Blake  <ebb9@byu.net>
28953
28954         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
28955         in from original proposal.
28956
28957 2006-08-10  Eric Blake  <ebb9@byu.net>
28958         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28959
28960         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
28961         namespace.
28962
28963 2006-08-10  Bruno Haible  <bruno@clisp.org>
28964
28965         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
28966         as well.
28967
28968 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28969
28970         Sync from coreutils.
28971
28972         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
28973
28974         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
28975         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
28976
28977 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28978
28979         * modules/restrict: Remove; no longer needed now that we assume
28980         Autoconf 2.59 or later.
28981         * MODULES.html.sh: Remove 'restrict'.
28982         * modules/argp (Depends-on): Remove 'restrict'.
28983         * modules/base64 (Depends-on): Likewise.
28984         * modules/gc (Depends-on): Likewise.
28985         * modules/getaddrinfo (Depends-on): Likewise.
28986         * modules/glob (Depends-on): Likewise.
28987         * modules/inet_ntop (Depends-on): Likewise.
28988         * modules/inet_pton (Depends-on): Likewise.
28989         * modules/memxor (Depends-on): Likewise.
28990         * modules/regex (Depends-on): Likewise.
28991         * modules/strtok_r (Depends-on): Likewise.
28992         * modules/time_r (Depends-on): Likewise.
28993
28994 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
28995
28996         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
28997         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
28998         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28999         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
29000         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
29001         * m4/memxor.m4 (gl_MEMXOR): Likewise.
29002         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
29003         gl_C_RESTRICT replaced by AC_C_RESTRICT.
29004
29005         Merge from coreutils.
29006         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
29007         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
29008         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
29009         * m4/time_r.m4 (gl_TIME_R): Likewise.
29010
29011 2006-08-09  Karl Berry  <karl@gnu.org>
29012
29013         * config/srclist.txt: no more gettext-tools, per Bruno.
29014
29015 2006-08-08  Eric Blake  <ebb9@byu.net>
29016
29017         * modules/verror: New module.
29018         * MODULES.html.sh: Document it.
29019
29020 2006-08-08  Eric Blake  <ebb9@byu.net>
29021
29022         * lib/verror.h, lib/verror.c: New files.
29023
29024 2006-08-08  Eric Blake  <ebb9@byu.net>
29025
29026         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
29027         verror_at_line output complies with GNU Coding Standards even when
29028         file is NULL.
29029
29030 2006-08-07  Bruno Haible  <bruno@clisp.org>
29031
29032         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
29033         versions of AIX.
29034         Reported by Ralf Wildenhues.
29035
29036 2006-08-07  Bruno Haible  <bruno@clisp.org>
29037
29038         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
29039         in an AC_DEFUN. Needed so that the autoconf snippets can use
29040         AC_REQUIRE.
29041
29042 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29043
29044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29045         Initialize pkgdata_DATA.
29046         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
29047         overriding it.
29048
29049 2006-08-06  Eric Blake  <ebb9@byu.net>
29050
29051         * lib/error.h: Fold in some upstream changes from glibc.
29052         * lib/error.c: Likewise.
29053
29054 2006-08-04  Bruno Haible  <bruno@clisp.org>
29055
29056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29057         Make the mostlyclean-local rule depend on mostlyclean-generic.
29058         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
29059
29060 2006-07-31  Bruno Haible  <bruno@clisp.org>
29061
29062         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
29063         <stdlib.h>, <string.h>.
29064
29065 2006-07-30  Bruno Haible  <bruno@clisp.org>
29066
29067         * modules/readlink (License): Change to LGPL.
29068
29069 2006-07-30  Bruno Haible  <bruno@clisp.org>
29070
29071         * modules/javaversion (Makefile.am): Distribute javaversion.java and
29072         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
29073         set PKGDATADIR to point to it.
29074
29075 2006-07-30  Bruno Haible  <bruno@clisp.org>
29076
29077         * modules/csharpexec (configure.ac): Comment out macro invocation.
29078         * modules/javaexec (configure.ac): Likewise.
29079         * modules/javacomp-script (configure.ac): Likewise.
29080
29081         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
29082
29083 2006-07-30  Bruno Haible  <bruno@clisp.org>
29084
29085         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
29086         linked-list.
29087
29088 2006-07-30  Bruno Haible  <bruno@clisp.org>
29089
29090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
29091
29092 2006-07-30  Bruno Haible  <bruno@clisp.org>
29093
29094         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29095         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
29096         get removed.
29097
29098 2006-07-29  Bruno Haible  <bruno@clisp.org>
29099
29100         Make it possible for gnulib-tool to work with locally modified or
29101         augmented gnulib repositories.
29102         * gnulib-tool (func_usage): Document --local-dir option.
29103         (local_gnulib_dir): New variable.
29104         Handle --local-dir option.
29105         (func_lookup_file): New function.
29106         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
29107         (func_get_description, func_get_filelist, func_get_description,
29108         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
29109         func_get_automake_snippet, func_get_include_directive,
29110         func_get_license, func_get_maintainer): Use func_lookup_file.
29111         (func_import, func_create_testdir): Use func_lookup_file.
29112
29113 2006-07-29  Bruno Haible  <bruno@clisp.org>
29114
29115         * modules/setenv (Depends-on): Add unistd.
29116
29117 2006-07-29  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
29120
29121 2006-07-29  Bruno Haible  <bruno@clisp.org>
29122
29123         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
29124
29125 2006-07-29  Bruno Haible  <bruno@clisp.org>
29126
29127         * gnulib-tool (import, update): If there is no Makefile.am, look at
29128         aclocal.m4, instead of bailing out.
29129
29130 2006-07-29  Bruno Haible  <bruno@clisp.org>
29131
29132         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
29133         Categorize the options by when they are useful.
29134
29135 2006-07-29  Bruno Haible  <bruno@clisp.org>
29136
29137         * gnulib-tool (func_usage): Document option --no-libtool.
29138         Handle option --no-libtool.
29139         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
29140         for changed semantics of $libtool variable.
29141         (func_import): Likewise. If libtool is not used, show this through
29142         an option --no-libtool.
29143         (func_create_testdir): Update.
29144
29145 2006-07-29  Bruno Haible  <bruno@clisp.org>
29146
29147         * gnulib-tool (func_import): Extend error message about missing
29148         --doc-base.
29149
29150 2006-07-29  Bruno Haible  <bruno@clisp.org>
29151
29152         * gnulib-tool (func_import): Don't create the $docbase directory if
29153         there is no file to store there.
29154
29155 2006-07-29  Bruno Haible  <bruno@clisp.org>
29156
29157         * gnulib-tool (autoconf_minversion): If a --dir option is given and
29158         relevant, look for configure.ac there, not in the current directory.
29159         Also use a simple search for AC_PREREQ, not "autoconf --trace".
29160
29161 2006-07-29  Bruno Haible  <bruno@clisp.org>
29162
29163         * gnulib-tool (SORT): New variable.
29164         (func_usage): Undocument --assume-autoconf option.
29165         Remove --assume-autoconf option handling.
29166         (autoconf_minversion): Determine from the contents of configure.ac.
29167         (func_import): Remove autoconf_minversion handling.
29168         Suggested by Eric Blake.
29169
29170 2006-07-29  Bruno Haible  <bruno@clisp.org>
29171
29172         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
29173
29174 2006-07-29  Bruno Haible  <bruno@clisp.org>
29175
29176         * config/srclist.txt (*setenv.[ch]): Remove rules.
29177
29178 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29179
29180         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
29181
29182 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29183
29184         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
29185         arpa/inet.h.
29186
29187 2006-07-28  Simon Josefsson  <jas@extundo.com>
29188
29189         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
29190         * modules/inet_pton (Depends-on): Likewise.
29191
29192 2006-07-28  Simon Josefsson  <jas@extundo.com>
29193
29194         * m4/netinet_in_h.m4: New file.
29195
29196 2006-07-28  Simon Josefsson  <jas@extundo.com>
29197
29198         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
29199         #include's.
29200
29201 2006-07-28  Simon Josefsson  <jas@extundo.com>
29202
29203         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
29204         #include's.
29205
29206 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
29207
29208         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
29209         setgid on directories only if they set these bits.
29210         * lib/modechange.h: Remove obsolete comment about masks.
29211
29212 2006-07-28  Eric Blake  <ebb9@byu.net>
29213
29214         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
29215         macro expansion.
29216
29217 2006-07-28  Bruno Haible  <bruno@clisp.org>
29218
29219         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
29220
29221 2006-07-28  Bruno Haible  <bruno@clisp.org>
29222
29223         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
29224
29225 2006-07-28  Bruno Haible  <bruno@clisp.org>
29226
29227         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
29228         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
29229         Define fallbacks.
29230         Avoids link error on FreeBSD 4.x.
29231         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29232
29233         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
29234         encoding.
29235         * lib/mbswidth.c (iswcntrl): Likewise.
29236
29237 2006-07-27  Bruno Haible  <bruno@clisp.org>
29238
29239         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
29240         test.
29241
29242 2006-07-27  Bruno Haible  <bruno@clisp.org>
29243
29244         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
29245         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
29246         defined.
29247
29248 2006-07-26  Eric Blake  <ebb9@byu.net>
29249
29250         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
29251
29252 2006-07-26  Eric Blake  <ebb9@byu.net>
29253
29254         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
29255         like mingw that lack mkstemp.
29256         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
29257         avoid compilation warning on mingw.
29258
29259 2006-07-26  Bruno Haible  <bruno@clisp.org>
29260
29261         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
29262         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
29263         INT_FAST*_MIN, INTPTR_MIN.
29264
29265 2006-07-25  Bruno Haible  <bruno@clisp.org>
29266
29267         * modules/version-etc (Depends-on): Add stdarg.
29268
29269 2006-07-25  Bruno Haible  <bruno@clisp.org>
29270
29271         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
29272         complex commands.
29273
29274 2006-07-25  Bruno Haible  <bruno@clisp.org>
29275
29276         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
29277         defined in <stdarg.h> or config.h.
29278
29279 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
29280
29281         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
29282         (gl_STDIO_SAFER): Remove.
29283
29284 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
29285
29286         * MODULES.html.sh (File stream based Input/Output):
29287         Add fopen-safer, tmpfile-safer; remove stdio-safer.
29288         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
29289         * modules/fopen-safer, modules/tmpfile-safer: New files.
29290         * modules/stdio-safer: Remove.
29291
29292 2006-07-24  Bruno Haible  <bruno@clisp.org>
29293
29294         * modules/tmpdir: New file.
29295         * MODULES.html.sh (File system functions): Add it.
29296
29297 2006-07-24  Bruno Haible  <bruno@clisp.org>
29298
29299         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
29300         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
29301
29302 2006-07-24  Bruno Haible  <bruno@clisp.org>
29303
29304         * modules/clean-temp: New file.
29305
29306 2006-07-24  Bruno Haible  <bruno@clisp.org>
29307
29308         * m4/tmpdir.m4: New file, from GNU gettext.
29309
29310 2006-07-24  Bruno Haible  <bruno@clisp.org>
29311
29312         * lib/tmpdir.h: New file, from GNU gettext.
29313         * lib/tmpdir.c: New file, from GNU gettext.
29314
29315 2006-07-24  Bruno Haible  <bruno@clisp.org>
29316
29317         * lib/clean-temp.h: New file, from GNU gettext.
29318         * lib/clean-temp.c: New file, from GNU gettext.
29319
29320 2006-07-23  Eric Blake  <ebb9@byu.net>
29321
29322         * modules/stdio-safer (Files): Add tmpfile-safer.c.
29323         (Depends-on): Add binary-io.
29324
29325 2006-07-23  Eric Blake  <ebb9@byu.net>
29326
29327         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
29328
29329 2006-07-23  Eric Blake  <ebb9@byu.net>
29330
29331         * lib/tmpfile-safer.c: New file.
29332         * lib/stdio-safer.h (fopen_safer): Add prototype.
29333         * lib/stdio--.h (tmpfile): Make safer.
29334
29335 2006-07-23  Bruno Haible  <bruno@clisp.org>
29336
29337         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
29338         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
29339         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
29340         gl_linked_remove_at): Use it.
29341
29342 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29343         and Simon Josefsson <jas@extundo.com>
29344
29345         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
29346
29347         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
29348
29349 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         * modules/close-stream: New file.
29352         * modules/closeout (Description): Make it clear that it exits
29353         with a diagnostic on error.
29354         (Depends-on): Add close-stream.  Remove fpending, stdbool.
29355         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
29356
29357 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29358
29359         * m4/close-stream.m4: New file.
29360
29361 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29362
29363         * lib/close-stream.c, lib/close-stream.h: New files.
29364
29365 2006-07-22  Bruno Haible  <bruno@clisp.org>
29366
29367         Merge from GNU gettext 0.15.
29368
29369         2006-05-01  Bruno Haible  <bruno@clisp.org>
29370
29371                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
29372
29373         2006-07-22  Bruno Haible  <bruno@clisp.org>
29374
29375                 * modules/javaversion: New file.
29376                 * MODULES.html.sh (Java): Add javaversion.
29377
29378         2006-03-12  Bruno Haible  <bruno@clisp.org>
29379
29380                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
29381
29382         2005-12-04  Bruno Haible  <bruno@clisp.org>
29383
29384                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
29385                 (untested).
29386
29387         2006-06-21  Bruno Haible  <bruno@clisp.org>
29388
29389                 Avoid warnings from recent versions of mcs.
29390                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
29391                 -o, -L, -r any more. Use options documented since mcs-1.0
29392                 instead. Similarly for -g.
29393
29394         2005-12-04  Bruno Haible  <bruno@clisp.org>
29395
29396                 * build-aux/csharpcomp.sh.in: Suffix for resources is
29397                 .resources, not .resource.
29398
29399         2005-07-09  Bruno Haible  <bruno@clisp.org>
29400
29401                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
29402                 add a .dll suffix.
29403                 Reported by Mark Junker <mjscod@gmx.de>.
29404
29405         2006-07-22  Bruno Haible  <bruno@clisp.org>
29406
29407                 * modules/gettext: Upgrade to gettext-0.15.
29408                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
29409                 m4/visibility.m4.
29410                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
29411
29412 2006-07-22  Bruno Haible  <bruno@clisp.org>
29413
29414         Merge from GNU gettext 0.15.
29415
29416         2006-03-25  Bruno Haible  <bruno@clisp.org>
29417
29418                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
29419
29420         2006-07-21  Bruno Haible  <bruno@clisp.org>
29421
29422                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
29423                 "1.1".
29424
29425         2006-05-09  Bruno Haible  <bruno@clisp.org>
29426
29427                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
29428                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
29429                 for the conftestver execution.
29430
29431         2006-05-01  Bruno Haible  <bruno@clisp.org>
29432
29433                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
29434                 optional target-version argument. Verify that the compiler
29435                 groks source of the specified source-version, or add -source
29436                 option as necessary. Verify that the compiler produces
29437                 bytecode in the specified target-version, or add -target and
29438                 -source options as necessary. Make the result of the test
29439                 available as variable CONF_JAVAC. Also log error output in
29440                 config.log.
29441
29442         2006-03-11  Bruno Haible  <bruno@clisp.org>
29443
29444                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
29445
29446         2006-05-09  Bruno Haible  <bruno@clisp.org>
29447
29448                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
29449                 CLASSPATH_SEPARATOR to a semicolon.
29450
29451         2006-03-12  Bruno Haible  <bruno@clisp.org>
29452
29453                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
29454                 available as variable CONF_JAVA, for subsequent autoconf
29455                 tests. Also log error output in config.log.
29456
29457         2006-07-19  Bruno Haible  <bruno@clisp.org>
29458
29459                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
29460                 that getline works on glibc2 systems. Needed to avoid trouble
29461                 in relocatable.c.
29462                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
29463
29464         2005-12-04  Bruno Haible  <bruno@clisp.org>
29465
29466                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
29467                 launcher (untested).
29468
29469         2005-12-04  Bruno Haible  <bruno@clisp.org>
29470
29471                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
29472
29473         2006-07-22  Bruno Haible  <bruno@clisp.org>
29474
29475                 * gettext.m4: Update from GNU gettext-0.15.
29476                 * nls.m4: Likewise.
29477                 * po.m4: Likewise.
29478                 * inttypes-pri.m4: Likewise.
29479                 * inttypes-h.m4: Renamed from inttypes.m4.
29480                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
29481
29482 2006-07-22  Bruno Haible  <bruno@clisp.org>
29483
29484         Merge from GNU gettext 0.15.
29485
29486         2005-07-05  Bruno Haible  <bruno@clisp.org>
29487
29488                 * printf-args.c (printf_fetchargs): Work around broken
29489                 definition of wint_t on mingw.
29490
29491         2005-02-12  Bruno Haible  <bruno@clisp.org>
29492
29493                 * xallocsa.h: Add extern "C" for C++.
29494
29495         2006-05-17  Bruno Haible  <bruno@clisp.org>
29496
29497                 Cygwin portability.
29498                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
29499
29500         2006-04-30  Bruno Haible  <bruno@clisp.org>
29501
29502                 * progreloc.c: Include <mach-o/dyld.h> if available.
29503                 (find_executable): Use _NSGetExecutablePath when possible.
29504
29505         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29506
29507                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
29508                 function.
29509
29510         2005-12-29  Bruno Haible  <bruno@clisp.org>
29511
29512                 * progreloc.c (set_program_name_and_installdir): Fix
29513                 compilation error.
29514
29515         2005-12-04  Bruno Haible  <bruno@clisp.org>
29516
29517                 Cygwin portability.
29518                 * progreloc.c: Include <windows.h> also on Cygwin.
29519                 (find_executable): Add support for Cygwin.
29520                 (set_program_name_and_installdir): Handle also platforms with
29521                 nonempty EXEEXT.
29522
29523         2006-07-11  Bruno Haible  <bruno@clisp.org>
29524
29525                 * javacomp.c: Fix a comment.
29526                 Reported by Jim Meyering.
29527
29528         2006-04-30  Bruno Haible  <bruno@clisp.org>
29529
29530                 * javacomp.h (compile_java_class): Add source_version,
29531                 target_version arguments.
29532                 * javacomp.c: Rewritten to choose only a compiler that
29533                 respects the specified source_version and target_version.
29534
29535         2006-06-27  Bruno Haible  <bruno@clisp.org>
29536
29537                 Assume correct S_ISDIR macro.
29538                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
29539
29540         2006-07-22  Bruno Haible  <bruno@clisp.org>
29541
29542                 * javaversion.h: New file, from GNU gettext.
29543                 * javaversion.c: New file, from GNU gettext.
29544                 * javaversion.java: New file, from GNU gettext.
29545                 * javaversion.class: New file, from GNU gettext.
29546
29547         2006-05-17  Bruno Haible  <bruno@clisp.org>
29548
29549                 Cygwin portability.
29550                 * javaexec.c (execute_java_class): Test for jview program
29551                 also on Cygwin.
29552
29553         2006-04-09  Bruno Haible  <bruno@clisp.org>
29554
29555                 * fatal-signal.c: Don't include string.h.
29556                 (at_fatal_signal): Use a copying loop instead of memcpy.
29557
29558         2005-12-04  Bruno Haible  <bruno@clisp.org>
29559
29560                 * csharpexec.c: Add support for 'clix' launcher (untested).
29561                 (execute_csharp_using_sscli): New function.
29562                 (execute_csharp_program): Call it.
29563
29564         2006-06-21  Bruno Haible  <bruno@clisp.org>
29565
29566                 Avoid warnings from recent versions of mcs.
29567                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
29568                 -o, -L, -r any more. Use options documented since mcs-1.0
29569                 instead. Similarly for -g.
29570
29571         2005-07-09  Bruno Haible  <bruno@clisp.org>
29572
29573                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
29574                 add a .dll suffix.
29575                 Reported by Mark Junker <mjscod@gmx.de>.
29576
29577         2006-06-17  Bruno Haible  <bruno@clisp.org>
29578
29579                 * config.charset: Update for NetBSD 3.0.
29580
29581         2006-05-17  Bruno Haible  <bruno@clisp.org>
29582
29583                 Cygwin portability.
29584                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
29585
29586         2006-05-16  Bruno Haible  <bruno@clisp.org>
29587
29588                 * localcharset.c [CYGWIN]: Include <windows.h>.
29589                 (get_charset_aliases): For Cygwin, return the same CPxxx
29590                 aliases list as under WIN32.
29591                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
29592                 the environment variables. Fall back to GetACP().
29593
29594         2006-04-05  Bruno Haible  <bruno@clisp.org>
29595
29596                 * config.charset: Update Juan Manuel Guerrero's address.
29597
29598         2005-02-12  Bruno Haible  <bruno@clisp.org>
29599
29600                 * allocsa.h: Add extern "C" for C++.
29601
29602         2005-02-10  Bruno Haible  <bruno@clisp.org>
29603
29604                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
29605                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
29606
29607         2006-07-22  Bruno Haible  <bruno@clisp.org>
29608
29609                 * gettext.h: Update to GNU gettext-0.15.
29610
29611 2006-07-22  Bruno Haible  <bruno@clisp.org>
29612
29613         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
29614         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
29615         lib-prefix.m4, longdouble.m4, ssize_t.m4.
29616
29617 2006-07-21  Eric Blake  <ebb9@byu.net>
29618
29619         * modules/stdlib-safer: New file.
29620         * MODULES.html.sh (File stream based Input/Output): Add
29621         stdlib-safer.
29622
29623 2006-07-21  Eric Blake  <ebb9@byu.net>
29624
29625         * lib/stdlib-safer.h: New file from coreutils, required by
29626         stdlib--.h.
29627
29628 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
29629
29630         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
29631
29632 2006-07-20  Bruno Haible  <bruno@clisp.org>
29633
29634         * gnulib-tool: Recognize new option --assume-autoconf.
29635         (autoconf_minversion): New variable.
29636         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
29637
29638 2006-07-20  Bruno Haible  <bruno@clisp.org>
29639
29640         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
29641
29642 2006-07-19  Derek R. Price  <derek@ximbiot.com>
29643
29644         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
29645         Reindent and repaginate.
29646
29647 2006-07-19  Derek Price  <derek@ximbiot.com>
29648
29649         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
29650         Correct grammar.
29651
29652 2006-07-17  Bruno Haible  <bruno@clisp.org>
29653
29654         * modules/list: New file.
29655         * modules/array-list: New file.
29656         * modules/carray-list, modules/carray-list-tests: New files.
29657         * modules/linked-list, modules/linked-list-tests: New files.
29658         * modules/avltree-list, modules/avltree-list-tests: New files.
29659         * modules/rbtree-list, modules/rbtree-list-tests: New files.
29660         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
29661         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
29662         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
29663         * modules/oset: New file.
29664         * modules/array-oset: New file.
29665         * modules/avltree-oset, modules/avltree-oset-tests: New files.
29666         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
29667         * tests/test-carray_list.c: New file.
29668         * tests/test-linked_list.c: New file.
29669         * tests/test-avltree_list.c: New file.
29670         * tests/test-rbtree_list.c: New file.
29671         * tests/test-linkedhash_list.c: New file.
29672         * tests/test-avltreehash_list.c: New file.
29673         * tests/test-rbtreehash_list.c: New file.
29674         * tests/test-avltree_oset.c: New file.
29675         * tests/test-rbtree_oset.c: New file.
29676         * MODULES.html.sh (Container data structures): New section.
29677
29678 2006-07-17  Bruno Haible  <bruno@clisp.org>
29679
29680         * m4/gl_list.m4: New file.
29681
29682 2006-07-17  Bruno Haible  <bruno@clisp.org>
29683
29684         * lib/gl_list.h: New file.
29685         * lib/gl_list.c: New file.
29686         * lib/gl_array_list.h: New file.
29687         * lib/gl_array_list.c: New file.
29688         * lib/gl_carray_list.h: New file.
29689         * lib/gl_carray_list.c: New file.
29690         * lib/gl_linked_list.h: New file.
29691         * lib/gl_linked_list.c: New file.
29692         * lib/gl_anylinked_list1.h: New file.
29693         * lib/gl_anylinked_list2.h: New file.
29694         * lib/gl_avltree_list.h: New file.
29695         * lib/gl_avltree_list.c: New file.
29696         * lib/gl_anyavltree_list1.h: New file.
29697         * lib/gl_anyavltree_list2.h: New file.
29698         * lib/gl_rbtree_list.h: New file.
29699         * lib/gl_rbtree_list.c: New file.
29700         * lib/gl_anyrbtree_list1.h: New file.
29701         * lib/gl_anyrbtree_list2.h: New file.
29702         * lib/gl_anytree_list1.h: New file.
29703         * lib/gl_anytree_list2.h: New file.
29704         * lib/gl_linkedhash_list.h: New file.
29705         * lib/gl_linkedhash_list.c: New file.
29706         * lib/gl_anyhash_list1.h: New file.
29707         * lib/gl_anyhash_list2.h: New file.
29708         * lib/gl_avltreehash_list.h: New file.
29709         * lib/gl_avltreehash_list.c: New file.
29710         * lib/gl_rbtreehash_list.h: New file.
29711         * lib/gl_rbtreehash_list.c: New file.
29712         * lib/gl_anytreehash_list1.h: New file.
29713         * lib/gl_anytreehash_list2.h: New file.
29714
29715         * lib/gl_oset.h: New file.
29716         * lib/gl_oset.c: New file.
29717         * lib/gl_array_oset.h: New file.
29718         * lib/gl_array_oset.c: New file.
29719         * lib/gl_avltree_oset.h: New file.
29720         * lib/gl_avltree_oset.c: New file.
29721         * lib/gl_rbtree_oset.h: New file.
29722         * lib/gl_rbtree_oset.c: New file.
29723         * lib/gl_anytree_oset.h: New file.
29724
29725 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
29726
29727         * m4/mkancesdirs.m4: New file.
29728         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
29729         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
29730         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
29731         it.
29732
29733 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
29734
29735         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
29736         * lib/mkancesdirs.h: New files.
29737         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
29738         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
29739         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
29740         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
29741         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
29742         callers changed.  Revamp internals significantly, by not
29743         attempting to create directories that are temporarily more
29744         permissive than the final results.  Do not attempt to use
29745         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
29746         This removes some race conditions, fixes some bugs, and simplifies
29747         things.  Use new dirchownmod function to do owner and mode changes.
29748         * lib/mkdir-p.h: Likewise.
29749         * lib/modechange.c (octal_to_mode): New function.
29750         (struct mode_change): New member mentioned.
29751         (make_node_op_equals): New arg mentioned.  All callers changed.
29752         (mode_compile): Keep track of which mode bits the user has explicitly
29753         mentioned.
29754         (mode_adjust): New arg DIR, so that we implement the X op correctly.
29755         New arg PMODE_BITS, to keep track of which mode bits the user
29756         mentioned; it treats S_ISUID and S_ISGID speciall.
29757         All callers changed.
29758         * lib/modechange.h: Likewise.
29759
29760 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
29761
29762         * MODULES.html.sh: Add mkancestors.
29763         * modules/mkancesdirs: New module.
29764         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
29765         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
29766         The chdir-safer and afs files are now orphans; I'll remove them
29767         unless someone speaks up.
29768         Add lib/dirchownmod.c, lib/dirchownmod.h.
29769         (Depends-on): Remove alloca, chown, save-cwd, dirname.
29770         Add lchown, mkancesdirs.
29771         (Maintainer): Add self.
29772
29773 2006-07-15  Karl Berry  <karl@gnu.org>
29774
29775         * gnulib-tool: help message wording/arrangement.
29776
29777 2006-07-14  Simon Josefsson  <jas@extundo.com>
29778
29779         * doc/gnulib.texi (Libtool and Windows): New section.
29780
29781 2006-07-12  Simon Josefsson  <jas@extundo.com>
29782
29783         * modules/gendocs (License): Fix license, approved by Karl.
29784
29785 2006-07-12  Eric Blake  <ebb9@byu.net>
29786
29787         * MODULES.html.sh: Add gendocs.
29788
29789 2006-07-11  Eric Blake  <ebb9@byu.net>
29790
29791         * modules/fdl: New module, to install doc/fdl.texi.
29792         * MODULES.html.sh: Add new section for documentation modules.
29793         * gnulib-tool: Avoid space-tab.
29794         (--doc-base): New option, to manage files from doc.
29795
29796 2006-07-11  Eric Blake  <ebb9@byu.net>
29797
29798         * m4/absolute-header.m4: Fix comments to match recent change.
29799
29800 2006-07-11  Eric Blake  <ebb9@byu.net>
29801
29802         * gnulib-tool: List --doc-base before --tests-base.
29803
29804 2006-07-11  Derek R. Price  <derek@ximbiot.com>
29805
29806         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
29807
29808 2006-07-11  Bruno Haible  <bruno@clisp.org>
29809
29810         * README: Mention where to put documentation.
29811
29812 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29813
29814         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
29815
29816 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
29817
29818         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
29819         to stdint.m4.
29820
29821 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
29822
29823         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
29824         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
29825         "no/such/file/stdint.h" when there is no such file, so that
29826         the resulting C code can be parsed by dodgy compilers.
29827         Problems reported by Bob Proulx.
29828
29829 2006-07-10  Derek R. Price  <derek@ximbiot.com>
29830
29831         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
29832         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
29833         macros into the GNU _D_EXACT_NAMLEN.
29834         * lib/savedir.c:  Likewise.
29835         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
29836
29837 2006-07-10  Derek R. Price  <derek@ximbiot.com>
29838         and Paul Eggert  <eggert@cs.ucla.edu>
29839
29840         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
29841         * m4/savedir.m4:
29842         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
29843         macros into the GNU _D_EXACT_NAMLEN.
29844
29845 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
29848         around the absolute name, to work around a problem with the HP-UX
29849         11.23 native C compiler, reported by Bob Proulx.
29850
29851 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29852
29853         * doc/maintain.texi, make-stds.texi: Sync from
29854         <http://savannah.gnu.org/projects/gnustandards>.
29855
29856 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29857
29858         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
29859
29860 2006-07-09  Jim Meyering  <jim@meyering.net>
29861
29862         * m4/glob.m4: Remove a doubled word in a comment.
29863
29864 2006-07-09  Jim Meyering  <jim@meyering.net>
29865
29866         * lib/argp-pv.c: Remove a doubled word in a comment.
29867         * lib/check-version.c (check_version): Likewise.
29868         * lib/javacomp.c (compile_java_class): Likewise.
29869
29870 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29871
29872         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
29873         for the benefit of people using Autoconf 2.60.  If you want to
29874         support older Autoconf versions you can copy m4/onceonly_2_57.m4
29875         (or m4/onceonly.m4, if pre-2.57) manually.
29876
29877 2006-07-08  Jim Meyering  <jim@meyering.net>
29878
29879         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
29880         comment.
29881         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
29882         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
29883         comment.
29884
29885 2006-07-08  Jim Meyering  <jim@meyering.net>
29886
29887         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
29888
29889 2006-07-07  Simon Josefsson  <jas@extundo.com>
29890
29891         * tests/test-crc.c: Change expected crc value, the test vector
29892         were probably computed using the old broken crc.c?
29893
29894 2006-07-06  Simon Josefsson  <jas@extundo.com>
29895
29896         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
29897         now the canonical place for the M4 file).
29898
29899         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
29900         from the sys_socket dependency now.
29901
29902         * modules/inet_pton (Files): Ditto.
29903
29904         * modules/inet_ntop (Files): Ditto.
29905
29906 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29907
29908         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
29909         not gl_PREREQ_GETUSERSHELL.
29910
29911 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29912
29913         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
29914         with only one argument, for Autoconf 2.60.
29915         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
29916         expand to nothing, so add a shell command to avoid syntax error.
29917         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
29918
29919 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29920
29921         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
29922
29923 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29924
29925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
29926         no longer needed.  Check for isblank decl.
29927         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
29928         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
29929         of existence.
29930
29931 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29932
29933         * lib/getloadavg.c: Use __VMS, not VMS.
29934         * lib/getopt.c: Likewise.
29935         * lib/getpagesize.h: Likewise.
29936         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
29937         and probably does not work.
29938
29939 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29940
29941         * lib/.cppi-disable: Add wcwidth.
29942         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
29943         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
29944         (ISGRAPH): Remove.  All uses changed to isgraph.
29945         (FOLD) [!defined _LIBC]: Remove special case.
29946         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
29947         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
29948         HAVE_ISBLANK.
29949         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
29950         case.
29951
29952 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
29953
29954         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
29955         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
29956         brackets.  Other minor changes to suppress some compiler
29957         warnings.
29958
29959 2006-07-06  Derek R. Price  <derek@ximbiot.com>
29960         and Paul Eggert  <eggert@cs.ucla.edu>
29961
29962         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
29963         of invoking obsolescent AC_HEADER_DIRENT macro.
29964         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29965         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
29966         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29968         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
29969         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
29970         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
29971         * m4/readdir.m4: Remove; no longer needed.
29972
29973 2006-07-06  Derek R. Price  <derek@ximbiot.com>
29974         and Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
29977         Don't worry about this obsolete case any more.
29978         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
29979         directories.
29980         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
29981         worry about this obsolete case any more.
29982         * lib/fts.c: Likewise.
29983         * lib/getcwd.c: Likewise.
29984         * lib/glob.h: Likewise.
29985         * lib/savedir.c: Likewise.
29986
29987 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29988
29989         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
29990         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
29991         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
29992         needed.
29993         All uses removed.
29994         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
29995         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
29996         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
29997         needed.
29998         * m4/getdate.m4 (gl_GETDATE): Likewise.
29999         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
30000         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
30001         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
30002         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
30003         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
30004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30005         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
30006         needed.
30007
30008 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30009
30010         * lib/memcasecmp.c: Include <limits.h>.
30011         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
30012         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
30013         Don't assume isdigit succeeds only on '0' through '9'.
30014
30015 2006-07-05  Eric Blake  <ebb9@byu.net>
30016
30017         * modules/getaddrinfo (Depends-on): Add snprintf.
30018
30019 2006-07-05  Eric Blake  <ebb9@byu.net>
30020
30021         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
30022         to avoid 'header present but could not be compiled' on cygwin.
30023
30024 2006-07-05  Eric Blake  <ebb9@byu.net>
30025
30026         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
30027         missing from netdb.h.
30028         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
30029
30030 2006-07-05  Derek R. Price  <derek@ximbiot.com>
30031
30032         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
30033         no longer needed.
30034         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
30035         * m4/getdate.m4 (gl_GETDATE): Likewise.
30036         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
30037         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
30038         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
30039         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
30040         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30041
30042 2006-07-05  Derek R. Price  <derek@ximbiot.com>
30043
30044         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
30045         All uses of is_space replaced by isspace.
30046         * lib/exit.h: Don't talk about STDC_HEADERS.
30047         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
30048         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
30049         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
30050         replaced by isprint etc.
30051         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
30052         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
30053         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
30054         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
30055         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
30056         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
30057
30058 2006-07-05  Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
30061         the function exists, before testing against AIX.
30062         Reported by Martin Lambers <marlam@marlam.de>.
30063
30064 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30065
30066         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
30067         From Mark D. Baushke.
30068
30069 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30070
30071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
30072         to the absolute name, not just one, to bypass Sun C 5.8's
30073         "warning: #include of /usr/include/... may be non-portable".
30074
30075 2006-07-04  Eric Blake  <ebb9@byu.net>
30076
30077         * modules/dirname-tests: New test module.
30078         * tests/test-dirname.c: New file, replacing dirname.c
30079         TEST_DIRNAME section that was recently deleted.
30080
30081 2006-07-04  Bruno Haible  <bruno@clisp.org>
30082
30083         Assume ANSI C header files and <ctype.h> functions.
30084         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
30085         (mbsnwidth): Use isprint, iscntrl instead.
30086
30087 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30088
30089         Merge from coreutils.
30090         * MODULES.html.sh: Add xstrtold.
30091         * modules/xstrtold: New file.
30092         * modules/cycle-check (Files): Add lib/same-inode.h.
30093         * modules/dirname (Files): Add m4/double-slash-root.m4.
30094         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
30095         * modules/mkdir-p (Files): Add lib/same-inode.h.
30096         * modules/same (Files): Add lib/same-inode.h.
30097
30098 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30099
30100         * m4/absolute-header.m4: Renamed from full-header-path.m4.
30101         This is to keep the terminology clean; POSIX talks about
30102         "absolute pathnames", not "full pathnames", but the GNU
30103         Coding Standards say to use "path" for something else;
30104         so use "absolute" to keep both sides happy.
30105         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
30106         Set gl_absolute_header, not gl_full_header_path.
30107         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
30108         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
30109         All uses changed.
30110
30111         Merge from coreutils.
30112
30113         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30114
30115         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
30116         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
30117         want to require the building of c-strtod.o.
30118         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
30119         needs -lm directly.
30120         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
30121
30122         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
30123
30124         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
30125         --as-needed option if available.  Problem reported by Albert Chin in
30126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
30127         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
30128         cc merely issues a bunch of annoying warnings for --as-needed
30129         (this problem was reported by Bob Proulx).  Also, try linking with
30130         -lm to detect a bug in binutils 2.16 (this problem was reported
30131         by Ralf Wildenhues).
30132
30133         2006-06-18  Jim Meyering  <jim@meyering.net>
30134
30135         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
30136         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
30137         macro.
30138         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
30139         also check for glibc-2.4's abort-inducing bug.
30140
30141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
30142         Low-probability clean-up should be to use rmdir to get rid of
30143         the just-created directory, not unlink.
30144
30145         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
30146         configure fail, and request a bug report to inform us about it.
30147         Add a comment that, barring reports to the contrary, in 2007 we'll
30148         assume ftruncate is universally available.
30149
30150         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30151
30152         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
30153
30154         2006-03-12  Jim Meyering  <jim@meyering.net>
30155
30156         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
30157         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
30158         * m4/same.m4 (gl_SAME): Likewise.
30159         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
30160
30161         2006-03-11  Eric Blake  <ebb9@byu.net>
30162
30163         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
30164         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
30165         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
30166         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
30167
30168 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
30169
30170         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
30171         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
30172         reported by Mark D. Baushke, one in
30173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
30174
30175         Merge from coreutils.
30176
30177         * lib/.cppi-disable: Add stdint_.h.
30178         * lib/.cvsignore: Add stdint.h.
30179
30180         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30181
30182         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
30183         both double and long double versions.
30184         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
30185         * lib/xstrtold.c: New file.
30186         * lib/xstrtod.h (xstrtold): New decl.
30187
30188         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
30189
30190         * lib/filemode.c (setst): Remove.
30191         (strmode): Rewrite to avoid setst.  This makes the code shorter,
30192         (arguably) clearer, and the generated code is a bit smaller on my
30193         Debian GNU/Linux stable x86 host.
30194
30195         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30196
30197         * lib/filemode.c: Include "filemode.h" first, to test the interface.
30198         Assume that filemode.h includes sys/types.h and sys/stat.h.
30199         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
30200         (ftypelet): Reorder to put common cases first, for efficiency.
30201         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
30202         to do 'M'.
30203         (strmode): Renamed from mode_string, and now stores 12 bytes instead
30204         of 10, for compatibility with FreeBSD.  All callers changed.
30205         (filemodestring): Now stores 12 bytes instead of 10, and sets file
30206         types that can't be deduced solely from st_mode.  First arg is now a
30207         const pointer.
30208         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
30209         (strmode): Renamed from mode_string.
30210         (filemodestring): New decl.
30211         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
30212         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
30213         needed.
30214         (S_ISPORT, S_ISWHT): New macros, if not already defined.
30215
30216         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30217
30218         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
30219         fsusage.h now does that.  Include fsusage.h first, to test interface.
30220         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
30221         at most one method (the old code could have generated decls that
30222         didn't conform to C89, not that this was ever exercised).
30223         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
30224
30225         2006-03-19  Jim Meyering  <jim@meyering.net>
30226
30227         Work even in a chroot where d_ino values for entries in "/"
30228         don't match the stat.st_ino values for the same names.
30229         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
30230         number, iterate through all entries again, using lstat instead.
30231         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
30232         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
30233
30234         * lib/getcwd.c (__getcwd): Clarify a comment.
30235         Use memcpy in place of a call to strcpy.
30236
30237         2006-03-12  Jim Meyering  <jim@meyering.net>
30238
30239         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
30240         matches that of the current directory (which we're about to chdir ".."
30241         out of), then save the dev-ino of the parent, instead.
30242
30243         * lib/same-inode.h (SAME_INODE): New file/macro.
30244         * lib/chdir-safer.c (SAME_INODE): Remove definition.
30245         Include "same-inode.h", instead.
30246         * lib/same.c: Likewise.
30247         * lib/cycle-check.h: Include "same-inode.h".
30248         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
30249         * lib/cycle-check.c (SAME_INODE): Remove definition.
30250         * lib/root-dev-ino.h: Include "same-inode.h".
30251
30252         2006-03-11  Eric Blake  <ebb9@byu.net>
30253
30254         * lib/same.c (same_name): s/base_name/last_component/
30255         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
30256         * lib/filenamecat.c (file_name_concat): Likewise.
30257
30258         2006-03-11  Eric Blake  <ebb9@byu.net>,
30259                     Paul Eggert  <eggert@cs.ucla.edu>
30260
30261         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
30262         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
30263         drive prefix.
30264         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
30265         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
30266         (last_component): New method.
30267         * lib/dirname.c (dir_len): Determine when drive letters need a
30268         subsequent slash.  Preserve // when it is special.
30269         (dir_name): Don't append dot when drive letter is absolute.
30270         [TEST_DIRNAME]: Move into a full-blown gnulib test.
30271         * lib/basename.c (base_name): New semantics - malloc the result.
30272         Preserve // when it is special.  Preserve relative files that look
30273         like drive letters.
30274         (base_len): Preserve // when it is special.
30275         (last_component): New method, similar to old base_name semantics.
30276         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
30277         base_name.  Strip redundant slashes from ///.
30278
30279 2006-07-03  Jim Meyering  <jim@meyering.net>
30280
30281         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
30282         macro is used before the first cycle_check call.
30283
30284 2006-07-03  Eric Blake  <ebb9@byu.net>
30285
30286         * modules/dirname (Depends-on): Add xstrndup.
30287
30288 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
30289
30290         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
30291         test cases, so that config.log is a bit easier to follow.
30292
30293 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
30294
30295         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
30296         both are 64 bits, since this seems to be the tradition, and this
30297         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
30298         we ever run into a host that prefers long long to long in this
30299         case, we'll need another configure-time test.  Problem reported by
30300         Jim Meyering.
30301
30302 2006-07-02  Eric Blake  <ebb9@byu.net>
30303
30304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
30305
30306 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30307
30308         * modules/inttypes (Depends-on): No longer depends on stdint.
30309         * modules/stdint (Description): Say more about assumptions.
30310         Say that the fast types might differ.  Say macros are used.
30311         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
30312         (Makefile.am): Revise list of substituted symbols to match
30313         new stdint.m4.
30314         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
30315         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
30316         * tests/test-stdint.c (verify_same_types)
30317         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
30318         the code conforms to C99/C89.
30319         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
30320         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
30321
30322 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30323
30324         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
30325         but fix a bug, by requiring at least 64 bits.
30326         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30327         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
30328         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
30329         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
30330
30331         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
30332         changes.  Make 2.59 a prerequisite.  Check and substitute for
30333         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
30334         inttypes.h.  Do not use special include files; just use the
30335         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
30336         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
30337         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
30338         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
30339         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
30340         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
30341         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
30342         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
30343         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
30344         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
30345         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
30346         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
30347         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
30348         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
30349         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
30350         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
30351         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
30352         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
30353         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
30354         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
30355         WINT_MAX.  Check for C99 conformance more strictly, by detecting
30356         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
30357         not check for things that C99 does not require, e.g., int8_t.  If
30358         a test isn't needed unless <stdint.h> isn't working, and is
30359         unlikely to be needed for any other reason, then don't do it
30360         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
30361         size_t, since we assume C89 freestanding at least.  Do not check
30362         for sig_atomic_t, wchar_t, or wint_t, since the code now does
30363         the right thing even if the types are not defined.  Instead use:
30364         (gl_STDINT_TYPE_PROPERTIES): New macro.
30365         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
30366         testing whether <sys/types.h> clashes, as Autoconf does this for
30367         us now.  All uses removed.
30368         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
30369         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
30370         (gl_CHECK_TYPE_SAME):
30371         Remove; no longer needed.
30372         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
30373         exists, since we'll return 0 anyway in that case.
30374         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
30375
30376 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
30377
30378         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
30379         possible collision with system files.
30380         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
30381         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
30382         WCHAR_MIN and WCHAR_MAX in this case.
30383         (<stddef.h>): Do not include; no longer needed.
30384         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
30385         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
30386         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
30387         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
30388         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
30389         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
30390         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
30391         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
30392         !defined(__c99))]: Include in this case too, since it's harmless
30393         now.
30394         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
30395         dangerous to do so.
30396         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
30397         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
30398         (_STDINT_MIN, _STDINT_MAX): New macros.
30399         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
30400         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
30401         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
30402         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
30403         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
30404         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
30405         macros, not typedefs; this simplifies things quite a bit.
30406         Use long int for all types narrower than int64_t.
30407         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
30408         Define in terms of long long int or int64_t or long int,
30409         not int64_t or int32_t.  This saves some compile-time testing.
30410         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
30411         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
30412         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
30413         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
30414         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
30415         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
30416         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
30417         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
30418         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
30419         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
30420         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
30421         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
30422         undef any previous version and define our own version, for
30423         simplicity and consistency with the new macros for types.
30424         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
30425         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
30426         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
30427         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
30428         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
30429         @WINT_T_SUFFIX@ to keep things simple here.
30430         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
30431         Simplify by assuming typical 8/16/32/64 host, since we're
30432         already doing that elsewhere anyway.
30433         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
30434         and assume long long int is 64 bits if available.  This
30435         speeds up 'configure'.
30436
30437 2006-07-01  Eric Blake  <ebb9@byu.net>
30438
30439         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
30440         Reported by Andreas Buening.
30441
30442 2006-07-01  Eric Blake  <ebb9@byu.net>
30443
30444         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
30445
30446 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
30447
30448         * lib/getaddrinfo.c: fixed typo
30449
30450 2006-06-29  Jim Meyering  <jim@meyering.net>
30451
30452         * modules/strftime (Maintainer): Add my name, since with the
30453         FPRINTFTIME changes strftime.c has forked from glibc.
30454
30455 2006-06-29  Eric Blake  <ebb9@byu.net>
30456
30457         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
30458
30459 2006-06-29  Eric Blake  <ebb9@byu.net>
30460
30461         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
30462
30463 2006-06-29  Eric Blake  <ebb9@byu.net>
30464
30465         * lib/stat_.h: New file.
30466
30467 2006-06-29  Eric Blake  <ebb9@byu.net>
30468
30469         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
30470         unused static function.
30471
30472 2006-06-29  Eric Blake  <ebb9@byu.net>
30473
30474         * doc/functions.texi (Function Portability): Document missing lstat
30475         on mingw.
30476
30477 2006-06-29  Eric Blake  <ebb9@byu.net>
30478
30479         * MODULES.html.sh: Add sys_stat.
30480         * modules/sys_stat: New module.
30481         * modules/mkstemp (Depends-on): Add sys_stat.
30482
30483 2006-06-29  Derek R. Price  <derek@ximbiot.com>
30484
30485         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
30486
30487 2006-06-29  Derek R. Price  <derek@ximbiot.com>
30488
30489         * m4/c-bs-a.m4: Removed.
30490
30491 2006-06-29  Derek R. Price  <derek@ximbiot.com>
30492
30493         * lib/strftime.c: Assume strftime() exists.
30494
30495 2006-06-29  Derek Price  <derek@ximbiot.com>
30496
30497         * modules/c-bs-a: Removed - \a is C89.
30498         * MODULES.html.sh: Remove c-bs-a.
30499
30500 2006-06-29  Bruno Haible  <bruno@clisp.org>
30501
30502         * modules/wcwidth (License): Change to LGPL.
30503
30504 2006-06-28  Simon Josefsson  <jas@extundo.com>
30505
30506         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
30507         on _WIN32.
30508
30509         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
30510         getnameinfo.
30511
30512 2006-06-28  Simon Josefsson  <jas@extundo.com>
30513
30514         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
30515
30516 2006-06-28  Simon Josefsson  <jas@extundo.com>
30517
30518         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
30519         functions there.  It will succeed on Windows XP, but on Windows
30520         2000 and (presumably) earlier, it will fail, and use the internal
30521         re-implementation.
30522         (use_win32_p): New function.
30523         (getaddrinfo): Use strtoul on servname, to support numeric ports.
30524         Support AI_NUMERICSERV to disable getservbyname.
30525         (getnameinfo): New function, only supports
30526         NI_NUMERICHOST|NI_NUMERICSERV for now.
30527
30528         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
30529         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
30530         getnameinfo.
30531
30532 2006-06-28  Eric Blake  <ebb9@byu.net>
30533
30534         * modules/wcwidth: New file.
30535         * modules/mbchar (Depends-on): Add wcwidth.
30536         * modules/mbswidth (Depends-on): Add wcwidth.
30537         * MODULES.html.sh: Add wcwidth.
30538
30539 2006-06-28  Eric Blake  <ebb9@byu.net>
30540
30541         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
30542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
30543
30544 2006-06-28  Eric Blake  <ebb9@byu.net>
30545
30546         * lib/xvasprintf.h: Fix comments.
30547
30548 2006-06-28  Eric Blake  <ebb9@byu.net>
30549
30550         * lib/mbchar.h (wcwidth): Include wcwidth.h.
30551         * lib/mbswidth.c (wcwidth): Move from here...
30552         * lib/wcwidth.h: ...to this new file.
30553
30554 2006-06-28  Derek R. Price  <derek@ximbiot.com>
30555
30556         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
30557
30558         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
30559         it's obsolete.
30560         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
30561
30562 2006-06-28  Derek R. Price  <derek@ximbiot.com>
30563
30564         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
30565         Autoconf 2.60 says this stuff was obsolete.
30566
30567 2006-06-28  Bruno Haible  <bruno@clisp.org>
30568
30569         * modules/wcwidth (Files): Add m4/wchar_t.m4.
30570
30571 2006-06-28  Bruno Haible  <bruno@clisp.org>
30572
30573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
30574         gt_TYPE_WCHAR_T.
30575
30576 2006-06-28  Bruno Haible  <bruno@clisp.org>
30577
30578         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
30579         declaration for wcwidth.
30580         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
30581
30582 2006-06-28  Bruno Haible  <bruno@clisp.org>
30583
30584         * lib/mkdtemp.c [MINGW]: Include <io.h>.
30585         (mkdir): Define using _mkdir.
30586
30587 2006-06-28  Bruno Haible  <bruno@clisp.org>
30588
30589         * lib/getaddrinfo.h: Fix POSIX URL.
30590         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
30591         _WIN32.
30592         (use_win32_p): Make static.
30593         (getaddrinfo): Reject service name if it is empty or does not consist
30594         solely of decimal digits, or if its value is > 65535.
30595         (getnameinfo): Remove useless casts.
30596
30597 2006-06-27  Simon Josefsson  <jas@extundo.com>
30598
30599         * modules/sys_select: New file, suggested by Bruno Haible, Paul
30600         Eggert and Martin Lambers.
30601
30602 2006-06-27  Simon Josefsson  <jas@extundo.com>
30603
30604         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
30605         Eggert and Martin Lambers.
30606
30607 2006-06-27  Bruno Haible  <bruno@clisp.org>
30608
30609         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
30610         result to 0, not to empty.
30611         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
30612
30613 2006-06-27  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
30616
30617 2006-06-26  Simon Josefsson  <jas@extundo.com>
30618
30619         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
30620         present.
30621
30622 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
30623
30624         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
30625         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
30626         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
30627
30628 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
30629
30630         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
30631
30632 2006-06-26  Bruno Haible  <bruno@clisp.org>
30633
30634         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
30635
30636 2006-06-26  Bruno Haible  <bruno@clisp.org>
30637
30638         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
30639
30640 2006-06-26  Bruno Haible  <bruno@clisp.org>
30641
30642         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
30643         SGI C compiler in pre-C99 mode.
30644         Suggested by Mark D. Baushke and Larry Jones.
30645
30646 2006-06-26  Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
30649         WCHAR_MAX.
30650         Reported by Mark D. Baushke and Larry Jones.
30651
30652 2006-06-26  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
30655         in pre-C99 mode.
30656         Suggested by Mark D. Baushke and Larry Jones.
30657
30658 2006-06-23  Simon Josefsson  <jas@extundo.com>
30659             Bruno Haible  <bruno@clisp.org>
30660
30661         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
30662         Emit mostlyclean-local rule.
30663         (func_emit_tests_Makefile_am): Likewise.
30664         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
30665
30666 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
30667
30668         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
30669
30670 2006-06-23  Bruno Haible  <bruno@clisp.org>
30671
30672         * tests/test-stdint.c: Update to match ISO C 99 Technical
30673         Corrigendum 1.
30674
30675 2006-06-23  Bruno Haible  <bruno@clisp.org>
30676
30677         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
30678
30679 2006-06-23  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/stdint_.h: Treat IRIX like OpenBSD.
30682
30683 2006-06-23  Bruno Haible  <bruno@clisp.org>
30684
30685         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
30686         ISO C 99 Technical Corrigendum 1.
30687
30688 2006-06-22  Simon Josefsson  <jas@extundo.com>
30689
30690         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
30691         MinGW.
30692
30693 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
30694
30695         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
30696         needed.  Some compiler complained about some of them.  Problem reported
30697         by Larry Jones in
30698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
30699
30700 2006-06-21  Simon Josefsson  <jas@extundo.com>
30701
30702         * tests/test-getaddrinfo.c: New file.
30703
30704         * modules/getaddrinfo-tests: New file.
30705
30706         * MODULES.html.sh: Add inet_pton.
30707
30708         * modules/inet_pton: New file.
30709
30710 2006-06-21  Simon Josefsson  <jas@extundo.com>
30711
30712         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
30713         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
30714         of using the (limited) gnulib implementation on Windows XP.
30715
30716         * m4/inet_pton.m4: New file.
30717
30718 2006-06-21  Simon Josefsson  <jas@extundo.com>
30719
30720         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
30721         variable.
30722
30723         * lib/socket_.h: Don't define WINVER.
30724
30725         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
30726         slightly modified to work in gnulib.
30727
30728 2006-06-21  Simon Josefsson  <jas@extundo.com>
30729
30730         * doc/gnulib.texi (Windows sockets): Add.
30731
30732 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30733
30734         * lib/read-file.c (fread_file): Start with buffer allocation of
30735         0 bytes rather than 1 byte; this simplifies the code.
30736         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
30737         code to free buffer and save/restore errno.
30738         (internal_read_file): Remove unused local.
30739
30740 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30741
30742         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
30743         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
30744         Problem reported by Denis Excoffier in
30745         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
30746
30747 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30748
30749         * modules/sys_socket, modules/socklen: Include sys/types since
30750         FreeBSD 4.x's sys/socket.h needs it.
30751
30752 2006-06-19  Simon Josefsson  <jas@extundo.com>
30753
30754         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
30755
30756 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
30757
30758         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
30759
30760 2006-06-19  Bruno Haible  <bruno@clisp.org>
30761
30762         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
30763         and FULL_PATH_INTTYPES_H in angle brackets.
30764         Reported by Mark D. Baushke <mdb@gnu.org>.
30765
30766 2006-06-17  Eric Blake  <ebb9@byu.net>
30767
30768         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
30769         errno.
30770
30771 2006-06-17  Bruno Haible  <bruno@clisp.org>
30772
30773         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
30774         <sys/inttypes.h>.
30775
30776 2006-06-17  Bruno Haible  <bruno@clisp.org>
30777
30778         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
30779         whether errno is declared. Assume <errno.h> declares errno.
30780
30781 2006-06-17  Bruno Haible  <bruno@clisp.org>
30782
30783         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
30784
30785 2006-06-17  Bruno Haible  <bruno@clisp.org>
30786
30787         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
30788         problem on Solaris 2.5.1.
30789
30790 2006-06-16  Eric Blake  <ebb9@byu.net>
30791
30792         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
30793         * lib/unicodeio.c [!defined errno]: Likewise.
30794         * lib/strtol.c [!defined errno]: Likewise.
30795         * lib/strtod.c [!defined errno]: Likewise.
30796
30797 2006-06-15  Eric Blake  <ebb9@byu.net>
30798
30799         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
30800
30801 2006-06-15  Eric Blake  <ebb9@byu.net>
30802
30803         * config/srclist.txt (ssize_t.m4): Lose sync.
30804
30805 2006-06-15  Bruno Haible  <bruno@clisp.org>
30806
30807         * modules/stdint (Files): Include m4/full-header-path.m4,
30808         m4/size_max.m4, m4/wchar_t.m4.
30809         (Makefile.am): Many more substitutions.
30810         * modules/stdint-tests: New file.
30811         * tests/test-stdint.c: New file.
30812
30813 2006-06-15  Bruno Haible  <bruno@clisp.org>
30814
30815         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
30816         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
30817         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
30818         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
30819         gl_CHECK_TYPE_SAME): New macros.
30820
30821 2006-06-15  Bruno Haible  <bruno@clisp.org>
30822
30823         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
30824
30825 2006-06-15  Bruno Haible  <bruno@clisp.org>
30826
30827         * lib/stdint_.h: Rewritten to be fully auto-configured.
30828         Fixes bug on HP-UX/IA64.
30829
30830 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30831
30832         * lib/getdate.y (__attribute__): Don't define if already defined.
30833         Problem reported by Larry Jones.
30834         * lib/utimens.c (__attribute__): Likewise.
30835
30836 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
30837
30838         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
30839         reported by Andreas Schwab.
30840
30841 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30842             Bruno Haible  <bruno@clisp.org>
30843
30844         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
30845         check for the declaration of strnlen and a run test that exposes the
30846         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
30847         rpl_strndup.
30848
30849 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30850             Bruno Haible  <bruno@clisp.org>
30851
30852         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
30853
30854 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30855
30856         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
30857         compile test, for Tru64 4.0D.
30858
30859 2006-05-28  Karl Berry  <karl@gnu.org>
30860
30861         * config/srclist.txt (printf-args.c): lose sync.
30862
30863 2006-05-26  Martin Lambers  <marlam@marlam.de>
30864
30865         * lib/getpass.c: Updates the test for the native W32 API, and adds
30866         missing includes, thus fixing compilation warnings.
30867
30868 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30869
30870         * lib/exclude.c (exclude_fnmatch): New function.
30871         (excluded_file_name): Call exclude_fnmatch.
30872         * lib/exclude.h (excluded_file_name): New prototype
30873
30874 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
30875
30876         * lib/tempname.c (small_open, large_open): New macros.
30877         (__open, __open64) [!_LIBC]: Remove.
30878         (__gen_tempname): Use small_open and large_open instead of __open
30879         and __open64.  This fixes a portability bug on HP-UX 11.11i
30880         reported by Simon Wing-Tang in
30881         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
30882
30883 2006-05-24  Bruno Haible  <bruno@clisp.org>
30884
30885         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
30886         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
30887         Reported by Thorsten Maerz <torte@netztorte.de> via
30888         Aaron Stone <aaron@serendipity.cx>.
30889
30890 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30891
30892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
30893         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
30894         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
30895         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
30896         not really conditional on the cache.
30897         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
30898
30899 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30900
30901         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
30902         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
30903         (my_usleep): Don't mishandle maximum value.
30904
30905 2006-05-19  Jim Meyering  <jim@meyering.net>
30906
30907         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
30908
30909 2006-05-17  Bruno Haible  <bruno@clisp.org>
30910
30911         Cygwin portability.
30912         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
30913
30914 2006-05-17  Bruno Haible  <bruno@clisp.org>
30915
30916         * lib/stdint_.h: Fix recognition of Cygwin.
30917
30918 2006-05-15  Bruno Haible  <bruno@clisp.org>
30919
30920         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
30921         on libtool patch by Ralf Wildenhues.
30922
30923 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30924
30925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
30926         test for C99 conformance; (bool) 0.5 is an integer constant
30927         expression, but (bool) -0.5 is not.  Problem reported by Fedor
30928         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
30929
30930 2006-05-11  Simon Josefsson  <jas@extundo.com>
30931
30932         * m4/xvasprintf.m4: Fix obvious typo.
30933
30934 2006-05-11  Jim Meyering  <jim@meyering.net>
30935
30936         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
30937         James Lemley.
30938
30939 2006-05-10  Simon Josefsson  <jas@extundo.com>
30940
30941         * lib/md4.c: Typo fix, update copyright years.
30942         (K1, K2): Don't use L because it turn computations into 64-bit on
30943         64-bit platforms.
30944
30945 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
30946
30947         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
30948         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
30949         unwanted sign propagation, e.g., on hosts with 64-bit int.
30950         There still are some problems with reeelly weird theoretical hosts
30951         (e.g., 33-bit int) but it's not worth worrying about now.
30952         * lib/sha1.c (rol): Likewise.
30953         (K1, K2, K3, K4): Remove unnecessary L suffix.
30954
30955 2006-05-10  Bruno Haible  <bruno@clisp.org>
30956
30957         * lib/des.c: Cast to avoid warnings.
30958
30959 2006-05-09  Bruno Haible  <bruno@clisp.org>
30960
30961         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
30962         (Depends-on): Depend also on xsize, stdarg.
30963         (configure.ac): Add gl_XVASPRINTF.
30964
30965 2006-05-09  Bruno Haible  <bruno@clisp.org>
30966
30967         * m4/xvasprintf.m4: New file.
30968
30969 2006-05-09  Bruno Haible  <bruno@clisp.org>
30970
30971         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
30972         (EOVERFLOW): Define fallback value.
30973         (xstrcat): New function.
30974         (xvasprintf): Recognize the special case of a string concatenation.
30975
30976 2006-05-08  Eric Blake  <ebb9@byu.net>
30977
30978         * gnulib-tool (func_version): Base copyright year on CVS date.
30979         (func_emit_copyright_notice): New function.
30980         (func_emit_lib_Makefile_am): Use it.
30981         (func_emit_tests_Makefile_am): Likewise.
30982         (func_import): Likewise.
30983
30984 2006-05-08  Bruno Haible  <bruno@clisp.org>
30985
30986         * modules/stdarg: New file.
30987         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
30988
30989 2006-05-08  Bruno Haible  <bruno@clisp.org>
30990
30991         * m4/stdarg.m4: New file, from GNU gettext.
30992
30993 2006-05-08  Bruno Haible  <bruno@clisp.org>
30994
30995         * config/srclist.txt (build-aux/config.rpath): different from latest
30996         release.
30997
30998 2006-05-08  Bruno Haible  <bruno@clisp.org>
30999
31000         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
31001
31002 2006-05-05  Jim Meyering  <jim@meyering.net>
31003
31004         * m4/warning.m4: New file, derived from bison's file by the same name.
31005
31006 2006-05-03  Bruno Haible  <bruno@clisp.org>
31007
31008         * lib/stdint_.h: Shorter URL.
31009         * lib/inttypes.h: Likewise.
31010
31011 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31012
31013         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
31014
31015 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31016
31017         * lib/verify.h: Document the internals better.  Most of this change
31018         was written by Bruno Haible.
31019
31020 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31021
31022         * doc/verify.texi: New file, partly based on a proposal by
31023         Bruno Haible.
31024
31025 2006-05-02  Bruno Haible  <bruno@clisp.org>
31026
31027         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
31028         test from here...
31029         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
31030
31031 2006-04-29  Bruno Haible  <bruno@clisp.org>
31032
31033         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
31034         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
31035
31036 2006-04-29  Bruno Haible  <bruno@clisp.org>
31037
31038         * gnulib-tool: Make --update option actually work.
31039
31040 2006-04-29  Bruno Haible  <bruno@clisp.org>
31041
31042         * doc/gcd.texi: New file.
31043         * doc/gnulib.texi: Include it.
31044
31045 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31046
31047         * lib/getdate.y (get_date): When adding relative date, start with the
31048         initial time, not with the result of the first mktime call.
31049
31050 2006-04-25  Bruno Haible  <bruno@clisp.org>
31051
31052         * gnulib-tool (func_import): Output the include directives in three
31053         blocks, sorted separately.
31054         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31055
31056 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31057
31058         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
31059         to define main with arguments, for C++.  Reported by Eric Blake.
31060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
31061         Prefer 'int main ()' to 'int main (void)', for C++.
31062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
31064         for 'main', for C99 and C++.
31065
31066 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31067
31068         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
31069         Don't assume that exit status -1 is valid.
31070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31071         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31072         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31073         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
31074         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
31075         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
31076         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
31077         functions can be used without declaring them, or that you can
31078         exit with status -1.
31079         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31080
31081 2006-04-24  Karl Berry  <karl@gnu.org>
31082
31083         * config/srclist.txt (longdouble.m4): sync lost.
31084
31085 2006-04-24  Eric Blake  <ebb9@byu.net>
31086
31087         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
31088
31089 2006-04-24  Bruno Haible  <bruno@clisp.org>
31090
31091         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
31092         poll() implementation in AIX.
31093         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31094
31095 2006-04-24  Bruno Haible  <bruno@clisp.org>
31096
31097         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
31098         assigned exactly once.
31099
31100 2006-04-23  Claudio Fontana  <claudio@gnu.org>
31101             Bruno Haible  <bruno@clisp.org>
31102
31103         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
31104         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
31105         for AM_CPPFLAGS.
31106
31107 2006-04-23  Bruno Haible  <bruno@clisp.org>
31108
31109         * modules/copy-file: Depend on unistd.
31110         * modules/execute: Likewise.
31111         * modules/fatal-signal: Likewise.
31112         * modules/findprog: Likewise.
31113         * modules/mkdtemp : Likewise.
31114         * modules/pipe: Likewise.
31115         * modules/wait-process: Likewise.
31116
31117 2006-04-23  Bruno Haible  <bruno@clisp.org>
31118
31119         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
31120         condition was already detected.
31121         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31122
31123 2006-04-23  Bruno Haible  <bruno@clisp.org>
31124
31125         * lib/copy-file.c: Include <unistd.h> unconditionally.
31126         * lib/execute.c: Likewise.
31127         * lib/fatal-signal.c: Likewise.
31128         * lib/findprog.c: Likewise.
31129         * lib/mkdtemp.c: Likewise.
31130         * lib/pipe.h: Likewise.
31131         * lib/pipe.c: Likewise.
31132         * lib/wait-process.h: Likewise.
31133
31134 2006-04-23  Bruno Haible  <bruno@clisp.org>
31135
31136         * gnulib-tool (func_usage): Fix --import description. Document
31137         --update.
31138         (func_import): Create temporary file in a temporary directory, if
31139         --dry-run is specified. Silence errors from 'grep' when there are no
31140         m4 files in $m4dir.
31141         (func_create_testdir): Silence errors from 'grep' when there are no
31142         m4 files in $m4dir.
31143         Reported by Karl Berry <karl@freefriends.org>.
31144
31145 2006-04-20  Bruno Haible  <bruno@clisp.org>
31146
31147         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
31148         one argument, so that the code will be portable to Autoconf 2.60.
31149         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
31150         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31151         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
31152
31153 2006-04-19  Derek Price  <derek@ximbiot.com>
31154             Eric Blake  <ebb9@byu.net>
31155
31156         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
31157         rather than "/full/path.h".  Update comment to match.  Shorten &
31158         generalize m4_translit call via AS_TR_CPP.
31159
31160 2006-04-19  Derek Price  <derek@ximbiot.com>
31161             Eric Blake  <ebb9@byu.net>
31162
31163         * lib/inttypes.h: Correct grammar in comment.
31164
31165 2006-04-18  Derek Price  <derek@ximbiot.com>
31166             Paul Eggert  <eggert@cs.ucla.edu>
31167
31168         * modules/inttypes: New file.
31169         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
31170
31171 2006-04-18  Derek Price  <derek@ximbiot.com>
31172             Paul Eggert  <eggert@cs.ucla.edu>
31173
31174         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
31175         New files.
31176
31177 2006-04-18  Derek Price  <derek@ximbiot.com>
31178             Paul Eggert  <eggert@cs.ucla.edu>
31179
31180         * lib/inttypes.h: New file.
31181         * lib/strtoimax.c: Assume <inttypes.h>.
31182
31183 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
31184
31185         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
31186         isn't mounted.  Problem reported by Kir Kolyshkin.
31187
31188 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31189
31190         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
31191         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
31192         Derek R. Price.
31193         * lib/regex.h (RE_DUP_MAX): Update comment to match current
31194         implementation.
31195
31196 2006-04-12  Eric Blake  <ebb9@byu.net>
31197
31198         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
31199         is now done automatically by the corresponding Autoconf macro.
31200
31201 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
31202
31203         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
31204         time_r.h.
31205
31206 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31207
31208         Merge regex changes from libc, removing some of our
31209         POSIX-conformance changes that were rejected and redoing them in a
31210         less-intrusive way.
31211
31212         * lib/regcomp.c (re_compile_internal, init_dfa):
31213         Length arg is now size_t, not Idx.  All uses changed.
31214         (peek_token): Forward decl now says internal_function.
31215         (__re_error_msgid, __re_error_msgid_idx):
31216         Now static rather than extern with attribute_hidden.
31217         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
31218         For some reason libc prefers K&R style defns for external functions.
31219         (regerror) [!defined _LIBC]: Likewise.
31220         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
31221         (seek_collating_symbol_entry, lookup_collation_sequence_value):
31222         (build_range_exp, build_collating_symbol):
31223         Use K&R-style defn.
31224         (re_compile_fastmap): Use '\0' to memset, not 0.
31225         (utf8_sb_map): Make the calculations more obvious.
31226         (init_dfa, parse_bracket_exp, build_charclass_op):
31227         Call calloc and cast result, as glibc does.
31228         (init_word_char, fetch_token, peek_token, peek_token_bracket):
31229         (build_range_exp, build_collating_symbol):
31230         Now internal functions.
31231
31232         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
31233
31234         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
31235         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
31236         Don't depend on VMS; depend on __VMS instead, for POSIX
31237         namespace cleanness.
31238         (regoff_t): Define to ssize_t, not long int.
31239
31240         Remove the REG_ macros named below.  Instead, make the old names
31241         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
31242         __USE_GNU_REGEX.
31243         (REG_BACKSLASH_ESCAPE_IN_LISTS):
31244         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
31245         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
31246         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
31247         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
31248         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
31249         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
31250         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
31251         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
31252         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
31253         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
31254         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
31255         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
31256         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
31257         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
31258         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
31259         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
31260         (REG_NREGS):
31261         Remove.  All uses replaced by the old RE_* names.
31262         (RE_BACKSLASH_ESCAPE_IN_LISTS):
31263         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
31264         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
31265         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
31266         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
31267         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
31268         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
31269         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
31270         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
31271         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
31272         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
31273         Don't bother having these macros be independent of each others'
31274         values, since they no longer exist in the POSIX name space.
31275
31276         Rename the following member names back to their old names,
31277         unless !__USE_GNU_REGEX.  All uses changed back.
31278         (buffer): Renamed from re_buffer.
31279         (allocated): Renamed from re_allocated.
31280         (used): Renamed from re_used.
31281         (syntax): Renamed from re_syntax.
31282         (fastmap): Renamed from re_fastmap.
31283         (translate): Renamed from re_translate.
31284         (can_be_null): Renamed from re_can_be_null.
31285         (regs_allocated): Renamed from re_regs_allocated.
31286         (fastmap_accurate): Renamed from re_fastmap_accurate.
31287         (no_sub): Renamed from re_no_sub.
31288         (not_bol): Renamed from re_not_bol.
31289         (not_eol): Renamed from re_not_eol.
31290         (newline_anchor): Renamed from re_newline_anchor.
31291         (num_regs): Renamed from rm_num_regs.
31292         (start): Renamed from rm_start.
31293         (end): Renamed from rm_end.
31294
31295         (free_state): Move up a bit.
31296
31297         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
31298         #define to be empty.
31299         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
31300         when that is what is intended.
31301         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
31302         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
31303         (MAX): New macro.
31304         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
31305         All uses changed back to re_malloc, etc.  It's now the caller's
31306         responsibility to check for overflow; all callers changed.
31307         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
31308         (re_x2nrealloc): Remove.
31309         (free_state): Remove decl.
31310
31311         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
31312         (re_set_registers, re_exec):
31313         Use K&R-style defn.
31314
31315         2006-01-31  Roland McGrath  <roland@redhat.com>
31316
31317         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
31318         Reported by Mike Frysinger <vapier@gentoo.org>.
31319
31320         2006-01-15  Andreas Jaeger  <aj@suse.de>
31321
31322         [BZ #1950]
31323         * lib/regex_internal.c (re_string_reconstruct): Adjust for
31324         build_wcs_upper_buffer change.
31325         (build_wcs_upper_buffer): Change return type.
31326
31327         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
31328
31329         * lib/regex_internal.h: Include <stdint.h> if available.
31330
31331         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
31332
31333         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
31334
31335         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
31336
31337         * lib/regcomp.c: Adjust for changed secondary hash function.
31338
31339         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
31340
31341         * lib/regex.h: Pretty printing.
31342         Clean up namespace a bit.
31343
31344         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
31345
31346         * lib/regexec.c (update_cur_sifted_state, check_arrival,
31347         check_arrival_add_next_nodes): Avoid using uninitialized variable.
31348
31349         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31350                     Ulrich Drepper  <drepper@redhat.com>
31351
31352         [BZ #1302]
31353         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
31354         changed.
31355         (bitset_word_t): Renamed from bitset_word.  All uses changed.
31356
31357         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
31358
31359         [BZ #281]
31360         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
31361         * lib/regcomp.c: Remove unnecessary uses of
31362         unsigned RE_TRANSLATE_TYPE.
31363         * lib/regex_internal.h: Likewise.
31364         * lib/regex_internal.c: Likewise.
31365         * lib/regexec.c: Likewise.
31366         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
31367
31368         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
31369
31370         * lib/regexec.c (find_recover_state): Remove unnecessary
31371         initialization.
31372         (transit_state_bkref): Make DFA a const pointer.
31373         (get_subexp): Likewise.
31374         (check_arrival): Likewise.
31375         (update_cur_sifted_state): Likewise.
31376         (re_search_internal): Likewise.
31377         (prune_impossible_nodes): Likewise.
31378         (acquire_init_state_context): Likewise.
31379         (proceed_next_node): Likewise.
31380         (set_regs): Likewise.
31381         (free_fail_stack_return): Likewise.
31382         (check_arrival_expand_ecl): Mark DFA parameter as const.
31383         (check_arrival_expand_ecl_sub): Likewise.
31384         (check_subexp_limits): Likewise.
31385         (sub_epsilon_src_nodes):  Likewise.
31386         (add_epsilon_src_nodes):  Likewise.
31387         (merge_state_array): Likewise.
31388         (update_regs): Likewise.
31389         (build_trtable): Likewise.
31390         (sift_states_backward): Mark MCTX parameter as const.
31391         (build_sifted_states): Likewise.
31392         (update_cur_sifted_state): Likewise.
31393         (sift_states_mkref): Likewise.
31394         (check_arrival_expand_ecl): Mark eclosure as const.
31395         (check_dst_limits_calc_pos_1): Likewise.
31396         * lib/regex_internal.h (re_match_context_t): Make dfa a const
31397         pointer.
31398
31399         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
31400
31401         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
31402         (transit_state_sb): Likewise.
31403         (transit_state_mb): Likewise.
31404         (sift_states_iter_mb): Likewise.
31405         (check_arrival_add_next_nodes): Likewise.
31406         (check_node_accept_bytes): Change first parameter to pointer-to-const.
31407         [_LIBC] (re_search_2_stub): Use mempcpy.
31408
31409         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
31410         mbrtowc for very simple UTF-8 case.
31411
31412         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
31413         a pointer-to-const.
31414         (re_acquire_state_context): Likewise.
31415         * lib/regex_internal.h: Adjust prototypes.
31416
31417         * lib/regex.c: Prevent using C++ compilers.
31418
31419         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
31420         (re_acquire_state_context): Likewise.
31421
31422 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31423
31424         * modules/regex (Depends-on): Add ssize_t.
31425
31426 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31427
31428         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
31429         translation table.
31430
31431 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31432
31433         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
31434
31435 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
31436             Bruno Haible  <bruno@clisp.org>
31437
31438         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
31439         <sys/types.h> and <inttypes.h>.
31440
31441 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31442
31443         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
31444         `__error_t_defined', so argp.h will not typedef the former.
31445
31446 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31447
31448         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
31449         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
31450         glibc names.  Even if glibc is changed to conform to POSIX, the
31451         traditional names will be available anyway, since regex depends on
31452         the extensions module.  Also, fix a longstanding typo in the
31453         implementation of Spencer ERE test #75 from grep 2.3.  Problems
31454         reported by Emanuele Giaquinta.  Also, change sense of cached
31455         variable, so that the message makes sense.
31456
31457 2006-03-24  Simon Josefsson  <jas@extundo.com>
31458
31459         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
31460         including some doc fixes.
31461         (base64_encode_alloc): Fix +1 bug on allocation failures.
31462
31463 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31464
31465         * lib/base64.c (base64_encode): Do not read past end of array with
31466         unsanitized input on systems with CHAR_BIT > 8.
31467
31468 2006-03-24  Eric Blake  <ebb9@byu.net>
31469
31470         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
31471
31472 2006-03-22  Karl Berry  <karl@gnu.org>
31473
31474         * config/srclist.txt (*setenv.[ch]): get from coreutils.
31475         * config/srclistvars.sh (COREUTILS): new var.
31476
31477 2006-03-17  Jim Meyering  <jim@meyering.net>
31478
31479         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
31480         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
31481
31482 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
31483
31484         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
31485         no longer needs it.  Instead, check that regoff_t is as least
31486         as wide as ptrdiff_t.
31487
31488         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
31489         so that our regex.h stays compatible with the installed regex.
31490         This is helpful for installers who configure --without-included-regex.
31491         Problem reported by Emanuele Giaquinta.
31492
31493 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
31494
31495         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
31496         Typedef to long int, not to off_, as POSIX will likely change
31497         in that direction.
31498
31499 2006-03-15  Eric Blake  <ebb9@byu.net>
31500
31501         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
31502
31503 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
31504
31505         * lib/argp-help.c (validate_uparams): Fix typo
31506         * lib/argp-parse.c (argp_default_options): Consistently begin help
31507         messages with a lowercase letter.
31508
31509 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
31510
31511         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
31512         overrun buffers and shouldn't be used (much as gets shouldn't be
31513         used).
31514         * lib/time_r.c (asctime_r, ctime_r): Likewise.
31515
31516 2006-03-08  Simon Josefsson  <jas@extundo.com>
31517
31518         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
31519         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31520
31521 2006-03-08  Simon Josefsson  <jas@extundo.com>
31522
31523         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
31524         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31525
31526 2006-03-08  Simon Josefsson  <jas@extundo.com>
31527
31528         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
31529         signal that configure disabled the device.
31530
31531 2006-03-08  Simon Josefsson  <jas@extundo.com>
31532
31533         * build-aux/maint.mk: Fix refresh-po, to handle no translated
31534         languages.
31535
31536 2006-03-07  Simon Josefsson  <jas@extundo.com>
31537
31538         * modules/getopt (Depends-on): Add unistd.
31539
31540         * modules/unistd: New file.
31541
31542 2006-03-07  Simon Josefsson  <jas@extundo.com>
31543
31544         * modules/gc-random: New file.
31545
31546 2006-03-07  Simon Josefsson  <jas@extundo.com>
31547
31548         * m4/unistd_h.m4: New file.
31549
31550 2006-03-07  Simon Josefsson  <jas@extundo.com>
31551
31552         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
31553         test to be side-effect free by storing the result in the cache
31554         variable gl_cv_lib_readline, and moving the assignment of
31555         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
31556         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31557
31558 2006-03-07  Simon Josefsson  <jas@extundo.com>
31559
31560         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
31561         error on missing devices (the functions will return an error).
31562
31563         * m4/gc.m4: Move random stuff to gc-random.m4
31564
31565 2006-03-07  Simon Josefsson  <jas@extundo.com>
31566
31567         * lib/unistd_.h: New file.
31568
31569 2006-03-07  Simon Josefsson  <jas@extundo.com>
31570
31571         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
31572
31573 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
31574
31575         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
31576         Problem reported by Juan Manuel Guerrero.
31577
31578 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
31579
31580         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
31581         the unistd module.
31582         * lib/getlogin_r.c: Likewise.
31583         * lib/getlogin_r.h: Likewise.
31584         * lib/glob.c: Likewise.
31585         * lib/pagealign_alloc.c: Likewise.
31586         * lib/unistd_.h: Remove; no longer needed.
31587
31588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
31589
31590         * MODULES.html.sh (Support for systems lacking POSIX:2001):
31591         Add unistd.
31592         * modules/c-stack (Depends-on): Add unistd.
31593         * modules/getlogin_r: Likewise.
31594         * modules/glob: Likewise.
31595         * modules/pagealign_alloc: Likewise.
31596         * modules/unistd (Files): Remove lib/unistd_.h.
31597         (EXTRA_DIST): Remove.
31598         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
31599         need unistd_.h.
31600         (MOSTLYCLEANFILES): Remove unistd.h-t.
31601
31602 2006-03-03  Simon Josefsson  <jas@extundo.com>
31603
31604         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
31605
31606 2006-03-03  Simon Josefsson  <jas@extundo.com>
31607
31608         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
31609         libidn and bison.
31610
31611 2006-03-03  Simon Josefsson  <jas@extundo.com>
31612
31613         * build-aux/maint.mk: Add indent target.
31614
31615 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
31616
31617         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
31618         our replacement poll.h in any case, to avoid a differing
31619         declaration from a system header.  Seen on AIX.
31620
31621 2006-03-01  Simon Josefsson  <jas@extundo.com>
31622
31623         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
31624         <kasal@ucw.cz>.
31625
31626 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31627
31628         * modules/gettime (Depends-on): Add extensions module.
31629         * modules/nanosleep (Depends-on): Likewise.
31630         * modules/settime (Depends-on): Likewise.
31631
31632 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31633
31634         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
31635         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
31636         pedantically.
31637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31638         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
31639
31640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
31641         not "==".  Reported by Ralf Wildenhues.
31642
31643 2006-03-01  Karl Berry  <karl@gnu.org>
31644
31645         * doc/Copyright/request-*: new files, synced from gnuorg.
31646
31647 2006-03-01  Karl Berry  <karl@gnu.org>
31648
31649         * config/srclist.txt (Copyright/*): new entries.
31650
31651 2006-02-28  Simon Josefsson  <jas@extundo.com>
31652
31653         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
31654
31655 2006-02-27  Simon Josefsson  <jas@extundo.com>
31656
31657         * lib/base64.h: Indent #define's.  From Jim Meyering
31658         <jim@meyering.net>.
31659
31660 2006-02-27  Jim Meyering  <jim@meyering.net>
31661
31662         Revert the change of 2006-02-24, so these files can continue
31663         to be sync'd from gettext.
31664         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
31665         of `config.h'.
31666
31667 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
31668
31669         * modules/intprops: New file.
31670         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
31671         Add intprops.
31672         * modules/getloadavg (Files): Remove lib/intprops.h.
31673         (Depends-on): Add intprops.
31674         * modules/human: Likewise.
31675         * modules/inttostr: Likewise.
31676         * modules/openat: Likewise.
31677         * modules/sig2str: Likewise.
31678         * modules/userspec: Likewise.
31679         * modules/utimecmp: Likewise.
31680         * modules/xnanosleep: Likewise.
31681         * modules/xstrtol: Likewise.
31682
31683 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
31684
31685         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
31686         * modules/lock-tests (TESTS): Use $(EXEEXT).
31687         * modules/tls-tests: Likewise.
31688         * modules/argp-tests: Likewise.
31689         (check_PROGRAMS): New var, replacing...
31690         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
31691
31692 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31693
31694         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
31695         `config.h'.
31696
31697 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31698
31699         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
31700
31701 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31702
31703         Sync from coreutils.
31704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
31705         gl_CHDIR_SAFER.
31706
31707 2006-02-22  Jim Meyering  <jim@meyering.net>
31708
31709         Sync from coreutils.
31710         * m4/chdir-safer.m4: New file.
31711
31712 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31713
31714         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
31715         AT_FDCWD exceeds INT_MAX.
31716         * lib/openat.h (AT_FDCWD): Likewise.
31717
31718 2006-02-17  Eric Blake  <address@hidden>
31719
31720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
31721
31722 2006-02-16  Simon Josefsson  <jas@extundo.com>
31723
31724         * modules/getaddrinfo (Depends-on): Add sys_socket.
31725
31726 2006-02-15  Simon Josefsson  <jas@extundo.com>
31727
31728         * build-aux/maint.mk: Add dsyntax-check rule.
31729
31730 2006-02-15  Eric Blake  <ebb9@byu.net>
31731
31732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
31733         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
31734         'present but cannot compile' warnings on cygwin.
31735         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
31736         use ws2tcpip.h if sys/socket.h works.
31737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
31738         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
31739
31740 2006-02-14  Simon Josefsson  <jas@extundo.com>
31741
31742         * modules/maintainer-makefile (Files): Rename.
31743
31744         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
31745         and (the local) Makefile.cfg to maint-cfg.mk.
31746
31747         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
31748         to the latter.
31749
31750         * modules/maintainer-makefile: New module.
31751
31752         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
31753         severaly stripped to make it possible to build it up from scratch
31754         with reliable tests.
31755
31756         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
31757         fixes to permit overriding the default actions when configure and
31758         makefile are not available.
31759
31760 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31761
31762         Sync from coreutils.
31763         * modules/lstat (Depends-on): Don't depend on xalloc.
31764         (License): Change from GPL to LGPL, since this is now simply a
31765         replacement for a libc function.
31766
31767 2006-02-14  Jim Meyering  <jim@meyering.net>
31768
31769         Sync from coreutils.
31770
31771         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
31772         failure on deficient systems, and simplify gnulib lgpl dependencies.
31773         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
31774         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
31775
31776         * lib/xalloc-die.c: Remove unused definition of N_.
31777
31778 2006-02-14  Jim Meyering  <jim@meyering.net>
31779
31780         Sync from coreutils.
31781         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
31782         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
31783         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
31784         double-quote uses of that variable, to accommodate the rare case in
31785         which getmntent is available in none of the libraries checked.  This
31786         happens at least on FreeBSD 5.0.
31787
31788 2006-02-13  Simon Josefsson  <jas@extundo.com>
31789
31790         * gnulib-tool (Usage): Fix --import, from
31791         karl@freefriends.org (Karl Berry).
31792
31793 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
31794
31795         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
31796
31797 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
31798
31799         * lib/argp-namefrob.h: Restore changes accidentally lost during the
31800         "autoupdate" on 2005-12-12.
31801
31802 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31803
31804         * modules/closeout (Depends-on): Remove atexit.
31805
31806 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31807
31808         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
31809         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
31810
31811 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
31812
31813         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
31814         __EXTENSIONS__ if this causes compilation to fail.  Problem
31815         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
31816         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
31817
31818 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31819
31820         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
31821         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
31822         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
31823         All uses changed.
31824
31825 2006-01-26  Simon Josefsson  <jas@extundo.com>
31826
31827         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
31828         prototype is visible on mingw32.
31829
31830         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
31831         for mingw32.
31832
31833         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
31834         mingw32).
31835
31836 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
31837
31838         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
31839         attempt to open for write; this always fails, at least on POSIX
31840         hosts.  This reinstates the 2006-01-09 change, which was
31841         inadvertently removed.
31842
31843 2006-01-26  Bruno Haible  <bruno@clisp.org>
31844
31845         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
31846         Reported by Paul Eggert.
31847
31848 2006-01-26  Bruno Haible  <bruno@clisp.org>
31849             Paul Eggert  <eggert@cs.ucla.edu>
31850
31851         * lib/stdbool_.h (_Bool)
31852         [(! (defined __cplusplus || defined __BEOS__)
31853           && !defined __GNUC__
31854           && !(defined __HP_cc || defined __xlc__
31855                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
31856                || defined __sgi))]:
31857         #define to signed char in these cases too; this simplifies
31858         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
31859         etc., separately) and makes it more conservative.
31860
31861 2006-01-25  Simon Josefsson  <jas@extundo.com>
31862
31863         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
31864         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
31865         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
31866
31867 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31868
31869         * lib/argp-namefrob.h: Bugfix. Remove stray #
31870
31871 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31872
31873         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
31874         so that we test the test.
31875         Check for yet another HP-UX cc bug involving *bool |= bool.
31876
31877 2006-01-25  Karl Berry  <karl@gnu.org>
31878
31879         * config/srclist.txt (vasnprintf.c): sync lost.
31880
31881 2006-01-25  Jim Meyering  <jim@meyering.net>
31882
31883         Sync from the stable (b5) branch of coreutils:
31884
31885         * lib/fts.c (fts_children): Don't let close() clobber errno from
31886         failed fchdir().
31887
31888         * lib/fts.c (fts_stat): When following a symlink-to-directory,
31889         don't necessarily interpret stat-fails+lstat-succeeds as indicating
31890         a dangling symlink.  That can also happen at least for ELOOP.
31891         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
31892         FYI, this bug predates the inclusion of fts.c in coreutils.
31893
31894         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
31895         in their own block, so pre-c99 compilers don't object.
31896
31897         Avoid the double-free (first in fts_read, second in fts_close) that
31898         would occur when an `active' directory is made inaccessible (e.g.,
31899         via chmod a-x) during a traversal.
31900         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
31901         before returning.  Reproduce this failure by
31902         mkdir -p a/b; cd a; chmod a-x . b
31903         Reported by Stavros Passas.
31904
31905 2006-01-25  Jim Meyering  <jim@meyering.net>
31906
31907         * lib/fileblocks.c: Remove more useless parentheses.
31908         * lib/readutmp.h: Likewise.
31909
31910 2006-01-25  Bruno Haible  <bruno@clisp.org>
31911
31912         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
31913         warnings.
31914         Reported by Paul Eggert.
31915
31916 2006-01-25  Bruno Haible  <bruno@clisp.org>
31917
31918         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
31919         rid of a trap command. For Solaris sh.
31920         Reported by Mark D. Baushke <mdb@gnu.org>.
31921
31922 2006-01-24  Simon Josefsson  <jas@extundo.com>
31923
31924         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
31925         Bruno.
31926
31927 2006-01-24  Karl Berry  <karl@gnu.org>
31928
31929         * config/srclist.txt (argp-namefrob.h): sync lost.
31930
31931 2006-01-24  Jim Meyering  <jim@meyering.net>
31932
31933         * modules/openat (Files): Add lib/intprops.h.
31934         From Mark D. Baushke.
31935
31936 2006-01-24  Jim Meyering  <jim@meyering.net>
31937
31938         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
31939         Reported by Mark D. Baushke.
31940
31941 2006-01-24  Jim Meyering  <jim@meyering.net>
31942
31943         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
31944
31945 2006-01-24  Bruno Haible  <bruno@clisp.org>
31946
31947         * modules/strnlen (Maintainer): Change from glibc to all.
31948
31949 2006-01-24  Bruno Haible  <bruno@clisp.org>
31950
31951         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
31952         Patch by Paul Eggert.
31953
31954 2006-01-24  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
31957         already has it.
31958         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
31959         2005-11-26.
31960
31961         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
31962         'signed char' to avoid problems with the built-in _Bool type.
31963         Reported by Paul Eggert on 2005-11-26.
31964
31965 2006-01-24  Bruno Haible  <bruno@clisp.org>
31966
31967         * gnulib-tool (func_import): Avoid constructing complicated sed
31968         expressions inside backquote.
31969         Report and solution by Mark D. Baushke <mdb@gnu.org>.
31970
31971 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
31972
31973         These changes imported from libc.
31974         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
31975         test and two separate function calls.
31976         * lib/strndup.c (__strndup): Add libc_hidden_def.
31977
31978 2006-01-23  Simon Josefsson  <jas@extundo.com>
31979
31980         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
31981         Remove the test_*_SOURCES variable: automake infers it by default.
31982         * modules/tls-tests: Likewise.
31983
31984 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31985
31986         Work around porting bugs reported by Dieter in
31987         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
31988         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
31989         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
31990         Include "getopt.h" first, to check interface.
31991         (getenv): Declare only if defined HAVE_DECL_GETENV &&
31992         !HAVE_DECL_GETENV.
31993         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
31994         (__strndup): Revert to K&R-style function dfns, the glibc style.
31995         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
31996         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
31997         Include strnlen.h first, to get prototype properly.
31998         (strnlen): Renamed from __strnlen.
31999         Remove weak alias.
32000
32001 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32002
32003         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
32004
32005 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32006
32007         * config/srclist.txt: Adjust to reflect glibc reorganization.
32008         This affects only comments.
32009
32010 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32011
32012          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
32013          Reported by Bruce Korb <bkorb@gnu.org>.
32014
32015 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32016
32017         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
32018         to pacify gcc -Wswitch-default.
32019
32020 2006-01-22  Bruno Haible  <bruno@clisp.org>
32021
32022         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
32023         temporary buffer for sprintf, take into account the precision also
32024         for 'd', 'i', 'u', 'o', 'x', 'X'.
32025
32026 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32027
32028         * modules/argp-tests: New module
32029         * tests/test-argp.c: New file
32030         * tests/test-argp-2.sh: New file
32031
32032 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32033
32034         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
32035         (__argp_base_name): Removed
32036         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
32037         typo.
32038         (__argp_base_name): Provide macro definition or extern declaration
32039         depending on the configuration
32040
32041 2006-01-20  Simon Josefsson  <jas@extundo.com>
32042
32043         * modules/inet_ntop (Depends-on): Depend on sys_socket.
32044
32045 2006-01-20  Simon Josefsson  <jas@extundo.com>
32046
32047         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
32048
32049 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32050
32051         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
32052         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
32053         Suggested by Bruno Haible.
32054
32055 2006-01-20  Karl Berry  <karl@gnu.org>
32056
32057         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
32058         until changes propagate, I guess.
32059
32060 2006-01-19  Simon Josefsson  <jas@extundo.com>
32061
32062         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
32063
32064 2006-01-19  Simon Josefsson  <jas@extundo.com>
32065
32066         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
32067
32068 2006-01-19  Simon Josefsson  <jas@extundo.com>
32069
32070         * gnulib-tool: Set check_PROGRAMS.
32071
32072         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
32073         modules/des-tests, modules/gc-arcfour-tests,
32074         modules/gc-arctwo-tests, modules/gc-des-tests,
32075         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
32076         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
32077         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
32078         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
32079         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
32080         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
32081         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
32082         test_*_SOURCES.
32083
32084 2006-01-18  Simon Josefsson  <jas@extundo.com>
32085
32086         * modules/socklen (Depends-on): Depend on sys_socket.
32087
32088 2006-01-18  Simon Josefsson  <jas@extundo.com>
32089
32090         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
32091         modules/des-tests, modules/gc-arcfour-tests,
32092         modules/gc-arctwo-tests, modules/gc-des-tests,
32093         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
32094         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
32095         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
32096         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
32097         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
32098         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
32099         $(EXEEXT) to automake TESTS variable, for mingw32.
32100
32101 2006-01-17  Simon Josefsson  <jas@extundo.com>
32102
32103         * modules/socklen (Include): Need sys/socket.h.
32104
32105 2006-01-17  Bruno Haible  <bruno@clisp.org>
32106
32107         * modules/ssize_t (Include): Add <sys/types.h>.
32108
32109 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32110
32111         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
32112         it's not portable and it doesn't work with cross-compiles.
32113         Problem reported by Bruno Haible.  Fix missing-$ typo in
32114         'test "gl_cv_ignore_unused_libraries" ...' that prevented
32115         -zignore from being used with Sun's C compiler.
32116
32117 2006-01-12  Simon Josefsson  <jas@extundo.com>
32118
32119         * lib/base64.c: Fix warning, reported by Bruno Haible
32120         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
32121
32122 2006-01-12  Bruno Haible  <bruno@clisp.org>
32123
32124         * modules/ldd: New file.
32125         * build-aux/ldd.sh.in: New file.
32126         * MODULES.html.sh (Support for building libraries and executables): Add
32127         ldd.
32128
32129 2006-01-12  Bruno Haible  <bruno@clisp.org>
32130
32131         * m4/ldd.m4: New file.
32132
32133 2006-01-12  Bruno Haible  <bruno@clisp.org>
32134
32135         * gnulib-tool (func_import, func_create_testdir): Don't go into an
32136         endless loop while replacing $auxdir with build-aux.
32137
32138 2006-01-11  Simon Josefsson  <jas@extundo.com>
32139
32140         * lib/stdint_.h (SIZE_MAX): Add missing (.
32141
32142 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
32143
32144         Sync from coreutils.
32145         * lib/md5.c: Fix commentary typos.
32146         (alignof, UNALIGNED_P): No need for a GCC-specific version.
32147         * lib/md5.h (__attribute__): Remove; unused.
32148         * lib/sha1.c: Fix commentary to match md5 better.
32149         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
32150         so that we don't need to worry about alignment.  All uses changed.
32151         This merges the 2005-10-28 md5 change into sha1.
32152
32153 2006-01-11  Jim Meyering  <jim@meyering.net>
32154
32155         Sync from coreutils.
32156         * lib/md5.c (OP): Fix spacing.
32157
32158 2006-01-11  Bruno Haible  <bruno@clisp.org>
32159
32160         Ensure automatic ordering between gl_LOCK and gl_ARGP.
32161         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
32162         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
32163
32164 2006-01-11  Bruno Haible  <bruno@clisp.org>
32165
32166         Ensure automatic ordering between gl_LOCK and gl_ARGP.
32167         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
32168         the "early" section as well.
32169
32170 2006-01-11  Bruno Haible  <bruno@clisp.org>
32171
32172         Avoid "ar: no archive members specified" error on MacOS X.
32173         * gnulib-tool (func_modules_add_dummy): New function.
32174         (func_import, func_create_testdir): Invoke it.
32175
32176 2006-01-11  Bruno Haible  <bruno@clisp.org>
32177
32178         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
32179         with $auxdir in AC_CONFIG_FILES statements.
32180
32181 2006-01-11  Bruno Haible  <bruno@clisp.org>
32182
32183         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32184         Initialize also noinst_HEADERS to empty.
32185
32186 2006-01-11  Bruno Haible  <bruno@clisp.org>
32187
32188         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
32189         variables.
32190         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
32191         autoreconf.
32192
32193 2006-01-11  Bruno Haible  <bruno@clisp.org>
32194
32195         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
32196         overridable by the user.
32197         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32198
32199 2006-01-10  Simon Josefsson  <jas@extundo.com>
32200
32201         * modules/sys_socket: New file.
32202
32203 2006-01-10  Simon Josefsson  <jas@extundo.com>
32204
32205         * m4/sys_socket_h.m4: New file.
32206
32207 2006-01-10  Simon Josefsson  <jas@extundo.com>
32208
32209         * lib/socket_.h: New file.
32210
32211 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32212
32213         * modules/readutmp (Maintainer): Add myself.
32214
32215 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32216
32217         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
32218         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
32219         People who are still concerned with buggy memcmp implementations
32220         can invoke gl_FUNC_MEMCMP themselves.
32221
32222 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32223
32224         * lib/regex_internal.h (BITSET_WORD_BITS):
32225         Work around a bug in 64-bit PGC (before version 6.1-2), where the
32226         preprocessor mishandles large unsigned values as if they were signed.
32227         Problem reported by Claudio Fontana in
32228         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
32229
32230 2006-01-10  Jim Meyering  <jim@meyering.net>
32231
32232         Avoid the double-free (first in fts_read, second in fts_close) that
32233         would occur when an `active' directory is made inaccessible (e.g.,
32234         via chmod a-x) during a traversal.
32235         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
32236         before returning.  Reproduce this failure by
32237         mkdir -p a/b; cd a; chmod a-x . b
32238         Reported by Stavros Passas.
32239
32240         Sync from coreutils.
32241         * lib/sha1.c: Tweak grammar in a comment.
32242
32243 2006-01-10  Jim Meyering  <jim@meyering.net>
32244
32245         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
32246         Patch by Joerg Sonnenberger.
32247
32248 2006-01-10  Bruno Haible  <bruno@clisp.org>
32249
32250         * modules/readutmp: Depend on module free.
32251         * modules/strtok_r: Depend on module restrict.
32252
32253 2006-01-10  Bruno Haible  <bruno@clisp.org>
32254
32255         * modules/gettext (configure.ac): Add an invocation of
32256         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
32257
32258 2006-01-10  Bruno Haible  <bruno@clisp.org>
32259
32260         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
32261         Reported by Werner Lemberg <wl@gnu.org>.
32262
32263 2006-01-10  Bruno Haible  <bruno@clisp.org>
32264
32265         * lib/localcharset.c: Update from GNU gettext.
32266
32267 2006-01-10  Bruno Haible  <bruno@clisp.org>
32268
32269         * lib/argp.h (__const): Remove macro. Use const instead.
32270         * lib/argp-fmtstream.h (__const): Likewise.
32271         * lib/glob_.h (__const): Remove macro.
32272         * lib/glob-libc.h: Use const instead of __const.
32273
32274 2006-01-10  Bruno Haible  <bruno@clisp.org>
32275
32276         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
32277         variable.
32278         Needed to avoid an automake error regarding the 'gettext' module.
32279
32280 2006-01-09  Simon Josefsson  <jas@extundo.com>
32281
32282         * modules/inet_ntop (Depends-on): Add restrict.
32283
32284 2006-01-09  Simon Josefsson  <jas@extundo.com>
32285
32286         * modules/gc-rijndael-tests (License): Put under LGPL.
32287
32288         * modules/gc-des-tests (License): Likewise.
32289
32290         * modules/gc-arcfour-tests (License): Likewise.
32291
32292         * modules/gc-arctwo-tests (License): Likewise.
32293
32294         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
32295
32296         * modules/gc-hmac-sha1-tests (Files): Likewise.
32297
32298         * modules/gc-hmac-md5-tests (License): Likewise.
32299
32300         * modules/gc-sha1-tests (License): Likewise.
32301
32302         * modules/gc-md5-tests (License): Likewise.
32303
32304         * modules/gc-md4-tests (License): Likewise.
32305
32306         * modules/gc-md2-tests (License): Likewise.
32307
32308         * modules/gc-tests (License): Likewise.
32309
32310         * modules/des-tests (License): Likewise.
32311
32312         * modules/md4-tests (License): Likewise.
32313
32314         * modules/md2-tests (License): Likewise.
32315
32316 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32317
32318         Sync from coreutils:
32319
32320         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
32321         * modules/lib-ignore: New file.
32322         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
32323         chdir-safer.m4, lchmod.m4.
32324         * modules/openat: Add mkdirat.c, openat-priv.h.
32325
32326 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32327
32328         Sync from coreutils.
32329         * m4/lib-ignore.m4: New file.
32330         * m4/lchmod.m4: New file.
32331
32332 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32333
32334         Sync from coreutils.
32335         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
32336         for write access: POSIX says that must fail.
32337         * lib/fts.c (diropen): Likewise.
32338         * lib/save-cwd.c (save_cwd): Likewise.
32339         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
32340         well, for minor improvements on hosts that lack O_DIRECTORY.
32341         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
32342         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
32343         Fall back on chown if open failed with EACCES.
32344
32345         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
32346         Report an error at compile-time if only a 1-second nominal clock
32347         resolution is found.
32348
32349         * lib/lchmod.h: New file.
32350         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
32351         (make_dir_parents): Use lchown rather than chown, and
32352         lchmod rather than chmod.
32353
32354         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
32355         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
32356         "proc" reported by n0dalus.
32357
32358         * lib/mountlist.c: Include <limits.h>.
32359         (dev_from_mount_options)
32360         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
32361         New function.  It no longer assumes "dev=" has the System V meaning
32362         on Linux (since it doesn't).  It also parses "dev=" more carefully.
32363         (read_file_system_list)
32364         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
32365         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
32366         dev= in that case.
32367
32368         * lib/posixtm.h (PDS_PRE_2000): New macro.
32369         * lib/posixtm.c (year): Arg is now syntax_bits rather than
32370         allow_century.  All usages changed.  Reject dates outside the range
32371         1969-1999 if PDS_PRE_2000 is used.
32372
32373 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32374
32375         Sync from coreutils.
32376         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
32377         (Time of day items): Mention the possibility of leap seconds.
32378         Problem reported by Dr. David Alan Gilbert.
32379
32380 2006-01-09  Jim Meyering  <jim@meyering.net>
32381
32382         Sync from coreutils.
32383
32384         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
32385
32386         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
32387
32388         * lib/modechange.c (mode_compile): Reject an invalid mode string
32389         that starts with an octal digit.  From Andreas Gruenbacher.
32390
32391         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
32392         and dup to open_safer and dup_safer, respectively.
32393         (openat_permissive): Fix typo in comment.
32394
32395         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
32396         "gettext.h"; either no longer needed or are guaranteed by openat.h.
32397         (_): Remove; no longer needed.
32398         (openat): Renamed from rpl_openat; no need for rpl_openat
32399         since openat.h renames openat for us.
32400         Replace most of the body with a call to openat_permissive,
32401         to avoid duplicate code.
32402         Port to (probably hypothetical) environments were mode_t is
32403         wider than int.
32404         (openat_permissive): Require mode arg, so that we can check
32405         types better.  Put it just after flags.  Change cwd failure
32406         indicator from pointer-to-bool to pointer-to-errno-value.
32407         All callers changed.
32408         Invoke openat_save_fail and/or openat_restore_fail if
32409         cwd_errno is null, so that openat can call us.
32410         (openat_permissive, fdopendir, fstatat, unlinkat):
32411         Simplify errno handling to avoid some duplicate code,
32412         as it's OK to set errno on success.
32413         * lib/openat.h: Revamp code so that function macros depend on
32414         __OPENAT_PREFIX only, not also on AT_FDCWD.
32415         (openat_ro): Remove.  Caller changed to use openat_permissive.
32416         (openat_permissive): Now a macro, if not a function.
32417         (openat_restore_fail, openat_save_fail): Now always functions,
32418         since mkdirat needs them even if __OPENAT_PREFIX is defined.
32419
32420         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
32421         and openat.c.
32422         * lib/mkdirat.c: Include openat-priv.h.
32423         Remove definitions of macros defined therein.
32424         * lib/openat.c: Likewise.
32425
32426         * lib/mkdirat.c (mkdirat): New file and function.
32427         * lib/openat.h (mkdirat): Declare.
32428
32429         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
32430
32431         * lib/openat.h (openat_permissive): Declare.
32432         (openat_ro): Define.
32433
32434         * lib/openat.c (EXPECTED_ERRNO): New macro.
32435         (openat_permissive): New function -- used in remove.c rewrite.
32436         (all functions): Set errno just before returning, only if there
32437         was an actual failure.
32438         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
32439
32440         Emulate openat-family functions using Linux's procfs, if possible.
32441         Idea and some code based on Ulrich Drepper's glibc changes.
32442
32443         * lib/openat.c: (BUILD_PROC_NAME): New macro.
32444         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
32445         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
32446         before falling back on save_cwd and restore_cwd.
32447         (fdopendir, fstatat, unlinkat): Likewise.
32448
32449         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
32450         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
32451
32452         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
32453         as second argument to va_arg.  Otherwise, some versions of gcc
32454         warn that `if this code is reached, the program will abort'.
32455
32456 2006-01-09  Jim Meyering  <jim@meyering.net>
32457
32458         Sync from coreutils.
32459         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
32460         Require openat-priv.h.
32461
32462 2006-01-09  Bruno Haible  <bruno@clisp.org>
32463
32464         * modules/strnlen (Include): Use strnlen.h.
32465
32466 2006-01-09  Bruno Haible  <bruno@clisp.org>
32467
32468         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
32469
32470 2006-01-09  Bruno Haible  <bruno@clisp.org>
32471
32472         * lib/sysexit_.h (EX_OK): New macro.
32473         Suggested by Martin Lambers <marlam@marlam.de>.
32474
32475 2006-01-09  Bruno Haible  <bruno@clisp.org>
32476
32477         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
32478         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
32479
32480 2006-01-09  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
32483         numbers.
32484
32485 2006-01-09  Bruno Haible  <bruno@clisp.org>
32486
32487         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
32488         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
32489         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
32490         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
32491
32492 2006-01-09  Bruno Haible  <bruno@clisp.org>
32493
32494         * build-aux/javacomp.sh.in: New file, moved from lib/.
32495         * modules/javacomp-script (Files): Update.
32496         (configure.ac): Add AC_CONFIG_FILES invocation.
32497         (EXTRA_DIST): Remove variable.
32498
32499         * build-aux/javaexec.sh.in: New file, moved from lib/.
32500         * modules/javaexec (Files): Update.
32501         (configure.ac): Add AC_CONFIG_FILES invocation.
32502         (EXTRA_DIST): Remove javaexec.sh.in.
32503
32504         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
32505         * modules/csharpcomp-script (Files): Update.
32506         (configure.ac): Add AC_CONFIG_FILES invocation.
32507         (EXTRA_DIST): Remove variable.
32508
32509         * build-aux/csharpexec.sh.in: New file, moved from lib/.
32510         * modules/csharpexec (Files): Update.
32511         (configure.ac): Add AC_CONFIG_FILES invocation.
32512         (EXTRA_DIST): Remove csharpexec.sh.in.
32513
32514 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
32515
32516         Sync from coreutils.
32517
32518         Add POSIX ACL support
32519         * lib/acl.h (copy_acl, set_acl): Add declarations.
32520         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
32521         systems other than Linux.
32522         (chmod_or_fchmod): New function: use fchmod when possible,
32523         and chmod otherwise.
32524         (file_has_acl): Add a POSIX ACL implementation, with a
32525         Linux-specific subcase.
32526         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
32527         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
32528         acls are unsupported.
32529         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
32530         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
32531         are unsupported.
32532
32533 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
32534
32535         Sync from coreutils.
32536         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
32537
32538 2006-01-07  Bruno Haible  <bruno@clisp.org>
32539
32540         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
32541         gl_EARLY.
32542
32543 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32544
32545         * lib/strftime.c (tzname): Don't declare if it is already #defined.
32546         Problem reported for Mingw by Mark Junker.
32547
32548 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32549
32550         * README: Gnulib normally doesn't generate a tarball.
32551
32552 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32553
32554         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
32555         long int, not int, for nanosecond counts, so that people who are
32556         used to POSIX struct timespec won't be surprised.  Reported by Jim
32557         Meyering.
32558
32559 2005-12-28  Bruno Haible  <bruno@clisp.org>
32560
32561         * build-aux/config.rpath: Update from GNU gettext.
32562
32563 2005-12-16  Jim Meyering  <jim@meyering.net>
32564
32565         * modules/fprintftime: New module.
32566         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
32567
32568 2005-12-16  Jim Meyering  <jim@meyering.net>
32569
32570         * m4/fprintftime.m4: New file.
32571
32572 2005-12-16  Jim Meyering  <jim@meyering.net>
32573
32574         * lib/fprintftime.c, lib/fprintftime.h: New files.
32575
32576 2005-12-15  Simon Josefsson  <jas@extundo.com>
32577
32578         * modules/socklen (configure.ac): Fix M4 macro name, to align with
32579         new m4/socklen.m4.
32580
32581 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32582
32583         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
32584         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
32585
32586 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32587
32588         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
32589         * lib/argp-help.c (fill_in_uparams): Check if the constructed
32590         struct uparams is valid. Fall back to the default values if it is
32591         not.
32592
32593 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32594
32595         * modules/argp (Files): Add argp-pin.c
32596         (Depends-on): dirname
32597         (lib_SOURCES): Add argp-pin.c
32598
32599 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32600
32601         * m4/argp.m4:  Check if program_invocation_name and
32602         program_invocation_short_name are declared and define appropriate
32603         macros if they are not.
32604
32605 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32606
32607         * lib/argp-help.c (__argp_base_name): New function
32608         (__argp_short_program_name): Rewrite using __argp_base_name
32609         * lib/argp-namefrob.h: Define program_invocation_name and
32610         program_invocation_short_name if requested
32611         (__argp_base_name): Add prototype
32612         * lib/argp-parse.c (argp_def): Use gettext wrappers
32613         (argp_default_parser): Use __argp_base_name
32614         * lib/argp-pin.c: New file. Defines program_invocation_name and
32615         program_invocation_short_name on systems that lack them.
32616
32617 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32618
32619         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
32620         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
32621         porting problem reported by Georg Schwarz in
32622         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
32623
32624 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32625
32626         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
32627         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
32628         porting problem reported by Georg Schwarz in
32629         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
32630
32631 2005-12-05  Bruno Haible  <bruno@clisp.org>
32632
32633         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
32634         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
32635         Reported by Mark Junker <mjscod@gmx.de>.
32636
32637 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
32638
32639         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
32640         Use implementation from Albert Chin, with some
32641         comments/corrections by Stepan Kasal and myself.
32642
32643 2005-12-02  Bruno Haible  <bruno@clisp.org>
32644
32645         * gnulib-tool (func_import): Accept GPLed build tool modules when
32646         --lgpl is given.
32647         * modules/csharpcomp-script: New file.
32648         * modules/csharpcomp: Depend on it.
32649         * modules/javacomp-script: New file.
32650         * modules/javacomp: Depend on it.
32651         Suggested by Simon Josefsson.
32652
32653 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
32654
32655         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
32656         statement, to work around an HP-UX 10.20 compiler bug reported by
32657         Peter O'Gorman.
32658
32659 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32660
32661         * modules/savedir (Depends-on): Add openat.
32662
32663 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32664
32665         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
32666         (uintmax_t) [defined uintmax_t]: Do not declare.
32667         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
32668         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
32669         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
32670         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
32671         sake of portability to weird hosts that C allows (though we don't
32672         know of any practical examples).
32673
32674         * lib/savedir.h (fdsavedir): New decl.
32675         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
32676         contains most of the former guts of savedir.
32677         (savedir): Use savedirstream.
32678         Include "openat.h".
32679
32680 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
32681
32682         * modules/obstack (Files): Add m4/ulonglong.m4.
32683         Problem reported by Davide Angelocola.
32684
32685 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32686
32687         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
32688         coreutils no longer futzes with rounding modes.
32689
32690 2005-11-14  Jim Meyering  <jim@meyering.net>
32691
32692         * lib/mkstemp-safer.c: Include <config.h>, required for possible
32693         replacement of mkstemp.
32694
32695 2005-11-10  Simon Josefsson  <jas@extundo.com>
32696
32697         * lib/readline.c: Remove EOL.
32698
32699 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32700
32701         * modules/gethrxtime (Depends-on): Add gettime.
32702
32703 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32704
32705         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
32706         or gettimeofday; no longer needed.
32707
32708 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32709
32710         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
32711         time business.
32712         (gethrxtime) [! (HAVE_NANOUPTIME
32713         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
32714         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
32715         our own approximation.
32716
32717 2005-11-08  Eric Blake  <ebb9@byu.net>
32718
32719         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
32720
32721 2005-11-08  Eric Blake  <ebb9@byu.net>
32722
32723         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
32724
32725 2005-11-04  Bruno Haible  <bruno@clisp.org>
32726
32727         * gnulib-tool: Implement --update mode.
32728
32729 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32730
32731         Fix porting problem reported by Theodoros V. Kalamatianos.
32732         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
32733         Don't assume that futimes failing means we must fail.
32734
32735 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32736
32737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
32738         variables to suggest the intended function of the PATH_MAX check.
32739
32740 2005-10-30  Kean Johnston  <jkj@sco.com>
32741
32742         Trivial changes to support SCO systems.
32743         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
32744         as PATH_MAX.
32745         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
32746         where __ptr is null when no I/O is pending.
32747
32748 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32749
32750         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
32751         leave errno alone.  Problem reported by Dmitry V. Levin.
32752
32753 2005-10-28  Simon Josefsson  <jas@extundo.com>
32754
32755         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
32756         Test more.
32757
32758         * tests/test-gc-md2.c, tests/test-md2.c: New files.
32759
32760         * modules/md2, modules/md2-tests: New files.
32761
32762 2005-10-28  Simon Josefsson  <jas@extundo.com>
32763
32764         * m4/inet_ntop.m4: More tests.
32765
32766         * m4/gc-md2.m4, md2.m4: New file.
32767
32768 2005-10-28  Simon Josefsson  <jas@extundo.com>
32769
32770         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
32771         "restrict" keywords, as per POSIX.  Protect the function
32772         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
32773         Don't use K&R prototypes.  Check the sprintf return values.
32774         Re-define EAFNOSUPPORT if not present.  Indent.
32775
32776         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
32777         suggested by Bruno Haible <bruno@clisp.org>.
32778
32779         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
32780
32781         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
32782
32783         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
32784         libgcrypt).
32785
32786         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
32787
32788         * lib/md2.h, lib/md2.c: New files.
32789
32790 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32791
32792         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
32793         errno alone.  Problem reported by Frederic Jolliton.
32794
32795 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
32796
32797         * modules/verify (License): Change from GPL to LGPL.  This is a
32798         tiny module and there are apparently near-equivalents that are
32799         under the BSD license.
32800
32801 2005-10-24  Simon Josefsson  <jas@extundo.com>
32802
32803         * modules/sha1: Relicense to LGPL.
32804
32805 2005-10-24  Simon Josefsson  <jas@extundo.com>
32806
32807         * lib/md4.h: Shrink buffer size, now that we changed the type.
32808
32809 2005-10-23  Simon Josefsson  <jas@extundo.com>
32810
32811         * gnulib-tool (func_import): Fix --tests-base.
32812
32813 2005-10-22  Simon Josefsson  <jas@extundo.com>
32814
32815         * modules/arcfour (Depends-on): Need stdint.
32816
32817 2005-10-22  Simon Josefsson  <jas@extundo.com>
32818
32819         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
32820         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
32821
32822 2005-10-22  Simon Josefsson  <jas@extundo.com>
32823
32824         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
32825         suggested by Bruno Haible <bruno@clisp.org>.
32826
32827 2005-10-22  Simon Josefsson  <jas@extundo.com>
32828
32829         * lib/crc.h: Include stddef.h, for size_t.
32830
32831 2005-10-22  Simon Josefsson  <jas@extundo.com>
32832
32833         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
32834         arcfour_context struct (simplify test vector testing in GNU
32835         Shishi).
32836
32837 2005-10-21  Simon Josefsson  <jas@extundo.com>
32838
32839         * modules/des, modules/des-tests: New files.
32840
32841         * modules/gc-des, modules/gc-des-tests: New files.
32842
32843         * tests/test-des.c, tests/test-gc-des.c: New file.
32844
32845 2005-10-21  Simon Josefsson  <jas@extundo.com>
32846
32847         * modules/arctwo, modules/arctwo-tests: New files.
32848
32849         * tests/test-arctwo.c: New file.
32850
32851         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
32852
32853         * tests/test-gc-arctwo.c: New file.
32854
32855 2005-10-21  Simon Josefsson  <jas@extundo.com>
32856
32857         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
32858         Bruno Haible <bruno@clisp.org>.
32859
32860         * m4/gc-des.m4: New file.
32861
32862 2005-10-21  Simon Josefsson  <jas@extundo.com>
32863
32864         * m4/arctwo.m4: New file.
32865
32866         * m4/gc-arctwo.m4: New file.
32867
32868 2005-10-21  Simon Josefsson  <jas@extundo.com>
32869
32870         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
32871         block.
32872
32873 2005-10-21  Simon Josefsson  <jas@extundo.com>
32874
32875         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
32876         <bruno@clisp.org>.
32877
32878         * lib/hmac-sha1.c (hmac_sha1): Likewise.
32879
32880         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
32881         Bruno Haible <bruno@clisp.org>.
32882
32883         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
32884         <bruno@clisp.org>.
32885
32886 2005-10-21  Simon Josefsson  <jas@extundo.com>
32887
32888         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
32889
32890 2005-10-21  Simon Josefsson  <jas@extundo.com>
32891
32892         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
32893
32894 2005-10-21  Simon Josefsson  <jas@extundo.com>
32895
32896         * lib/des.h, lib/des.c: New files.
32897
32898         * lib/gc-gnulib.c: Support DES.c
32899
32900 2005-10-21  Simon Josefsson  <jas@extundo.com>
32901
32902         * lib/arctwo.h, lib/arctwo.c: New files.
32903
32904         * lib/gc-gnulib.c: Support ARCTWO.
32905
32906 2005-10-21  Simon Josefsson  <jas@extundo.com>
32907
32908         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
32909         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32910
32911 2005-10-21  Simon Josefsson  <jas@extundo.com>
32912
32913         * gnulib-tool (func_import, func_create_testdir): Define automake
32914         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
32915         Makefile.am snippet),
32916         suggested by Bruno Haible <bruno@clisp.org>.
32917
32918         * modules/gc (Makefile.am): Use it.
32919
32920 2005-10-21  Bruno Haible  <bruno@clisp.org>
32921
32922         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
32923         patch.
32924
32925 2005-10-19  Simon Josefsson  <jas@extundo.com>
32926
32927         * tests/test-gc-rijndael.c: New file.
32928
32929         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
32930
32931 2005-10-19  Simon Josefsson  <jas@extundo.com>
32932
32933         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
32934         interface too.
32935
32936 2005-10-19  Simon Josefsson  <jas@extundo.com>
32937
32938         * tests/test-gc-arcfour.c: New file.
32939
32940         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
32941
32942 2005-10-19  Simon Josefsson  <jas@extundo.com>
32943
32944         * modules/gc-md4, modules/gc-md4-tests: New file.
32945
32946         * tests/test-gc-md4.c: New file.
32947
32948 2005-10-19  Simon Josefsson  <jas@extundo.com>
32949
32950         * m4/gc-md4.m4: New file.
32951
32952 2005-10-19  Simon Josefsson  <jas@extundo.com>
32953
32954         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
32955         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
32956         <kasal@ucw.cz>.
32957
32958 2005-10-19  Simon Josefsson  <jas@extundo.com>
32959
32960         * m4/gc-arcfour.m4: New file.
32961
32962         * m4/gc-rijndael.m4: New file.
32963
32964 2005-10-19  Simon Josefsson  <jas@extundo.com>
32965
32966         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
32967
32968 2005-10-19  Simon Josefsson  <jas@extundo.com>
32969
32970         * lib/gc-gnulib.c: Support ARCFOUR.
32971
32972 2005-10-19  Simon Josefsson  <jas@extundo.com>
32973
32974         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
32975         support.
32976
32977         * lib/gc.h: Add ECB enum type.
32978
32979         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
32980
32981 2005-10-18  Simon Josefsson  <jas@extundo.com>
32982
32983         * tests/test-md5.c: New file.
32984
32985         * modules/md5-tests: New file.
32986
32987 2005-10-18  Simon Josefsson  <jas@extundo.com>
32988
32989         * tests/test-md4.c: New file.
32990
32991         * modules/md4, modules/md4-tests: New files.
32992
32993 2005-10-18  Simon Josefsson  <jas@extundo.com>
32994
32995         * m4/md4.m4: New file.
32996
32997 2005-10-18  Simon Josefsson  <jas@extundo.com>
32998
32999         * lib/md4.h, lib/md4.c: New files, based on md5.?.
33000
33001 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
33002
33003         * gnulib-tool (func_create_testdir): Omit the second check whether
33004         BUILT_SOURCES in nonempty.
33005
33006 2005-10-17  Simon Josefsson  <jas@extundo.com>
33007
33008         * tests/test-rijndael.c: New file.
33009
33010 2005-10-17  Simon Josefsson  <jas@extundo.com>
33011
33012         * modules/sha1: Depend on stdint instead of md5.
33013
33014         * modules/md5: Depend on stdint, remove uint32_t.
33015
33016 2005-10-17  Simon Josefsson  <jas@extundo.com>
33017
33018         * modules/gc-sha1-tests: New file.
33019
33020         * tests/test-gc-sha1.c: New file.
33021
33022 2005-10-17  Simon Josefsson  <jas@extundo.com>
33023
33024         * m4/md5.m4: Remove call to uint32_t.m4.
33025
33026 2005-10-17  Simon Josefsson  <jas@extundo.com>
33027
33028         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
33029
33030         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
33031         md5.h.
33032
33033         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
33034
33035         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
33036
33037 2005-10-17  Simon Josefsson  <jas@extundo.com>
33038
33039         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
33040
33041 2005-10-17  Simon Josefsson  <jas@extundo.com>
33042
33043         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
33044
33045 2005-10-17  Simon Josefsson  <jas@extundo.com>
33046
33047         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
33048
33049         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
33050
33051 2005-10-17  Bruno Haible  <bruno@clisp.org>
33052
33053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
33054         that it can also be used in a test.
33055
33056 2005-10-16  Bruno Haible  <bruno@clisp.org>
33057
33058         * gnulib-tool (func_emit_tests_Makefile_am): Also define
33059         TESTS_ENVIRONMENT, so that individual tests can augment it.
33060
33061         * gnulib-tool (func_create_testdir): Use an intermediate target for
33062         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
33063         macros, like $(ALLOCA_H), which cannot be passed through the command
33064         line.
33065
33066 2005-10-15  Simon Josefsson  <jas@extundo.com>
33067
33068         * modules/rijndael-tests: New file.
33069
33070         * modules/rijndael: New file.
33071
33072 2005-10-15  Simon Josefsson  <jas@extundo.com>
33073
33074         * m4/rijndael.m4: New file.
33075
33076 2005-10-15  Simon Josefsson  <jas@extundo.com>
33077
33078         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
33079
33080         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
33081
33082 2005-10-14  Simon Josefsson  <jas@extundo.com>
33083
33084         * tests/test-arcfour.c: New file.
33085
33086         * modules/arcfour, modules/arcfour-tests: New files.
33087
33088 2005-10-14  Simon Josefsson  <jas@extundo.com>
33089
33090         * m4/arcfour.m4: New file.
33091
33092 2005-10-14  Simon Josefsson  <jas@extundo.com>
33093
33094         * lib/arcfour.h, lib/arcfour.c: New files.
33095
33096 2005-10-14  Roland McGrath  <roland@redhat.com>
33097
33098         Import from libc.  [BZ #1331]
33099         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
33100         macro argument.
33101         Reported by Matej Vela <vela@debian.org>.
33102
33103 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
33106         include <wchar.h>; no longer needed.
33107
33108 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33109
33110         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
33111
33112 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
33113         and  Ulrich Drepper  <drepper@redhat.com>
33114
33115         Import from libc.
33116         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
33117         instead of inline stream orientation test and two separate
33118         function calls.  Pay no attention to USE_IN_LIBIO.
33119
33120 2005-10-13  Simon Josefsson  <jas@extundo.com>
33121
33122         * modules/gc-hmac-md5-tests: New file.
33123
33124         * tests/test-gc-hmac-sha1.c: New file.
33125
33126         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
33127
33128         * modules/gc-hmac-md5-tests: New file.
33129
33130         * tests/test-gc-md5.c: New file.
33131
33132         * modules/gc-md5-tests: New file.
33133
33134 2005-10-13  Simon Josefsson  <jas@extundo.com>
33135
33136         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
33137         Move memory allocation outside of loop.
33138
33139 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33140
33141         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
33142         intermediate directory is in a read-only file system.  Problem
33143         reported by Eric Blake.
33144
33145 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
33146
33147         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
33148
33149 2005-10-12  Simon Josefsson  <jas@extundo.com>
33150
33151         * tests/test-hmac-sha1.c: New file.
33152
33153         * modules/hmac-sha1-tests: New file.
33154
33155         * modules/hmac-sha1: New file.
33156
33157 2005-10-12  Simon Josefsson  <jas@extundo.com>
33158
33159         * modules/gc-sha1: New file.
33160
33161 2005-10-12  Simon Josefsson  <jas@extundo.com>
33162
33163         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
33164
33165         * tests/test-gc-pbkdf2-sha1.c: New file.
33166
33167 2005-10-12  Simon Josefsson  <jas@extundo.com>
33168
33169         * modules/gc-md5, modules/gc-hmac-md5: New files.
33170
33171         * modules/gc (Files): Remove md5, memxor and hmac files.
33172
33173 2005-10-12  Simon Josefsson  <jas@extundo.com>
33174
33175         * m4/gc-pbkdf2-sha1.m4: New file.
33176
33177         * m4/gc-hmac-sha1.m4: New file.
33178
33179         * m4/gc-sha1: New file.
33180
33181         * m4/hmac-sha1.m4: New file.
33182
33183 2005-10-12  Simon Josefsson  <jas@extundo.com>
33184
33185         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
33186
33187         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
33188
33189 2005-10-12  Simon Josefsson  <jas@extundo.com>
33190
33191         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
33192         suggested by Bruno Haible <bruno@clisp.org>.
33193
33194 2005-10-12  Simon Josefsson  <jas@extundo.com>
33195
33196         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
33197
33198 2005-10-12  Simon Josefsson  <jas@extundo.com>
33199
33200         * lib/gc-pbkdf2-sha1.c: New file.
33201
33202         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
33203
33204 2005-10-12  Simon Josefsson  <jas@extundo.com>
33205
33206         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
33207
33208         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
33209
33210 2005-10-12  Simon Josefsson  <jas@extundo.com>
33211
33212         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
33213         GC_USE_HMAC_MD5, respectively.
33214
33215         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
33216         (gc_md5): Fix typo.
33217
33218         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
33219
33220         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
33221
33222         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
33223
33224 2005-10-12  Bruno Haible  <bruno@clisp.org>
33225
33226         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
33227         Reported by Stepan Kasal <kasal@ucw.cz>.
33228
33229 2005-10-11  Simon Josefsson  <jas@extundo.com>
33230
33231         * tests/test-crc.c: New file.
33232
33233         * modules/crc, modules/crc-tests: New files.
33234
33235 2005-10-11  Simon Josefsson  <jas@extundo.com>
33236
33237         * m4/crc.m4: New file.
33238
33239 2005-10-11  Simon Josefsson  <jas@extundo.com>
33240
33241         * lib/gc.h: Add gc_hash and gc_hash_buffer.
33242
33243         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
33244
33245         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
33246
33247 2005-10-11  Simon Josefsson  <jas@extundo.com>
33248
33249         * lib/crc.h, lib/crc.c: New files.
33250
33251         * lib/gc.h (gc_hash_buffer): Add doc.
33252
33253 2005-10-11  Bruno Haible  <bruno@clisp.org>
33254
33255         * modules/c-strcasestr: New file.
33256         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
33257
33258 2005-10-11  Bruno Haible  <bruno@clisp.org>
33259
33260         * modules/c-strcase: New file.
33261         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
33262
33263 2005-10-11  Bruno Haible  <bruno@clisp.org>
33264
33265         * lib/strcasecmp.c: Include limits.h.
33266         (strcasecmp): Avoid integer overflow on exotic platforms.
33267         * lib/strncasecmp.c: Include limits.h.
33268         (strncasecmp): Avoid integer overflow on exotic platforms.
33269         Reported by Paul Eggert.
33270
33271 2005-10-11  Bruno Haible  <bruno@clisp.org>
33272
33273         * lib/c-strcasestr.h: New file, from GNU gettext.
33274         * lib/c-strcasestr.c: New file, from GNU gettext.
33275
33276 2005-10-11  Bruno Haible  <bruno@clisp.org>
33277
33278         * lib/c-strcase.h: New file, from GNU gettext.
33279         * lib/c-strcasecmp.c: New file, from GNU gettext.
33280         * lib/c-strncasecmp.c: New file, from GNU gettext.
33281
33282 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33283
33284         * modules/mempcpy (License): GPL -> LGPL.
33285         * modules/strchrnul (License): Likewise.
33286         * modules/sysexits (License): Likewise.
33287
33288 2005-10-08  Simon Josefsson  <jas@extundo.com>
33289
33290         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
33291
33292 2005-10-07  Simon Josefsson  <jas@extundo.com>
33293
33294         * m4/memxor.m4: Remove gl_C_RESTRICT call.
33295
33296 2005-10-06  Simon Josefsson  <jas@extundo.com>
33297
33298         * tests/test-hmac-md5.c: New file.
33299
33300         * modules/hmac-md5-tests: New file.
33301
33302         * modules/hmac-md5: New file.
33303
33304 2005-10-06  Simon Josefsson  <jas@extundo.com>
33305
33306         * m4/hmac-md5.m4: New file.
33307
33308         * m4/memxor.m4: Require gl_C_RESTRICT.
33309
33310 2005-10-06  Simon Josefsson  <jas@extundo.com>
33311
33312         * lib/memxor.c (memxor): Avoid casts and warnings.
33313
33314 2005-10-06  Simon Josefsson  <jas@extundo.com>
33315
33316         * lib/hmac-md5.c: New file.
33317
33318         * lib/hmac.h: New file.
33319
33320 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33321
33322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
33323         promotes to int, not unsigned int, to catch the AIX 5.3
33324         compiler bug.
33325
33326 2005-10-05  Simon Josefsson  <jas@extundo.com>
33327
33328         * modules/memxor: New file.
33329
33330         * modules/iconv (Files): Move config.rpath to havelib, it is used
33331         there.
33332
33333         * modules/havelib (Files): Add config.rpath.
33334
33335 2005-10-05  Simon Josefsson  <jas@extundo.com>
33336
33337         * m4/memxor.m4: New file.
33338
33339 2005-10-05  Simon Josefsson  <jas@extundo.com>
33340
33341         * lib/memxor.c (memxor): Fix compiler error.
33342
33343         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
33344         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
33345
33346         * lib/memxor.h, lib/memxor.c: New files.
33347
33348         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
33349         we assume all systems have it, suggested by Jim Meyering
33350         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
33351         any systems lack sys/socket.h; mingw32 is known to lack it, but we
33352         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
33353         same reasons.
33354
33355 2005-10-05  Simon Josefsson  <jas@extundo.com>
33356
33357         * config/srclist.txt: Add glibc bug 1423 for md5.h.
33358
33359 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
33360
33361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
33362         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
33363         needed, since the source code now assumes these .h files.
33364
33365 2005-10-05  Derek Price  <derek@ximbiot.com>
33366
33367         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
33368
33369 2005-10-05  Bruno Haible  <bruno@clisp.org>
33370
33371         * modules/stdint (License): Change to LGPL.
33372
33373 2005-10-04  Simon Josefsson  <jas@extundo.com>
33374
33375         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
33376         D. Baushke" <mdb@gnu.org>.
33377
33378 2005-10-04  Bruno Haible  <bruno@clisp.org>
33379
33380         * lib/verify.h (verify_true): Provide alternative definition for C++.
33381
33382 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
33383
33384         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
33385         (SSIZE_MAX): New macro, if not already defined.
33386         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
33387         than 2 GiB.
33388
33389 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33390
33391         Sync from coreutils.
33392         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
33393         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
33394         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
33395         ULLONG_MAX doesn't work with 2.7.2.1.
33396
33397 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33398
33399         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
33400         From Ben Pfaff.
33401
33402         * modules/exclude (Depends-on): Depend on verify.
33403         * modules/strtoimax (Depends-on): Likewise.
33404         * modules/utimecmp (Depends-on): Likewise.
33405
33406 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33407
33408         * lib/exclude.c: Include verify.h.
33409         (verify): Remove.  All callers changed to use verify.h's version.
33410         * lib/strtoimax.c: Likewise.
33411         * lib/utimecmp.c: Likewis.e
33412
33413         Sync from coreutils.
33414         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
33415         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
33416         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
33417         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
33418         bother returning ENOSYS if settimeofday or stime fails; just let
33419         them return whatever errno they want to return.
33420         * lib/utimens.c: Include unistd.h, for dup2.
33421         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
33422         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
33423
33424 2005-10-02  Jim Meyering  <jim@meyering.net>
33425
33426         Sync from coreutils.
33427         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
33428         from glibc-2.2.5 that fails for read-only files.
33429
33430 2005-10-02  Jim Meyering  <jim@meyering.net>
33431
33432         Sync from coreutils.
33433         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
33434         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
33435         `#if HAVE_CONFIG_H'.
33436         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
33437         Remove AT_FDCWD test.
33438         Do not consume the fd unless successful.
33439         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
33440         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
33441         block, so that we don't even try to compile it if settimeofday is
33442         available.  This works around a compilation failure on OSF1 V5.1,
33443         due to stime requiring a `long int*' while tv_sec is `int'.
33444
33445 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
33446
33447         Sync from coreutils.
33448         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
33449         against `yes', rather than just testing for nonempty.
33450
33451 2005-10-01  Simon Josefsson  <jas@extundo.com>
33452
33453         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
33454         and Darwin.
33455
33456         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
33457         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
33458         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
33459         freeaddrinfo and gai_strerror are declared by the POSIX headers.
33460         Check if struct addrinfo is declared.
33461
33462 2005-10-01  Simon Josefsson  <jas@extundo.com>
33463
33464         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
33465         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
33466         AI_* and EAI_* definitions.  Protect function declarations.
33467
33468 2005-10-01  Jim Meyering  <jim@meyering.net>
33469
33470         Sync from coreutils.
33471
33472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
33473         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
33474         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
33475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
33476         in the inet and nsl libraries.  Required on Solaris 5.7.
33477
33478 2005-10-01  Jim Meyering  <jim@meyering.net>
33479
33480         Sync from coreutils.
33481         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
33482         in the inet and nsl libraries.  Required on Solaris 5.7.
33483
33484 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
33485
33486         * lib/getdelim.c (getdelim): Remove unused variables.
33487
33488 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
33489
33490         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
33491         so that the code works even with ancient cpp.  Portability problem
33492         with GCC 2.7.2.1 reported by Thomas M.Ott.
33493
33494 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
33495
33496         * modules/regex (Depends-on): Add strcase.
33497
33498         * modules/gethostname (Licence): Change from GPL to LGPL, since
33499         gethostname.c is a trivial implementation of a standard library
33500         function.
33501         * modules/poll (License): Change from GPL to LGPL, since it's
33502         derived from LGPL code.
33503
33504 2005-09-27  Jim Meyering  <jim@meyering.net>
33505
33506         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
33507         HAVE_CONFIG_H.
33508
33509         * lib/intprops.h (signed_type_or_expr__): Define.
33510         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
33511         for unsigned types.
33512
33513 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33514
33515         * lib/verify.h (verify_expr): Remove, replacing with:
33516         (verify_true): New macro that returns true instead of void.
33517         (verify_type__): Remove.
33518         (verify): Use verify_true rather than verify_type__.
33519
33520 2005-09-26  Bruno Haible  <bruno@clisp.org>
33521
33522         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
33523         is necessary.
33524         (lib_SOURCES): Remove mbchar.c.
33525         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
33526         (Files): Add m4/mbrtowc.m4.
33527         * modules/mbiter: Likewise.
33528         * modules/mbuiter: Likewise.
33529
33530 2005-09-26  Bruno Haible  <bruno@clisp.org>
33531
33532         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
33533         compile mbchar.c if they are not both present.
33534         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
33535         * m4/mbiter.m4 (gl_MBITER): Likewise.
33536         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
33537         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
33538         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
33539
33540 2005-09-25  Jim Meyering  <jim@meyering.net>
33541
33542         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
33543         also uses socklen_t.
33544
33545 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33546
33547         * lib/utimens.c (ENOSYS): Define if not already defined.
33548         (futimens): Support having a null PATH if the file descriptor
33549         is nonnegative.
33550
33551         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
33552         Remove.
33553         (__attribute): Define to empty unless GCC 3.1 or later.
33554         This works around a core dump on OpenBSD 3.4, which has GCC
33555         2.95.3, which dumps core when given __attribute__(()).  It also
33556         simplifies other tests, since we really don't want to bother with
33557         worrying about which ancient version of GCC supported what.
33558         Original problem reported by Yoann Vandoorselaere, with part of
33559         the fix suggested by Derek Price.
33560
33561 2005-09-24  Jim Meyering  <jim@meyering.net>
33562
33563         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
33564         so we can once again use a positive bitfield width of 1 -- now we
33565         don't have to explain why we were using a bitfield width of 2.
33566
33567 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33568
33569         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
33570         and similarly for the other external symbols.  Problem reported
33571         by James Gallager.
33572
33573         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
33574         bug reported by Jim Meyering.
33575
33576         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
33577         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
33578         not needed, since socklen is a prerequisite module.
33579
33580 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33581
33582         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
33583         Problem reported by Eric Blake.
33584         (getaddrinfo): Initialize se so that it's not garbage.
33585         Redo internal storage allocation so that it doesn't make unportable
33586         assumptions about alignment.
33587         Fix a memory leak.
33588
33589         * lib/utimens.c (futimens): Use futimesat if available.
33590         Prefer it to futimes since it doesn't have the futimes bug.
33591
33592         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
33593         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
33594         Instead, declare a function that returns a pointer to an array,
33595         and use verify_type__ to declare the size of the array.
33596         Problem and germ of a solution reported by Bruno Haible.
33597         (verify_type__): Use 2, not 1, for bitfield size, to avoid
33598         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
33599
33600 2005-09-23  Jim Meyering  <jim@meyering.net>
33601
33602         Sync from coreutils.
33603         Correct build failure (socklen_t not defined) on at least
33604         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
33605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
33606
33607 2005-09-23  Jim Meyering  <jim@meyering.net>
33608
33609         * modules/getaddrinfo (Depends-on): Add socklen.
33610
33611 2005-09-23  Bruno Haible  <bruno@clisp.org>
33612
33613         * tests/test-verify.c: New file.
33614
33615 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33616
33617         Sync from coreutils.
33618
33619         * modules/argmatch (Depends-on): Add verify.
33620         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
33621         unistd-safer.
33622         * modules/save-cwd (Depends-on): Likewise.
33623
33624         * modules/openat (Files): Add lib/openat-die.c.
33625         (Depends-on): Remove error, exitfail.
33626         Add dirname.
33627
33628         * modules/verify: New file.
33629         * MODULES.html.sh (Diagnostics <assert.h>): New section,
33630         with "verify" module.
33631
33632 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33633
33634         Sync from coreutils.
33635
33636         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
33637         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
33638         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
33639         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
33640         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
33641         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
33642         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
33643         Don't bother checking for string.h, stdlib.h, unistd.h.
33644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
33645         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
33646         module's job.
33647         * m4/jm-macros.m4 (gl_MACROS): Likewise.
33648         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
33649
33650         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
33651         (gl_GETDATE): Use it.
33652
33653         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
33654
33655 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33656
33657         Sync from coreutils.
33658
33659         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
33660         stat-time.h.
33661         * lib/argmatch.h: Include verify.h
33662         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
33663         (ARGMATCH_ASSERT): Remove; unused.
33664         * lib/canonicalize.c: Assume STDC_HEADERS.
33665         * lib/exclude.c: Include "strcase.h".
33666         * lib/regex_internal.h [!defined _LIBC]: Likewise.
33667         * lib/getusershell.c: Include stdio--.h rather than stdio.h
33668         and stdio-safer.h.
33669         (getusershell): Call fopen, not fopen_safer.
33670         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
33671         Do not include unistd-safer.h.
33672         (save_cwd): Don't call fd_safer; no longer needed
33673         now that we include fcntl--.h.
33674
33675         * lib/getdate.y (relative_time): New type.
33676         (RELATIVE_TIME_0): New constant.
33677         (parser_control): Use relative_time instead of doing it ourselves.
33678         (%union): Add new relative_time rel member.
33679         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
33680         Now typeless.
33681         (relunit, relunit_snumber): Now of type rel.
33682         (zone, rel, relunit, get_date): Adjust to above changes.
33683
33684         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
33685         Do not include unistd-safer.h.
33686         (getloadavg): Don't call fd_safer; no longer needed
33687         now that we include fcntl--.h.
33688
33689         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
33690         (make_dir_parents): Treat ENOSYS like EEXIST.
33691
33692         Improve quality of diagnostics on restore_cwd failure.
33693         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
33694         (make_dir_parents): Last arg is now int * (for errno), not bool *.
33695         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
33696         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
33697         each time through the loop.  Do not diagnose restore_cwd failure;
33698         that is the caller's job (and perhaps the caller does not care).
33699
33700         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
33701         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
33702         If the file already exists but is not a directory, don't bother
33703         to try to make its parents.
33704         Close potential file descriptor leak if we can't chdir("/") (!).
33705         Don't always return true if chdir($PWD) fails; return true only
33706         if the requested action was done successfully (except for the
33707         chdir($PWD)).
33708         Don't log final directory unless we actually made it.
33709         Refactor to avoid duplicate code to fix up permissions.
33710         Don't attempt to fix up parent permissions if chdir($PWD) fails.
33711
33712         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
33713         to make it a bit faster and (I hope) clearer.
33714         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
33715         Fix bug in formats like %2N.
33716
33717         * lib/verify.h: New file.
33718
33719 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33720
33721         Sync from coreutils.
33722         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
33723
33724 2005-09-22  Jim Meyering  <jim@meyering.net>
33725
33726         Sync from coreutils.
33727
33728         * m4/lstat.m4 (gl_FUNC_LSTAT):
33729         Use AC_LIBSOURCES to require lstat.c and lstat.h.
33730         Remove obsolete comment.
33731         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
33732         * m4/xstrtod.m4: Likewise.
33733
33734         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
33735
33736 2005-09-22  Jim Meyering  <jim@meyering.net>
33737
33738         Sync from coreutils.
33739
33740         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
33741
33742         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
33743         the .tm_year member, since otherwise gcc-4.0 would now warn about
33744         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
33745
33746         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
33747         order to avoid an unsuppressible warning from gcc on 64-bit systems.
33748
33749         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
33750         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
33751         when run in a time zone for which daylight savings time is in effect
33752         for the starting date.
33753
33754         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
33755         stop us from restricting permissions of just-created absolute-named
33756         directories.
33757         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
33758         to restore initial working directory.
33759         * lib/mkdir-p.c (make_dir_parents): New parameter:
33760         different_working_dir, to tell caller if/when we change the working
33761         directory and are unable to return to the initial one.
33762         * lib/mkdir-p.h (make_dir_parents): Update prototype.
33763         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
33764         `return false'.  This fixes a bug introduced on 2004-07-30.
33765
33766         * lib/openat.c (fdopendir): Be sure to close the supplied
33767         file descriptor before returning.  This makes our replacement
33768         implementation a little closer to Solaris's, where fdopendir
33769         ties the file descriptor to the returned DIR* pointer.
33770         * lib/openat.c (unlinkat): New function.
33771         * lib/openat.h (unlinkat): Add prototype.
33772         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
33773         (openat_restore_fail): Rename from openat_restore_die.
33774         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
33775
33776         Provide an alternative to exiting immediately upon save_cwd or
33777         restore_cwd failure.  Now, an application can arrange e.g.,
33778         to perform a longjump in that case.
33779         * lib/openat.c: Include dirname.h.
33780         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
33781         (rpl_openat, fdopendir, fstatat): Call openat_save_die
33782         and openat_restore_die rather than calling error directly.
33783         Don't include "error.h" or "exitfail.h"; they're no longer needed.
33784
33785         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
33786         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
33787         define.
33788
33789         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
33790         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
33791                             int utc, int nanoseconds);
33792         Background:
33793         date should not have to allocate a megabyte of virtual memory to
33794         handle a format argument like +%1048575T.  When implemented with
33795         strftime, it must allocate such a buffer, use strftime to fill it
33796         in, print it, then free it.
33797         With fprintftime, it simply prints everything and exits.
33798         With no need for memory allocation, that's one fewer way to fail.
33799         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
33800         optional field width, not before, so we accept %9:z, not %:9z.
33801         (my_strftime): Be sure to use L_('x') for literals.
33802
33803         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
33804         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
33805         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
33806         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
33807         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
33808         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
33809         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
33810         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
33811         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
33812         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
33813         * lib/xgethostname.c, lib/xreadlink.c:
33814         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
33815
33816         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
33817         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
33818         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
33819         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
33820         and don't include <sys/file.h>).
33821
33822 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
33823
33824         Sync from coreutils.
33825
33826         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
33827         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
33828         [!LDAV_DONE]: Avoid unused variable warning.
33829
33830 2005-09-21  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/unicodeio.h (unicode_to_mb): New declaration.
33833
33834 2005-09-20  Derek Price  <derek@ximbiot.com>
33835
33836         * lib/getaddrinfo.c: Don't include <netdb.h> included from
33837         getaddrinfo.h.
33838
33839 2005-09-20  Bruno Haible  <bruno@clisp.org>
33840
33841         * gnulib-tool: Remove trailing slashes from the values specified for
33842         --source-base, --m4-base, --tests-base, --aux-dir.
33843         Suggested by Simon Josefsson <jas@extundo.com>.
33844
33845 2005-09-20  Bruno Haible  <bruno@clisp.org>
33846
33847         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
33848         func_modules_to_filelist, func_import, func_create_testdir): Make all
33849         sorting results locale-independent, so that gnulib-cache.m4 doesn't
33850         change when gnulib-tool is invoked in a different locale.
33851
33852 2005-09-19  Simon Josefsson  <jas@extundo.com>
33853
33854         * m4/socklen.m4: Fix typo.
33855
33856 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33857
33858         Use a consistent style for including <config.h>.
33859         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
33860         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
33861         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
33862         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
33863         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
33864         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
33865         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
33866         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
33867         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
33868         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
33869         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
33870         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
33871         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
33872         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
33873         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
33874         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
33875         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
33876         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
33877         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
33878         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
33879         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
33880         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
33881         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
33882         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
33883         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
33884         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
33885         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
33886         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
33887         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
33888         lib/xstrtoumax.c, lib/yesno.c:
33889         Standardize inclusion of config.h.
33890         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
33891         lib/inttostr.h:  Removed inclusion of config.h from header files.
33892         * lib/inttostr.c:  Adjusted in-tree users.
33893         * lib/timespec.h: Remove superfluous warning to include config.h.
33894         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
33895         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
33896         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
33897         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
33898         config.h with HAVE_CONFIG_H.
33899
33900 2005-09-19  Jim Meyering  <jim@meyering.net>
33901
33902         * modules/pathmax (License): Change to LGPL.
33903
33904 2005-09-19  Derek Price  <derek@ximbiot.com>
33905
33906         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
33907
33908 2005-09-19  Bruno Haible  <bruno@clisp.org>
33909
33910         * gnulib-tool (import): Provide default for --tests-base.
33911
33912 2005-09-19  Bruno Haible  <bruno@clisp.org>
33913
33914         * doc/quote.texi: New file, extracted from gnulib.texi.
33915         * doc/ctime.texi: New file, extracted from gnulib.texi.
33916         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
33917         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
33918         * doc/gnulib.texi: Include them.
33919
33920 2005-09-18  Bruno Haible  <bruno@clisp.org>
33921
33922         Portability fix.
33923         * gnulib-tool (func_readlink): New function.
33924         (func_ln_if_changed): Use it.
33925
33926 2005-09-18  Bruno Haible  <bruno@clisp.org>
33927
33928         * gnulib-tool: Support --with-tests also with --import.
33929         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
33930         (func_import): Use variables $testsbase and $inctests. Emit a
33931         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
33932         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
33933         SUBDIRS += $testsdir.
33934         (func_create_testdir): Update.
33935
33936 2005-09-18  Bruno Haible  <bruno@clisp.org>
33937
33938         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
33939         instead of $dry_run.
33940         (func_cp_if_changed, func_mv_if_changed): Remove functions.
33941         (func_ln_if_changed): Don't handle dry-run here.
33942         (func_import): In dry-run mode, detect more precisely which actions
33943         would be performed, and don't use "...ing" verbs.
33944
33945 2005-09-18  Bruno Haible  <bruno@clisp.org>
33946
33947         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
33948         (func_import): Use join on two temporary files instead of three nested
33949         loops, in order to determine which files are new or old.
33950
33951 2005-09-18  Bruno Haible  <bruno@clisp.org>
33952
33953         * gnulib-tool (func_import): Comment out code that spits out the
33954         new files with --dry-run.
33955
33956 2005-09-18  Bruno Haible  <bruno@clisp.org>
33957
33958         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
33959
33960 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33961
33962         * lib/stat-time.h: New file.
33963         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
33964         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
33965         in a different way.
33966         (timespec_cmp): New function.
33967         * lib/utimecmp.c: Include stat-time.h.
33968         (SYSCALL_RESOLUTION): Depend on whether various struct stat
33969         members exist, not on the obsolescent ST_MTIM_NSEC.
33970         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
33971
33972 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33973
33974         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
33975
33976 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33977
33978         * MODULES.html.sh (File system functions): Add stat-time.
33979         * modules/stat-time: New file.
33980         * modules/timespec (Files): Remove m4/st_mtim.m4; this
33981         is now done in a different way, by the stat-time module.
33982         * modules/utimecmp (Depends-on): Add stat-time.
33983
33984 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
33985
33986         * m4/st_mtim.m4: Remove.  Superseded by...
33987         * m4/stat-time.m4: New file.
33988         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
33989         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
33990
33991 2005-09-15  Derek Price  <derek@ximbiot.com>
33992
33993         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
33994
33995 2005-09-15  Derek Price  <derek@ximbiot.com>
33996
33997         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
33998         * lib/regex_internal.c: Ditto, using this...
33999         (__GNUC_PREREQ): ...new macro.
34000         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
34001         using...
34002         (__GNUC_PREREQ): ...this new macro.
34003
34004         * lib/strstr.h: Include string.h. Define strstr as a macro here.
34005
34006 2005-09-15  Derek Price  <derek@ximbiot.com>
34007             Paul Eggert  <eggert@cs.ucla.edu>
34008
34009         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
34010         changes, consolidating in...
34011         * lib/regex_internal.h: ...this file.
34012
34013 2005-09-13  Jim Meyering  <jim@meyering.net>
34014
34015         * lib/canon-host.c: Filter through gnu indent and reword comments
34016         slightly.
34017         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
34018
34019 2005-09-13  Derek Price  <derek@ximbiot.com>
34020
34021         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
34022         failure.
34023         Reported by Jim Meyering  <jim@meyering.net>.
34024
34025 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34026
34027         * lib/base64.c: Typo.
34028         (base64_encode): Put b64str in initialized data section.
34029
34030 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
34031
34032         Merge glibc and coreutils changes into gnulib, plus a few
34033         extra fixes.
34034         * lib/md5.c: Use #error rather than a string.
34035         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
34036         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
34037         (__attribute__): Define to empty for non recent-GCC.
34038         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
34039         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
34040         Renamed from their non-__ counterparts, with new macros replacing
34041         them if not _LIBC.  Add __THROW attribute.
34042         (rol): Remove.
34043         (struct md5_ctx): Align buffer if using GCC.
34044         * lib/sha1.h (struct sha1_ctx): Likewise.
34045         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
34046         The old name was backwards.
34047         (NOTSWAP): Remove; not used.
34048         (rol): New macro, moved here from md5.h.
34049         (sha1_process_block): Remove a FIXME that doesn't make sense.
34050
34051 2005-09-12  Derek Price  <derek@ximbiot.com>
34052
34053         Return usable errors from canon-host.
34054         * lib/canon-host.h: New file.
34055         * lib/canon-host.c (canon_host): Wrap...
34056         (canon_host_r): ...this new function, which now relies exclusively on
34057         getaddrinfo.
34058         (ch_strerror): New function.
34059         (last_cherror): New global.
34060         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
34061         interface.
34062         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
34063         void *.
34064         (freeaddrinfo): Free ai->ai_canonname when set.
34065
34066 2005-09-12  Derek Price  <derek@ximbiot.com>
34067
34068         Make canon-host require getaddrinfo.
34069         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
34070         AC_LIBSOURCE canon-host.h.  Call...
34071         (gl_PREREQ_CANON_HOST): ...this new function, which requires
34072         gl_GETADDRINFO.
34073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
34074
34075 2005-09-12  Derek Price  <derek@ximbiot.com>
34076
34077         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
34078         LGPL.
34079         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
34080
34081 2005-09-12  Derek Price  <derek@ximbiot.com>
34082
34083         * lib/gai_strerror.c: Include config.h when available.  Include
34084         getaddrinfo.h before other headers to test interface.
34085         Reported by Larry Jones <lawrence.jones@ugs.com>.
34086
34087 2005-09-12  Derek Price  <derek@ximbiot.com>
34088             Paul Eggert  <eggert@cs.ucla.edu>
34089
34090         * modules/glob (Files): Add glob-libc.h.
34091
34092 2005-09-12  Derek Price  <derek@ximbiot.com>
34093             Paul Eggert  <eggert@cs.ucla.edu>
34094
34095         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
34096         glob_.h, glob-libc.h.
34097         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
34098
34099 2005-09-12  Derek Price  <derek@ximbiot.com>
34100             Paul Eggert  <eggert@cs.ucla.edu>
34101
34102         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
34103         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
34104         protecting things that should be done only in gnulib contexts.
34105         * lib/glob_.h: New file, containing only the glob things needed for
34106         gnulib.
34107         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
34108         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
34109         (glob, globfree, glob_pattern_p): Now defined simply in terms of
34110         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
34111         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
34112         and to respect the namespace rules better.
34113
34114 2005-09-08  Simon Josefsson  <jas@extundo.com>
34115
34116         * modules/socklen: New file.
34117
34118 2005-09-08  Simon Josefsson  <jas@extundo.com>
34119
34120         * m4/socklen.m4: New file.
34121
34122 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34123
34124         * modules/utimens (Files): Add m4/utimbuf.m4, since
34125         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
34126         Reported by Sergey Poznyakoff.
34127
34128 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34129
34130         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
34131         definitions, since that's the preferred style in glibc.
34132         Fix a minor spacing issue, and update copyright notice to match
34133         glibc's.
34134
34135 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34136
34137         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
34138
34139 2005-09-06  Simon Josefsson  <jas@extundo.com>
34140
34141         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
34142         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
34143
34144 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
34145
34146         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
34147         warning.
34148
34149 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
34150
34151         * config/srclist.txt: Add glibc bug 1302.
34152
34153 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
34154
34155         Change bitset word type from unsigned int to unsigned long int,
34156         as this has better performance on typical 64-bit hosts.
34157         Port bitset code to hosts with unusual word sizes.
34158         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
34159         (build_collating_symbol):
34160         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
34161         argument is a bitset.  This is merely a style issue, but it makes
34162         it clearer that an entire array is expected.
34163         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
34164         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
34165         Port to the case where bitset_word is not the same as unsigned int.
34166         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
34167         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
34168         Likewise.
34169         * lib/regexec.c (check_dst_limits_calc_pos_1,
34170         check_subexp_matching_top):
34171         (build_trtable, group_nodes_into_DFAstates):
34172         Likewise.
34173         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
34174         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
34175         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
34176         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
34177         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
34178         * lib/regcomp.c (optimize_subexps, lower_subexp):
34179         Work even if bitset_word has holes in its bitwise representation.
34180         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
34181         * lib/regexec.c (check_dst_limits_calc_pos_1,
34182         check_subexp_matching_top):
34183         Likewise.
34184         * lib/regex_internal.c (re_string_reconstruct):
34185         Don't assume UCHAR_MAX == 255.
34186         * lib/regex_internal.h (bitset_set_all): Likewise.
34187         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
34188         All uses changed.
34189         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
34190         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
34191         All uses changed.
34192         (BITSET_WORD_MAX): New macro.
34193         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
34194         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
34195         (bitset_empty, bitset_copy):
34196         Prefer sizeof (bitset) to multiplying it out ourselves.
34197         (bitset_not_merge): Remove; unused.
34198         (bitset_contain): Return bool, not unsigned int with one bit on.
34199         All callers changed.
34200         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
34201         alignment than re_node_set; do this by defining a new internal
34202         type struct dests_alloc and using it to allocate memory.
34203
34204 2005-09-05  Bruno Haible  <bruno@clisp.org>
34205
34206         * gnulib-tool (func_import): Fix comparison in handling of symbolic
34207         links.
34208
34209 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
34210
34211         * modules/size_max (Makefile.am): Add size_max.h
34212
34213 2005-09-04  Derek Price  <derek@ximbiot.com>
34214
34215         * gnulib-tool (func_import): Fix reversed $symbolic logic.
34216
34217 2005-09-03  Simon Josefsson  <jas@extundo.com>
34218
34219         * gnulib-tool: Fix typo.
34220
34221 2005-09-03  Simon Josefsson  <jas@extundo.com>
34222
34223         * config/srclist.txt: Add glibc bug 1293.
34224
34225 2005-09-03  Derek Price  <derek@ximbiot.com>
34226
34227         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
34228         From Larry Jones <lawrence.jones@ugs.com>.
34229
34230 2005-09-02  Simon Josefsson  <jas@extundo.com>
34231
34232         * modules/socklen: New file.
34233
34234 2005-09-02  Simon Josefsson  <jas@extundo.com>
34235
34236         * modules/havelib: New module.
34237
34238         * modules/gettext, modules/iconv, modules/lock, modules/readline:
34239         Use havelib.
34240
34241 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
34242
34243         Check for arithmetic overflow when calculating sizes, to prevent
34244         some buffer-overflow issues.  These patches are conservative, in the
34245         sense that when I couldn't determine whether an overflow was possible,
34246         I inserted a run-time check.
34247         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
34248         macros.
34249         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
34250         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
34251         (re_xnrealloc, re_x2nrealloc): New inline functions.
34252         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
34253         parse_bracket_exp):
34254         (build_equiv_class, build_charclass): Check for arithmetic overflow
34255         in size expression calculations.
34256         * lib/regex_internal.c (re_string_realloc_buffers):
34257         (build_wcs_upper_buffer, re_node_set_add_intersect):
34258         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
34259         (re_dfa_add_node, register_state): Likewise.
34260         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
34261         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
34262         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
34263         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
34264
34265 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
34266
34267         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
34268         m4/ulonglong.m4.  Problem reported by Martin Lambers.
34269
34270 2005-09-02  Bruno Haible  <bruno@clisp.org>
34271
34272         Support for lib vs. lib64 distinction on biarch platforms.
34273         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
34274         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
34275         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
34276
34277 2005-09-02  Bruno Haible  <bruno@clisp.org>
34278
34279         * gnulib-tool (import): In the other first-use case, provide defaults
34280         as well.
34281
34282 2005-09-02  Bruno Haible  <bruno@clisp.org>
34283
34284         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
34285         patches not yet found in the latest gettext release.
34286
34287 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34288
34289         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
34290         to avoid a collision with bits/local_lim.h in glibc.
34291         All uses changed.  Problem reported by Dmitry V. Levin in
34292         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
34293
34294         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
34295         bugs in int versus size_t comparisons.
34296         (re_string_context_at): Fix bug where the code assumed that
34297         Idx is signed.
34298
34299         Use bool where appropriate.
34300         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
34301         All callers changed.
34302         (calc_eclosure_iter): Likewise, for ROOT arg.
34303         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
34304         (build_charclass_op): Likewise, for NON_MATCH arg.
34305         * lib/regex_internal.c (re_string_allocate, re_string_construct):
34306         (re_string_construct_common): Likewise, for ICASE arg.
34307         * lib/regexec.c (re_search_2_stub, re_search_stub):
34308         Likewise, for RET_LEN arg.
34309         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
34310         (set_regs): Likewise, for FL_BACKTRACK arg.
34311         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
34312         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
34313         (calc_eclosure_iter, parse_bracket_exp):
34314         Use bool for internal variables that are booleans.
34315         * lib/regexec.c (re_search_internal, check_matching,
34316         proceed_next_node):
34317         (set_regs, build_sifted_states, sift_states_bkref):
34318         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
34319         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
34320         (find_collation_sequence_value):
34321         Likewise.
34322         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
34323         (re_node_set_compare):
34324         Return bool, not int. All callers changed.
34325         * lib/regexec.c (check_halt_node_context, check_dst_limits):
34326         (build_trtable, check_node_accept): Likewise.
34327         * lib/regex_internal.h: Include stdbool.h.
34328
34329         Fix bugs uncovered when converting to bool.
34330         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
34331         failure instead of charging ahead blindly.
34332         * lib/regex_internal.c (register_state): Likewise.
34333         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
34334         for freeing internal storage.
34335         (group_nodes_into_DFA_states): Use unsigned int, not int, for
34336         bitset pieces used as boolean, to avoid undefined behavior
34337         on hosts that do int overflow checking.
34338
34339 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34340
34341         * config/srclist.txt: Add glibc bugs 1285-1287.
34342
34343 2005-09-01  Jim Meyering  <jim@meyering.net>
34344
34345         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
34346         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
34347         Require gl_STAT_MACROS, too.
34348
34349 2005-09-01  Bruno Haible  <bruno@clisp.org>
34350
34351         * gnulib-tool (import): In the first-use case, provide defaults.
34352
34353 2005-09-01  Bruno Haible  <bruno@clisp.org>
34354
34355         * gnulib-tool (func_import): Remove the .tmp files.
34356
34357 2005-09-01  Bruno Haible  <bruno@clisp.org>
34358
34359         * gnulib-tool (func_import): Fix handling of symbolic links.
34360
34361 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34362
34363         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
34364         old glibc regex code mishandles strings longer than 2**31 bytes.
34365         This patch fixes this when the regex code is used in gnulib
34366         (i.e., outside glibc).
34367
34368         This patch should not affect the use of the regex code inside
34369         glibc.  No doubt this problem also needs to be handled for glibc
34370         as well, but the result will be an incompatible change to the
34371         glibc ABI, and the old ABI will have to be supported too.  That
34372         can be the the subject for another patch.
34373
34374         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
34375         governing whether the rest of this patch is active.  By default,
34376         the macro is disabled and the patch has no effect.
34377         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
34378         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
34379         (struct re_pattern_buffer, re_search, re_search_2, re_match):
34380         (re_match_2, re_set_registers): Use the new types.
34381         * lib/regex_internal.h (Idx, re_hashval_t): New types.
34382         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
34383         New macros.
34384         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
34385         (re_string_context_at, bin_tree_t, re_dfastate_t):
34386         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
34387         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
34388         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
34389         (re_string_char_size_at, re_string_wchar_at):
34390         (re_string_elem_size_at):
34391         Use the new types and macros to port to 64-bit hosts.
34392         Use unsigned types for internal values, so that the code
34393         mostly works even for arrays larger than SSIZE_MAX.
34394         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
34395         (search_duplicated_node, calc_eclosure_iter, fetch_number):
34396         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
34397         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
34398         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
34399         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
34400         (calc_inveclosure, parse_dup_op, build_range_exp):
34401         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
34402         (fetch_number, create_token_tree, mark_opt_subexp):
34403         Likewise.
34404         * lib/regex_internal.c (re_string_construct_common,
34405         create_ci_newstate):
34406         (create_cd_newstate, re_string_allocate, re_string_construct):
34407         (re_string_realloc_buffers, build_wcs_upper_buffer):
34408         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
34409         (re_string_reconstruct, re_string_peek_byte_case):
34410         (re_string_fetch_byte_case, re_string_context_at):
34411         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
34412         (re_node_set_init_copy, re_node_set_add_intersect):
34413         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
34414         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
34415         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
34416         (re_acquire_state, re_acquire_state_context, register_state):
34417         Likewise.
34418         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
34419         search_cur_bkref_entry):
34420         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
34421         (re_search_internal, re_search_2_stub, re_search_stub)
34422         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
34423         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
34424         (update_cur_sifted_state, check_dst_limits):
34425         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
34426         (check_subexp_limits, sift_states_bkref, merge_state_array):
34427         (check_subexp_matching_top, get_subexp, get_subexp_sub):
34428         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
34429         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
34430         (expand_bkref_cache, check_node_accept_bytes):
34431         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
34432         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
34433         (acquire_init_state_context, check_halt_node_context):
34434         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
34435         (sift_states_backward, clean_state_log_if_needed):
34436         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
34437         (find_recover_state, transit_state_sb, transit_state_mb):
34438         (transit_state_bkref, build_trtable, match_ctx_clean):
34439         Likewise.
34440         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
34441         to work around an assumption that REG_MISSING is negative.
34442
34443         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
34444         (seek_collating_symbol_entry) [defined _LIBC]:
34445         (lookup_collation_sequence_value) [defined _LIBC]:
34446         (build_range_exp, build_collating_symbol) [defined _LIBC]:
34447         Use prototypes rather than old-style function definitions.
34448         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
34449         (transit_state_sb) [0]:
34450         (find_collation_sequence_value) [defined _LIBC]: Likewise.
34451
34452         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
34453         rm_eo.
34454
34455         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
34456         (optimize_subexps, lower_subexp):
34457         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
34458         since the signed shift might overflow.  Use 1u<<31 instead.
34459         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
34460         Likewise.
34461         * lib/regexec.c (check_dst_limits_calc_pos_1,
34462         check_subexp_matching_top): Likewise.
34463
34464         * lib/regcomp.c (optimize_subexps, lower_subexp):
34465         Use CHAR_BIT rather than 8, for clarity.
34466         * lib/regexec.c (check_dst_limits_calc_pos_1):
34467         (check_subexp_matching_top): Likewise.
34468         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
34469         have to worry about portability issues when shifting it left.
34470         Remove no-longer-needed test for table_size > 0.
34471         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
34472         in a word, as the resulting behavior is undefined.
34473         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
34474         in one case, a <= should have been an <, and in another case the
34475         whole test was missing.
34476         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
34477         the standard name CHAR_BIT.
34478         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
34479         this is not true on one's complement and signed-magnitude hosts.
34480
34481         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
34482         next_last_offset.
34483         (struct re_dfa_t): Remove unused member states_alloc.
34484         * lib/regcomp.c (init_dfa): Don't initialize unused members.
34485
34486 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34487
34488         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
34489         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
34490         and large-file glibc and in 32-bit large-file Solaris.
34491
34492 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34493
34494         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
34495         lengths fit in regoff_t; this isn't true if regoff_t is the same
34496         width as size_t.
34497         * lib/regex.c (re_search_internal): 5th arg is LAST_START
34498         (= START + RANGE) instead of RANGE.  This avoids overflow
34499         problems when regoff_t is the same width as size_t.
34500         All callers changed.
34501         (re_search_2_stub): Check for overflow when adding the
34502         sizes of the two strings.
34503         (re_search_stub): Check for overflow when adding START
34504         to RANGE; if it occurs, substitute the extreme value.
34505
34506 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34507
34508         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
34509
34510 2005-08-31  Jim Meyering  <jim@meyering.net>
34511
34512         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
34513         a pointer-to-const.
34514         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
34515         (register_state): Likewise.
34516         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
34517         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
34518         (group_nodes_into_DFAstates): Likewise.
34519
34520 2005-08-31  Jim Meyering  <jim@meyering.net>
34521
34522         * check-module: Add a FIXME comment.
34523
34524 2005-08-31  Eric Blake  <ebb9@byu.net>
34525
34526         * modules/unistd-safer (Files): Add unistd--.h.
34527         * modules/stdio-safer (Files): Add stdio--.h.
34528
34529 2005-08-31  Derek Price  <derek@ximbiot.com>
34530
34531         * lib/getdelim.c (getdelim): Return EOF on EOF.
34532         Reported by Larry Jones <lawrence.jones@ugs.com>.
34533
34534 2005-08-31  Bruno Haible  <bruno@clisp.org>
34535
34536         Avoid unnecessary diffs in the generated lib/Makefile.am.
34537         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
34538         the generated files.
34539         (func_import): Don't set cmd.
34540
34541 2005-08-31  Bruno Haible  <bruno@clisp.org>
34542
34543         * lib/strstr.c: Include <stddef.h>, for NULL.
34544         * lib/strcasestr.c: Likewise.
34545         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34546
34547 2005-08-31  Bruno Haible  <bruno@clisp.org>
34548
34549         * gnulib-tool: New option --macro-prefix.
34550         (func_import): Use macro_prefix.
34551         (import): Handle option --macro-prefix.
34552
34553 2005-08-31  Bruno Haible  <bruno@clisp.org>
34554
34555         * gnulib-tool (import): Rename most ac_* variables to cached_*.
34556         Also use new variables cached_lgpl, cached_libtool.
34557
34558 2005-08-31  Bruno Haible  <bruno@clisp.org>
34559
34560         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
34561         always instantiating them.
34562
34563 2005-08-31  Bruno Haible  <bruno@clisp.org>
34564
34565         * gnulib-tool (func_import): Read the previous cached settings
34566         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
34567         earlier added by gnulib but are now dropped. Warn when a gnulib file
34568         overwrites a non-gnulib file.
34569
34570 2005-08-31  Bruno Haible  <bruno@clisp.org>
34571
34572         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
34573         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
34574         projects that don't keep autogenerated files in CVS. Put into
34575         actioncmd only the specified modules, not the transitive closure.
34576
34577 2005-08-31  Bruno Haible  <bruno@clisp.org>
34578
34579         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
34580         Create directories that shall be filled.
34581         (import): Don't look for gl_* macros in configure.ac. Recurse across
34582         all directories containing a gnulib-cache.m4 files, if meaningful.
34583
34584 2005-08-31  Bruno Haible  <bruno@clisp.org>
34585
34586         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
34587         (import): Set seen_libtool when we see gl_LIBTOOL.
34588
34589 2005-08-31  Bruno Haible  <bruno@clisp.org>
34590
34591         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
34592         declaration macro definitions from generated gnulib.m4.
34593
34594 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
34595
34596         * lib/iconvme.h: Add prototype for iconv_alloc.
34597
34598 2005-08-29  Simon Josefsson  <jas@extundo.com>
34599
34600         * lib/iconvme.c: Fix errno.
34601
34602 2005-08-29  Bruno Haible  <bruno@clisp.org>
34603
34604         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
34605         that it works when the directory contains spaces.
34606
34607 2005-08-29  Bruno Haible  <bruno@clisp.org>
34608
34609         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
34610
34611 2005-08-29  Bruno Haible  <bruno@clisp.org>
34612
34613         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
34614         Emit more advice.
34615
34616 2005-08-29  Bruno Haible  <bruno@clisp.org>
34617         and Stepan Kasal  <kasal@ucw.cz>
34618
34619         * check-module: If more parameters are given, check each of them
34620         separately; add more exceptions, as noted by Jim Meyering.
34621         (check_module): New procedure.
34622         (%exempt_header): Now contains all exceptions.
34623
34624 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
34625
34626         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
34627
34628 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
34629
34630         * lib/iconvme.c: Split iconv_string into iconv_alloc.
34631
34632 2005-08-28  Bruno Haible  <bruno@clisp.org>
34633
34634         * m4/gnulib-tool.m4: New file.
34635
34636 2005-08-27  Jim Meyering  <jim@meyering.net>
34637
34638         * modules/unistd-safer (Files): Add pipe-safer.c.
34639         * modules/fcntl-safer (Files): Add creat-safer.c.
34640
34641 2005-08-27  Jim Meyering  <jim@meyering.net>
34642
34643         * m4/stdlib-safer.m4: New file.  From coreutils.
34644         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
34645         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
34646         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
34647         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
34648         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
34649
34650 2005-08-27  Jim Meyering  <jim@meyering.net>
34651
34652         * lib/fopen-safer.c: Merge minor changes from coreutils.
34653         * lib/dup-safer.c: Likewise.
34654         * lib/fd-safer.c: Likewise.
34655
34656         Merge from coreutils.
34657         * lib/stdio--.h: New file.
34658         * lib/stdlib--.h: New file.
34659         * lib/mkstemp-safer.c: New file.
34660
34661         GNU tar needs these.
34662         * lib/pipe-safer.c: New file.
34663         * lib/creat-safer.c: New file.
34664         * lib/fcntl--.h (creat): Define to creat_safer.
34665         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
34666         * lib/unistd--.h (pipe): Define to pipe_safer.
34667         * lib/unistd-safer.h: Declare pipe_safer.
34668
34669 2005-08-26  Simon Josefsson  <jas@extundo.com>
34670
34671         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
34672         Haible <bruno@clisp.org>.
34673
34674 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
34675
34676         * lib/regex_internal.h: Remove all references to
34677         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
34678         or better.
34679         (bitset_not, bitset_merge, bitset_not_merge):
34680         (bitset_mask, re_string_allocate, re_string_construct):
34681         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
34682         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
34683         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
34684         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
34685         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
34686         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
34687         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
34688         (re_acquire_state_context):
34689         Remove unnecessary forward decls.
34690         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
34691         Put __attribute at function definition,
34692         now that the function decl has been removed.
34693         * lib/regex_internal.c (re_string_peek_byte_case):
34694         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
34695         Likewise.
34696
34697 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
34698
34699         * m4/regex.m4: Add AC_PREREQ(2.50).
34700         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
34701
34702 2005-08-25  Simon Josefsson  <jas@extundo.com>
34703
34704         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
34705         __fsetlocking.
34706
34707 2005-08-25  Simon Josefsson  <jas@extundo.com>
34708
34709         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
34710         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
34711         GLIBC specific code.
34712
34713 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
34714
34715         Make regex safe for g++.  This fixes one real bug (an "err"
34716         that should have been "*err").  g++ problem reported by
34717         Sam Steingold.
34718         * lib/regex_internal.h (re_calloc): New macro, consistent with
34719         re_malloc etc.  All callers of calloc changed to use re_calloc.
34720         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
34721         not int.  All callers changed.
34722         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
34723         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
34724         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
34725         (find_recover_state): Change "err" to "*err"; this fixes what
34726         appears to be a real bug.
34727         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
34728         versus int.
34729
34730 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
34731
34732         * modules/regex (Depends-on): Add malloc, since the code
34733         assumes that !malloc(0) means failure.
34734
34735 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
34736
34737         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
34738
34739         alloca modernization/simplification for regex.
34740         * lib/regex.c: Remove portability cruft for alloca.  This no longer
34741         needs to be at the start of the file, and can be moved into
34742         regex_internal.h and simplified.
34743         * lib/regex_internal.h: Include <alloca.h>.
34744         (__libc_use_alloca) [!defined _LIBC]: New macro.
34745         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
34746         now works outside glibc.
34747
34748 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
34749
34750         * config/srclist.txt: Add glibc bugs 1241, 1245.
34751
34752 2005-08-25  Jim Meyering  <jim@meyering.net>
34753
34754         * lib/open-safer.c: Include <config.h>.
34755         Otherwise, we'd lose LARGEFILE support in any file using
34756         e.g. "fcntl--.h"
34757
34758 2005-08-25  Bruno Haible  <bruno@clisp.org>
34759
34760         * m4/minmax.m4: Require autoconf 2.52.
34761         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
34762         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
34763         alternatives of translit over the alphabet.
34764         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
34765
34766 2005-08-24  Simon Josefsson  <jas@extundo.com>
34767
34768         * tests/test-getpass.c: New file.
34769
34770 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34771
34772         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
34773         for GNU regex features.
34774
34775 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34776
34777         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
34778         * lib/regex.h (regerror): Likewise.
34779
34780         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
34781         requires this.  (The code never needed it.)
34782
34783         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
34784         All uses of recently-renamed identifiers changed to use the new,
34785         POSIX-compliant names.  The code will build and run just fine
34786         without these changes, but it's better to eat our own dog food
34787         and use the standard-conforming names.
34788
34789         * lib/regex.h: Fix a multitude of POSIX name space violations.
34790         These changes have an effect only for programs that define
34791         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
34792         do not change anything for programs compiled in the normal way.
34793         Also, there is no effect on the ABI.
34794
34795         (_REGEX_SOURCE): New macro.
34796         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
34797         defined and _GNU_SOURCE is not; this fixes a name space violation.
34798
34799         Rename the following macros to obey POSIX requirements.
34800         The old names are still visible as macros if _REGEX_SOURCE is defined.
34801         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
34802         RE_BACKSLASH_ESCAPE_IN_LISTS.
34803         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
34804         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
34805         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
34806         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
34807         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
34808         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
34809         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
34810         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
34811         (REG_INTERVALS): renamed from RE_INTERVALS.
34812         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
34813         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
34814         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
34815         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
34816         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
34817         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
34818         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
34819         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
34820         RE_UNMATCHED_RIGHT_PAREN_ORD.
34821         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
34822         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
34823         (REG_DEBUG): renamed from RE_DEBUG.
34824         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
34825         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
34826         unusual, since we can't clash with the POSIX REG_ICASE.
34827         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
34828         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
34829         (REG_NO_SUB): renamed from RE_NO_SUB.
34830         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
34831         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
34832         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
34833         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
34834         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
34835         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
34836         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
34837         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
34838         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
34839         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
34840         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
34841         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
34842         RE_SYNTAX_POSIX_MINIMAL_BASIC.
34843         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
34844         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
34845         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
34846         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
34847         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
34848         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
34849         (REG_FIXED): Renamed from REGS_FIXED.
34850         (REG_NREGS): Renamed from RE_NREGS.
34851
34852         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
34853         of other REG_* macros, since POSIX says the user is allowed to
34854         #undef these macros selectively.
34855
34856         (reg_errcode_t): Update comment stating what other tables need
34857         to be consistent.
34858
34859         Rename the following enum values to obey POSIX requirements.
34860         The old names are still visible as macros.
34861         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
34862         is not defined, since GNU is supposed to be a superset of POSIX as
34863         much as possible, and since we want reg_errcode_t to be a signed
34864         type for implementation consistency.
34865         (_REG_NOERROR): Renamed from REG_NOERROR.
34866         (_REG_NOMATCH): Renamed from REG_NOMATCH.
34867         (_REG_BADPAT): Renamed from REG_BADPAT.
34868         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
34869         (_REG_ECTYPE): Renamed from REG_ECTYPE.
34870         (_REG_EESCAPE): Renamed from REG_EESCAPE.
34871         (_REG_ESUBREG): Renamed from REG_ESUBREG.
34872         (_REG_EBRACK): Renamed from REG_EBRACK.
34873         (_REG_EPAREN): Renamed from REG_EPAREN.
34874         (_REG_EBRACE): Renamed from REG_EBRACE.
34875         (_REG_BADBR): Renamed from REG_BADBR.
34876         (_REG_ERANGE): Renamed from REG_ERANGE.
34877         (_REG_ESPACE): Renamed from REG_ESPACE.
34878         (_REG_BADRPT): Renamed from REG_BADRPT.
34879         (_REG_EEND): Renamed from REG_EEND.
34880         (_REG_ESIZE): Renamed from REG_ESIZE.
34881         (_REG_ERPAREN): Renamed from REG_ERPAREN.
34882         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
34883         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
34884         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
34885         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
34886
34887         (_REG_RE_NAME, _REG_RM_NAME): New macros.
34888         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
34889         changed.  But support the old name if the new one is not defined
34890         and if _REGEX_SOURCE.
34891
34892         Change the following member names in struct re_pattern_buffer.
34893         The old names are still supported if !_REGEX_SOURCE.
34894         The new names are always supported, regardless of _REGEX_SOURCE.
34895         (re_buffer): Renamed from buffer.
34896         (re_allocated): Renamed from allocated.
34897         (re_used): Renamed from used.
34898         (re_syntax): Renamed from syntax.
34899         (re_fastmap): Renamed from fastmap.
34900         (re_translate): Renamed from translate.
34901         (re_can_be_null): Renamed from can_be_null.
34902         (re_regs_allocated): Renamed from regs_allocated.
34903         (re_fastmap_accurate): Renamed from fastmap_accurate.
34904         (re_no_sub): Renamed from no_sub.
34905         (re_not_bol): Renamed from not_bol.
34906         (re_not_eol): Renamed from not_eol.
34907         (re_newline_anchor): Renamed from newline_anchor.
34908
34909         Change the following member names in struct re_registers.
34910         The old names are still supported if !_REGEX_SOURCE.
34911         The new names are always supported, regardless of _REGEX_SOURCE.
34912         (rm_num_regs): Renamed from num_regs.
34913         (rm_start): Renamed from start.
34914         (rm_end): Renamed from end.
34915
34916         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
34917         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
34918         Prepend __ to parameter names.
34919
34920         Undo yesterday's changes.
34921
34922 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34923
34924         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
34925         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
34926         lib/regex.c.
34927
34928 2005-08-24  Jim Meyering  <jim@meyering.net>
34929
34930         Sync from coreutils.
34931         * m4/fcntl-safer.m4: New file.
34932
34933         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
34934         and object files for this module.
34935
34936 2005-08-24  Jim Meyering  <jim@meyering.net>
34937
34938         Sync from coreutils.
34939         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
34940
34941 2005-08-24  Jim Meyering  <jim@meyering.net>
34942
34943         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
34944         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
34945
34946 2005-08-24  Jim Meyering  <jim@meyering.net>
34947
34948         * modules/fcntl-safer: New module.
34949         * modules/fts (Depends-on): Add fcntl-safer.
34950         * MODULES.html.sh (File descriptor based Input/Output):
34951         Add fcntl-safer.
34952
34953 2005-08-24  Bruno Haible  <bruno@clisp.org>
34954
34955         Support for unit test modules.
34956         * modules/README: Mention tests modules.
34957         * modules/TEMPLATE-TESTS: New file.
34958         * gnulib-tool: New options --extract-tests-module, --with-tests and
34959         --tests-base (unused for the moment).
34960         (testsbase, inctests): New variables.
34961         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
34962         (func_verify_module): Exclude TEMPLATE-TESTS.
34963         (func_verify_nontests_module, func_verify_tests_module): New functions.
34964         (func_get_dependencies): Add implicit dependency for tests modules.
34965         (func_get_tests_module): New function.
34966         (func_modules_transitive_closure): When --with-tests was specified,
34967         include the unit tests as well, unless explicitly avoided.
34968         (func_emit_lib_Makefile_am): Ignore the tests modules here.
34969         (func_emit_tests_Makefile_am): New function.
34970         (func_create_testdir): When --with-tests was specified, emit a
34971         tests/ directory.
34972         * MODULES.html.sh (Future developments): Update.
34973
34974 2005-08-24  Bruno Haible  <bruno@clisp.org>
34975
34976         * modules/tls-tests: New file.
34977         * tests/test-tls.c: New file, from GNU gettext.
34978
34979 2005-08-24  Bruno Haible  <bruno@clisp.org>
34980
34981         * modules/lock-tests: New file.
34982         * tests/test-lock.c: New file, from GNU gettext.
34983
34984 2005-08-24  Bruno Haible  <bruno@clisp.org>
34985
34986         * lib/lock.h: Add multiple inclusion guard.
34987         * lib/tls.h: Add multiple inclusion guard.
34988
34989 2005-08-24  Bruno Haible  <bruno@clisp.org>
34990
34991         * gnulib-tool: Add support for the --aux-dir option to
34992         --create-testdir, --create-megatestdir, --test, --megatest.
34993         (func_create_testdir, func_create_megatestdir): Optionally emit a
34994         AC_CONFIG_AUX_DIR directive.
34995         (create-testdir, create-megatestdir, test, megatest): Provide a
34996         default value for $auxdir.
34997
34998 2005-08-24  Bruno Haible  <bruno@clisp.org>
34999
35000         * gnulib-tool (import): Use compound statement instead of subshell
35001         where possible.
35002
35003 2005-08-24  Bruno Haible  <bruno@clisp.org>
35004
35005         * gnulib-tool (import): Change --aux-dir default to "build-aux".
35006
35007 2005-08-24  Bruno Haible  <bruno@clisp.org>
35008
35009         * gnulib-tool (func_version): Update.
35010
35011 2005-08-24  Bruno Haible  <bruno@clisp.org>
35012
35013         * gnulib-tool (func_import, func_create_testdir,
35014         func_create_megatestdir): Quote all autoconf macro arguments.
35015
35016 2005-08-24  Bruno Haible  <bruno@clisp.org>
35017
35018         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
35019         option --force, because --force causes the aclocal.m4 of each
35020         subdirectory to be newer than the corresponding config.h.in.
35021
35022 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35023
35024         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
35025         All contents moved to gl_REGEX.
35026         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
35027         assume that it does.
35028
35029 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35030
35031         * lib/regex.h (REG_NOSYS)
35032         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
35033         Define, since POSIX requires it as of 2001.
35034         (_REG_ENOSYS)
35035         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
35036         New private symbol, used to keep the enum signed in all cases.
35037         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
35038         Youngman in
35039         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
35040
35041         * lib/regex_internal.c (re_string_skip_chars, register_state):
35042         (calc_state_hash):
35043         Remove forward decls; no longer needed now that we use prototypes.
35044         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
35045         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
35046         (clean_state_log_if_needed): Likewise.
35047
35048 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35049
35050         * config/srclist.txt: Add glibc bugs 1231-1233.
35051
35052 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35053
35054         Fix problems reported by Sam Steingold in
35055         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
35056         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
35057         assumed that reg_errcode_t is a signed type, which is not
35058         necessarily true if _XOPEN_SOURCE is not defined.
35059         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
35060         since some compilers warn about it otherwise.
35061
35062 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35063
35064         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
35065         (init_word_char, create_initial_state, duplicate_node_closure):
35066         (fetch_token, peek_token_bracket, build_range_exp):
35067         (build_collating_symbol): Remove forward decls; no longer needed
35068         now that we use prototypes.
35069
35070         * lib/regcomp.c:
35071         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
35072         (re_compile_fastmap_iter, regcomp, regerror, regfree):
35073         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
35074         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
35075         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
35076         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
35077         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
35078         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
35079         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
35080         (build_range_exp, build_collating_symbol, parse_bracket_exp):
35081         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
35082         (build_charclass, build_charclass_op, fetch_number, create_tree):
35083         (create_token_tree, mark_opt_subexp, duplicate_tree):
35084         Use prototypes rather than old-style definitions.
35085
35086         * lib/regex_internal.c:
35087         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
35088         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
35089         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35090         (re_string_reconstruct, re_string_peek_byte_case):
35091         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
35092         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35093         (re_node_set_init_copy, re_node_set_add_intersect):
35094         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35095         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35096         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35097         (re_acquire_state, re_acquire_state_context, register_state):
35098         (create_ci_newstate, create_cd_newstate, free_state):
35099         Likewise.
35100         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
35101         re_search_2):
35102         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
35103         (re_search_internal, prune_impossible_nodes):
35104         (acquire_init_state_context, check_matching, static):
35105         (check_halt_node_context, check_halt_state_context, proceed_next_node):
35106         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
35107         (update_regs, sift_states_backward, build_sifted_states):
35108         (clean_state_log_if_needed, merge_state_array):
35109         (update_cur_sifted_state, add_epsilon_src_nodes):
35110         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
35111         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
35112         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
35113         (find_recover_state, check_subexp_matching_top, transit_state_mb):
35114         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
35115         (check_arrival, check_arrival_add_next_nodes):
35116         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35117         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35118         (check_node_accept_bytes, check_node_accept, extend_buffers):
35119         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
35120         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
35121         (sift_ctx_init):
35122         Likewise.
35123
35124         * lib/regex_internal.h:
35125         (re_string_allocate, re_string_construct, re_string_reconstruct):
35126         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
35127         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
35128         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
35129         (re_string_context_at, re_string_peek_byte_case):
35130         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
35131         is defined, since we now use prototypes always.
35132
35133         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
35134         C89 or better.  All uses removed.
35135
35136 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35137
35138         * config/srclist.txt: Add glibc bugs 1220-1227.
35139
35140 2005-08-20  Jim Meyering  <jim@meyering.net>
35141
35142         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
35143         of unused local, dfa.
35144
35145 2005-08-20  Bruno Haible  <bruno@clisp.org>
35146
35147         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
35148
35149 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35150
35151         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
35152         (re_node_set_insert_last, re_dfa_add_node):
35153         Rename local variables to avoid GCC shadowing warnings.
35154
35155 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35156
35157         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
35158         [defined lint]: Suppress bogus uninitialized-variable warnings.
35159
35160         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
35161         and let the caller return REG_ESPACE if out of space.  This
35162         removes an uninitialied-variable warning with GCC 4.0.1, and also
35163         avoids taking the address of a local variable.  All callers
35164         changed.
35165
35166 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35167
35168         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
35169         $LIBCSRC/posix/regexec.c.
35170         Add glibc bug 1217 for regcomp.c.
35171
35172 2005-08-19  Jim Meyering  <jim@meyering.net>
35173
35174         * lib/regexec.c (proceed_next_node): Redo local variables to
35175         avoid GCC shadowing warnings.
35176
35177 2005-08-18  Bruno Haible  <bruno@clisp.org>
35178
35179         * lib/strstr.c (strstr): Fix return value in multibyte case.
35180         * lib/strcasestr.c (strcasestr): Likewise.
35181
35182 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35183
35184         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
35185
35186 2005-08-17  Jim Meyering  <jim@meyering.net>
35187
35188         Make the %s format (seconds since the epoch) work for a negative
35189         number and when used with a zero-padded field width, e.g. %015s.
35190
35191         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
35192         label so that it precedes the code to set `digits'.  Otherwise,
35193         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
35194         print `00-22'.  Now, it prints `-0022', as it should.
35195
35196 2005-08-17  Bruno Haible  <bruno@clisp.org>
35197
35198         * modules/strstr (Files): Add m4/mbrtowc.m4.
35199         (Depends-on): Add mbuiter.
35200
35201 2005-08-17  Bruno Haible  <bruno@clisp.org>
35202
35203         * modules/strcasestr: New file.
35204         * MODULES.html.sh (String handling, based on ANSI C 89): Add
35205         strcasestr.
35206
35207 2005-08-17  Bruno Haible  <bruno@clisp.org>
35208
35209         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
35210
35211 2005-08-17  Bruno Haible  <bruno@clisp.org>
35212
35213         * modules/mbuiter: New file.
35214         * MODULES.html.sh (Extended multibyte and wide character utilities):
35215         Add mbuiter.
35216
35217 2005-08-17  Bruno Haible  <bruno@clisp.org>
35218
35219         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
35220         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
35221
35222 2005-08-17  Bruno Haible  <bruno@clisp.org>
35223
35224         * m4/strcasestr.m4: New file.
35225
35226 2005-08-17  Bruno Haible  <bruno@clisp.org>
35227
35228         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
35229         * lib/strstr.c: Completely rewritten, with multibyte locale support.
35230
35231 2005-08-17  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/strcasestr.h: New file.
35234         * lib/strcasestr.c: New file.
35235
35236 2005-08-17  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/strcasecmp.c: Use mbuiter.h.
35239
35240 2005-08-17  Bruno Haible  <bruno@clisp.org>
35241
35242         * lib/mbuiter.h: New file.
35243
35244 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
35245
35246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
35247         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
35248         and gl_GETOPT are both invoked via different paths (as happens
35249         with GNU tar CVS because it uses both argp and getopt), the former
35250         wins.
35251
35252 2005-08-16  Bruno Haible  <bruno@clisp.org>
35253
35254         * modules/tls: New file.
35255         * MODULES.html.sh (Multithreading): Add tls.
35256
35257 2005-08-16  Bruno Haible  <bruno@clisp.org>
35258
35259         * modules/strnlen1: New file.
35260         * MODULES.html.sh (String handling): Add strnlen1.
35261
35262 2005-08-16  Bruno Haible  <bruno@clisp.org>
35263
35264         * modules/strcase (Files): Add m4/mbrtowc.m4.
35265         (Depends-on): Add strnlen1, mbchar.
35266
35267 2005-08-16  Bruno Haible  <bruno@clisp.org>
35268
35269         * modules/mbiter: New file.
35270         * MODULES.html.sh (Extended multibyte and wide character utilities):
35271         Add mbiter.
35272
35273 2005-08-16  Bruno Haible  <bruno@clisp.org>
35274
35275         * modules/mbfile: New file.
35276         * MODULES.html.sh (Extended multibyte and wide character utilities):
35277         Add mbfile.
35278
35279 2005-08-16  Bruno Haible  <bruno@clisp.org>
35280
35281         * modules/mbchar: New file.
35282         * MODULES.html.sh (Extended multibyte and wide character utilities):
35283         New section.
35284
35285 2005-08-16  Bruno Haible  <bruno@clisp.org>
35286
35287         * m4/tls.m4: New file, from GNU gettext.
35288
35289 2005-08-16  Bruno Haible  <bruno@clisp.org>
35290
35291         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
35292         always.
35293         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
35294
35295 2005-08-16  Bruno Haible  <bruno@clisp.org>
35296
35297         * m4/mbiter.m4: New file.
35298
35299 2005-08-16  Bruno Haible  <bruno@clisp.org>
35300
35301         * m4/mbfile.m4: New file.
35302
35303 2005-08-16  Bruno Haible  <bruno@clisp.org>
35304
35305         * m4/mbchar.m4: New file.
35306
35307 2005-08-16  Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/tls.h: New file, from GNU gettext.
35310         * lib/tls.c: New file, from GNU gettext.
35311
35312 2005-08-16  Bruno Haible  <bruno@clisp.org>
35313
35314         * lib/strnlen1.h: New file.
35315         * lib/strnlen1.c: New file.
35316
35317 2005-08-16  Bruno Haible  <bruno@clisp.org>
35318
35319         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
35320         (mbi_init): Update.
35321         (mbi_avail, mbi_advance): Let the iteration end before the terminating
35322         NUL byte, not after it.
35323
35324 2005-08-16  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/strcase.h (strcasecmp): Add note in comments.
35327         * lib/strncasecmp.c: Use code from strcasecmp.c.
35328         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
35329         (strcasecmp): Work correctly in multibyte locales.
35330
35331 2005-08-16  Bruno Haible  <bruno@clisp.org>
35332
35333         * lib/mbiter.h: New file.
35334
35335 2005-08-16  Bruno Haible  <bruno@clisp.org>
35336
35337         * lib/mbfile.h: New file.
35338
35339 2005-08-16  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/mbchar.h: New file.
35342         * lib/mbchar.c: New file.
35343
35344 2005-08-16  Bruno Haible  <bruno@clisp.org>
35345
35346         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
35347         the valid ones. Makes the comparison operations transitive:
35348         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
35349         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
35350
35351 2005-08-15  Simon Josefsson  <jas@extundo.com>
35352
35353         * modules/ssize_t (License): Change to 'unlimited'.
35354
35355         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
35356
35357 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35358
35359         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
35360         Add comments for each pending glibc patch.
35361
35362 2005-08-15  Bruno Haible  <bruno@clisp.org>
35363
35364         * lib/regex.h (__restrict_arr): Don't define to __restrict if
35365         __cplusplus is defined.
35366
35367 2005-08-14  Jim Meyering  <jim@meyering.net>
35368
35369         Sync from coreutils.
35370
35371         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
35372         Use the hash-table-based cycle-detection code not just when
35373         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
35374         Reported by James Youngman in
35375         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
35376         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
35377         FTS_TIGHT_CYCLE_CHECK.
35378         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
35379         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
35380         once again.
35381         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
35382         * lib/fts.c (fd_safer): Remove decl.
35383         Include fcntl--.h rather than unistd-safer.h
35384         (fts_safe_changedir): Don't call fd_safer; no longer needed
35385         now that we include fcntl--.h.
35386
35387 2005-08-12  Simon Josefsson  <jas@extundo.com>
35388
35389         * modules/getndelim2: Use ssize_t module.
35390         * modules/getnline: Likewise.
35391         * modules/safe-read: Likewise.
35392         * modules/xreadlink: Likewise.
35393
35394         * modules/ssize_t: New file.
35395
35396 2005-08-12  Simon Josefsson  <jas@extundo.com>
35397
35398         * m4/readline.m4: Look for termcap, curses or ncurses if required.
35399
35400 2005-08-12  Simon Josefsson  <jas@extundo.com>
35401
35402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35403         ssize_t.
35404
35405 2005-08-12  Simon Josefsson  <jas@extundo.com>
35406
35407         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
35408         readline, getdelim and check_version.
35409         (Support for systems lacking ISO C 99: Sizes of integer types):
35410         Add size_max.
35411
35412 2005-08-12  Bruno Haible  <bruno@clisp.org>
35413
35414         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
35415
35416 2005-08-11  Simon Josefsson  <jas@extundo.com>
35417
35418         * modules/readline: New file.
35419
35420         * modules/strnlen (Files): Add strnlen.h.
35421
35422 2005-08-11  Simon Josefsson  <jas@extundo.com>
35423
35424         * m4/readline.m4: New file.
35425
35426 2005-08-11  Simon Josefsson  <jas@extundo.com>
35427
35428         * lib/readline.h, readline.c: New file.
35429
35430 2005-08-11  Simon Josefsson  <jas@extundo.com>
35431
35432         * doc/gnulib.texi (Initial import, Finishing touches): Mention
35433         gl_AVOID.
35434
35435 2005-08-11  Bruno Haible  <bruno@clisp.org>
35436
35437         * lib/strnlen.h (strnlen): Change parameter name to match comment.
35438
35439 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
35440
35441         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
35442
35443 2005-08-10  Simon Josefsson  <jas@extundo.com>
35444
35445         * tests/test-iconvme.c: New file.
35446
35447 2005-08-10  Simon Josefsson  <jas@extundo.com>
35448
35449         * m4/strnlen.m4: New file.
35450
35451         * m4/strndup.m4: Don't check for strnlen declaration, done in
35452         strnlen.m4.
35453
35454 2005-08-10  Simon Josefsson  <jas@extundo.com>
35455
35456         * lib/strndup.c: Use strnlen.h.
35457
35458         * lib/strnlen.h: New file.
35459
35460 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35461
35462         * README: Typos.
35463
35464 2005-08-02  Simon Josefsson  <jas@extundo.com>
35465
35466         * modules/readline: New file.
35467
35468 2005-08-02  Simon Josefsson  <jas@extundo.com>
35469
35470         * modules/getdelim: New file.
35471
35472         * modules/getline: Rewrite, don't use getndelim2.
35473
35474 2005-08-02  Simon Josefsson  <jas@extundo.com>
35475
35476         * m4/getline.m4: Separate out getdelim stuff into separate module.
35477
35478         * m4/getdelim.m4: New file.
35479
35480 2005-08-02  Simon Josefsson  <jas@extundo.com>
35481
35482         * lib/getline.h, getline.c: Rewrite.
35483
35484         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
35485
35486 2005-07-31  Bruno Haible  <bruno@clisp.org>
35487
35488         * lib/lock.h (gl_lock_initializer): New macro.
35489         (gl_lock_define_initialized): Use it.
35490         (gl_rwlock_initializer): New macro.
35491         (gl_rwlock_define_initialized): Use it.
35492         (gl_recursive_lock_initializer): New macro.
35493         (gl_recursive_lock_define_initialized): Use it.
35494
35495 2005-07-30  Karl Berry  <karl@gnu.org>
35496
35497         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
35498         Report from Ben Pfaff, regarding getopt.
35499
35500 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
35501
35502         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
35503         normal way.
35504         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
35505         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
35506         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
35507         (gl_GETOPT): Use the new macros.  Most of the implementation
35508         is moved to the new macros.  This is for programs like Emacs
35509         that don't want all the functionality of gl_GETOPT.
35510
35511 2005-07-26  Bruno Haible  <bruno@clisp.org>
35512
35513         * m4/lock.m4: Update from GNU gettext.
35514
35515 2005-07-26  Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/lock.h: Update from GNU gettext.
35518         * lib/lock.c: Update from GNU gettext.
35519
35520 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
35521
35522         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
35523         obsolescent AC_TRY_RUN.  Include the default includes files, for
35524         'exit'.
35525
35526 2005-07-24  Bruno Haible  <bruno@clisp.org>
35527
35528         * modules/visibility: New file.
35529         * MODULES.html.sh (Misc): Add visibility.
35530
35531 2005-07-24  Bruno Haible  <bruno@clisp.org>
35532
35533         * m4/visibility.m4: New file.
35534
35535 2005-07-24  Bruno Haible  <bruno@clisp.org>
35536
35537         * doc/visibility.texi: New file.
35538
35539 2005-07-22  Bruno Haible  <bruno@clisp.org>
35540
35541         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
35542         $(ALLOCA_H), redundant through BUILT_SOURCES.
35543         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
35544         redundant through BUILT_SOURCES.
35545         * modules/byteswap (Makefile.am): Remove explicit dependency on
35546         $(BYTESWAP_H), redundant through BUILT_SOURCES.
35547         * modules/fnmatch (Makefile.am): Remove explicit dependency on
35548         $(FNMATCH_H), redundant through BUILT_SOURCES.
35549         * modules/getopt (Makefile.am): Remove explicit dependency on
35550         $(GETOPT_H), redundant through BUILT_SOURCES.
35551         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
35552         redundant through BUILT_SOURCES.
35553         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
35554         redundant through BUILT_SOURCES.
35555         * modules/stdbool (Makefile.am): Remove explicit dependency on
35556         $(STDBOOL_H), redundant through BUILT_SOURCES.
35557         * modules/stdint (Makefile.am): Remove explicit dependency on
35558         $(STDINT_H), redundant through BUILT_SOURCES.
35559         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
35560         Remove explicit dependency on $(SYSEXITS_H).
35561         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
35562
35563 2005-07-18  Simon Josefsson  <jas@extundo.com>
35564
35565         * lib/check-version.c (check_version): Accept identical versions too.
35566
35567 2005-07-18  Bruno Haible  <bruno@clisp.org>
35568
35569         * modules/lock: New file.
35570         * MODULES.html.sh (Multithreading): New section.
35571
35572 2005-07-18  Bruno Haible  <bruno@clisp.org>
35573
35574         * m4/lock.m4: New file, from GNU gettext.
35575
35576 2005-07-18  Bruno Haible  <bruno@clisp.org>
35577
35578         * lib/lock.h: New file, from GNU gettext.
35579         * lib/lock.c: New file, from GNU gettext.
35580
35581 2005-07-18  Bruno Haible  <bruno@clisp.org>
35582
35583         * lib/lock.h (gl_once_t): New type.
35584         (gl_once_define, gl_once): New macros.
35585         * lib/lock.c (fresh_once): New variable.
35586         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
35587         functions.
35588
35589 2005-07-16  Simon Josefsson  <jas@extundo.com>
35590
35591         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
35592         workaround, suggested by Bruno.
35593
35594 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35595
35596         * modules/xalloc (Depends-on): Add xalloc-die.
35597         * modules/xvasprintf (Depends-on): Add xalloc-die.
35598
35599 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35600
35601         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
35602         with a minor change.
35603
35604 2005-07-15  Bruno Haible  <bruno@clisp.org>
35605
35606         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
35607         When using lib/poll.c, define poll as rpl_poll.
35608
35609 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
35610
35611         * modules/argp (Depends-on): Remove unlocked-io.
35612
35613 2005-07-14  Derek Price  <derek@ximbiot.com>
35614
35615         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
35616         for glob symlink bug.
35617
35618 2005-07-14  Bruno Haible  <bruno@clisp.org>
35619
35620         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
35621         Instead, test for *_unlocked function declarations directly.
35622
35623 2005-07-11  Simon Josefsson  <jas@extundo.com>
35624
35625         * modules/size_max: New file.
35626
35627         * modules/xsize: Depend on size_max module for size_max.m4.
35628
35629 2005-07-11  Simon Josefsson  <jas@extundo.com>
35630
35631         * lib/size_max.h: New file.
35632
35633 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
35634
35635         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
35636         copyright symbol and the year.
35637         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
35638         (version_etc_va): Use parameterized copyright notice.
35639         Reword to conform to the current GNU coding standards.
35640
35641 2005-07-11  Karl Berry  <karl@gnu.org>
35642
35643         * doc/gnulib.texi (Quoting): new node.
35644         (Initial import): more info, from Patrice.
35645
35646 2005-07-11  Bruno Haible  <bruno@clisp.org>
35647
35648         * gnulib-tool (func_usage): Document option --avoid.
35649         (Command line options): Handle --avoid.
35650         (func_acceptable): New function.
35651         (func_modules_transitive_closure): Use it.
35652
35653 2005-07-11  Bruno Haible  <bruno@clisp.org>
35654
35655         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
35656         Reported by Jim Meyering.
35657
35658 2005-07-10  Bruno Haible  <bruno@clisp.org>
35659
35660         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
35661         Needed when size_t is smaller than 'unsigned int'.
35662         Reported by Paul Eggert.
35663
35664 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
35665
35666         * modules/argp (Depends-on): Add unlocked-io
35667
35668 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
35669
35670         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
35671         block of defines.
35672
35673 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35674
35675         * config/srclist.txt: Comment out regcomp.c, since we have a porting
35676         fix now.
35677
35678 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
35679         and Paul Eggert  <eggert@cs.ucla.edu>
35680
35681         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
35682         in wint_t, not wchar_t.  Remove now-unnecessary cast.
35683
35684 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35685
35686         * modules/regex (Files): Add lib/regex_internal.c,
35687         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
35688         (Depends-on): Add extensions.
35689         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
35690
35691 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35692
35693         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
35694         pathconf.
35695         * m4/same.m4 (gl_SAME): Likewise.
35696         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
35697
35698         * m4/regex.m4: Adjust to new libc regex implementation.
35699         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
35700         all the .c and .h parts of (the new) regex.
35701         Quote the m4 stuff better.
35702         Check for RE_ICASE bug of old gnulib.
35703         Check for REG_STARTEND of recent libc.
35704         Rename local variables from jm_* to gl_*.
35705         Quote operand of "test -f".
35706         Say "recent enough" version of libc, not "version 2".
35707         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
35708         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
35709         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
35710         Remove check for btowc, isascii.
35711         Require AM_LANGINFO_CODESET.
35712
35713 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35714
35715         * lib/regex.c, regex.h: Sync from libc.
35716         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
35717         * lib/regexec.c:
35718         New files, synced from libc, except that regex_internal.h
35719         currently has a small porting fix.
35720
35721 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35722
35723         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
35724         regex_internal.c, regexec.c.
35725         Add regex_internal.h too, but as a comment, since the libc version
35726         is currently broken in gnulib mode.
35727
35728 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35729
35730         Support programs like Emacs that use gnulib but not gettext.
35731         * MODULES.html.sh (Internationalization functions): Add gettext-h.
35732         * modules/gettext-h: New file.
35733         * modules/gettext (Files): Remove lib/gettext.h.
35734         (Depends-on): Add gettext-h.
35735         (Makefile.am): Remove lib_SOURCES.
35736         * modules/argmatch, modules/c-stack, modules/closeout:
35737         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
35738         * modules/execute, modules/file-type, modules/getaddrinfo:
35739         * modules/getopt, modules/human, modules/javacomp:
35740         * modules/javaexec, modules/mkdir-p, modules/obstack:
35741         * modules/openat, modules/pagealign_alloc, modules/pipe:
35742         * modules/quotearg, modules/regex, modules/rpmatch:
35743         * modules/unicodeio, modules/userspec, modules/version-etc:
35744         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
35745         * modules/xsetenv:
35746         Depend on gettext-h, not gettext.
35747
35748 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35749
35750         * gnulib-tool (func_import): Add support for 'public domain' license.
35751         * modules/alloca, modules/atexit, modules/memmove:
35752         Now public domain, not GPL.
35753         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
35754         * modules/realloc, modules/strerror, modules/strtod:
35755         Now LGPL, not GPL.
35756
35757 2005-07-05  Bruno Haible  <bruno@clisp.org>
35758
35759         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
35760         autoconf CVS. Needed for mingw.
35761
35762 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35763
35764         Remove the dependency of the strftime module on the tzset module.
35765         * modules/strftime (Depends-on): Remove dependency on tzset.
35766
35767 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35768
35769         Remove the dependency of the strftime module on the tzset module.
35770         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
35771         gl_FUNC_TZSET_CLOBBER.
35772
35773 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35774
35775         Remove the dependency of the strftime module on the tzset module.
35776         * lib/strftime.c (my_strftime)
35777         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
35778         Copy the input structure, to work around some of the bug with
35779         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
35780         Solaris releases, you should also use the tzset module, but we won't
35781         require it as a dependency any more since we don't want LGPLed code
35782         to depend on GPLed code.
35783
35784 2005-07-02  Jim Meyering  <jim@meyering.net>
35785
35786         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
35787         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
35788         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
35789         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
35790
35791 2005-07-02  Jim Meyering  <jim@meyering.net>
35792
35793         * lib/backupfile.c (backup_args): Change a `0' to NULL.
35794
35795 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35796
35797         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
35798         declares only 'struct timespec;' (!).
35799
35800 2005-07-01  Jim Meyering  <jim@meyering.net>
35801
35802         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
35803         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
35804         * lib/save-cwd.c, tempname.c:
35805         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35806         and don't include <sys/file.h>).
35807
35808 2005-06-29  Jim Meyering  <jim@meyering.net>
35809
35810         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
35811         type name.  Use the variable name instead.
35812         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
35813         Likewise.
35814
35815 2005-06-28  Simon Josefsson  <jas@extundo.com>
35816
35817         * modules/check-version (Files): Add check-version.m4.
35818
35819 2005-06-28  Simon Josefsson  <jas@extundo.com>
35820
35821         * m4/check-version.m4: New file, suggested by Jim Meyering
35822         <jim@meyering.net>.
35823
35824 2005-06-28  Simon Josefsson  <jas@extundo.com>
35825
35826         * lib/check-version.h, lib/check-version.c: New files.
35827
35828 2005-06-28  Simon Josefsson  <jas@extundo.com>
35829
35830         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
35831         collision with global variable.  Better indentation.  Don't
35832         increment buffer pointer beyond buffer end.  Based on comments
35833         from Paul Eggert <eggert@cs.ucla.edu>.
35834
35835         * lib/base64.h: Indent.
35836
35837 2005-06-28  Simon Josefsson  <jas@extundo.com>
35838
35839         * doc/gnulib.texi (Library version handling): New section.
35840
35841 2005-06-28  Jim Meyering  <jim@meyering.net>
35842
35843         * check-module (find_included_lib_files): Hard-code another
35844         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
35845         but modules/fts-lgpl (correctly) does not list those files.
35846
35847         * modules/canonicalize (Files): Add lib/pathmax.h.
35848
35849 2005-06-25  Simon Josefsson  <jas@extundo.com>
35850
35851         * modules/check-version: New file.
35852
35853 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
35854
35855         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
35856         initializer of struct addrinfo, as an indication that we don't
35857         care how many members the structure has.
35858
35859 2005-06-24  Derek Price  <derek@ximbiot.com>
35860         and Bruno Haible  <bruno@clisp.org>
35861
35862         Remove stat module & update lstat.
35863         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
35864         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35865         * m4/stat.m4: Remove this file.
35866
35867 2005-06-24  Derek Price  <derek@ximbiot.com>
35868         and Bruno Haible  <bruno@clisp.org>
35869
35870         Remove stat module & update lstat.
35871         * lib/stat.c: Remove this file...
35872         (slash_aware_lstat): ...moving this content and its support...
35873         * lib/lstat.c (rpl_lstat): ...into here.
35874         * lib/lstat.h: New file.
35875
35876 2005-06-24  Derek Price  <derek@ximbiot.com>
35877         and Bruno Haible  <bruno@clisp.org>
35878
35879         Remove stat module & update lstat.
35880         * config/srclist.txt (libc sources): Remove stat.
35881
35882 2005-06-24  Derek Price  <derek@ximbiot.com>
35883         and Bruno Haible  <bruno@clisp.org>
35884
35885         Remove stat module & update lstat.
35886         * MODULES.html.sh (stat): Remove.
35887         * MODULES.html: Regenerated.
35888         * modules/lstat (Description): Correct function name.
35889         (Files): Add "lstat.h".
35890         (Depends-on): Remove stat, add xalloc, stat-macros.
35891         * modules/stat: Remove this file.
35892         (Include): Add "lstat.h", remove <sys/stat.h>.
35893
35894 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35895
35896         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
35897         (ranged_convert): Don't save conversion in a temporary struct.
35898         This causes a warning with GCC 4.0.0, and anyway in the typical
35899         case it's not worth the extra 100 bytes or so of code.
35900         (ranged_convert, __mktime_internal): When calling a function via a
35901         pointer P, use P () rather than (*P) (), as we now assume C89 or
35902         better.
35903
35904 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35905
35906         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
35907         "who -r" failed to give output.  Problem reported by Tim Waugh.
35908
35909         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
35910         (xcalloc): Use it to avoid needless tests.
35911         Problem reported by Jim Meyering.
35912
35913 2005-06-20  Derek Price  <derek@ximbiot.com>
35914
35915         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
35916         unnecessary for Autoconfs > 2.59c.
35917
35918 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35919
35920         * lib/argp.h (__option_is_short): Check upper limit of
35921         __key. Isprint() requires its argument to have the value
35922         of an unsigned char or EOF.
35923
35924 2005-06-16  Jim Meyering  <jim@meyering.net>
35925
35926         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
35927         when either N or S is zero.
35928
35929 2005-06-16  Derek Price  <derek@ximbiot.com>
35930
35931         * m4/bison.m4: Declare YACC & YFLAGS precious.
35932
35933 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
35934
35935         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
35936         multibyte string or pattern, fall back on unibyte matching.
35937         Problem reported by James Youngman.
35938
35939 2005-06-08  Bruno Haible  <bruno@clisp.org>
35940
35941         * modules/csharpcomp: New file.
35942         * MODULES.html.sh (C#): Add csharpcomp.
35943
35944 2005-06-08  Bruno Haible  <bruno@clisp.org>
35945
35946         * m4/csharpcomp.m4: New file, from GNU gettext.
35947
35948 2005-06-08  Bruno Haible  <bruno@clisp.org>
35949
35950         * lib/csharpcomp.h: New file, from GNU gettext.
35951         * lib/csharpcomp.c: New file, from GNU gettext.
35952         * lib/csharpcomp.sh.in: New file, from GNU gettext.
35953
35954 2005-06-08  Bruno Haible  <bruno@clisp.org>
35955
35956         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
35957         warning on mingw.
35958
35959 2005-06-07  Derek Price  <derek@ximbiot.com>
35960
35961         Sync from CVS.
35962         * lib/glob_.h: Indent nested #ifdef.
35963
35964 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35965
35966         Sync from coreutils.
35967         Use "file name" when talking about file names, instead of "filename"
35968         or "path", as per the GNU coding standards.
35969         * lib/mkdir-p.c: Renamed from makepath.c.
35970         (make_dir_parents): Renamed from make_path.  All callers changed.
35971         * lib/mkdir-p.h: Likewise.  All includers changed.
35972         * lib/filenamecat.c: Renamed from path-concat.c.
35973         (file_name_concat): Renamed from path_concat.  All callers changed.
35974         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
35975         * lib/filenamecat.h: Likewise.  All includers changed.
35976         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
35977         in comments or local variable names.
35978         * lib/basename.c: Likewise.
35979         * lib/canonicalize.c, canonicalize.h: Likewise.
35980         * lib/dirname.c, dirname.h: Likewise.
35981         * lib/euidaccess.c: Likewise.
35982         * lib/exclude.c: Likewise
35983         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
35984         * lib/fsusage.c, fsuage.h: Likewise.
35985         * lib/fts.c, fts_.h: Likewise.
35986         * lib/getcwd.c: Likewise.
35987         * lib/getloadavg.c: Likewise.
35988         * lib/mkstemp.c: Likewise.
35989         * lib/mountlist.c, mountlist.h: Likewise.
35990         * lib/openat.c, openat.h: Likewise.
35991         * lib/readlink-stub.c: Likewise.
35992         * lib/readutmp.c, readutmp.h: Likewise.
35993         * lib/rename.c: Likewise.
35994         * lib/rmdir.c: Likewise.
35995         * lib/same.c: Likewise.
35996         * lib/savedir.c: Likewise.
35997         * lib/stripslash.c: Likewise.
35998         * lib/tempname.c: Likewise.
35999         * lib/xreadlink.c: Likewise.
36000         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
36001         All uses changed.
36002         * lib/exclude.h: Likewise.
36003
36004         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
36005         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
36006         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
36007         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
36008         * lib/pathmax.h: Include <limits.h> unconditionally, since other
36009         files have been getting away with it for years (MORE/BSD 4.3
36010         is extinct now).
36011         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
36012         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
36013
36014         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
36015         Define to 256, not 255, as per modern POSIX.
36016
36017 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36018
36019         Sync from coreutils.
36020         Use "file name" when talking about file names, instead of "filename"
36021         or "path", as per the GNU coding standards.
36022         * MODULES.html.sh: mkdir-p renamed from makepath.
36023         filenamecat renamed from path-concat.
36024         * modules/filenamecat: Renamed from modules/path-concat.
36025         (Files): filenamecat.h and filenamecat.c renamed from
36026         path-concat.h and path-concat.c.
36027         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
36028         (Include): filenamecat.h, not path-concat.h.
36029         * modules/mkdir-p: Renamed from modules/makepath.
36030         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
36031         makepath.c.
36032         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
36033         (Include): mkdir-p.h, not makepath.h.
36034
36035 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36036
36037         Sync from coreutils.
36038         * m4/mkdir-p.m4: Renamed from makepath.m4.
36039         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
36040         Rename files from makepath.c to mkdir-p.c, and from
36041         makepath.h to mkdir-p.h.
36042         * m4/filenamecat.m4: Renamed from path-concat.m4.
36043         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
36044         Rename files from path-concat.c to filenamecat.c,
36045         and from path-concat.h to filenamecat.h.
36046         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
36047         "file name" in local variables or comments.
36048         * m4/rename.m4: Likewise.
36049
36050 2005-06-01  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/csharpexec: New file.
36053         * MODULES.html.sh (C#): New section.
36054
36055 2005-06-01  Bruno Haible  <bruno@clisp.org>
36056
36057         * m4/csharp.m4: New file, from GNU gettext.
36058         * m4/csharpexec.m4: New file, from GNU gettext.
36059
36060 2005-06-01  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/csharpexec.h: New file, from GNU gettext.
36063         * lib/csharpexec.c: New file, from GNU gettext.
36064         * lib/csharpexec.sh.in: New file, from GNU gettext.
36065
36066 2005-05-31  Derek Price  <derek@ximbiot.com>
36067             Paul Eggert  <eggert@cs.ucla.edu>
36068
36069         Sync from cvs.
36070         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
36071
36072 2005-05-31  Derek Price  <derek@ximbiot.com>
36073             Paul Eggert  <eggert@cs.ucla.edu>
36074
36075         Sync from cvs.
36076         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
36077
36078 2005-05-29  Derek Price  <derek@ximbiot.com>
36079
36080         * config/srclist.txt (glob_.h, glob.c): Add these files.
36081
36082 2005-05-29  Derek Price  <derek@ximbiot.com>
36083
36084         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
36085         * modules/glob: New file.
36086         * modules/getlogin_r: Add link to POSIX spec in description.
36087
36088 2005-05-29  Derek Price  <derek@ximbiot.com>
36089             Paul Eggert  <eggert@cs.ucla.edu>
36090
36091         * m4/glob.m4: New file.
36092
36093 2005-05-29  Derek Price  <derek@ximbiot.com>
36094             Paul Eggert  <eggert@cs.ucla.edu>
36095
36096         * lib/glob_.h, lib/glob.c: New files.
36097
36098 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
36099
36100         * modules/fts (Files): Remove m4/inttypes-pri.m4.
36101         * modules/fts-lgpl (Depends-on): Remove gettext.
36102
36103 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
36104
36105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
36106         and don't require gt_INTTYPES_PRI.
36107
36108 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
36109
36110         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
36111
36112         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
36113         the configuration hassle isn't worth it.
36114         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
36115         (LONGEST_MODIFIER, PRIuMAX): Remove.
36116
36117 2005-05-27  Bruno Haible  <bruno@clisp.org>
36118
36119         * lib/getlogin_r.h: Remove second include of <stddef.h>.
36120
36121 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
36122
36123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
36124         _POSIX_PTHREAD_SEMANTICS for Solaris.
36125
36126 2005-05-25  Derek Price  <derek@ximbiot.com>
36127
36128         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
36129
36130 2005-05-25  Derek Price  <derek@ximbiot.com>
36131             Paul Eggert  <eggert@cs.ucla.edu>
36132
36133         * modules/getlogin_r, m4/getlogin_r.m4: New files.
36134         * lib/getlogin_r.c, getlogin_r.h: New files.
36135
36136 2005-05-25  Bruno Haible  <bruno@clisp.org>
36137             Derek Price  <derek@ximbiot.com>
36138
36139         * lib/getlogin_r.h: Simplify API documentation.
36140
36141 2005-05-23  Derek Price  <derek@ximbiot.com>
36142
36143         * modules/minmax (Files): Add m4/minmax.m4.
36144         (configure.ac): Add gl_MINMAX.
36145
36146 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
36147
36148         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
36149         so that unistd-safer.h (GPL'ed code) need not be included.
36150
36151 2005-05-22  Bruno Haible  <bruno@clisp.org>
36152
36153         * m4/minmax.m4: New file.
36154         Based on a patch by Derek Price <derek@ximbiot.com>.
36155
36156 2005-05-22  Bruno Haible  <bruno@clisp.org>
36157
36158         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
36159         (INT64_MIN): Fix definition.
36160         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
36161
36162         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
36163         NEED_SIGNED_INT_TYPES.
36164
36165         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
36166         HAVE_SYSTEM_INTTYPES.
36167
36168 2005-05-22  Bruno Haible  <bruno@clisp.org>
36169
36170         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
36171         Also include <sys/param.h> if it defines MIN, MAX.
36172         Based on a patch by Derek Price <derek@ximbiot.com>.
36173
36174 2005-05-21  Jim Meyering  <jim@meyering.net>
36175
36176         * modules/fts (Files): Add m4/inttypes-pri.m4.
36177         (Depends-on): Add lstat and remove gettext.  Alphabetize.
36178
36179 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36180
36181         New fts module.
36182         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
36183         (setup_dir, free_dir): New functions.
36184         (enter_dir, leave_dir): Define trivial
36185         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
36186         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
36187         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
36188         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
36189         Move to fts-cycle.c.
36190         (fts_open): Use setup_dir.
36191         (fts_close): Use free_dir.
36192         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
36193         This adds a label and some gotos, but the alternatives were messier.
36194         Check for memory allocation failure when entering a dir.
36195         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
36196         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
36197         (FTS): New member fts_cycle, that is a union that contains the
36198         old active_dir_ht and cycle_state.  All uses changed to mention
36199         fts_cycle.ht and fts_cycle.state.
36200         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
36201         fts.c, with the following changes:
36202         (setup_dir, free_dir): New functions.
36203         (enter_dir): Now returns bool.  Return true if successful, false
36204         if memory exhausted.  All callers changed.
36205         Do not bother partly cleaning up on
36206         memory allocation failure; that is free_dir's job.
36207         However, free ad if hash_insert fails, to avoid memory leak.
36208         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
36209         fts->fts_options to see which union member to use.
36210
36211 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36212
36213         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
36214         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
36215
36216 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36217
36218         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
36219
36220 2005-05-20  Jim Meyering  <jim@meyering.net>
36221
36222         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
36223         Now a macro, to pacify GCC.
36224
36225 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
36226
36227         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
36228         of -1.
36229
36230 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
36231
36232         * lib/chown.c (rpl_chown): Return -1 on failure.
36233
36234 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
36235
36236         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
36237         Don't check for stddef.h.
36238         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
36239         don't use its results.
36240         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
36241         since we include them unconditionally.  Don't require
36242         AM_STDBOOL_H, since stdbool is a prerequisite.
36243         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
36244         since we assume C89 or better.
36245         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
36246         as we don't use their results.
36247         Don't check for fchdir, memmove, memset, strrchr, as we use
36248         them unconditionally.
36249         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
36250         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
36251
36252 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
36253
36254         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
36255         Include <stddef.h> unconditionally, since we assume C89 now.
36256         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
36257         * lib/fts.c: Include fts_.h first, to check interface.
36258         Do not include intprops.h; no longer needed.
36259         Include cycle-check.h and hash.h, since fts_.h no longer does.
36260         Remove unnecessary casts of closedir to void.
36261         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
36262         decide whether to decrement nlinks.
36263         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
36264         (FTS): Use struct hash_table * instead of Hash_table, so that
36265         we no longer need to include hash.h here.
36266
36267 2005-05-18  Jim Meyering  <jim@meyering.net>
36268
36269         * modules/dirfd (License): Change to LGPL.  Most of the code
36270         is already in the public domain.
36271
36272 2005-05-18  Jim Meyering  <jim@meyering.net>
36273
36274         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
36275         Reported by Yoann Vandoorselaere.
36276
36277 2005-05-17  Jim Meyering  <jim@meyering.net>
36278
36279         * m4/fts.m4: New file, from coreutils.
36280
36281 2005-05-17  Jim Meyering  <jim@meyering.net>
36282
36283         * lib/fts.c, lib/fts_.h: New files, from coreutils.
36284
36285 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36286
36287         Sync from coreutils.
36288         * m4/unlinkdir.m4: New file.
36289
36290 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36291
36292         Sync from coreutils.
36293         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
36294         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
36295         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
36296         White space changes only.
36297         * lib/makepath.c (make_path): Port to hosts where leading "//" is
36298         special.
36299         * lib/yesno.c: Include getline.h, not ctype.h.
36300         (yesno): Don't remove leading white space; POSIX doesn't allow it.
36301         Use getline to remove arbitrary restriction on response length.
36302
36303 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
36304
36305         * config/srclist-update: Spell out "Street" in FSF postal
36306         mail address; this is the style the FSF seems to prefer.
36307
36308         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
36309         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
36310         this updates FSF postal mail address.
36311
36312         Sync from coreutils.
36313         * modules/unlinkdir: New file.
36314         * modules/yesno (Depends-on): Add getline.
36315         * MODULES.html.sh (File system functions): Add unlinkdir.
36316
36317 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36318
36319         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
36320         lib/strsep.h:
36321         Change the initial comment to refer to GPL, not LGPL.
36322         gnulib-tool will change it to LGPL as needed.
36323
36324         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
36325         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
36326         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
36327         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
36328         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
36329         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
36330         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
36331         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
36332         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
36333         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
36334         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
36335         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
36336         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
36337         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
36338         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
36339         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
36340         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
36341         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
36342         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
36343         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
36344         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
36345         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
36346         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
36347         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
36348         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
36349         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
36350         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
36351         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
36352         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
36353         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
36354         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
36355         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
36356         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
36357         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
36358         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
36359         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
36360         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
36361         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
36362         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
36363         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
36364         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
36365         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
36366         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
36367         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
36368         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
36369         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
36370         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
36371         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
36372         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
36373         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
36374         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
36375         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
36376         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
36377         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
36378         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
36379         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
36380         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
36381         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
36382         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
36383         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
36384         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
36385         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
36386         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
36387         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
36388         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
36389         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
36390         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
36391         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
36392         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
36393         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
36394         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
36395         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
36396         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
36397         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
36398         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
36399         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
36400         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
36401         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
36402         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
36403         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
36404         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
36405         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
36406         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
36407         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
36408         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
36409         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
36410         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
36411         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
36412         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
36413         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
36414         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
36415         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
36416         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
36417         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
36418         lib/yesno.c, lib/yesno.h:
36419         Update FSF postal mail address.
36420
36421 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36422
36423         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
36424         tests/test-memmem.c, tests/test-stpncpy.c:
36425         Update FSF postal mail address.
36426
36427 2005-05-13  Bruno Haible  <bruno@clisp.org>
36428
36429         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
36430         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
36431         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
36432         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
36433         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
36434         Add support for 64-bit integers in the MSVC compiler.
36435
36436 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
36437
36438         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
36439
36440 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
36441
36442         * gnulib-tool (func_import): Sort and uniquify recommended includes.
36443
36444 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
36445
36446         * doc/getdate.texi (General date syntax): Don't say that date
36447         date --iso-8601=ns generates acceptable dates; it doesn't yet.
36448         Problem reported by Nic Ferrier.
36449
36450 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36451
36452         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
36453         specified in ai_socktype. Fix invalid ai_protocol
36454         check. ai_protocol is usually set to 0 or depending on
36455         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
36456         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
36457         ai_socktype / ai_protocol in the returned addrinfo structure.
36458
36459 2005-05-10  Simon Josefsson  <jas@extundo.com>
36460
36461         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
36462         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36463
36464 2005-05-10  Karl Berry  <karl@gnu.org>
36465
36466         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
36467         (from http://www.gnu.org/licenses).
36468         * doc/COPYING.LIB: also rename to COPYING.LESSER.
36469         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
36470         fdl.texi suffices.
36471
36472 2005-05-10  Karl Berry  <karl@gnu.org>
36473
36474         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
36475         (COPYING.DOC): remove.
36476
36477         * config/srclist-update: new FSF address.
36478
36479 2005-05-10  Derek Price  <derek@ximbiot.com>
36480
36481         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
36482         possible.
36483
36484 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36485             Bruno Haible  <bruno@clisp.org>
36486
36487         * modules/inet_ntop: New file.
36488         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36489         inet_ntop.
36490
36491 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36492             Bruno Haible  <bruno@clisp.org>
36493
36494         * m4/inet_ntop.m4: New file.
36495
36496 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36497             Bruno Haible  <bruno@clisp.org>
36498
36499         * lib/inet_ntop.h: New file.
36500         * lib/inet_ntop.c: New file, from glibc with modifications.
36501
36502 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
36503
36504         * modules/time_r (License): Change to LGPL.
36505         * modules/extensions (License): Change to LGPL.  Actually,
36506         the license is more permissive than that, but currently gnulib-tool
36507         doesn't know how to handle more-permissive licenses.
36508
36509         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
36510         Problem reported by Dave Love.
36511
36512 2005-05-08  Jim Meyering  <jim@meyering.net>
36513
36514         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
36515         blank.
36516
36517 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36518
36519         * modules/argmatch (Depends-on): Add stdbool.
36520         * modules/backupfile (Depends-on): Likewise.
36521         * modules/chdir-long (Depends-on): Likewise.
36522         * modules/closeout (Depends-on): Likewise.
36523         * modules/cycle-check (Depends-on): Likewise.
36524         * modules/dirname (Depends-on): Likewise.
36525         * modules/fnmatch (Depends-on): Likewise.
36526         * modules/fsusage (Depends-on): Likewise.
36527         * modules/fwriteerror (Depends-on): Likewise.
36528         * modules/getcwd (Depends-on): Likewise.
36529         * modules/getloadavg (Depends-on): Likewise.
36530         * modules/hard-locale (Depends-on): Likewise.
36531         * modules/makepath (Depends-on): Likewise.
36532         * modules/mountlist (Depends-on): Likewise.
36533         * modules/nanosleep (Depends-on): Likewise.
36534         * modules/posixtm (Depends-on): Likewise.
36535         * modules/quotearg (Depends-on): Likewise.
36536         * modules/readtokens (Depends-on): Likewise.
36537         * modules/readtokens0 (Depends-on): Likewise.
36538         * modules/readutmp (Depends-on): Likewise.
36539         * modules/save-cwd (Depends-on): Likewise.
36540         * modules/strftime (Depends-on): Likewise.
36541         * modules/userspec (Depends-on): Likewise.
36542         * modules/utimecmp (Depends-on): Likewise.
36543         * modules/xgetcwd (Depends-on): Likewise.
36544         * modules/xnanosleep (Depends-on): Likewise.
36545         * modules/xstrtod (Depends-on): Likewise.
36546         * modules/yesno (Depends-on): Likewise.
36547
36548 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
36549
36550         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
36551         needless checks.
36552
36553 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
36554
36555         Merge from coreutils.  Among other things,
36556         add bulletproofing for cases where stdin, stdout, or stderr are closed.
36557         * lib/fd-safer.c: New file.
36558         * lib/fcntl-safer.h, open-safer.c: Remove.
36559         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
36560         * lib/dup-safer.c: Include unistd-safer.h first.
36561         Don't include errno.h.
36562         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
36563         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
36564         * lib/file-type.c: Rely on file-type.h change.
36565         * lib/getloadavg.c: Include unistd-safer.h.
36566         (getloadavg): Use safer open.
36567         * lib/getusershell.c: Include "stdio-safer.h".
36568         (getusershell): Use safer fopen.
36569         * lib/long-options.c (long_options): Use NULL rather than 0.
36570         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
36571         'free'.
36572         * lib/modechange.c: Likewise.
36573         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
36574         (MODE_DONE): New constant.
36575         (struct mode_change): Remove 'next' member.
36576         (make_node_op_equals): New function; like the old one of the
36577         same name, except it allocates an array.
36578         (mode_compile, mode_create_from_ref): Use it.
36579         (mode_compile): Allocate result as an array, not a linked list.
36580         Parse octal string ourself, so that we catch mistakes like "+0".
36581         (mode_adjust): Arg is an array, not a linked list.
36582         * lib/modechange.c: Include stat-macros.h, xalloc.h.
36583         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
36584         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
36585         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
36586         Remove.  This is now stat-macros.h's job.
36587         (talloc): Remove.  All callers replaced by xalloc, so that
36588         our invokers don't have to worry about reporting memory failures.
36589         (make_node_op_equals): Remove.
36590         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
36591         New constants.
36592         (struct mode_change): Moved here from modechange.h.
36593         (mode_append_entry): Remove.
36594         (mode_compile): Remove MASKED_OPS arg, since it encouraged
36595         apps to have incorrect behavior.  Use simpler algorithm for head
36596         and tail.  Don't futz with umask; that's now the job of mode_adjust.
36597         Detect more invalid usages rather than having somewhat-random behavior.
36598         Don't insert an "a=" action, as that leads to incorrect behavior.
36599         (mode_compile, mode_create_from_ref): Return NULL on error instead
36600         of an enum, since now there's only one way to have an error.  All
36601         callers changed.
36602         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
36603         at the correct time.  Simplify calculation of "+u" and its ilk.
36604         Don't mishandle "+X".
36605         (mode_free): Remove "register" and localize decls.
36606         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
36607         (struct mode_change): Move to modechange.c; callers don't
36608         need to see this stuff.
36609         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
36610         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
36611         (mode_change, mode_adjust): Reflect the new signatures noted above.
36612         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
36613         that might redefine system include files.
36614         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
36615         (my_usleep): Use NULL rather than (void *) 0.
36616         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
36617         Use siginterrupt to specify that system calls should be interrupted.
36618         (rpl_nanosleep): Move initialization of suspended closer to call of
36619         my_usleep.
36620         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
36621         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
36622         (desirable_utmp_entry): New function.
36623         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
36624         using x2nrealloc, to simplify logic.
36625         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
36626         size calculation.  Do not assume utmp file is a regular file.
36627         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
36628         (READ_UTMP_CHECK_PIDS): New constant.
36629         * lib/save-cwd.c: Include unistd-safer.h.
36630         (save_cwd): Use fd_safer.
36631         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
36632         [!_LIBC] Include "stat-macros.h" instead.
36633         * lib/unistd-safer.h (fd_safer): New decl.
36634
36635 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
36636
36637         * modules/getloadavg (Depends-on): Add unistd-safer.
36638         * modules/getusershell (Depends-on): Add stdio-safer.
36639         * modules/lstat (Depends-on): Remove xalloc.
36640         * modules/mkstemp (Depends-on): Add stat-macros.
36641         * modules/modechange (Depends-on): Remove xstrtol.
36642         Add stat-macros, xalloc.
36643         * modules/save-cwd (Depends-on): Add unistd-safer.
36644         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
36645         * modules/unistd-safer (Files): Add lib/fd-safer.c
36646         (Makefile.am): Remove lib_SOURCES.
36647
36648         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
36649         Remove fcntl-safer; unistd-safer supersedes it.
36650
36651 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
36652
36653         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
36654         AC_HEADER_STAT.
36655         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
36656         (gl_PREREQ_CHOWN): Remove.
36657         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
36658         it.  Don't require AC_HEADER_STAT.
36659         (gl_PREREQ_LSTAT): Remove.
36660         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
36661         Don't require AC_HEADER_STAT.
36662         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
36663         (gl_PREREQ_RMDIR): Remove.
36664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
36665         mention stat-macros.h or AC_HEADER_STAT, since we'll make
36666         the stat-macros module a prerequisite.
36667         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
36668         * m4/filemode.m4 (gl_FILEMODE): Likewise.
36669         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
36670         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
36671         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
36672         variable names.
36673         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
36674         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
36675         variable prefixes.
36676         * m4/fcntl-safer.m4: Remove.
36677         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
36678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
36679         Invoke gl_PREREQ_FD_SAFER.
36680         (gl_PREREQ_FD_SAFER): New macro.
36681         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
36682         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
36683         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
36684         Remove duplicate call to AC_LIBOBJ(readutmp).
36685         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
36686
36687         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
36688         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
36689
36690 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
36691
36692         * MODULES.html.sh (Misc): Add byteswap.
36693
36694 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
36695
36696         * modules/getcwd (Depends-on): Add extensions.
36697         * modules/openat (Depends-on): Likewise.
36698
36699 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
36700
36701         * modules/byteswap: New file.
36702
36703 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
36704
36705         * m4/byteswap.m4: New file.
36706
36707 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
36708
36709         * lib/byteswap_.h: New file.
36710
36711 2005-04-25  Karl Berry  <karl@gnu.org>
36712
36713         * m4/gettext.m4: Update from GNU gettext 0.14.4.
36714
36715 2005-04-25  Albert Chin  <china@thewrittenword.com>
36716
36717         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
36718         Toolkit C bug.
36719
36720 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
36721
36722         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
36723         (func_ln_if_changed) Remove forcibly for no error message
36724         in case file does not exist.
36725
36726 2005-04-19  Simon Josefsson  <jas@extundo.com>
36727
36728         * gnulib-tool (Options): Make --symlink mean --symbolic.
36729
36730 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
36731
36732         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
36733
36734 2005-04-16  Simon Josefsson  <jas@extundo.com>
36735
36736         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
36737
36738 2005-04-15  Simon Josefsson  <jas@extundo.com>
36739
36740         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
36741
36742 2005-04-15  Simon Josefsson  <jas@extundo.com>
36743
36744         * gnulib-tool: Rename --symlink to --symbolic.
36745
36746 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
36747
36748         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
36749         symbolic links to files instead of copying/moving.  Add --aux-dir,
36750         specifying directory relative --dir where auxiliary build tools
36751         are placed.
36752
36753 2005-04-14  Bruno Haible  <bruno@clisp.org>
36754
36755         * modules/allocsa (License): Change to LGPL.
36756         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36757
36758 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36759
36760         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
36761         that "UTC +1 second" continues to work.  Problem reported
36762         by Dmitry V. Levin.
36763         (relunit_snumber): New rule.
36764         (relunit): Use it.
36765
36766 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36767
36768         * lib/getdate.y (universal_time_zone_table): New constant.
36769         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
36770         universal_time_zone_table.
36771         (lookup_zone): Prefer universal_time_zone_table to
36772         local_time_zone_table, so that "GMT" time stamps are allowed in
36773         London during the summer.  Problem reported by Ian Abbott.
36774
36775 2005-04-12  Jim Meyering  <jim@meyering.net>
36776
36777         * lib/human.c (humblock): Set *options even when returning due to
36778         xstrtoumax conversion failure.  Thanks to a used-uninitialized
36779         warning from gcc-4.
36780
36781 2005-04-09  Jim Meyering  <jim@meyering.net>
36782
36783         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
36784         -Wuninitialized: initialize tm0.tm_year.
36785
36786 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36787
36788         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
36789         count, since there's no maximum.  All uses changed.
36790         Add member dsts_seen.
36791         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
36792         not being INT_MAX.
36793         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
36794         Use pc_rels_seen to decide whther a date is absolute.
36795
36796         * lib/getdate.y (number): Don't overwrite year.
36797         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
36798         check.
36799
36800 2005-04-02  Simon Josefsson  <jas@extundo.com>
36801
36802         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
36803         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
36804
36805 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
36806
36807         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
36808         where no absolute path name can be longer than PATH_MAX.
36809
36810 2005-03-27  Jim Meyering  <jim@meyering.net>
36811
36812         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
36813
36814 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
36815
36816         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
36817         "one's complement" -> "ones' complement" in comment, as per Knuth.
36818         "value of type" -> "type or expression" in comment.
36819         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
36820
36821 2005-03-26  Jim Meyering  <jim@meyering.net>
36822
36823         Comment nits.
36824         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
36825         Correct typos: s/or/of/.
36826
36827 2005-03-26  Jim Meyering  <jim@meyering.net>
36828
36829         * modules/check-include-files: Move to ../ and rename to...
36830         * check-module: ...this.
36831
36832 2005-03-25  Jim Meyering  <jim@meyering.net>
36833
36834         * modules/xvasprintf (Files): Add xalloc.h.
36835
36836 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36837
36838         * modules/gettext (Files): config/config.rpath ->
36839         build-aux/config.rpath
36840         * modules/iconv (Files): Likewise.
36841         Problem reported by Oskar Liljeblad.
36842
36843 2005-03-23  Jim Meyering  <jim@meyering.net>
36844
36845         * modules/check-include-files: New script to check for
36846         missing dependencies, multiple includes, etc.
36847
36848         * modules/c-strtold (Depends-on): Add xalloc.
36849         * modules/c-strtod (Depends-on): Add xalloc.
36850         * modules/hash (Depends-on): Add xalloc.
36851         (Files): Remove lib/xalloc.h.
36852
36853         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
36854         * modules/userspec (Files): Add lib/inttostr.h.
36855
36856 2005-03-23  Jim Meyering  <jim@meyering.net>
36857
36858         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
36859
36860 2005-03-22  Jim Meyering  <jim@meyering.net>
36861
36862         * modules/stat-macros: New module.
36863         * modules/canonicalize, modules/euidaccess, modules/file-type,
36864         * modules/filemode, modules/lchown, modules/makepath,
36865         * modules/rmdir, modules/stat: Depend on new stat-macros module
36866         rather than listing lib/stat-macros.h manually.
36867         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
36868
36869 2005-03-22  Jim Meyering  <jim@meyering.net>
36870
36871         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
36872
36873 2005-03-22  Bruno Haible  <bruno@clisp.org>
36874
36875         * config/srclist.txt: Replace target directory 'config' with
36876         'build-aux'.
36877         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
36878         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
36879         ../build-aux/.
36880
36881 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
36882
36883         * modules/chdir-long (Depends-on): Add mempcpy.
36884
36885         * modules/acl, modules/backupfile, modules/c-strtod,
36886         modules/c-strtold, modules/canon-host, modules/canonicalize,
36887         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
36888         modules/exclude, modules/exitfail, modules/file-type,
36889         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
36890         modules/getdate, modules/getline, modules/getpagesize,
36891         modules/getpass, modules/getugroups, modules/group-member,
36892         modules/hard-locale, modules/hash, modules/human, modules/idcache,
36893         modules/inttostr, modules/long-options, modules/makepath,
36894         modules/md5, modules/memcasecmp, modules/memcoll,
36895         modules/modechange, modules/mountlist, modules/path-concat,
36896         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
36897         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
36898         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
36899         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
36900         modules/strftime, modules/strndup, modules/strverscmp,
36901         modules/timespec, modules/unlocked-io, modules/userspec,
36902         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
36903         modules/yesno:
36904         Remove lib_SOURCES line from Makefile.am section, as this is now
36905         done automatically by the corresponding Autoconf macro.
36906
36907 2005-03-21  Jim Meyering  <jim@meyering.net>
36908
36909         Changes imported from coreutils.
36910
36911         * lib/cycle-check.c: Don't include xalloc.h.
36912
36913         * lib/path-concat.c: Don't include assert.h.
36914         (path_concat): Remove assertion that would have triggered
36915         for ABASE starting with more than one slash.
36916         Reported by Andreas Schwab.
36917
36918         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
36919         properly when ABASE is an absolute file name.
36920         Correct the description of this function.
36921         Include <assert.h>.
36922         Add an assertion and a test driver.
36923         This fixes a bug introduced on 2004-07-02.
36924         Andreas Schwab reported the resulting failure of cp --parents:
36925         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
36926
36927 2005-03-21  Jim Meyering  <jim@meyering.net>
36928
36929         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
36930         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
36931
36932 2005-03-21  Jim Meyering  <jim@meyering.net>
36933         and  Paul Eggert  <eggert@cs.ucla.edu>
36934
36935         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
36936         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
36937         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
36938         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
36939         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
36940         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
36941         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
36942         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
36943         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
36944         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
36945         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
36946         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
36947         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
36948         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
36949         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
36950         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
36951         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
36952         for these modules.
36953
36954 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
36955
36956         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
36957         (which shouldn't happen), generate nothing instead of returning 0
36958         immediately, so that nstrftime (NULL, ...) doesn't return 0.
36959
36960 2005-03-16  Bruno Haible  <bruno@clisp.org>
36961
36962         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
36963         HAVE_LONGLONG_64BIT.
36964
36965 2005-03-16  Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
36968         HAVE_LONGLONG_64BIT.
36969
36970 2005-03-16  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
36973         HAVE_LONGLONG_64BIT.
36974
36975 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
36976
36977         * lib/strftime.c (my_strftime): Prepend space to format so that we can
36978         reliably distinguish strftime failure from empty output on POSIX
36979         hosts.
36980
36981 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
36982
36983         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
36984         (iconv_string): Don't guess a size-zero buffer, as that might cause
36985         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
36986         result would be 'too large', where 'too large' is (heuristically)
36987         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
36988         overflow concerns.  This will prevent some unwanted malloc failures
36989         when the inputs are very large.
36990
36991 2005-03-15  Karl Berry  <karl@gnu.org>
36992
36993         * config/srclist.txt (config.rpath): from gettext.
36994         * config/config.rpath: update.
36995
36996 2005-03-15  Bruno Haible  <bruno@clisp.org>
36997
36998         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
36999         to 'negate'.
37000
37001         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
37002         variable.
37003
37004         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
37005         results.
37006
37007 2005-03-14  Simon Josefsson  <jas@extundo.com>
37008
37009         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
37010         <fx@gnu.org>.
37011
37012 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
37013
37014         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
37015         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
37016         intprops.h.
37017         * lib/strtol.c: Likewise.
37018
37019 2005-03-14  Jim Meyering  <jim@meyering.net>
37020
37021         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
37022         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
37023         to be nonzero so that we (and caller) can detect the difference
37024         between a valid zero-length expansion and an error return, even
37025         when the underlying strftime fails before writing anything into
37026         that location.
37027
37028 2005-03-14  Bruno Haible  <bruno@clisp.org>
37029
37030         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
37031         Update from GNU gettext 0.14.3.
37032
37033 2005-03-10  Jim Meyering  <jim@meyering.net>
37034
37035         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
37036
37037 2005-03-10  Jim Meyering  <jim@meyering.net>
37038
37039         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
37040         so that this module works on systems without fchdir.
37041
37042 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37043
37044         Factor int-properties macros into a single file, except for
37045         glibc-related files.
37046         * lib/intprops.h: New file.
37047         * lib/getloadavg.c: Include it instead of limits.h.
37048         (INT_STRLEN_BOUND): Remove.
37049         * lib/human.c: Include intprops.h.
37050         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
37051         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
37052         302/1000.
37053         * lib/inttostr.h: Include intprops.h instead of limits.h.
37054         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
37055         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
37056         for consistency with intprops.h.
37057         (time_t_is_integer, twos_complement_arithmetic): Use them.
37058         * lib/sig2str.h: Include <signal.h>, intprops.h.
37059         (INT_STRLEN_BOUND): Remove.
37060         * lib/strftime.c (TYPE_SIGNED): Remove.
37061         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
37062         * lib/strtol.c: Adjust comments to match intprops.h.
37063         * lib/userspec.c: Include intprops.h.
37064         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
37065         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
37066         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
37067         instead of rolling our own expressions.
37068         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
37069
37070         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
37071         instead of int.
37072         (my_strftime): Do not mishandle years close to INT_MAX, by doing
37073         the right thing even if adding 1900 would overflow.  Similarly
37074         for tm_mon + 1 and tm_yday + 1.
37075         Make %Y always equivalent to %C%y, and similarly for %G and %g.
37076         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
37077         (DO_SIGNED_NUMBER): New macro.
37078         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
37079
37080 2005-03-07  Bruno Haible  <bruno@clisp.org>
37081
37082         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
37083
37084 2005-03-07  Bruno Haible  <bruno@clisp.org>
37085
37086         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
37087
37088 2005-03-04  Derek R. Price  <derek@ximbiot.com>
37089
37090         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
37091         (func_import): Only replace files via --import when they have actually
37092         changed.
37093
37094 2005-03-03  Derek R. Price  <derek@ximbiot.com>
37095
37096         * m4/mmap-anon.m4: New file.
37097         * m4/pagealign_alloc.m4: New file.
37098
37099 2005-03-03  Derek R. Price  <derek@ximbiot.com>
37100             Bruno Haible  <bruno@clisp.org>
37101
37102         * modules/pagealign_alloc: New file.
37103         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
37104
37105 2005-03-03  Derek R. Price  <derek@ximbiot.com>
37106             Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/pagealign_alloc.h: New file.
37109         * lib/pagealign_alloc.c: New file.
37110
37111 2005-03-03  Bruno Haible  <bruno@clisp.org>
37112
37113         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
37114         Use an all-permissive copyright notice, recommended by RMS.
37115
37116 2005-03-02  Bruno Haible  <bruno@clisp.org>
37117
37118         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
37119         of AIX, the replacement has to be done only after <string.h> is
37120         included, therefore not in config.h. stpncpy.h does the replacement,
37121         and stpncpy.c uses it.
37122
37123 2005-03-02  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
37126         stpncpy.c uses it.
37127
37128 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37129
37130         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
37131         The workaround isn't strictly needed for POSIX conformance, and
37132         it's too much of a pain to configure and maintain.  We'll ask
37133         people to fix their kernels instead.
37134         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
37135         (NANOSLEEP_BUG_WORKAROUND): Remove.
37136         (xnanosleep): Remove the workaround.
37137
37138 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37139
37140         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
37141         Reported by Derek Price.
37142         (Include): Add "timespec.h".
37143
37144         * modules/xnanosleep (Depends-on): Remove gethrxtime.
37145
37146 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37147
37148         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
37149         to detect nanosleep bug.
37150
37151 2005-03-01  Bruno Haible  <bruno@clisp.org>
37152
37153         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
37154
37155 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
37156
37157         * modules/gethrxtime: New file.
37158         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
37159         (Depends-on): Add gethrxtime.
37160         (configure.ac): Add gl_XNANOSLEEP.
37161         (Makefile.am): Remove lib_SOURCES line.
37162
37163 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37164
37165         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
37166         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
37167
37168 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37169
37170         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
37171         * lib/timespec.h (gettime): Return void, since it always
37172         succeeds now.  All uses changed.
37173         * lib/gettime.c (gettime) Likewise.
37174         [HAVE_NANOTIME]: Prefer nanotime.
37175         Assume gettimeofday succeeds, as POSIX requires.
37176         Assime time () succeeds, since other code already does.
37177         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
37178         (timespec_subtract): Remove.
37179         (NANOSLEEP_BUG_WORKAROUND): New constant.
37180         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
37181         things considerably.  Use it only on GNU/Linux hosts, since the
37182         workaround shouldn't be needed elsewhere.
37183
37184 2005-02-24  Bruno Haible  <bruno@clisp.org>
37185
37186         * modules/gettext (Files): Add m4/glibc2.m4.
37187
37188 2005-02-24  Bruno Haible  <bruno@clisp.org>
37189
37190         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
37191         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
37192         * m4/progtest.m4:
37193         Update from GNU gettext 0.14.2.
37194         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
37195
37196 2005-02-24  Bruno Haible  <bruno@clisp.org>
37197
37198         * lib/localcharset.c: Update from GNU gettext 0.14.2.
37199         * lib/config.charset: Update from GNU gettext 0.14.2.
37200
37201 2005-02-24  Bruno Haible  <bruno@clisp.org>
37202
37203         * lib/gettext.h: Update from GNU gettext 0.14.2.
37204
37205 2005-02-23  Simon Josefsson  <jas@extundo.com>
37206
37207         * m4/iconvme.m4: New file.
37208
37209 2005-02-23  Jim Meyering  <jim@meyering.net>
37210
37211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
37212         change.
37213         Thanks to Bruno Haible for catching it.
37214
37215 2005-02-22  Simon Josefsson  <jas@extundo.com>
37216
37217         * modules/iconvme: New file.
37218
37219         * MODULES.html.sh: Add iconvme.
37220
37221 2005-02-22  Simon Josefsson  <jas@extundo.com>
37222
37223         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
37224
37225 2005-02-22  Simon Josefsson  <jas@extundo.com>
37226
37227         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
37228
37229 2005-02-22  Jim Meyering  <jim@meyering.net>
37230
37231         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
37232         s/ifndef/ifdef/.
37233
37234 2005-02-20  Neil Conway  <neilc@samurai.com>
37235
37236         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
37237         returned by OSX/Darwin if the specified buffer is not large
37238         enough for the hostname.
37239
37240 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37241
37242         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
37243         pass it to _help, otherwise the latter coredumps trying to
37244         dereference state.root_argp.
37245
37246 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37247
37248         * modules/chdir-long (Depends-on): Add memrchr.
37249         * modules/memrchr (Files): Add lib/memrchr.h.
37250         (Include): "memrchr.h".
37251
37252 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37253
37254         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
37255
37256 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37257
37258         * lib/memrchr.h: New file.
37259         * lib/chdir-long.c: Include it.
37260         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
37261         Don't bother including stddef.h.
37262
37263 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37264
37265         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
37266         inclusion.
37267         Include <sys/types.h>, for dev_t.
37268         (ME_DUMMY, ME_REMOTE): Move from here....
37269         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
37270         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
37271         Dmitry V. Levin.
37272         Include mountlist.h first, to test the interface.
37273
37274 2005-01-29  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/progname.c (program_name): Initialize.
37277         Needed when linking statically on MacOS X.
37278
37279 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37280
37281         Sync from coreutils.
37282         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
37283         (Depends-on): Add c-strtod.
37284         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
37285
37286 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37287
37288         Sync from coreutils.
37289         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
37290
37291         Remove files that are specific to coreutils.
37292         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
37293
37294 2005-01-28  Bruno Haible  <bruno@clisp.org>
37295
37296         * modules/javacomp: New file.
37297         * MODULES.html.sh (Java): Add javacomp.
37298
37299 2005-01-28  Bruno Haible  <bruno@clisp.org>
37300
37301         * m4/javacomp.m4: New file, from GNU gettext.
37302
37303 2005-01-28  Bruno Haible  <bruno@clisp.org>
37304
37305         * lib/javacomp.sh.in: New file, from GNU gettext.
37306         * lib/javacomp.h: New file, from GNU gettext.
37307         * lib/javacomp.c: New file, from GNU gettext.
37308
37309 2005-01-26  Simon Josefsson  <jas@extundo.com>
37310
37311         * lib/gai_strerror.c: Use GPL in header.
37312
37313 2005-01-26  Bruno Haible  <bruno@clisp.org>
37314
37315         * modules/javaexec: New file.
37316         * MODULES.html.sh (Java): Add javaexec.
37317
37318 2005-01-26  Bruno Haible  <bruno@clisp.org>
37319
37320         * m4/javaexec.m4: New file, from GNU gettext.
37321
37322 2005-01-26  Bruno Haible  <bruno@clisp.org>
37323
37324         * lib/javaexec.sh.in: New file, from GNU gettext.
37325         * lib/javaexec.h: New file, from GNU gettext.
37326         * lib/javaexec.c: New file, from GNU gettext.
37327
37328 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37329
37330         * modules/lchown (Depends-on): Remove lchown.h
37331
37332 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37333
37334         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
37335         must be defined if the header file was not found, in order
37336         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
37337
37338 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37339
37340         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
37341         initializers for struct pentry_state.
37342         (__argp_error): Check return value of __asprintf
37343         (__argp_failure): Translate error message
37344
37345         * lib/argp-parse.c: Removed braces around the expansion of N_()
37346
37347 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37348
37349         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
37350         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
37351         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
37352         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
37353         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
37354         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
37355         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
37356         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
37357         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
37358         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
37359         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
37360         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
37361         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
37362         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
37363         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
37364         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
37365         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
37366         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
37367         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
37368         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
37369         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
37370         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
37371         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
37372         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
37373         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
37374         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
37375         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
37376         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
37377         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
37378         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
37379         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
37380         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
37381         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
37382         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
37383         xstrtol.m4, xstrtoumax.m4, yesno.m4:
37384         Use an all-permissive copyright notice, recommended by RMS.
37385
37386 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
37387
37388         * modules/chdir-long (Depends-on): Remove mempcpy.
37389
37390 2005-01-21  Jim Meyering  <jim@meyering.net>
37391
37392         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
37393         same value as for Solaris 9.
37394
37395         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
37396         component length.  This included changing the parameter to be
37397         of type `char *' rather than `char const *'.
37398         * lib/chdir-long.h (chdir_long): Update prototype.
37399
37400         * lib/openat.c (fdopendir, fstatat): New functions.
37401         * lib/openat.h: Include headers required for use of DIR and struct
37402         stat.
37403         [AT_SYMLINK_NOFOLLOW]: Define.
37404         (fdopendir, fstatat): Add prototypes.
37405
37406 2005-01-21  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/classpath: New file.
37409         * MODULES.html.sh (Java): Add classpath.
37410
37411 2005-01-21  Bruno Haible  <bruno@clisp.org>
37412
37413         * lib/classpath.h: New file, from GNU gettext.
37414         * lib/classpath.c: New file, from GNU gettext.
37415
37416 2005-01-20  Simon Josefsson  <jas@extundo.com>
37417
37418         * modules/version-etc-fsf: New file.
37419
37420 2005-01-20  Simon Josefsson  <jas@extundo.com>
37421
37422         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
37423         * lib/version-etc.c: Remove version_etc_copyright.
37424         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
37425         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
37426
37427 2005-01-20  Simon Josefsson  <jas@extundo.com>
37428
37429         * lib/base64.h (isbase64): Add.
37430
37431         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
37432         using a unsigned prototype, don't inline.
37433         (base64_decode): Use it.
37434
37435 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
37436
37437         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
37438         it.
37439
37440 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
37441
37442         * lib/save-cwd.c (save_cwd): Remove code to support the case
37443         where fchdir is missing or flaky.
37444
37445 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
37446
37447         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
37448
37449 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37450
37451         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
37452         AC_LIBSOURCES now does this.
37453         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
37454         with new ullong_max module.
37455
37456 2005-01-19  Bruno Haible  <bruno@clisp.org>
37457
37458         * modules/sh-quote: New file.
37459         * MODULES.html.sh (Executing programs): Add sh-quote.
37460
37461 2005-01-19  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/sh-quote.h: New file, from GNU gettext.
37464         * lib/sh-quote.c: New file, from GNU gettext.
37465
37466 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37467
37468         Merge from coreutils.
37469         * m4/ullong_max.m4: New file.
37470         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
37471         (gl_MACROS): Assume localeconv exists.
37472
37473 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37474
37475         Merge changes from coreutils, as described below in several
37476         changelogs dated today.
37477
37478         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
37479         (O_DIRECTORY): Remove; not needed here, since "." must be
37480         a directory.  All uses removed.
37481         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
37482         universal on Suns, and we also need to test for IRIX.
37483         Revamp code to use 'if' rather than '#if'.
37484         Avoid unnecessary comparison of cwd->desc to 0.
37485
37486         * lib/utimens.c (futimens): Robustify the previous patch, by checking
37487         for known valid error numbers rather than observed invalid ones.
37488
37489 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
37490
37491         * modules/ullong_max: New file.
37492
37493         * modules/chdir-long, modules/openat: New files.
37494         * modules/save-cwd (Depends-on): Depend on chdir-long.
37495         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
37496
37497 2005-01-18  Jim Meyering  <jim@meyering.net>
37498
37499         Merge from coreutils.
37500         * m4/chdir-long.m4, m4/openat.m4: New files.
37501         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
37502         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
37503         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
37504         is sane and DOES follow symlinks.  Besides, testing 20 different
37505         systems found no broken chown implementations.
37506         Prompted by a change in rsync's copy of this macro.
37507         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
37508
37509         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
37510
37511         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
37512         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
37513         NULL-means-set-to-current-time semantics.
37514         Remove temporary file immediately, rather than waiting
37515         for configure's at-exit trap code to do it.
37516
37517 2005-01-18  Jim Meyering  <jim@meyering.net>
37518
37519         * lib/version-etc.c (version_etc_copyright): Update copyright date.
37520
37521         * lib/utimens.c (futimens): Account for the fact that futimes
37522         can also fail with errno == ENOSYS or errno == ENOENT.
37523         Patch from Dmitry V. Levin.
37524
37525         Change the name of the robust chdir function from chdir to chdir_long.
37526         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
37527         (restore_cwd): Use chdir_long, not chdir.
37528         * lib/chdir-long.c: Renamed from chdir.c.
37529         * lib/chdir-long.h: Renamed from chdir.h.
37530         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
37531         Hurd.
37532
37533 2005-01-18  Bruno Haible  <bruno@clisp.org>
37534
37535         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
37536         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
37537         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
37538         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
37539         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
37540         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
37541         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
37542         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
37543         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
37544         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
37545         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
37546         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
37547         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
37548         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
37549         Use an all-permissive copyright notice, recommended by RMS.
37550
37551 2005-01-18  Bob Proulx  <bob@proulx.com>
37552
37553         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
37554         simplify offsetof() macro construct to avoid compile failure with
37555         native HP-UX 11.0 ANSI C compiler.
37556
37557 2005-01-17  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
37560         redundant because stpncpy.m4 takes care of it.
37561
37562 2005-01-17  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
37565
37566 2005-01-17  Bruno Haible  <bruno@clisp.org>
37567
37568         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
37569         used.
37570
37571 2005-01-17  Bruno Haible  <bruno@clisp.org>
37572
37573         * lib/fwriteerror.h (fwriteerror): Change specification to include
37574         fclose.
37575         * lib/fwriteerror.c: Include <stdbool.h>.
37576         (fwriteerror): At the end, close the file stream. Record whether
37577         stdout was already closed.
37578
37579 2005-01-17  Bruno Haible  <bruno@clisp.org>
37580
37581         * lib/execute.c (environ): Declare if needed.
37582         * lib/pipe.c (environ): Likewise.
37583         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
37584
37585 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37586
37587         * modules/argp: Depend on vsnprintf
37588
37589 2005-01-10  Jim Meyering  <jim@meyering.net>
37590
37591         * modules/closeout (Depends-on): Add atexit.
37592
37593 2005-01-06  Bruno Haible  <bruno@clisp.org>
37594
37595         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
37596
37597 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37598
37599         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
37600         definitions to be after all include files, to avoid collisions.
37601         Problem reported by Bob Proulx.
37602
37603 2005-01-04  Jim Meyering  <jim@meyering.net>
37604
37605         Changes imported from coreutils.
37606         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
37607         as the mkstemp template, use a temporary directory and an
37608         8.3-friendly template to avoid trouble on systems like DJGPP.
37609         Reported by Juan M. Guerrero via Stepan Kasal.
37610         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
37611         close. Remove the temporary directory right away, rather than waiting
37612         for configure's at-exit trap code to do it.
37613         Suggestion from Stepan Kasal.
37614
37615 2005-01-01  Simon Josefsson  <jas@extundo.com>
37616
37617         * gnulib-tool: Print #include directives when --import'ing.
37618
37619 2004-12-28  Simon Josefsson  <jas@extundo.com>
37620
37621         * tests/test-base64.c: Include required header files.  Remove
37622         unused variables.
37623
37624 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37625
37626         * modules/error (Depends-on): Remove gettext.
37627
37628 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37629
37630         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
37631         not needed.  This removes a dependency on the gettext module.
37632         [defined _LIBC]: Do not include <libintl.h>; not needed.
37633
37634 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
37635
37636         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
37637         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
37638
37639 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
37640
37641         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
37642         HAVE_DECL_STRTOLD.
37643
37644 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37645
37646         * modules/getdate (Depends-on): Remove alloca-opt.
37647
37648 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37649
37650         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
37651
37652 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37653
37654         * lib/argp-parse.c: Include <stddef.h>.
37655         (alignof, alignto): New macros.
37656         (parser_init): Don't assume that void * is aligned sufficiently
37657         for struct option.
37658
37659         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
37660         need to extend the stack.
37661         (YYINITDEPTH): New macro, so that the initial stack isn't overly
37662         large.
37663
37664 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37665
37666         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
37667
37668 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
37669
37670         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
37671         (2004-10-24) change.  Apparently this was a false alarm.
37672
37673         * modules/getdate: Depend on alloca-opt, not alloca.
37674
37675 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
37676
37677         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
37678         Remove now-obsolete comment about AIX.
37679         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
37680         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
37681         (YYMAXDEPTH): New macro.
37682
37683 2004-12-18  Simon Josefsson  <jas@extundo.com>
37684
37685         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
37686
37687 2004-12-18  Bruno Haible  <bruno@clisp.org>
37688
37689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
37690
37691 2004-12-18  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/fatal-signal.c (fatal_signals): Make non-const.
37694         (init_fatal_signals): New function.
37695         (uninstall_handlers, install_handlers): Ignore signals that were set to
37696         SIG_IGN.
37697         (at_fatal_signal): Call init_fatal_signals.
37698         (init_fatal_signal_set): Likewise. Ignore signals that were set to
37699         SIG_IGN.
37700         Reported by Paul Eggert.
37701
37702 2004-12-18  Bruno Haible  <bruno@clisp.org>
37703
37704         * doc/alloca.texi: New file.
37705         * doc/alloca-opt.texi: New file.
37706
37707 2004-12-17  Jim Meyering  <jim@meyering.net>
37708
37709         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
37710         Otherwise, install-sh could exit with improper exit status when
37711         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
37712
37713 2004-12-16  Simon Josefsson  <jas@extundo.com>
37714
37715         * tests/test-base64.c: Add license.
37716
37717 2004-12-15  Stepan Kasal  <address@hidden>
37718
37719         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
37720
37721 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
37722
37723         * modules/getcwd (Files): Add m4/d-ino.m4.
37724         Suggested by Mark D. Baushke.
37725
37726 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
37727
37728         * lib/getdate.y (textint): New member "negative".
37729         (time_zone_hhmm): New function.
37730         Expect 14 shift-reduce conflicts, not 13.
37731         (o_colon_minutes): New rule.
37732         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
37733         (yylex): Set the "negative" member of signed numbers.
37734
37735 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
37736
37737         * doc/getdate.texi (Time of day items, Time zone items):
37738         Describe new formats +00:00, UTC+00:00.
37739
37740 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37741
37742         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
37743         spurious "-l"s.  Problem reported by Stepan Kasal.
37744
37745 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
37746
37747         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
37748         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
37749
37750 2004-12-04  Simon Josefsson  <jas@extundo.com>
37751
37752         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
37753         Vandoorselaere <yoann@prelude-ids.org>.
37754
37755 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
37756
37757         Changes imported from coreutils.
37758         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
37759         exist.
37760         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
37761
37762 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
37763
37764         Changes imported from coreutils.
37765         * lib/hard-locale.c: Assume <locale.h> exists.
37766         Include "strdup.h".
37767         (GLIBC_VERSION): New macro.
37768         (hard_locale): Assume setlocale exists.
37769         Rewrite to avoid #ifdef.
37770         Use strdup rather than malloc + strcpy.
37771         * lib/human.c: Assume <locale.h> exists.
37772         (human_readable): Assume localeconv exists.
37773
37774 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
37775
37776         * modules/hard-locale (Depends-on): Add strdup.
37777
37778 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37779
37780         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
37781         convert T2, not T.  (Imported from libc.)
37782
37783 2004-11-30  Simon Josefsson  <jas@extundo.com>
37784
37785         * modules/restrict (License): Change to LGPL.
37786
37787 2004-11-30  Simon Josefsson  <jas@extundo.com>
37788
37789         * m4/restrict.m4: Add copyright and copying conditions.
37790
37791 2004-11-30  Simon Josefsson  <jas@extundo.com>
37792
37793         * m4/base64.m4: New file.
37794
37795 2004-11-30  Simon Josefsson  <jas@extundo.com>
37796
37797         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
37798         base64.
37799
37800         * tests/test-base64.c: New file.
37801
37802         * modules/base64: New file.
37803
37804 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
37805
37806         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
37807         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
37808
37809         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
37810
37811 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
37814         (__getcwd.c): Don't restore errno; glibc doesn't.
37815         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
37816         first, falling back to our code only if its results look suspicious.
37817         Ensure that the resulting buffer is only as large as necessary.
37818
37819         * lib/readutmp.c: Include readutmp.h first.
37820         Include <errno.h>, since readutmp.h no longer does that.
37821         * lib/readutmp.h: Don't include <errno.h>,
37822         <sys/param.h>, <time.h>; not needed to establish interface.
37823         (errno): Remove decl.
37824         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
37825         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
37826         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
37827
37828 2004-11-28  Simon Josefsson  <jas@extundo.com>
37829
37830         * lib/base64.h, base64.c: New file.
37831
37832 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37833
37834         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
37835
37836 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37837
37838         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
37839         (Depends-on): Remove pathmax, same.  Add mempcpy.
37840         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
37841         (Makefile.am): Append getcwd.h to lib_SOURCES.
37842         (Include): Add getcwd.h.
37843         (Maintainer): Change from Jim Meyering to "all, glibc",
37844         since getdate now uses intended-for-glibc code.
37845         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
37846         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
37847
37848 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37849
37850         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
37851         HP's ANSI C compiler.
37852         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
37853         Declaring int functions causes warnings on some modern systems and
37854         shouldn't be needed to compile on ancient ones.
37855         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
37856         defined.
37857
37858         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
37859         with the following changes.
37860         (__set_errno): Parenthesize properly.
37861         Include <stdbool.h>.
37862         (MIN, MAX, MATCHING_INO): New macros.
37863         (__getcwd): Define with prototype, not K&R form.
37864         Use heuristics to allocate default buffer on stack if possible.
37865         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
37866         behavior, and to avoid the PATH_MAX limit when computing
37867         ../../../../...
37868         Use MATCHING_INO to compare inode number to file.
37869         Check for arithmetic overflow in size calculations.
37870         Fix bug in reallocation of dot array that caused getcwd to fail
37871         on directories nested deeper than 75.
37872         Be more careful about saving errno on error.
37873         Do not use realloc; use only free+malloc, as this is a bit
37874         more flexible and avoids a needless copy operation.
37875         Do not inspect st_dev and st_ino for symbolic links; POSIX
37876         doesn't specify the latter.
37877         Check for closedir errors.
37878         Avoid needless casts.
37879         Use "#ifdef weak_alias" around weak_alias, to be like other
37880         glibc code.
37881         The following changes to getcwd.c have effect only when used in
37882         gnulib; they have no effect inside glibc proper.
37883         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
37884         as alloca isn't used.
37885         (alloca, __alloca): Likewise.
37886         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
37887         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37888         unconditionally, as gnulib assumes C89 or better.
37889         Do not include <sys/param.h>.
37890         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
37891         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
37892         better.
37893         (NULL) [!defined NULL]: Remove; we assume C89 or better.
37894         Include <dirent.h> in a way that is compatible with modern Autoconf.
37895         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
37896         New macros, if not already defined.
37897         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
37898         Use "_LIBC", not "defined _LIBC", for consistency.
37899         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
37900         a mempcpy module.
37901         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
37902         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
37903         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
37904         credit only to Jim Meyering and adjust the copyright dates.
37905         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
37906         <stdlib.h>, <unistd.h>, "pathmax.h".
37907         Instead, include "xgetcwd.h" (first) and "getcwd.h".
37908         (INITIAL_BUFFER_SIZE): Remove.
37909         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
37910
37911 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37912
37913         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
37914         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
37915         Use the _ONCE methods, for efficiency.
37916         Check for fcntl.h.  In test program, include <errno.h>
37917         and <fcntl.h> if available.  Remove old K&R cruft from
37918         test program.  Check for common errors in GNU/Linux,
37919         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
37920         don't do AC_LIBOBJ, as that's getcwd.m4's job.
37921         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
37922         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
37923         name accordingly.
37924         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
37925         accommodate new getcwd.c.
37926         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
37927         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
37928         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
37929         that's all we need now.
37930
37931 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37932
37933         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
37934         argp-parse.c depends on getopt internals, that means we should
37935         always use our getopt, to be on the safe side.
37936         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
37937         order not to spoil the result of an eventual previous invocation
37938         of gl_GETOPT_SUBSTITUTE.
37939
37940 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37941
37942         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
37943         redefinition warnings. To avoid them, include the defines
37944         in `#if !defined __need_getopt ... #endif'. The only place
37945         where __getopt_argv_const is used is in definitions
37946         of getopt_long and getopt_long_only below, which are as well
37947         protected by `#ifndef __need_getopt'.
37948         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
37949         __need_getopt after including <stdio.h> and <unistd.h> These
37950         headers might have defined it.
37951
37952 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
37953
37954         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
37955
37956 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
37957
37958         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
37959         (futimens): New function, which uses futimes if available.
37960         (futimens, utimens): Support timespec==NULL, with same semantics
37961         as utime and utimens.
37962         * lib/utimens.h (futimens): New decl.
37963
37964 2004-11-23  Jim Meyering  <jim@meyering.net>
37965
37966         * lib/getopt_.h: Remove trailing blanks.
37967
37968 2004-11-23  Jim Meyering  <jim@meyering.net>
37969
37970         * lib/__fpending.c: Add comment.
37971
37972 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
37973
37974         * modules/canonicalize (Depends-on): Add xreadlink.
37975         Problem reported by James Youngman.
37976
37977 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37978
37979         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
37980         New macros.
37981         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
37982         optopt): Use them instead of invoking ## directly; otherwise, the
37983         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
37984
37985 2004-11-19  Bruno Haible  <bruno@clisp.org>
37986
37987         * lib/strtok_r.c: Move comments from here...
37988         * lib/strtok_r.h: ... to here.
37989
37990 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37991
37992         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
37993         implementations that mishandle size_t overflow.
37994
37995 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37996
37997         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
37998         might fail.  Problem reported by Yoann Vandoorselaere.
37999         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
38000         implementations that mishandle size_t overflow.
38001
38002 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38003
38004         * modules/canon-host (Depends-on): Add strdup.
38005
38006 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38007
38008         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
38009
38010 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38011
38012         * lib/canon-host.c: Include "strdup.h".
38013         (canon_host): Use getaddrinfo if available, so that IPv6 works.
38014         Use strdup instead of malloc/strcpy to duplicate strings.
38015
38016         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
38017         (human_space_before_unit): New constant.
38018         * lib/human.c (human_readable): Support it.
38019
38020         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
38021         (xgetcwd): Set errno correctly when failing.
38022         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
38023         the failure is actually due to a PATH_MAX problem.
38024
38025         Further getopt changes to make it more likely that glibc will
38026         buy the changes back.
38027         * lib/getopt.c (POSIXLY_CORRECT): New constant.
38028         (getopt): Use it, so to preserve glibc semantic
38029         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
38030         when compiling for libc.
38031         * lib/getopt_.h (__getopt_argv_const): Bring it back.
38032         (getopt_long, getopt_long_only): Use it.
38033
38034         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
38035         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
38036         (getopt): Argv is now char * const *, as per standard.
38037         (_getopt_internal_r, _getopt_internal): Argv is now char **,
38038         not char *__getopt_argv_const *.
38039         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
38040         _getopt_long_only_r): Likewise.
38041         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
38042         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
38043         _getopt_long_r, _getopt_long_only_r): Likewise.
38044         * lib/getopt_.h (__getopt_argv_const): Remove.
38045         (getopt): Argv is now char * const *, as per standard.
38046
38047         * lib/getdate.y (tORDINAL): New token.
38048         (day, relunit): Allow it for relative times.
38049         (relative_time_table): Use tORDINAL for ordinals.
38050
38051 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38052
38053         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
38054         Document that "second" isn't allowed as an ordinal number.
38055
38056 2004-11-16  Jim Meyering  <jim@meyering.net>
38057
38058         * modules/closeout (Depends-on): Add fpending.
38059
38060 2004-11-15  Jim Meyering  <jim@meyering.net>
38061
38062         * lib/closeout.c: Include "__fpending.h" once again.
38063         Include <stdbool.h>.
38064         (close_stdout): Don't fail just because stdout was closed initially,
38065         since some programs don't write to stdout in the normal course of
38066         operation (other than --version and --help), and we don't want this
38067         function to make e.g. `touch file >&-' fail.
38068         But do fail if it was closed and someone has tried to write to it.
38069         E.g., `printf foo >&-' must fail.
38070
38071 2004-11-13  Jim Meyering  <jim@meyering.net>
38072
38073         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
38074
38075 2004-11-12  Simon Josefsson  <jas@extundo.com>
38076
38077         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
38078         small doc fix is still pending.
38079
38080 2004-11-11  Simon Josefsson  <jas@extundo.com>
38081
38082         * modules/strtok_r: New file.
38083
38084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38085         strtok_r.
38086
38087 2004-11-11  Simon Josefsson  <jas@extundo.com>
38088
38089         * m4/strtok_r.m4: New file.
38090
38091         * m4/getopt.m4: Replace opterr.
38092
38093 2004-11-11  Simon Josefsson  <jas@extundo.com>
38094
38095         * lib/strtok_r.h, strtok_r.c: New file.
38096
38097 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
38098
38099         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
38100         of replacing opterr, getopt, etc.  This should handle the
38101         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
38102
38103 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
38104
38105         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
38106         we can stop lying to compilers about the constness of argv when we
38107         are compiled outside glibc.
38108         (getopt, getopt_long, getopt_long_only): Use it.
38109         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
38110         _getopt_internal, getopt): Likewise.
38111         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
38112         _getopt_long_only_r): Likewise.
38113         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
38114         _getopt_long_r, _getopt_long_only_r): Likewise.
38115
38116         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
38117         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
38118         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
38119         the other external symbols.
38120         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
38121         declaration, since the above renaming now works around collisions.
38122
38123 2004-11-11  Jim Meyering  <jim@meyering.net>
38124
38125         * lib/linebreak.c: Remove trailing blanks.
38126         * lib/alloca_.h: Likewise.
38127         * lib/acosl.c: Likewise.
38128         * lib/euidaccess.c: Likewise.
38129         * lib/allocsa.h: Likewise.
38130
38131 2004-11-10  Simon Josefsson  <jas@extundo.com>
38132
38133         * m4/getaddrinfo.m4: New file.
38134
38135 2004-11-10  Simon Josefsson  <jas@extundo.com>
38136
38137         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
38138
38139 2004-11-10  Simon Josefsson  <jas@extundo.com>
38140
38141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38142         getaddrinfo.
38143
38144         * modules/getaddrinfo: New file.
38145
38146 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38147
38148         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
38149
38150 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
38151
38152         * lib/mktime.c (SHR): New macro, which is a portable
38153         substitute for >> that should work even on Crays.
38154         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
38155         Problem reported by Mark D. Baushke in
38156         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
38157         * lib/getdate.y (SHR): Likewise.
38158         (tm_diff): Use it.
38159         * lib/strftime.c (SHR): Likewise.
38160         (tm_diff): Use it.
38161         * lib/quotearg.c (struct quoting_options): Use unsigned int for
38162         quote_these_too, so that right shifts are well defined.  All uses
38163         changed.
38164
38165 2004-11-10  Jim Meyering  <jim@meyering.net>
38166
38167         Ensure that no close failure goes unreported.
38168         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
38169         return early when it seems there's nothing to flush.
38170         Don't include __fpending.h.
38171
38172 2004-11-10  Jim Meyering  <jim@meyering.net>
38173
38174         * modules/closeout (Depends-on): Remove fpending.
38175
38176 2004-11-10  Jim Meyering  <jim@meyering.net>
38177
38178         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
38179
38180 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
38181
38182         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
38183         gl_FUNC_STRFTIME.
38184         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
38185         and AC_REQUIRE when possible, to avoid duplicate checks.
38186         Check for <wchar.h>.
38187
38188 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
38189
38190         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
38191
38192 2004-11-09  Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/sockpfaf.m4: New file.
38195
38196 2004-11-05  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
38199         Reported by Mark D. Baushke <mdb@cvshome.org>.
38200
38201 2004-11-04  Bruno Haible  <bruno@clisp.org>
38202
38203         2004-09-11  Bruno Haible  <bruno@clisp.org>
38204                 * allocsa.valgrind: New file.
38205         2004-02-06  Bruno Haible  <bruno@clisp.org>
38206                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
38207                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
38208                 Reported by Christopher Seip <chris.seip@hp.com>.
38209
38210 2004-11-04  Bruno Haible  <bruno@clisp.org>
38211
38212         * modules/allocsa (Files): Add lib/allocsa.valgrind.
38213         (Makefile.am): Distribute it.
38214
38215 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
38216
38217         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
38218         with errno == ERANGE if the buffer is too small.
38219         Problem reported by Mark D. Baushke.
38220
38221 2004-11-03  Albert Chin  <china@thewrittenword.com>
38222             Paul Eggert  <eggert@cs.ucla.edu>
38223
38224         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
38225         equivalent, substitute $ac_type for equivalent type rather than
38226         blindly using uint32_t *always* which won't work if uint32_t is not
38227         available.  Define _UINT32_T to work around typedef of uint32_t if
38228         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
38229         2.5.1.
38230
38231 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38232
38233         * m4/jm-macros.m4: Sync from coreutils.
38234         (gl_MACROS): Check for mbrlen, for pathchk.
38235         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
38236
38237 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38238
38239         * lib/xreadlink.c (MAXSIZE): New macro.
38240         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
38241         size does not exceed MAXSIZE.  Avoid cast.
38242         As suggested by Mark D. Baushke in
38243         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
38244         if readlink fails with buffer size just under MAXSIZE, try again
38245         with MAXSIZE.
38246
38247 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38248
38249         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
38250
38251 2004-11-02  Derek R. Price  <derek@ximbiot.com>
38252         and  Paul Eggert  <eggert@cs.ucla.edu>
38253
38254         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
38255         (get_date): Overparenthesize to avoid GCC warning.
38256
38257 2004-11-02  Bruno Haible  <bruno@clisp.org>
38258
38259         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
38260         returns void.
38261
38262 2004-11-02  Bruno Haible  <bruno@clisp.org>
38263
38264         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
38265         function returns void.
38266
38267 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
38268
38269         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
38270         fflush_unlocked, flockfile, funlockfile, funlockfile,
38271         fputs_unlocked, putc_unlocked.
38272
38273 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
38274
38275         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
38276         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
38277         already declared.
38278
38279 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
38280
38281         * modules/getdate (Files): Add doc/getdate.texi.
38282         (Depends-on): Add setenv, xalloc.
38283
38284 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
38285
38286         * lib/getdate.y: Add support for TZ="foo" within a date string.
38287         Fix some bugs near time_t boundaries.  Reject dates with
38288         out-of-range components, e.g., "Sept 31".
38289         Include <stdlib.h>, "setenv.h", "xalloc.h".
38290         (ISDIGIT_LOCALE): Remove; unused.
38291         Note that the TZ and time functions used here are not reentrant.
38292         (mktime_ok, get_tz): New functions.
38293         (TZBUFSIZE): New constant.
38294         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
38295         This requires that we sometimes generate our own TZ="XXX..." setting.
38296
38297 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
38298
38299         * doc/getdate.texi: New file, from coreutils with modifications for
38300         the new TZ parsing.
38301
38302 2004-10-27  Derek R. Price  <derek@ximbiot.com>
38303
38304         * lib/mktime.c (not_equal_tm): Remove redundant check.
38305
38306 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38307
38308         * modules/regex (lib_SOURCES): Add regex.c.
38309         Reported by James Youngman in
38310         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
38311
38312 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38313
38314         * lib/getdate.y: Use Bison 1.875 features, and some minor
38315         code cleanups.  This change does not affect semantics.
38316         Don't include <stdlib.h>; no longer needed.
38317         Don't include unlocked-io.h; only the "#if TEST" code uses
38318         stdio, and performance isn't crucial there.
38319         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
38320         Bison 1.875 features as described below.
38321         All uses of "PC." replaced by "pc->".
38322         (YYSTYPE): Add a forward declaration.
38323         (yylex, yyerror): Use full prototypes in forward decls.
38324         Use "%pure-parser" rather than obsolescent "%pure_parser".
38325         Use %parse-param and %lex-param instead of obsolescent
38326         YYPARSE_PARAM and YYLEX_PARAM.
38327         (meridian_table, month_and_day_table, time_units_table,
38328         relative_time_table, time_zone_table, military_table,
38329         lookup_zone, lookup_word, get_date):
38330         Use NULL instead of 0 where appropriate.
38331         (to_hour): Avoid abort (), to avoid a dependency on
38332         stdlib.h.
38333         (yyerror, yylex): Now accepts parser_control * arg.
38334         (main) [TEST]: Use '\0' rather than 0 for char.
38335
38336 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38337
38338         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
38339
38340 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38341
38342         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
38343         It's now the caller's responsibility to handle the case where
38344         !HAVE_GETPAGESIZE && !defined getpagesize.
38345
38346         * lib/mktime.c (leapyear): Arg is long int, not int.
38347
38348 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
38349
38350         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
38351
38352 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38353
38354         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
38355         missing.  Problem reported by James Youngman.
38356
38357 2004-10-16  Simon Josefsson  <jas@extundo.com>
38358
38359         * gnulib-tool: Fix comments.  Fix parse problem.
38360         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
38361
38362 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
38363
38364         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
38365         implementation of getopt_long.  Problem reported by Alexander Taler in:
38366         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
38367
38368 2004-10-15  Bruno Haible  <bruno@clisp.org>
38369
38370         * gnulib-tool: Untabify. Initialize supplied_libname.
38371         (func_usage): More homogenous output.
38372         (func_modules_transitive_closure, func_modules_to_filelist,
38373         func_emit_lib_Makefile_am): New functions.
38374         (func_import): New function, extracted from big case statement. Use
38375         func_get_license, func_modules_transitive_closure,
38376         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
38377         opt_lgpl. Don't use test -a, as it's not portable.
38378         (func_create_testdir): Use func_modules_transitive_closure,
38379         func_modules_to_filelist, func_emit_lib_Makefile_am.
38380
38381 2004-10-15  Bruno Haible  <bruno@clisp.org>
38382
38383         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
38384
38385 2004-10-15  Bruno Haible  <bruno@clisp.org>
38386
38387         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
38388         the portions belonging to each module.
38389         Suggested by Derek Robert Price <derek@ximbiot.com>.
38390
38391 2004-10-12  Simon Josefsson  <jas@extundo.com>
38392
38393         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
38394         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
38395         to real functions.
38396
38397 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38398
38399         * modules/vsnprintf: New file.
38400
38401 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38402
38403         * m4/vsnprintf.m4: New file.
38404
38405 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38406
38407         * lib/vsnprintf.h: New file.
38408         * lib/vsnprintf.c: New file.
38409
38410 2004-10-11  Bruno Haible  <bruno@clisp.org>
38411
38412         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
38413         vsnprintf.
38414
38415 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38416
38417         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
38418
38419 2004-10-07  Bruno Haible  <bruno@clisp.org>
38420
38421         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
38422         fits into the provided buffer.
38423
38424 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38425
38426         * lib/diacrit.c, diacrit.h: Add GPL notice.
38427
38428         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
38429         notice.
38430         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
38431         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
38432         This avoids a potential constant-folding bug.
38433
38434 2004-10-05  Bruno Haible  <bruno@clisp.org>
38435
38436         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
38437         for the declaration of strsep.
38438
38439 2004-10-05  Bruno Haible  <bruno@clisp.org>
38440
38441         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
38442
38443 2004-10-04  Simon Josefsson  <jas@extundo.com>
38444
38445         * modules/memmem: New file.
38446         * tests/test-memmem.c: New file.
38447         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
38448
38449 2004-10-04  Simon Josefsson  <jas@extundo.com>
38450
38451         * m4/memmem.m4: New file.
38452
38453 2004-10-04  Simon Josefsson  <jas@extundo.com>
38454
38455         * lib/memmem.h: New file.
38456         * lib/memmem.c: New file, taken from glibc.
38457
38458 2004-10-04  Simon Josefsson  <jas@extundo.com>
38459
38460         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
38461         '#ifdef USE_UNLOCKED_IO'.
38462
38463 2004-10-04  Simon Josefsson  <jas@extundo.com>
38464
38465         * config/srclist.txt: Add memmem from glibc.
38466
38467 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
38468
38469         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
38470
38471         * modules/argmatch, modules/argp, modules/closeout, modules/error,
38472         modules/exclude, modules/getdate, modules/getline,
38473         modules/getndelim2, modules/getpass, modules/getpass-gnu,
38474         modules/getusershell, modules/linebuffer, modules/md5,
38475         modules/mountlist, modules/posixtm, modules/readtokens,
38476         modules/readutmp, modules/regex, modules/sha1,
38477         modules/version-etc, modules/yesno:
38478         Remove dependency on unlocked-io.
38479
38480 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
38481
38482         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
38483
38484         * m4/unlocked-io.m4: Add copyright notice.
38485         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
38486
38487 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
38488
38489         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
38490         * lib/xmalloc.c (xmemdup): Likewise.
38491         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
38492         XFREE): Remove these long-obsolescent macros.
38493         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
38494         * lib/xstrdup.c: Remove.
38495
38496         * lib/regex.c (re_comp): Cast gettext return value to char *,
38497         Problem reported by Martin Neitzel via Mark D. Baushke.
38498
38499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
38500
38501         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
38502         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
38503         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
38504         regex.c, sha1.c, version-etc.c, yesno.c:
38505         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
38506         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
38507         the includer's responsibility.
38508
38509         Sync from coreutils.
38510
38511         * lib/modechange.c (mode_compile): Don't decrement a pointer that
38512         points to the start of a string, as the C Standard says the
38513         resulting behavior is undefined.
38514
38515         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
38516         simple -> simple_backups, numbered_existing ->
38517         numbered_existing_backups, numbered -> numbered_backups
38518         to avoid shadowing problems.  All uses changed.
38519         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
38520         * lib/backupfile.c (check_extension, numbered_backup):
38521         Rename locals to avoid shadowing 'basename'.
38522         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
38523         once.
38524
38525         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
38526         * lib/.cvsignore: Add getopt.h.
38527
38528 2004-10-04  Bruno Haible  <bruno@clisp.org>
38529
38530         * modules/README: New file.
38531         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
38532         not a module.
38533
38534 2004-10-02  Jim Meyering  <jim@meyering.net>
38535
38536         * lib/dirfd.h, getpagesize.h: Add copyright notice.
38537
38538 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38539
38540         * modules/strsep: New file.
38541
38542 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38543
38544         * m4/strsep.m4: New file.
38545
38546 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38547
38548         * lib/strsep.h: New file.
38549         * lib/strsep.c: New file.
38550
38551 2004-10-01  Simon Josefsson  <jas@extundo.com>
38552
38553         * lib/snprintf.c (snprintf): Handle size==0.
38554
38555 2004-10-01  Simon Josefsson  <jas@extundo.com>
38556             Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
38559         (snprintf): Declare 'args'.
38560
38561 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
38562
38563         * lib/snprintf.c: Remove comments as to why each header is needed.
38564
38565 2004-10-01  Bruno Haible  <bruno@clisp.org>
38566
38567         * MODULES.html.sh: Add strsep.
38568
38569 2004-09-30  Simon Josefsson  <jas@extundo.com>
38570
38571         * modules/snprintf: New file.
38572
38573 2004-09-30  Simon Josefsson  <jas@extundo.com>
38574
38575         * m4/snprintf.m4: New file.
38576
38577 2004-09-30  Simon Josefsson  <jas@extundo.com>
38578
38579         * lib/snprintf.h, lib/snprintf.c: New files.
38580
38581 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38582
38583         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
38584         (hol_entry_help): Never translate an empty string.
38585         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
38586         * lib/argp.h (OPTION_NO_TRANS): New option.
38587
38588 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
38589
38590         * modules/argp (Maintainer): Replace Simon Josefsson
38591         by Sergey Poznyakoff.
38592
38593 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
38594
38595         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
38596         changes merged back into glibc.
38597
38598 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
38599
38600         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
38601
38602 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
38603
38604         * lib/xvasprintf.c: Include xalloc.h.
38605         (xvasprintf): Use xalloc_die, not xmalloc_die.
38606
38607 2004-09-29  Bruno Haible  <bruno@clisp.org>
38608
38609         * modules/alloca-opt: New file, derived from modules/alloca.
38610         * modules/allocsa: Depend on alloca-opt instead of alloca.
38611         * modules/setenv: Likewise.
38612         * modules/vasnprintf: Likewise.
38613         * MODULES.html.sh: Add alloca-opt.
38614
38615 2004-09-28  Simon Josefsson  <jas@extundo.com>
38616
38617         * gnulib-tool: New parameter --lgpl, to asseert that modules are
38618         LGPL, and to replace license template from GPL to LGPL.
38619
38620 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
38621
38622         * modules/dummy: Change license to LGPL.
38623
38624 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
38625
38626         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
38627
38628 2004-09-24  Simon Josefsson  <jas@extundo.com>
38629
38630         * modules/minmax (License): Change from GPL to LGPL.
38631
38632 2004-09-23  Simon Josefsson  <jas@extundo.com>
38633
38634         * gnulib-tool (--import): Typo.
38635
38636 2004-09-23  Simon Josefsson  <jas@extundo.com>
38637
38638         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
38639
38640 2004-09-22  Bruno Haible  <bruno@clisp.org>
38641
38642         * modules/*: Add 'License' field.
38643         * gnulib-tool: Accept --extract-license option.
38644         (func_get_license): New function.
38645
38646 2004-09-21  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
38649         Reported by Simon Josefsson.
38650
38651 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
38652
38653         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
38654         gl_AC_TYPE_LONG_LONG.
38655
38656 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
38657
38658         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
38659
38660 2004-09-18  Simon Josefsson  <jas@extundo.com>
38661         and  Paul Eggert  <eggert@cs.ucla.edu>
38662
38663         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
38664         calls with autoreconf.  Define GL_LIB.
38665
38666 2004-09-14  Karl Berry  <karl@gnu.org>
38667
38668         * config/srclist.txt: unsync setenv.c, sigh.
38669
38670 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
38673         Problem reported by Bruno Haible in:
38674         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
38675
38676 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
38677
38678         * config/srclist.txt: Comment out argp-pvh.c.
38679
38680 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
38681
38682         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
38683         in case some system header has #define'd it.  Problem reported by
38684         Soeren D. Schulze in
38685         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
38686
38687 2004-09-09  Karl Berry  <karl@gnu.org>
38688
38689         * regex.[ch]: delete from the root.  These were supposed to be
38690                 synced with emacs cvs, but this has not happened for about
38691                 a year, and anyway nothing else uses emacs regex.[ch].
38692                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
38693                 lib/regex[.ch] is untouched.
38694
38695 2004-09-09  Bruno Haible  <bruno@clisp.org>
38696
38697         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
38698
38699 2004-09-09  Bruno Haible  <bruno@clisp.org>
38700
38701         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
38702         modifications.
38703         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
38704
38705 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
38706
38707         * modules/xvasprintf: New file.
38708         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
38709
38710 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
38711
38712         * lib/xvasprintf.h: New file.
38713         * lib/xvasprintf.c: New file.
38714         * lib/xasprintf.c: New file.
38715
38716 2004-09-08  Bruno Haible  <bruno@clisp.org>
38717
38718         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
38719
38720 2004-09-08  Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
38723         length is > INT_MAX.
38724         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
38725         more.
38726
38727 2004-09-08  Bruno Haible  <bruno@clisp.org>
38728
38729         * lib/stdint_.h: New file, taken from GNU clisp.
38730
38731 2004-09-08  Bruno Haible  <bruno@clisp.org>
38732             Oskar Liljeblad  <oskar@osk.mine.nu>
38733
38734         * modules/stdint: New file.
38735         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
38736
38737 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38738
38739         Import from coreutils.
38740         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
38741         strings on unbounded length.  alloca's performance benefits aren't
38742         that important here.
38743         (V_STRDUP): Remove.
38744         (parse_with_separator): New function, with most of the internals
38745         of the old parse_user_spec.  Allow user to omit both user and group,
38746         for compatibility with FreeBSD.
38747         Clone only the user name, not the entire spec.
38748         Do not set *uid, *gid unless entirely successful.
38749         Avoid memory leak in some failing cases.
38750         Fix regression for USER.GROUP reported by Dmitry V. Levin in
38751         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
38752         (parse_user_spec): Rewrite to use parse_with_separator.
38753
38754 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38755
38756         * modules/userspec: Don't depend on alloca.
38757
38758 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38759
38760         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
38761
38762 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38763
38764         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
38765         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
38766         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
38767
38768 2004-08-16  Simon Josefsson  <jas@extundo.com>
38769
38770         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
38771         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
38772         Add --dry-run for --import.
38773         Let user provided command line parameters override configure.ac
38774         settings.
38775
38776 2004-08-12  Simon Josefsson  <jas@extundo.com>
38777
38778         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
38779         as discussed with Paul Eggert in threads rooted at
38780         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
38781         and
38782         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
38783         Before, the test was empty, and relied on ELIDE_CODE in source
38784         code.)
38785         (gl_PREREQ_GETOPT): New macro.
38786         (gl_GETOPT): Use them.
38787
38788 2004-08-12  Simon Josefsson  <jas@extundo.com>
38789
38790         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
38791         * lib/getopt_.h: Renamed from getopt.h.
38792
38793 2004-08-12  Simon Josefsson  <jas@extundo.com>
38794
38795         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
38796         Change default library name from libfoo to libgnu.
38797         Now, if you have a configure.ac that says:
38798                 gl_SOURCE_BASE(gl)
38799                 gl_M4_BASE(gl/m4)
38800                 gl_MODULES(error getopt etcetera)
38801                 gl_INIT
38802         you can import all you need by running:
38803                 ../gnulib/gnulib-tool --import
38804
38805         * modules/getopt (Files): Rename getopt.h to getopt_.h.
38806         (Makefile.am): Rewrite, use logic from argz.
38807         (Include): Use <getopt.h> instead of "getopt.h".
38808
38809 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
38810
38811         * modules/argp (Files): Add m4/unlocked-io.m4.
38812         (Depends-on): Add extensions.
38813
38814 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
38815
38816         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
38817         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
38818         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
38819         Check for program_invocation_name, program_invocation_short_name,
38820         flockfile, funlockfile, features.h, _getopt_long_only_r.
38821
38822 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
38823
38824         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
38825         its complicated substitute.
38826         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
38827         and program_invocation_name.
38828         (__argp_basename) [!_LIBC]: Remove; the only use was
38829         replaced by its body.
38830         (__argp_short_program_name): Change condition from
38831         !defined __argp_short_program_name to
38832         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
38833         to match argp-namefrob.h.
38834         (__argp_failure): Don't assume strerror_r returns char *.
38835         * lib/argp-parse.c (N_): Define unconditionally.
38836         (argp_default_options): Fill out initializers with 0 to avoid
38837         gcc warnings.
38838
38839 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
38840
38841         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
38842         getopt1.c.
38843
38844 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38845
38846         Merge from coreutils.
38847
38848         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
38849
38850         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
38851         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
38852
38853 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38854
38855         Merge from coreutils.
38856
38857         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
38858         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
38859         for Reliant Unix 5.43.
38860
38861         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
38862         (union fooround): Use uintmax_t, not long int.
38863         The rest is a merge from libc:
38864         [defined _LIBC]: Include <shlib-compat.h>.
38865         (_obstack) [defined _LIBC]: Remove after 2.3.4.
38866
38867         * lib/settime.c (settime): Recode to avoid warning with
38868         Sun Forte C 6U2.
38869
38870         * lib/strverscmp.c: Convert to UTF-8.
38871
38872 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38873
38874         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
38875         m4/uintmax_t.m4.
38876
38877 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
38878
38879         * modules/xalloc-die: New file.
38880         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
38881
38882         * modules/md5 (Files): Add m4/uint32_t.m4.
38883         * modules/sha1: Renamed from modules/sha.
38884         (Files):
38885         Rename lib/sha.h to lib/sha1.h.
38886         Rename lib/sha.c to lib/sha1.c.
38887         Rename m4/sha.m4 to m4/sha1.m4.
38888         (lib_SOURCES): Likewise.
38889         (configure.ac): Rename gl_SHA to gl_SHA1.
38890         (Include): sha.h -> sha1.h.
38891
38892 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
38893
38894         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
38895         * m4/sha1.m4: Renamed from sha.m4.
38896         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
38897
38898 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
38899
38900         * lib/obstack.h (obstack_empty_p):
38901         Don't assume that chunk->contents is suitably aligned.
38902         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
38903         Likewise. Problem reported by Benno in
38904         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
38905
38906         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
38907         readable.  This could be improved further but it'd take some work.
38908
38909 2004-08-08  Simon Josefsson  <jas@extundo.com>
38910
38911         * modules/xgethostname (Depends-on): Remove exit and error (not
38912         used).
38913
38914         * modules/getpass-gnu: Add getpass.h.
38915         (Depends-on): Add stdbool.
38916         * modules/getpass: Add getpass.h.
38917
38918 2004-08-08  Simon Josefsson  <jas@extundo.com>
38919
38920         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
38921         Check getpass declaration.
38922
38923 2004-08-08  Simon Josefsson  <jas@extundo.com>
38924
38925         * lib/xgethostname.c: Don't include error.h (not used).
38926
38927         * lib/getpass.h: Add.
38928         * lib/getpass.c: Include getpass.h first.
38929
38930 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
38931
38932         * lib/xalloc-die.c: New file.
38933         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
38934         All uses removed.
38935         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
38936         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
38937         xalloc-die.c.
38938         (_, N_, xalloc_die): Move to xalloc-die.c.
38939         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
38940         so that we needn't mess with xalloc_msg_memory_exhausted.
38941
38942         * lib/sha1.h: Renamed from sha.h.
38943         (SHA1_H): Renamed from _SHA_H.
38944         (sha1_ctx): Renamed from sha_ctx.
38945         (sha1_init_ctx): Renamed from sha_init_ctx.
38946         (sha1_process_block): Renamed from sha_process_block.
38947         (sha1_process_bytes): Renamed from sha_process_bytes.
38948         (sha1_finish_ctx): Renamed from sha_finish_ctx.
38949         (sha1_read_ctx): Renamed from sha_read_ctx.
38950         (sha1_stream): Renamed from sha_stream.
38951         (sha1_buffer): Renamed from sha_buffer.
38952         * lib/sha1.c: Likewise; renamed from sha.c.
38953         Do not include <sys/types.h>.
38954         Include <stddef.h> rather than <stdlib.h>.
38955
38956 2004-08-08  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
38959         FILESYSTEM_PREFIX_LEN.
38960         * lib/progreloc.c: Likewise.
38961         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
38962
38963 2004-08-06  Simon Josefsson  <jas@extundo.com>
38964
38965         * modules/progname (Depends-on): Don't depend on stdbool.
38966
38967 2004-08-06  Simon Josefsson  <jas@extundo.com>
38968
38969         * modules/getsubopt: New file.
38970         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38971         getsubopt.
38972
38973 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38974
38975         More merge from coreutils.
38976
38977         * m4/utimens.m4, m4/utimecmp.m4: New files.
38978         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
38979         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
38980         prereq.m4, sha.m4: Import changes from coreutils.
38981
38982 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38983
38984         More merge from coreutils.
38985         * modules/raise, modules/readtokens0, modules/utimens:
38986         * modules/utimecmp, module/xnanosleep: New files.
38987         * modules/strftime: Add lib/strftime.h.
38988         Change include from <time.h> to "strftime.h".
38989         * modules/yesno: Add lib/yesno.h.
38990         * modules/backupfile: Remove lib/addext.c.
38991         * modules/euidaccess: Add stat-macros.h.
38992         * modules/canonicalize, modules/euidaccess,
38993         modules/filemode, modules/lchown, modules/makepath,
38994         modules/rmdir, modules/stat: Likewise.
38995
38996 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38997
38998         Merge from tar.
38999         * lib/argp-help.c (make_hol, hol_append): Don't assume that
39000         SIZE_MAX is a valid preprocessor constant.
39001         (__argp_basename): Change from "#ifndef _LIBC"
39002         to "#ifndef __argp_short_program_name", so that
39003         we don't compile these functions for tar.
39004
39005         More merges from coreutils.
39006         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
39007         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
39008         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
39009         * lib/addext.c: Remove; no longer needed.
39010         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
39011         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
39012         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
39013         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
39014         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
39015         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
39016         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
39017         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
39018         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
39019         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
39020         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
39021         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
39022         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
39023         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
39024         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
39025         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
39026         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
39027         Import changes from coreutils.
39028
39029 2004-08-05  Simon Josefsson  <jas@extundo.com>
39030
39031         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
39032
39033 2004-08-05  Simon Josefsson  <jas@extundo.com>
39034
39035         * m4/getsubopt.m4: New file.
39036
39037 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
39038
39039         Merge from coreutils.
39040
39041         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
39042         * m4/getcwd-path-max.m4: New files.
39043
39044         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
39045         FILESYSTEM_PREFIX_LEN ->
39046         FILE_SYSTEM_PREFIX_LEN.
39047         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
39048         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
39049         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
39050         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
39051
39052         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
39053         prerequisite modules now handle the DOS stuff.
39054         Don't check for unistd.h.
39055
39056 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
39057
39058         Merge from coreutils.
39059
39060         * lib/.gdb-history: Remove; this doesn't belong here.
39061
39062         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
39063         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
39064         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
39065         * lib/getcwd.c: New files.
39066
39067         * lib/dirname.h: Include <stdbool.h>.
39068         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
39069         for consistency with POSIX terminology.  All uses changed.
39070         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
39071         (strip_trailing_slashes): Use bool for booleans.
39072         * lib/stripslash.c (strip_trailing_slashes): Likewise.
39073
39074         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
39075         sometimes returns a positive errno value even when it succeeds.
39076         (print_errno_message) [!LIBC]: Fall back on strerror if
39077         __strerror_r fails.
39078
39079         * lib/path-concat.c (mempcpy): Don't define if a system header defines
39080         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
39081         (longest_relative_suffix): New function.
39082         (path_concat): Use it.  Assume first argument is not NULL.
39083         Port to DOS.  Omit redundant separators.
39084         Report an error instead of returning NULL.
39085         Use mempcpy instead of memcpy.
39086         (xpath_concat): Remove: not declared or used.
39087
39088         * lib/same.h: Include <stdbool.h>
39089         (same_name): Return bool, not int.
39090         * lib/same.c (same_name): Likewise.
39091         (errno): Don't declare; we assume C89 or better now.
39092
39093         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
39094         if not already defined.
39095
39096         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
39097         * lib/dup-safer.c (errno): Likewise.
39098
39099 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
39100
39101         Merge from coreutils.
39102         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
39103         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
39104         * modules/path-concat: Don't depend on strdup.
39105
39106 2004-08-03  Simon Josefsson  <jas@extundo.com>
39107
39108         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
39109         * lib/progname.h: Don't include stdbool.h.
39110
39111 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
39112
39113         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
39114         * MODULES.html.sh (func_all_modules): Remove fatal.
39115
39116 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
39117
39118         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
39119
39120 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
39121
39122         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
39123         working.
39124
39125 2004-08-02  Simon Josefsson  <jas@extundo.com>
39126
39127         * lib/getsubopt.h: New file, with comments from Bruno Haible.
39128         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
39129         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
39130
39131 2004-08-01  Simon Josefsson  <jas@extundo.com>
39132
39133         * lib/xgetdomainname.c: Include stdlib.h, for free().
39134
39135 2004-07-19  Bruno Haible  <bruno@clisp.org>
39136
39137         * MODULES.html.sh (func_all_modules): Add dummy.
39138
39139 2004-07-16  Simon Josefsson  <jas@extundo.com>
39140
39141         * modules/dummy: New file.
39142
39143 2004-07-16  Simon Josefsson  <jas@extundo.com>
39144
39145         * lib/dummy.c: New file.
39146
39147 2004-07-16  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/backupfile.h: Add extern "C" for C++.
39150         * lib/closeout.h: Likewise.
39151         * lib/copy-file.h: Likewise.
39152         * lib/findprog.h: Likewise.
39153         * lib/full-write.h: Likewise.
39154         * lib/pathname.h: Likewise.
39155         * lib/progname.h: Likewise.
39156         * lib/stpcpy.h: Likewise.
39157         * lib/stpncpy.h: Likewise.
39158         * lib/strcase.h: Likewise.
39159         * lib/strstr.h: Likewise.
39160         * lib/xalloc.h: Likewise.
39161
39162         * lib/mbswidth.h: Add extern "C" for C++.
39163         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
39164
39165 2004-07-13  Robert Millan  <robertmh@gnu.org>
39166
39167         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
39168
39169 2004-07-09  Simon Josefsson  <jas@extundo.com>
39170
39171         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
39172         failed without this.)
39173
39174 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39175
39176         * modules/chown (Files): Add lib/fchown-stub.c, since
39177         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
39178
39179 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39180
39181         * lib/fchown-stub.c: New file.
39182
39183 2004-06-24  Jim Meyering  <jim@meyering.net>
39184
39185         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
39186
39187 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39188
39189         * modules/argz: Omit "#include".
39190
39191         * MODULES.html.sh (func_all_modules): Add calloc, to match
39192         2004-06-01 addition of calloc module.
39193
39194 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39195
39196         * m4/argz.m4: New file, which is autoupdated from libtool.
39197
39198 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39199
39200         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
39201         libtool.
39202
39203 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39204
39205         * config/srclist-update: Don't insist on "USA." before the
39206         close-comment, as libtool omits the period and puts the */ on a
39207         separate line.
39208         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
39209         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
39210
39211 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
39212
39213         * modules/argz: New file.
39214         * MODULES.html.sh (func_all_modules): Add argz.
39215
39216 2004-06-12  Jim Meyering  <jim@meyering.net>
39217         and  Paul Eggert  <eggert@cs.ucla.edu>
39218
39219         * modules/hash (Files): Add lib/xalloc.h.
39220         * modules/pipe (Depends-on): Add wait-process.
39221         * modules/stat (Depends-on): Add xalloc.
39222         * modules/userspec (Files): Add lib/userspec.h.
39223         * modules/xstrto
39224
39225         Upgrade from gettext-0.13.
39226         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
39227         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
39228         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
39229
39230 2004-06-10  Jim Meyering  <jim@meyering.net>
39231
39232         * lib/calloc.c: New file.
39233
39234 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39235
39236         * lib/getdate.y (yylex): Allow space between sign and number.
39237         Problem reported by Dan Jacobson.
39238
39239 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
39240
39241         Merge from coreutils CVS.
39242
39243         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
39244         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
39245         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
39246         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
39247         xstrtol.m4: Fix copyright date and/or serial number.
39248
39249         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
39250         See if we need an fchown replacement.
39251         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
39252         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
39253         and use the replacement function if we detect either defect.
39254
39255         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
39256         gl_UTIMECMP.
39257
39258 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
39259         and  Jim Meyering  <jim@meyering.net>
39260
39261         Merge from coreutils CVS.
39262
39263         * lib/stat-macros.h: New file, with contents from file-type.h
39264         and coreutils' system.h.
39265         * lib/file-type.c: Include "stat-macros.h".
39266         * lib/file-type.h (file_type): Move all macro definitions to new file,
39267         stat-macros.h.
39268
39269         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
39270         Wrap old code with this conditional.
39271         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
39272         function that does not dereference symlinks.
39273         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
39274
39275         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
39276         dependency problems.
39277         (xreadlink): Accept new arg SIZE, for efficiency.
39278         All decls and uses changed.
39279         * lib/xreadlink.h: Include <stddef.h>, for size_t.
39280
39281         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
39282         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
39283
39284         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
39285         sysexits.h.
39286
39287 2004-06-01  Jim Meyering  <jim@meyering.net>
39288
39289         * m4/calloc.m4: New file.
39290
39291 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
39292
39293         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
39294         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
39295         Also, fix a typo in a diagnostic.
39296
39297 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
39298
39299         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
39300         or AC_FUNC_REALLOC.
39301
39302 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
39303
39304         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
39305         macros to be defined.
39306         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
39307         the allocator returns NULL because the requested size is zero.
39308
39309 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39310
39311         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
39312         var.  Add comment explaining why libc still defines it.  This
39313         merges the following patch from glibc:
39314         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
39315
39316 2004-05-20  Andreas Schwab  <schwab@suse.de>
39317
39318         * m4/free.m4: Replace free if it not known to work, not the other
39319         way round.
39320
39321 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39322
39323         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
39324         present in glibc since revision 1.1 of this file.
39325         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
39326         obstack_alignment_mask, obstack_alloc, obstack_base,
39327         obstack_blank, obstack_blank_fast, obstack_chunk_size,
39328         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
39329         obstack_grow0, obstack_init, obstack_int_grow,
39330         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
39331         obstack_next_free, obstack_object_size, obstack_ptr_grow,
39332         obstack_ptr_grow_fast, obstack_room): Remove declarations of
39333         nonexistent functions.
39334
39335 2004-05-18  Karl Berry  <karl@gnu.org>
39336
39337         * config/srclist.txt: break link for vasnprintf.c.
39338
39339 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39340
39341         Port obstack to the AS/400, where pointers are 16 bytes wide and
39342         you cannot cast an integer to a valid pointer.  This patch is
39343         currently waiting to be integrated into glibc; see
39344         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
39345
39346         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
39347         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
39348         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
39349         (struct obstack): temp member is now a union of a pointer and
39350         an integer, instead of an integer.  All integer uses changed.
39351         This does not affect the physical layout of struct obstack,
39352         except on hosts (like the AS/400) where the size or alignment of
39353         void * is greater than that of ptrdiff_t.
39354         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
39355         __STDC__)]: Store temporary in pointer member of union, not
39356         integer member.
39357         * lib/obstack.c: Include <stddef.h>, for offsetof.
39358         (struct fooalign): Remove; it doesn't need a name.
39359         (union fooround): Change double to long double, and add void *.
39360         (DEFAULT_ALIGNMENT): Use offsetof to compute.
39361         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
39362         not a macro.  Hence the values are always int; so remove all
39363         casts-to-int in uses.
39364
39365 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39366
39367         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
39368         we can get this patch merged into glibc.
39369
39370 2004-05-17  Derek R. Price  <derek@ximbiot.com>
39371             Paul Eggert  <eggert@cs.ucla.edu>
39372
39373         * m4/argp: Depend on alloca.
39374
39375 2004-05-17  Derek R. Price  <derek@ximbiot.com>
39376             Paul Eggert  <eggert@cs.ucla.edu>
39377
39378         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
39379         freecoding.
39380
39381 2004-05-17  Bruno Haible  <bruno@clisp.org>
39382
39383         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
39384         precision that consists of a '.' followed by an empty digit string.
39385         Patch by Tor Lillqvist <tml@iki.fi>.
39386
39387 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39388
39389         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
39390         for backward compatibility with older code.  We need our own
39391         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
39392         it under some other name, and our alloca.h will define it.
39393
39394 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39395             Derek Price  <derek@ximbiot.com>
39396
39397         * lib/alloca.c: Include <alloca.h>, to get our interface.
39398         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
39399         include <alloca.h> first.  Use C89 prototype for alloca; this
39400         requires including <stddef.h> for size_t.  Use extern "C" if C++.
39401         Use #elif for simplicity, since we can assume C89 now.
39402         Don't try to source the system alloca.h since it will not be found
39403         and to prevent recursively including its replacement.
39404         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
39405         * lib/regex.c: Likewise.
39406
39407 2004-05-16  Derek Price  <derek@ximbiot.com>
39408             Paul Eggert  <eggert@cs.ucla.edu>
39409
39410         getline cleanup.  This changes the getndelim2 API: both order of
39411         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
39412         no delimiter).
39413
39414         * lib/getline.c: Don't include stddef.h or stdio.h, since our
39415         interface does that.
39416         (getline): Always use getdelim, so that we don't have two
39417         copies of this code.
39418         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
39419         if available.
39420         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
39421         (GETNDELIM2_MAXIMUM): New macro.
39422         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
39423         instead of the old practice of delim2==0.  All callers changed.
39424         Return -1 on overflow, instead of returning junk.
39425         Do not set *linesize unless allocation succeeds.
39426         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
39427         that we include sys/types.h.
39428         * lib/getnline.h: Likewise.
39429         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
39430         (getndelim2): Reorder arguments.
39431         * lib/getnline.c (getnline, getndelim):
39432         Don't discard the NMAX argument.
39433         (getnline): Invoke getndelim, to avoid code duplication.
39434         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
39435         of (size_t) -1 by callers of the getnline family.
39436
39437 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39438
39439         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
39440         Check for gettimeofday.
39441         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
39442         Check for settimeofday, stime.
39443
39444 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39445
39446         * lib/nanosleep.c (suspended): Change its type from int to
39447         sig_atomic_t volatile.
39448         (first_call): Make it private to rpl_nanosleep, and have it
39449         be zero initially as that's a bit faster.
39450         (my_usleep): Round up fractional times instead of truncating them,
39451         as this is the usual meaning for 'sleep'.
39452
39453         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
39454         doesn't work.
39455         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
39456         (ENOSYS): Define if not defined.
39457         (settime): Fall back on stime if it exists and settimeofday fails.
39458         But don't bother with fallbacks if a method fails with errno == EPERM.
39459
39460 2004-05-11  Jim Meyering  <jim@meyering.net>
39461
39462         Prior to this change, the save_cwd caller required read access to the
39463         current directory on most systems (ones with the fchdir function).
39464
39465         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
39466         fails, try write-only, and finally, resort to using xgetcwd.
39467
39468 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39469
39470         * lib/obstack.c, obstack.h: Import changes from libc.
39471
39472 2004-04-28  Bruno Haible  <bruno@clisp.org>
39473
39474         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
39475         also implicitly appends .exe to executables.
39476         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
39477         accepts Windows pathnames.
39478         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
39479         Treat Cygwin like Windows, since it now accepts Windows pathnames.
39480         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
39481         Treat Cygwin like Windows, since it now accepts Windows pathnames.
39482         Reported by Derek Robert Price <derek@ximbiot.com>.
39483
39484 2004-04-21  Karl Berry  <karl@gnu.org>
39485
39486         * config/srclist.txt (localcharset.c): break sync.
39487
39488 2004-04-20  Paul Eggert  <eggert@twinsun.com>
39489
39490         * m4/host-os.m4: Add a copyright notice.
39491
39492 2004-04-20  Jim Meyering  <jim@meyering.net>
39493
39494         Change UTILS_ to gl_ in AC_DEFINE'd names.
39495         Change utils_- and jm_-prefixed variables, too.
39496         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
39497         UTILS_FUNC_MKDIR_TRAILING_SLASH.
39498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
39499
39500         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
39501         Don't emit trailing blanks.
39502         Also rename jm_-prefixed variables to have gl_ prefix.
39503
39504         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
39505         Also rename jm_-prefixed variables to have gl_ prefix.
39506
39507         * m4/jm-macros.m4: Reflect the renamings.
39508         * m4/prereq.m4: Likewise.
39509
39510 2004-04-20  Jim Meyering  <jim@meyering.net>
39511
39512         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
39513         memory.
39514
39515 2004-04-20  Jim Meyering  <jim@meyering.net>
39516             Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
39519         memory when realloc fails.
39520
39521 2004-04-19  Jim Meyering  <jim@meyering.net>
39522
39523         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
39524         now that readutmp.c may call `free (0)'.
39525
39526 2004-04-19  Bruno Haible  <bruno@clisp.org>
39527
39528         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
39529         * m4/inttypes_h.m4: Likewise.
39530         * m4/stdint_h.m4: Likewise.
39531         * m4/intmax_t.m4: Likewise.
39532         * m4/uintmax_t.m4: Likewise.
39533
39534 2004-04-18  Jim Meyering  <jim@meyering.net>
39535
39536         * m4/prereq.m4: Don't forbid jm_ prefix.
39537
39538         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
39539         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
39540         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
39541         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
39542         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
39543         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
39544         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
39545         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
39546         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
39547         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
39548         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
39549         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
39550         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
39551         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
39552         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
39553         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
39554         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
39555         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
39556         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
39557
39558 2004-04-18  Jim Meyering  <jim@meyering.net>
39559
39560         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
39561         failure, don't leak memory and do call END_UTMP_ENT.
39562
39563 2004-04-16  Jim Meyering  <jim@meyering.net>
39564
39565         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
39566         coreutils' stat program.
39567         (gl_PREREQ): Don't require jm_PREREQ_STAT.
39568
39569 2004-04-11  Paul Eggert  <eggert@twinsun.com>
39570
39571         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
39572         C89.
39573         (CHAR_BIT): Remove, since we assume C89.
39574         Include <stdint.h> if available, as per current Autoconf CVS advice.
39575
39576 2004-03-31  Jim Meyering  <jim@meyering.net>
39577
39578         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
39579         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
39580         * m4/xalloc.m4: Likewise.
39581
39582 2004-03-30  Paul Eggert  <eggert@twinsun.com>
39583
39584         Merge from coreutils.
39585
39586         * m4/inttostr.m4: New file.
39587         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
39588         Require AM_STDBOOL_H and gl_TIMESPEC instead.
39589         Require gl_CLOCK_TIME.
39590         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
39591
39592 2004-03-30  Paul Eggert  <eggert@twinsun.com>
39593
39594         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
39595         not bool, to be more consistent with Unix conventions.
39596         Suggested by Bruno Haible.
39597
39598         Merge from coreutils.
39599
39600         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
39601         * lib/umaxtostr.c: New files.
39602
39603         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
39604         the usual <time.h> dance.
39605         (get_date): Change signature to support fractional time stamps.
39606         All callers changed.
39607         * lib/getdate.y: Include "getdate.h" first, as we can now
39608         assume C89 and don't need to worry about 'const'.
39609         Similarly, include "unlocked-io.h" near start, not in middle.
39610         Include <limits.h>.
39611         (textint.value): Use long int rather than int.
39612         (textint.digits): Use size_t rather than int.
39613         (BILLION, LOG10_BILLION): New constants.
39614         (parser_control): New member rel_ns.  Members day_ordinal,
39615         time_zone, month, day, hour, minutes, rel_year, rel_month,
39616         rel_day, rel_hour, rel_minutes, rel_seconds
39617         are now long int, not int.  Member seconds is now struct timespec,
39618         not int.  New member timespec_seen.  Members dates_seen, days_seen,
39619         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
39620         not int.
39621         (%union.intval): Now long int, not int.
39622         New member timespec.
39623         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
39624         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
39625         (spec): Now is a timespec or an item list.
39626         (timespec, items): New nonterminals.
39627         (time, rel, relunit, number, get_date):
39628         Add support for fractional seconds.
39629         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
39630         (gmtime, localtime, mktime): Remove decls; not needed with C89.
39631         (to_hour): First arg is now long int, not int.
39632         (to_year): Returns long int, not int.
39633         Don't treat year -70 like 70.
39634         (tm_diff): Returns long int, not int.
39635         (lookup_word): Use bool instead of int when appropriate.
39636         (yylex): Use size_t for count, not int.
39637         Detect overflow when parsing large integer constants.
39638         Add support for fractions.
39639         (get_date): Make pointers 'const' if possible.
39640         Use more-portable code to detect integer overflow.
39641         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
39642         Don't use ctime; it's not reliable if the year has >4 digits.
39643
39644         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
39645         This is for compatibility with BSD.
39646
39647         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
39648         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
39649         From coreutils' system.h.
39650
39651         * lib/userspec.c: Don't include "posixver.h".
39652         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
39653         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
39654         compatible extension.  Simplify code by removing a boolean int
39655         that was always nonzero if a string was nonnull.
39656
39657 2004-03-30  Jim Meyering  <jim@meyering.net>
39658
39659         Merge from coreutils.
39660
39661         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
39662         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
39663         on some systems one must include <grp.h> before it.
39664         Reported by Christian Krackowizer.
39665
39666 2004-03-30  Jim Meyering  <jim@meyering.net>
39667
39668         Merge from coreutils.
39669
39670         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
39671
39672         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
39673         an empty input stream.
39674
39675         * lib/readtokens.c: Include <stdbool.h>.
39676         (readtoken): Use `size_t' rather than int/long.
39677         All callers adjusted.
39678         Use `bool' rather than `int' where appropriate.
39679         Use memset rather than an explicit loop.
39680         Use x2nrealloc rather than xrealloc.
39681         Allow the use of `\0' as a delimiter.
39682         (readtokens): Likewise.
39683         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
39684
39685 2004-03-30  Jim Meyering  <jim@meyering.net>
39686
39687         * m4/realloc.m4: Remove file, since now it does no more than
39688         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
39689         the `configure.ac' section of module/realloc.
39690         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
39691
39692 2004-03-30  Bruno Haible  <bruno@clisp.org>
39693
39694         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
39695         nonnull.
39696
39697 2004-03-29  Paul Eggert  <eggert@twinsun.com>
39698
39699         Merge changes to getloadavg.c from coreutils and Emacs.
39700
39701         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
39702         Define to an expression, not to the empty string.
39703         Include cloexec.h and xalloc.h.
39704         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
39705         Use set_cloexec_flag rather than rolling our own.
39706         * lib/cloexec.c, lib/cloexec.h: New files.
39707
39708 2004-03-29  Paul Eggert  <eggert@twinsun.com>
39709
39710         * m4/cloexec.m4: New file.
39711
39712 2004-03-18  Paul Eggert  <eggert@twinsun.com>
39713
39714         * lib/getopt.h: Sync with libc CVS.
39715
39716 2004-03-18  Paul Eggert  <eggert@twinsun.com>
39717             Bruno Haible  <bruno@clisp.org>
39718
39719         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
39720         mbswidth.
39721
39722 2004-03-18  Paul Eggert  <eggert@twinsun.com>
39723             Bruno Haible  <bruno@clisp.org>
39724
39725         * lib/mbswidth.h: Include <wchar.h> only if
39726         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
39727         <wchar.h>.
39728         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
39729
39730 2004-03-09  Paul Eggert  <eggert@twinsun.com>
39731
39732         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
39733         Sync with libc CVS.
39734         * lib/getopt_int.h: New file, also synced from libc.
39735
39736 2004-03-09  Paul Eggert  <eggert@twinsun.com>
39737
39738         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
39739         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
39740         Bring back getopt.c, getopt.h, getopt1.c.
39741
39742 2004-03-07  Paul Eggert  <eggert@twinsun.com>
39743
39744         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
39745         All uses changed.  Check for sa_sigaction member; this fixes
39746         a bug first reported by Jason Andrade in
39747         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
39748
39749 2004-03-07  Paul Eggert  <eggert@twinsun.com>
39750
39751         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
39752         '#if' expressions.  Unlike the code it replaces, it does not
39753         depend on (defined _SC_PAGESIZE).  However, it does depend on
39754         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
39755         first reported by Jason Andrade in
39756         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
39757
39758 2004-02-25  Simon Josefsson  <jas@extundo.com>
39759
39760         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
39761
39762 2004-02-25  Simon Josefsson  <jas@extundo.com>
39763
39764         * lib/strdup.h: New file.
39765         * lib/strdup.c: Include it.
39766         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
39767         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
39768
39769 2004-02-23  Karl Berry  <karl@gnu.org>
39770
39771         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
39772         (from fencepost.gnu.org:/gd/gnuorg).
39773
39774 2004-02-23  Karl Berry  <karl@gnu.org>
39775
39776         * config/srclistvars.sh (GNUORG) [karl]: redefine.
39777         * config/srclist.txt: add maintain/standards documents.
39778
39779 2004-02-18  Bruno Haible  <bruno@clisp.org>
39780
39781         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
39782         Reported by Derek Robert Price <derek@ximbiot.com>.
39783
39784 2004-02-16  Karl Berry  <karl@gnu.org>
39785
39786         * config/mkinstalldirs, install-sh: update from automake.
39787
39788 2004-02-06  Karl Berry  <karl@gnu.org>
39789
39790         * m4/po.m4: update from gettext 0.14.1.
39791
39792 2004-02-06  Karl Berry  <karl@gnu.org>
39793
39794         * lib/config.charset: update from gettext 0.14.1.
39795
39796 2004-02-05  Paul Eggert  <eggert@twinsun.com>
39797
39798         Add comments and code, prompted by suggestions from Bruno Haible
39799         for sh-quote.
39800         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
39801         describing the enum quoting_style values.
39802         * lib/quotearg.c (quotearg_alloc): New function.
39803         (quotearg_buffer_restyled): Treat lone { and } as special.
39804         Treat = as special.  Work around bug with older shells
39805         that "see" a '\' that is really the 2nd byte of a multibyte char.
39806         Quote empty string with shell_quoting_style.
39807
39808 2004-02-03  Bruno Haible  <bruno@clisp.org>
39809
39810         * m4/pipe.m4: New file, from GNU gettext.
39811
39812 2004-02-03  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/pipe.h: New file, from GNU gettext.
39815         * lib/pipe.c: New file, from GNU gettext.
39816
39817 2004-01-27  Bruno Haible  <bruno@clisp.org>
39818
39819         * m4/execute.m4: New file, from GNU gettext.
39820
39821 2004-01-27  Bruno Haible  <bruno@clisp.org>
39822
39823         * lib/execute.h: New file, from GNU gettext.
39824         * lib/execute.c: New file, from GNU gettext.
39825         * lib/w32spawn.h: New file, from GNU gettext.
39826
39827 2004-01-24  Paul Eggert  <eggert@twinsun.com>
39828
39829         Merge from diffutils.
39830
39831         * lib/file-type.c (file_type): Add typed memory objects.
39832         * lib/file-type.h (S_TYPEISTMO): New macro.
39833
39834         * lib/c-stack.h (c_stack_action): Remove argv argument.
39835         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
39836         (die): Don't calculate message unless segv_action returns.
39837         (get_stack_location, min_address_from_argv, max_address_from_argv,
39838         volatile stack_base, volatile_stack_size): Remove.
39839         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
39840         that every segmentation violation is a stack overflow.  (Ouch!)
39841         See Debian bug 136249 (still outstanding) for more info about why
39842         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
39843
39844 2004-01-24  Paul Eggert  <eggert@twinsun.com>
39845
39846         Exit-status fix from coreutils.
39847
39848         Use exit_failure consistently in place of EXIT_FAILURE,
39849         so that program exit statuses are consistent on failure.
39850
39851         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
39852         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
39853         * lib/argmatch.h: Comment fix to match the above.
39854         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
39855         Now a macro referring to exit_failure, instead of a separate
39856         variable.  Include "exitfail.h" to get it.
39857         * lib/xstrtol.h: Include "exitfail.h".
39858         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
39859
39860         * lib/long-options.c (parse_long_options): Use prototype
39861         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
39862         for clarity.
39863
39864 2004-01-21  Jim Meyering  <jim@meyering.net>
39865
39866         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
39867         so as not to conflict with a different-sized __mktime_internal
39868         function in GNU libc.
39869         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
39870         Problem building statically-linked `ls' reported by Michael Brunnbauer.
39871
39872 2004-01-20  Karl Berry  <karl@gnu.org>
39873
39874         * config/config.guess: update from config.
39875
39876         * config/srclistvars.sh: GNUWWWLICENSES for karl.
39877
39878 2004-01-20  Bruno Haible  <bruno@clisp.org>
39879
39880         Safer stack allocation.
39881         * lib/setenv.c: Include allocsa.h.
39882         (alloca): Remove fallback definition.
39883         (freea): Remove macro.
39884         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
39885         instead of freea.
39886
39887 2004-01-20  Bruno Haible  <bruno@clisp.org>
39888
39889         * m4/eealloc.m4: New file, from GNU gettext.
39890
39891 2004-01-20  Bruno Haible  <bruno@clisp.org>
39892
39893         * m4/allocsa.m4: New file, from GNU gettext.
39894
39895 2004-01-20  Bruno Haible  <bruno@clisp.org>
39896
39897         * lib/xallocsa.h: New file, from GNU gettext.
39898         * lib/xallocsa.c: New file, from GNU gettext.
39899
39900 2004-01-20  Bruno Haible  <bruno@clisp.org>
39901
39902         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
39903
39904 2004-01-20  Bruno Haible  <bruno@clisp.org>
39905
39906         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
39907         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
39908         specially.
39909
39910 2004-01-20  Bruno Haible  <bruno@clisp.org>
39911
39912         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
39913         patch.
39914
39915 2004-01-20  Bruno Haible  <bruno@clisp.org>
39916
39917         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
39918
39919 2004-01-20  Bruno Haible  <bruno@clisp.org>
39920
39921         * lib/eealloc.h: New file.
39922
39923 2004-01-20  Bruno Haible  <bruno@clisp.org>
39924
39925         * lib/binary-io.h: Avoid warnings on Cygwin.
39926
39927 2004-01-20  Bruno Haible  <bruno@clisp.org>
39928
39929         * lib/allocsa.h: New file, from GNU gettext.
39930         * lib/allocsa.c: New file, from GNU gettext.
39931
39932 2004-01-18  Karl Berry  <karl@gnu.org>
39933
39934         * doc/gpl.texi, doc/lgpl.texi: new files.
39935
39936 2004-01-18  Karl Berry  <karl@gnu.org>
39937
39938         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
39939         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
39940
39941 2004-01-15  Paul Eggert  <eggert@twinsun.com>
39942
39943         Merge from coreutils.
39944
39945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
39946         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
39947         (gl_DEFAULT_POSIX2_VERSION): Move
39948         the documentation from 'configure' into 'config.hin',
39949         so that 'configure --help' isn't burdened by it and
39950         we don't have to worry about its formatting there.
39951         Reword the documentation so that it's more succinct
39952         and can be run together into a single paragraph.
39953         * m4/same.m4 (gl_SAME): Check for pathconf.
39954
39955 2004-01-15  Paul Eggert  <eggert@twinsun.com>
39956
39957         Merge from coreutils.
39958
39959         * lib/posixver.c: Include posixver.h.
39960
39961         * lib/same.c: Include <stdbool.h>, <limits.h>.
39962         (_POSIX_NAME_MAX): Define if not defined.
39963         (MIN): New macro.
39964         (same_name): If file names are silently truncated, report
39965         that the file names are the same if they are the same after
39966         the silent truncation.
39967
39968         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
39969         conversion function.
39970         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
39971         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
39972         longer needed.
39973
39974 2004-01-15  Jim Meyering  <jim@meyering.net>
39975
39976         Merge from coreutils.
39977
39978         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
39979         if no library is required.
39980         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
39981         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
39982         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
39983         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
39984         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
39985         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
39986         value, $ac_cv_search_crypt, if it's "none required".
39987         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
39988         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
39989         not gl_FUNC_GETLOADAVG.
39990         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
39991         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
39992
39993 2004-01-15  Jim Meyering  <jim@meyering.net>
39994
39995         Merge from coreutils.
39996
39997         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
39998         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
39999         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
40000
40001         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
40002         optional configure-time default.
40003
40004         * lib/version-etc.c (version_etc_copyright): Update copyright date.
40005
40006         * lib/xreadlink.c (xreadlink): Correct outdated comment.
40007
40008 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
40009
40010         Merge from coreutils.
40011
40012         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
40013         value, $ac_cv_search_nanosleep, if it's "none required".
40014
40015 2004-01-14  Paul Eggert  <eggert@twinsun.com>
40016
40017         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
40018         with like-named macro in fnmatch.c.
40019         (EXT): Use an internal constant instead.
40020
40021         Merge fnmatch patches from glibc.
40022         * lib/fnmatch.c (mbsinit): Remove define.
40023         Add libc_hidden_ver (__fnmatch, fnmatch).
40024         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
40025         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
40026
40027 2004-01-14  Karl Berry  <karl@gnu.org>
40028
40029         * config/install-sh: update from automake.
40030
40031 2004-01-13  Karl Berry  <karl@gnu.org>
40032
40033         * config/install-sh: update from automake.
40034
40035 2004-01-09  Karl Berry  <karl@gnu.org>
40036
40037         * config/install-sh: update from automake.
40038
40039 2004-01-05  Karl Berry  <karl@gnu.org>
40040
40041         * config/config.{sub,guess}: update from config.
40042
40043 2003-12-31  Karl Berry  <karl@gnu.org>
40044
40045         * config/depcomp: update from automake.
40046
40047 2003-12-14  Karl Berry  <karl@gnu.org>
40048
40049         * lib/config.charset: update from gettext-runtime.
40050
40051 2003-12-03  Paul Eggert  <eggert@twinsun.com>
40052
40053         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
40054         Bug reported by Alfred M. Szmidt.
40055
40056 2003-12-03  Bruno Haible  <bruno@clisp.org>
40057
40058         * m4/gettext.m4: Upgrade from gettext-0.13.
40059         * m4/po.m4: Upgrade from gettext-0.13.
40060         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
40061         * m4/intmax.m4: New file, from gettext-0.13.
40062         * m4/printf-posix.m4: New file, from gettext-0.13.
40063
40064 2003-11-29  Karl Berry  <karl@gnu.org>
40065
40066         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
40067
40068 2003-11-25  Paul Eggert  <eggert@twinsun.com>
40069             Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/printf-parse.h: Don't include sys/types.h.
40072         (ARG_NONE): New macro.
40073         (char_directive): Change type of *arg_index fields to size_t.
40074         * lib/printf-parse.c: Don't include sys/types.h.
40075         (SSIZE_MAX): Remove macro.
40076         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
40077         Remove unnecessary overflow check.
40078         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
40079         fields.
40080
40081 2003-11-25  Bruno Haible  <bruno@clisp.org>
40082
40083         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
40084
40085 2003-11-25  Bruno Haible  <bruno@clisp.org>
40086
40087         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
40088         gt_TYPE_SSIZE_T.
40089
40090 2003-11-24  Paul Eggert  <eggert@twinsun.com>
40091
40092         * modules/alloca: Remove dependency on xalloc.
40093
40094 2003-11-24  Paul Eggert  <eggert@twinsun.com>
40095
40096         * lib/alloca.c: Remove dependency on xalloc module.
40097         (xalloc_die): Remove.
40098         (memory_full) [!defined emacs]: New macro.
40099         [!defined emacs]: Don't include xalloc.h.
40100         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
40101         address arithmetic overflows.  Change datatypes a bit to avoid
40102         unnecessary casts.
40103
40104 2003-11-22  Jim Meyering  <jim@meyering.net>
40105
40106         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
40107         s/size/size_t/.
40108
40109 2003-11-21  Karl Berry  <karl@gnu.org>
40110
40111         * config/config.{sub,guess}: update from config.
40112
40113 2003-11-18  Karl Berry  <karl@gnu.org>
40114
40115         * config/config.{sub,guess}: update from config.
40116
40117         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
40118
40119 2003-11-17  Paul Eggert  <eggert@twinsun.com>
40120
40121         * README: Mention that S+T cannot overflow if S is the size of
40122         an existing object and T is sufficiently small.
40123
40124 2003-11-17  Jim Meyering  <jim@meyering.net>
40125
40126         On systems without utime and without a utimes function capable of
40127         dealing with a NULL struct utimbuf* argument, this utime replacement
40128         could -- in unusual circumstances -- leak a file descriptor.
40129         * lib/utime.c: Include <unistd.h> and <errno.h>.
40130         (utime_null): Be sure to close `fd' and to preserve errno.
40131         Reported by Geoff Collyer via Arnold Robbins.
40132
40133 2003-11-17  Bruno Haible  <bruno@clisp.org>
40134
40135         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
40136         (Depends-on): Add xsize.
40137
40138 2003-11-17  Bruno Haible  <bruno@clisp.org>
40139
40140         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
40141
40142 2003-11-17  Bruno Haible  <bruno@clisp.org>
40143
40144         * lib/vasnprintf.c (alloca): Remove fallback definition.
40145         (freea): Remove definition.
40146         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
40147         Reported by Paul Eggert.
40148
40149 2003-11-16  Paul Eggert  <eggert@twinsun.com>
40150             Bruno Haible  <bruno@clisp.org>
40151
40152         Protect against address arithmetic overflow.
40153         * lib/printf-args.h: Include stddef.h.
40154         (arguments): Change type of field 'count' to size_t.
40155         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
40156         'unsigned int' where appropriate.
40157         * lib/printf-parse.h: Include sys/types.h.
40158         (char_directive): Change type of *arg_index fields to ssize_t.
40159         (char_directives): Change type of fields 'count', max_*_length to
40160         size_t.
40161         * lib/printf-parse.c: Include sys/types.h and xsize.h.
40162         (SSIZE_MAX): Define fallback value.
40163         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
40164         instead of 'int' where appropriate. Check a_allocated, d_allocated
40165         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
40166         * lib/vasnprintf.c: Include xsize.h.
40167         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
40168         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
40169         overflow. Avoid wraparound when converting a width or precision from
40170         decimal to binary.
40171
40172 2003-11-16  Bruno Haible  <bruno@clisp.org>
40173
40174         Update from GNU gettext.
40175         * lib/printf-parse.c: Generalize to it can be compiled for wide
40176         strings.
40177         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
40178         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
40179         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
40180         SNPRINTF): New macros.
40181         Don't include <alloca.h> if the file is used inside libintl.
40182         (local_wcslen): New function, for Solaris 2.5.1.
40183         (VASNPRINTF): Use it instead of wcslen.
40184
40185 2003-11-16  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/xsize.h (xmax): New function.
40188         (xsum, xsum3, xsum4): Declare as "pure" functions.
40189
40190 2003-11-12  Paul Eggert  <eggert@twinsun.com>
40191
40192         * modules/xalloc (Files): Undo latest change, since xalloc.h
40193         no longer needs SIZE_MAX or PTRDIFF_MAX.
40194
40195 2003-11-12  Paul Eggert  <eggert@twinsun.com>
40196
40197         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
40198         gl_PTRDIFF_MAX.
40199
40200 2003-11-12  Paul Eggert  <eggert@twinsun.com>
40201
40202         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
40203         "return", to pacify some unknown compiler.  Problem reported
40204         by Joerg Schilling.
40205
40206 2003-11-12  Paul Eggert  <eggert@twinsun.com>
40207
40208         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
40209         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
40210         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
40211         heuristic is just as accurate as far as we know, and it removes a
40212         dependency on size_max.m4 and ptrdiff_max.m4.
40213
40214 2003-11-11  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/xsize (Files): Add m4/size_max.m4.
40217         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
40218
40219 2003-11-11  Bruno Haible  <bruno@clisp.org>
40220
40221         * m4/size_max.m4: New file.
40222         * m4/ptrdiff_max.m4: New file.
40223         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
40224         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
40225         (gl_XALLOC): Invoke it.
40226
40227 2003-11-11  Bruno Haible  <bruno@clisp.org>
40228
40229         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
40230         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
40231         defined.
40232
40233 2003-11-10  Paul Eggert  <eggert@twinsun.com>
40234
40235         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
40236         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
40237         rejected some allocations of exactly SIZE_MAX - 2 bytes.
40238         From Bruno Haible.
40239         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
40240         not (size_t) -1, since it's defined here.
40241
40242 2003-11-09  Karl Berry  <karl@gnu.org>
40243
40244         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
40245
40246 2003-11-06  Paul Eggert  <eggert@twinsun.com>
40247
40248         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
40249         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
40250         Reject sizes of exactly SIZE_MAX bytes.
40251         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
40252         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
40253
40254 2003-11-05  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/xsize.h: Include limits.h, to avoid a possible collision with
40257         SIZE_MAX defined in <limits.h> on Solaris.
40258
40259 2003-11-04  Jim Meyering  <jim@meyering.net>
40260
40261         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
40262         variable names, rather than @VAR@.
40263         * modules/poll: Likewise.
40264
40265 2003-11-04  Bruno Haible  <bruno@clisp.org>
40266
40267         * modules/xsize: New file.
40268         * modules/linebreak: Depend on xsize.
40269         * MODULES.html.sh (func_all_modules): Add xsize.
40270
40271 2003-11-04  Bruno Haible  <bruno@clisp.org>
40272
40273         * m4/xsize.m4: New file.
40274
40275 2003-11-04  Bruno Haible  <bruno@clisp.org>
40276
40277         * lib/xsize.h: New file.
40278         * lib/linebreak.c: Include xsize.h.
40279         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
40280         argument for overflow.
40281         Suggested by Paul Eggert.
40282
40283 2003-11-03  Karl Berry  <karl@gnu.org>
40284
40285         * config/config.{guess,sub}: update from config.
40286
40287 2003-11-03  Jim Meyering  <jim@meyering.net>
40288
40289         * modules/userspec (lib_SOURCES): Add userspec.h.
40290         (Include): Add "userspec.h".
40291         Improve description.
40292
40293 2003-11-03  Jim Meyering  <jim@meyering.net>
40294
40295         * lib/userspec.c: Include "userspec.h".
40296         * lib/userspec.h: New file.
40297
40298 2003-11-03  Bruno Haible  <bruno@clisp.org>
40299
40300         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
40301
40302 2003-11-03  Bruno Haible  <bruno@clisp.org>
40303
40304         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
40305         available, to avoid (extremely rare) race condition.
40306         Suggested by Paul Eggert.
40307
40308 2003-11-02  Karl Berry  <karl@gnu.org>
40309
40310         * config/srclist.txt (vasprintf.c): sync broken, sigh.
40311
40312 2003-10-31  Paul Eggert  <eggert@twinsun.com>
40313
40314         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
40315         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
40316         (read_filesystem_list): Set and use me_type_malloced.
40317         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
40318         whatever the type happens to be), for brevity and consistency.
40319         Check for size calculation overflow on Alphas running OSF/1.
40320
40321 2003-10-31  Jim Meyering  <jim@meyering.net>
40322
40323         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
40324
40325         * lib/linebuffer.c: Include <string.h> for declaration of memset.
40326
40327 2003-10-30  Paul Eggert  <eggert@twinsun.com>
40328             Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
40331         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
40332
40333 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
40334
40335         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
40336         netbsd*-gnu*.  Suggested by Robert Millan.
40337
40338 2003-10-29  Paul Eggert  <eggert@twinsun.com>
40339
40340         * modules/group-member: Depend on stdbool.
40341
40342 2003-10-29  Paul Eggert  <eggert@twinsun.com>
40343
40344         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
40345
40346 2003-10-29  Paul Eggert  <eggert@twinsun.com>
40347
40348         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
40349         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
40350         after the 'gnu' in these cases.  This fixes some bugs in the
40351         previous change, and is based on suggestions by Robert Millan.
40352
40353 2003-10-29  Paul Eggert  <eggert@twinsun.com>
40354
40355         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
40356         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
40357         no longer needed.
40358         * lib/quotearg.c (quotearg_n_options): Use it.
40359         * lib/group-member.c: Include <stdbool.h>.
40360         (free_group_info): Arg is now const *; don't free arg.
40361         (get_group_info): Now returns bool and accepts struct group_info *,
40362         rather than returning a malloc'ed struct group_info *.
40363         All uses changed.  Check for overflow in internal size calculation.
40364
40365         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
40366         rather than xmalloc/xrealloc.
40367         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
40368         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
40369         conformance bug: the old code used a pointer after freeing the
40370         storage that it addressed.
40371         * lib/hash.c (hash_initialize): Simplify the code by using
40372         xalloc_oversized rather than doing it by hand.
40373         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
40374         the buffer preserved.  Use free and xmalloc instead.
40375         * lib/quotearg.c (quotearg_n_options): Likewise.
40376         Use a simpler test for size overflow.  Don't use xalloc_oversized
40377         because unsigned int might be wider than size_t (!); this suggests
40378         that we should switch from unsigned int to size_t for slot numbers.
40379
40380 2003-10-28  Paul Eggert  <eggert@twinsun.com>
40381
40382         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
40383         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
40384         NetBSD kernels.  Requested by Richard Stallman.
40385
40386 2003-10-27  Paul Eggert  <eggert@twinsun.com>
40387
40388         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
40389         to allocate the returned structure.  Do not allocate a subarray,
40390         as x2nrealloc will do that.
40391         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
40392         instead of xnrealloc.
40393         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
40394
40395 2003-10-27  Bruno Haible  <bruno@clisp.org>
40396
40397         * lib/stdbool_.h: Better support for BeOS.
40398
40399 2003-10-26  Paul Eggert  <eggert@twinsun.com>
40400
40401         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
40402         now uses inline.
40403
40404 2003-10-26  Paul Eggert  <eggert@twinsun.com>
40405
40406         * lib/xalloc.h (xalloc_oversized): New static inline function, for
40407         callers that want to do their own size-overflow checking.  Include
40408         <stdbool.h>, since xalloc_oversized returns bool.
40409         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
40410         to use xalloc_oversized.
40411
40412         Add two functions x2realloc, x2nrealloc, for programs that grow
40413         arrays dynamically by doubling their sizes.
40414         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
40415         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
40416         New functions.
40417
40418         Port to C99 semantics for 'inline' of external functions.
40419         Bug reported by Bruno Haible.
40420         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
40421         with the old contents of xnmalloc.
40422         (xnmalloc, xmalloc): Use it.
40423         (xnrealloc_inline): New static inline function,
40424         with the old contents of xnrealloc.
40425         (xnrealloc, xrealloc): Use it.
40426
40427         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
40428         that.
40429
40430 2003-10-26  Karl Berry  <karl@gnu.org>
40431
40432         * config/srclist.txt (COPYING.DOC): no longer available from
40433         /gd/gnuorg; don't know where the ultimate source is.
40434
40435 2003-10-25  Paul Eggert  <eggert@twinsun.com>
40436
40437         Fix several address-calculation bugs in the hash modules,
40438         plus some minor code cleanup.
40439
40440         * lib/hash.h: Include <stdbool.h>, for bool.
40441         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
40442         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
40443         hash_get_n_entries, hash_get_max_bucket_length,
40444         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
40445         hash_rehash): Use size_t rather than unsigned.
40446         * lib/hash.c (struct hash_table, hash_get_n_buckets,
40447         hash_get_n_buckets_used, hash_get_n_entries,
40448         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
40449         hash_get_entries, hash_do_for_each, hash_string, is_prime,
40450         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
40451         Likewise.
40452         (SIZE_MAX): Define if not defined.
40453         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
40454         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
40455         hash_print):
40456         Use const * when possible.
40457         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
40458         (check_tuning): Fix bug: if tuning parameters were very close to
40459         0 or 1, rounding errors could have caused subscript violations.
40460         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
40461         (hash_initialize): Add 'fail:' label
40462         to free table and return NULL, and use it to simplify code.
40463         Use calloc rather than clearing the storage ourself.
40464         (hash_initialize, hash_rehash): Check for arithmetic overflow in
40465         buffer size calculations.
40466         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
40467         Include <stddef.h>, for size_t.
40468         * lib/hash-pjw.c (hash_pjw): Likewise.
40469         Switch to method described by Bruno Haible.
40470         Include <limits.h>, for CHAR_BIT.
40471         (SIZE_BITS): New macro.
40472
40473 2003-10-23  Paul Eggert  <eggert@twinsun.com>
40474
40475         * m4/getline.m4 (AM_FUNC_GETLINE):
40476         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
40477         hosts.  Problem reported by Derek Robert Price in
40478         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
40479         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
40480         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
40481
40482 2003-10-21  Paul Eggert  <eggert@twinsun.com>
40483
40484         * lib/getndelim2.c (getndelim2): When size calculation overflows,
40485         ceiling the allocation at NMAX bytes rather than silently
40486         discarding input bytes before NMAX is reached.  This makes
40487         a difference only if NMAX exceeds SIZE_MAX / 2.
40488
40489         * lib/obstack.c: Merge from glibc.
40490         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
40491         Add libc_hidden_def (_obstack_newchunk).
40492         (_obstack_free) [! defined _LIBC]: Remove.
40493         [defined _LIBC]: Make a strong alias from obstack_free, rather than
40494         a clone of the function body.
40495         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
40496         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
40497
40498         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
40499         glibc.
40500         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
40501         arg to memcpy.
40502
40503         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
40504         (obstack_ptr_grow_fast, obstack_int_grow_fast):
40505         Don't use lvalue casts, as GCC plans to remove support for them
40506         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
40507         was also present in the non-GCC version, indicating that this
40508         code had always been buggy and had never been widely used.
40509         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
40510         Use the fast variant of each macro, rather than copying the
40511         definiens of the fast variant; that way, we'll be more likely to
40512         catch future bugs in the fast variants.
40513
40514 2003-10-20  Bruno Haible  <bruno@clisp.org>
40515
40516         * modules/wait-process: New file.
40517         * MODULES.html.sh (func_all_modules): Add wait-process.
40518
40519 2003-10-20  Bruno Haible  <bruno@clisp.org>
40520
40521         * m4/wait-process.m4: New file.
40522
40523 2003-10-20  Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/wait-process.h: New file, from GNU gettext.
40526         * lib/wait-process.c: New file, from GNU gettext.
40527
40528 2003-10-19  Jim Meyering  <jim@meyering.net>
40529
40530         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
40531         HPUX 10.20.
40532
40533 2003-10-18  Karl Berry  <karl@gnu.org>
40534
40535         * config/config.guess: update from config.
40536
40537 2003-10-16  Paul Eggert  <eggert@twinsun.com>
40538
40539         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
40540         (getgroups): First arg is int, not size_t.
40541         Don't let 'free' mangle errno.
40542
40543 2003-10-16  Paul Eggert  <eggert@twinsun.com>
40544
40545         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
40546
40547 2003-10-16  Karl Berry  <karl@gnu.org>
40548
40549         * config/config.{guess,sub}: update from config.
40550
40551 2003-10-16  Jim Meyering  <jim@meyering.net>
40552
40553         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
40554         memcpy.
40555
40556 2003-10-15  Paul Eggert  <eggert@twinsun.com>
40557
40558         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
40559         (SIZE_MAX): Remove.
40560         (new_exclude, add_exclude_file): Initial size no longer needs to
40561         be a power of 2.
40562         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
40563         our own address arithmetic overflow checking.
40564
40565         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
40566         (fnmatch): Do not alloca more than 2000 wide characters;
40567         instead, use malloc for large buffers.
40568         Check for address arithmetic overflow, and return -1
40569         with errno set to ENOMEM in that case.
40570         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
40571         (NEW_PATTERN): Do not alloca more than 8000 bytes;
40572         instead, return -1.  Check for address arithmetic overflow.
40573
40574 2003-10-14  Paul Eggert  <eggert@twinsun.com>
40575
40576         Handle invalid suffixes and overflow independently, so that
40577         callers can treat them independently as needed.  Fix some bugs in
40578         suffix handling, e.g., "100k@" was not diagnosed as an invalid
40579         suffix for a human-readable blocksize.  The major caller-visible
40580         change is the addition of a new
40581         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
40582         that both overflow and suffix chars were found.
40583
40584         * lib/human.c (humblock): Don't check separately for invalid suffix
40585         char; that is xstrtoumax's job (now that its bug is fixed).
40586         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
40587         INTMAX_MAX]: New macros.
40588         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
40589         TYPE_MAXIMUM): New macros.
40590         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
40591         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
40592         if overflow occurs, as it's what __strtol does and it's more useful
40593         in practice.
40594         (__xstrtol): If __strtol reports some error other than ERANGE,
40595         reflect it to the caller as LONGINT_INVALID.  If it reports
40596         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
40597         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
40598         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
40599         value.
40600         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
40601         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
40602         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
40603         [defined UINTMAX_MAX]: New macros.
40604
40605 2003-10-14  Bruno Haible  <bruno@clisp.org>
40606
40607         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
40608
40609 2003-10-14  Bruno Haible  <bruno@clisp.org>
40610
40611         * m4/sig_atomic_t: New file, from GNU gettext.
40612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
40613
40614 2003-10-14  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
40617         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
40618         Also use volatile where needed.
40619
40620 2003-10-12  Paul Eggert  <eggert@twinsun.com>
40621
40622         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
40623         Change maintainer from Bruno Haible to 'all'.
40624
40625 2003-10-12  Paul Eggert  <eggert@twinsun.com>
40626
40627         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
40628
40629 2003-10-12  Paul Eggert  <eggert@twinsun.com>
40630
40631         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
40632         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
40633         and define in terms of the other primitives.
40634         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
40635         (SIZE_MAX): Define if not already defined.
40636         (array_size_overflow): New function.
40637         (xalloc_die): Abort instead of exiting if 'error' returns.
40638         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
40639         (xmalloc, xrealloc): Use them.
40640         (xcalloc): Check for address arithmetic overflow.
40641         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
40642         a bit faster than strcpy.
40643
40644 2003-10-10  Simon Josefsson  <jas@extundo.com>
40645
40646         * modules/argp (Depends-on): Add restrict and strcase.
40647
40648 2003-10-10  Simon Josefsson  <jas@extundo.com>
40649
40650         * m4/argp.m4: Add AC_C_INLINE.
40651
40652 2003-10-08  Paul Eggert  <eggert@twinsun.com>
40653
40654         Merge getpass from libc, plus a few fixes.
40655
40656         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
40657         Include <stdbool.h>.
40658         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
40659         __fsetlocking to empty.
40660         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
40661         do include <bits/libc-lock.h>.
40662         Do not include <fcntl.h>; not needed.
40663         [_LIBC]: Include <wchar.h>.
40664         (NOTCANCEL_MODE): New macro.
40665         (flockfile, funlockfile) [_LIBC]: New macros.
40666         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
40667         [!_LIBC]: New macros.
40668         (call_fclose): New function.
40669         (getpass): Use it.  Save tty stream separately; this simplifies the
40670         code and makes it more reliable if stdin happens to equal stdout.
40671         Invoke __fsetlocking on tty.
40672         Handle thread cancellation if needed.
40673         Namespace cleanup (use __tcgetattr, __getline).
40674         Use bool for Booleans.
40675         [USE_IN_LIBIO]: Handle wide streams.
40676         [!_LIBC]: Unconditionally do the fseek, since we don't know what
40677         stream might go where.
40678
40679         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
40680         doesn't have to include <stdio.h> before us.
40681         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
40682         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
40683         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
40684         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
40685         if not declared, so that we can use getpass.c code from libc without
40686         rewriting it.
40687         (flockfile, ftrylockfile, funlockfile): New macros.
40688
40689 2003-10-08  Paul Eggert  <eggert@twinsun.com>
40690
40691         * modules/getpass: Depend on stdbool.
40692
40693 2003-10-08  Paul Eggert  <eggert@twinsun.com>
40694
40695         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
40696
40697 2003-10-07  Karl Berry  <karl@gnu.org>
40698
40699         * config/config.{guess,sub}: update from config.
40700
40701 2003-10-06  Jim Meyering  <jim@meyering.net>
40702             Bruno Haible  <bruno@clisp.org>
40703
40704         This lets translators provide better translations for the
40705         "Written by ..." part of --version output.
40706         * lib/version-etc.h: Include stdarg.h.
40707         (version_etc_copyright): Declare as readonly.
40708         (version_etc): Make this function variadic with a NULL-terminated list
40709         of author name strings.
40710         (version_etc_va): New declaration.
40711         * lib/version-etc.c: Include stdarg.h, stdlib.h.
40712         (version_etc_copyright): Declare as readonly.
40713         (version_etc_va): New function. Provide a different translatable string
40714         for each possible number of authors < 10. Abbreviate when there are 10
40715         authors or more.
40716         (version_etc): Make this function variadic. Call version_etc_va.
40717         Suggestion from Gary V. Vaughan.
40718
40719         * lib/long-options.h (parse_long_options): Change prototype: the
40720         authors string is moved to the end and becomes variadic.
40721         * lib/long-options.c: Include stdarg.h.
40722         (parse_long_options): Make this function variadic, too.
40723         Call version_etc_va, not version_etc.
40724
40725 2003-10-06  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/version-etc-2: Remove file.
40728         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
40729
40730 2003-10-06  Bruno Haible  <bruno@clisp.org>
40731
40732         * modules/fatal-signal: New file.
40733         * MODULES.html.sh (func_all_modules): Add fatal-signal.
40734
40735 2003-10-06  Bruno Haible  <bruno@clisp.org>
40736
40737         * m4/fatal-signal.m4: New file.
40738         * m4/signalblocking.m4: New file, from GNU gettext.
40739
40740 2003-10-06  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/version-etc-2.h: Remove file.
40743         * lib/version-etc-2.c: Remove file.
40744
40745 2003-10-06  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/fatal-signal.h: New file, from GNU gettext.
40748         * lib/fatal-signal.c: New file, from GNU gettext.
40749
40750 2003-10-05  Paul Eggert  <eggert@twinsun.com>
40751
40752         * README: Rework advice for preventing empty .o files.
40753         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
40754         not <sys/types.h>.
40755
40756 2003-10-04  Karl Berry  <karl@gnu.org>
40757
40758         * lib/argp*: update from libc.
40759
40760 2003-10-04  Karl Berry  <karl@gnu.org>
40761
40762         * config/config.{guess,sub}: update from config.
40763
40764 2003-10-02  Bruno Haible  <bruno@clisp.org>
40765
40766         * modules/lchown (Include): Add lchown.h.
40767         * modules/time_r (Include): Use "..." syntax.
40768         * modules/xgetdomainname (Include): Add xgetdomainname.h.
40769
40770 2003-10-01  Simon Josefsson  <jas@extundo.com>
40771
40772         * MODULES.html.sh (func_all_modules): Move gethostname from section
40773         'based on' to section 'lacking' POSIX:2001.
40774
40775 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
40776
40777         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
40778         to output mode on the same stream.
40779
40780 2003-09-29  Paul Eggert  <eggert@twinsun.com>
40781
40782         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
40783         Fix arg typo in previous patch.
40784
40785 2003-09-28  Jim Meyering  <jim@meyering.net>
40786
40787         * lib/error.c: Correct cpp indentation.
40788
40789 2003-09-27  Paul Eggert  <eggert@twinsun.com>
40790
40791         * modules/free: New file.
40792
40793 2003-09-27  Paul Eggert  <eggert@twinsun.com>
40794
40795         * m4/free.m4: New file.
40796
40797 2003-09-27  Paul Eggert  <eggert@twinsun.com>
40798
40799         * lib/minmax.h (MIN, MAX)
40800         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
40801         Omit the special code that used __typeof__, since we worry that
40802         it could be more trouble than it's worth.  See:
40803         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
40804         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
40805
40806         * lib/free.c: New file.
40807
40808 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
40809
40810         Trivial fixes to Makefile.am parts of module listings.
40811         * modules/strstr: Append strstr.h to lib_SOURCES.
40812         * modules/strcase: Likewise, for strcase.h.
40813
40814 2003-09-27  Karl Berry  <karl@gnu.org>
40815
40816         * config/mkinstalldirs: update from automake.
40817
40818 2003-09-26  Paul Eggert  <eggert@twinsun.com>
40819
40820         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
40821         (error_tail): Do not loop, reallocating temporary buffer, since
40822         the output cannot contain more wide characters than the input
40823         contains bytes, the size must be big enough already.  This avoids
40824         one potential size overflow calculation.  Check for size overflow
40825         when calculating temporary buffer size.  Free temporary buffer
40826         when done, if it was allocated with malloc; this plugs a memory
40827         leak.  Remove casts from void * to pointers, that are no longer
40828         needed now that we're assuming C89 or better.
40829
40830         Merge error changes from glibc.
40831
40832         * lib/error.c, error.h: Update copyright notice header to match glibc.
40833         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
40834         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
40835         Disable cancellation while printing error.
40836         * lib/error.h: Prepend __ to parameter names.
40837
40838 2003-09-26  Jim Meyering  <jim@meyering.net>
40839
40840         * lib/error.c (error_tail): Move some declarations
40841         into inner scope where the local variables are used.
40842
40843 2003-09-26  Bruno Haible  <bruno@clisp.org>
40844
40845         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
40846         stpncpy().
40847         Don't define stpncpy through config.h; it's now done through stpncpy.h.
40848
40849 2003-09-26  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/stpncpy.h (gnu_stpncpy): New declaration.
40852         (stpncpy): Define as alias for gnu_stpncpy.
40853         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
40854
40855 2003-09-25  Simon Josefsson  <jas@extundo.com>
40856
40857         * lib/xgetdomainname.h: New file.
40858         * lib/xgetdomainname.c: New file.
40859
40860 2003-09-25  Simon Josefsson  <jas@extundo.com>
40861             Bruno Haible  <bruno@clisp.org>
40862
40863         * modules/getdomainname: New file.
40864         * modules/xgetdomainname: New file.
40865         * MODULES.html.sh (func_all_modules): Add getdomainname,
40866         xgetdomainname.
40867
40868 2003-09-25  Simon Josefsson  <jas@extundo.com>
40869             Bruno Haible  <bruno@clisp.org>
40870
40871         * m4/getdomainname.m4: New file.
40872
40873 2003-09-25  Simon Josefsson  <jas@extundo.com>
40874             Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/getdomainname.h: New file.
40877         * lib/getdomainname.c: New file.
40878
40879 2003-09-25  Karl Berry  <karl@gnu.org>
40880
40881         * lib/argp-fmtstream.c, argp-help.c: update from libc.
40882
40883 2003-09-25  Karl Berry  <karl@gnu.org>
40884
40885         * config/install-sh: update from automake.
40886
40887 2003-09-25  Bruno Haible  <bruno@clisp.org>
40888
40889         * modules/version-etc-2: New file, from modules/version-etc with
40890         modifications.
40891         * MODULES.html.sh (func_all_modules): Add version-etc-2.
40892
40893 2003-09-25  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
40896         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
40897
40898 2003-09-24  Simon Josefsson  <jas@extundo.com>
40899
40900         * modules/xgethostname: Add xgethostname.h.
40901
40902 2003-09-24  Paul Eggert  <eggert@twinsun.com>
40903
40904         * lib/linebuffer.c (freebuffer): Don't free the argument, just
40905         the buffer associated with the argument.  Bug reported by
40906         Simon Josefsson.
40907
40908 2003-09-24  Paul Eggert  <eggert@twinsun.com>
40909
40910         * README: Document assumptions that 'int' is at least 32 bits
40911         wide, that integer arithmetic is 2's complement without overflow,
40912         that there are no holes in integer values, that adding sizes of
40913         two nonoverlapping objects can't overflow, and that all-bits-zero
40914         yields scalar zero.  Fix spelling and capitalization typos.
40915
40916 2003-09-19  Karl Berry  <karl@gnu.org>
40917
40918         * lib/argp.h: update from libc.
40919
40920 2003-09-17  Paul Eggert  <eggert@twinsun.com>
40921
40922         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
40923         to avoid spurious warnings like "AC_RUN_IFELSE was called before
40924         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
40925
40926 2003-09-17  Paul Eggert  <eggert@twinsun.com>
40927
40928         * gnulib-tool: Use "test -h", not "test -L", for portability
40929         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
40930         (tags_regexp): Remove, since \| doesn't conform to POSIX.
40931         (sed_extract_prog): Issue s commands one-by-one, rather than
40932         using \| in one s command.
40933
40934 2003-09-16  Paul Eggert  <eggert@twinsun.com>
40935
40936         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
40937         input error, instead of returning NULL the next time we are called
40938         (and therefore losing track of errno).
40939
40940 2003-09-16  Bruno Haible  <bruno@clisp.org>
40941
40942         * gnulib-tool (func_create_testdir): Warn about duplicated
40943         dependencies.
40944
40945 2003-09-15  Paul Eggert  <eggert@twinsun.com>
40946
40947         * modules/argmatch, modules/fatal, modules/obstack,
40948         modules/xalloc, modules/xgethostname: Sort dependencies by
40949         importance, not alphabetically.
40950
40951 2003-09-15  Paul Eggert  <eggert@twinsun.com>
40952
40953         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
40954         fails, so that the caller gets the proper errno.
40955
40956         * lib/readutmp.c (read_utmp): Likewise.
40957         Check for fstat error.  Close stream and free storage
40958         when failing.
40959
40960 2003-09-14  Karl Berry  <karl@gnu.org>
40961
40962         * config/srclist.txt (strdup.c): disable for c89 changes.
40963
40964 2003-09-14  Jim Meyering  <jim@meyering.net>
40965
40966         * lib/getloadavg.c: Correct cpp indentation.
40967         * lib/strdup.c: Likewise.
40968         * lib/vasnprintf.c: Likewise.
40969
40970 2003-09-14  Bruno Haible  <bruno@clisp.org>
40971
40972         * modules/fwriteerror: New file.
40973         * MODULES.html.sh (func_all_modules): Add fwriteerror.
40974
40975 2003-09-14  Bruno Haible  <bruno@clisp.org>
40976
40977         * lib/fwriteerror.h: New file.
40978         * lib/fwriteerror.c: New file.
40979
40980 2003-09-12  Paul Eggert  <eggert@twinsun.com>
40981
40982         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
40983         modules/xgethostname, modules/xalloc: Depend on exit.
40984
40985 2003-09-12  Paul Eggert  <eggert@twinsun.com>
40986
40987         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
40988
40989         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
40990         and AC_MINIX, too, so that their extensions are available.
40991
40992         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
40993         This macro has been superseded by gl_BACKUPFILE.
40994
40995         More patches to assume C89 or better.
40996
40997         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
40998
40999         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
41000         unconditionally.
41001         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
41002         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
41003         Include <string.h>, <stdlib.h> unconditionally.
41004         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
41005         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
41006         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
41007         headers or for string.h.
41008         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
41009         or strtoul.
41010
41011         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
41012         headers.
41013         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
41014         * m4/userspec.m4 (gl_USERSPEC): Likewise.
41015         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
41016         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
41017         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
41018         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
41019         memcpy, memset.
41020         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
41021         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
41022         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
41023         strtol.
41024         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
41025         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
41026         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
41027         strtoul.
41028
41029 2003-09-12  Paul Eggert  <eggert@twinsun.com>
41030
41031         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
41032         * lib/obstack.c [!defined _LIBC]: Likewise.
41033         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
41034         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
41035         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
41036
41037         More changes to assume C89 or better.
41038
41039         * lib/error.c (error_tail): Assume vprintf.
41040
41041         * lib/argmatch.c (getenv): Remove decl.
41042         * lib/progreloc.c (get_full_program_name): Define via prototype.
41043         * lib/setenv.c (clearenv): Likewise.
41044         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
41045         needed.
41046         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
41047         (malloc, memcpy): Remove decls.
41048         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
41049         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
41050         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
41051         (memcpy): Remove macro.
41052         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
41053         (__P): Remove.  All uses removed.
41054         (PTR): Remove.  All uses changed to void *.
41055         (CHAR_BIT, NULL): Remove.
41056         (spaces, zeros, memset_space, memset_zero)
41057         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
41058         Remove.
41059         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
41060         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
41061         Define with prototype.
41062         Remove now-unnecessary prototype decl.
41063         (extra_args_spec): Assume ANSI C.  All uses changed.
41064         (extra_args_spec_iso): Remove.
41065         (my_strftime, emacs_strftimeu): Define via prototype.
41066         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
41067         unconditionally.
41068         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
41069         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
41070         (strtoul, strtol): Remove decls.
41071         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
41072         LONG_MAX): Remove.
41073         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
41074         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
41075         (LOCALE_PARAM_PROTO): New macro.
41076         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
41077         (INTERNAL (strtol), strtol): Define with a prototype.
41078         (PARAMS): Remove.  All uses removed.
41079         * lib/tempname.c: Include <string.h> unconditionally.
41080         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
41081         * lib/xgethostname.c (main): Define with a prototype.
41082         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
41083         Include <stdlib.h> unconditionally.
41084         (calloc, malloc, realloc, free): Remove decls.
41085         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
41086         Include <stdlib.h> unconditionally.  Sort include file names.
41087         (strtod): Remove.
41088         (xstrtod): Define with a prototype.
41089         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
41090         (strtol, strtoul): Remove decls.
41091
41092 2003-09-11  Paul Eggert  <eggert@twinsun.com>
41093
41094         More patches to assume C89 or better.
41095         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
41096         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
41097         string.h, memchr, STDC_HEADERS.
41098
41099 2003-09-11  Paul Eggert  <eggert@twinsun.com>
41100
41101         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
41102         Include <stdlib.h>, <string.h> unconditionally.
41103         Remove now-unnecessary cast to char *.
41104         * lib/strnlen.c: Include <string.h> unconditionally.
41105         * lib/yesno.c (yesno): Define with a prototype.
41106
41107 2003-09-11  Bruno Haible  <bruno@clisp.org>
41108
41109         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
41110
41111 2003-09-10  Jim Meyering  <jim@meyering.net>
41112
41113         * lib/error.c: Correct indentation of cpp directives.
41114
41115 2003-09-10  Bruno Haible  <bruno@clisp.org>
41116
41117         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
41118         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
41119         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
41120         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
41121         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
41122         <stdlib.h> and <string.h> checks.
41123         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
41124         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
41125
41126 2003-09-10  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/strcspn.c: Include <string.h> unconditionally.
41129         * lib/strpbrk.c: Include <string.h> unconditionally.
41130         * lib/strstr.c: Include <string.h> unconditionally.
41131         * lib/unicodeio.c: Include <string.h> unconditionally.
41132         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
41133         * lib/unsetenv.c: Likewise.
41134         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
41135         * lib/yesno.c: Include <stdlib.h> unconditionally.
41136         (rpmatch): Add prototype.
41137
41138 2003-09-09  Paul Eggert  <eggert@twinsun.com>
41139
41140         More patches to assume C89 or better.
41141         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
41142         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
41143         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
41144         or for string.h.
41145         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
41146         stdlib.h.
41147         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
41148         C headers.
41149         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
41150         string.h.
41151         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
41152         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
41153         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
41154         or for string.h.
41155         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
41156         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
41157         C headers.
41158         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
41159         memcpy.
41160         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
41161         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
41162         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
41163         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
41164         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
41165         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
41166         string.h, free.
41167         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
41168         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
41169         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
41170         C headers, or for string.h.
41171         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
41172         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
41173         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
41174         headers, memory.h, stdlib.h, string.h, strings.h.
41175         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
41176         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
41177         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
41178         strchr.
41179         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
41180         headers, memory.h, string.h.
41181         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
41182         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
41183         free.
41184         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
41185         headers.
41186         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
41187         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
41188         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
41189         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
41190         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
41191
41192 2003-09-09  Paul Eggert  <eggert@twinsun.com>
41193
41194         More K&R removal.
41195
41196         * lib/acosl.c (main): Use a prototype.
41197         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
41198         tanl.c: Likewise.
41199
41200         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
41201
41202         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
41203         (getopt, etopt_long, getopt_long_only, _getopt_internal)
41204         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
41205         with a prototype.
41206         * lib/getopt.c (const): Remove macro.
41207         Include <string.h> unconditionally.
41208         (my_index): Remove; all uses changed to strchr.
41209         (strlen): Remove decl.
41210         (exchange): Remove forward decl; no longer needed.
41211         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
41212         Define with prototype.
41213         * lib/getopt1.c (const): Remove macro.
41214         (getopt_long, getopt_long_only, main): Define with prototype.
41215
41216         * lib/getugroups.c: Include <string.h> unconditionally.
41217
41218         * lib/getusershell.c: Include <stdlib.h> unconditionally.
41219         (getusershell, setusershell, endusershell, readname, main):
41220         Define with prototypes.
41221
41222         * lib/group-member.c: Include group-member.h first.
41223         Include <stdlib.h> unconditionally.
41224
41225         * lib/hard-locale.c: Include hard-locale.h first.
41226         Include <stdlib.h>, <string.h> unconditionally.
41227
41228         * lib/hash.c (free, malloc): Remove decls.
41229         Include <stdlib.h> unconditionally.
41230
41231         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
41232         (getenv): Do not declare.
41233
41234         * lib/idcache.c: Include <string.h> unconditionally.
41235
41236         * lib/long-options.c: Include long-options.h first, to test interface.
41237         Include <stdlib.h> unconditionally.
41238
41239         * lib/makepath.c: Include makepath.h first, to test interface.
41240         Include <stdlib.h> and <string.h> unconditionally.
41241
41242         * lib/linebuffer.c: Include <stdlib.h>.
41243         (free): Remove decl.
41244
41245         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
41246         stddef.h. rpl_malloc returns void *, not char *.
41247         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
41248         prototype.
41249
41250         * lib/md5.h: Include <limits.h> unconditionally.
41251         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
41252         (__P): Remove; all uses removed.
41253         * lib/md5.c: Include "md5.h" first.
41254         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
41255         md5_buffer, md5_process_bytes, md5_process_block):
41256         Define with prototypes.
41257         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
41258         * lib/sha.c: Include "sha.h" first.
41259         Include <stdlib.h>, <string.h> unconditionally.
41260
41261         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
41262         * lib/memcmp.c (__ptr_t): Likewise.
41263         * lib/memrchr.c (__ptr_t): Likewise.
41264         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
41265         Include <string.h> unconditionally.
41266         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
41267         * lib/memchr.c: Include <stdlib.h> unconditionally.
41268         * lib/memchr.c (LONG_MAX): Remove.
41269         * lib/memrchr.c (LONG_MAX): Likewise.
41270         * lib/memchr.c (__memchr): Define via a prototype.
41271         * lib/memrchr.c (__memrchr): Likewise.
41272         * lib/memcmp.c (__P): Remove, and remove all uses.
41273         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
41274         Remove forward decls; no longer needed.
41275         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
41276         Use types required by C89 in prototype.
41277
41278         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
41279         * lib/savedir.c: Likewise.
41280         * lib/mkdir.c (free): Remove decl.
41281         * lib/rmdir.c (rmdir): Define with a prototype.
41282         * lib/savedir.c: Include savedir.h first, to test interface.
41283
41284         * lib/mktime.c (STDC_HEADERS): Remove.
41285         Include <stdlib.h>, <string.h> unconditionally.
41286
41287         * lib/modechange.c: Include <stdlib.h> unconditionally.
41288         (malloc): Remove decl.
41289
41290         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
41291         (free): Remove decl.
41292
41293         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
41294         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
41295         (This type really should be intptr_t, but that's a C99ism.)
41296         (_obstack_memcpy): Remove: all uses changed to memcpy.
41297         Include <string.h> unconditionally.
41298         (struct obstack): Assume __STDC__ for types of members
41299         chunkfun, freefun, extra_arg.
41300         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
41301         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
41302         obstack_begin, obstack_specify_allocation,
41303         obstack_specify_allocation_with_arg, obstack_chunkfun,
41304         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
41305         Remove unprototyped decls and the macros that use them.
41306         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
41307         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
41308         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
41309         (defined __STDC__ && __STDC__)]:
41310         Remove nonprototyped code.
41311         Include <stdlib.h> unconditionally.
41312         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
41313         _obstack_allocated_p, _obstack_free, obstack_free,
41314         _obstack_memory_used, print_and_abort):
41315         Define using prototypes.
41316         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
41317         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
41318         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
41319         obstack_next_free, obstack_object_size, obstack_room) [0]:
41320         Remove unused, unprototyped code.
41321
41322         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
41323
41324         * lib/physmem.c (physmem_total, physmem_available, main): Define
41325         with prototypes.
41326
41327         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
41328         (main): Define with a prototype.
41329
41330         * lib/posixver.c (getenv): Remove decl.
41331
41332         * lib/putenv.c (malloc): Returns void *, not char *.
41333         Include <string.h> unconditionally.
41334         (strchr, memcpy, NULL): Do not define.
41335
41336         * lib/readtokens.c: Include readtokens.h first, to test interface.
41337         Include <stdlib.h>, <string.h> unconditionally.
41338         (init_tokenbuffer): Define with a prototype.
41339
41340         * lib/regex.c (PARAMS): Remove.  All uses removed.
41341         All uses of _RE_ARGS removed, too.
41342         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
41343         unconditionally.
41344         (bzero): Assume memset exists.
41345         (memcmp, memcpy, NULL): Remove.
41346         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
41347         char, or assignments to local vars of type signed char.
41348         (init_syntax_once, PREFIX(extract_number_and_incr),
41349         PREFIX(print_partial_compiled_pattern),
41350         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
41351         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
41352         PREFIX(regex_grow_registers), PREFIX(regex_compile),
41353         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
41354         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
41355         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
41356         wcs_compile_range, byte_compile_range, truncate_wchar,
41357         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
41358         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
41359         count_mbs_length, wcs_re_match_2_internal,
41360         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
41361         PREFIX(alt_match_null_string_p),
41362         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
41363         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
41364         regfree, PREFIX(extract_number)): Define with prototype.  Remove
41365         now-unnecessary declaration, if any.
41366         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
41367         regcomp, regexec):
41368         Remove now-unnecessary casts among pointer types.
41369         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
41370
41371         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
41372         (free): Remove decl.
41373
41374         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
41375
41376         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
41377         (free): Remove decl.
41378
41379         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
41380         * lib/xgetcwd.c: Likewise.
41381
41382         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
41383         (free): Remove decl.
41384
41385         * lib/strchrnul.c (strchrnul): Define with a prototype.
41386         Fix bug: c_in was not converted to char before searching.
41387
41388         The following changes are not K&R related:
41389
41390         * lib/group-member.h: Include <sys/types.h>, so that this file is
41391         self-contained.
41392         * lib/makepath.h: Likewise.
41393
41394         * lib/getusershell.c (readname, default_index, line_size, readname):
41395         Use size_t, not int, for sizes.
41396         (readname): If the size overflows, report an error instead of
41397         looping forever.
41398
41399 2003-09-09  Paul Eggert  <eggert@twinsun.com>
41400
41401         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
41402         libc.
41403
41404 2003-09-09  Paul Eggert  <eggert@twinsun.com>
41405
41406         * README: New section: portability guidelines.
41407
41408 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
41409
41410         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
41411         C89 spec.
41412
41413 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
41414
41415         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
41416
41417 2003-09-08  Paul Eggert  <eggert@twinsun.com>
41418
41419         Assume C89 or better; remove K&R cruft.
41420         A few of these changes were first proposed by Derek Robert Price
41421         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
41422
41423         * lib/addext.c: Include <string.h> unconditionally.
41424         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
41425         Don't declare getenv or malloc.
41426
41427         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
41428         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
41429         (NULL): Remove.
41430         (find_stack_direction, alloca): Use prototypes.
41431
41432         * lib/atexit.c (atexit): Define using a prototype.
41433
41434         * lib/basename.c, dirname.c, stripslash.c:
41435         Include <string.h> unconditionally.
41436
41437         * lib/bcopy.c: Include <stddef.h>.
41438         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
41439
41440         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
41441
41442         * lib/error.h (error, error_at_line, error_print_progname)
41443         [! (defined (__STDC__) && __STDC__)]: Remove decls.
41444         * lib/error.c: Include error.h first, to check interface.
41445         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
41446         (VA_START): Remove; all uses changeed to va_start.
41447         (exit, strerror): Remove decls.
41448         (error_print_progname): Prototype uncondionally.
41449         Don't include <errno.h>; no longer needed.
41450         (private_strerror): Remove.
41451         (error_tail): Always define.
41452         (error, error_at_line): Assume C89 or better; always use prototypes.
41453         * lib/fatal.c: Include "fatal.h" first, to test interface.
41454         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
41455         (VA_START): Remove; all uses changed to va_start.
41456         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
41457         this case.
41458         (exit): Remove decl.
41459         (fatal): Prototype unconditionally.  Assume va_start works.
41460         Abort at end, to pacify gcc.
41461
41462         * lib/euidaccess.c (main): Define with a prototype.
41463
41464         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
41465
41466         * lib/exitfail.c: Include <stdlib.h> unconditionally.
41467
41468         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
41469         prototypes.
41470         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
41471         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
41472         (getenv): Remove decl.
41473         (fnmatch): Define using a prototype.
41474         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
41475         (FCT): Define using a prototype.
41476
41477         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
41478
41479         * lib/gethostname.c: Include <stddef.h>.
41480         (gethostname): Define with prototype.  Length is size_t, not int.
41481
41482 2003-09-08  Paul Eggert  <eggert@twinsun.com>
41483
41484         Assume C89 or better; remove K&R cruft.
41485         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
41486         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
41487         string.h, getenv, malloc.
41488         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
41489         headers.
41490         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
41491         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
41492         do not check for strerror.
41493         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
41494         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
41495         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
41496         do not check for doprnt or vprintf.
41497         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
41498         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
41499
41500 2003-09-08  Paul Eggert  <eggert@twinsun.com>
41501
41502         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
41503         getversion.c should have been removed then, but was accidentally
41504         preserved.
41505
41506         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
41507         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
41508
41509 2003-09-08  Karl Berry  <karl@gnu.org>
41510
41511         * config/config.sub, config.guess, srclistvars.sh: update from savannah
41512                 config, forget about prep.
41513
41514         * config/depcomp, missing: update from automake.
41515
41516 2003-09-07  Paul Eggert  <eggert@twinsun.com>
41517
41518         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
41519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
41520
41521 2003-09-07  Paul Eggert  <eggert@twinsun.com>
41522
41523         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
41524         copy_tm_result.  Bug reported by Simon Josefsson in
41525         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
41526
41527 2003-09-06  Paul Eggert  <eggert@twinsun.com>
41528
41529         * m4/time_r.m4: New file.
41530         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
41531         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
41532         is. Check for timegm declaration.
41533         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
41534         Do not check for gmtime_r.
41535         Replace mktime if __mktime_internal does not exist and if mktime
41536         hasn't been replaced already.
41537
41538 2003-09-06  Paul Eggert  <eggert@twinsun.com>
41539
41540         * lib/time_r.c, lib/time_r.h: New files.
41541
41542         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
41543         __localtime_r.
41544         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
41545         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
41546
41547         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
41548         __gmtime_r.
41549         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
41550         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
41551         Include <time_r.h>.
41552
41553         * lib/timegm.c: Switch to glibc implementation, with the following
41554         changes:
41555         [defined HAVE_CONFIG_H]: Include <config.h>.
41556         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
41557         (__mktime_internal) [!defined _LIBC]: New decl.
41558         (__gmtime_r) [!defined _LIBC]: New macro and function.
41559         (timegm): Use a prototype, since gnulib assumes C89.
41560         Do not bother declaring tmp to be const, as it's not really usefu.
41561         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
41562         (timegm): Declare only if HAVE_DECL_TIMEGM.
41563
41564 2003-09-06  Paul Eggert  <eggert@twinsun.com>
41565
41566         * MODULES.html.sh (func_all_modules): Add time_r.
41567         * modules/time_r: New file.
41568         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
41569         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
41570
41571 2003-09-03  Paul Eggert  <eggert@twinsun.com>
41572
41573         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
41574         Bug reported by Lute Kamstra in
41575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
41576
41577         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
41578         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
41579         course with correspondingly smaller numbers for tomorrow and
41580         yesterday.  From Tadayoshi Funaba.  Originally installed into
41581         sh-utils on 1999-08-07, but the patch got lost (I guess during the
41582         coreutils merge?).
41583
41584 2003-08-31  Simon Josefsson  <jas@extundo.com>
41585
41586         * modules/timegm: New file.
41587         * MODULES.html.sh (func_all_modules): Add timegm.
41588
41589 2003-08-31  Simon Josefsson  <jas@extundo.com>
41590
41591         * m4/timegm.m4: New file.
41592
41593 2003-08-31  Simon Josefsson  <jas@extundo.com>
41594
41595         * lib/timegm.h: New file.
41596         * lib/timegm.c: New file.  Based on
41597         wget-1.8.2/src/http.c:mktime_from_utc.
41598
41599 2003-08-31  Karl Berry  <karl@gnu.org>
41600
41601         * lib/argp.h: update from libc.
41602
41603 2003-08-28  Bruno Haible  <bruno@clisp.org>
41604
41605         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
41606         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
41607         followed by '#define fnmatch fnmatch_posix' gives an error.
41608
41609 2003-08-28  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
41612         warning on QNX, which defines O_BINARY to 000000.
41613
41614 2003-08-27  Jim Meyering  <jim@meyering.net>
41615
41616         * m4/mkstemp.m4: Require that the system mkstemp be able to create
41617         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
41618         would fail after 32.  Reported by Danny Levinson.  Details here:
41619         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
41620
41621 2003-08-24  Bruno Haible  <bruno@clisp.org>
41622
41623         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
41624         MSVC7 <stdio.h> is included later.
41625
41626 2003-08-22  Simon Josefsson  <jas@extundo.com>
41627
41628         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
41629
41630 2003-08-20  Karl Berry  <karl@gnu.org>
41631
41632         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
41633
41634 2003-08-20  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/progname: New file.
41637         * MODULES.html.sh (func_all_modules): Add progname.
41638
41639 2003-08-20  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/progname.h: New file, from GNU gettext.
41642         * lib/progname.c: New file, from GNU gettext.
41643         * lib/progreloc.c: New file, from GNU gettext.
41644
41645 2003-08-19  Jim Meyering  <jim@meyering.net>
41646
41647         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
41648         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
41649
41650 2003-08-19  Bruno Haible  <bruno@clisp.org>
41651
41652         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
41653         more.
41654
41655 2003-08-19  Bruno Haible  <bruno@clisp.org>
41656
41657         * lib/xstrdup.c: Assume <string.h> exists.
41658
41659 2003-08-18  Paul Eggert  <eggert@twinsun.com>
41660
41661         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
41662         in makefile rules.
41663
41664 2003-08-18  Jim Meyering  <jim@meyering.net>
41665
41666         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
41667         * m4/lib-ld.m4: Likewise.
41668
41669 2003-08-18  Jim Meyering  <jim@meyering.net>
41670
41671         * lib/setenv.h: Indent nested cpp directive.
41672         * lib/vasnprintf.c: Remove trailing blanks.
41673
41674 2003-08-17  Simon Josefsson  <jas@extundo.com>
41675
41676         * modules/xstrndup: New file.
41677         * MODULES.html.sh (func_all_modules): Add xstrndup.
41678
41679 2003-08-17  Simon Josefsson  <jas@extundo.com>
41680
41681         * modules/argp: Fix autoconf macro name. Add more dependencies.
41682
41683 2003-08-17  Simon Josefsson  <jas@extundo.com>
41684
41685         * m4/xstrndup.m4: New file.
41686
41687 2003-08-17  Simon Josefsson  <jas@extundo.com>
41688
41689         * m4/argp.m4: New file.
41690
41691 2003-08-17  Simon Josefsson  <jas@extundo.com>
41692             Bruno Haible  <bruno@clisp.org>
41693
41694         * lib/xstrndup.h: New file.
41695         * lib/xstrndup.c: New file.
41696
41697 2003-08-17  Bruno Haible  <bruno@clisp.org>
41698
41699         * modules/strndup (Files, Include): Add lib/strndup.h.
41700
41701 2003-08-17  Bruno Haible  <bruno@clisp.org>
41702
41703         * modules/euidaccess (Files): Add lib/euidaccess.h.
41704
41705 2003-08-17  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/strndup.h: New file.
41708
41709 2003-08-17  Bruno Haible  <bruno@clisp.org>
41710
41711         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
41712         like AC_GNU_SOURCE.
41713         * modules/extensions (configure.ac): Comment out the invocation of
41714         gl_USE_SYSTEM_EXTENSIONS.
41715
41716 2003-08-16  Paul Eggert  <eggert@twinsun.com>
41717
41718         Merges from coreutils, etc.
41719         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
41720         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
41721         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
41722         fixing a typo.
41723         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
41724         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
41725
41726 2003-08-16  Paul Eggert  <eggert@twinsun.com>
41727
41728         Document merge from coreutils.
41729         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
41730         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
41731         * modules/utime: Add m4/utimes-null.m4.
41732
41733 2003-08-16  Paul Eggert  <eggert@twinsun.com>
41734
41735         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
41736         space, undoing this 2003-08-12 change:
41737         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
41738
41739 2003-08-16  Paul Eggert  <eggert@twinsun.com>
41740
41741         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
41742         strtoul.c from libc, undoing this 2003-08-12 change:
41743         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
41744
41745 2003-08-16  Jim Meyering  <jim@meyering.net>
41746
41747         Merges from coreutils.
41748         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
41749         prefix.  Adjust cache variables similarly.  Create 500 rather than
41750         just 300 files, to exercise bug on Darwin6.5, too.
41751         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
41752         $missing_dir.
41753         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
41754         AM_SYS_POSIX_TERMIOS.
41755         Reported by mkc@mathdogs.com.
41756         Also change use of $am_cv_sys_posix_termios
41757         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
41758         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
41759         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
41760         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
41761         in /proc/mounts until it finds one with matching device number.  This
41762         is unnecessary when the FILE argument *is* a mount point.  No stat call
41763         is necessary in that case.  So, disable the statvfs-testing code on
41764         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
41765         as RedHat bug# 84846.
41766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
41767         to 1MB, so as not to render systems with no stack size limit (e.g.,
41768         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
41769         Include <unistd.h>.  On some systems,
41770         it is required for the definition of _SC_PAGESIZE.
41771
41772 2003-08-16  Jim Meyering  <jim@meyering.net>
41773
41774         Merge from coreutils.
41775         * lib/xstrtoimax.c: #else #if -> #elif.
41776         * lib/xstrtoumax.c: Likewise.
41777
41778 2003-08-16  Jim Meyering  <jim@meyering.net>
41779
41780         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
41781         * m4/utimes.m4: Removed.
41782         * m4/utimes-null.m4: Renamed from utimes.m4.
41783
41784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
41785         to 1MB, so as not to render systems with no stack size limit (e.g.,
41786         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
41787         Include <unistd.h>.  On some systems,
41788         it is required for the definition of _SC_PAGESIZE.
41789
41790 2003-08-16  Jim Meyering  <jim@meyering.net>
41791         and Paul Eggert  <eggert@cs.ucla.edu>
41792
41793         Merges from coreutils, etc.
41794
41795         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
41796         using the latest version from cvs.  This avoids problems with #line
41797         directives using a vendor (Sun) compiler.
41798         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
41799         Don't set GETGROUPS_LIB here; now it's
41800         done via getgroups.m4's wrapper function.
41801         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
41802         rather than just in sh-util/configure.in, so that the
41803         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
41804         same.
41805         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
41806         AC_FUNC_GETLOADAVG where to find getloadavg.c.
41807         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
41808         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
41809         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
41810         Remove code that is now done by the newly-required macros.
41811         Append $(EXEEXT) to DF_PROG.
41812         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
41813         Do not invoke or require the following here,
41814         since prereq.m4 or some gnulib .m4 now does this for us:
41815         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
41816         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
41817         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
41818         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
41819         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
41820         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
41821         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
41822         AC_FUNC_OBSTACK.
41823         Do not replace the following functions, as this is now the job
41824         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
41825         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
41826         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
41827         atexit getpass, strdup, getpagesize.
41828         Replace 'raise'.
41829         Do not check for the following functions, as this is now the job
41830         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
41831         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
41832         setregid.
41833         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
41834         Check for sys/sysctl.h.
41835         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
41836         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
41837         of checking for ssize_t ourselves.
41838
41839         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
41840         Require every macro that gnulib/modules/* suggests for us.
41841         (jm_PREREQ_ADDEXT): New macro.
41842         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
41843         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
41844
41845         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
41846         (gl_PHYSMEM): Use it.
41847         Also check for `table' function.
41848         Check for new headers and functions.
41849         Add check for sys/sysmp.h.
41850         With suggestions from Kaveh Ghazi.
41851         Ignore headers that are present but cannot be compiled.  This
41852         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
41853         C 5.4.
41854
41855 2003-08-15  Paul Eggert  <eggert@twinsun.com>
41856
41857         Document merge from coreutils.
41858         * modules/userspec: Depend on posixver.
41859         * modules/strftime: Depend on tzset.
41860
41861 2003-08-15  Paul Eggert  <eggert@twinsun.com>
41862
41863         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
41864         rather than tab, after '#' in shell-script copyright notices.
41865         Suggested by Bruno Haible.
41866
41867 2003-08-15  Paul Eggert  <eggert@twinsun.com>
41868
41869         * config/srclist-update: Use three spaces, rather than tab, after '#'
41870         in shell-script copyright notices.  Suggested by Bruno Haible.
41871         Remove unnecessary parenthesization in regular expression.
41872
41873 2003-08-15  Jim Meyering  <jim@meyering.net>
41874
41875         Merge from coreutils.
41876         * lib/xgethostname.c: Include <stdlib.h>.
41877         (xghostname): Don't exit for anything other than memory-related
41878         failure; just return NULL.
41879         * lib/userspec.c: Include "posixver.h".
41880         (parse_user_spec): Accept `.' as a separator only
41881         in pre-POSIX-200112 mode.
41882         * lib/strtoimax.c: Use #elif rather than #else #if.
41883         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
41884         Remove function, now that we can rely on a working tzset function.
41885         [!_LIBC]: Ensure that the required autoconf test has been run.
41886         [!defined _NL_CURRENT && HAVE_STRFTIME]:
41887         Use underlying_strftime for %r.
41888         * lib/sha.c: Merge in some clean-up and optimization changes from
41889         glibc.
41890         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
41891         Ensure that it is a multiple of 64.
41892         Rearrange loop exit tests so as to avoid performing an
41893         additional fread after encountering an error or EOF.
41894         * lib/realloc.c: Update copyright date.
41895
41896 2003-08-15  Jim Meyering  <jim@meyering.net>
41897         and Paul Eggert  <eggert@twinsun.com>
41898
41899         Merge from coreutils.
41900         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
41901         member but strut utmpx does not.  Needed for AIX 4.3.3.
41902         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
41903
41904 2003-08-15  Jim Meyering  <jim@meyering.net>
41905         and Paul Eggert  <eggert@cs.ucla.edu>
41906
41907         Merges from coreutils, etc.
41908         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
41909         Require gl_FUNC_TZSET_CLOBBER.
41910         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
41911         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
41912         members.
41913
41914 2003-08-14  Paul Eggert  <eggert@twinsun.com>
41915
41916         Help the merge from coreutils.
41917         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
41918         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
41919         * m4/tzset.m4: Use it too.
41920
41921 2003-08-14  Paul Eggert  <eggert@twinsun.com>
41922
41923         * modules/tzset: New file.
41924
41925 2003-08-14  Jim Meyering  <jim@meyering.net>
41926
41927         Merges from coreutils.
41928         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
41929         variable names, rather than @FNMATCH_H@.
41930         * modules/alloca: Likewise for $(ALLOCA_H).
41931
41932         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
41933         the three copies of the literal target, `fnmatch.h'.
41934         * modules/alloca (alloca.h): Likewise.
41935
41936 2003-08-14  Jim Meyering  <jim@meyering.net>
41937
41938         Merge from coreutils.
41939         * m4/tzset.m4: New file.
41940         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
41941         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
41942         otherwise, AIX 5.1 systems would end up using the latter.
41943         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
41944         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
41945         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
41946         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
41947
41948 2003-08-14  Jim Meyering  <jim@meyering.net>
41949
41950         Merge from coreutils.
41951         * lib/obstack.h: Whitespace changes.
41952         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
41953         and xcalloc return values.
41954         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
41955         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
41956         hang on OSF/1 5.1 for DIR on both local and remote file systems.
41957         Reported by (and fix confirmed by) Nelson H. F. Beebe.
41958         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
41959         error from mntctl.
41960         Use mntctl's return value to drive the entry-processing loop, since
41961         we can't rely on the value of the vmt_length member in the last
41962         entry.  On some systems doing so could result in exhausting
41963         virtual memory.  Based in part on a patch from Mike Jetzer.
41964
41965 2003-08-14  Jim Meyering  <jim@meyering.net>
41966         and Paul Eggert  <eggert@twinsun.com>
41967
41968         Merges from coreutils, plus other fixes.
41969         * lib/physmem.c: Merge in portability changes from gcc/libiberty
41970         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
41971         for credits and details.  Thanks to Kaveh Ghazi for helping
41972         to keep these files in sync.
41973         (ARRAY_SIZE): Define it.
41974         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
41975         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
41976         (memcasecmp): Don't assume size_t fits in unsigned int.
41977         Remove casts and duplicate code.
41978         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
41979         (memcpy): Remove definition.
41980         Merge in some clean-up and optimization changes from glibc.
41981         [BLOCKSIZE]: Move definition to top of file.
41982         Ensure that it is a multiple of 64.
41983         Rearrange loop exit tests so as to avoid performing an
41984         additional fread after encountering an error or EOF.
41985         * lib/md5.h (md5_uintptr): Define.
41986         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
41987         return to the initial working directory.  Preserve errno
41988         for caller.
41989         * lib/idcache.c: Include "xalloc.h".
41990         (xmalloc, xrealloc): Remove decls.
41991         (getuser): Remove casts no longer required in C89.
41992         * lib/human.c: Include stdio.h, for sprintf.
41993         * lib/group-member.c: Include "xalloc.h".
41994         (xmalloc, xrealloc): Remove decls.
41995         (get_group_info): Remove casts no longer required in C89.
41996         * lib/getusershell.c (readname): Remove casts no longer required in
41997         C89.
41998         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
41999         * lib/getline.c: Whitespace fix, from coreutils.
42000
42001 2003-08-13  Paul Eggert  <eggert@twinsun.com>
42002
42003         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
42004         Check for isascii.
42005
42006         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
42007         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
42008         Undo previous (whitespace-only) change.
42009
42010 2003-08-13  Paul Eggert  <eggert@twinsun.com>
42011
42012         * lib/exclude.c: Include <ctype.h>
42013         (IN_CTYPE_DOMAIN): New macro.
42014         (is_space): New fn.
42015         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
42016         and empty lines.
42017
42018         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
42019         Undo previous (whitespace-only) change.
42020
42021 2003-08-13  Paul Eggert  <eggert@twinsun.com>
42022
42023         * config/srclist-update: Change update back to the old behavior,
42024         leaving whitespace alone.  Use one 'sed' command rather than a
42025         pipeline.
42026         (fixlicense): Now a variable, not a function.
42027         (remove_trailing_blanks): Remove.
42028         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
42029         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
42030         Undo previous (whitespace-only) change.
42031
42032 2003-08-12  Paul Eggert  <eggert@twinsun.com>
42033
42034         Merge from coreutils.
42035         * modules/euidaccess: Add lib_SOURCES, include for new
42036         file euidaccess.h
42037
42038 2003-08-12  Paul Eggert  <eggert@twinsun.com>
42039
42040         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
42041         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
42042         Normalize leading white space and remove trailing white space.
42043
42044         Merge from coreutils
42045         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
42046
42047         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
42048         0.12.1.  These files are now being upgraded automatically by
42049         ../config/srclist-update.
42050
42051 2003-08-12  Paul Eggert  <eggert@twinsun.com>
42052
42053         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
42054         Normalize leading white space and remove trailing white space.
42055         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
42056         notice, as per ../config/srclist-update.
42057
42058         Merge from coreutils.
42059         * lib/euidaccess.h: New file.
42060         * lib/euidaccess.c: Include it.
42061         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
42062         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
42063         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
42064
42065 2003-08-12  Paul Eggert  <eggert@twinsun.com>
42066
42067         * config/srclist-update: Add copyright notice.
42068         (remove_id_lines, remove_trailing_blanks): New constants.
42069         (fixfile): Use them to normalize spacing a bit in copied files.
42070         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
42071         Normalize leading white space and remove trailing white space.
42072
42073         * config/texinfo.tex: Sync with texinfo.
42074
42075         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
42076         strtoul.c from libc, to merge coreutils whitespace changes.
42077
42078         * config/srclist.txt: Get the following m4 files from gettext:
42079         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
42080         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
42081         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
42082         wint_t.m4.
42083
42084 2003-08-12  Karl Berry  <karl@gnu.org>
42085
42086         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
42087         been made.
42088
42089 2003-08-11  Paul Eggert  <eggert@twinsun.com>
42090
42091         * modules/gnu-source, m4/gnu-source.m4:
42092         Remove; we're assuming Autoconf 2.54 or later now.
42093         Suggested by Bruno Haible.
42094         * MODULES.html.sh (func_all_modules): Remove gnu-source.
42095
42096 2003-08-11  Bruno Haible  <bruno@clisp.org>
42097
42098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
42099
42100 2003-08-11  Bruno Haible  <bruno@clisp.org>
42101
42102         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
42103         (vasnprintf): Use it instead of wcslen.
42104
42105 2003-08-11  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
42108         value to ensure that _Bool promotes to int. Use #define for _Bool when
42109         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
42110
42111 2003-08-10  Karl Berry  <karl@gnu.org>
42112
42113         * lib/regex.h: update from libc (whitespace fix).
42114
42115 2003-08-09  Paul Eggert  <eggert@twinsun.com>
42116
42117         Merge some files from coreutils.  These changes were
42118         originally made by Jim Meyering.
42119         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
42120         many older Unixes require this.
42121         * lib/alloca.c (alloca): Remove cast to argument of free;
42122         no longer needed in C89.
42123         * lib/alloca_.h, regex.h: Fix white space to match
42124         what GNU indent does.
42125
42126 2003-08-09  Paul Eggert  <eggert@twinsun.com>
42127
42128         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
42129         apparently Emacs's Unicode mode got confused before my 2003-08-05
42130         checkin.
42131
42132 2003-08-08  Paul Eggert  <eggert@twinsun.com>
42133
42134         * m4/extensions.m4: New file.
42135         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
42136         Require gl_USE_SYSTEM_EXTENSIONS.
42137         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
42138         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
42139
42140 2003-08-08  Paul Eggert  <eggert@twinsun.com>
42141
42142         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
42143         * modules/extensions, modules/gnu-source: New files.
42144         * modules/timespec, modules/unlocked-io: Depend on extensions.
42145
42146 2003-08-07  Paul Eggert  <eggert@twinsun.com>
42147
42148         * modules/restrict: New file.
42149         * MODULES.html.sh (func_all_modules): Add restrict.
42150         * modules/regex: Depend on restrict.
42151
42152 2003-08-07  Paul Eggert  <eggert@twinsun.com>
42153
42154         * m4/restrict.m4: New file.
42155         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
42156
42157 2003-08-07  Bruno Haible  <bruno@clisp.org>
42158
42159         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
42160         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
42161
42162 2003-08-07  Bruno Haible  <bruno@clisp.org>
42163
42164         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
42165         makes the module 'getndelim2' compatible with the module 'getline'.
42166
42167 2003-08-05  Paul Eggert  <eggert@twinsun.com>
42168
42169         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
42170         byte with "\201" to avoid glitches when editing that source file
42171         with multi-gnome-terminal.
42172
42173 2003-08-05  Paul Eggert  <eggert@twinsun.com>
42174
42175         * lib/bumpalloc.h: Remove.
42176
42177 2003-08-05  Paul Eggert  <eggert@twinsun.com>
42178
42179         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
42180         * modules/bumpalloc: Remove.
42181
42182 2003-08-04  Paul Eggert  <eggert@twinsun.com>
42183
42184         * lib/getloadavg.c: Change copyright notice and spacing to conform to
42185         GNU coding style.
42186
42187         Merge from coreutils.
42188         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
42189         1. From glibc.
42190         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
42191         from Karl Berry, implemented by Jim Meyering.
42192         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
42193         from Dmitry V. Levin.
42194         Remove anachronistic cast of xrealloc.
42195         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
42196         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
42197         type. Otherwise, it wouldn't compile with at least /bin/cc on
42198         ymp-cray-unicos9.0.2.X.
42199         Combine two mostly-identical uses of alloca into one.
42200         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
42201
42202 2003-08-04  Dave Love  <d.love@dl.ac.uk>
42203
42204         [From Emacs.]
42205
42206         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
42207         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
42208         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
42209         obsolete NLIST_NAME_UNION.
42210         [__GNU__]: Undef BSD and FSCALE.
42211         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
42212
42213 2003-08-03  Paul Eggert  <eggert@twinsun.com>
42214
42215         * lib/stdbool_.h (_Bool): Make it signed char, instead of
42216         an enum type, so that it's guaranteed to promote to int.  See:
42217         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
42218
42219 2003-08-03  Karl Berry  <karl@gnu.org>
42220
42221         * config/depcomp: update from automake.
42222
42223 2003-07-31  Paul Eggert  <eggert@twinsun.com>
42224
42225         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
42226         (strerror): Don't assume that a printable int fits in 14 bytes.
42227
42228 2003-07-31  Bruno Haible  <bruno@clisp.org>
42229
42230         * modules/getpass-gnu: New file.
42231         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
42232
42233 2003-07-31  Bruno Haible  <bruno@clisp.org>
42234
42235         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
42236
42237 2003-07-24  Karl Berry  <karl@gnu.org>
42238
42239         * config/missing: update from automake.
42240
42241 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
42242             Bruno Haible  <bruno@clisp.org>
42243
42244         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
42245         * lib/getline.c (getline, getdelim): Likewise.
42246         Remove _GNU_SOURCE define; now it's defined in config.h through
42247         m4/getline.m4.
42248
42249 2003-07-23  Karl Berry  <karl@gnu.org>
42250
42251         * config/config.sub: update from prep.
42252
42253 2003-07-22  Paul Eggert  <eggert@twinsun.com>
42254
42255         * modules/xalloc (Depends-on): Add exitfail.
42256         * modules/xmemcoll: Likewise.
42257
42258 2003-07-22  Paul Eggert  <eggert@twinsun.com>
42259
42260         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
42261         over-parenthesization in macros.
42262
42263         Sync with coreutils.
42264
42265         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
42266         required by C99.
42267
42268         Use `exit_failure' for xalloc and xmemcoll instead of their own
42269         private exit-failure variables.
42270         * lib/xalloc.h (xalloc_exit_failure): Remove.
42271         * lib/xmalloc.c: Likewise.  Include exitfail.h.
42272         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
42273         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
42274         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
42275         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
42276
42277 2003-07-20  Jim Meyering  <jim@meyering.net>
42278
42279         * modules/closeout (Depends-on): Add exitfail.
42280         Suggestion from Bruno Haible.
42281
42282 2003-07-19  Karl Berry  <karl@gnu.org>
42283
42284         * config/config.sub: update from prep.
42285
42286 2003-07-18  Paul Eggert  <eggert@twinsun.com>
42287
42288         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
42289         Remove.
42290         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
42291         to test that it can stand by itself.  Include "exitfail.h".
42292         Clients should set exit_failure instead.
42293         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
42294
42295 2003-07-18  Bruno Haible  <bruno@clisp.org>
42296
42297         * modules/getndelim2: New file.
42298         * modules/getline: Share files with module getndelim2.
42299         * modules/getnline: Depend on getndelim2 instead of sharing files with
42300         it. Add getnline.c to lib_SOURCES.
42301         * MODULES.html.sh (func_all_modules): Add getndelim2.
42302
42303 2003-07-18  Bruno Haible  <bruno@clisp.org>
42304
42305         * m4/getndelim2.m4: New file.
42306         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
42307         invoke gl_PREREQ_GETNDELIM2.
42308         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
42309         gl_PREREQ_GETNDELIM2.
42310         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
42311         gl_GETNDELIM2.
42312
42313 2003-07-18  Bruno Haible  <bruno@clisp.org>
42314
42315         * lib/getndelim2.h: New file.
42316         * lib/getndelim2.c: Make into a module of its own. Include config.h,
42317         getndelim2.h.
42318         (getndelim2): Make non-static. Change return type to ssize_t.
42319         * lib/getline.h: Change argument names.
42320         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
42321         * lib/getnline.c: Include getndelim2.h.
42322
42323 2003-07-18  Andreas Schwab  <schwab@suse.de>
42324
42325         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
42326
42327 2003-07-17  Karl Berry  <karl@gnu.org>
42328
42329         * config/config.sub: update from prep.
42330
42331 2003-07-17  Bruno Haible  <bruno@clisp.org>
42332
42333         * modules/getnline: New file.
42334         * modules/getline: Add lib/getndelim2.c to source file list.
42335         * MODULES.html.sh (func_all_modules): Add getnline.
42336
42337 2003-07-17  Bruno Haible  <bruno@clisp.org>
42338
42339         * m4/getnline.m4: New file.
42340
42341 2003-07-17  Bruno Haible  <bruno@clisp.org>
42342
42343         * m4/Makefile.am.in: Remove file.
42344         * m4/Makefile.am: Remove file.
42345         * m4/Makefile.in: Remove file.
42346
42347 2003-07-17  Bruno Haible  <bruno@clisp.org>
42348
42349         * lib/getnline.h: New file.
42350         * lib/getnline.c: New file.
42351         * lib/getndelim2.c: New file, extracted from getline.c.
42352         (getndelim2): Renamed from getdelim2, with added nmax argument.
42353         * lib/getline.c: Include getndelim2.c.
42354         (getdelim2): Moved out to getndelim2.c.
42355         (getline, getdelim): Update.
42356
42357 2003-07-17  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/Makefile.am: Remove file.
42360         * lib/Makefile.in: Remove file.
42361
42362 2003-07-17  Bruno Haible  <bruno@clisp.org>
42363
42364         * configure.in: Remove file.
42365         * Makefile.in: Remove file.
42366
42367 2003-07-17  Bruno Haible  <bruno@clisp.org>
42368
42369         * MODULES.html.sh: Put the </BODY> right before </HTML>.
42370
42371 2003-07-16  Karl Berry  <karl@gnu.org>
42372
42373         * config/srclist-update: was running fixlicense twice, which caused
42374                 texinfo.tex to be nullified for some reason.  Simplify,
42375                 $gplsrc is no longer needed as far as I can see?
42376
42377 2003-07-16  Jim Meyering  <jim@meyering.net>
42378
42379         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
42380
42381 2003-07-15  Paul Eggert  <eggert@twinsun.com>
42382
42383         * config/srclist.txt: Get the following files from gettext-runtime/intl
42384         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
42385         ref-del.sin.  From Bruno Haible.
42386         * config/srclist-update (fixfile): Change grep pattern again, since the
42387         previous fix didn't work (there was another trailing $).  Use
42388         '[$]' to escape the $s.
42389
42390 2003-07-15  Karl Berry  <karl@gnu.org>
42391
42392         * lib/vasnprintf.c: update from gettext.
42393
42394 2003-07-15  Karl Berry  <karl@gnu.org>
42395
42396         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
42397         gets expanded when surrounded by '$'.
42398
42399 2003-07-15  Jim Meyering  <jim@meyering.net>
42400
42401         * modules/save-cwd: Don't depend on error.  From Derek Price.
42402
42403 2003-07-15  Jim Meyering  <jim@meyering.net>
42404
42405         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
42406
42407 2003-07-14  Simon Josefsson  <jas@extundo.com>
42408
42409         * modules/mempcpy: New file.
42410         * MODULES.html.sh (func_all_modules): Add mempcpy.
42411
42412 2003-07-14  Simon Josefsson  <jas@extundo.com>
42413
42414         * m4/mempcpy.m4: New file.
42415
42416 2003-07-14  Simon Josefsson  <jas@extundo.com>
42417
42418         * lib/mempcpy.h: New file.
42419         * lib/mempcpy.c: New file.
42420
42421 2003-07-14  Paul Eggert  <eggert@twinsun.com>
42422
42423         * modules/getdate, modules/posixtm: Depend on mktime.
42424
42425 2003-07-14  Paul Eggert  <eggert@twinsun.com>
42426
42427         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
42428         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
42429         unicodeio.c, unicodeio.h, unlocked-io.h:
42430         Switch from LGPL to GPL.
42431
42432 2003-07-14  Paul Eggert  <eggert@twinsun.com>
42433
42434         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
42435         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
42436         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
42437         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
42438         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
42439         updated automatically by ../config/srclist-update.  This changes
42440         their license from LPGL to GPL.
42441
42442 2003-07-14  Paul Eggert  <eggert@twinsun.com>
42443
42444         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
42445         assumed to refer to the root of the most recent stable gettext version.
42446         * config/srclistvars.sh: Add defaults for eggert.
42447         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
42448         Match "This program" as well as "The program".  This is needed
42449         for gettext.
42450
42451 2003-07-14  Jim Meyering  <jim@meyering.net>
42452
42453         Don't emit diagnostics.  Let callers do that.
42454         * lib/save-cwd.c: Don't include "error.h".
42455         (save_cwd): Don't call error.  Ensure that errno is valid
42456         when returning nonzero.
42457
42458         * lib/save-cwd.h (restore_cwd): Update prototype.
42459         * lib/save-cwd.c (restore_cwd): Remove two parameters.
42460         Simplify.  Don't call error upon failure.  Let callers do that.
42461         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
42462         when auditing is enabled.  But don't bother updating the #if.
42463
42464 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
42465
42466         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
42467         it breaks C++ compilation.
42468         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
42469
42470 2003-07-10  Simon Josefsson  <jas@extundo.com>
42471
42472         * modules/strchrnul (Makefile.am): Add strchrnul.h.
42473
42474 2003-07-10  Jim Meyering  <jim@meyering.net>
42475
42476         * m4/clock_time.m4: Remove trailing blank.
42477         * m4/intmax_t.m4: Likewise.
42478
42479 2003-07-10  Jim Meyering  <jim@meyering.net>
42480
42481         * lib/vasnprintf.c: Remove trailing blanks.
42482         Make cpp indentation consistent.
42483
42484 2003-07-09  Paul Eggert  <eggert@twinsun.com>
42485
42486         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
42487         posixver.c, strftime.c, strnlen.c, strverscmp.c:
42488         Switch from LGPL to GPL.
42489
42490 2003-07-09  Paul Eggert  <eggert@twinsun.com>
42491
42492         * config/srclist.txt: Sort sublists.  Add
42493         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
42494         that differ from gnulib for one reason or another; we'd like this list
42495         to be smaller but for now let's document what we have.
42496
42497 2003-07-08  Paul Eggert  <eggert@twinsun.com>
42498
42499         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
42500         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
42501         and sweeter "eval x=$x".
42502         * config/srclist.txt: Get lib/argp* from glibc.
42503
42504 2003-07-07  Paul Eggert  <eggert@twinsun.com>
42505
42506         * lib/mktime.c: Fix some boundary cases and remove need for floating
42507         point.
42508
42509         Issue a compile-time diagnostic if time_t is floating point, or if
42510         two's complement arithmetic is not in effect, or if arithmetic
42511         right shift does not propagate the sign.  These assumptions were
42512         all in the original code but they weren't checked.
42513
42514         (TIME_T_MIDPOINT, verify): New macros.
42515         (__isleap): Remove; it has integer overflow problems.
42516         (leapyear): New function, without those problems.
42517         (ydhms_tm_diff): Remove; splitting into two parts.
42518         (ydhms_diff): New function, containing the arithmetic part of
42519         the old ydhms_tm_diff function.  Issue a compile-time
42520         diagnostic if we are not using C99 integer division.
42521         Avoid casts when possible.
42522         (guess_time_tm): New function, containing the checking part of
42523         the old ydhms_tm_diff function.  Return the new value, rather than
42524         the difference between it and the old.  Accept a new argument T
42525         so that *T specifies the old value.  Check for overflow in the result.
42526
42527         (__mktime_internal): Use a time_t offset, not a long int offset.
42528         This undoes the 2003-06-04 change, which is no longer needed now
42529         that we have better overflow checking.
42530         (localtime_offset): Likewise.
42531
42532         (__mktime_internal): Avoid harmful overflow on hosts where time_t
42533         and long are 64-bit but int is only 32-bit.
42534         (ydhms_diff): Use long int to store year1 and yday1.
42535         Issue a compile-time diagnostic if long int is not wide enough.
42536
42537         (__mktime_internal): Use long int to store adjusted year and yday.
42538         Use plain C rather than preprocessor commands, if that doesn't
42539         affect efficiency.
42540         Check for overflow (and try to repair) after each probe
42541         rather than checking only at the very end.  This avoids some bugs
42542         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
42543         does not equal GMT offset at maximum time).
42544         Use integer to check for overflow rather than floating point; this
42545         is more portable to non-IEEE hosts, and is a tad faster.
42546         When we detect that we are oscillating between two values,
42547         don't check whether tm_isdst has the requested value, since
42548         we already know the answer.  When tm_isdst has the wrong value,
42549         use a different heuristic to find the right one, based on the
42550         extreme values actually observed in practice in tz2003a,
42551         rather than the (overly optimistic) "previous 3 calendar quarters".
42552
42553         (not_equal_tm, print_tm, check_result): Use "const T" rather than
42554         "T const" to accommodate glibc style.
42555         (check_result): Use less-confusing report format.  "long" -> "long int.
42556         (main): Likewise.
42557         Don't loop if the iteration overflows time_t.
42558         Allow a negative step in the iteration.
42559
42560 2003-07-06  Karl Berry  <karl@gnu.org>
42561
42562         * config/depcomp: update from automake.
42563         * config/config.sub: update from prep.
42564
42565 2003-07-03  Karl Berry  <karl@gnu.org>
42566
42567         * config/config.guess: update from prep.
42568
42569 2003-07-01  Paul Eggert  <eggert@twinsun.com>
42570
42571         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
42572         xreadlink.c now includes it unconditionally.
42573
42574 2003-07-01  Paul Eggert  <eggert@twinsun.com>
42575
42576         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
42577         having it depend on HAVE_SYS_TYPES_H.
42578
42579 2003-07-01  Bruno Haible  <bruno@clisp.org>
42580
42581         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
42582         <sys/types.h> should be sufficient.
42583         Reported by Paul Eggert.
42584
42585 2003-06-26  Karl Berry  <karl@gnu.org>
42586
42587         * config/depcomp: update from automake.
42588
42589 2003-06-26  Bruno Haible  <bruno@clisp.org>
42590
42591         * modules/human: Depend on module stdbool.
42592
42593 2003-06-25  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/readlink: New file.
42596         * modules/xreadlink: Depend on it.
42597         * MODULES.html.sh (func_all_modules): Add readlink.
42598
42599 2003-06-25  Bruno Haible  <bruno@clisp.org>
42600
42601         * m4/readlink.m4: New file.
42602
42603 2003-06-25  Bruno Haible  <bruno@clisp.org>
42604
42605         * lib/readlink.c: New file.
42606
42607 2003-06-22  Karl Berry  <karl@gnu.org>
42608
42609         * config/srclist.txt: update mkinstalldirs from automake.
42610         * config/mkinstalldirs: update.
42611
42612 2003-06-22  Bruno Haible  <bruno@clisp.org>
42613
42614         Portability to mingw32.
42615         * m4/ssize_t.m4: New file, from GNU gettext.
42616         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
42617         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
42618
42619 2003-06-22  Bruno Haible  <bruno@clisp.org>
42620
42621         * modules/safe-read: Add m4/ssize_t.m4.
42622         * modules/xreadlink: Add m4/ssize_t.m4.
42623
42624 2003-06-20  Bruno Haible  <bruno@clisp.org>
42625
42626         Assume C89, so PARAMS isn't needed.
42627         * lib/unicodeio.h (PARAMS): Remove.
42628         * lib/unicodeio.c: Don't use PARAMS.
42629
42630 2003-06-18  Karl Berry  <karl@gnu.org>
42631
42632         * config/config.{guess,sub}: update from prep.
42633
42634 2003-06-18  Jim Meyering  <jim@meyering.net>
42635
42636         Merge changes from coreutils.
42637         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
42638         Remove explicit declarations of xmalloc and realloc.
42639         Include xalloc.h.
42640         (read_utmp): Remove anachronistic cast of xmalloc.
42641
42642 2003-06-17  Paul Eggert  <eggert@twinsun.com>
42643
42644         Assume C89, so PARAMS isn't needed.
42645         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
42646         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
42647         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
42648         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
42649         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
42650         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
42651         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
42652         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
42653         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
42654         lib/xstrtod.h, lib/xstrtol.h: Likewise.
42655         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
42656         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
42657         no longer needed. Anyway, config.h should always be included before any
42658         other file.
42659
42660 2003-06-11  Simon Josefsson  <jas@extundo.com>
42661
42662         * modules/sysexits: New file.
42663         * MODULES.html.sh (func_all_modules): Add sysexits.
42664
42665 2003-06-11  Simon Josefsson  <jas@extundo.com>
42666
42667         * lib/sysexit_.h: New file.
42668
42669 2003-06-11  Derek Price  <derek@ximbiot.com>
42670
42671         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
42672         necessary.
42673
42674 2003-06-11  Bruno Haible  <bruno@clisp.org>
42675
42676         * m4/sysexits.m4: New file.
42677
42678 2003-06-10  Simon Josefsson  <jas@extundo.com>
42679
42680         * lib/argp.h: New file, from glibc.
42681         * lib/argp-ba.c: New file, from glibc.
42682         * lib/argp-eexst.c: New file, from glibc.
42683         * lib/argp-fmtstream.c: New file, from glibc.
42684         * lib/argp-fmtstream.h: New file, from glibc.
42685         * lib/argp-fs-xinl.c: New file, from glibc.
42686         * lib/argp-help.c: New file, from glibc.
42687         * lib/argp-namefrob.h: New file, from glibc.
42688         * lib/argp-parse.c: New file, from glibc.
42689         * lib/argp-pv.c: New file, from glibc.
42690         * lib/argp-pvh.c: New file, from glibc.
42691         * lib/argp-xinl.c: New file, from glibc.
42692
42693 2003-06-10  Simon Josefsson  <jas@extundo.com>
42694
42695         * modules/strchrnul: New file.
42696
42697 2003-06-10  Simon Josefsson  <jas@extundo.com>
42698
42699         * modules/argp: New file.
42700
42701 2003-06-10  Simon Josefsson  <jas@extundo.com>
42702
42703         * m4/strchrnul.m4: New file.
42704
42705 2003-06-10  Simon Josefsson  <jas@extundo.com>
42706
42707         * lib/strchrnul.h: New file.
42708         * lib/strchrnul.c: New file.
42709
42710 2003-06-10  Bruno Haible  <bruno@clisp.org>
42711
42712         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
42713
42714 2003-06-07  Karl Berry  <karl@gnu.org>
42715
42716         * config/config.{guess,sub}: update from prep.
42717
42718 2003-06-07  Jim Meyering  <jim@meyering.net>
42719
42720         * modules/strtod: Use $(...) notation, not @...@ for
42721         AC_REPLACE'd variables.
42722         * modules/localcharset: Likewise.
42723
42724 2003-06-07  Jim Meyering  <jim@meyering.net>
42725
42726         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
42727         in place of my name in the copyright comment.
42728         Remove definition and uses of __P.
42729
42730         From coreutils.
42731         * lib/stat.c: Don't declare xmalloc explicitly.
42732         Instead, include "xalloc.h".
42733         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
42734         xrealloc, and xcalloc return values.
42735         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
42736         Improve comment.
42737         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
42738
42739 2003-06-07  Bruno Haible  <bruno@clisp.org>
42740
42741         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
42742         avoid AC_CONFIG_LINKS.
42743         * modules/fnmatch (Makefile.am): Use explicit creation rule for
42744         fnmatch.h, to avoid AC_CONFIG_LINKS.
42745         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
42746
42747 2003-06-07  Bruno Haible  <bruno@clisp.org>
42748
42749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
42750         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
42751         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
42752         directory.
42753         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
42754         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
42755         directory.
42756
42757 2003-06-06  Jim Meyering  <jim@meyering.net>
42758
42759         Merge from coreutils.
42760         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
42761         Consolidate declarations and initializations of *_base* locals.
42762
42763         Merge from coreutils.
42764         This avoids a core dump on systems without GNU putenv,
42765         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
42766         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
42767         (unsetenv): New static function, from GNU libc.
42768         (rpl_putenv): Use it.
42769
42770         * lib/modechange.c: Remove trailing blanks.
42771
42772         Merge from coreutils.
42773         * lib/fsusage.c: Remove declaration of statfs.
42774         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
42775
42776         * lib/posixtm.c: Include <stdbool.h> unconditionally.
42777
42778 2003-06-06  Jim Meyering  <jim@meyering.net>
42779
42780         * lib/stdbool_.h: Renamed from stdbool.h.in.
42781
42782 2003-06-06  Jim Meyering  <jim@meyering.net>
42783             Bruno Haible  <bruno@clisp.org>
42784
42785         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
42786         Adjust Makefile.am snippet not to redirect directly to target.
42787         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
42788
42789 2003-06-05  Paul Eggert  <eggert@twinsun.com>
42790
42791         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
42792         mismatch, look in future quarters as well as past.  This fixes a
42793         bug when processing fall-backwards gaps immediately after a long
42794         period of daylight-saving time.
42795
42796         * lib/mktime.c: Assume freestanding C89 or better.
42797         (HAVE_LIMITS_H): Remove.  Assume it's 1.
42798         (__P): Remove; not used.
42799         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
42800         (mktime, not_equal_tm, print_tm, check_result,
42801         main): Use prototypes.  Use const * where appropriate.
42802         (main): Fix typo in testing code that uncovered by above changes.
42803         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
42804
42805 2003-06-04  Paul Eggert  <eggert@twinsun.com>
42806
42807         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
42808         locale.h, localeconv.  This merges changes from coreutils.
42809
42810         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
42811         It can be removed after the next Autoconf is released.
42812         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
42813         needed.
42814
42815 2003-06-04  Paul Eggert  <eggert@twinsun.com>
42816
42817         * lib/mktime.c: Fix Debian bug 177940
42818         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
42819         (localtime_offset): Now long int, not time_t, because we want it
42820         to be guaranteed to be signed.  All uses changed.
42821         (__mktime_internal): If overflow would occur when adding offset,
42822         don't add it.
42823
42824         Merge 'human' changes from coreutils.  Rewrite to support
42825         locale-specific notations like thousands separators.
42826         * lib/human.c: Simplify authorship notice.
42827         Include human.h immediately after config.h.
42828         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
42829         <limits.h>: Do not include, since human.h does.
42830         (SIZE_MAX, UINTMAX_MAX): New macros.
42831         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
42832         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
42833         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
42834         (power_letter): Renamed from suffixes.
42835         (generate_suffix_backwards): Remove.
42836         (adjust_value): Now takes int style (because of human.h changes)
42837         and long double value (for greater precision on some platforms).
42838         (group_number): New function.
42839         (human_readable): Use it.  Use integer options, not enum.
42840         Put the options before the sizes in the arg list.
42841         Support all the new options.
42842         The old human_readable function has been removed;
42843         use inttostr.h instead.
42844         (human_readable, default_block_size, humblock):
42845         Use uintmax_t, not int, for block sizes.
42846         (human_readable_inexact, block_size_types): Remove.
42847         (block_size_opts): New constant.
42848         (human_options): Renamed from human_block_size, with new signature
42849         that allows block sizes up to UINTMAX_MAX.  All callers changed.
42850         * lib/human.h: Add copyright and authorship notice.
42851         Include <limits.h> and <stdbool.h> unconditionally.
42852         (PARAMS): Remove.  All uses removed.
42853         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
42854         (enum human_inexact_style): Remove tag; now a nameless enum.
42855         (human_floor, human_ceiling, human_round_to_even): Now have
42856         values 2, 0, 1 rather than -1, 1, 0.
42857         (human_group_digits, human_suppress_point_zero, human_autoscale,
42858         human_base_1024, human_SI, human_B): New constants.
42859         (human_readable_inexact, human_block_size): Remove.
42860         (human_readable): Size args are now uintmax_t, not int.
42861         (human_options): New decl.
42862
42863         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
42864         unnecessary now that we assume C89 or better.  This change
42865         imported from coreutils.
42866
42867         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
42868         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
42869         in the 2003-05-30 sync from glibc.
42870
42871         .h files should stand alone, but we shouldn't include <sys/types.h>
42872         if we can get away with just <stddef.h>.
42873
42874         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
42875         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
42876         rather than <sys/types.h>, as we merely need size_t.
42877         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
42878         to get size_t.
42879         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
42880         Include <stdio.h>, to get FILE.
42881         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
42882         memcasecmp.h has included <stddef.h> and all we need is size_t.
42883         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
42884         our interface, instead of including <sys/types.h>
42885
42886 2003-06-04  Paul Eggert  <eggert@twinsun.com>
42887
42888         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
42889         now, as glibc mktime is buggy on non-glibc systems.
42890
42891 2003-06-03  Karl Berry  <karl@gnu.org>
42892
42893         * config/config.sub: update from prep.
42894
42895 2003-06-02  Paul Eggert  <eggert@twinsun.com>
42896
42897         [from coreutils]
42898         Fix some minor time-related bugs with POSIX time arguments.
42899         Some valid time stamps were being rejected (notably -1, and
42900         time stamps before 1900 on 64-bit hosts).  And some invalid
42901         time stamps were being accepted, e.g. September 31.
42902
42903         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
42904         that we can return (time_t) -1 successfully.
42905         * lib/posixtm.c: Likewise.
42906         [HAVE_STDBOOL_H]: Include <stdbool.h>.
42907         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
42908         (t): Remove static var.
42909         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
42910         of static var.  All uses changed.
42911         (year): Do not reject years before 1900; they can occur with
42912         64-bit time_t.
42913         (posix_time_parse): Do not check for out-of-range components;
42914         that is now the caller's responsibility, since our checks were
42915         only approximations.
42916         (posixtime): Use mktime to check for out-of-range components,
42917         since it knows them exactly.
42918         If mktime returns (time_t) -1, check whether an error actually occurred
42919         by invoking localtime on -1.
42920         (main) [TEST_POSIXTIME]: Check for input data errors, and report
42921         posixtime failures better.
42922         Improve the test data (in comments only).
42923
42924 2003-06-02  Karl Berry  <karl@gnu.org>
42925
42926         * config/mkinstalldirs (version): new variable.
42927         (--version): new option.
42928         (usage): improve message.
42929
42930 2003-05-30  Karl Berry  <karl@gnu.org>
42931
42932         * lib/mktime.c: update from libc.
42933
42934 2003-05-30  Bruno Haible  <bruno@clisp.org>
42935
42936         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
42937         * config/config.rpath: Upgrade to gettext-0.12.1.
42938
42939 2003-05-30  Bruno Haible  <bruno@clisp.org>
42940
42941         * m4/gettext.m4: Upgrade to gettext-0.12.1.
42942         * m4/nls.m4: New file, from gettext-0.12.1.
42943         * m4/po.m4: New file, from gettext-0.12.1.
42944         * m4/progtest.m4: Upgrade to gettext-0.12.1.
42945
42946 2003-05-30  Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
42949         * lib/localcharset.h: Likewise.
42950         * lib/localcharset.c: Likewise.
42951
42952 2003-05-29  Karl Berry  <karl@gnu.org>
42953
42954         * config/config.rpath: update from gettext.
42955
42956 2003-05-28  Paul Eggert  <eggert@twinsun.com>
42957
42958         Assume the headers required for C89 freestanding compilers.
42959         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
42960         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
42961         * m4/human.m4 (gl_HUMAN): Likewise.
42962         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
42963         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
42964         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42965         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
42966         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42967         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
42968
42969 2003-05-28  Paul Eggert  <eggert@twinsun.com>
42970
42971         Assume the headers required for C89 freestanding compilers.
42972         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
42973         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
42974         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
42975         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
42976         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
42977         define, since <limits.h> is guaranteed to do that.
42978         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
42979         * lib/exclude.c: Include <stdbool.h> unconditionally.
42980         * lib/tempname.c: Include <stddef.h> unconditionally.
42981         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
42982         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
42983         <stddef.h> does that.
42984         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
42985         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
42986         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
42987         needed.
42988         * lib/xstrtol.c: Likewise.
42989         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
42990         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
42991
42992         * lib/addext.c (addext): Use assignment rather than cast, to avoid
42993         warnings on some platforms.
42994
42995         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
42996         arbitrarily.
42997
42998 2003-05-26  Jim Meyering  <jim@meyering.net>
42999
43000         Merge in a change from coreutils:
43001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
43002         that is guaranteed to be `no'.  Use `no_such_member' to indicate
43003         that condition, rather than `-1' which is slightly misleading.
43004         Change the name of the cache variable to have the gl_ prefix.
43005         Prompted by a patch from Richard Dawe for DJGPP.
43006
43007 2003-05-24  Karl Berry  <karl@gnu.org>
43008
43009         * config/config.guess: update from prep.
43010
43011 2003-05-22  Karl Berry  <karl@gnu.org>
43012
43013         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
43014
43015 2003-05-20  Karl Berry  <karl@gnu.org>
43016
43017         * config/config.guess: update from prep.
43018
43019 2003-05-18  Karl Berry  <karl@gnu.org>
43020
43021         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
43022         might actually be set by the user.
43023
43024         * config/depcomp, install-sh, mdate-sh: update from automake.
43025
43026 2003-05-17  Bruno Haible  <bruno@clisp.org>
43027
43028         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
43029         invalid expansion for AC_EGREP_CPP.
43030         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
43031         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
43032         Suggested by Akim Demaille <akim@epita.fr> in
43033         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
43034
43035 2003-05-12  Jim Meyering  <jim@meyering.net>
43036
43037         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
43038         the space-padded-by-default conversion specifiers, %e, %k, %l.
43039
43040 2003-05-12  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
43043         the string is longer than 4 KB.
43044
43045 2003-05-11  Karl Berry  <karl@gnu.org>
43046
43047         * config/config.{guess,sub}: update from prep.
43048
43049 2003-05-09  Bruno Haible  <bruno@clisp.org>
43050
43051         * modules/error: Add m4/strerror_r.m4 to file list.
43052
43053 2003-05-03  Bruno Haible  <bruno@clisp.org>
43054
43055         Upgrade to Unicode-4.0.
43056         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
43057         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
43058         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
43059         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
43060         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
43061         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
43062         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
43063         Change width of U+E0100..U+E01EF from 1 to 0.
43064
43065 2003-04-25  Jim Meyering  <jim@meyering.net>
43066
43067         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
43068         of type size_t, not int.
43069
43070 2003-04-25  Bruno Haible  <bruno@clisp.org>
43071
43072         * lib/copy-file.c: Include <stddef.h>, for size_t.
43073
43074 2003-04-21  Paul Eggert  <eggert@twinsun.com>
43075
43076         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
43077         code which expansion is under static control.  Patch imported from
43078         Akim Demaille's patch to Bison; see
43079         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
43080
43081 2003-04-14  Bruno Haible  <bruno@clisp.org>
43082
43083         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
43084
43085 2003-04-11  Jim Meyering  <jim@meyering.net>
43086
43087         Merge changes from Coreutils.
43088
43089         2003-03-22  Jim Meyering  <jim@meyering.net>
43090
43091         * lib/strftime.c (widen): Cast alloca return value to proper type.
43092
43093         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
43094
43095         From GNU libc.
43096         * lib/strftime.c (my_strftime): Handle very large width
43097         specifications for numeric values correctly.  Improve checks for
43098         overflow.
43099
43100         2003-01-19  Jim Meyering  <jim@meyering.net>
43101
43102         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
43103         definitions.
43104         (nl_get_alt_digit) [! defined my_strftime]: Define.
43105         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
43106         _nl_get_alt_digit and _nl_get_walt_digit.
43107
43108         * lib/strftime.c (my_strftime): Merge in locale-related changes from
43109         libc. These changes have no effect outside of _LIBC.
43110
43111 2003-04-10  Bruno Haible  <bruno@clisp.org>
43112
43113         * modules/findprog: New file.
43114         * MODULES.html.sh (func_all_modules): Add it.
43115
43116 2003-04-10  Bruno Haible  <bruno@clisp.org>
43117
43118         * m4/findprog.m4: New file.
43119         * m4/eaccess.m4: New file.
43120
43121 2003-04-10  Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/findprog.h: New file, from GNU gettext.
43124         * lib/findprog.c: New file, from GNU gettext.
43125
43126 2003-04-05  Jim Meyering  <jim@meyering.net>
43127
43128         Merge changes from Coreutils.
43129
43130         * lib/exclude.h (PARAMS): Remove definition and uses.
43131         * lib/exclude.c: Remove uses of `PARAMS'.
43132
43133         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
43134         Add test-cases for DOS filenames. Declare program_name.
43135         (main): Set up program_name.  Patch by Rich Dawe.
43136
43137         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43138         error from mntctl.
43139         Use mntctl's return value to drive the entry-processing loop, since
43140         we can't rely on the value of the vmt_length member in the last
43141         entry.  On some systems doing so could result in exhausting
43142         virtual memory.  Based in part on a patch from Mike Jetzer.
43143
43144 2003-04-04  Bruno Haible  <bruno@clisp.org>
43145
43146         * modules/linebreak: New file.
43147         * MODULES.html.sh (func_all_modules): Add it.
43148
43149 2003-04-04  Bruno Haible  <bruno@clisp.org>
43150
43151         * m4/linebreak.m4: New file.
43152
43153 2003-04-04  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/linebreak.h: New file, from GNU gettext.
43156         * lib/linebreak.c: New file, from GNU gettext with slight
43157         modifications.
43158         * lib/lbrkprop.h: New file, from GNU gettext.
43159
43160 2003-04-03  Bruno Haible  <bruno@clisp.org>
43161
43162         * modules/utf8-ucs4: New file.
43163         * modules/utf16-ucs4: New file.
43164         * modules/ucs4-utf8: New file.
43165         * modules/ucs4-utf16: New file.
43166         * MODULES.html.sh (func_all_modules): Add them.
43167
43168 2003-04-03  Bruno Haible  <bruno@clisp.org>
43169
43170         * m4/utf-ucs4.m4: New file.
43171         * m4/ucs4-utf.m4: New file.
43172
43173 2003-04-03  Bruno Haible  <bruno@clisp.org>
43174
43175         * lib/utf8-ucs4.h: New file, from GNU gettext.
43176         * lib/utf16-ucs4.h: New file, from GNU gettext.
43177         * lib/ucs4-utf8.h: New file, from GNU gettext.
43178         * lib/ucs4-utf16.h: New file, from GNU gettext.
43179
43180 2003-04-02  Bruno Haible  <bruno@clisp.org>
43181
43182         * modules/binary-io: New file.
43183         * MODULES.html.sh (func_all_modules): Add it.
43184
43185 2003-04-02  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/binary-io.h: New file, from GNU gettext.
43188
43189 2003-04-01  Bruno Haible  <bruno@clisp.org>
43190
43191         * modules/pathname: New file.
43192         * MODULES.html.sh (func_all_modules): Add it.
43193
43194 2003-04-01  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/pathname.h: New file, from GNU gettext.
43197         * lib/concatpath.c: New file, from GNU gettext.
43198
43199 2003-03-30  Bruno Haible  <bruno@clisp.org>
43200
43201         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
43202
43203 2003-03-30  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
43206         function chown() doesn't exist.
43207
43208 2003-03-28  Bruno Haible  <bruno@clisp.org>
43209
43210         * modules/copy-file: New file.
43211         * MODULES.html.sh (func_all_modules): Add it.
43212
43213 2003-03-28  Bruno Haible  <bruno@clisp.org>
43214
43215         * m4/copy-file.m4: New file.
43216
43217 2003-03-28  Bruno Haible  <bruno@clisp.org>
43218
43219         * lib/copy-file.h: New file, from GNU gettext.
43220         * lib/copy-file.c: New file, from GNU gettext.
43221
43222 2003-03-18  Jim Meyering  <jim@meyering.net>
43223
43224         * lib/quote.c (quote_n): Fix typo in comment.
43225
43226 2003-03-18  Bruno Haible  <bruno@clisp.org>
43227
43228         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
43229         checking.
43230         * m4/onceonly_2_57.m4: Likewise.
43231
43232 2003-03-17  Bruno Haible  <bruno@clisp.org>
43233
43234         * m4/onceonly.m4: Require autoconf 2.54 or newer.
43235         (m4_quote): Remove macro.
43236         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
43237
43238 2003-03-14  Jim Meyering  <jim@meyering.net>
43239
43240         Merge changes from Coreutils.
43241         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
43242         to be const, in order to avoid warnings.
43243         (obstack_room): Likewise.
43244         (obstack_empty_p): Likewise.
43245
43246 2003-03-14  Bruno Haible  <bruno@clisp.org>
43247
43248         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
43249         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
43250
43251 2003-03-13  Paul Eggert  <eggert@twinsun.com>
43252
43253         Merge changes from Bison.
43254         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
43255         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
43256         when compiling Bison 1.875's `bitset bset = obstack_alloc
43257         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
43258         * lib/hash.c: Include <stdbool.h> unconditionally.
43259
43260 2003-03-13  Paul Eggert  <eggert@twinsun.com>
43261
43262         * m4/onceonly.m4 (m4_quote): New macro.
43263         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
43264         Quote AC_FOREACH variable-expansions properly.
43265
43266 2003-03-13  Paul Eggert  <eggert@twinsun.com>
43267
43268         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
43269
43270 2003-03-09  Paul Eggert  <eggert@twinsun.com>
43271
43272         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
43273         Reported by Bruce Becker; see:
43274         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
43275
43276 2003-03-03  Paul Eggert  <eggert@twinsun.com>
43277             Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
43280         Reported by John Hughes, see
43281         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
43282
43283 2003-02-20  Bruno Haible  <bruno@clisp.org>
43284
43285         * MODULES.html.sh (func_all_modules): Add poll.
43286
43287 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
43288
43289         * modules/poll: New file.
43290
43291 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
43292
43293         * lib/poll_.h: New file.
43294         * lib/poll.c: New file.
43295
43296 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
43297
43298         * m4/poll.m4: New file.
43299
43300 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
43301
43302         * modules/mathl: New file.
43303
43304 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
43305
43306         * lib/mathl.h: New file.
43307         * lib/acosl.c: New file.
43308         * lib/asinl.c: New file.
43309         * lib/atanl.c: New file.
43310         * lib/ceill.c: New file.
43311         * lib/cosl.c: New file.
43312         * lib/expl.c: New file.
43313         * lib/floorl.c: New file.
43314         * lib/frexpl.c: New file.
43315         * lib/ldexpl.c: New file.
43316         * lib/logl.c: New file.
43317         * lib/sincosl.c: New file.
43318         * lib/sinl.c: New file.
43319         * lib/sqrtl.c: New file.
43320         * lib/tanl.c: New file.
43321         * lib/trigl.c: New file.
43322         * lib/trigl.h: New file.
43323
43324 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
43325
43326         * m4/mathl.m4: New file.
43327
43328 2003-02-18  Bruno Haible  <bruno@clisp.org>
43329
43330         * MODULES.html.sh (func_all_modules): Add mathl.
43331
43332 2003-02-17  Bruno Haible  <bruno@clisp.org>
43333
43334         * modules/mkdtemp: New module.
43335         * MODULES.html.sh (func_all_modules): Add it.
43336
43337 2003-02-17  Bruno Haible  <bruno@clisp.org>
43338
43339         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
43340
43341 2003-02-17  Bruno Haible  <bruno@clisp.org>
43342
43343         * lib/mkdtemp.h: New file, from GNU gettext.
43344         * lib/mkdtemp.c: New file, from GNU gettext.
43345
43346 2003-02-02  Jim Meyering  <jim@meyering.net>
43347
43348         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
43349         e.g. glibc-2.2.93.
43350
43351 2003-01-31  Bruno Haible  <bruno@clisp.org>
43352
43353         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
43354         'rpl_rename'.
43355         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
43356         'rpl_strnlen'.
43357         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
43358         'rpl_strtod'.
43359         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
43360         'rpl_utime'.
43361
43362 2003-01-31  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/rename.c: #undef rename before defining rpl_rename.
43365         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
43366
43367 2003-01-30  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/vasnprintf, modules/vasprintf: New modules.
43370         * MODULES.html.sh (func_all_modules): Add them.
43371
43372 2003-01-30  Bruno Haible  <bruno@clisp.org>
43373
43374         * m4/signed.m4: New file, from GNU gettext.
43375         * m4/longdouble.m4: New file, from GNU gettext.
43376         * m4/wchar_t.m4: New file, from GNU gettext.
43377         * m4/wint_t.m4: New file, from GNU gettext.
43378         * m4/vasnprintf.m4: New file.
43379         * m4/vasprintf.m4: New file.
43380
43381 2003-01-30  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/printf-args.h: New file, from GNU gettext.
43384         * lib/printf-args.c: New file, from GNU gettext.
43385         * lib/printf-parse.h: New file, from GNU gettext.
43386         * lib/printf-parse.c: New file, from GNU gettext.
43387         * lib/vasnprintf.h: New file, from GNU gettext.
43388         * lib/vasnprintf.c: New file, from GNU gettext.
43389         * lib/asnprintf.c: New file, from GNU gettext.
43390         * lib/vasprintf.h: New file, from GNU gettext with modifications.
43391         * lib/vasprintf.c: New file, from GNU gettext.
43392         * lib/asprintf.c: New file, from GNU gettext.
43393
43394 2003-01-29  Bruno Haible  <bruno@clisp.org>
43395
43396         * modules/stpncpy: New module.
43397         * MODULES.html.sh (func_all_modules): Add it.
43398
43399 2003-01-29  Bruno Haible  <bruno@clisp.org>
43400
43401         * m4/stpncpy.m4: New file.
43402
43403 2003-01-29  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/stpncpy.h: New file, from GNU gettext with modifications.
43406         * lib/stpncpy.c: New file, from GNU gettext with modifications.
43407
43408 2003-01-28  Bruno Haible  <bruno@clisp.org>
43409
43410         * modules/c-ctype: New module.
43411         * MODULES.html.sh (func_all_modules): Add it.
43412
43413 2003-01-28  Bruno Haible  <bruno@clisp.org>
43414
43415         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
43416         Paul Eggert.
43417         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
43418         Paul Eggert.
43419
43420 2003-01-27  Bruno Haible  <bruno@clisp.org>
43421
43422         * modules/xsetenv: New module.
43423         * MODULES.html.sh (func_all_modules): Add it.
43424
43425 2003-01-27  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/xsetenv.h: New file, from GNU gettext.
43428         * lib/xsetenv.c: New file, from GNU gettext.
43429
43430 2003-01-23  Jim Meyering  <jim@meyering.net>
43431
43432         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
43433         from working on systems without dirfd (at least Irix and OSF1/Tru64).
43434
43435 2003-01-23  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/minmax: New module.
43438         * MODULES.html.sh (func_all_modules): Add it.
43439
43440 2003-01-23  Bruno Haible  <bruno@clisp.org>
43441
43442         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
43443         Eggert.
43444
43445 2003-01-22  Bruno Haible  <bruno@clisp.org>
43446
43447         * modules/exit: New module.
43448         * MODULES.html.sh (func_all_modules): Add it.
43449
43450 2003-01-22  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/exit.h: New file, from GNU gettext.
43453
43454 2003-01-19  Bruno Haible  <bruno@clisp.org>
43455
43456         * gnulib-tool: Recognize option --extract-maintainer.
43457         (func_get_maintainer): New function.
43458         * modules/*: Add Maintainer entry.
43459
43460 2003-01-16  Jim Meyering  <jim@meyering.net>
43461
43462         * m4/regex.m4: The `regex' struct is both input and output.
43463         Initialize it before each use.  Patch by Tim Waugh.
43464
43465 2003-01-16  Bruno Haible  <bruno@clisp.org>
43466
43467         * MODULES.html.sh: Add a table of contents. Add the module name as
43468         leftmost column. Add hyperlinks.
43469
43470 2003-01-15  Bruno Haible  <bruno@clisp.org>
43471
43472         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
43473
43474 2003-01-15  Bruno Haible  <bruno@clisp.org>
43475
43476         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
43477         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
43478         suffix.
43479
43480 2003-01-15  Bruno Haible  <bruno@clisp.org>
43481
43482         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
43483
43484 2003-01-15  Bruno Haible  <bruno@clisp.org>
43485
43486         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
43487         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
43488
43489 2003-01-14  Jim Meyering  <jim@meyering.net>
43490
43491         * lib/same.c (same_name): Tweak a comment.
43492
43493 2003-01-14  Bruno Haible  <bruno@clisp.org>
43494
43495         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
43496         when a string comparison is sufficient.
43497
43498 2003-01-14  Bruno Haible  <bruno@clisp.org>
43499
43500         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
43501         'unsigned int'.
43502
43503 2003-01-14  Bruno Haible  <bruno@clisp.org>
43504
43505         * lib/hash-pjw.c: Add comment about low quality of this function.
43506
43507 2003-01-13  Bruno Haible  <bruno@clisp.org>
43508
43509         * modules/stpcpy: Distribute lib/stpcpy.h.
43510         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
43511
43512 2003-01-13  Bruno Haible  <bruno@clisp.org>
43513
43514         * modules/*: Add a description.
43515         * modules/strpbrk: Fix Makefile.am snippet.
43516         * modules/strtoimax: Fix dependencies.
43517         * modules/strtoumax: Likewise.
43518
43519 2003-01-13  Bruno Haible  <bruno@clisp.org>
43520
43521         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
43522         * modules/alloca (Makefile.am): All object files depend on alloca.h.
43523         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
43524
43525 2003-01-13  Bruno Haible  <bruno@clisp.org>
43526
43527         * gnulib-tool (func_create_testdir): Store config/* files in the main
43528         directory.
43529         * config.rpath: Move to ...
43530         * config/config.rpath: ... here.
43531         * modules/gettext: Contains config/config.rpath, not config.rpath.
43532         * modules/iconv: Likewise.
43533
43534 2003-01-12  Paul Eggert  <eggert@twinsun.com>
43535
43536         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
43537         to avoid collisions with libcurses and libreadline.
43538
43539         * m4/getstr.m4: Remove.
43540         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
43541
43542 2003-01-12  Paul Eggert  <eggert@twinsun.com>
43543
43544         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
43545         to avoid collisions with libcurses and libreadline.
43546
43547         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
43548         * lib/getstr.h, getstr.c: Remove.
43549         * lib/getline.c: Include "getline.h", to check interface.
43550         Move body of old getstr.c here: this defines MIN_CHUNK and
43551         declares getdelim2, which is renamed from getstr.
43552         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
43553
43554         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
43555         All uses changed.
43556         * lib/linebuffer.h: Likewise.
43557         (readline): Remove backward-compatibility macro.
43558
43559 2003-01-12  Paul Eggert  <eggert@twinsun.com>
43560
43561         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
43562         to avoid collisions with libcurses and libreadline.
43563         * getstr: Remove.
43564         * MODULES.html.sh: Remove getstr.
43565         * modules/getline: Depend on unlocked-io, not getstr.
43566
43567 2003-01-12  Jim Meyering  <jim@meyering.net>
43568
43569         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
43570
43571 2003-01-10  Bruno Haible  <bruno@clisp.org>
43572
43573         * modules/alloca: Change Makefile.am requirements. Simplify Include
43574         requirements. Add lib/alloca_.h to file list.
43575
43576 2003-01-10  Bruno Haible  <bruno@clisp.org>
43577
43578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
43579
43580 2003-01-10  Bruno Haible  <bruno@clisp.org>
43581
43582         * lib/alloca_.h: New file.
43583         * lib/getdate.y: Unconditionally include alloca.h.
43584         * lib/makepath.c: Likewise.
43585         * lib/setenv.c: Likewise.
43586         * lib/userspec.c: Likewise.
43587
43588 2003-01-09  Karl Berry  <karl@gnu.org>
43589
43590         * MODULES.html.sh: include `dirname $0` in PATH, to find
43591         gnulib-tool.
43592
43593 2003-01-09  Bruno Haible  <bruno@clisp.org>
43594
43595         * modules/stdbool: Change configure.ac, Makefile.am requirements.
43596         Simplify Include requirements. Add lib/stdbool.h.in to file list.
43597
43598 2003-01-09  Bruno Haible  <bruno@clisp.org>
43599
43600         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
43601
43602 2003-01-09  Bruno Haible  <bruno@clisp.org>
43603
43604         * lib/stdbool.h.in: New file.
43605
43606 2003-01-09  Bruno Haible  <bruno@clisp.org>
43607
43608         * gnulib-tool (func_all_modules): Ignore files ending in ~.
43609         * MODULES.html.sh: Likewise.
43610
43611 2003-01-08  Jim Meyering  <jim@meyering.net>
43612
43613         * lib/full-write.c: Undefine and define-away `const' after inclusion
43614         of errno.h, not before.  Suggestion from Bruno Haible.
43615
43616 2003-01-08  Bruno Haible  <bruno@clisp.org>
43617
43618         * modules/full-read: Depend on full-write.
43619
43620 2003-01-08  Bruno Haible  <bruno@clisp.org>
43621
43622         * lib/safe-read.c: Include specification header first, to ensure its
43623         selfcontainedness.
43624         * lib/full-write.c: Likewise.
43625
43626 2003-01-07  Jim Meyering  <jim@meyering.net>
43627
43628         * lib/full-write.c: Rework so that it may serve to define full_read,
43629         too.
43630         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
43631
43632 2003-01-07  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/strtoimax.c: Include <stdint.h> as an alternative to
43635         <inttypes.h>.
43636         * lib/xstrtol.h: Likewise.
43637         * lib/xstrtoimax.c: Likewise.
43638         * lib/xstrtoumax.c: Likewise.
43639         * lib/human.h: Likewise.
43640
43641         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
43642         on systems that have <inttypes.h> but not <stdint.h>.
43643
43644 2003-01-07  Bruno Haible  <bruno@clisp.org>
43645
43646         * MODULES.html.sh: Add copyright notice.
43647         (missed_files): Omit CVS directory entries.
43648         (func_module): Make it work with sed-3.02.
43649         * MODULES.txt: Remove file.
43650
43651 2003-01-06  Jim Meyering  <jim@meyering.net>
43652
43653         * lib/version-etc.c: Update year in translatable copyright string.
43654
43655 2003-01-03  Karl Berry  <karl@gnu.org>
43656
43657         * config/config.{guess,sub}: update from prep.
43658
43659 2003-01-02  Karl Berry  <karl@gnu.org>
43660
43661         * doc/COPYING.DOC: belatedly updated to 1.2.
43662
43663 2003-01-01  Karl Berry  <karl@gnu.org>
43664
43665         * gnulib-tool (func_verify_module): report module name $module in
43666         error message, not $1.
43667         * gnulib-tool (create-testdir): don't complain if destdir couldn't
43668         be created, only if it doesn't exist.
43669         * gnulib-tool (last_checkin_date): don't expand the $Date here.
43670
43671 2002-12-31  Paul Eggert  <eggert@twinsun.com>
43672
43673         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
43674
43675 2002-12-31  Paul Eggert  <eggert@twinsun.com>
43676
43677         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
43678         memcmp if strcoll doesn't work.
43679
43680 2002-12-31  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/utime.c (utime_null): No need to call ftruncate if the file was
43683         nonempty.
43684
43685 2002-12-31  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/memcoll.c (STRCOLL): New macro.
43688         (memcoll): Use it.
43689
43690 2002-12-31  Bruno Haible  <bruno@clisp.org>
43691
43692         * lib/localcharset.h: New file.
43693         * lib/localcharset.c: Include it.
43694         * lib/unicodeio.c: Likewise.
43695
43696 2002-12-31  Bruno Haible  <bruno@clisp.org>
43697
43698         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
43699         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
43700
43701 2002-12-31  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/getline.h: Include <stddef.h>, for size_t.
43704
43705         * lib/unicodeio.h: Include <stddef.h>, for size_t.
43706         * lib/unicodeio.c: Don't include <stddef.h>.
43707
43708 2002-12-31  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
43711         HAVE_TM_ZONE.
43712
43713 2002-12-24  Karl Berry  <karl@gnu.org>
43714
43715         * config/config.guess: update from prep.
43716
43717 2002-12-24  Bruno Haible  <bruno@clisp.org>
43718
43719         General infrasructure.
43720         * m4/README: Rewritten.
43721         * m4/onceonly.m4: New file.
43722         * m4/onceonly_2_57.m4: New file.
43723
43724         Module atexit.
43725         * m4/atexit.m4: New file.
43726
43727         Module strtod.
43728         * m4/strtod.m4: New file.
43729
43730         Module strtol.
43731         * m4/strtol.m4: New file.
43732
43733         Module strtoul.
43734         * m4/strtoul.m4: New file.
43735
43736         Module memchr.
43737         * m4/memchr.m4: New file.
43738
43739         Module memcmp.
43740         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
43741         (jm_FUNC_MEMCMP): Invoke it.
43742
43743         Module memcpy.
43744         * m4/memcpy.m4: New file.
43745
43746         Module memmove.
43747         * m4/memmove.m4: New file.
43748
43749         Module memset.
43750         * m4/memset.m4: New file.
43751
43752         Module strcspn.
43753         * m4/strcspn.m4: New file.
43754
43755         Module strpbrk.
43756         * m4/strpbrk.m4: New file.
43757
43758         Module strstr.
43759         * m4/strstr.m4: New file.
43760
43761         Module strerror.
43762         * m4/strerror.m4: New file.
43763
43764         Module mktime.
43765         * m4/mktime.m4: Renamed from jm-mktime.m4.
43766         (gl_PREREQ_MKTIME): New macro.
43767         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
43768
43769         Module malloc.
43770         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
43771         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
43772         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
43773
43774         Module realloc.
43775         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
43776         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
43777         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
43778
43779         Module strftime.
43780         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
43781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
43782         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
43783         gl_TM_GMTOFF.
43784         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
43785
43786         Module xalloc.
43787         * m4/xalloc.m4: New file.
43788
43789         Module alloca.
43790         * m4/alloca.m4: New file.
43791
43792         Module putenv.
43793         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
43794         (jm_FUNC_PUTENV): Invoke it.
43795
43796         Module setenv.
43797         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
43798         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
43799         when invoked twice.
43800         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
43801         gt_FUNC_SETENV.
43802
43803         Module memrchr.
43804         * m4/memrchr.m4: New file.
43805
43806         Module stpcpy.
43807         * m4/stpcpy.m4: New file.
43808
43809         Module strcase.
43810         * m4/strcase.m4: New file.
43811
43812         Module strdup.
43813         * m4/strdup.m4: New file.
43814
43815         Module strnlen.
43816         * m4/strnlen.m4: New file.
43817
43818         Module strndup.
43819         * m4/strndup.m4: New file.
43820
43821         Module xstrtod.
43822         * m4/xstrtod.m4: New file.
43823
43824         Module xstrtol.
43825         * m4/xstrtol.m4: New file.
43826
43827         Module getdate.
43828         * m4/getdate.m4: New file.
43829
43830         Module unlocked-io.
43831         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
43832         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
43833         * m4/jm-glibc-io.m4n: Remove file.
43834
43835         Module long-options.
43836         * m4/long-options.m4: New file.
43837
43838         Module md5.
43839         * m4/md5.m4: New file.
43840
43841         Module sha.
43842         * m4/sha.m4: New file.
43843
43844         Module getstr.
43845         * m4/getstr.m4: New file.
43846
43847         Module getline.
43848         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
43849         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
43850         <sys/types.h>, for size_t. Use the function name gnu_getline, not
43851         simply getline. Infoke gl_PREREQ_GETLINE.
43852
43853         Module obstack.
43854         * m4/obstack.m4: New file.
43855
43856         Module hash.
43857         * m4/hash.m4: New file.
43858
43859         Module readtokens.
43860         * m4/readtokens.m4: New file.
43861
43862         Module strverscmp.
43863         * m4/strverscmp.m4: New file.
43864
43865         Module stdbool.
43866         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
43867         OSF/1.
43868
43869         Module strtoll.
43870         * m4/strtoll.m4: New file.
43871
43872         Module strtoull.
43873         * m4/strtoull.m4: New file.
43874
43875         Module strtoimax.
43876         * m4/strtoimax.m4: New file.
43877
43878         Module strtoumax.
43879         * m4/strtoumax.m4: New file.
43880
43881         Module xstrtoimax.
43882         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
43883         jm_AC_PREREQ_XSTRTOIMAX.
43884         Moved the strtol prerequisites to strtol.m4.
43885         Moved the strtoll prerequisites to strtoll.m4.
43886         Moved the strtoimax prerequisites to strtoimax.m4.
43887
43888         Module xstrtoumax.
43889         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
43890         jm_AC_PREREQ_XSTRTOUMAX.
43891         Moved the strtoul prerequisites to strtoul.m4.
43892         Moved the strtoull prerequisites to strtoull.m4.
43893         Moved the strtoumax prerequisites to strtoumax.m4.
43894
43895         Module chown.
43896         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
43897         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
43898
43899         Module dup2.
43900         * m4/dup2.m4: New file.
43901
43902         Module ftruncate.
43903         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
43904         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
43905
43906         Module getgroups.
43907         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
43908         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
43909
43910         Module gettimeofday.
43911         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
43912         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
43913         gl_PREREQ_GETTIMEOFDAY.
43914
43915         Module mkdir.
43916         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
43917         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
43918
43919         Module mkstemp.
43920         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
43921         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
43922         jm_AC_TYPE_UINTMAX_T.
43923         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
43924
43925         Module stat.
43926         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
43927         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
43928
43929         Module lstat.
43930         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
43931         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
43932
43933         Module timespec.
43934         * m4/timespec.m4 (gl_TIMESPEC): New macro.
43935         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
43936         * m4/st_mtim.m4: Indentation.
43937
43938         Module nanosleep.
43939         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
43940         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
43941         gl_PREREQ_NANOSLEEP.
43942
43943         Module regex.
43944         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
43945         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
43946         (gl_REGEX): New macro.
43947
43948         Module rename.
43949         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
43950         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
43951
43952         Module rmdir.
43953         * m4/rmdir.m4: New file.
43954
43955         Module utime.
43956         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
43957         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
43958         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
43959
43960         Module dirname.
43961         * m4/dirname.m4: New file.
43962
43963         Module getopt.
43964         * m4/getopt.m4: New file.
43965
43966         Module unistd-safer.
43967         * m4/unistd-safer.m4: New file.
43968
43969         Module fnmatch.
43970         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
43971         declaration.
43972         (gl_PREREQ_FNMATCH_EXTRA): New macro.
43973         (gl_FUNC_FNMATCH_POSIX): New macro.
43974         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
43975         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
43976         simply fnmatch.
43977
43978         Module exclude.
43979         * m4/exclude.m4: New file.
43980
43981         Module human.
43982         * m4/human.m4: New file.
43983
43984         Module acl.
43985         * m4/acl.m4: Nop.
43986
43987         Module backupfile.
43988         * m4/backupfile.m4: New file.
43989         * m4/d-ino.m4: Indentation.
43990
43991         Module fsusage.
43992         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
43993         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
43994         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
43995
43996         Module dirfd.
43997         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
43998         requirements.
43999
44000         Module euidaccess.
44001         * m4/euidaccess.m4: New file.
44002
44003         Module file-type.
44004         * m4/file-type.m4: New file.
44005
44006         Module fileblocks.
44007         * m4/fileblocks.m4: New file.
44008
44009         Module filemode.
44010         * m4/filemode.m4: New file.
44011
44012         Module isdir.
44013         * m4/isdir.m4: New file.
44014
44015         Module lchown.
44016         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
44017         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
44018
44019         Module makepath.
44020         * m4/makepath.m4: New file.
44021
44022         Module modechange.
44023         * m4/modechange.m4: New file.
44024
44025         Module mountlist.
44026         * m4/mountlist.m4: New file.
44027         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
44028         Indentation.
44029
44030         Module path-concat.
44031         * m4/path-concat.m4: New file.
44032
44033         Module pathmax.
44034         * m4/pathmax.m4: New file.
44035
44036         Module same.
44037         * m4/same.m4: New file.
44038
44039         Module save-cwd.
44040         * m4/save-cwd.m4: New file.
44041
44042         Module savedir.
44043         * m4/savedir.m4: New file.
44044
44045         Module xgetcwd.
44046         * m4/xgetcwd.m4: New file.
44047         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
44048
44049         Module xreadlink.
44050         * m4/xreadlink.m4: New file.
44051
44052         Module safe-read.
44053         * m4/safe-read.m4: New file.
44054
44055         Module safe-write.
44056         * m4/safe-write.m4: New file.
44057
44058         Module closeout.
44059         * m4/closeout.m4: New file.
44060
44061         Module stdio-safer.
44062         * m4/stdio-safer.m4: New file.
44063
44064         Module getpass.
44065         * m4/getpass.m4: New file.
44066
44067         Module getugroups.
44068         * m4/getugroups.m4: New file.
44069
44070         Module group-member.
44071         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
44072         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
44073
44074         Module idcache.
44075         * m4/idcache.m4: New file.
44076
44077         Module userspec.
44078         * m4/userspec.m4: New file.
44079
44080         Module gettime.
44081         * m4/clock_time.m4: New file.
44082         * m4/gettime.m4: New file.
44083
44084         Module settime.
44085         * m4/settime.m4: New file.
44086
44087         Module posixtm.
44088         * m4/posixtm.m4: New file.
44089
44090         Module gethostname.
44091         * m4/gethostname.m4: New file.
44092
44093         Module canon-host.
44094         * m4/canon-host.m4: New file.
44095
44096         Module gettext.
44097         * m4/codeset.m4: New file, from gettext-0.11.5.
44098         * m4/gettext.m4: New file, from gettext-0.11.5.
44099         * m4/glibc21.m4: New file, from gettext-0.11.5.
44100         * m4/iconv.m4: New file, from gettext-0.11.5.
44101         * m4/intdiv0.m4: New file, from gettext-0.11.5.
44102         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
44103         * m4/inttypes.m4: New file, from gettext-0.11.5.
44104         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
44105         * m4/isc-posix.m4: New file, from gettext-0.11.5.
44106         * m4/lcmessage.m4: New file, from gettext-0.11.5.
44107         * m4/lib-ld.m4: New file, from gettext-0.11.5.
44108         * m4/lib-link.m4: New file, from gettext-0.11.5.
44109         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
44110         * m4/progtest.m4: New file, from gettext-0.11.5.
44111         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
44112         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
44113         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
44114
44115         Module localcharset.
44116         * m4/localcharset.m4: New file.
44117
44118         Module hard-locale.
44119         * m4/hard-locale.m4: New file.
44120
44121         Module mbswidth.
44122         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
44123         onceonly macros.
44124         * m4/mbrtowc.m4: Add comment.
44125
44126         Module memcasecmp.
44127         * m4/memcasecmp.m4: New file.
44128
44129         Module memcoll.
44130         * m4/memcoll.m4: New file.
44131
44132         Module unicodeio.
44133         * m4/unicodeio.m4: New file.
44134
44135         Module rpmatch.
44136         * m4/rpmatch.m4: New file.
44137
44138         Module yesno.
44139         * m4/yesno.m4: New file.
44140
44141         Module exitfail.
44142         * m4/exitfail.m4: New file.
44143
44144         Module c-stack.
44145         * m4/c-stack.m4 (gl_C_STACK): New macro.
44146         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
44147
44148         Module error.
44149         * m4/error.m4 (gl_ERROR): New macro.
44150         (jm_PREREQ_ERROR): Use onceonly macros.
44151
44152         Module fatal.
44153         * m4/fatal.m4: New file.
44154
44155         Module getloadavg.
44156         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
44157         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
44158
44159         Module getpagesize.
44160         * m4/getpagesize.m4: New file.
44161
44162         Module getusershell.
44163         * m4/getusershell.m4: New file.
44164
44165         Module physmem.
44166         * m4/physmem.m4: New file.
44167
44168         Module posixver.
44169         * m4/posixver.m4: New file.
44170
44171         Module quotearg.
44172         * m4/quotearg.m4: New file.
44173
44174         Module quote.
44175         * m4/quote.m4: New file.
44176
44177         Module readutmp.
44178         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
44179
44180         Module sig2str.
44181         * m4/sig2str.m4: New file.
44182
44183         Other.
44184         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
44185         ulonglong.m4.
44186         * m4/intmax_t.m4: New file.
44187         * m4/d-type.m4: Indentation.
44188         * m4/jm-macros.m4: Update.
44189         * m4/prereq.m4 (jm_PREREQ): Update.
44190         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
44191         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
44192         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
44193         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
44194         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
44195         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
44196         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
44197         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
44198         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
44199         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
44200         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
44201         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
44202         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
44203         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
44204         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
44205         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
44206         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
44207         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
44208         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
44209
44210 2002-12-24  Bruno Haible  <bruno@clisp.org>
44211
44212         * MODULES.txt: Update according to m4/ changes.
44213
44214         Module gettext.
44215         * config.rpath: New file, from gettext-0.11.5.
44216
44217         * modules/*: New module descriptions.
44218         * gnulib-tool: New file.
44219         * MODULES.html.sh: New file.
44220
44221 2002-12-21  Karl Berry  <karl@gnu.org>
44222
44223         * doc/fdl.texi: update to version 1.2.
44224
44225 2002-12-19  Karl Berry  <karl@gnu.org>
44226
44227         * config/config.guess: update from prep.
44228
44229 2002-12-18  Bruno Haible  <bruno@clisp.org>
44230
44231         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
44232         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
44233
44234 2002-12-17  Bruno Haible  <bruno@clisp.org>
44235
44236         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
44237         stdlib.h, string.h.
44238
44239 2002-12-17  Bruno Haible  <bruno@clisp.org>
44240
44241         * lib/canon-host.c (strdup): Remove unused declaration.
44242
44243         * lib/fsusage.c: Include full_read.h.
44244         (get_fs_usage): Use full_read instead of safe_read.
44245
44246         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
44247
44248 2002-12-12  Karl Berry  <karl@gnu.org>
44249
44250         * config/config.guess: update from prep.
44251
44252 2002-12-11  Bruno Haible  <bruno@clisp.org>
44253
44254         * m4/setenv.m4: New file, from gettext-0.11.5.
44255
44256 2002-12-11  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
44259         not unsetenv().
44260         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
44261         modifications:
44262
44263         2002-12-11  Bruno Haible  <bruno@clisp.org>
44264
44265                 * setenv.c (alloca): Fall back to malloc.
44266                 (freea): New macro.
44267                 (setenv): Use freea() to free memory allocated with alloca().
44268
44269         2002-11-13  Bruno Haible  <bruno@clisp.org>
44270
44271                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
44272                 function declarations.
44273                 * unsetenv.c (unsetenv): Likewise.
44274
44275         2002-03-04  Bruno Haible  <bruno@clisp.org>
44276
44277                 Portability to AIX 4.3.3.
44278                 * unsetenv.c: New file, extracted from setenv.c.
44279                 * setenv.c: Move the unsetenv() function to unsetenv.c.
44280
44281         2001-12-20  Bruno Haible  <bruno@clisp.org>
44282
44283                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
44284                 use malloc instead. For SunOS 4.
44285
44286         2001-12-11  Bruno Haible  <bruno@clisp.org>
44287
44288                 * setenv.c: Declare alloca.
44289                 (compar_fn_t): New typedef.
44290                 (KNOWN_VALUE, STORE_VALUE): Use it.
44291
44292         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
44293         setenv.h.
44294
44295 2002-12-10  Paul Eggert  <eggert@twinsun.com>
44296
44297         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
44298         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
44299         Choose values that are less likely to collide with system fnmatch
44300         options.
44301         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
44302         defined (e.g., a pure POSIX system).
44303         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
44304         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
44305
44306 2002-12-06  Paul Eggert  <eggert@twinsun.com>
44307
44308         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
44309         a pain in practice to deal with generated m4 files.  This change
44310         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
44311
44312         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
44313         and jm-glibc-io.m4, as they are no longer a special case.
44314         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
44315         kludge and the auto-generation stuff.  Check only whether the
44316         functions are declared, not whether they exist, since older hosts
44317         that don't declare the functions can't use the optimization anyway.
44318
44319 2002-12-06  Jim Meyering  <jim@meyering.net>
44320
44321         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
44322
44323         Merge in changes from libc's misc/error.c, in preparation
44324         for the merge of gnulib's changes back into libc.
44325
44326         * lib/error.c (_): Define only if not already defined.
44327         Move definition to follow all #include directives.
44328         Include unlocked-io.h only if !_LIBC.
44329         [_LIBC]: Include <libio/libioP.h>.
44330         [USE_IN_LIBIO]: Include <libio/iolibio.h>
44331         (fflush): Tweak definition to use INTUSE.
44332         (putc): Define.
44333
44334 2002-12-05  Paul Eggert  <eggert@twinsun.com>
44335
44336         * lib/alloca.c [defined emacs]: Include "lisp.h".
44337         (xalloc_die) [defined emacs]: New macro.
44338         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
44339         [! defined emacs]: Include <xalloc.h>.
44340         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
44341         (pointer): Typedef to POINTER_TYPE *.
44342         (malloc): Remove decl; we now always use xmalloc.
44343         (alloca): Use old-style definition, since Emacs needs this.
44344         Check for arithmetic overflow when computing combined size.
44345
44346 2002-12-04  Paul Eggert  <eggert@twinsun.com>
44347
44348         Do not generate unlocked-io.h automatically, since it's easier to
44349         maintain it by hand.
44350
44351         * lib/unlocked-io.h: New file, from GNU diffutils,
44352         but with proper copyright notice and attribution.
44353         * lib/gen-uio: Remove.
44354         * lib/Makefile.am: Add copyright notice.
44355         (libfetish_a_SOURCES): Add unlocked-io.h.
44356         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
44357         (DISTCLEANFILES, io_functions): Remove macros.
44358         (EXTRA_DIST): Remove gen_uio.
44359         (unlocked-io.h): Remove rule.
44360
44361 2002-12-04  Jim Meyering  <jim@meyering.net>
44362
44363         Reflect the fact that stat.c and lstat.c are no longer generated.
44364         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
44365         (DISTCLEANFILES): Likewise.
44366         (EXTRA_DIST): Likewise.
44367         (all_local): Don't depend on stat.c or lstat.c.
44368         (stat.c, lstat.c): Remove rules.
44369         (EXTRA_DIST): Remove xstat.in.
44370
44371         * lib/xstat.in: Remove file.  Contents moved into stat.c.
44372         * lib/stat.c: New file.  Contents mostly from xstat.in.
44373         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
44374         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
44375
44376         * lib/safe-read.c: Rework so that it may serve to define safe_write,
44377         too.
44378         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
44379
44380 2002-12-03  Jim Meyering  <jim@meyering.net>
44381
44382         * lib/safe-read.c, safe-write.c: Change variable names and comments,
44383         but not semantics, to minimize the differences between these two files.
44384         (safe_read): Change comment to mention SAFE_READ_ERROR.
44385
44386         * lib/safe-read.c (IS_EINTR): Define.
44387         (safe_read): Use IS_EINTR in place of in-function cpp directives.
44388
44389 2002-12-02  Jim Meyering  <jim@meyering.net>
44390
44391         * lib/safe-read.c (EINTR): Define.
44392         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
44393         (INT_MAX): Provide fallback.
44394         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
44395
44396         * lib/safe-read.h (SAFE_READ_ERROR): Define.
44397
44398 2002-12-02  Bruno Haible  <bruno@clisp.org>
44399
44400         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
44401         Define, taken from safe-read.c.
44402         (INT_MAX): Provide fallback.
44403         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
44404         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
44405
44406         * lib/safe-read.c (EINTR): Remove definition.
44407         (safe_read): Don't use EINTR if it is absent.
44408
44409 2002-12-01  Jim Meyering  <jim@meyering.net>
44410
44411         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
44412         zero.
44413         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
44414
44415 2002-11-27  Paul Eggert  <eggert@twinsun.com>
44416
44417         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
44418         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
44419         with `if (! (value < limit)) abort ();', for readability.
44420
44421 2002-11-26  Karl Berry  <karl@gnu.org>
44422
44423         * lib/strdup.c: copy from libc again, with jim's ok.
44424         * lib/.cppi-disable: re-add strdup.c
44425
44426 2002-11-25  Karl Berry  <karl@gnu.org>
44427
44428         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
44429         instead of "strtol.c".
44430
44431 2002-11-25  Karl Berry  <karl@gnu.org>
44432
44433         * config/install-sh: update from automake for variable quoting, $0 in
44434         error msgs, etc.
44435
44436         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
44437         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
44438         entry.
44439
44440 2002-11-25  Jim Meyering  <jim@meyering.net>
44441
44442         * lib/mktime.c: Sync from libc, now that it has the latest fix.
44443
44444 2002-11-24  Karl Berry  <karl@gnu.org>
44445
44446         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
44447         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
44448
44449 2002-11-24  Jim Meyering  <jim@meyering.net>
44450
44451         Update from coreutils:
44452
44453         * lib/mktime.c: Merge in changes from libc.
44454
44455         Avoid a link-time failure on some Linux systems.
44456         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
44457         (otherwise).
44458         (__mon_yday): Declare with the STATIC attribute.
44459         (__mktime_internal): Likewise.
44460         Based on a report from Greg Schafer.
44461
44462 2002-11-23  Jim Meyering  <jim@meyering.net>
44463
44464         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
44465         Use `unsigned', not `int', as type of index.
44466
44467         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
44468
44469         * lib/fsusage.c: Remove unneeded parentheses around operands of
44470         `defined'.
44471
44472 2002-11-22  Paul Eggert  <eggert@twinsun.com>
44473
44474         * lib/quotearg.h: Allow multiple inclusion by surrounding with
44475         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
44476         so that we can be included first.
44477         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
44478         * lib/quotearg.c: Include quotearg.h immediately after config.h.
44479         No need to include stddef.h or sys/types.h any more.
44480         Surround local include files with "", not "<>".
44481         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
44482         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
44483         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
44484         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
44485         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
44486         (ISPRINT): Remove; no longer needed now that we assume C89.
44487
44488         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
44489         Preserve errno.
44490
44491         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
44492         quotearg_char): Use SIZE_MAX rather than
44493         (size_t) -1 when we are talking about "infinity".
44494
44495         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
44496
44497 2002-11-22  Paul Eggert  <eggert@twinsun.com>
44498
44499         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
44500         hint that one should use `if (! x) abort ();' rather than `assert
44501         (x);', and anyway it's one less thing to worry about configuring.
44502         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
44503         hash_rehash, hash_insert): Use abort rather than assert.
44504
44505 2002-11-22  Bruno Haible  <bruno@clisp.org>
44506
44507         * lib/safe-read.h: Assume C89. Add comments.
44508         (safe_read): Change return type to size_t.
44509         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
44510         byte counts > SSIZE_MAX correctly.
44511         * lib/safe-write.h: New file.
44512         * lib/safe-write.c: New file.
44513         * lib/full-read.h: New file.
44514         * lib/full-read.c: New file.
44515         * lib/full-write.h: Assume C89. Add comments.
44516         * lib/full-write.c: Include safe-write.h.
44517         (full_write): Rewritten to use safe_write.
44518         Suggested by Jim Meyering and Paul Eggert.
44519
44520 2002-11-21  Jim Meyering  <jim@meyering.net>
44521
44522         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
44523
44524         Merge in changes from the coreutils.
44525
44526         2002-09-25  Paul Eggert  <eggert@twinsun.com>
44527         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
44528         <stdint.h>.
44529         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
44530         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
44531         int.  Work more efficiently if X is the same width as uintmax_t.
44532         Do not compare X to -1, to avoid bogus compiler warning.
44533         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
44534         Don't assume that f_frsize and f_bsize are the same type.
44535
44536         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
44537         warning on FreeBSD.
44538
44539         * lib/makepath.c (make_path): Restore umask *before* creating the final
44540         component.
44541         (make_path): Minor reformatting.
44542
44543         * lib/xmalloc.c: Adjust to work with new autoconf macros,
44544         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
44545         HAVE_MALLOC/HAVE_REALLOC.
44546
44547         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
44548         dummy ones.  At least on GNU/Linux systems, `auto' means something
44549         else.
44550         From Michael Stone.
44551
44552 2002-11-21  Bruno Haible  <bruno@clisp.org>
44553
44554         Remove case insensitive option matching.
44555         * lib/argmatch.h (argcasematch): Remove declaration.
44556         (ARGCASEMATCH): Remove macro.
44557         (__xargmatch_internal): Remove case_sensitive argument.
44558         (XARGMATCH): Update.
44559         (XARGCASEMATCH): Remove macro.
44560         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
44561         case_sensitive argument.
44562         (argcasematch): Remove function.
44563         (__xargmatch_internal): Remove case_sensitive argument.
44564         (main): Use XARGMATCH instead of XARGCASEMATCH.
44565
44566         * lib/xmalloc.c: Change compile-time error message. Add comment about
44567         required autoconf version.
44568
44569 2002-11-20  Paul Eggert  <eggert@twinsun.com>
44570
44571         Merge argmatch cleanups from Bison.  Assume C89.
44572
44573         * lib/argmatch.c: Include config.h here, not in argmatch.h.
44574         Include stdlib.h, for EXIT_FAILURE.
44575         Always include <string.h>, since we assume C89.
44576         (EXIT_FAILURE): Remove pre-C89 bug workaround.
44577         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
44578         Include <stddef.h> instead, since it's all we need for size_t.
44579         (PARAMS): Remove.  All uses removed.
44580         (ARRAY_CARDINALITY): Do not bother to #undef.
44581         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
44582         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
44583         Remove unnecessary parentheses.
44584         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
44585         Insert necessary parentheses.
44586         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
44587         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
44588
44589 2002-11-19  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
44592         * lib/mbswidth.h: Include <stddef.h>, for size_t.
44593
44594         * lib/mbswidth.h (PARAMS): Remove macro.
44595         (mbswidth, mbsnwidth): Use ANSI C function declarations.
44596         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
44597
44598         * lib/gcd.h (PARAMS): Remove macro.
44599         (gcd): Use ANSI C function declarations.
44600         * lib/gcd.c (gcd): Likewise.
44601
44602 2002-11-15  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/strcspn.c: Include <stddef.h>.
44605         (strcspn): Use ANSI C function declaration. Change return type to
44606         size_t. Use NULL.
44607         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
44608         (strpbrk): Use NULL.
44609         * lib/strpbrk.h (PARAMS): Remove macro.
44610         (strpbrk): Use ANSI C function declaration.
44611         * lib/strstr.c: Don't include <sys/types.h>.
44612         * lib/strstr.h (PARAMS): Remove macro.
44613         (strstr): Use ANSI C function declarations.
44614
44615 2002-11-14  Karl Berry  <karl@gnu.org>
44616
44617         * config/mkinstalldirs: `do' on separate line, instead of
44618         `for var; do'.
44619
44620 2002-11-06  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
44623         * lib/gcd.c (gcd): Likewise.
44624
44625 2002-11-05  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/gcd.h: New file, from gettext-0.11.5.
44628         * lib/gcd.c: New file, from gettext-0.11.5.
44629
44630 2002-11-05  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
44633         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
44634         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
44635         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
44636
44637         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
44638         <libintl.h>.
44639         * lib/makepath.c: Include gettext.h instead of <locale.h> and
44640         <libintl.h>.
44641
44642         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
44643         * lib/human.c: Include gettext.h instead of <libintl.h>.
44644         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
44645         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
44646         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
44647         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
44648         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
44649         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
44650         (textdomain): Remove definition.
44651         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
44652
44653         * lib/long-options.c: Remove include of <libintl.h> and definition of
44654         _.
44655         * lib/same.c: Remove include of <libintl.h> and definition of _.
44656
44657 2002-11-04  Owen Taylor  <otaylor@redhat.com>
44658
44659         * lib/config.charset: A few additions for Solaris.
44660
44661 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
44662
44663         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
44664         * lib/localcharset.c (locale_charset): Declare as extern "C".
44665
44666 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
44667
44668         * lib/config.charset: msdos in uk_UA uses CP1125.
44669
44670 2002-11-04  Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
44673         * lib/strcase.h: New file, from GNU gettext-0.11.5.
44674         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
44675         * lib/strstr.h: New file, from GNU gettext-0.11.5.
44676         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
44677
44678 2002-11-04  Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/localcharset.c (locale_charset): Don't return an empty string.
44681
44682 2002-11-04  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
44685         aliases.
44686
44687 2002-11-04  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/config.charset: Update for newest glibc. Add canonical names
44690         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
44691
44692 2002-11-04  Bruno Haible  <bruno@clisp.org>
44693
44694         * lib/config.charset: Add support for NetBSD.
44695
44696 2002-11-04  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
44699
44700 2002-11-01  Bruno Haible  <bruno@clisp.org>
44701
44702         * configure.in: Add AC_CONFIG_AUX_DIR call.
44703         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
44704         test/Makefile.
44705         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
44706
44707 2002-09-28  Karl Berry  <karl@gnu.org>
44708
44709         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
44710         installed automake until the next release, since changes have been
44711         made.
44712
44713 2002-09-25  Karl Berry  <karl@gnu.org>
44714
44715         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
44716         * lib/getopt*: copy from libc/posix.
44717         * lib/gettext.h: copy from gettext.
44718         * lib/.cppi-disable: add strdup.c, gettext.h.
44719
44720 2002-09-25  Karl Berry  <karl@gnu.org>
44721
44722         * config/srclist.txt: enable gettext.h check.
44723         * config/config.{guess,sub}: update from prep.
44724         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
44725                 from automake 1.6.3.
44726         See srclist*.
44727
44728 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
44729
44730         * regex.c (PATFETCH): Remove the translating fetch.
44731         (PATFETCH_RAW): Rename to PATFETCH.
44732         (set_image_of_range): New fun.
44733         (SET_RANGE_TABLE_WORK_AREA): Use it.
44734         (regex_compile): Don't translate the pattern chars so eagerly.
44735         Only do it when inserting an `exactn' bytecode or when handling
44736         a char-range.
44737         (mutually_exclusive_p): Avoid empty statement.
44738
44739 2002-07-06  Jim Meyering  <meyering@lucent.com>
44740
44741         * m4/README: Don't mention Makefile.am.in.
44742         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
44743
44744 2002-07-01  Jim Meyering  <meyering@lucent.com>
44745
44746         * lib/c-stack.c: Include sys/time.h.
44747         From Volker Borchert.
44748
44749 2002-06-26  Paul Eggert  <eggert@twinsun.com>
44750
44751         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
44752
44753 2002-06-26  Paul Eggert  <eggert@twinsun.com>
44754
44755         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
44756         New macro.  Use it uniformly instead of
44757         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
44758         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
44759         reported by Vin Shelton.
44760
44761 2002-06-22  Paul Eggert  <eggert@twinsun.com>
44762
44763         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
44764         Do not assume SA_SIGINFO behavior.
44765         Bug reported by Jim Meyering on NetBSD 1.5.2.
44766
44767 2002-06-22  Jim Meyering  <meyering@lucent.com>
44768
44769         * m4/c-stack.m4: New file, from diffutils-2.8.2.
44770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
44771
44772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
44773         now that configure.ac uses AC_GNU_SOURCE.
44774         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
44775         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
44776
44777         Update to latest tools.  Suggestions from Paul Eggert.
44778         * m4/stdbool.m4: New file, from diffutils-2.8.2.
44779         * m4/gnu-source.m4: Update from diffutils-2.8.2.
44780         * m4/fnmatch.m4: Likewise.
44781         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
44782         to AC_HEADER_STDBOOL
44783
44784 2002-06-22  Jim Meyering  <meyering@lucent.com>
44785
44786         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
44787         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
44788
44789 2002-06-22  Jim Meyering  <meyering@lucent.com>
44790
44791         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
44792
44793         * lib/exitfail.c, exitfail.h: Likewise.
44794         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
44795
44796         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
44797         of fnmatch.h.
44798         (EXTRA_DIST): Add fnmatch_loop.c.
44799         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
44800
44801         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
44802         * lib/fnmatch.c: Update from diffutils-2.8.2.
44803         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
44804         * lib/fnmatch.h: Remove file.
44805
44806 2002-06-21  Jim Meyering  <meyering@lucent.com>
44807
44808         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
44809         * m4/mbrtowc.m4: Likewise.
44810
44811         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
44812         * m4/mbswidth.m4: Reflect name change:
44813         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
44814         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
44815
44816         * m4/lib-link.m4: Update from gettext-0.11.2.
44817         * m4/gettext.m4: Likewise.
44818
44819         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
44820         From Alfred M. Szmidt.
44821
44822 2002-06-18  Paul Eggert  <eggert@twinsun.com>
44823
44824         * lib/file-type.h: Report an error if neither S_ISREG nor
44825         S_IFREG is defined, instead of using a test specific to glibc
44826         2.2.  This should be safe, since POSIX requires S_ISREG and
44827         Unix Version 7 had S_IFREG.  We don't need to check for
44828         <sys/types.h> since we don't use any symbols that it defines.
44829
44830 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
44831
44832         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
44833         $@-t, so that each temporary file name is unique and valid in the first
44834         8 characters, for operation under DOS.
44835
44836 2002-06-15  Paul Eggert  <eggert@twinsun.com>
44837
44838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
44839
44840 2002-06-15  Jim Meyering  <meyering@lucent.com>
44841
44842         Work even with DJGPP 2.03, which lacks support for symlinks.
44843         From Richard Dawe.
44844         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
44845         is defined.
44846         * lib/lchown.c (S_ISLNK): Likewise.
44847
44848 2002-06-15  Jim Meyering  <meyering@lucent.com>
44849
44850         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
44851         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
44852         have been included before this file.
44853
44854 2002-06-14  Jim Meyering  <meyering@lucent.com>
44855
44856         * lib/file-type.h: Use the version from diffutils-2.8.2.
44857         * lib/file-type.c: Likewise.
44858
44859 2002-06-07  Jim Meyering  <meyering@lucent.com>
44860
44861         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
44862         They're needed at least for NetBSD 1.5.2.
44863         ($statxfs_includes): Include those same headers.
44864         ($statxfs_includes): Include sys/vfs.h if available.
44865         ($statxfs_includes): Likewise for sys/statvfs.h.
44866         Check for the following members in both structs statfs and statvfs:
44867         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
44868
44869 2002-06-01  Jim Meyering  <meyering@lucent.com>
44870
44871         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
44872         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
44873
44874 2002-05-28  Jim Meyering  <meyering@lucent.com>
44875
44876         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
44877         Reported by Volker Borchert.
44878
44879 2002-05-27  Jim Meyering  <meyering@lucent.com>
44880
44881         Fix a problem seen only on nonconforming systems whereby ls.c's
44882         use of localtime, and then of gettimeofday would cause trouble:
44883         the localtime call used to initialize rpl_gettimeofday's save
44884         mechanism would clobber ls's current local time information so
44885         that in any long listing the first file would always be listed
44886         with date 1970-01-01.  Analysis by Volker Borchert.
44887
44888         * lib/gettimeofday.c (localtime): Undefine.
44889         (rpl_localtime): New function.
44890
44891 2002-05-27  Jim Meyering  <meyering@lucent.com>
44892
44893         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
44894         localtime.
44895
44896         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
44897         use the replacement function; it wouldn't resolve at link time.
44898         Reported by Volker Borchert.
44899
44900 2002-05-22  Jim Meyering  <meyering@lucent.com>
44901
44902         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
44903         file-type.h.
44904         * lib/file-type.h: New file.
44905         * lib/file-type.c (file_type): New file/function.  Extracted from
44906         diffutils.
44907
44908 2002-04-30  Jim Meyering  <meyering@lucent.com>
44909
44910         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
44911
44912 2002-04-29  Paul Eggert  <eggert@twinsun.com>
44913
44914         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
44915
44916 2002-04-29  Paul Eggert  <eggert@twinsun.com>
44917
44918         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
44919         Do not check for alloca.h (no longer used) or stdbool.h (was never
44920         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
44921
44922 2002-04-29  Paul Eggert  <eggert@twinsun.com>
44923
44924         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
44925
44926 2002-04-29  Jim Meyering  <meyering@lucent.com>
44927
44928         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
44929         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
44930         Use AC_FUNC_STRNLEN here instead.
44931
44932         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
44933         With autoconf-2.53a, it's part of AC_PROG_CC.
44934
44935 2002-04-28  Paul Eggert  <eggert@twinsun.com>
44936
44937         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
44938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
44939
44940 2002-04-28  Paul Eggert  <eggert@twinsun.com>
44941
44942         * lib/sig2str.h, lib/sig2str.c: New files.
44943         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
44944
44945 2002-04-28  Paul Eggert  <eggert@twinsun.com>
44946
44947         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
44948         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
44949         of 127, since 64 is the largest conceivable number for ancient
44950         nonstandard hosts.
44951         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
44952
44953 2002-04-28  Jim Meyering  <meyering@lucent.com>
44954
44955         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
44956
44957 2002-04-24  Jim Meyering  <meyering@lucent.com>
44958
44959         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
44960         (jm_PREREQ): Use it.
44961
44962         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
44963         mach/mach.h fcntl.h.
44964         Check for this function: setlocale.
44965
44966 2002-04-24  Jim Meyering  <meyering@lucent.com>
44967
44968         * lib/gettext.h: New file, from Gettext.
44969         * lib/Makefile.am (INCLUDES): Remove -I../intl.
44970         (libfetish_a_SOURCES): Add gettext.h.
44971
44972 2002-04-16  Jim Meyering  <meyering@lucent.com>
44973
44974         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
44975         ut_pid, ut_id, ut_exit.
44976
44977 2002-04-16  Jim Meyering  <meyering@lucent.com>
44978
44979         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
44980         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
44981         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
44982
44983 2002-04-12  Jim Meyering  <meyering@lucent.com>
44984
44985         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
44986         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
44987         existence of the getmntinfo function.  Needed for Darwin 5.3.
44988
44989         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
44990         This is necessary at least on Darwin 5.3.
44991
44992         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
44993         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
44994         strnlen.o in the library, and that makes some versions of ranlib
44995         object.
44996
44997 2002-04-12  Jim Meyering  <meyering@lucent.com>
44998
44999         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
45000
45001 2002-04-09  Jim Meyering  <meyering@lucent.com>
45002
45003         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
45004         to be more precise.  Rather than saying we're checking whether the
45005         function `works', say what we're testing.
45006         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
45007         Reported by Bruno Haible.
45008
45009 2002-03-10  Jim Meyering  <meyering@lucent.com>
45010
45011         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
45012         Suggestion from Santiago Vila.
45013
45014 2002-03-08  Jim Meyering  <meyering@lucent.com>
45015
45016         * lib/rename.c: Mention that this wrapper is needed also on
45017         mips-dec-ultrix4.4 systems.
45018
45019 2002-03-02  Jim Meyering  <meyering@lucent.com>
45020
45021         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
45022         not HAVE_CLOCK_SETTIME.
45023
45024 2002-02-27  Paul Eggert  <eggert@twinsun.com>
45025
45026         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
45027         Check for clock_settime.
45028
45029 2002-02-27  Paul Eggert  <eggert@twinsun.com>
45030
45031         * lib/nanosleep.h: Rename to....
45032         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
45033
45034         * lib/gettime.c: New file.
45035         * lib/settime.c: New file.
45036         * lib/stime.c: Remove.
45037
45038         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
45039         timespec.h.  Remove nanosleep.h.
45040
45041 2002-02-25  Paul Eggert  <eggert@twinsun.com>
45042
45043         * m4/acl.m4: New file.
45044         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
45045         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
45046
45047 2002-02-25  Paul Eggert  <eggert@twinsun.com>
45048
45049         * lib/acl.c, lib/acl.h: New files.
45050         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
45051
45052 2002-02-24  Jim Meyering  <meyering@lucent.com>
45053
45054         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
45055         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
45056         cause trouble.  Reported by Nelson Beebe.
45057
45058 2002-02-23  Paul Eggert  <eggert@twinsun.com>
45059
45060         * lib/path-concat.c (xpath_concat): Reorder code to pacify
45061         compilers that don't know that xalloc_die never returns.
45062
45063 2002-02-20  Jim Meyering  <meyering@lucent.com>
45064
45065         * lib/getdate.c: Regenerate using bison-1.33.
45066
45067 2002-02-17  Jim Meyering  <meyering@lucent.com>
45068
45069         * config/config.guess (main): Don't use `head -1'; it's no longer
45070         portable. Use `sed 1q' instead.
45071
45072 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
45073
45074         * m4/codeset.m4: Upgrade to gettext-0.11.
45075         * m4/gettext.m4: Upgrade to gettext-0.11.
45076         * m4/glibc21.m4: Upgrade to gettext-0.11.
45077         * m4/iconv.m4: Upgrade to gettext-0.11.
45078         * m4/isc-posix.m4: Upgrade to gettext-0.11.
45079         * m4/lcmessage.m4: Upgrade to gettext-0.11.
45080         * m4/lib-ld.m4: New file, from gettext-0.11.
45081         * m4/lib-link.m4: New file, from gettext-0.11.
45082         * m4/lib-prefix.m4: New file, from gettext-0.11.
45083         * m4/progtest.m4: Upgrade to gettext-0.11.
45084
45085 2002-02-15  Paul Eggert  <eggert@twinsun.com>
45086
45087         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
45088         (jm_PREREQ): Use it.
45089
45090 2002-02-15  Paul Eggert  <eggert@twinsun.com>
45091
45092         * lib/posixver.c, lib/posixver.h: New files.
45093         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
45094
45095 2002-02-02  Paul Eggert  <eggert@twinsun.com>
45096             Bruno Haible  <bruno@clisp.org>
45097
45098         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
45099         (fwrite_success_callback): New declaration.
45100         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
45101         print_unicode_char. Call failure callback instead of error.
45102         (fwrite_success_callback): New function.
45103         (exit_failure_callback): New function.
45104         (fallback_failure_callback): New function.
45105         (print_unicode_char): Call unicode_to_mb.
45106
45107 2002-01-26  Jim Meyering  <meyering@lucent.com>
45108
45109         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
45110         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
45111
45112 2002-01-26  Jim Meyering  <meyering@lucent.com>
45113
45114         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
45115
45116 2002-01-22  Paul Eggert  <eggert@twinsun.com>
45117
45118         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
45119
45120 2002-01-22  Jim Meyering  <meyering@lucent.com>
45121
45122         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
45123         Otherwise, some versions of automake would omit the rule that makes
45124         Makefile from Makefile.in.
45125
45126 2002-01-21  Paul Eggert  <eggert@twinsun.com>
45127
45128         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
45129         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
45130         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
45131         (memcoll): Set errno to zero if there is no error.
45132
45133         * lib/quotearg.c (quotearg_buffer_restyled):
45134         Fix bug with quoting buffers containing NUL when backslashing escapes.
45135         This bug was exposed by the other changes in this patch.
45136         (quotearg_n_options): New arg ARGSIZE.
45137         All callers changed.
45138         (quoting_options_from_style): New function.
45139         (quotearg_n_style): Use it.
45140         (quotearg_n_style_mem): New function.
45141
45142         * lib/quotearg.h (quotearg_n_style_mem): New function.
45143
45144 2002-01-19  Jim Meyering  <meyering@lucent.com>
45145
45146         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
45147         Remove useless quotes: DF_PROG="df".
45148         * m4/strnlen.m4: New file.
45149
45150 2002-01-16  Paul Eggert  <eggert@twinsun.com>
45151
45152         * lib/backupfile.c (ISDIGIT): Comment fix.
45153         * lib/getdate.y (ISDIGIT): Likewise.
45154         * lib/posixtm.c (ISDIGIT, year): Likewise.
45155         * lib/strverscmp.c (ISDIGIT): Likewise.
45156         * lib/userspec.c (ISDIGIT): Likewise.
45157
45158 2002-01-16  Jim Meyering  <meyering@lucent.com>
45159
45160         * lib/getdate.y: Add three semicolons, each just before a closing
45161         brace. Bison (as of version 1.31) no longer papers over that mistake.
45162
45163 2002-01-05  Jim Meyering  <meyering@lucent.com>
45164
45165         * lib/version-etc.c (version_etc_copyright): Update copyright year.
45166
45167 2001-12-19  Paul Eggert  <eggert@twinsun.com>
45168
45169         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
45170         not silently exit merely because the output buffer happens to
45171         have nothing pending.
45172
45173 2001-12-18  Paul Eggert  <eggert@twinsun.com>
45174
45175         See the big note in ../ChangeLog.
45176         * lib/human.c (suffixes): Prefer K to k for 1024.
45177         (generate_suffix_backwards): New function.
45178         (human_readable_inexact): Use it.
45179         * lib/xstrtol.c (__xstrtol): If there is no number but there
45180         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
45181         Accept 'K' as well as 'k'.
45182
45183 2001-12-15  Jim Meyering  <meyering@lucent.com>
45184
45185         * lib/regex.h (__restrict_arr): Update from libc.
45186
45187         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
45188         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
45189         (STREQ): Define.
45190
45191 2001-12-14  Jim Meyering  <meyering@lucent.com>
45192
45193         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
45194         Suggestion from Bruno Haible.
45195
45196 2001-12-10  Jim Meyering  <meyering@lucent.com>
45197
45198         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
45199         xrealloc, Instead, include "xalloc.h".
45200         (initbuffer): Don't cast xmalloc return value to char*.
45201         (readline): Reword comment.
45202         Don't cast xrealloc return value to char*
45203         Return NULL, not 0.
45204
45205 2001-12-09  Jim Meyering  <meyering@lucent.com>
45206
45207         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
45208         about `signed and unsigned type in conditional expression'.
45209         * lib/posixtm.c (posix_time_parse): Likewise.
45210
45211         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
45212
45213         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
45214         to avoid a pedantic warning.
45215
45216         * lib/getstr.c: Don't include assert.h.
45217         (getstr): Remove warning-evoking assertions.
45218         Return -1 if offset parameter is out of bounds.
45219         Change the type of a local from int to size_t.
45220
45221         * lib/strftime.c (my_strftime_localtime_r): Include this function
45222         definition in the `#if ! HAVE_TM_GMTOFF' block.
45223
45224         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
45225         Include xalloc.h instead.
45226
45227 2001-12-02  Jim Meyering  <meyering@lucent.com>
45228
45229         * lib/tempname.c: Don't declare getenv, thus reverting the change of
45230         2001-11-18.  It's no longer necessary, now that stdlib.h is always
45231         included.
45232
45233         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
45234         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
45235
45236 2001-11-30  Akim Demaille  <akim@epita.fr>
45237
45238         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
45239         before being defined.
45240
45241 2001-11-27  Paul Eggert  <eggert@twinsun.com>
45242
45243         * lib/quotearg.h (quotearg_n, quotearg_n_style):
45244         First arg is int, not unsigned.
45245         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
45246         (SIZE_MAX, UINT_MAX): New macros.
45247         (quotearg_n_options): Abort if N is negative.
45248         Avoid overflow check on hosts where size_t is 64 bits and int
45249         is 32 bits, as overflow is impossible there.
45250         Fix off-by-one typo that caused unnecessary reallocation.
45251
45252 2001-11-27  Jim Meyering  <meyering@lucent.com>
45253
45254         * lib/tempname.c: Merge with version from libc.
45255         * lib/regex.c: Likewise.
45256
45257         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
45258         systems for which STDC_HEADERS is 0, it was not included, resulting in
45259         a warning about an integer-to-pointer conversion problem with getenv.
45260         Reported by Volker Borchert.
45261
45262 2001-11-26  Jim Meyering  <meyering@lucent.com>
45263
45264         * lib/gtod.h: Remove file.
45265         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
45266         * lib/gettimeofday.c: Don't include gtod.h.
45267         (GTOD_init): Remove function.
45268         (rpl_gettimeofday): Do its job here instead, rather than aborting.
45269         Suggestion from Volker Borchert.
45270
45271 2001-11-23  Jim Meyering  <meyering@lucent.com>
45272
45273         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
45274         it.
45275         * lib/hash.c (struct hash_table): Define it here instead.
45276
45277 2001-11-22  Jim Meyering  <meyering@lucent.com>
45278
45279         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
45280
45281 2001-11-20  Jim Meyering  <meyering@lucent.com>
45282
45283         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
45284         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
45285
45286 2001-11-19  Jim Meyering  <meyering@lucent.com>
45287
45288         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
45289         directory.  Use "conftestXXXXXX" as the template.
45290         Suggestion from Paul Eggert.
45291
45292         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
45293         immediately, so the test doesn't mistakenly hit the max-open-files
45294         limit.
45295
45296 2001-11-18  Paul Eggert  <eggert@twinsun.com>
45297
45298         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
45299         (TEMPORARIES): New macro.
45300         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
45301         removes an artificial limitation (e.g. HP-UX 10.20, where
45302         TMP_MAX is 17576).
45303
45304 2001-11-18  Jim Meyering  <meyering@lucent.com>
45305
45306         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
45307
45308 2001-11-18  Jim Meyering  <meyering@lucent.com>
45309
45310         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
45311         on SunOS 4.
45312
45313         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
45314         files will be created before anything else.
45315
45316 2001-11-17  Paul Eggert  <eggert@twinsun.com>
45317
45318         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
45319         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
45320
45321 2001-11-17  Jim Meyering  <meyering@lucent.com>
45322
45323         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
45324         Prompted by a report from Bob Proulx.
45325
45326         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
45327         Instead, require UTILS_FUNC_MKSTEMP.
45328
45329 2001-11-17  Jim Meyering  <meyering@lucent.com>
45330
45331         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
45332         Now, that's done as part of AC_FUNC_STRTOD.
45333
45334 2001-11-17  Jim Meyering  <meyering@lucent.com>
45335
45336         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
45337         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
45338         rather than group writable.  Patch by Juan F. Codagnone.
45339
45340         * lib/readtokens.c: Remove explicit declarations of xmalloc and
45341         xrealloc, Instead, include "xalloc.h".
45342
45343         * lib/mountlist.c: Include unlocked-io.h after all system headers.
45344         Remove explicit declarations of xmalloc, xrealloc,
45345         and xstrdup.  Instead, include "xalloc.h".
45346
45347         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
45348         unlocked-io.h.
45349         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
45350         Likewise.
45351         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
45352
45353         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
45354         Reported by Padraig Brady.
45355
45356         * lib/mkstemp.c: #undef mkstemp.
45357         Include config.h.
45358         (rpl_mkstemp): Rename from mkstemp.
45359         Protoize.
45360
45361 2001-11-16  Jim Meyering  <meyering@lucent.com>
45362
45363         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
45364         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
45365         determine the amount of total physical memory, use pstat_getstatic.
45366         HPUX-11 doesn't define _SC_PHYS_PAGES.
45367         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
45368         If sysconf couldn't be used to determine the amount of available
45369         physical memory, use both pstat_getstatic and pstat_getdynamic.
45370         Based on a patch from Bob Proulx.
45371
45372 2001-11-10  Jim Meyering  <meyering@lucent.com>
45373
45374         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
45375         (jm_PREREQ): Use it.
45376
45377 2001-11-09  Jim Meyering  <meyering@lucent.com>
45378
45379         * m4/jm-macros.m4: Require autoconf-2.52f.
45380         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
45381         Use these AC_-prefixed names, not the AM_-prefixed ones.
45382
45383         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
45384
45385 2001-11-05  Jim Meyering  <meyering@lucent.com>
45386
45387         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
45388
45389 2001-11-04  Jim Meyering  <meyering@lucent.com>
45390
45391         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
45392         $DEFS.
45393
45394 2001-11-03  Jim Meyering  <meyering@lucent.com>
45395
45396         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
45397         of AC_DEFUN.
45398
45399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
45400         know the name of the variable in the macro definition.
45401
45402 2001-11-03  Jim Meyering  <meyering@lucent.com>
45403
45404         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
45405         in argmatch_to_argument call.
45406
45407         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
45408         argument.
45409
45410         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
45411         e.g., a fault due to an attempt to free a NULL pointer.
45412
45413 2001-11-01  Jim Meyering  <meyering@lucent.com>
45414
45415         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
45416         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
45417
45418 2001-11-01  Jim Meyering  <meyering@lucent.com>
45419
45420         * lib/dirfd.c, lib/dirfd.h: New files.
45421         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
45422
45423         * lib/hash.c (hash_print) [TESTING]: Clean up.
45424
45425 2001-10-22  Paul Eggert  <eggert@twinsun.com>
45426
45427         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
45428         to avoid a warning if -Wall.
45429
45430 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
45431
45432         * README: New file
45433         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
45434         (per RMS's instructions, this is now the canonical source)
45435         * lgpl/, gpl/: New directories.
45436
45437 2001-10-21  Paul Eggert  <eggert@twinsun.com>
45438
45439         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
45440
45441 2001-10-21  Jim Meyering  <meyering@lucent.com>
45442
45443         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
45444         this code would end up calling gettext even in packages built
45445         with --disable-nls.
45446         * lib/getopt.c (_): Likewise.
45447         * lib/regex.c (_): Likewise.
45448
45449 2001-10-20  Paul Eggert  <eggert@twinsun.com>
45450
45451         * m4/error.m4 (jm_PREREQ_ERROR):
45452         Do not invoke AC_CHECK_FUNCS with strerror_r, as
45453         AC_FUNC_STRERROR_R does that.
45454         Check for strerror declaration.
45455
45456         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
45457         are supposed to have them these days.
45458         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
45459         Merge changes from latest Autoconf CVS.
45460         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
45461         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
45462         POSIX decided to standardize on the int flavor of strerror_r.
45463
45464 2001-10-20  Paul Eggert  <eggert@twinsun.com>
45465
45466         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
45467         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
45468         Use strerror_r that is only a macro, even if it is not a function.
45469         (strerror): Check for HAVE_DECL_STRERROR before declaring.
45470         (private_strerror): Use prototypes, not old-style function definition.
45471         (print_errno_message): New function.
45472         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
45473         char*-flavored one.
45474         (error_tail, error, error_at_line): Use it.
45475
45476 2001-10-11  Jim Meyering  <meyering@lucent.com>
45477
45478         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
45479         and quote_n (1, ... to avoid clobbering a buffer.
45480
45481 2001-10-05  Jim Meyering  <meyering@lucent.com>
45482
45483         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
45484         hash-pjw.h.
45485         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
45486         * lib/hash-pjw.h: New file.
45487
45488 2001-09-30  Jim Meyering  <meyering@lucent.com>
45489
45490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
45491         `struct fsstat' has the `f_fstypename' member.
45492         Use that to define FS_TYPE, which is now used to make
45493         the getfsstat link test tighter.
45494
45495 2001-09-30  Jim Meyering  <meyering@lucent.com>
45496
45497         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
45498         Include <sys/ucred.h>, for Apple Darwin.
45499         Include sys/mount.h and sys/fs_types.h only if available.
45500         (FS_TYPE): Define.
45501         (read_filesystem_list): Use FS_TYPE.
45502
45503 2001-09-29  Paul Eggert  <eggert@twinsun.com>
45504
45505         * lib/exclude.c (excluded_filename): 0 -> false, since it's
45506         a boolean context.
45507
45508 2001-09-29  Jim Meyering  <meyering@lucent.com>
45509
45510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
45511         [one-argument getmntent function]): Include stdio.h before mntent.h.
45512         SunOS 4.1.x needs it for the declaration of `FILE'.
45513         Patch by Volker Borchert.
45514
45515         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
45516         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
45517         sys/fs_types.h, and make the link-test for getfsstat guard #include
45518         directives with appropriate #if HAVE_*_H tests so that we can
45519         detect getfsstat on Apple Darwin1.3.7 systems.
45520         Reported by Nelson Beebe.
45521         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
45522
45523 2001-09-28  Paul Eggert  <eggert@twinsun.com>
45524
45525         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
45526         #defines strtoimax.  Also treat the other strto* functions
45527         like strtoimax.
45528
45529         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
45530         Check for strtoul and strtoumax,
45531         as those declarations are made even in the signed case.
45532         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
45533         Likewise, for strtol and strtoimax.
45534
45535 2001-09-28  Paul Eggert  <eggert@twinsun.com>
45536
45537         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
45538         #defines strtoimax.  Also treat the other strto* functions
45539         like strtoimax.
45540
45541         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
45542         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
45543         (strtoimax, strtoumax): Do not declare if already defined as a macro.
45544
45545 2001-09-26  Jim Meyering  <meyering@lucent.com>
45546
45547         Most macros in unlocked-io.h had the wrong number of arguments.
45548         * lib/gen-uio: New script.
45549         (USE_UNLOCKED_IO): Define to 1 if not already defined.
45550         * lib/unlocked-io.hin: Remove file.
45551         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
45552         rather than trying to embed it here.
45553         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
45554         Reported by Padraig Brady.
45555
45556 2001-09-25  Volker Borchert  <bt@teknon.de>
45557
45558         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
45559         `result'.
45560
45561 2001-09-24  Jim Meyering  <meyering@lucent.com>
45562
45563         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
45564
45565 2001-09-23  Jim Meyering  <meyering@lucent.com>
45566
45567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
45568         instead of the mere test for existence of mntent.h.  The latter
45569         would get a false-positive on AIX 3.4 systems.
45570         In the outer getmntent if-block, don't die if neither of the getmntent
45571         tests succeeds.  Instead, just fall through and continue with the
45572         remaining tests.
45573
45574 2001-09-23  Jim Meyering  <meyering@lucent.com>
45575
45576         * lib/mountlist.c: Remove useless parentheses in #if directives.
45577         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
45578         the deprecated MOUNTED symbol is no longer defined in mntent.h.
45579
45580 2001-09-22  Jim Meyering  <meyering@lucent.com>
45581
45582         * m4/gettext.m4: New file.  From gettext.
45583         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
45584         * m4/progtest.m4: Likewise
45585         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
45586         * m4/glibc21.m4: Likewise.
45587
45588         * m4/libintl.m4: Remove.  No longer used.
45589
45590 2001-09-22  Jim Meyering  <meyering@lucent.com>
45591
45592         * lib/localcharset.c: Update from latest gettext.
45593         * lib/config.charset: Likewise.
45594
45595 2001-09-20  Jim Meyering  <meyering@lucent.com>
45596
45597         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
45598         strtoimax.
45599         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
45600         strtoumax.
45601
45602 2001-09-20  Jim Meyering  <meyering@lucent.com>
45603
45604         * lib/xstrtol.c (strtoimax): Guard declaration with
45605         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
45606         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
45607         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
45608         (strtoumax): Likewise, for completeness (it wasn't necessary).
45609
45610 2001-09-17  Paul Eggert  <eggert@twinsun.com>
45611
45612         * lib/strtoimax.c (HAVE_LONG_LONG):
45613         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
45614         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
45615         to work around bug in IBM C compiler.
45616
45617 2001-09-17  Jim Meyering  <meyering@lucent.com>
45618
45619         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
45620         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
45621         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
45622         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
45623         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
45624         whenever the right hand side need not be expanded by the shell.
45625
45626 2001-09-16  Paul Eggert  <eggert@twinsun.com>
45627
45628         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
45629         library.  It's not correct, as some older glibcs are buggy.
45630         fnmatch wasn't fixed until glibc 2.2.
45631
45632         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
45633         special shell magic here.
45634
45635 2001-09-16  Jim Meyering  <meyering@lucent.com>
45636
45637         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
45638         * m4/jm-macros.m4: Require it.
45639
45640 2001-09-16  Jim Meyering  <meyering@lucent.com>
45641
45642         * lib/mkdir.c: New file.
45643
45644 2001-09-15  Jim Meyering  <meyering@lucent.com>
45645
45646         * m4/jm-macros.m4: Check for help2man.
45647
45648 2001-09-11  Jim Meyering  <meyering@lucent.com>
45649
45650         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
45651         The body, by Paul Eggert, was moved here from configure.in.
45652         * m4/jm-macros.m4: Require UTILS_HOST_OS.
45653
45654 2001-09-04  Paul Eggert  <eggert@twinsun.com>
45655
45656         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
45657         (jm_PREREQ): Use it.
45658
45659 2001-09-04  Paul Eggert  <eggert@twinsun.com>
45660
45661         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
45662         Use ssize_t, not int, to store result of readlink.
45663         Check for ssize_t overflow as well as size_t overflow,
45664         as POSIX says the result of readlink is implementation-defined
45665         when ssize_t overflows.
45666         Remove unnecessary cast to char*.
45667         Use free+malloc instead of realloc, as the storage doesn't need
45668         to be preserved and it's clearer and can be more efficient that way.
45669         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
45670         * lib/xreadlink.h (xreadlink): Update prototype.
45671
45672 2001-09-04  Paul Eggert  <eggert@twinsun.com>
45673
45674         * lib/xgetcwd.c: Revert some of the previous change; intead,
45675         fix the HAVE_GETCWD_NULL code to behave more like the
45676         !HAVE_GETCWD_NULL code used to.
45677
45678         Include "xalloc.h".
45679         (xgetcwd): Do not return NULL when memory is exhausted; instead,
45680         invoke xalloc_die.
45681
45682 2001-09-03  Paul Eggert  <eggert@twinsun.com>
45683
45684         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
45685         sys/param.h, as pathmax.h includes them.
45686
45687 2001-09-03  Paul Eggert  <eggert@twinsun.com>
45688
45689         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
45690         (jm_PREREQ_XGETCWD): New macro.
45691
45692         * m4/getcwd.m4: New file.
45693
45694 2001-09-03  Paul Eggert  <eggert@twinsun.com>
45695
45696         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
45697         like the HAVE_GETCWD_NULL code.
45698         Include pathmax.h if not HAVE_GETCWD.
45699         Do not include xalloc.h.
45700         (INITIAL_BUFFER_SIZE): New symbol.
45701         Do not use xmalloc / xrealloc, since the caller is responsible for
45702         handling errors.  Preserve errno around `free' during failure.
45703         Do not overrun buffer when using getwd.
45704
45705 2001-09-03  Paul Eggert  <eggert@twinsun.com>
45706
45707         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
45708         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
45709         getcwd (NULL, 0).
45710
45711 2001-09-03  Paul Eggert  <eggert@twinsun.com>
45712
45713         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
45714         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
45715         spotted by Jim Meyering.
45716
45717 2001-09-03  Jim Meyering  <meyering@lucent.com>
45718
45719         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
45720         failure.
45721
45722 2001-09-02  Jim Meyering  <meyering@lucent.com>
45723
45724         * lib/error.c: Update from GNU libc.
45725
45726 2001-09-01  Jim Meyering  <meyering@lucent.com>
45727
45728         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
45729         Used by df.
45730
45731 2001-09-01  Jim Meyering  <meyering@lucent.com>
45732
45733         * lib/xreadlink.c: New file.
45734         * lib/xreadlink.h: New file.
45735         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
45736         xreadlink.h.
45737
45738         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
45739         doesn't conflict with sparc Solaris 7's definition in
45740         /usr/include/sys/int_types.h.
45741
45742         * lib/exclude.c: Use `""', not `<>' to #include non-system header
45743         files.
45744         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
45745         and strncasecmp as r-values.  Unixware didn't have declarations.
45746
45747 2001-08-31  Paul Eggert  <eggert@twinsun.com>
45748
45749         * lib/xstrtol.h: Add copyright notice.
45750         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
45751         LONGINT_INVALID_SUFFIX_CHAR.
45752
45753 2001-08-31  Paul Eggert  <eggert@twinsun.com>
45754
45755         * lib/xstrtol.c (strtoimax): New decl.
45756
45757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
45758
45759         * lib/xgetcwd.c: Don't include pathmax.h.
45760         Include stdlib.h and unistd.h if available.
45761         Include xalloc.h.
45762         (xmalloc, xstrdup, free): Remove decls.
45763         (xgetcwd): Don't assume sizes fit in unsigned.
45764         Check for overflow when computing sizes.
45765         Simplify reallocation code.
45766
45767 2001-08-31  Paul Eggert  <eggert@twinsun.com>
45768
45769         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
45770         a directory's st_size can have an arbitrary value, so the old
45771         usage could waste an arbitrary amount of memory.  All uses
45772         changed.
45773         * lib/savedir.h: Update prototype.
45774
45775 2001-08-31  Paul Eggert  <eggert@twinsun.com>
45776
45777         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
45778
45779         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
45780         old strtoimax.c.
45781
45782         Also, make the following further changes to make this file's
45783         configuration more similar to that of strtol.c:
45784         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
45785         (strtoumax, uintmax_t, strtoull, strtol): Remove.
45786         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
45787         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
45788         changed to signed values.
45789
45790         And make the following changes as well:
45791         Fix copyright notice, as 1999 was missing.
45792         (verify): New macro.
45793         (strtoimax): Check sizes at compile-time, not run-time.
45794         Prefer strtol to strtoll if both work.
45795         (main): Remove; it was not that useful and was a pain to maintain.
45796
45797         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
45798
45799 2001-08-31  Jim Meyering  <meyering@lucent.com>
45800
45801         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
45802         Use an initial, malloc'd, buffer of length 128 rather than
45803         a statically allocated one of length 1024.
45804
45805 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45806
45807         Simplify code, partly by assuming autoconf 2.52 semantics.
45808
45809         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
45810
45811         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
45812         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
45813         All uses removed.
45814         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
45815         Move AC_REQUIRE to next-to-top level, to avoid confusion.
45816         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
45817         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
45818         jm_AC_HEADER_INTTYPES_H.
45819         * m4/jm-macros.m4 (jm_MACROS): Likewise.
45820
45821         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
45822
45823         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
45824         Quote first arg of AC_DEFUN.
45825         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
45826         since they are needed to parse the include file even if we need
45827         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
45828         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
45829         but with opposite signedness.
45830
45831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45832
45833         Merge 'exclude' changes from tar 1.13.22.
45834         This fixes one or two unlikely storage allocation overflow bugs,
45835         but doesn't change user-visible behavior otherwise.
45836
45837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45838
45839         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
45840         (jm_PREREQ_EXCLUDE): New macro.
45841
45842 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45843
45844         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
45845         tm to be declared.
45846
45847 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45848
45849         * lib/hash.c: Remove '2001' from copyright notice.
45850
45851 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45852
45853         * lib/full-write.h: New file.
45854         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
45855         * lib/full-write.c: Correct credits, as cccp.c no longer
45856         exists and anyway it was so heavily changed from the old cccp
45857         code as to be unrecognizable.  Include full-write.h.
45858         (full_write) Return size_t, with short writes meaning failure.
45859         All callers changed.  This fixes a bug with large buffers
45860         on 64-bit hosts.
45861         * lib/utime.c: Include full-write.h.
45862
45863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45864
45865         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
45866         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
45867         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
45868         Include if available.
45869         (<xalloc.h>): Include
45870         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
45871         (verify): New macro.  Use it to verify that EXCLUDE macros do not
45872         collide with FNM macros.
45873         (struct patopts): New struct.
45874         (struct exclude): Use it, as exclude patterns now come with options.
45875         (new_exclude): Support above changes.
45876         (new_exclude, add_exclude_file):
45877         Initial size must now be a power of two to simplify overflow checking.
45878         (free_exclude, fnmatch_no_wildcards): New function.
45879         (excluded_filename): No longer requires options arg, as the options
45880         are determined by add_exclude.  Now returns bool, not int.
45881         (excluded_filename, add_exclude):
45882         Add support for the fancy new exclusion options.
45883         (add_exclude, add_exclude_file): Now takes int options arg.
45884         Check for arithmetic overflow when computing sizes.
45885         (add_exclude_file): xrealloc might modify errno, so don't
45886         realloc until after errno might be used.
45887
45888         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
45889         New macros.
45890         (free_exclude): New decl.
45891         (add_exclude, add_exclude_file): Now takes int options arg.
45892         (excluded_filename): No longer requires options arg, as the options
45893         are determined by add_exclude.  Now returns bool, not int.
45894
45895 2001-08-30  Paul Eggert  <eggert@twinsun.com>
45896
45897         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
45898
45899 2001-08-27  Jim Meyering  <meyering@lucent.com>
45900
45901         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
45902
45903         * lib/version-etc.c (N_): Remove definition.
45904         Revert most of last change.
45905         Instead, simply don't mark the `Copyright...' string for translation.
45906         Based on advice from Paul Eggert.
45907
45908         * lib/strtoxmax.c: Tweak comment.
45909
45910 2001-08-26  Jim Meyering  <meyering@lucent.com>
45911
45912         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
45913
45914         * m4/xstrtoimax.m4: New file.
45915         * m4/xstrtoumax.m4: Add comments explaining why we
45916         AC_REPLACE_FUNCS(strtol).
45917
45918 2001-08-26  Jim Meyering  <meyering@lucent.com>
45919
45920         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
45921         of copyright with `%s' so translators don't get an untranslated
45922         message in 2002.
45923         (COPYRIGHT_YEAR): Define.
45924         (version_etc): Use fprintf rather than fputs.
45925         Suggestion from Ulrich Drepper.
45926
45927         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
45928
45929         * lib/strtoll.c: New file, from GNU libc.
45930         * lib/xstrtoimax.c: New file.
45931
45932         * lib/xstrtol.h: Add xstrtoimax.
45933         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
45934         * lib/strtoimax.c: New file.  Likewise, but first define
45935         STRTOUXMAX_SIGNED.
45936
45937         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
45938         ...
45939         * lib/strtoxmax.c: ... then renamed to this.
45940
45941 2001-08-18  Paul Eggert  <eggert@twinsun.com>
45942
45943         * m4/inttypes.m4: Add AC_PREREQ(2.13).
45944         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
45945         (jm_AC_TYPE_INTMAX_T): New macro.
45946         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
45947
45948         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
45949
45950         * m4/longlong.m4: Renamed from ulonglong.m4.
45951         * m4/inttypes.m4: Renamed from inttypes_h.m4.
45952         * m4/uintmax_t.m4: Removed.
45953
45954 2001-08-13  Paul Eggert  <eggert@twinsun.com>
45955
45956         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
45957         Port to Solaris 8, where 'sed' requires a space after the 'r'
45958         command, and where sh dislikes "$/".  Clean up the spacing a bit.
45959         Redirect output to $tmp just once.
45960
45961 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
45962
45963         * lib/addext.c (<errno.h>): Include.
45964         (errno): Declare if not defined.
45965         (addext): Work correctly when pathconf returns -1 and leaves
45966         errno alone because there is no limit.  Also, work even if
45967         pathconf returns a value greater than SIZE_MAX.
45968
45969 2001-08-12  Jim Meyering  <meyering@lucent.com>
45970
45971         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
45972         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
45973         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
45974         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
45975         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
45976         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
45977         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
45978         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
45979         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
45980         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
45981         utime.m4, utimes.m4, xstrtoumax.m4:
45982         Quote the first argument in each use of AC_DEFUN.
45983
45984 2001-08-12  Jim Meyering  <meyering@lucent.com>
45985
45986         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
45987         Simply `return getcwd (NULL, 0);'.
45988         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
45989         Use 1300 as initial value for length, not PATH_MAX.
45990
45991         * lib/pathmax.h: Clean up cpp syntax.
45992
45993 2001-08-12  Jim Meyering  <meyering@lucent.com>
45994
45995         * lib/gettimeofday.c: New file.
45996         * lib/gtod.h: New file.
45997         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
45998
45999 2001-08-05  Jim Meyering  <meyering@lucent.com>
46000
46001         * m4/jm-macros.m4: Require autoconf-2.52.
46002
46003 2001-08-04  Jim Meyering  <meyering@lucent.com>
46004
46005         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
46006         stmt, to get in sync with glibc.
46007
46008 2001-08-03  Paul Eggert  <eggert@twinsun.com>
46009
46010         The following changes are from gettext 0.10.39 as maintained by
46011         Bruno Haible.
46012
46013         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
46014         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
46015         with inverted sense.  All uses changed.
46016
46017         * lib/mbswidth.c: Don't include <limits.h>.
46018         Include <stdlib.h> and <string.h> unconditionally.
46019         (iswcntrl, mbsinit, ISCNTRL): New macros.
46020         (mbsnwidth): Use K&R style function declarations.
46021         Don't bother checking for MB_LEN_MAX == 1, since the compiler
46022         can optimize it when MB_CUR_MAX == 1.
46023         The width of control characters is zero, not 1.
46024
46025 2001-08-03  Paul Eggert  <eggert@twinsun.com>
46026
46027         The following changes are from gettext 0.10.39 as maintained by
46028         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
46029
46030         * m4/codeset.m4: Upgrade to serial AM1.
46031         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
46032         all uses changed.  Quote first arg of AC_DEFUN.
46033         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
46034
46035         * m4/iconv.m4: Upgrade to serial AM2.
46036         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
46037         Add --with-libconv-prefix.
46038         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
46039         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
46040         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
46041         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
46042         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
46043
46044         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
46045         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
46046         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
46047         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
46048         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
46049         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
46050         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46051         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
46052         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
46053
46054         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
46055         string.h any more.
46056
46057         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
46058         not the default value.
46059
46060         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
46061         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
46062         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
46063         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
46064         Also check for iswcntrl, used for wcwidth fallback.
46065         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
46066         to Autoconf 2.13.
46067
46068 2001-08-03  Jim Meyering  <meyering@lucent.com>
46069
46070         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
46071         as it was in the original.  Reported by Paul Eggert.
46072
46073 2001-07-16  Jim Meyering  <meyering@lucent.com>
46074
46075         * m4/gettimeofday.m4: New file.
46076         Prompted by a report from Bernhard Baehr.
46077
46078 2001-07-15  Jim Meyering  <meyering@lucent.com>
46079
46080         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
46081         stuff. Now it's in ../Makefile.cfg.
46082
46083 2001-07-15  Jim Meyering  <meyering@lucent.com>
46084
46085         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
46086         (BUILT_SOURCES): Add unlocked-io.h.
46087         (io_functions): Define.
46088         (unlocked-io.h): New rule.
46089         (DISTCLEANFILES): Add unlocked-io.h.
46090         (all-local): Depend on unlocked-io.h, to ensure it is created.
46091
46092         * lib/unlocked-io.hin: New file
46093
46094         * lib/regex.c: Update from glibc.
46095
46096 2001-07-05  Jim Meyering  <meyering@lucent.com>
46097
46098         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
46099         recommendation.
46100         (libfetish_a_SOURCES): Put all .h files here instead.
46101         Remove a thus-exposed (better checks in automake) duplicate and
46102         two unnecessary .h files.
46103
46104 2001-07-04  Jim Meyering  <meyering@lucent.com>
46105
46106         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
46107         that generates jm-glibc-io.m4 so that it doesn't trigger any make
46108         distcheck failure.
46109
46110 2001-07-02  Jim Meyering  <meyering@lucent.com>
46111
46112         The following changes were prompted by suggestions from Bruno Haible.
46113
46114         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
46115         is now generated.
46116         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
46117         definition of EXTRA_DIST.
46118         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
46119         ensure that the generated file is created/updated whenever the list
46120         of $(unlocked_functions) is changed.
46121         (jm-glibc-io.m4): New rule.
46122         (unlocked-io.h): New rule -- currently unused.
46123
46124 2001-06-24  Jim Meyering  <meyering@lucent.com>
46125
46126         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
46127         unmatched right bracket, rather than kludging it with an extra,
46128         falsely-matching quote in a comment.  Patch by Akim Demaille.
46129
46130 2001-06-11  Jim Meyering  <meyering@lucent.com>
46131
46132         * lib/regex.c: Update from GNU libc.
46133
46134 2001-05-27  Jim Meyering  <meyering@lucent.com>
46135
46136         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
46137         Check for ut_type in struct utmp.
46138
46139 2001-05-27  Jim Meyering  <meyering@lucent.com>
46140
46141         * lib/readutmp.h (UT_TYPE): Define.
46142
46143 2001-05-24  Jim Meyering  <meyering@lucent.com>
46144
46145         * lib/argmatch.c: Include "quote.h".
46146         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
46147         quote function.  Reported by Göran Uddeborg.
46148
46149 2001-05-22  Jim Meyering  <meyering@lucent.com>
46150
46151         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
46152         now that we use the package-supplied version unconditionally.
46153         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
46154
46155 2001-05-21  Jim Meyering  <meyering@lucent.com>
46156
46157         * m4/regex.m4: Change a couple backticks to single quotes to avoid
46158         shell syntax errors.
46159
46160 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
46161
46162         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
46163
46164 2001-05-20  Paul Eggert  <eggert@twinsun.com>
46165
46166         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
46167         Don't bother to check library strftime, since
46168         we'll be using our own my_strftime function anyway.
46169         Define my_strftime instead of strftime.
46170
46171 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
46172
46173         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
46174         which is not yet declared.
46175
46176 2001-05-15  Jim Meyering  <meyering@lucent.com>
46177
46178         * m4/regex.m4: Use proper quoting so brackets appear in the test
46179         program.
46180         Reported by, and with help from, Bruno Haible.
46181
46182 2001-05-13  Jim Meyering  <meyering@lucent.com>
46183
46184         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
46185         undefined.
46186
46187 2001-05-11  Paul Eggert  <eggert@twinsun.com>
46188
46189         dirname code cleanup.  base_name now behaves more compatibly
46190         with POSIX basename when given file names that have trailing
46191         slashes, and similarly for dir_name.  Add new primitives
46192         base_len and dir_len.  Put the directory-name-related decls
46193         into dirname.h.
46194
46195         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
46196         * lib/backupfile.c (base_name): Likewise.
46197         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
46198         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
46199         * lib/makepath.c (strip_trailing_slashes): Likewise.
46200         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
46201         ISSLASH): Likewise.
46202         * lib/rename.c (strip_trailing_slashes): Likewise.
46203         * lib/same.c (base_name): Likewise.
46204         * lib/stripslash.c (ISSLASH): Likewise.
46205
46206         * lib/addext.c: Include <dirname.h> after size_t is defined.
46207         * lib/backupfile.c: Likewise.
46208
46209         * lib/addext.c (addext): Use base_len to trim redundant
46210         trailing slashes instead of doing it ourselves.
46211         But do not trim the last slash if it is not redundant.
46212
46213         * lib/backupfile.c (find_backup_file_name,
46214         max_backup_version): Use base_len instead of rolling it ourselves.
46215         Handle the case of "" and (on DOS) "C:" correctly.
46216
46217         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
46218         needed. Include <string.h>, <dirname.h>.
46219         (base_name): Allow file names ending in slashes, other than names
46220         that are all slashes.  In this case, return the basename followed
46221         by the slashes.  This is more general, and can be used in places
46222         where the original base_name purposely had an assertion failure.
46223         (base_len): New function.
46224
46225         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
46226         Do not include <assert.h>; no longer needed.
46227         Include xalloc.h.
46228         (memrchr): Remove decl.
46229         (dir_name_r): Remove.
46230         (dir_len): Renamed from dirlen.  All callers changed.
46231         Rewrite in terms of base_name, for simplicity and consistency.
46232         (dir_name): Never return NULL.  All callers changed.
46233         Do not include <stdlib.h> in test program; no longer needed.
46234         return 0; is fine for test program.
46235
46236         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
46237         New macros.
46238         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
46239
46240         * lib/path-concat.c (path_concat): Use base_len to compute
46241         base length, not strlen; this means we cannot rely on memcpy
46242         to null-terminate.
46243
46244         * lib/same.c (STREQ): Remove.
46245         (same_name): Handle the case where the basename ends in trailing '/'.
46246
46247         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
46248         a slash was stripped.  Do not strip the last slash after a
46249         file system prefix.
46250
46251 2001-05-11  Paul Eggert  <eggert@twinsun.com>
46252
46253         * lib/Makefile.am (libfetish_a_SOURCES):
46254         Add strftime.c, since we now compile it on all hosts.
46255
46256         * lib/strftime.c (my_strftime):
46257         Define to nstrftime if emacs, but only if my_strftime is not defined.
46258         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
46259         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
46260         Add one more extra argument: a nanoseconds value.
46261         All uses changed.
46262         (ns): New macro.
46263         (my_strftime function): Add %N format.
46264         (emacs_strftimeu): Renamed from emacs_strftime,
46265         with extra ut argument.
46266
46267 2001-05-09  Paul Eggert  <eggert@twinsun.com>
46268
46269         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
46270
46271 2001-04-21  Jim Meyering  <meyering@lucent.com>
46272
46273         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
46274         doesn't interfere.
46275
46276 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
46277
46278         * m4/ftruncate.m4: Check for chsize.
46279         Link with ftruncate.o unconditionally if ftruncate is missing.
46280         This was required when cross-compiling to i586-mingw32msvc.
46281
46282 2001-04-08  Jim Meyering  <meyering@lucent.com>
46283
46284         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
46285         recomputed; that's necessary when the offset spans a DST transition.
46286         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
46287
46288 2001-04-02  Jim Meyering  <meyering@lucent.com>
46289
46290         * lib/regex.h, regex.c: Update from GNU libc.
46291
46292 2001-03-24  Jim Meyering  <meyering@lucent.com>
46293
46294         * m4/jm-macros.m4: Require autoconf-2.49d.
46295
46296 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
46297
46298         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
46299
46300 2001-03-19  Paul Eggert  <eggert@twinsun.com>
46301
46302         * lib/version-etc.c (version_etc_copyright): Update to 2001.
46303
46304 2001-03-17  Jim Meyering  <meyering@lucent.com>
46305
46306         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
46307         now that the version in autoconf is equivalent.
46308         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
46309
46310         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
46311         Suggestion from Akim Demaille.
46312
46313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
46314         (jm_PREREQ_TEMPNAME): New function.
46315
46316 2001-03-16  Paul Eggert  <eggert@twinsun.com>
46317
46318         * lib/tempname.c (uint64_t): Define to uintmax_t if
46319         not defined, and if UINT64_MAX is not defined.
46320         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
46321         Reported by John David Anglin.
46322
46323 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
46324
46325         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
46326         resolve alias if codeset is empty.
46327         * lib/config.charset (BeOS): Use wildcard syntax.
46328
46329 2001-03-13  Jim Meyering  <meyering@lucent.com>
46330
46331         * lib/path-concat.c (path_concat)
46332         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
46333         concatenating e.g., `C:' and `foo'.
46334         From Bruno Haible.
46335
46336 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
46337
46338         * lib/localcharset.c (locale_charset): Don't use
46339         setlocale(LC_CTYPE,NULL). Don't return NULL.
46340         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
46341
46342 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
46343
46344         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
46345         support for DOS/DJGPP.
46346
46347 2001-03-01  Paul Eggert  <eggert@twinsun.com>
46348
46349         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
46350         lacks mkstemp.  Compile our own tempname.c if we compile our own
46351         mkstemp.c, as mkstemp relies on tempname.
46352
46353 2001-03-01  Jim Meyering  <meyering@lucent.com>
46354
46355         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
46356         AH_VERBATIM really does output its argument verbatim.
46357
46358 2001-02-28  Paul Eggert  <eggert@twinsun.com>
46359
46360         * lib/Makefile.am (libfetish_a_SOURCES):
46361         Add dup-safer.c, fopen-safer.c.
46362         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
46363
46364         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
46365         * lib/unistd-safer.h: New files.
46366
46367 2001-02-25  Paul Eggert  <eggert@twinsun.com>
46368
46369         The mkstemp replacement is taken from glibc 2.2.2, with some
46370         portability fixes for use outside glibc, as follows:
46371
46372         * lib/tempname.c (struct_stat64): New macro.
46373         (direxists, __gen_tempname): Use it.
46374         This avoids a portability problem with Solaris 8.
46375
46376         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
46377         (<stddef.h>, <stdint.h>, <string.h>):
46378         Include only if STDC_HEADERS || _LIBC.
46379         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
46380         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
46381         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
46382         (__set_errno): Define this macro if <errno.h> doesn't.
46383         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
46384         Define these macros if <stdio.h> doesn't.
46385         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
46386         Define these macros if <sys/stat.h>
46387         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
46388         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
46389         __xstat64): Define if not _LIBC.
46390         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
46391         (__gen_tempname): Invoke gettimeofday only if
46392         HAVE_GETTIMEOFDAY || _LIBC;
46393         otherwise, fall back on plain "time".
46394         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
46395
46396         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
46397
46398         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
46399
46400 2001-02-18  Paul Eggert  <eggert@twinsun.com>
46401
46402         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
46403
46404 2001-02-17  Paul Eggert  <eggert@twinsun.com>
46405
46406         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
46407         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
46408         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
46409         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46410
46411 2001-02-17  Paul Eggert  <eggert@twinsun.com>
46412
46413         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
46414         Remove workaround macros for hosts that have mbrtowc but not
46415         mbstate_t, as we now insist on proper declarations for both
46416         before using mbrtowc.
46417
46418 2001-02-17  Jim Meyering  <meyering@lucent.com>
46419
46420         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
46421         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
46422         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
46423         UnixWare 7.1.1.
46424
46425         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
46426         rather than AC_CACHE_VAL.
46427
46428 2001-02-17  Jim Meyering  <meyering@lucent.com>
46429
46430         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
46431         around included file name.
46432
46433         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
46434
46435         * lib/strftime.c: Update from GNU libc (the only changes were to
46436         comments).
46437
46438 2001-02-17  Jim Meyering  <meyering@lucent.com>
46439
46440         * lib/regex.c: Update from libc.
46441
46442 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
46443
46444         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
46445         clash.
46446
46447 2001-02-16  Paul Eggert  <eggert@twinsun.com>
46448
46449         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
46450         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
46451         Reported by Mark Hounschell via Paul Eggert.
46452
46453 2001-02-07  Jim Meyering  <meyering@lucent.com>
46454
46455         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
46456
46457 2001-02-05  Jim Meyering  <meyering@lucent.com>
46458
46459         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
46460         it includes the patch required for `large file' support with at least
46461         HP-UX's 10.20 /bin/cc.
46462
46463 2001-02-03  Jim Meyering  <meyering@lucent.com>
46464
46465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
46466         AS_IF, now that it works once again (mysteriously).
46467         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
46468
46469 2001-01-30  Jim Meyering  <meyering@lucent.com>
46470
46471         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
46472         * m4/chown.m4: Rename conftestchown to conftest.chown.
46473         * m4/rename.m4: s/conftestdir/conftest.d1/ and
46474         s/conftestdir2/conftest.d2/.
46475         * m4/utimes.m4: s/conftestdata/conftest.data/
46476         Inspired by Pavel Roskin's change in autoconf.
46477
46478 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
46479
46480         * lib/config.charset: Update for FreeBSD 4.2.
46481
46482 2001-01-27  Jim Meyering  <meyering@lucent.com>
46483
46484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
46485         a use of AS_IF.
46486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
46487
46488 2001-01-26  Jim Meyering  <meyering@lucent.com>
46489
46490         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
46491         quotearg.c includes it.
46492
46493 2001-01-26  Jim Meyering  <meyering@lucent.com>
46494
46495         * lib/quotearg.c: Include stddef.h.
46496         * lib/quote.c: Include stddef.h.
46497         Reported by Axel Kittenberger.
46498
46499         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
46500         line in double quotes so that it evokes a better diagnostic.
46501         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
46502         Reported by Axel Kittenberger.
46503
46504 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
46505
46506         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
46507         as if it was a `charset'.
46508
46509 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
46510
46511         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
46512         has const.
46513
46514 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
46515
46516         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
46517         to avoid a warning.  Add back 'const' to inptr.
46518
46519 2001-01-20  Jim Meyering  <meyering@lucent.com>
46520
46521         Be sure that headers are checked before used in code compiled
46522         for the type checks.
46523         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
46524         In place of that, invoke jm_CHECK_ALL_TYPES.
46525         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
46526         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
46527         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
46528         The check for ssize_t was mistakenly run before the test for unistd.h.
46529
46530         The configure-time check for stdbool.h was missing.
46531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
46532         (jm_PREREQ_HASH): New function.
46533
46534 2001-01-17  Jim Meyering  <meyering@lucent.com>
46535
46536         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
46537         for autoconf-2.49c.
46538         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
46539
46540 2001-01-16  Jim Meyering  <meyering@lucent.com>
46541
46542         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
46543         From Bruno Haible.
46544
46545 2001-01-14  Jim Meyering  <meyering@lucent.com>
46546
46547         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
46548         foo and bar.  Create conftestdir/ in the script, not in the C code.
46549         Remove directories in the script, not in the C code.
46550         Remove conftestdir{,2} before trying to create the directory.
46551         Make the entire configure script fail if the mkdir fails.
46552
46553 2001-01-14  Jim Meyering  <meyering@lucent.com>
46554
46555         * lib/rename.c: New file.  From Volker Borchert.
46556         Include stdlib.h, string.h or strings.h, and xalloc.h.
46557         Use strip_trailing_slashes rather than open-coding it.
46558
46559 2001-01-03  Paul Eggert  <eggert@twinsun.com>
46560
46561         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
46562
46563 2001-01-03  Jim Meyering  <meyering@lucent.com>
46564
46565         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
46566         of local `inptr' to avoid warning with some system declarations of
46567         iconv.
46568
46569 2001-01-02  Volker Borchert  <bt@teknon.de>
46570
46571         * m4/rename.m4: New file.
46572         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
46573
46574 2001-01-01  Jim Meyering  <meyering@lucent.com>
46575
46576         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
46577         even on systems with utmpx.h.  It's necessary for the declaration of
46578         utmp's ut_user member.  Reported by Andreas Jaeger.
46579
46580         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
46581         available. They are required for the declarations of getgrgid and
46582         getpwuid resp.
46583         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
46584         Reported by Andreas Jaeger.
46585
46586 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
46587
46588         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
46589         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
46590         so `make install' also works in VPATH builds.
46591
46592 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
46593
46594         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
46595         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
46596         can be used in subdirectories.
46597
46598 2000-12-29  Paul Eggert  <eggert@twinsun.com>
46599
46600         * lib/modechange.c: Do not assume that mode_t uses the
46601         traditional octal encoding.  E.g. "chmod 1 FOO" should set
46602         the other-execute bit of FOO even if S_IXOTH != 1.
46603
46604         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
46605         WOTH, XOTH, ALLM): New macros.
46606         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
46607          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
46608         Use them.
46609         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
46610         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
46611         (mode_compile):
46612         No need to use uintmax_t; unsigned long is long enough.
46613         Don't bother to get suffix since we don't use it.
46614
46615 2000-12-26  Jim Meyering  <meyering@lucent.com>
46616
46617         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
46618         better with autoheader.
46619
46620 2000-12-24  Jim Meyering  <meyering@lucent.com>
46621
46622         * lib/hash.c (is_prime): Return explicit boolean values.
46623         (hash_get_first): Return NULL to appease Irix5.6's 89.
46624         Reported by Nelson Beebe.
46625
46626 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
46627
46628         * lib/localcharset.c (locale_charset): Add support for Win32.
46629
46630 2000-12-18  Paul Eggert  <eggert@twinsun.com>
46631
46632         * lib/physmem.h, lib/physmem.c: New files.
46633
46634         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
46635         (noinst_HEADERS): Add physmem.h.
46636
46637         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
46638         't' for compatibility with Solaris 8 sort.
46639
46640 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
46641
46642         * lib/config.charset: Add support for BeOS.
46643
46644 2000-12-17  Jim Meyering  <meyering@lucent.com>
46645
46646         * m4/dos.m4 (jm_AC_DOS): New file and macro.
46647         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
46648
46649 2000-12-16  Jim Meyering  <meyering@lucent.com>
46650
46651         This bug had a serious impact on chown: `chown N:M FILE' (for integer
46652         N and M) would have treated it like `chown N:N FILE'.
46653
46654         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
46655
46656 2000-12-16  Jim Meyering  <meyering@lucent.com>
46657
46658         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
46659         SHELLS_FILE to a file name that's useful on djgpp systems.
46660         Include stdlib.h.
46661         (ADDITIONAL_DEFAULT_SHELLS): Define.
46662         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
46663         Based mostly on a patch from Prashant TR.
46664
46665 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
46666
46667         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
46668         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
46669         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
46670
46671 2000-12-08  Andreas Schwab  <schwab@suse.de>
46672
46673         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
46674         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
46675
46676 2000-12-07  Jim Meyering  <meyering@lucent.com>
46677
46678         * lib/stripslash.c (ISSLASH): Define.
46679         (strip_trailing_slashes): Use ISSLASH rather than comparing against
46680         `/'.
46681         From Prashant TR.
46682
46683         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
46684         (dir_name_r): Declare this function as static.
46685         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
46686         manifest itself on a name containing a mix of slashes and
46687         backslashes.
46688         Make this function work with names starting with a DOS-style
46689         drive letter and colon prefix.
46690         (dir_name): Append `.' if necessary.
46691         Based mostly on patches from Prashant TR and Eli Zaretskii.
46692
46693         * lib/dirname.h (dir_name_r): Remove prototype.
46694
46695 2000-12-06  Paul Eggert  <eggert@twinsun.com>
46696
46697         * m4/off_t-format.m4: Remove this file.
46698         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
46699
46700 2000-12-06  Jim Meyering  <meyering@lucent.com>
46701
46702         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
46703         replacement strtoull, we may well need the replacement strtoul, too.
46704         Check for declarations of strtoul and strtoull.
46705         Check for strtol.  Mainly as a cue to cause automake to include
46706         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
46707         Check for limits.h -- strtol.c needs it.
46708
46709 2000-12-05  Jim Meyering  <meyering@lucent.com>
46710
46711         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
46712
46713 2000-12-04  Jim Meyering  <meyering@lucent.com>
46714
46715         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
46716         Also include memory.h, stdlib.h, unistd.h if appropriate.
46717         Reported by Andreas Jaeger (conflicting declaration of malloc).
46718
46719 2000-12-02  Jim Meyering  <meyering@lucent.com>
46720
46721         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
46722         * m4/jm-macros.m4 (jm_MACROS): require it.
46723
46724 2000-12-02  Jim Meyering  <meyering@lucent.com>
46725
46726         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
46727
46728 2000-12-01  Paul Eggert  <eggert@twinsun.com>
46729
46730         * lib/memrchr.c: Include <config.h> before any system include file.
46731
46732 2000-11-30  Jim Meyering  <meyering@lucent.com>
46733
46734         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
46735
46736 2000-11-30  Jim Meyering  <meyering@lucent.com>
46737
46738         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
46739
46740 2000-11-29  Paul Eggert  <eggert@twinsun.com>
46741
46742         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
46743
46744 2000-11-26  Jim Meyering  <meyering@lucent.com>
46745
46746         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
46747
46748 2000-11-22  Paul Eggert  <eggert@twinsun.com>
46749
46750         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
46751         size of (size_t) -1; it's not portable.
46752
46753 2000-11-17  Jim Meyering  <meyering@lucent.com>
46754
46755         * lib/strstr.c: Update from GNU libc.
46756
46757 2000-11-17  Akim Demaille  <akim@epita.fr>
46758
46759         * lib/obstack.h: Formatting changes.
46760         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
46761         prevent type checking.
46762         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
46763         cast the value to (void *): assigning a `foo *' to a `void *'
46764         variable is valid.
46765         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
46766
46767 2000-11-16  Jim Meyering  <meyering@lucent.com>
46768
46769         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
46770
46771 2000-11-11  Jim Meyering  <meyering@lucent.com>
46772
46773         * lib/error.c: Add a couple #includes, merging from GNU libc version.
46774
46775 2000-11-10  Jim Meyering  <meyering@lucent.com>
46776
46777         * lib/obstack.h: Update from GNU libc.
46778         * lib/obstack.c: Likewise.
46779
46780 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
46781
46782         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
46783
46784 2000-11-06  Paul Eggert  <eggert@twinsun.com>
46785
46786         * lib/getusershell.c (setusershell): Use rewind rather than
46787         fseek/fseeko, to avoid configuration hassles with fseeko.
46788         Don't bother opening SHELLS_FILE if shellstream is NULL;
46789         it's not necessary.
46790
46791 2000-11-05  Jim Meyering  <meyering@lucent.com>
46792
46793         * lib/makepath.h (make_dir): Declare.
46794         * lib/makepath.c (make_dir): Remove `static' attribute.
46795         Tweak a comment.
46796
46797 2000-11-04  Jim Meyering  <meyering@lucent.com>
46798
46799         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
46800
46801 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
46802
46803         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
46804         last one in a bucket, advance to the next bucket.
46805
46806 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
46807
46808         * lib/fnmatch.c: Do not comment out all the code if we are using
46809         the GNU C library, because in some cases we are replacing buggy
46810         code in the GNU C library itself.
46811
46812 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
46813
46814         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
46815         (regex_compile): Catch bogus \(\1\).
46816
46817 2000-10-30  Paul Eggert  <eggert@twinsun.com>
46818
46819         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
46820         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
46821         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
46822
46823 2000-10-30  Paul Eggert  <eggert@twinsun.com>
46824
46825         * lib/error.h, getline.h, modechange.h:
46826         Remove "2000" from Copyright line, as the file hasn't been
46827         changed this year other than in the copyright notice.
46828
46829         * lib/xalloc.h: Add "2000" to Copyright line, as this file
46830         was changed this year.
46831
46832 2000-10-29  Jim Meyering  <meyering@lucent.com>
46833
46834         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
46835         renaming.
46836         * m4/ls-mntd-fs.m4: Likewise
46837
46838 2000-10-29  Jim Meyering  <meyering@lucent.com>
46839
46840         * lib/xstat.in: Fix grammar in comment.
46841
46842 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
46843
46844         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
46845         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
46846         doesn't define __restrict_arr.
46847
46848 2000-10-28  Jim Meyering  <meyering@lucent.com>
46849
46850         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
46851         (jm_PREREQ_MEMCHR): New function.
46852
46853 2000-10-28  Jim Meyering  <meyering@lucent.com>
46854
46855         * lib/memchr.c: Update from libc.
46856         Adjust for portability:
46857         [HAVE_STDLIB_H]: Include stdlib.h.
46858         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
46859         Undef __memchr, too.
46860         [!weak_alias]: Define __memchr to memchr.
46861
46862         * lib/regex.c: Update from libc.
46863         * lib/regex.h: Likewise.
46864         * lib/getopt1.c: Likewise.
46865         * lib/memcmp.c: Likewise.
46866
46867         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
46868         Avoid using fseek, when possible -- it's broken by design.
46869         Patch by Ulrich Drepper.
46870
46871 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
46872
46873         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
46874         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
46875         Giving in to popular pressure to shut up the compiler with casts.
46876
46877 2000-10-26  Jim Meyering  <meyering@lucent.com>
46878
46879         * lib/strftime.c: Update from libc.
46880
46881 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
46882
46883         * regex.c: More `unsigned char' -> `re_char' changes.
46884         Also change several `int' into `re_wchar_t'.
46885         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
46886         (PUSH_FAILURE_POINTER): Don't cast any more.
46887         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
46888         We want GCC to complain, since this piece of code makes
46889         re_match non-reentrant, which *should* be fixed.
46890         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
46891         (EXTEND_BUFFER): Use RETALLOC.
46892         (SET_LIST_BIT): Don't cast.
46893         (re_wchar_t): New type.
46894         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
46895         that those two functions will always properly return.
46896         (IMMEDIATE_QUIT_CHECK): Cast to void.
46897         (analyse_first): Use recursion rather than an explicit stack.
46898         (re_compile_fastmap): Can't fail anymore.
46899         (re_search_2): Don't check re_compile_fastmap for failure.
46900         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
46901         Now also sets the new value (passed in a new argument).
46902         (re_match_2_internal): Use it.
46903         Also, use a new var `reg' of type size_t when looping through regs
46904         rather than reuse the inappropriate `mcnt'.
46905
46906 2000-10-25  Jim Meyering  <meyering@lucent.com>
46907
46908         * lib/obstack.c: Update from libc.
46909
46910 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
46911
46912         * regex.c (regex_compile): Change the way of handling a range from
46913         a char less than 256 to a char not less than 256.
46914
46915 2000-10-24  Andrew Innes  <andrewi@gnu.org>
46916
46917         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
46918         NT-Emacs only.
46919         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
46920         so that re_search functions only quit when callers expect them to.
46921
46922 2000-10-23  Jim Meyering  <meyering@lucent.com>
46923
46924         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
46925         wrong.  That set_locale call must not have any side effects.
46926         From Paul Eggert.
46927
46928 2000-10-22  Jim Meyering  <meyering@lucent.com>
46929
46930         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
46931         [CYCLIC]: Remove now-unused definition.
46932
46933         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
46934         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
46935         Suggestion from Ulrich Drepper.
46936
46937 2000-10-21  Jim Meyering  <meyering@lucent.com>
46938
46939         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
46940         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
46941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
46942
46943 2000-10-21  Jim Meyering  <meyering@lucent.com>
46944
46945         * lib/dirname.c (memrchr): Declare if necessary.
46946         (dir_name): Remove the restriction that there be no
46947         trailing slashes.  Now, this code skips past them, effectively
46948         ignoring them.
46949         [TEST_DIRNAME] (main): New unit tests.
46950
46951         * lib/memrchr.c: New file from GNU libc.
46952         Undef __memrchr, too.
46953         [!weak_alias]: Define __memrchr to memrchr.
46954         Guard weak_alias use with `#ifdef weak_alias'.
46955
46956 2000-10-21  Jim Meyering  <meyering@lucent.com>
46957
46958         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
46959         (dir_name): Use dir_name_r.
46960         * lib/dirname.h (dir_name_r): Declare it.
46961
46962 2000-10-17  Jim Meyering  <meyering@lucent.com>
46963
46964         * lib/quote.h (PARAMS): Define and use.
46965         Reported by Akim Demaille.
46966
46967         * lib/getopt.c: Update from libc.
46968
46969 2000-10-16  Jim Meyering  <meyering@lucent.com>
46970
46971         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
46972         setlocale.
46973         From Jan Fedak.
46974
46975 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
46976
46977         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
46978
46979 2000-09-25  Jim Meyering  <meyering@lucent.com>
46980
46981         * lib/md5.h (rol): Define (from GnuPG).
46982
46983         * lib/sha.c: Give credit (GnuPG) where due.
46984         (M): Use rol rather than open-coding it.
46985         Add a FIXME comment.
46986
46987 2000-09-21  Jim Meyering  <meyering@lucent.com>
46988
46989         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
46990         Reported by Michael Stone.
46991
46992 2000-09-20  Jim Meyering  <meyering@lucent.com>
46993
46994         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
46995         (noinst_HEADERS): Add sha.h.
46996         Based on code from Scott G. Miller and from GnuPG.
46997
46998 2000-09-18  Jim Meyering  <meyering@lucent.com>
46999
47000         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
47001         LIBS. Otherwise, everyone ends up linking with -lelf for some
47002         configurations.
47003         Reported by Mike Stone.
47004
47005 2000-09-15  Jim Meyering  <meyering@lucent.com>
47006
47007         * lib/regex.c: Update from libc.
47008
47009 2000-09-10  Jim Meyering  <meyering@lucent.com>
47010
47011         * lib/getopt.c (_getopt_internal): Update from glibc.
47012
47013 2000-09-09  Jim Meyering  <meyering@lucent.com>
47014
47015         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
47016         think it should be used as a general replacement for isascii.
47017         * lib/fnmatch.c: Likewise.
47018         * lib/mbswidth.c: Likewise
47019         * lib/regex.c: Likewise.
47020
47021         Don't use atoi.
47022         * lib/userspec.c: Include sys/param.h and limits.h.
47023         Include xstrtol.h.
47024         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
47025         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
47026         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
47027         UID, GID.  Check range.
47028
47029 2000-09-06  Jim Meyering  <meyering@lucent.com>
47030
47031         * lib/getopt.c (_getopt_internal): Update from glibc.
47032
47033 2000-08-30  Jim Meyering  <meyering@lucent.com>
47034
47035         * lib/strftime.c: Merge in changes from GNU libc.
47036
47037 2000-08-26  Jim Meyering  <meyering@lucent.com>
47038
47039         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
47040         * m4/fpending.m4: New file.
47041
47042 2000-08-26  Jim Meyering  <meyering@lucent.com>
47043
47044         * lib/closeout.c: Include "__fpending.h".
47045         (close_stdout_status): Return right away if there's nothing to flush.
47046
47047         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
47048         * lib/__fpending.c: New file.
47049         * lib/__fpending.h: New file.
47050
47051 2000-08-20  Jim Meyering  <meyering@lucent.com>
47052
47053         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
47054         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
47055         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
47056
47057 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
47058
47059         Improve fileutils installation on systems where running
47060         programs (like install) can't be unlinked.
47061         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
47062         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
47063
47064 2000-08-07  Paul Eggert  <eggert@twinsun.com>
47065
47066         Standardize on "memory exhausted" instead of "Memory exhausted"
47067         or "virtual memory exhausted".
47068         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
47069         "virtual memory exhausted".
47070         * lib/same.c (same_name): Invoke xalloc_die instead of printing
47071         our own message.
47072         * lib/userspec.c (parse_user_spec): Likewise.
47073         * lib/bumpalloc.h: comment fix
47074         * lib/same.c, userspec.c: Include xalloc.h.
47075
47076         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
47077         not char *const and pointing to a constant array.
47078         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
47079         (xrealloc): Comment fix.
47080
47081         * lib/userspec.c (parse_user_spec):
47082         Don't translate a message until just before returning,
47083         to avoid unnecessary translation.
47084
47085 2000-08-07  Jim Meyering  <meyering@lucent.com>
47086
47087         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
47088         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
47089         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
47090         getgroups.c, gethostname.c, getopt.h, group-member.c,
47091         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
47092         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
47093         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
47094         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
47095         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
47096         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
47097         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
47098         yesno.c: Back out Copyright date changes for each file with no change
47099         this year.  This eases coordination with other programs using the same
47100         source code modules.  From Paul Eggert.
47101
47102 2000-08-06  Paul Eggert  <eggert@twinsun.com>
47103
47104         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
47105         not char, for compatibility with glibc 2.1.3 strftime.c.
47106
47107 2000-08-03  Greg McGary  <greg@mcgary.org>
47108
47109         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
47110         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
47111         (EXTEND_BUFFER): Use them.
47112
47113 2000-08-01  Jim Meyering  <meyering@lucent.com>
47114
47115         * lib/dirname.c (ISSLASH): Define.
47116         (BACKSLASH_IS_PATH_SEPARATOR): Define.
47117         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
47118         both `\' and `/' may be use as path separators.
47119         Based on a patch from Prashant TR.
47120
47121 2000-07-31  Paul Eggert  <eggert@twinsun.com>
47122
47123         * lib/quotearg.c (quotearg_n_options): Don't make the initial
47124         slot vector a constant, since it might get modified.
47125
47126 2000-07-31  Jim Meyering  <meyering@lucent.com>
47127
47128         * lib/xmalloc.c: Use `virtual memory exhausted', not
47129         `Memory exhausted'.
47130         * lib/obstack.c (print_and_abort): Likewise.
47131
47132 2000-07-30  Paul Eggert  <eggert@twinsun.com>
47133
47134         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
47135         buffer, so that the caller can always quote one small
47136         component of a "memory exhausted" message in slot 0.
47137         From a suggestion by Jim Meyering.
47138
47139 2000-07-30  Jim Meyering  <meyering@lucent.com>
47140
47141         * lib/makepath.c (make_path): Quote the other instance, too.
47142
47143         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
47144         (STATIC_BUF_SIZE): Define.
47145         (quotearg_n_options): Use only statically allocated storage when
47146         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
47147         than STATIC_BUF_SIZE.
47148
47149 2000-07-29  Jim Meyering  <meyering@lucent.com>
47150
47151         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
47152         * lib/dirname.c (dir_name): Likewise.
47153
47154         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
47155         `/'.
47156
47157         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
47158         (dir_name): Assert that there are no trailing slashes.
47159
47160 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
47161
47162         * lib/mbswidth.h (mbswidth): Add a flags argument.
47163         (mbswidth): New declaration.
47164         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
47165         * lib/mbswidth.c (mbswidth): Add a flags argument.
47166         (mbsnwidth): New function.
47167
47168 2000-07-24  Jim Meyering  <meyering@lucent.com>
47169
47170         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
47171
47172 2000-07-23  Paul Eggert  <eggert@twinsun.com>
47173
47174         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
47175
47176 2000-07-23  Paul Eggert  <eggert@twinsun.com>
47177
47178         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
47179         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
47180         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
47181         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
47182         invoke multibyte primitives.
47183
47184 2000-07-23  Paul Eggert  <eggert@twinsun.com>
47185
47186         * lib/quotearg.c:
47187         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
47188         so that mbstate_t is always defined.
47189
47190         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
47191         be 1 in at least one GCC installation, and this configuration
47192         error is likely to be common.  Ignoring MB_LEN_MAX hurts
47193         performance on hosts that have mbrtowc but have only unibyte
47194         locales, but I assume these hosts are rare.
47195
47196 2000-07-23  Paul Eggert  <eggert@twinsun.com>
47197
47198         * lib/mbswidth.c (_XOPEN_SOURCE):
47199         Don't define; this causes problems on Solaris 7.
47200         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
47201
47202 2000-07-23  Jim Meyering  <meyering@lucent.com>
47203
47204         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
47205         too: getgrgid, getpwuid, getuid.
47206
47207 2000-07-23  Jim Meyering  <meyering@lucent.com>
47208
47209         * lib/basename.c (base_name): Add an assertion.
47210
47211 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
47212
47213         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
47214         shadow its mbsinit function.
47215
47216 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
47217
47218         * lib/mbswidth.h: New file.
47219         * lib/mbswidth.c: New file.
47220         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
47221         (noinst_HEADERS): Add mbswidth.h.
47222
47223 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
47224
47225         * lib/config.charset: Add support for FreeBSD. Improve support for
47226         HP-UX and IRIX 6.
47227
47228 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
47229
47230         * m4/mbswidth.m4: New file.
47231         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
47232
47233 2000-07-15  Jim Meyering  <meyering@lucent.com>
47234
47235         * lib/makepath.c: Include quote.h.
47236         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
47237         corresponding argument in a `quote (...)' call.
47238         Give better diagnostics.
47239
47240         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
47241         (noinst_HEADERS): Add quote.h.
47242
47243         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
47244         from tar's src/misc.c.
47245         * lib/quote.h: New file.  Prototypes for same.
47246
47247 2000-07-14  Paul Eggert  <eggert@twinsun.com>
47248
47249         From a suggestion by Bruno Haible.
47250         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
47251         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
47252         to decide whether to define the BeOS workaround macro;
47253         this adjusts to the change to AC_MBSTATE_T.
47254
47255 2000-07-14  Jim Meyering  <meyering@lucent.com>
47256
47257         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
47258         jm_AC_TYPE_UINTMAX_T.
47259
47260 2000-07-13  Paul Eggert  <eggert@twinsun.com>
47261
47262         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
47263
47264         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
47265         quotearg_buffer_restyled): Add support for
47266         clocale_quoting_style.  Undo previous change to
47267         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
47268         and "{RIGHT QUOTATION MARK}" msgids.
47269
47270 2000-07-10  Paul Eggert  <eggert@twinsun.com>
47271
47272         From a suggestion by Bruno Haible.
47273         * m4/mbstate_t.m4 (AC_MBSTATE_T):
47274         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
47275         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
47276         and mbstate_t, to a single-part test that simply defines mbstate_t.
47277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
47278         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
47279
47280 2000-07-10  Jim Meyering  <meyering@lucent.com>
47281
47282         * m4/strerror_r.m4: Mirror the correction made in autoconf.
47283
47284         * m4/gnu-source.m4: Output to confdefs.h directly.
47285         Suggestion from Akim Demaille.
47286
47287 2000-07-09  Paul Eggert  <eggert@twinsun.com>
47288
47289         The old behavior of quoting `like this' doesn't look good with
47290         newer, ISO-style fonts.  See:
47291         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
47292
47293         Instead, quote "like this" by default.  Let the translator
47294         tailor the locale-specific quoting behavior by providing
47295         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
47296
47297         * lib/quotearg.c (N_): New macro.
47298         (gettext_default): New function.
47299         (quotearg_buffer_restyled): Use
47300         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
47301         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
47302
47303 2000-07-09  Jim Meyering  <meyering@lucent.com>
47304
47305         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
47306         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
47307
47308         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
47309         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
47310
47311 2000-07-09  Jim Meyering  <meyering@lucent.com>
47312
47313         * lib/Most files: Update copyright dates to include 2000.
47314
47315 2000-07-08  Jim Meyering  <meyering@lucent.com>
47316
47317         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
47318         if not defined.
47319         (xgethostname): Remove now-unnecessary #ifdef.
47320         Move declaration of `err' into loop where it's used.
47321
47322 2000-07-05  Paul Eggert  <eggert@twinsun.com>
47323         and Bruno Haible  <haible@clisp.cons.org>
47324
47325         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
47326         only if the test for an object-type mbstate_t fails.  This
47327         prevents us from mistakenly reporting that mbstate_t is a
47328         system object type after we "#define mbstate_t int" to work
47329         around its lack.
47330
47331 2000-07-05  Paul Eggert  <eggert@twinsun.com>
47332         and Bruno Haible  <haible@clisp.cons.org>
47333
47334         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
47335
47336 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
47337
47338         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
47339         to strerror_r.
47340         Include <ctype.h> for use of isalpha.
47341
47342 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
47343
47344         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
47345         by allocating a larger buffer. Test the gethostname return value for
47346         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
47347         returns an error and ENAMETOOLONG isn't defined.
47348
47349 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
47350
47351         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
47352         dimension.
47353
47354 2000-07-04  Jim Meyering  <meyering@lucent.com>
47355
47356         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
47357         of the deprecated AC_CHECKING.
47358
47359 2000-07-04  Jim Meyering  <meyering@lucent.com>
47360
47361         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
47362         Reported by Bruno Haible.
47363
47364 2000-07-04  Jim Meyering  <meyering@lucent.com>
47365
47366         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
47367         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
47368         lacks mbrtowc.
47369
47370 2000-07-03  Paul Eggert  <eggert@twinsun.com>
47371
47372         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
47373         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
47374
47375 2000-07-03  Paul Eggert  <eggert@twinsun.com>
47376         and Bruno Haible  <haible@clisp.cons.org>
47377
47378         * lib/quotearg.c (mbrtowc):
47379         Assign to *pwc, and return 1 only if result is nonzero.
47380         (iswprint): Use ISPRINT when substituting our own mbrtowc.
47381
47382 2000-07-03  Jim Meyering  <meyering@lucent.com>
47383
47384         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
47385
47386 2000-07-03  Jim Meyering  <meyering@lucent.com>
47387
47388         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
47389         This is necessary to get a definition of e.g., UTMP_FILE on
47390         HP-UX 10.20.
47391         From Bob Proulx.
47392
47393 2000-07-02  Jim Meyering  <meyering@lucent.com>
47394
47395         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
47396
47397         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
47398         AC_LIBOBJ(function_name).
47399         * m4/chown.m4: Likewise.
47400         * m4/fnmatch.m4: Likewise.
47401         * m4/ftruncate.m4: Likewise.
47402         * m4/getgroups.m4: Likewise.
47403         * m4/getline.m4: Likewise.
47404         * m4/group-member.m4: Likewise.
47405         * m4/jm-macros.m4: Likewise.
47406         * m4/lstat.m4: Likewise.
47407         * m4/malloc.m4: Likewise.
47408         * m4/memcmp.m4: Likewise.
47409         * m4/nanosleep.m4: Likewise.
47410         * m4/putenv.m4: Likewise.
47411         * m4/realloc.m4: Likewise.
47412         * m4/regex.m4: Likewise.
47413         * m4/stat.m4: Likewise.
47414         * m4/strftime.m4: Likewise.
47415
47416 2000-07-02  Jim Meyering  <meyering@lucent.com>
47417
47418         * lib/quotearg.c (mbstate_t): Don't define here.
47419
47420 2000-07-02  Jim Meyering  <meyering@lucent.com>
47421
47422         * lib/nanosleep.c (SIGCONT): Define if not already defined.
47423
47424 2000-07-01  Jim Meyering  <meyering@lucent.com>
47425
47426         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
47427
47428 2000-07-01  Jim Meyering  <meyering@lucent.com>
47429
47430         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
47431         problem.
47432
47433 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
47434
47435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
47436         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
47437
47438 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
47439
47440         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
47441         per change in ../m4/ls-mntd-fs.m4.
47442         (read_filesystem_list): Ignore symbolic links.
47443
47444 2000-06-29  Jim Meyering  <meyering@lucent.com>
47445
47446         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
47447         for declaration of strcmp.
47448
47449         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
47450
47451         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
47452         Avoid warning by casting result to `char *' to remove `const'.
47453
47454 2000-06-28  Jim Meyering  <meyering@lucent.com>
47455
47456         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
47457         included by quotearg.c, for which we perform this test.  From
47458         Bruno Haible.
47459
47460 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
47461
47462         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
47463         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
47464         <utmpx.h> exists, put readutmp.o into LIBOBJS.
47465
47466 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
47467
47468         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
47469
47470 2000-06-26  Paul Eggert  <eggert@twinsun.com>
47471
47472         savedir now sets errno on failure and invokes xmalloc to get memory.
47473         Fix a couple of other minor bugs while we're at it.
47474
47475         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
47476         (NAMLEN): Remove macro.
47477         (malloc, realloc): Remove decls.
47478         (stpcpy): Likewise.
47479         ("xalloc.h"): Include.
47480         (NAME_SIZE_DEFAULT): New macro.
47481         (savedir): Use xmalloc / xrealloc to allocate memory.
47482         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
47483         Skip "" directory entries.
47484         Use strlen to calculate directory entry length, since the old method
47485         is rarely used these days and isn't worth supporting.
47486         Don't use a pointer after freeing it.
47487         Check for integer overflow when calculating allocation size.
47488         Use memcpy to copy entries, instead of stpcpy.
47489         Set errno properly when returning NULL.
47490         Check for readdir error.
47491
47492 2000-06-26  Jim Meyering  <meyering@lucent.com>
47493
47494         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
47495
47496 2000-06-25  Jim Meyering  <meyering@lucent.com>
47497
47498         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
47499         Linux header bug when _XOPEN_SOURCE is defined to 500.
47500
47501 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
47502
47503         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
47504         deficiency.
47505
47506 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
47507
47508         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
47509         Include xalloc.h.
47510         Don't include <stdlib.h>.  Don't declare malloc, realloc.
47511
47512 2000-06-24  Jim Meyering  <meyering@lucent.com>
47513
47514         * m4/strerror_r.m4: Revive this file -- to try out an experimental
47515         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
47516         for which strerror does return char*, but which lacks a conveniently
47517         accessible declaration of the function.  If the compile-test says
47518         strerror_r doesn't work, then resort to a `run'-test that works on
47519         BeOS and segfaults on DEC Unix.
47520
47521 2000-06-24  Jim Meyering  <meyering@lucent.com>
47522
47523         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
47524
47525 2000-06-23  Paul Eggert  <eggert@twinsun.com>
47526
47527         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
47528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
47529
47530 2000-06-23  Paul Eggert  <eggert@twinsun.com>
47531
47532         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
47533         (mbrtowc, mbstate_t): Define substitutes if
47534         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
47535         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
47536         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
47537
47538 2000-06-23  Jim Meyering  <meyering@lucent.com>
47539
47540         * m4/afs.m4: Add missing AC_MSG_RESULT.
47541         Reported by Bruno Haible.
47542
47543         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
47544         Suggestion from Bruno Haible.
47545
47546 2000-06-23  Jim Meyering  <meyering@lucent.com>
47547
47548         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
47549
47550 2000-06-21  Jim Meyering  <meyering@lucent.com>
47551
47552         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
47553
47554 2000-06-21  Jim Meyering  <meyering@lucent.com>
47555
47556         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
47557         (noinst_HEADERS): Add getstr.h.
47558
47559         * lib/getline.c (getstr): Move into a separate file.
47560         * lib/getstr.c (getstr): New file, extracted from getline.c, with
47561         the following changes: new parameter, delim2; both delim[12]
47562         parameters have type `int', not `char'.  The latter would lose
47563         with 8-bit delimiters.
47564         * lib/getstr.h: New file.
47565
47566 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
47567
47568         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
47569         than 1024, return a memory chunk of least possible size, instead
47570         of size PATH_MAX + 2. In the loop, increment the size proportionally.
47571         Use free/xmalloc instead of xrealloc to avoid copying for very long
47572         paths.
47573
47574 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
47575
47576         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
47577         the empty string.
47578
47579 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
47580
47581         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
47582         address, not strdup.  Include <stdlib.h> and don't declare free().
47583
47584 2000-06-19  Jim Meyering  <meyering@lucent.com>
47585
47586         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
47587
47588 2000-06-18  Jim Meyering  <meyering@lucent.com>
47589
47590         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
47591
47592         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
47593         `checking whether...' message to be consistent with that of the
47594         lstat test.
47595
47596 2000-06-18  Jim Meyering  <meyering@lucent.com>
47597
47598         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
47599         Besides, these days every porting target provides a mkdir function.
47600
47601         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
47602         needed. (this snippet comes from src/system.h).
47603
47604 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
47605
47606         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
47607
47608 2000-06-15  Paul Eggert  <eggert@twinsun.com>
47609
47610         * lib/human.c (adjust_value): New function.
47611         (human_readable_inexact): Apply rounding style even when
47612         printing approximate values.
47613
47614 2000-06-14  Paul Eggert  <eggert@twinsun.com>
47615
47616         * lib/human.c (human_readable_inexact): Allow an input block
47617         size that is not a multiple of the output block size, and vice versa.
47618         Reported by Piergiorgio Sartor.
47619
47620 2000-06-14  Paul Eggert  <eggert@twinsun.com>
47621
47622         * lib/getdate.y (get_date): Apply relative times after time
47623         zone indicator, not before.  Reported by Todd A. Jacobs.
47624
47625 2000-06-13  Jim Meyering  <meyering@lucent.com>
47626
47627         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
47628
47629         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
47630
47631 2000-06-12  Paul Eggert  <eggert@twinsun.com>
47632
47633         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
47634
47635 2000-06-12  Jim Meyering  <meyering@lucent.com>
47636
47637         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
47638         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
47639         optional argument.
47640         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
47641         the optional argument, `lib'.
47642
47643 2000-06-08  Jim Meyering  <meyering@lucent.com>
47644
47645         * m4/largefile.m4: Remove file (now that it's part of autoconf).
47646
47647 2000-06-04  Paul Eggert  <eggert@twinsun.com>
47648
47649         Rewrite largefile configuration so that we don't need to run
47650         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
47651         AC_CANONICAL_HOST in configure.in -- jmm]
47652
47653         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
47654         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
47655         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
47656         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
47657         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
47658         All uses changed.
47659         Instead of inspecting the output of getconf, try to compile the
47660         test program without and with the macro definition.
47661         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
47662         for getconf.  Instead, check for the needed flags by compiling
47663         test programs.
47664
47665 2000-06-04  Paul Eggert  <eggert@twinsun.com>
47666
47667         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
47668
47669 2000-06-04  Jim Meyering  <meyering@lucent.com>
47670
47671         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
47672         SunOS 4.1.4 for which gid_t is an unsigned type.
47673
47674 2000-06-03  Jim Meyering  <meyering@lucent.com>
47675
47676         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
47677         now that autoconf requires that.
47678
47679         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
47680         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
47681         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
47682
47683 2000-06-03  Jim Meyering  <meyering@lucent.com>
47684
47685         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
47686
47687 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
47688
47689         * m4/glibc21.m4: New file.
47690         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
47691
47692 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
47693
47694         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
47695         newer, don't install charset.alias.
47696         * lib/config.charset: Change the Linux/glibc rules so they become empty
47697         on glibc-2.1 or newer.
47698
47699 2000-06-02  Jim Meyering  <meyering@lucent.com>
47700
47701         * lib/mountlist.c: Back out last change.  Instead, do this...
47702         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
47703         me_dummy member using the same `ignore'-testing code.
47704         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
47705         fs_type strings.
47706         From Mark D. Roth.
47707
47708 2000-05-29  Jim Meyering  <meyering@lucent.com>
47709
47710         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
47711         mounts with the `ignore' attribute.  Based on a patch from
47712         Mark D. Roth.
47713
47714 2000-05-28  Jim Meyering  <meyering@lucent.com>
47715
47716         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
47717         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47718         * m4/stat.m4: Likewise.
47719         * m4/lstat.m4: Likewise.
47720         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
47721
47722         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
47723         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
47724
47725 2000-05-26  Jim Meyering  <meyering@lucent.com>
47726
47727         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
47728
47729 2000-05-24  Jim Meyering  <meyering@lucent.com>
47730
47731         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
47732         autoconf requires that.
47733         * m4/lib-check.m4: Likewise.
47734         * m4/jm-macros.m4: Likewise.
47735         * m4/strftime.m4: Likewise.
47736
47737         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
47738         AC_CHECK_DECLS, now that autoconf requires that.
47739
47740 2000-05-22  Jim Meyering  <meyering@lucent.com>
47741
47742         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47743         * m4/lstat.m4: Likewise.
47744
47745 2000-05-22  Jim Meyering  <meyering@lucent.com>
47746
47747         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
47748
47749 2000-05-20  Jim Meyering  <meyering@lucent.com>
47750
47751         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
47752         (jm_PREREQ): Use it.
47753
47754 2000-05-18  Jim Meyering  <meyering@lucent.com>
47755
47756         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
47757         back, too, since it may have been modified by allocate_entry.
47758         (hash_delete): Rewrite to use neither the assignment operator
47759         nor the comma operator in an if-expression.
47760
47761 2000-05-15  Paul Eggert  <eggert@twinsun.com>
47762
47763         * lib/closeout.c:
47764         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
47765         Remove; no longer needed.
47766         "quotearg.h": Add include.
47767         (file_name): Do not bother to explicitly initialize to NULL; it's less
47768         efficient on some hosts.
47769         (close_stdout_status): Remove test as to whether stdout was already
47770         closed; it breaks for the case "echo x | sort >&-".
47771         Quote file name colons.
47772         Do not assume that _("write error") lacks format strings.
47773
47774 2000-05-15  Jim Meyering  <meyering@lucent.com>
47775
47776         * lib/version-etc.c (version_etc_copyright): Update the copyright
47777         string used in all --version output.
47778
47779 2000-05-14  Jim Meyering  <meyering@lucent.com>
47780
47781         * lib/closeout.c (close_stdout_set_file_name): New function.
47782         (close_stdout_status): Use new file-scoped global.
47783         Return right away if fstat says the stdout file descriptor is invalid.
47784         * lib/closeout.h (close_stdout_set_file_name): Declare.
47785
47786 2000-05-10  Jim Meyering  <meyering@lucent.com>
47787
47788         * lib/closeout.c [default_exit_status]: New file-scoped variable.
47789         (close_stdout_set_status): New function.
47790         * lib/closeout.h (close_stdout_set_status): Declare.
47791
47792 2000-05-09  Jim Meyering  <meyering@lucent.com>
47793
47794         * m4/gettext.m4: Rename this...
47795         * m4/libintl.m4: ...to this.
47796
47797 2000-05-08  Jim Meyering  <meyering@lucent.com>
47798
47799         * lib/long-options.c: Don't include closeout.h.
47800         (parse_long_options): Don't call close_stdout for --version.
47801
47802 2000-05-06  Paul Eggert  <eggert@twinsun.com>
47803
47804         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
47805         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
47806         2.1.3 bug.  This avoids a clash when files like regex.c define
47807         _GNU_SOURCE.
47808
47809 2000-05-06  Jim Meyering  <meyering@lucent.com>
47810
47811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
47812         (AC_REPLACE_FUNCS): Add strnlen.
47813
47814         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
47815         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
47816
47817         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
47818         AC_SEARCH_LIBS call for nanosleep.
47819         (LIB_NANOSLEEP): Set and AC_SUBST.
47820
47821 2000-05-06  Jim Meyering  <meyering@lucent.com>
47822
47823         * lib/strnlen.c: Undefine __strnlen and strnlen.
47824         [!weak_alias]: Define __strnlen to strnlen.
47825
47826         * lib/atexit.c: New file, from libiberty.
47827
47828 2000-05-06  Jim Meyering  <meyering@lucent.com>
47829
47830         * lib/closeout.c (close_stdout_status): Also check for errors on the
47831         stderr stream.
47832
47833 2000-05-05  Jim Meyering  <meyering@lucent.com>
47834
47835         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
47836         AC_SEARCH_LIBS call for clock_gettime.
47837         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
47838
47839         * m4/search-libs.m4: Update from autoconf.
47840
47841         su doesn't work on Solaris 2.6.
47842         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
47843         <shadow.h>.  Reported by Dragos Harabor.
47844
47845 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
47846
47847         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
47848         memcpy instead of xmalloc, xrealloc, path_concat.
47849         (locale_charset): Treat empty environment variables as absent.
47850         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
47851
47852 2000-05-04  Jim Meyering  <meyering@lucent.com>
47853
47854         * lib/getopt.c: Update from glibc.
47855         * lib/obstack.c: Likewise.
47856         * lib/obstack.h: Likewise.
47857         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
47858         file
47859
47860         * lib/regex.h: Likewise.
47861         * lib/strndup.c: Likewise.
47862         * lib/strnlen.c: New file, from glibc.
47863
47864 2000-05-03  Jim Meyering  <meyering@lucent.com>
47865
47866         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
47867
47868 2000-05-02  Paul Eggert  <eggert@twinsun.com>
47869
47870         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
47871         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
47872         compile-time test, rather than inspecting host and OS, to
47873         decide whether to define _LARGEFILE_SOURCE.
47874
47875 2000-05-01  Jim Meyering  <meyering@lucent.com>
47876
47877         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
47878
47879         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
47880         Based on a patch from Bruno Haible.
47881
47882 2000-05-01  Jim Meyering  <meyering@lucent.com>
47883
47884         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
47885
47886 2000-04-29  Jim Meyering  <meyering@lucent.com>
47887
47888         * lib/path-concat.c: Declare strdup only if it's not defined.
47889         * lib/canon-host.c: Likewise.
47890
47891 2000-04-28  Jim Meyering  <meyering@lucent.com>
47892
47893         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
47894         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
47895         is included first, then limits.h is included by locale.h by libintl.h.
47896         From John David Anglin.
47897
47898 2000-04-25  Jim Meyering  <meyering@lucent.com>
47899
47900         * lib/makepath.c (S_IRWXUGO): Define.
47901         (make_path): Always perform explicit chmod if MODE specifies any
47902         of the `special' permission bits.  Prompted by a bug report against
47903         install from Mate Wierdl and Joost van Baal.
47904
47905 2000-04-18  Jim Meyering  <meyering@lucent.com>
47906
47907         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
47908         (jm_PREREQ): Use it.
47909
47910 2000-04-18  Jim Meyering  <meyering@lucent.com>
47911
47912         * lib/README: New file.
47913
47914         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
47915         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
47916
47917 2000-04-17  Jim Meyering  <meyering@lucent.com>
47918
47919         Get it right :-)
47920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
47921         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
47922         Suggestion from Akim Demaille.
47923
47924 2000-04-17  Jim Meyering  <meyering@lucent.com>
47925
47926         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
47927         the definition of it to rpl_strftime also defined-away the system's
47928         declaration.
47929
47930 2000-04-15  Jim Meyering  <meyering@lucent.com>
47931
47932         Use `C' to denote so-called `contiguous' files, the same way
47933         that tar does.
47934         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
47935         (ftypelet): Use S_ISCTG.
47936         From Michael Deutschmann.
47937
47938 2000-04-14  Jim Meyering  <meyering@lucent.com>
47939
47940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
47941         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
47942         clobbered.
47943
47944 2000-04-14  Jim Meyering  <meyering@lucent.com>
47945
47946         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
47947
47948 2000-04-13  Jim Meyering  <meyering@lucent.com>
47949
47950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
47951         AH_VERBATIM to insert required #ifndef into config.h.in.
47952         Suggestion from Akim Demaille.
47953
47954 2000-04-12  Jim Meyering  <meyering@lucent.com>
47955
47956         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
47957         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
47958         Christian Krackowizer.
47959
47960         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
47961         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
47962         (AC_SYS_LARGEFILE): Require.
47963         (AM_C_PROTOTYPES): Require.
47964
47965 2000-04-08  Jim Meyering  <meyering@lucent.com>
47966
47967         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
47968         names don't conflict.  Reported by Eli Zaretskii.
47969
47970 2000-04-07  Jim Meyering  <meyering@lucent.com>
47971
47972         * lib/putenv.c: Move inclusion of errno.h so it follows that of
47973         sys/types.h, to work around system header problems on AIX 3.2.5.
47974         From Bruno Haible.
47975
47976 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
47977
47978         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
47979         bug.  Deal with the different error behavior of Irix iconv.
47980
47981 2000-04-05  Paul Eggert  <eggert@twinsun.com>
47982
47983         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
47984         IRIX if the installer said otherwise.
47985
47986 2000-04-05  Jim Meyering  <meyering@lucent.com>
47987
47988         Portability tweaks required for ultrix4.3.
47989         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
47990         (jm_CHECK_DECLS): Add getutent to the list of functions.
47991         (_jm_DECL_HEADERS): Add utmpx.h.
47992         From John David Anglin.
47993
47994         * m4/strftime.m4: Back out the 2000-04-02 change.
47995         Instead of that change, simply undefine putenv in the test program.
47996
47997 2000-04-05  Jim Meyering  <meyering@lucent.com>
47998
47999         Portability tweaks required for ultrix4.3.
48000         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
48001         getutent.
48002         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
48003         * lib/canon-host.c: Declare strdup.
48004         * lib/path-concat.c: Likewise.
48005         From John David Anglin.
48006
48007 2000-04-04  Jim Meyering  <meyering@lucent.com>
48008
48009         Be more DOS 8.3-friendly.
48010         * lib/ref-add.sin: Renamed from ref-add.sed.in.
48011         * lib/ref-del.sin: Renamed from ref-del.sed.in.
48012         * lib/Makefile.am: Reflect renaming.
48013         Reported by Eli Zaretskii.
48014
48015         Use a temporary file name that won't clash with `charset.alias'
48016         in the DOS 8.3 name space.
48017         * lib/Makefile.am (charset_tmp): Define.
48018         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
48019         (uninstall-local): Likewise.
48020         Reported by Eli Zaretskii.
48021
48022 2000-04-03  Jim Meyering  <meyering@lucent.com>
48023
48024         * m4/gettext.m4: Fix typo in comment.
48025
48026         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
48027         textutils/configure.in).  Suggestion from Paul Eggert.
48028         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
48029
48030 2000-04-02  Paul Eggert  <eggert@twinsun.com>
48031
48032         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
48033         variable in the shell rather than using putenv, which isn't
48034         portable.  This avoids the configure-time inter-test dependency
48035         on the potentially-renamed putenv function.
48036
48037 2000-03-30  Paul Eggert  <eggert@twinsun.com>
48038
48039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
48040         before checking struct stat.st_blksize, so that
48041         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
48042
48043 2000-03-29  Paul Eggert  <eggert@twinsun.com>
48044
48045         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
48046         since strftime.c uses HAVE_STRFTIME to decide whether to use
48047         the underlying strftime.
48048
48049 2000-03-29  Paul Eggert  <eggert@twinsun.com>
48050
48051         * lib/time/strftime.c (my_strftime): Make sure we call the system
48052         strftime, not ourselves, when invoking the underlying strftime.
48053
48054 2000-03-24  Jim Meyering  <meyering@lucent.com>
48055
48056         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
48057         (charset_alias): Define.
48058         (install-exec-local): Factor out common code.
48059         (uninstall-local): Split lines longer than 80.
48060         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
48061         (SUFFIXES): Define.
48062         (.sed.in.sed): New rule.  Don't redirect directly to $@.
48063         (CLEANFILES): Add ref-add.sed and ref-del.sed.
48064
48065 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
48066
48067         * lib/config.charset: Output a line containing "Packages using this
48068         file".
48069         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
48070         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
48071         ref-del.sed): New rules.
48072
48073 2000-03-17  Jim Meyering  <meyering@lucent.com>
48074
48075         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
48076         Otherwise, include <strings.h>
48077
48078 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
48079
48080         * lib/unicodeio.c (utf8_wctomb): New function.
48081         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
48082         format instead of in UCS-4 with platform dependent endianness.
48083
48084 2000-03-10  Jim Meyering  <meyering@lucent.com>
48085
48086         * m4/lib-check.m4: Look for getspnam in -lgen, too.
48087         From Marco Franzen.
48088
48089 2000-03-07  Paul Eggert  <eggert@twinsun.com>
48090
48091         * lib/savedir.c (savedir): Work even if directory size is
48092         negative; this can happen with some screwy NFS configurations.
48093
48094 2000-03-06  Jim Meyering  <meyering@lucent.com>
48095
48096         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
48097         if it's NULL (because we ran out of memory).  From Bruno Haible.
48098
48099 2000-03-05  Jim Meyering  <meyering@lucent.com>
48100
48101         * lib/localcharset.c ("path-concat.h"): Include.
48102         (get_charset_aliases): Use path_concat instead of ANSI string
48103         concatenation.
48104
48105         * lib/unicodeio.h (PARAMS): Define.
48106         Use it to guard prototype.
48107
48108 2000-03-04  Jim Meyering  <meyering@lucent.com>
48109
48110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
48111         for lib/localcharset.c.
48112
48113 2000-03-04  Jim Meyering  <meyering@lucent.com>
48114
48115         * lib/Makefile.am (install-exec-local): Create $(libdir) before
48116         installing into it.
48117         (uninstall-local): Uncomment this rule so `make distcheck' works
48118         once again.
48119
48120         * lib/unicodeio.c (<errno.h>): Include it.
48121         (errno): Declare if not defined.
48122
48123         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
48124
48125         * lib/config.charset: New version, incorporating remarks from a linux
48126         i18n mailing list.  From Bruno Haible.
48127
48128 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
48129
48130         * m4/codeset.m4: New file.
48131         * m4/iconv.m4: New file.
48132         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
48133
48134 2000-03-03  Jim Meyering  <meyering@lucent.com>
48135
48136         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
48137
48138 2000-03-02  Jim Meyering  <meyering@lucent.com>
48139
48140         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
48141         the messages come out on separate lines.
48142
48143         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
48144         rather than jm_CHECK_DECLARATIONS.
48145         * m4/decl.m4: Remove now-unused file.
48146
48147         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
48148         geteuid.
48149
48150 2000-03-02  Jim Meyering  <meyering@lucent.com>
48151
48152         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
48153
48154 2000-03-01  Jim Meyering  <meyering@lucent.com>
48155
48156         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
48157         * lib/unicodeio.c: Likewise.
48158
48159 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
48160
48161         * lib/config.charset: New file.
48162         * lib/localcharset.c: New file.
48163         * lib/unicodeio.h, lib/unicodeio.c: New files.
48164         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
48165         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
48166         (noinst_HEADERS): Add unicodeio.h.
48167         (all-local, install-exec-local, charset.alias): New targets.
48168
48169 2000-02-28  Paul Eggert  <eggert@twinsun.com>
48170
48171         * lib/quotearg.c (ALERT_CHAR): New macro.
48172         (quotearg_buffer_restyled): Use it.
48173
48174 2000-02-27  Jim Meyering  <meyering@lucent.com>
48175
48176         * m4/check-decl.m4: Add getenv to the list.
48177
48178 2000-02-27  Jim Meyering  <meyering@lucent.com>
48179
48180         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
48181         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
48182
48183         * lib/backupfile.c: Guard inclusion of stdlib.h with
48184         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
48185         Declare malloc if needed.
48186
48187         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
48188         `#ifndef HAVE_DECL..'
48189         now that autoconf always defines the HAVE_DECL_ symbols.
48190         * lib/human.c: Likewise.
48191         * lib/same.c: Likewise.
48192         * lib/strtoumax.c: Likewise.
48193
48194         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
48195         declaration check was not run.
48196         * lib/hash.c: Likewise.
48197         * lib/human.c: Likewise.
48198         * lib/same.c: Likewise.
48199         * lib/strtoumax.c: Likewise.
48200
48201         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
48202         `.', then first look up the entire `.'-containing string as a login
48203         name.
48204
48205 2000-02-23  Jim Meyering  <meyering@lucent.com>
48206
48207         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
48208         in place of my hack.
48209
48210 2000-02-18  Paul Eggert  <eggert@twinsun.com>
48211
48212         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
48213         (textint): New typedef.
48214         (parser_control): Member year changed from int to textint.
48215         All uses changed.
48216         (YYSTYPE): Removed; replaced by %union with int and textint members.
48217         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
48218         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
48219         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
48220         (tSNUMBER, tUNUMBER): Now of type <textintval>.
48221         (date, number, to_year): Use width of number in digits, not its value,
48222         to determine whether it's a 2-digit year, or a 2-digit time.
48223         (yylex): Store number of digits of numeric tokens.
48224         Reported by John Kendall.
48225
48226         (parser_control): Changed from struct parser_control to typedef (for
48227         consistency).  All uses changed.
48228
48229         (tID): Removed; not used.
48230         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
48231
48232 2000-02-14  Paul Eggert  <eggert@twinsun.com>
48233
48234         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
48235         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
48236
48237 2000-02-12  Jim Meyering  <meyering@lucent.com>
48238
48239         * lib/userspec.c (ISDIGIT): Define it.
48240         (isdigit): Remove definition.
48241         (is_number): Use ISDIGIT, not isdigit.
48242         <libintl.h>: Include.
48243         (_ and N_): Define.
48244         (parse_user_spec): Mark translatable strings.
48245
48246 2000-02-10  Jim Meyering  <meyering@lucent.com>
48247
48248         With these changes, nanosleep.[ch] are finally enough like the other
48249         lib/* replacement files to compile on a few more losing systems.
48250
48251         * lib/nanosleep.h: Don't include config.h.
48252         Remove prototype from declaration of nanosleep.
48253         (PARAMS): Remove now-unneeded definition.
48254         * lib/nanosleep.c: #undef nanosleep.
48255         (rpl_nanosleep): Rename from nanosleep.
48256
48257 2000-02-10  Jim Meyering  <meyering@lucent.com>
48258
48259         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
48260         gnu_nanosleep to rpl_nanosleep.
48261
48262 2000-02-09  Jim Meyering  <meyering@lucent.com>
48263
48264         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
48265         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
48266
48267 2000-02-08  Akim Demaille  <akim@epita.fr>
48268
48269         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
48270         `[' and `]' and remove uses of `changequote'.
48271         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
48272         (AC_SYS_LARGEFILE): Likewise.
48273         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48274         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
48275         of changequote.
48276         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
48277         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
48278         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
48279         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
48280
48281 2000-02-05  Jim Meyering  <meyering@lucent.com>
48282
48283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
48284         Remove explicit use of AC_HEADER_TIME.  It is required by
48285         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
48286         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
48287         in autoconf whereby the expansion of the latter ended up preceding
48288         the expansion of its prerequisite, AC_HEADER_TIME.
48289         Reported by Volker Borchert.
48290
48291 2000-02-03  Jim Meyering  <meyering@lucent.com>
48292
48293         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
48294
48295 2000-02-03  Jim Meyering  <meyering@lucent.com>
48296
48297         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
48298         rather than with `#if HAVE_UTMPNAME'.
48299
48300 2000-02-02  Jim Meyering  <meyering@lucent.com>
48301
48302         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
48303         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
48304         Reported by Eli Zaretskii.
48305
48306 2000-02-01  Jim Meyering  <meyering@lucent.com>
48307
48308         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
48309
48310 2000-01-31  Jim Meyering  <meyering@lucent.com>
48311
48312         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
48313         functions.  Add the time.h and sys/time.h headers along with the
48314         AC_REQUIRE'ment of AC_HEADER_TIME.
48315
48316 2000-01-31  Jim Meyering  <meyering@lucent.com>
48317
48318         * lib/nanosleep.h (nanosleep): Guard declaration with
48319         `#if ! HAVE_DECL_NANOSLEEP'.
48320         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
48321         the declaration in that vendor's sys/timers.h.
48322         Reported by Christian Krackowizer.
48323
48324         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
48325         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
48326         (ISPRINT): Likewise.
48327         Reported by Tom Tromey.
48328
48329 2000-01-30  Jim Meyering  <meyering@lucent.com>
48330
48331         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
48332
48333         * m4/prereq.m4 (utmp_includes): Define.
48334         Check for ut_user and ut_name members in both struct utmpx
48335         and struct utmp.
48336
48337 2000-01-30  Jim Meyering  <meyering@lucent.com>
48338
48339         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
48340         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
48341         header files where only utmpx.ut_user is declared.
48342
48343         * lib/readutmp.h (UT_USER): Define.
48344
48345 2000-01-29  Jim Meyering  <meyering@lucent.com>
48346
48347         * m4/lib-check.m4: New file containing library-related checks from
48348         fileutils and sh-utils (textutils had none).
48349
48350 2000-01-28  Jim Meyering  <meyering@lucent.com>
48351
48352         * m4/perl.m4: Change format of warning message to look more like that
48353         from the missing script.  Suggestion from François Pinard.
48354
48355 2000-01-25  Jim Meyering  <meyering@lucent.com>
48356
48357         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
48358         well as time.h in the compile check.
48359         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
48360         Fix typo in cross-compiling case: s/yes/no/.
48361
48362 2000-01-23  Jim Meyering  <meyering@lucent.com>
48363
48364         * m4/jm-macros.m4: Move df-related tests here from
48365         fileutils/configure.in
48366
48367         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
48368         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
48369
48370         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
48371         s/space/ac_fsusage_space/.
48372         (jm_FILE_SYSTEM_USAGE): Take two parameters.
48373
48374         * m4/ftruncate.m4: New file (derived from part of
48375         fileutils/configure.in).
48376         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
48377         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
48378
48379         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
48380         AC_SUBST these here, rather than just in sh-util/configure.in, so
48381         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
48382         all the same.
48383         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
48384         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
48385         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
48386         (AC_SUBST(POW_LIBM)): Likewise.
48387         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
48388
48389 2000-01-23  Jim Meyering  <meyering@lucent.com>
48390
48391         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
48392         obstack.c.
48393
48394 2000-01-22  Jim Meyering  <meyering@lucent.com>
48395
48396         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
48397
48398         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
48399
48400         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
48401         configure.in
48402         (AC_CHECK_HEADERS): Likewise for sh-utils.
48403         (AC_CHECK_HEADERS): Likewise for textutils.
48404         Merge the three lists of headers.
48405
48406         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
48407         from fileutils' configure.in.
48408
48409         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
48410         code. Moved tests into their own function (_jm_DECL_HEADERS) in
48411         check-decl.m4.
48412
48413         * m4/check-decl.m4: Use #if rather than #ifdef.
48414         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
48415         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
48416         (_jm_DECL_HEADERS): Define new function.
48417         (jm_CHECK_DECLARATIONS): Require it.
48418
48419 2000-01-22  Jim Meyering  <meyering@lucent.com>
48420
48421         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
48422         [! HAVE_DECL_STRTOULL]: Declare strtoull.
48423         Required for some AIX systems.  Reported by Christian Krackowizer.
48424         [TESTING] (main): New function.
48425
48426         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
48427         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
48428         letters.
48429
48430         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
48431         iswprint.
48432
48433         * lib/strverscmp.c (ISDIGIT): Define.
48434         (strverscmp): Use ISDIGIT, not isdigit.
48435
48436 2000-01-19  Jim Meyering  <meyering@lucent.com>
48437
48438         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
48439         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
48440         defines `struct timespec' in <sys/time.h>
48441
48442         * m4/c-bs-a.m4: Remove uses of changequote altogether.
48443         Thanks to Akim for explaining.
48444
48445 2000-01-17  Paul Eggert  <eggert@twinsun.com>
48446
48447         * lib/nanosleep.c (nanosleep):
48448         Don't use SA_INTERRUPT to decide whether to call sigaction, as
48449         POSIX.1 doesn't require SA_INTERRUPT and some systems
48450         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
48451         it's been part of POSIX.1 since day 1 (in 1988).
48452
48453 2000-01-17  Jim Meyering  <meyering@lucent.com>
48454
48455         * lib/interlock: Remove unused file.  Reported by François Pinard.
48456
48457 2000-01-16  Paul Eggert  <eggert@twinsun.com>
48458
48459         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
48460         alert, backslash, formfeed, and vertical tab unnecessarily in
48461         shell quoting style.
48462
48463 2000-01-16  Jim Meyering  <meyering@lucent.com>
48464
48465         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
48466         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
48467         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
48468         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
48469
48470 2000-01-16  Jim Meyering  <meyering@lucent.com>
48471
48472         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
48473         because the latter didn't work.
48474
48475 2000-01-15  Jim Meyering  <meyering@lucent.com>
48476
48477         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
48478         (AC_REPLACE_FUNCS): Add memcpy and memset.
48479         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
48480         Add strpbrk.
48481         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
48482
48483 2000-01-12  Jim Meyering  <meyering@lucent.com>
48484
48485         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
48486         (jm_PREREQ): Use it.
48487         (jm_PREREQ_READUTMP): New macro.
48488         (jm_PREREQ): Use it.
48489
48490 2000-01-11  Paul Eggert  <eggert@twinsun.com>
48491
48492         Quote multibyte characters correctly.
48493         * m4/c-bs-a.m4: New file.
48494         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
48495         (jm_PREREQ): Use it.
48496
48497 2000-01-11  Paul Eggert  <eggert@twinsun.com>
48498
48499         * m4/uintmax_t.m4: Port to autoconf 2.13.
48500
48501 2000-01-08  Jim Meyering  <meyering@ascend.com>
48502
48503         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
48504         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
48505
48506 2000-01-04  Jim Meyering  <meyering@ascend.com>
48507
48508         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
48509         jm_STRUCT_DIRENT_D_TYPE.
48510         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
48511         jm_STRUCT_DIRENT_D_INO.
48512         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
48513         jm_STRUCT_UTIMBUF.
48514         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
48515         renamings.
48516         * m4/utime.m4: Likewise.
48517
48518         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
48519         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
48520
48521 2000-01-03  Paul Eggert  <eggert@twinsun.com>
48522
48523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
48524         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
48525
48526 2000-01-02  Jim Meyering  <meyering@ascend.com>
48527
48528         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
48529         remember if this is necessary.
48530
48531 1999-12-26  Jim Meyering  <meyering@ascend.com>
48532
48533         * m4/jm-macros.m4: Use it here.
48534         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
48535
48536 1999-12-23  Jim Meyering  <meyering@ascend.com>
48537
48538         * m4/jm-macros.m4: Check for clock_gettime (moved from
48539         fileutils/configure.in)
48540         Check for gettimeofday.
48541
48542 1999-12-20  Jim Meyering  <meyering@ascend.com>
48543
48544         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
48545         autoconf-2.14a-1999-12-20.
48546
48547 1999-12-19  Jim Meyering  <meyering@ascend.com>
48548
48549         * m4/lstat-slash.m4: New file.
48550         * m4/jm-macros.m4: Use the new macro:
48551         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48552
48553 1999-12-07  Jim Meyering  <meyering@ascend.com>
48554
48555         * m4/perl.m4: Require that File::Compare be available, too.
48556         Too many systems seem to lack it.
48557
48558         * m4/strftime.m4: Add checks for most of the cpp macros tested in
48559         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
48560
48561 1999-11-18  Paul Eggert  <eggert@twinsun.com>
48562
48563         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
48564         problem with the QNX 4.25 shell, which doesn't propagate exit
48565         status of failed commands inside shell assignments.
48566
48567 1999-11-17  Jim Meyering  <meyering@ascend.com>
48568
48569         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
48570
48571 1999-11-07  Jim Meyering  <meyering@ascend.com>
48572
48573         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
48574
48575 1999-11-06  Jim Meyering  <meyering@ascend.com>
48576
48577         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
48578         * m4/jm-macros.m4 (jm_MACROS): Use it here.
48579
48580 1999-11-05  Jim Meyering  <meyering@ascend.com>
48581
48582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
48583         configure.in of textutils, fileutils, and sh-utils into this one
48584         (shared between those packages) file.
48585         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
48586         AC_STRUCT_ST_BLKSIZE.
48587
48588 1999-11-03  Jim Meyering  <meyering@ascend.com>
48589
48590         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
48591         of AC_CHECK_TYPE checks includes unistd.h.
48592         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
48593         Suggestion from Akim Demaille.
48594
48595 1999-10-30  Jim Meyering  <meyering@ascend.com>
48596
48597         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
48598         m4-quoted string.
48599         * m4/ls-mntd-fs.m4: Likewise.
48600         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
48601         * m4/jm-winsz1.m4: Likewise.
48602
48603         * m4/const.m4: Remove file, since the fix made it into the experimental
48604         version of autoconf.
48605         * m4/mktime.m4: Likewise.
48606
48607         * m4/check-type.m4: Remove file, now that the latest version of
48608         AC_CHECK_TYPE takes a third arg to specify additional #includes.
48609
48610         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
48611         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
48612         AC_CHECK_TYPE.
48613
48614 1999-10-04  Jim Meyering  <meyering@ascend.com>
48615
48616         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
48617
48618 1999-09-22  Paul Eggert  <eggert@twinsun.com>
48619
48620         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
48621         2.95.1 bug with HP-UX 10.20.
48622
48623 1999-09-17  Jim Meyering  <meyering@ascend.com>
48624
48625         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
48626         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
48627         due to missing strdup (against sh-utils-2.0).
48628
48629 1999-08-29  Jim Meyering  <meyering@ascend.com>
48630
48631         * m4/jm-macros.m4: Require jm_BISON.
48632         * m4/bison.m4: New file.
48633
48634 1999-08-17  Paul Eggert  <eggert@twinsun.com>
48635
48636         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
48637         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
48638
48639 1999-08-05  Jim Meyering  <meyering@ascend.com>
48640
48641         * m4/getline.m4: Rename test file from conftestdata to conftest.data
48642         to avoid conflicts with `conftest' on 8+3 filesystems.
48643         Suggestion from Eli Zaretskii.
48644
48645 1999-08-04  Jim Meyering  <meyering@ascend.com>
48646
48647         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
48648         fileutils and sh-utils (textutils's getline test was inadequate).
48649         (AM_FUNC_GETLINE): Run this test.
48650         (AC_CHECK_FUNCS): Check for getdelim.
48651         Reported by Bob Proulx.
48652
48653 1999-08-02  Jim Meyering  <meyering@ascend.com>
48654
48655         * m4/jm-macros.m4: Add a comment.
48656
48657 1999-08-01  Paul Eggert  <eggert@twinsun.com>
48658
48659         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
48660         <inttypes.h> defines strtoumax as a macro (and not as a
48661         function).
48662
48663 1999-08-01  Paul Eggert  <eggert@twinsun.com>
48664
48665         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
48666         that we can shift, multiply and divide unsigned long long
48667         values; Ultrix cc can't do it.
48668
48669 1999-08-01  Paul Eggert  <eggert@twinsun.com>
48670
48671         * m4/mktime.m4: New file, which is a preview of what should appear
48672         in the next public autoconf release.
48673
48674 1999-08-01  Paul Eggert  <eggert@twinsun.com>
48675
48676         * m4/lfs.m4: Remove this file.
48677         * m4/largefile.m4: New file.  It contains the old contents of
48678         lfs.m4, except that all names with prefix AC_LFS have been
48679         changed to use the prefix AC_SYS_LARGEFILE instead, to be
48680         compatible with future autoconf versions.  Also, some minor m4
48681         quoting problems have been fixed.
48682
48683 1999-08-01  Paul Eggert  <eggert@twinsun.com>
48684
48685         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
48686         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
48687         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
48688         and simplify the shell code.
48689
48690 1999-08-01  Jim Meyering  <meyering@ascend.com>
48691
48692         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
48693         m4.
48694
48695 1999-07-20  Jim Meyering  <meyering@ascend.com>
48696
48697         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
48698
48699 1999-07-15  Jim Meyering  <meyering@ascend.com>
48700
48701         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
48702
48703 1999-05-22  Jim Meyering  <meyering@ascend.com>
48704
48705         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
48706
48707 1999-05-20  Jim Meyering  <meyering@ascend.com>
48708
48709         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
48710         Add a colon after each `then' in case $4 is empty.
48711
48712 1999-05-16  Jim Meyering  <meyering@ascend.com>
48713
48714         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
48715
48716 1999-05-10  Jim Meyering  <meyering@ascend.com>
48717
48718         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
48719
48720         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
48721         AC_FUNC_MKTIME.
48722
48723 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
48724
48725         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
48726
48727 1999-05-04  Paul Eggert  <eggert@twinsun.com>
48728
48729         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
48730         not CPPFLAGS, so that linking works correctly in IRIX.
48731
48732 1999-04-30  Paul Eggert  <eggert@twinsun.com>
48733
48734         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
48735
48736 1999-04-20  Paul Eggert  <eggert@twinsun.com>
48737
48738         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
48739         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
48740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
48741         jm_AC_TYPE_UNSIGNED_LONG_LONG.
48742         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
48743
48744         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
48745
48746 1999-04-20  Jim Meyering  <meyering@ascend.com>
48747
48748         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
48749         AC_REPLACE xstroull if necessary.  From Paul Eggert.
48750         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
48751
48752 1999-04-18  Jim Meyering  <meyering@ascend.com>
48753
48754         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
48755         * m4/jm-macros.m4: Use it.
48756
48757 1999-04-06  Jim Meyering  <meyering@ascend.com>
48758
48759         * m4/strftime.m4: Remove test for %f.
48760
48761 1999-03-29  Jim Meyering  <meyering@ascend.com>
48762
48763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
48764         superset of the AC_TYPE_* checks in the textutils, fileutils,
48765         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
48766         AC_TYPE_PID_T.
48767
48768 1999-03-28  Jim Meyering  <meyering@ascend.com>
48769
48770         * m4/jm-macros.m4: Define GNU_PACKAGE here.
48771         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
48772         replaced e.g., in the *.sh files of the sh-utils.
48773
48774 1999-03-20  Jim Meyering  <meyering@ascend.com>
48775
48776         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
48777         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
48778         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
48779
48780 1999-03-19  Jim Meyering  <meyering@ascend.com>
48781
48782         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
48783
48784 1999-03-12  Jim Meyering  <meyering@ascend.com>
48785
48786         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
48787
48788 1999-03-07  Jim Meyering  <meyering@ascend.com>
48789
48790         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
48791         declared.
48792
48793 1999-02-17  Jim Meyering  <meyering@ascend.com>
48794
48795         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
48796         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
48797
48798 1999-02-07  Jim Meyering  <meyering@ascend.com>
48799
48800         * m4/group-member.m4: New file -- extracted from sh-utils'
48801         configure.in.
48802
48803         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
48804         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
48805
48806 1999-02-06  Jim Meyering  <meyering@ascend.com>
48807
48808         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
48809         * m4/fnmatch.m4: Likewise.
48810         * m4/getgroups.m4: Likewise.
48811         * m4/lstat.m4: Likewise.
48812         * m4/malloc.m4: Likewise.
48813         * m4/putenv.m4: Likewise.
48814         * m4/realloc.m4: Likewise.
48815         * m4/regex.m4: Likewise.
48816         * m4/stat.m4: Likewise.
48817         * m4/strftime.m4: Likewise.
48818         Suggestion from Alain Magloire.
48819
48820         * m4/chown.m4: Use `.$ac_objext', not `.o'.
48821         * m4/fnmatch.m4: Likewise.
48822         * m4/getgroups.m4: Likewise.
48823         * m4/getline.m4: Likewise.
48824         * m4/lstat.m4: Likewise.
48825         * m4/malloc.m4: Likewise.
48826         * m4/memcmp.m4: Likewise.
48827         * m4/putenv.m4: Likewise.
48828         * m4/realloc.m4: Likewise.
48829         * m4/regex.m4: Likewise.
48830         * m4/stat.m4: Likewise.
48831         * m4/strftime.m4: Likewise.
48832         Suggestion from Alain Magloire.
48833
48834         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
48835         an argument.
48836
48837         * m4/regex.m4: Add a run-time Test for proper operation of
48838         re_compile_pattern.
48839
48840 1999-01-31  Jim Meyering  <meyering@ascend.com>
48841
48842         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
48843
48844 1999-01-30  Jim Meyering  <meyering@ascend.com>
48845
48846         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
48847
48848         * m4/jm-mktime.m4: Make this a wrapper around the official
48849         AM_FUNC_MKTIME rather than my private copy, now that the official one
48850         is up to date.
48851         * m4/mktime.m4: Remove file.
48852
48853         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
48854         * m4/uptime.m4: Likewise.
48855         * m4/uintmax_t.m4: Likewise.
48856
48857 1999-01-28  Jim Meyering  <meyering@ascend.com>
48858
48859         * m4/jm-macros.m4: Use jm_AFS.
48860         * m4/afs.m4: New file (from fileutils' configure.in).
48861
48862         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
48863         * m4/chown.m4: Likewise.
48864         * m4/d-ino.m4: Likewise.
48865         * m4/d-type.m4: Likewise.
48866         * m4/fnmatch.m4: Likewise.
48867         * m4/getgroups.m4: Likewise.
48868         * m4/gettext.m4: Likewise.
48869         * m4/jm-mktime.m4: Likewise.
48870         * m4/jm-winsz2.m4: Likewise.
48871         * m4/lcmessage.m4: Likewise.
48872         * m4/ls-mntd-fs.m4: Likewise.
48873         * m4/malloc.m4: Likewise.
48874         * m4/memcmp.m4: Likewise.
48875         * m4/putenv.m4: Likewise.
48876         * m4/realloc.m4: Likewise.
48877         * m4/st_mtim.m4: Likewise.
48878         * m4/strftime.m4: Likewise.
48879
48880 1999-01-16  Jim Meyering  <meyering@ascend.com>
48881
48882         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
48883         (ARGMATCH_DIE_DECL): Define.
48884
48885 1999-01-12  Jim Meyering  <meyering@ascend.com>
48886
48887         * m4/Makefile.am.in: Rewrite to avoid using fmt.
48888         Reported by Lars Hecking.
48889
48890 1999-01-10  Jim Meyering  <meyering@ascend.com>
48891
48892         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
48893         gross kludge.
48894         * m4/inttypes_h.m4: Likewise.
48895         * m4/lstat.m4: Likewise.
48896         * m4/malloc.m4: Likewise.
48897         * m4/readdir.m4: Likewise.
48898         * m4/realloc.m4: Likewise.
48899         * m4/st_dm_mode.m4: Likewise.
48900         * m4/stat.m4: Likewise.
48901         * m4/utimbuf.m4: Likewise.
48902         * m4/utimes.m4: Likewise.
48903
48904         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
48905         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
48906         comments in config.h.in are meaningful.
48907
48908         * m4/jm-macros.m4: Require autoconf-2.13 here.
48909
48910         * m4/regex.m4: By default, don't use the included regex.c on systems
48911         with glibc 2.  Suggestion from Uli Drepper.
48912
48913 1999-01-02  Jim Meyering  <meyering@ascend.com>
48914
48915         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
48916
48917 1998-12-18  Jim Meyering  <meyering@ascend.com>
48918
48919         * m4/Makefile.am.in (Makefile.am): Simplify rule.
48920         Based on a suggestion from Lars Hecking.
48921
48922 1998-11-16  Paul Eggert  <eggert@twinsun.com>
48923
48924         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
48925
48926 1998-11-16  Jim Meyering  <meyering@ascend.com>
48927
48928         * m4/lfs.m4: Double-quote the `uname...` expression.
48929
48930 1998-11-14  Jim Meyering  <meyering@ascend.com>
48931
48932         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
48933         * m4/stat.m4: Likewise.
48934
48935 1998-11-03  Jim Meyering  <meyering@ascend.com>
48936
48937         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
48938         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
48939
48940 1998-10-18  Jim Meyering  <meyering@ascend.com>
48941
48942         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
48943
48944 1998-10-17  Jim Meyering  <meyering@ascend.com>
48945
48946         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
48947         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
48948         calls for those previously hard-coded headers.  Instead, take a new
48949         parameter.
48950         (jm_CHECK_DECLARATIONS): Reflect interface change.
48951         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
48952         (jm_CHECK_DECL_LOCALTIME_R): New macro.
48953
48954         * m4/mktime.m4: Test for spring-forward gap before long-running test.
48955
48956 1998-10-14  Jim Meyering  <meyering@ascend.com>
48957
48958         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
48959         instead of "TZ=America/Vancouver".  From Paul Eggert.
48960
48961 1998-10-11  Jim Meyering  <meyering@ascend.com>
48962
48963         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
48964         This adds a test for a recently added compatibility fix for mktime.c.
48965         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
48966
48967 1998-09-27  Jim Meyering  <meyering@ascend.com>
48968
48969         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
48970
48971         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
48972         ../configure.in, including a change from Gordon Matzigkeit to allow
48973         cross-compiling for the Hurd.
48974
48975         * m4/glibc.m4: New file/macro to test for the GNU C Library
48976         versions 1 and 2.  From Gordon Matzigkeit.
48977         Indent.
48978
48979 1998-09-21  Jim Meyering  <meyering@ascend.com>
48980
48981         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
48982
48983 1998-08-18  Paul Eggert  <eggert@twinsun.com>
48984
48985         Port nanosecond-resolution times to UnixWare 2.1.2 and
48986         pedantic Solaris 2.6.
48987
48988         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
48989         AC_STRUCT_ST_MTIM.
48990         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
48991         Generate name of ns member, instead of just 1 or undef.
48992         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
48993
48994 1998-08-15  Jim Meyering  <meyering@ascend.com>
48995
48996         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
48997         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
48998         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
48999         instead of jm_TYPE_SSIZE_T.
49000
49001 1998-08-12  Jim Meyering  <meyering@ascend.com>
49002
49003         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
49004
49005 1998-08-02  Jim Meyering  <meyering@ascend.com>
49006
49007         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
49008         in acconfig.h manually.
49009
49010 1998-07-31  Paul Eggert  <eggert@twinsun.com>
49011
49012         * m4/st_mtim.m4: New file.
49013
49014 1998-07-28  Jim Meyering  <meyering@ascend.com>
49015
49016         * m4/utimes.m4: Undef stat.
49017
49018 1998-07-25  Jim Meyering  <meyering@ascend.com>
49019
49020         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
49021         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
49022
49023 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
49024
49025         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
49026         uid and gid actually remain unchanged.
49027
49028 1998-07-07  Jim Meyering  <meyering@ascend.com>
49029
49030         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
49031
49032 1998-07-04  Jim Meyering  <meyering@ascend.com>
49033
49034         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
49035         to prove that this macro can be used in packages without regex.c.
49036
49037 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
49038
49039         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
49040         is to be used.
49041
49042 1998-07-03  Jim Meyering  <meyering@ascend.com>
49043
49044         * m4/gettext.m4: Add -lintl if it's found to be necessary.
49045
49046         * m4/gettext.m4: New file -- from gettext-0.10.35.
49047         * m4/lcmessage.m4: Likewise.
49048         * m4/progtest.m4: Likewise.
49049
49050         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
49051         * m4/jm-macros.m4: Require the new macro.
49052
49053 1998-06-29  Jim Meyering  <meyering@ascend.com>
49054
49055         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
49056         for the definition of NGROUPS (used in a system header included
49057         by sys/mount.h).
49058
49059 1998-06-28  Jim Meyering  <meyering@ascend.com>
49060
49061         * m4/ls-mntd-fs.m4: New file.
49062         * m4/fstypename.m4: New file.
49063
49064         * m4/jm-macros.m4: Require the new macro.
49065         * m4/jm-glibc-io.m4: New file.
49066
49067 1998-05-19  Jim Meyering  <meyering@ascend.com>
49068
49069         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
49070         * m4/lchown.m4: New file.
49071
49072         * m4/Makefile.am.in: New file.
49073         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
49074
49075 1998-05-14  Jim Meyering  <meyering@ascend.com>
49076
49077         * m4/Makefile.am (EXTRA_DIST): Add them.
49078         * m4/jm-macros.m4: New file.
49079         * m4/utimbuf.m4: New file.
49080
49081 1998-05-12  Jim Meyering  <meyering@ascend.com>
49082
49083         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
49084
49085 1998-05-11  Jim Meyering  <meyering@ascend.com>
49086
49087         * m4/isc-posix.m4: New file.
49088
49089 1998-05-10  Jim Meyering  <meyering@ascend.com>
49090
49091         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
49092
49093 1998-05-09  Jim Meyering  <meyering@ascend.com>
49094
49095         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
49096         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
49097         with automake.
49098
49099         * m4/ssize_t.m4: New file.
49100         * m4/mktime.m4: Remove file -- the new automake has this now.
49101
49102 1998-04-26  Jim Meyering  <meyering@ascend.com>
49103
49104         * m4/assert.m4: New file.
49105         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
49106
49107 1998-04-05  Jim Meyering  <meyering@ascend.com>
49108
49109         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
49110         (jm_PREREQ): Use it here.
49111
49112 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
49113
49114         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
49115         in acconfig.h.
49116
49117 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
49118
49119         * m4/prereq.m4: New file.
49120         * m4/error.m4: New file.
49121         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
49122
49123 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
49124
49125         * m4/getline.m4: Don't set am_cv_func_working_getline before the
49126         cache-check for the same variable -- that defeated the purpose of
49127         the test; the test program was never run.  This was a problem only
49128         on systems with losing getline functions -- HP-UX 10.20 is one.
49129         Reported by Bjorn Helgaas.
49130
49131 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
49132
49133         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
49134
49135 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
49136
49137         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
49138
49139         * m4/const.m4: New file.  Use an initializer in this declaration
49140         typedef int charset[2]; const charset x;
49141         Reported by Bob Glickstein.
49142
49143 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
49144
49145         * m4/chown.m4: Fix reversed types on -1 args to chown.
49146         From Kaveh Ghazi.
49147
49148 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
49149
49150         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
49151         Add lseek and memchr.
49152
49153         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
49154         T.E.Dickey <dickey@clark.net> said that some older preprocessors
49155         have a 20-character limit on names.
49156
49157 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
49158
49159         * m4/inttypes_h.m4: New file.
49160         * m4/uintmax_t.m4: New file.
49161         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
49162
49163
49164         -----
49165
49166         Local Variables:
49167         coding: utf-8
49168         End:
49169
49170         Copyright (C) 1997-2009 Free Software Foundation, Inc.
49171
49172         Copying and distribution of this file, with or without
49173         modification, are permitted provided the copyright notice
49174         and this notice are preserved.