fflush: tweak
[gnulib.git] / ChangeLog
1
2 2009-12-19  Bruno Haible  <bruno@clisp.org>
3
4         fflush: tweak
5         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6         * lib/fseeko.c (rpl_fseeko): Likewise.
7
8 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9
10         * lib/gl_list.h: Fix typo in comment.
11
12 2009-12-16  Eric Blake  <ebb9@byu.net>
13
14         fcntl: use to simplify other modules
15         * modules/cloexec (Depends-on): Add fcntl.
16         * modules/fchdir (Depends-on): Likewise.
17         * modules/fd-safer-flag (Depends-on): Likewise.
18         * modules/unistd-safer (Depends-on): Likewise.
19         * modules/dup3 (configure.ac): Set module indicator.
20         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21         missing.
22         * lib/fchdir.c (_gl_register_dup): Fix comment.
23         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24         * lib/dup-safer.c (dup_safer): Likewise.
25         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
26         * lib/dup3.c (dup3): Likewise.
27         * tests/test-fchdir.c (main): Enhance test.
28         Fixes a dup_cloexec bug reported by Ondřej Vašík.
29
30         fcntl: port portions of fcntl to mingw
31         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33         replacement for mingw.
34         * modules/fcntl (Description): Update.
35         (Depends-on): Add dup2.
36         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37         * modules/fcntl-h (Makefile.am): Substitute it.
38         * lib/fcntl.in.h (fcntl): Update declaration.
39         (F_DUPFD, F_GETFD): New macros, when needed.
40         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42         * tests/test-fcntl.c (check_flags, main): Enhance test for items
43         we now guarantee.
44
45         fcntl: work around cygwin bug in F_DUPFD
46         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
47         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
48         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
49         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
50         * doc/posix-functions/fcntl.texi (fcntl): Document it.
51
52         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
53         * modules/fcntl (Files): List new files.
54         (configure.ac): Run a test.
55         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
56         * lib/fcntl.c (rpl_fcntl): Likewise.
57         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
58         (gl_FCNTL_H): Always replace fcntl.h.
59         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60         * lib/fcntl.in.h (fcntl): Declare replacement.
61         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
62         needed, plus a witness.
63         * doc/posix-functions/fcntl.texi (fcntl): Document this.
64         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
65         * tests/test-fcntl.c: New file.
66         * modules/fcntl-tests: Likewise.
67
68         binary-io: avoid potential compilation warning
69         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
70         directives.
71
72         fflush: avoid compilation error on NetBSD
73         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
74         between off_t and fpos_t, since the latter is sometimes a struct.
75         * lib/fseeko.c (rpl_fseeko): Likewise.
76         Reported by Alexander Nasonov <alnsn@yandex.ru>.
77
78 2009-12-15  Eric Blake  <ebb9@byu.net>
79
80         fcntl-h, stdio, sys_ioctl: fix declarations
81         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
82         function must not take arguments.
83         * lib/sys_ioctl.in.h (ioctl): Likewise.
84         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
85         (open): Add a link warning.
86
87 2009-12-15  Jim Meyering  <meyering@redhat.com>
88
89         areadlink, areadlink-with-size: relax license to LGPLv2+
90         * modules/areadlink (License): Relax to LGPLv2+.
91         * modules/areadlink-with-size (License): Likewise.
92
93 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
94             Bruno Haible  <bruno@clisp.org>
95
96         *printf: Fix memory leak.
97         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
98         * lib/vfprintf.c (vfprintf): Likewise.
99         * lib/dprintf.c (dprintf): Likewise.
100         * lib/vdprintf.c (vdprintf): Likewise.
101
102 2009-12-14  Eric Blake  <ebb9@byu.net>
103
104         accept4: adjust module dependencies
105         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
106
107         utimens: one more try at avoiding compiler warning
108         * lib/utimens.c (lutimens): Lower scope of result.
109
110 2009-12-13  Bruno Haible  <bruno@clisp.org>
111
112         Move the malloc checking from module 'list' to new module 'xlist'.
113         * modules/xlist: New file.
114         * lib/gl_xlist.h: New file.
115         * lib/gl_xlist.c: New file.
116         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
117         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
118         gl_list_add_last, gl_list_add_before, gl_list_add_after,
119         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
120         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
121         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
122         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
123         gl_sortedlist_nx_add): New declarations.
124         (struct gl_list_implementation): Rename and change methods accordingly.
125         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
126         (gl_list_nx_create): Renamed from gl_list_create.
127         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
128         (gl_list_nx_set_at): Renamed from gl_list_set_at.
129         (gl_list_nx_add_first): Renamed from gl_list_add_first.
130         (gl_list_nx_add_last): Renamed from gl_list_add_last.
131         (gl_list_nx_add_before): Renamed from gl_list_add_before.
132         (gl_list_nx_add_after): Renamed from gl_list_add_after.
133         (gl_list_nx_add_at): Renamed from gl_list_add_at.
134         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
135         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
136         gl_list_create_empty.
137         (gl_list_nx_create): Renamed from gl_list_create.
138         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
139         (gl_list_nx_set_at): Renamed from gl_list_set_at.
140         (gl_list_nx_add_first): Renamed from gl_list_add_first.
141         (gl_list_nx_add_last): Renamed from gl_list_add_last.
142         (gl_list_nx_add_before): Renamed from gl_list_add_before.
143         (gl_list_nx_add_after): Renamed from gl_list_add_after.
144         (gl_list_nx_add_at): Renamed from gl_list_add_at.
145         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
146         * lib/gl_array_list.c: Don't include xalloc.h.
147         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
148         NULL upon out-of-memory.
149         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
150         out-of-memory.
151         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
152         Change return type to 'int'.
153         (gl_array_nx_set_at): Renamed from gl_array_set_at.
154         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
155         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
156         upon out-of-memory.
157         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
158         upon out-of-memory.
159         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
160         upon out-of-memory.
161         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
162         upon out-of-memory.
163         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
164         out-of-memory.
165         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
166         Update.
167         (gl_array_list_implementation): Update.
168         * lib/gl_carray_list.c: Don't include xalloc.h.
169         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
170         Return NULL upon out-of-memory.
171         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
172         out-of-memory.
173         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
174         Change return type to 'int'.
175         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
176         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
177         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
178         upon out-of-memory.
179         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
180         upon out-of-memory.
181         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
182         out-of-memory.
183         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
184         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
185         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
186         Update.
187         (gl_carray_list_implementation): Update.
188         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
189         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
190         gl_linked_create_empty. Return NULL upon out-of-memory.
191         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
192         out-of-memory.
193         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
194         Change return type to 'int'. Return -1 upon out-of-memory.
195         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
196         out-of-memory.
197         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
198         upon out-of-memory.
199         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
200         upon out-of-memory.
201         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
202         NULL upon out-of-memory.
203         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
204         upon out-of-memory.
205         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
206         out-of-memory.
207         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
208         Update.
209         * lib/gl_linked_list.c: Don't include xalloc.h.
210         (gl_linked_list_implementation): Update.
211         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
212         (add_to_bucket): Change return type to 'int'.
213         (gl_linkedhash_list_implementation): Update.
214         * lib/gl_anytree_list1.h (free_subtree): New function.
215         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
216         gl_tree_create_empty. Return NULL upon out-of-memory.
217         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
218         Change return type to 'int'. Return -1 upon out-of-memory.
219         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
220         out-of-memory.
221         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
222         (gl_tree_remove_node): New function, moved here from
223         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
224         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
225         Update.
226         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
227         malloc, not xmalloc. Return NULL upon out-of-memory.
228         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
229         out-of-memory.
230         (gl_tree_remove_node_from_tree): New function, extracted from
231         gl_tree_remove_node.
232         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
233         upon out-of-memory.
234         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
235         out-of-memory.
236         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
237         upon out-of-memory.
238         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
239         upon out-of-memory.
240         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
241         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
242         not xmalloc. Return NULL upon out-of-memory.
243         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
244         out-of-memory.
245         (gl_tree_remove_node_from_tree): New function, extracted from
246         gl_tree_remove_node.
247         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
248         upon out-of-memory.
249         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
250         out-of-memory.
251         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
252         upon out-of-memory.
253         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
254         upon out-of-memory.
255         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
256         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
257         gl_anytree_list1.h before gl_anyavltree_list2.h.
258         (gl_avltree_list_implementation): Update.
259         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
260         gl_anytree_list1.h before gl_anyavltree_list2.h.
261         (gl_rbtree_list_implementation): Update.
262         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
263         Change return type to 'int'. Return -1 upon out-of-memory. Use
264         __builtin_expect.
265         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
266         (gl_avltreehash_list_implementation): Update.
267         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
268         (gl_rbtreehash_list_implementation): Update.
269         * modules/array-list (Depends-on): Remove xalloc.
270         * modules/carray-list (Depends-on): Likewise.
271         * modules/linked-list (Depends-on): Likewise.
272         * modules/linkedhash-list (Depends-on): Likewise.
273         * modules/avltree-list (Depends-on): Likewise.
274         * modules/rbtree-list (Depends-on): Likewise.
275         * modules/avltreehash-list (Depends-on): Likewise.
276         * modules/rbtreehash-list (Depends-on): Likewise.
277
278         * modules/xsublist: New file.
279         * lib/gl_xsublist.h: New file.
280         * lib/gl_xsublist.c: New file.
281         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
282         (gl_sublist_nx_create): New declaration.
283         * lib/gl_sublist.c: Don't include xalloc.h.
284         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
285         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
286         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
287         Change return type to 'int'. Return -1 upon out-of-memory.
288         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
289         upon out-of-memory.
290         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
291         NULL upon out-of-memory.
292         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
293         upon out-of-memory.
294         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
295         NULL upon out-of-memory.
296         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
297         NULL upon out-of-memory.
298         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
299         upon out-of-memory.
300         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
301         (gl_sublist_list_implementation): Update.
302         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
303         upon out-of-memory.
304         * modules/sublist (Depends-on): Remove xalloc.
305
306         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
307         * tests/test-carray_list.c: Likewise.
308         * tests/test-linked_list.c: Likewise.
309         * tests/test-linkedhash_list.c: Likewise.
310         * tests/test-avltree_list.c: Likewise.
311         * tests/test-rbtree_list.c: Likewise.
312         * tests/test-avltreehash_list.c: Likewise.
313         * tests/test-rbtreehash_list.c: Likewise.
314         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
315         * modules/carray-list-tests (Makefile.am): Likewise.
316         * modules/linked-list-tests (Makefile.am): Likewise.
317         * modules/linkedhash-list-tests (Makefile.am): Likewise.
318         * modules/avltree-list-tests (Makefile.am): Likewise.
319         * modules/rbtree-list-tests (Makefile.am): Likewise.
320         * modules/avltreehash-list-tests (Makefile.am): Likewise.
321         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
322
323         * NEWS: Mention the changes.
324
325         * lib/clean-temp.c: Include gl_xlist.h.
326         * modules/clean-temp (Depends-on): Add xlist.
327
328         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
329         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
330
331         * tests/test-array_oset.c: Include gl_xlist.h.
332         * modules/array-oset-tests (Depends-on): Add xlist.
333
334         Reported by José E. Marchesi <jemarch@gnu.org>.
335
336 2009-12-13  Bruno Haible  <bruno@clisp.org>
337
338         Move the malloc checking from module 'oset' to new module 'xoset'.
339         * modules/xoset: New file.
340         * lib/gl_xoset.h: New file.
341         * lib/gl_xoset.c: New file.
342         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
343         declarations.
344         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
345         (struct gl_oset_implementation): Rename and change methods accordingly.
346         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
347         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
348         'int'. Mark as __warn_unused_result__.
349         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
350         gl_oset_create_empty.
351         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
352         'int'.
353         * lib/gl_array_oset.c: Don't include xalloc.h.
354         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
355         malloc, not xmalloc.
356         (grow): Change return type to 'int'. Don't call xalloc_die.
357         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
358         to 'int'.
359         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
360         'int'.
361         (gl_array_oset_implementation): Update.
362         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
363         gl_tree_create_empty.
364         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
365         'int'.
366         * lib/gl_avltree_oset.c: Don't include xalloc.h.
367         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
368         xmalloc.
369         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
370         not xmalloc.
371         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
372         xmalloc.
373         (gl_avltree_oset_implementation): Update.
374         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
375         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
376         xmalloc.
377         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
378         not xmalloc.
379         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
380         xmalloc.
381         (gl_rbtree_oset_implementation): Update.
382         * modules/array-oset (Depends-on): Remove xalloc.
383         * modules/avltree-oset (Depends-on): Likewise.
384         * modules/rbtree-oset (Depends-on): Likewise.
385         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
386         * tests/test-avltree_oset.c: Likewise.
387         * tests/test-rbtree_oset.c: Likewise.
388         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
389         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
390         * modules/rbtree-oset-tests (Makefile.am): Likewise.
391         * NEWS: Mention the change.
392
393 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
394
395         maint.mk: allow a project to override release-prep commands
396         * top/maint.mk (alpha, beta, stable): Move release-preparatory
397         commands into a new rule.
398         (release-prep): New rule.
399         (release-prep-hook): New overridable variable.
400
401 2009-12-13  Bruno Haible  <bruno@clisp.org>
402
403         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
404
405 2009-12-13  Jim Meyering  <meyering@redhat.com>
406
407         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
408         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
409
410 2009-12-12  Bruno Haible  <bruno@clisp.org>
411
412         duplocale: Tweak.
413         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
414
415 2009-12-12  Karl Berry  <karl@gnu.org>
416
417         * config/srclist.txt (strtoll.c): tab changes, no more sync.
418
419 2009-12-12  Bruno Haible  <bruno@clisp.org>
420
421         * m4/po.m4: Undo incorrect untabification.
422
423 2009-12-12  Bruno Haible  <bruno@clisp.org>
424
425         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
426         * modules/c-strtod (Depends-on): Add locale.
427         * modules/c-strtold (Depends-on): Likewise.
428
429 2009-12-12  Bruno Haible  <bruno@clisp.org>
430
431         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
432
433 2009-12-11  Eric Blake  <ebb9@byu.net>
434
435         setenv: relax requirement in light of POSIX ruling
436         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
437         not NULL.
438         * tests/test-setenv.c (main): Relax test.
439         * tests/test-unsetenv.c (main): Likewise.
440         * doc/posix-functions/setenv.texi (setenv): Document this.
441         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
442
443 2009-12-11  Bruno Haible  <bruno@clisp.org>
444
445         New module 'fd-safer-flag'.
446         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
447         * lib/dup-safer.c (dup_safer_flag): Remove function.
448         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
449         * lib/fd-safer.c (fd_safer_flag): Remove function.
450         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
451         * modules/cloexec (configure.ac): Drop indicator macro.
452         * modules/fd-safer-flag: New file.
453         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
454         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
455         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
456
457 2009-12-11  Bruno Haible  <bruno@clisp.org>
458
459         Tests for module 'nl_langinfo'.
460         * modules/nl_langinfo-tests: New file.
461         * tests/test-nl_langinfo.sh: New file.
462         * tests/test-nl_langinfo.c: New file.
463
464         New module 'nl_langinfo'.
465         * lib/nl_langinfo.c: New file.
466         * m4/nl_langinfo.m4: New file.
467         * modules/nl_langinfo: New file.
468         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
469
470 2009-12-11  Bruno Haible  <bruno@clisp.org>
471
472         Tests for module 'langinfo'.
473         * modules/langinfo-tests: New file.
474         * tests/test-langinfo.c: New file.
475
476         New module 'langinfo'.
477         * lib/langinfo.in.h: New file.
478         * m4/langinfo_h.m4: New file.
479         * modules/langinfo: New file.
480         * doc/posix-headers/langinfo.texi: Mention the new module.
481
482 2009-12-11  Bruno Haible  <bruno@clisp.org>
483
484         * lib/config.charset: Untabify.
485
486 2009-12-11  Bruno Haible  <bruno@clisp.org>
487
488         * modules/unistd-safer (configure.ac): Drop indicator macro.
489
490 2009-12-11  Bruno Haible  <bruno@clisp.org>
491
492         Move pipe2-safer code to its own file.
493         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
494         * lib/pipe-safer.c (pipe2_safer): Remove function.
495         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
496         (Makefile.am): Add it to lib_SOURCES.
497
498 2009-12-10  Bruno Haible  <bruno@clisp.org>
499
500         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
501
502 2009-12-10  Bruno Haible  <bruno@clisp.org>
503
504         Declare which arguments expect non-NULL values, for GCC and clang.
505         * build-aux/arg-nonnull.h: New file.
506         * modules/arg-nonnull: New file.
507         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
508         (inet_ntop, inet_pton): Use it.
509         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
510         (closedir, dirfd, opendir, scandir, alphasort): Use it.
511         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
512         (open, openat): Use it.
513         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
514         (fnmatch): Use it.
515         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
516         (getopt, getopt_long, getopt_long_only): Use it.
517         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
518         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
519         Use it.
520         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
521         (iconv_open): Use it.
522         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
523         (strtoimax, strtoumax): Use it.
524         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
525         (duplocale): Use it.
526         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
527         (frexp, frexpl): Use it.
528         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
529         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
530         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
531         (tsearch, tfind, tdelete, twalk): Use it.
532         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
533         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
534         sigpending): Use it.
535         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
536         (posix_spawn, posix_spawnp, posix_spawnattr_init,
537         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
538         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
539         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
540         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
541         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
542         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
543         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
544         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
545         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
546         Use it.
547         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
548         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
549         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
550         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
551         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
552         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
553         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
554         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
555         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
556         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
557         strtoull, unsetenv): Use it.
558         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
559         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
560         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
561         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
562         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
563         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
564         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
565         (strcasecmp, strncasecmp): Use it.
566         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
567         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
568         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
569         rpl_setsockopt): Use it.
570         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
571         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
572         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
573         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
574         (gettimeofday): Use it.
575         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
576         (times): Use it.
577         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
578         (uname): Use it.
579         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
580         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
581         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
582         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
583         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
584         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
585         unlinkat, write): Use it.
586         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
587         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
588         * lib/argv-iter.h: Include arg-nonnull.h.
589         (_ATTRIBUTE_NONNULL_): Remove macro.
590         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
591         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
592         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
593         optimization.
594         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
595         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
596         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
597         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
598         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
599         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
600         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
601         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
602         * modules/arpa_inet (Depends-on): Add arg-nonnull.
603         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
604         * modules/dirent (Depends-on): Add arg-nonnull.
605         (Makefile.am): Insert arg-nonnull.h into dirent.h.
606         * modules/fcntl-h (Depends-on): Add arg-nonnull.
607         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
608         * modules/fnmatch (Depends-on): Add arg-nonnull.
609         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
610         * modules/getopt-posix (Depends-on): Add arg-nonnull.
611         (Makefile.am): Insert arg-nonnull.h into getopt.h.
612         * modules/glob (Depends-on): Add arg-nonnull.
613         (Makefile.am): Insert arg-nonnull.h into glob.h.
614         * modules/iconv_open (Depends-on): Add arg-nonnull.
615         (Makefile.am): Insert arg-nonnull.h into iconv.h.
616         * modules/inttypes (Depends-on): Add arg-nonnull.
617         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
618         * modules/locale (Depends-on): Add arg-nonnull.
619         (Makefile.am): Insert arg-nonnull.h into locale.h.
620         * modules/math (Depends-on): Add arg-nonnull.
621         (Makefile.am): Insert arg-nonnull.h into math.h.
622         * modules/netdb (Depends-on): Add arg-nonnull.
623         (Makefile.am): Insert arg-nonnull.h into netdb.h.
624         * modules/search (Depends-on): Add arg-nonnull.
625         (Makefile.am): Insert arg-nonnull.h into search.h.
626         * modules/signal (Depends-on): Add arg-nonnull.
627         (Makefile.am): Insert arg-nonnull.h into signal.h.
628         * modules/spawn (Depends-on): Add arg-nonnull.
629         (Makefile.am): Insert arg-nonnull.h into spawn.h.
630         * modules/stdio (Depends-on): Add arg-nonnull.
631         (Makefile.am): Insert arg-nonnull.h into stdio.h.
632         * modules/stdlib (Depends-on): Add arg-nonnull.
633         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
634         * modules/string (Depends-on): Add arg-nonnull.
635         (Makefile.am): Insert arg-nonnull.h into string.h.
636         * modules/strings (Depends-on): Add arg-nonnull.
637         (Makefile.am): Insert arg-nonnull.h into strings.h.
638         * modules/sys_socket (Depends-on): Add arg-nonnull.
639         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
640         * modules/sys_stat (Depends-on): Add arg-nonnull.
641         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
642         * modules/sys_time (Depends-on): Add arg-nonnull.
643         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
644         * modules/sys_times (Depends-on): Add arg-nonnull.
645         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
646         * modules/sys_utsname (Depends-on): Add arg-nonnull.
647         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
648         * modules/time (Depends-on): Add arg-nonnull.
649         (Makefile.am): Insert arg-nonnull.h into time.h.
650         * modules/unistd (Depends-on): Add arg-nonnull.
651         (Makefile.am): Insert arg-nonnull.h into unistd.h.
652         * modules/wchar (Depends-on): Add arg-nonnull.
653         (Makefile.am): Insert arg-nonnull.h into wchar.h.
654         * modules/argv-iter (Depends-on): Add arg-nonnull.
655         * tests/test-canonicalize.c (null_ptr): New function.
656         (main): Use it.
657         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
658         (main): Use it.
659         * tests/test-memmem.c (null_ptr): New function.
660         (main): Use it.
661         Reported by Jim Meyering.
662
663 2009-12-10  Bruno Haible  <bruno@clisp.org>
664
665         Use spaces for indentation, not tabs.
666         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
667         * m4/*.m4: Untabify.
668         * build-aux/*.h: Untabify.
669         * tests/**/*.[hc]: Untabify.
670         * README: New section "Indent with spaces, not TABs", based on
671         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
672         * NEWS: Mention the change.
673
674 2009-12-10  Bruno Haible  <bruno@clisp.org>
675
676         pty test: Fix link error.
677         * modules/pty-tests (Makefile.am): Add the default LDADD value to
678         test_pty_LDADD.
679
680 2009-12-07  Simon Josefsson  <simon@josefsson.org>
681
682         * modules/pty: New file.
683         * modules/pty-tests: New file.
684         * m4/pty.m4: New file.
685         * tests/test-pty.c: New file.
686         * doc/glibc-headers/pty.texi: Modified.
687         * doc/glibc-functions/forkpty.texi: Modified.
688         * doc/glibc-functions/openpty.texi: Modified.
689
690 2009-12-10  Bruno Haible  <bruno@clisp.org>
691
692         Avoid syntax error in C++ mode.
693         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
694
695 2009-12-10  Bruno Haible  <bruno@clisp.org>
696
697         Use sed with option -e.
698         * gnulib-tool (func_version, func_emit_copyright_notice,
699         func_emit_initmacro_end, func_import, func_create_testdir): Pass
700         option -e to sed.
701         * modules/link-warning (Makefile.am): Likewise.
702
703 2009-12-10  Jim Meyering  <meyering@redhat.com>
704
705         mgetgroups: do not write bytes beyond end of malloc'd buffer
706         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
707         username, we call getgroups with a one-element-shorter buffer,
708         but still told it the length was original, max_n_groups.
709
710 2009-12-09  Eric Blake  <ebb9@byu.net>
711
712         cloexec: relax license
713         * modules/cloexec (Maintainer): Add myself.
714         (License): Use LGPL, not GPL.
715
716         link-warning: optimize generation
717         * modules/link-warning (Makefile.am): Reduce process usage.
718
719 2009-12-09  Bruno Haible  <bruno@clisp.org>
720
721         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
722         workaround was added on 2009-11-17.
723
724 2009-12-09  Jim Meyering  <meyering@redhat.com>
725             Bruno Haible  <bruno@clisp.org>
726
727         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
728         * modules/link-warning (Makefile.am): Make the comment-removing sed
729         command more robust in the face of bootstrap-prepended comment lines.
730
731 2009-12-09  Bruno Haible  <bruno@clisp.org>
732
733         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
734         most one group.
735
736 2009-12-09  Simon Josefsson <simon@josefsson.org>
737             Bruno Haible  <bruno@clisp.org>
738
739         * build-aux/link-warning.h: Add copyright notice.
740         * modules/link-warning (Makefile.am): Generate link-warning.h from
741         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
742         * NEWS: Mention change in link-warning module.
743         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
744         * modules/dirent (Makefile.am): Add dependency to dirent.h.
745         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
746         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
747         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
748         * modules/math (Makefile.am): Add dependency to math.h.
749         * modules/search (Makefile.am): Add dependency to search.h.
750         * modules/signal (Makefile.am): Add dependency to signal.h.
751         * modules/spawn (Makefile.am): Add dependency to spawn.h.
752         * modules/stdio (Makefile.am): Add dependency to stdio.h.
753         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
754         * modules/string (Makefile.am): Add dependency to string.h.
755         * modules/strings (Makefile.am): Add dependency to strings.h.
756         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
757         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
758         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
759         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
760         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
761         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
762         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
763         * modules/unistd (Makefile.am): Add dependency to unistd.h.
764         * modules/wchar (Makefile.am): Add dependency to wchar.h.
765
766 2009-12-09  Bruno Haible  <bruno@clisp.org>
767
768         fchdir: Optimize away rpl_fstat when possible.
769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
770         REPLACE_OPEN_DIRECTORY.
771         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
772
773 2009-12-09  Bruno Haible  <bruno@clisp.org>
774
775         * lib/fchdir.c: Update comment.
776
777 2009-12-09  Bruno Haible  <bruno@clisp.org>
778
779         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
780
781 2009-12-08  Eric Blake  <ebb9@byu.net>
782
783         fchdir: avoid memory leak on re-registration.
784         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
785
786 2009-12-08  Jim Meyering  <meyering@redhat.com>
787
788         init.sh: avoid Solaris 10 /bin/sh portability problem
789         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
790         sourced script:
791           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
792           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
793           bar
794         tests/init.sh relied on that, accepting a --set-path=DIR argument,
795         and two tests used that idiom.
796         * tests/init.sh: Update suggested usage comments.
797         (path_prepend_): New function, to be used in place
798         of the --src-path=DIR option.
799         (setup_): Move PATH-prepending code into path_prepend_.
800         * tests/test-pread.sh: Adapt to new usage.
801         * tests/test-xalloc-die.sh: Likewise.
802
803 2009-12-08  Simon Josefsson  <simon@josefsson.org>
804
805         * doc/gnulib.texi (Glibc pty.h): Add.
806         * doc/glibc-functions/forkpty.texi: Add.
807         * doc/glibc-functions/openpty.texi: Add.
808         Suggested by Bruno Haible.
809
810 2009-12-08  Eric Blake  <ebb9@byu.net>
811
812         fchdir: fix logic bugs
813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
814         * tests/test-fchdir.c (main): Enhance test.
815         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
816         is in use.
817
818         dup2: fix logic bugs
819         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
820         REPLACE_DUP2 to decide when rpl_dup2 is needed.
821         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
822         exists.
823         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
824
825 2009-12-07  Eric Blake  <ebb9@byu.net>
826
827         unlink: fix m4 detection
828         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
829
830         unistd-safer: add unit test
831         * modules/unistd-safer-tests: New file.
832         * tests/test-dup-safer.c: Likewise.
833         * tests/test-cloexec.c (setmode): Avoid compiler warning.
834         * tests/test-dup2.c (setmode): Likewise.
835         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
836
837         cloexec: preserve text vs. binary across dup_cloexec
838         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
839         mode.
840         * modules/dup2-tests (Depends-on): Add binary-io.
841         * modules/cloexec-tests (Depends-on): Likewise.
842         * tests/test-dup2.c (setmode, is_mode): New helpers.
843         (main): Add tests that translation mode is preserved.
844         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
845         Reported by Bruno Haible.
846
847         mgetgroups: reduce duplicate listings
848         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
849         resulting array.
850         * tests/test-chown.h (test_chown): Simplify client.
851         * tests/test-lchown.h (test_lchown): Likewise.
852
853 2009-12-06  Bruno Haible  <bruno@clisp.org>
854
855         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
856         value.
857
858 2009-12-06  Bruno Haible  <bruno@clisp.org>
859
860         * lib/progname.c: Include stdio.h, stdlib.h.
861         (set_program_name): Reject a NULL argument.
862
863 2009-12-05  Eric Blake  <ebb9@byu.net>
864
865         pipe2-safer: new module
866         * modules/pipe2-safer: New file.
867         * lib/unistd-safer.h (pipe2_safer): New prototype.
868         * lib/unistd--.h (pipe2): New wrapper.
869         * lib/pipe-safer.c (pipe2_safer): New function.
870         * modules/pipe (Depends-on): Add pipe2-safer.
871         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
872
873         stdlib-safer: preserve cloexec flag for mkostemp[s]
874         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
875         fd_safer_flag.
876
877         unistd-safer: allow preservation of cloexec status via flag
878         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
879         prototypes.
880         * lib/dup-safer.c (dup_safer_flag): New function.
881         * lib/fd-safer.c (fd_safer_flag): Likewise.
882         * modules/cloexec (configure.ac): Set witness.
883
884         test-dup2: enhance test
885         * modules/dup2-tests (Depends-on): Add cloexec.
886         * tests/test-dup2.c (main): Enhance test.
887
888         cloexec: add dup_cloexec
889         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
890         header and comments.
891         * lib/cloexec.c (set_cloexec_flag): Add comments.
892         (dup_cloexec): New function, with mingw implementation borrowed
893         from...
894         * lib/w32spawn.h (dup_noinherit): ...here.
895         * modules/execute (Depends-on): Add cloexec.
896         * modules/pipe (Depends-on): Likewise.
897         * modules/cloexec (Depends-on): Add dup2.
898         * modules/cloexec-tests (Files): New file.
899         * tests/test-cloexec.c: Likewise.
900
901         test-xalloc-die: fix test for mingw
902         * modules/xalloc-die-tests (Files): Add tests/init.sh.
903         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
904         directory and .exe suffix off argv[0] output.
905
906         test-fseeko: fix test for mingw
907         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
908         than undefining fseek, so test will pass on mingw.
909
910 2009-12-05  Bruno Haible  <bruno@clisp.org>
911
912         * lib/progname.h (set_program_name): Clarify specification.
913         * lib/progname.c (set_program_name): Likewise.
914         Reported by Jim Meyering.
915
916 2009-12-05  Jim Meyering  <meyering@redhat.com>
917
918         maint.mk: backslash-escape parens in default regexp
919         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
920         backslash-escape the literal parentheses.
921
922         maint.mk: news-date-check: use grep -E
923         * top/maint.mk (today): Define a Make variable, not a...
924         (news-date-check): ...shell variable.
925         (news-date-regexp): Use the Make variable.
926         Use grep's -E option.  Change the failing diagnostic to mention
927         the variable, $(news-date-regexp).
928
929 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
930
931         maintainer-makefile: allow customization of NEWS entry format
932         * top/maint.mk (news-date-regexp): New overridable variable.
933         (news-date-check): Use it.
934
935 2009-12-04  Eric Blake  <ebb9@byu.net>
936
937         mgetgroups: add xgetgroups, and avoid ENOSYS failures
938         * lib/mgetgroups.h (xgetgroups): New prototype.
939         * lib/mgetgroups.c (xgetgroups): New wrapper.
940         (mgetgroups): Handle ENOSYS.
941         * modules/mgetgroups (Depends-on): Add realloc.
942         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
943
944         mgetgroups: avoid argument promotion issues with -1
945         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
946         for invalid gid_t.
947         * tests/test-chown.h (getegid, test_chown): Likewise.
948         * tests/test-lchown.h (getegid, test_lchown): Likewise.
949
950 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
951
952         exclude: Fix header file problems.
953         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
954
955 2009-12-01  Jim Meyering  <meyering@redhat.com>
956
957         fts: fts_open: do not let an empty string cause immediate failure
958         This is required in support of GNU rm, for which the command
959         "rm A '' B" must process and remove both A and B, in spite of
960         the empty string argument.
961         * lib/fts.c (fts_open): Do not let the presence of an empty string
962         cause fts_open to fail immediately.  Most fts-using tools must be
963         able to process all arguments, in order, and can be expected to
964         diagnose such arguments themselves.
965
966 2009-11-30  Eric Blake  <ebb9@byu.net>
967
968         utimens: fix compilation error
969         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
970         Declare variable at right scope.
971
972 2009-11-29  Jim Meyering  <meyering@redhat.com>
973
974         bootstrap: handle perl-5.11's changed --version output
975         * build-aux/bootstrap (get_version): Handle perl separately,
976         since perl-5.11's --version output is different.
977
978 2009-11-28  Jim Meyering  <meyering@redhat.com>
979
980         userspec: depend on the inttostr module, too
981         * modules/userspec (Depends-on): Add inttostr.
982
983         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
984         * lib/userspec.c (parse_with_separator): Do not accept a user ID
985         number of MAXUID when it evaluates to (uid_t) -1.
986         Likewise for group ID.  Reported by Matt McCutchen in
987         <http://savannah.gnu.org/bugs/?28113>
988
989         userspec: reformat to use spaces, not TABs
990         * lib/userspec.c: Expand TABs to spaces.
991         Add Emacs' "indent-tabs-mode: nil" hint.
992
993 2009-11-27  Eric Blake  <ebb9@byu.net>
994
995         getopt-gnu: flush out another BSD bug
996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
997         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
998         flush out BSD bug.
999         * tests/test-getopt.h (test_getopt): End lists with NULL.
1000         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1001         (test_getopt_long_posix): Enhance test.
1002         * modules/getopt-posix-tests (Depends-on): Add stdbool.
1003         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
1004         getopt-gnu.
1005         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1006         Likewise.
1007
1008 2009-11-27  Simon Josefsson  <simon@josefsson.org>
1009
1010         * modules/idpriv-droptemp-tests (Notice): Fix text.
1011
1012 2009-11-27  Jim Meyering  <meyering@redhat.com>
1013
1014         test-xalloc-die: avoid spurious failure due to libtool argv difference
1015         In a libtool-enabled project, this test would fail due to a difference
1016         in the emitted program name, e.g.,
1017         -test-xalloc-die: memory exhausted
1018         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
1019         Use program to avoid that.
1020         * modules/xalloc-die-tests (Depends-on): Add progname.
1021         * tests/test-xalloc-die.c: Include progname.h".
1022         (program_name): Remove decl.
1023         (main): Call set_program_name.
1024         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
1025
1026 2009-11-26  Richard Jones  <rjones@redhat.com>
1027
1028         w32sock: leave win32 error in place.
1029         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
1030
1031 2009-11-26  Eric Blake  <ebb9@byu.net>
1032
1033         init.sh: suggest to use skip_ and fail_ functions in comments
1034         * tests/init.sh: Add a sentence.
1035
1036 2009-11-25  Bruno Haible  <bruno@clisp.org>
1037
1038         init.sh: add documentation in comments
1039         * tests/init.sh: Add some developer and user documentation.
1040
1041 2009-11-26  Jim Meyering  <meyering@redhat.com>
1042
1043         init.sh: accommodate even those who specify bogus srcdir manually
1044         * tests/init.sh: Normally, srcdir is guaranteed by automake and
1045         configure-time tests to be sanitized, so that there is no need to
1046         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
1047         (with no double quotes) suffices.  However, since tests may be
1048         invoked manually, and since you may explicitly set srcdir to the
1049         name of a directory containing spaces, do quote its uses here.
1050         * tests/test-pread.sh: Likewise.
1051         Suggested by Bruno Haible.
1052
1053         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
1054         * tests/test-pread.sh: Write no data into the pipe, because
1055         test-pread actually reads none.  This avoids a diagnostic,
1056         "bash: echo: write error: Broken pipe", that arises in the unusual
1057         event something is ignoring SIGPIPE, and might be interpreted
1058         as some sort of failure.  Reported by Bruno Haible.
1059
1060 2009-11-25  Jim Meyering  <meyering@redhat.com>
1061
1062         test-pread: cover failure with ESPIPE and EINVAL
1063         * tests/test-pread.c (main): Test for failure, too.
1064         * tests/test-pread.sh: Invoke with stdin on a pipe.
1065         Suggested by Eric Blake.
1066
1067         pread: improvement and fix
1068         * modules/pread (Depends-on): Depend on lseek, for portability to
1069         e.g., mingw.  Suggested by Eric Blake.
1070         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
1071
1072         unistd.in.h: correct declaration of pread
1073         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
1074         Reported by Richard W.M. Jones.
1075
1076         test-pread.sh: distribute the test script
1077         * modules/pread-tests (Files): Include test-pread.sh.
1078
1079         test-pread.sh: clean up
1080         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
1081         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
1082         That is unnecessary, since it's always ".".
1083         Suggestion from Eric Blake.
1084
1085         test-pread.sh: make executable
1086         * tests/test-pread.sh: Set executable bit.
1087         Reported by Eric Blake.
1088
1089         correct typo in test-pread.sh
1090         * tests/test-pread.sh: Add #! line.
1091
1092         test pread
1093         * tests/test-pread.c: New file.
1094         * tests/test-pread.sh: Likewise.
1095         * modules/pread-tests: Likewise.
1096
1097         pread: new module
1098         * modules/pread: New file.
1099         * lib/unistd.in.h (pread): Define/declare.
1100         * lib/pread.c (pread): New file.
1101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
1102         * modules/unistd (Makefile.am): Substitute witnesses.
1103         * doc/posix-functions/pread.texi (pread): Update.
1104         * MODULES.html.sh: Add pread.
1105
1106 2009-11-25  Jim Meyering  <meyering@redhat.com>
1107
1108         tests/init.sh: new file to be used via most *.sh tests
1109         * tests/init.sh: New file.
1110
1111 2009-11-25  Eric Blake  <ebb9@byu.net>
1112
1113         utimens: work around older Linux failure with symlinks
1114         * lib/utimens.c (lutimensat_works_really): New variable.
1115         (fdutimens, lutimens): Use it to manage kernels that support
1116         nanosecond times on files, but not on symlinks.
1117         Reported by Ondřej Vašík.
1118
1119         utimes: fix configure grammar
1120         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
1121
1122 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
1123
1124         regex: Fix fastmap for multibyte character ranges.
1125         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
1126         characters when a multibyte character range is included.
1127
1128 2009-11-22  Andy Wingo  <wingo@pobox.com>
1129
1130         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
1131         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
1132
1133 2009-11-24  Bruno Haible  <bruno@clisp.org>
1134
1135         doc: Most *_l functions exist in MacOS X 10.5.
1136         * doc/posix-functions/duplocale.texi: Update platforms list.
1137         * doc/posix-functions/freelocale.texi: Likewise.
1138         * doc/posix-functions/newlocale.texi: Likewise.
1139         * doc/posix-functions/uselocale.texi: Likewise.
1140         * doc/posix-functions/isalnum_l.texi: Likewise.
1141         * doc/posix-functions/isalpha_l.texi: Likewise.
1142         * doc/posix-functions/isblank_l.texi: Likewise.
1143         * doc/posix-functions/iscntrl_l.texi: Likewise.
1144         * doc/posix-functions/isdigit_l.texi: Likewise.
1145         * doc/posix-functions/isgraph_l.texi: Likewise.
1146         * doc/posix-functions/islower_l.texi: Likewise.
1147         * doc/posix-functions/isprint_l.texi: Likewise.
1148         * doc/posix-functions/ispunct_l.texi: Likewise.
1149         * doc/posix-functions/isspace_l.texi: Likewise.
1150         * doc/posix-functions/isupper_l.texi: Likewise.
1151         * doc/posix-functions/iswalnum_l.texi: Likewise.
1152         * doc/posix-functions/iswalpha_l.texi: Likewise.
1153         * doc/posix-functions/iswblank_l.texi: Likewise.
1154         * doc/posix-functions/iswcntrl_l.texi: Likewise.
1155         * doc/posix-functions/iswctype_l.texi: Likewise.
1156         * doc/posix-functions/iswdigit_l.texi: Likewise.
1157         * doc/posix-functions/iswgraph_l.texi: Likewise.
1158         * doc/posix-functions/iswlower_l.texi: Likewise.
1159         * doc/posix-functions/iswprint_l.texi: Likewise.
1160         * doc/posix-functions/iswpunct_l.texi: Likewise.
1161         * doc/posix-functions/iswspace_l.texi: Likewise.
1162         * doc/posix-functions/iswupper_l.texi: Likewise.
1163         * doc/posix-functions/iswxdigit_l.texi: Likewise.
1164         * doc/posix-functions/isxdigit_l.texi: Likewise.
1165         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
1166         * doc/posix-functions/strcasecmp_l.texi: Likewise.
1167         * doc/posix-functions/strcoll_l.texi: Likewise.
1168         * doc/posix-functions/strfmon_l.texi: Likewise.
1169         * doc/posix-functions/strftime_l.texi: Likewise.
1170         * doc/posix-functions/strncasecmp_l.texi: Likewise.
1171         * doc/posix-functions/strxfrm_l.texi: Likewise.
1172         * doc/posix-functions/tolower_l.texi: Likewise.
1173         * doc/posix-functions/toupper_l.texi: Likewise.
1174         * doc/posix-functions/towctrans_l.texi: Likewise.
1175         * doc/posix-functions/towlower_l.texi: Likewise.
1176         * doc/posix-functions/towupper_l.texi: Likewise.
1177         * doc/posix-functions/wcscoll_l.texi: Likewise.
1178         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
1179         * doc/posix-functions/wctrans_l.texi: Likewise.
1180         * doc/posix-functions/wctype_l.texi: Likewise.
1181         * doc/glibc-functions/strptime_l.texi: Likewise.
1182         * doc/glibc-functions/strtod_l.texi: Likewise.
1183         * doc/glibc-functions/strtof_l.texi: Likewise.
1184         * doc/glibc-functions/strtol_l.texi: Likewise.
1185         * doc/glibc-functions/strtold_l.texi: Likewise.
1186         * doc/glibc-functions/strtoll_l.texi: Likewise.
1187         * doc/glibc-functions/strtoul_l.texi: Likewise.
1188         * doc/glibc-functions/strtoull_l.texi: Likewise.
1189         * doc/glibc-functions/wcsftime_l.texi: Likewise.
1190         * doc/glibc-functions/wcstod_l.texi: Likewise.
1191         * doc/glibc-functions/wcstof_l.texi: Likewise.
1192         * doc/glibc-functions/wcstol_l.texi: Likewise.
1193         * doc/glibc-functions/wcstold_l.texi: Likewise.
1194         * doc/glibc-functions/wcstoll_l.texi: Likewise.
1195         * doc/glibc-functions/wcstoul_l.texi: Likewise.
1196         * doc/glibc-functions/wcstoull_l.texi: Likewise.
1197
1198 2009-11-24  Bruno Haible  <bruno@clisp.org>
1199
1200         duplocale: Fix logic bug.
1201         * lib/duplocale.c: Don't include <langinfo.h>.
1202         (_NL_LOCALE_NAME): Remove macro.
1203         (rpl_duplocale): Use setlocale instead of nl_langinfo.
1204         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
1205
1206 2009-11-23  Jim Meyering  <meyering@redhat.com>
1207
1208         test-update-copyright: don't hard-code /usr/bin/perl
1209         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
1210         perl to print the current year.  Gilles Espinasse reported that
1211         the replaced use of perl was hard-coded as /usr/bin/perl.
1212
1213 2009-11-23  Bruno Haible  <bruno@clisp.org>
1214
1215         duplocale: Add support for glibc 2.3.x.
1216         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
1217
1218 2009-11-22  Bruno Haible  <bruno@clisp.org>
1219
1220         vasnprintf: Tiny optimization.
1221         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
1222         MacOS X.
1223
1224 2009-11-22  Bruno Haible  <bruno@clisp.org>
1225
1226         Tests for module 'duplocale'.
1227         * modules/duplocale-tests: New file.
1228         * tests/test-duplocale.c: New file.
1229
1230         New module 'duplocale'.
1231         * m4/duplocale.m4: New file.
1232         * lib/locale.in.h (duplocale): New declaration.
1233         * lib/duplocale.c: New file.
1234         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
1235         gl_LOCALE_H_DEFAULTS): New macros.
1236         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
1237         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
1238         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
1239         REPLACE_DUPLOCALE.
1240         * modules/duplocale: New file.
1241         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
1242
1243 2009-11-22  Bruno Haible  <bruno@clisp.org>
1244
1245         * modules/locale-tests (configure.ac): Test for newlocale function.
1246         * tests/test-locale.c: When the system has extended locale functions,
1247         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
1248
1249         locale: Make locale_t available when possible.
1250         * lib/locale.in.h: Include <xlocale.h> when it exists.
1251         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
1252         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
1253         * modules/locale (Depends-on): Add extensions.
1254         (Makefile.am): Also substitute HAVE_XLOCALE_H.
1255         * doc/posix-headers/locale.texi: Document the problem with locale_t.
1256
1257 2009-11-22  Bruno Haible  <bruno@clisp.org>
1258
1259         Add comments.
1260         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
1261         invocation.
1262         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1263         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1264         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1265
1266 2009-11-22  Bruno Haible  <bruno@clisp.org>
1267
1268         error: account for the possibility of freopen (stdout).
1269         * lib/error.c: Include <unistd.h>.
1270         (flush_stdout): New function, extracted from error and error_at_line.
1271         Determine stdout's fd dynamically.
1272         (error, error_at_line): Invoke flush_stdout.
1273         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
1274         * modules/error (Depends-on): Add unistd.
1275
1276 2009-11-22  Bruno Haible  <bruno@clisp.org>
1277
1278         diffseq: Add comment.
1279         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
1280
1281 2009-11-22  Jim Meyering  <meyering@redhat.com>
1282
1283         c-stack: avoid defining an unused static function
1284         * lib/c-stack.c (find_stack_direction): Do not define this function
1285         when it will not be used.
1286
1287         diffseq: avoid spurious gcc warnings
1288         * lib/diffseq.h (IF_LINT2): Define.
1289         (compareseq): Use it to initialize two members of "part".
1290         This avoids two used-uninitialized warnings.
1291
1292 2009-11-21  Jim Meyering  <meyering@redhat.com>
1293
1294         c-stack: avoid "ignoring return value of `write'" warning
1295         * lib/c-stack.c: Include "ignore-value.h".
1296         (die): Explicitly ignore each write return value.
1297         * modules/c-stack (Depends-on): Add ignore-value.
1298
1299 2009-11-21  Bruno Haible  <bruno@clisp.org>
1300
1301         diffseq: reduce scope of variable 'best'.
1302         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
1303         variable, earlier used for two different purposes.
1304
1305 2009-11-21  Jim Meyering  <meyering@redhat.com>
1306
1307         diffseq: remove useless assignment to "best"
1308         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
1309         assignment.  At that point "best" is already guaranteed to be zero.
1310
1311 2009-11-20  Eric Blake  <ebb9@byu.net>
1312
1313         build: mention ftp redirector in release announcements
1314         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
1315         values that used to come from cfg.mk; mention FTP redirect URL.
1316         * build-aux/announce-gen: Mention the mirror list.
1317         Suggested by Karl Berry.
1318
1319         nanosleep: improve port to mingw
1320         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
1321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
1322         LIB_NANOSLEEP, but only when needed.
1323         * modules/select (Link): Document LIBSOCKET.
1324         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
1325         enough.
1326
1327         nanosleep: work around cygwin bug
1328         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
1329         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
1330         bug.
1331         (getnow): Delete, not needed.
1332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
1333         LIB_CLOCK_GETTIME.
1334         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
1335         clock-time, gettime.
1336         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
1337         bug.
1338         * modules/nanosleep-tests: New test.
1339         * tests/test-nanosleep.c: New file.
1340
1341         sleep: work around cygwin bug
1342         * lib/sleep.c (rpl_sleep): Work around the bug.
1343         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
1344         (gl_PREREQ_SLEEP): Delete unused macro.
1345         * modules/sleep (Depends-on): Add verify.
1346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1347         * modules/unistd (Makefile.am): Substitute witness.
1348         * lib/unistd.in.h (sleep): Update prototype.
1349         * doc/posix-functions/sleep.texi (sleep): Document the bug.
1350         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
1351         * modules/sleep-tests (Depends-on): Check for alarm.
1352
1353 2009-11-20  Jim Meyering  <meyering@redhat.com>
1354
1355         maint.mk: improve sc_prohibit_magic_number_exit
1356         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
1357         so it does not match uses like System.exit(1).
1358         Add comments showing how to correct all offenders.
1359
1360 2009-11-19  Eric Blake  <ebb9@byu.net>
1361
1362         xalloc-die-tests: add missing library
1363         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
1364
1365         test-xvasprintf: silence compiler warnings
1366         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
1367         empty string from gcc.
1368
1369 2009-11-19  Jim Meyering  <meyering@redhat.com>
1370
1371         xfreopen: new module, from coreutils
1372         * modules/xfreopen: New module.
1373         * lib/xfreopen.c: New file.
1374         * lib/xfreopen.h: New file.
1375         * MODULES.html.sh (File stream based Input/Output"): Add it.
1376
1377 2009-11-19  Eric Blake  <ebb9@byu.net>
1378
1379         manywarnings: depend on warnings
1380         * modules/manywarnings (Depends-on): Add warnings.
1381
1382         build: avoid compiler warnings
1383         * lib/select.c (rpl_select): Delete unused variable.
1384         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
1385
1386 2009-11-18  Eric Blake  <ebb9@byu.net>
1387
1388         tests: avoid false negative with --with-packager
1389         * tests/test-version-etc.sh: Discard packager information.
1390         * tests/test-argp-version-etc-1.sh: Likewise.
1391         Reported by Mike Frysinger.
1392
1393         utimens: fix regression on Solaris
1394         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
1395         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
1396         can only change fd timestamps via futimesat.  Instead, use an
1397         additional witness macro to avoid BSD bug.
1398         Reported by Jim Meyering.
1399
1400 2009-11-17  Eric Blake  <ebb9@byu.net>
1401
1402         usleep: use it to simplify tests
1403         * modules/stat-time-tests (Depends-on): Add usleep.
1404         (configure.ac): Drop usleep check.
1405         * modules/chown-tests (Depends-on, configure.ac): Likewise.
1406         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
1407         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
1408         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
1409         * modules/openat-tests (Depends-on, configure.ac): Likewise.
1410         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
1411         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
1412         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
1413         Likewise.
1414         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
1415         * tests/test-lchown.h (nap): Likewise.
1416         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
1417         * tests/test-stat-time.c (nap): Likewise.
1418         * tests/test-utimens-common.h (nap): Update comments.
1419
1420         usleep: new module
1421         * modules/usleep: New file.
1422         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
1423         * lib/usleep.c (usleep): Likewise.
1424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
1425         * modules/unistd (Makefile.am): Substitute witnesses.
1426         * lib/unistd.in.h (usleep): Add declaration.
1427         * doc/pastposix-functions/usleep.texi (usleep): Document this.
1428         * MODULES.html.sh (Date and time): Likewise.
1429         * modules/usleep-tests (Depends-on): New test.
1430         * tests/test-usleep.c: New file.
1431
1432         chown: work around OpenBSD bug
1433         * lib/chown.c (rpl_chown): Work around the bug.
1434         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
1435         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
1436         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
1437         * modules/chown (Depends-on): Add stdbool.
1438         * modules/lchown (Depends-on): Likewise.
1439         * doc/posix-functions/chown.texi (chown): Document the bug.
1440         * doc/posix-functions/lchown.texi (lchown): Likewise.
1441         * tests/test-lchown.h (test_chown): Relax test.
1442
1443         mkstemp: avoid conflict with C++ keyword template
1444         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
1445         * lib/mkostemp.c (mkostemp): Likewise.
1446         * lib/mkostemps.c (mkostemps): Likewise.
1447         * lib/mkstemp.c (mkstemp): Likewise.
1448         * lib/mkstemps.c (mkstemps): Likewise.
1449
1450         xalloc-die-tests: optimize
1451         * tests/test-xalloc-die.sh: Reduce number of processes.
1452
1453 2009-11-17  Simon Josefsson  <simon@josefsson.org>
1454
1455         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
1456         patch from ludo@gnu.org (Ludovic Courtès).
1457
1458 2009-11-17  Jim Meyering  <meyering@redhat.com>
1459
1460         version-etc: use proper license string
1461         * modules/version-etc (License): Use LGPL, not LGPLv3+.
1462         * modules/version-etc-fsf: Likewise.
1463
1464 2009-11-17  Simon Josefsson  <simon@josefsson.org>
1465
1466         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
1467         printed to stdout.  Deal with EOL differences.
1468
1469 2009-11-17  Eric Blake  <ebb9@byu.net>
1470
1471         unsetenv: work around Solaris bug
1472         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
1473         * lib/unsetenv.c (rpl_unsetenv): Work around it.
1474         Reported by Jim Meyering.
1475
1476         vasnprintf: avoid compiler warnings
1477         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
1478         variables.
1479         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
1480
1481 2009-11-17  Simon Josefsson  <simon@josefsson.org>
1482
1483         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
1484         settings since xalloc-die is no longer the self test,
1485         xalloc-die.sh is.
1486
1487 2009-11-17  Jim Meyering  <meyering@redhat.com>
1488
1489         test-xalloc-die.sh: make the code agree with the commit log
1490         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
1491         at the end, just in case you happen to have a test-xalloc-die
1492         program in some other PATH directory.
1493
1494         test-xalloc-die.sh: fix a portability bug
1495         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
1496         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
1497         Otherwise, argv[0] (as often seen in diagnostics) would be too
1498         system-dependent, sometimes with, and sometimes without the leading "./".
1499
1500         version-etc-fsf: relax license to LGPLv3+
1501         * modules/version-etc-fsf (License): Relax license.
1502
1503 2009-11-16  Eric Blake  <ebb9@byu.net>
1504
1505         xalloc-die-tests: avoid printing null pointer
1506         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
1507         shell script.
1508         * tests/test-xalloc-die.c (program_name): Declare.
1509         * tests/test-xalloc-die.sh (tmpfiles): New file.
1510
1511         setenv, unsetenv: work around various bugs
1512         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
1513         (setenv) [HAVE_SETENV]: Work around bugs.
1514         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
1515         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
1516         for bugs.
1517         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
1518         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
1519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
1520         * modules/stdlib (Makefile.am): Update substitutions.
1521         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
1522         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
1523         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
1524         * modules/setenv-tests: New test.
1525         * modules/unsetenv-tests: Likewise.
1526         * tests/test-setenv.c: New file.
1527         * tests/test-unsetenv.c: Likewise.
1528
1529 2009-11-16  Jim Meyering  <meyering@redhat.com>
1530
1531         version-etc: relax license to LGPLv3+
1532         * modules/version-etc (License): Relax license.
1533
1534         better AC_REQUIRE expanded-before-required-warning avoidance
1535         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
1536         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
1537         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
1538         which is no longer needed.
1539
1540 2009-11-16  Eric Blake  <ebb9@byu.net>
1541
1542         test-freading: clean up temporary file
1543         * tests/test-freading.c (main): Remove file on success, and use
1544         ASSERT more liberally.
1545         Reported by Jim Meyering.
1546
1547 2009-11-16  Jim Meyering  <meyering@redhat.com>
1548
1549         avoid new AC_REQUIRE expanded-before-required warnings
1550         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
1551         merely using it.
1552         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
1553         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
1554
1555 2009-11-15  Simon Josefsson  <simon@josefsson.org>
1556
1557         * tests/test-xalloc-die.c: New file.
1558         * modules/xalloc-die-tests: New file.
1559         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
1560         XFAIL_TESTS so it can be appended by modules.
1561
1562 2009-11-15  Simon Josefsson  <simon@josefsson.org>
1563
1564         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
1565         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
1566
1567 2009-11-14  Eric Blake  <ebb9@byu.net>
1568
1569         fnmatch: avoid compiler warning
1570         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
1571         to silence compiler warning about mismatch signedness in ?:.
1572         Reported by Robert Millan.
1573
1574         intprops: add double-inclusion guard
1575         * lib/intprops.h: Allow idempotent includes.
1576         Suggested by Bruce Korb.
1577
1578         openat: detect Solaris fchownat bug
1579         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
1580         penalizing glibc chownat when only lchownat is broken.
1581         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
1582         trailing slash bugs.
1583         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
1584         * modules/openat-tests (Files): Include more files.
1585         (Depends-on): Add mgetgroups, sleep, stat-time.
1586         (configure.ac): Add additional checks.
1587         (Makefile.am): Build new test.
1588         * tests/test-fchownat.c: New file.
1589
1590         lchown: detect Solaris and FreeBSD bug
1591         * lib/lchown.c (rpl_lchown): Work around bug.
1592         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
1593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1594         * modules/unistd (Makefile.am): Populate it.
1595         * lib/unistd.in.h (lchown): Update declaration.
1596         * doc/posix-functions/lchown.texi (lchown): Document the bug.
1597         * modules/lchown-tests: New file.
1598         * tests/test-lchown.h (test_lchown): Likewise.
1599         * tests/test-lchown.c (main): Likewise.
1600
1601         chown: detect Solaris and FreeBSD bug
1602         * lib/chown.c (rpl_chown): Work around bug.
1603         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
1604         (gl_PREREQ_CHOWN): Delete.
1605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1606         * modules/unistd (Makefile.am): Populate it.
1607         * lib/unistd.in.h (chown): Update declaration.
1608         * lib/lchown.c (chown): Update client.
1609         * modules/lchown (Depends-on): Add lstat.
1610         * doc/posix-functions/chown.texi (chown): Document the bug.
1611         * doc/posix-functions/getgroups.texi (getgroups): Document
1612         getgroups pitfall.
1613         * modules/chown-tests: New file.
1614         * tests/test-chown.h (test_chown): Likewise.
1615         * tests/test-chown.c (main): Likewise.
1616
1617 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
1618
1619         gnulib-tool: correctly detect absence of m4 directories
1620         * gnulib-tool: Avoid extra newline on data passed to wc -l.
1621
1622 2009-11-14  Jim Meyering  <meyering@redhat.com>
1623
1624         maint.mk: Prohibit inclusion of "xalloc.h" without use.
1625         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
1626
1627 2009-11-14  John W. Eaton  <jwe@gnu.org>
1628
1629         strftime.h: wrap funtion declaration in extern "C" block
1630         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
1631
1632 2009-11-13  Eric Blake  <ebb9@byu.net>
1633
1634         getgroups: avoid compiler warning
1635         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
1636
1637         getgroups: work around FreeBSD bug
1638         * lib/getgroups.c (rpl_getgroups): Work around the bug.
1639         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
1640         * doc/posix-functions/getgroups.texi (getgroups): Document it.
1641         * tests/test-getgroups.c (main): Fix buffer overrun.
1642
1643         getgroups: avoid compilation failure
1644         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
1645         * modules/getgroups (Depends-on): Add stdint.
1646
1647 2009-11-13  Jim Meyering  <meyering@redhat.com>
1648
1649         test-getgroups: avoid compilation failure
1650         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
1651
1652 2009-11-13  Eric Blake  <ebb9@byu.net>
1653
1654         mgetgroups: new module, taken from coreutils
1655         * modules/mgetgroups: New file.
1656         * lib/mgetgroups.h: Likewise.
1657         * lib/mgetgroups.c (mgetgroups): Likewise.
1658         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
1659         * MODULES.html.sh (Users and groups): Mention it.
1660
1661         getgroups: don't expose GETGROUPS_T to user
1662         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
1663         an element at a time if GETGROUPS_T is wrong size.
1664         * lib/getugroups.h (getugroups): Change signature.
1665         * lib/unistd.in.h (getgroups): Likewise.
1666         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
1667         signature needs fixing.
1668         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
1669         AC_TYPE_GETGROUPS.
1670         * modules/group-member (Depends-on): Add getgroups.
1671         * lib/group-member.c (group_info, get_group_info): Use gid_t.
1672         (group_member): Rely on getgroups replacement.
1673         * lib/getugroups.c (getugroups): Use gid_t.
1674         * tests/test-getgroups.c (main): Likewise.
1675         * NEWS: Mention the signature change.
1676         * doc/posix-functions/getgroups.texi (getgroups): Mention the
1677         problem with signature.
1678         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
1679         GETGROUPS_T is still useful for setgroups.
1680
1681         getgroups, getugroups: provide stubs for mingw
1682         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
1683         * lib/getugroups.c (getugroups): Likewise.
1684         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
1685         function.  Modernize replacement scheme.
1686         (gl_PREREQ_GETGROUPS): Delete.
1687         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
1688         * modules/getgroups (configure.ac): Declare witness.
1689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1690         * modules/unistd (Depends-on): Substitute witness.
1691         * lib/unistd.in.h (getgroups): Declare replacement.
1692
1693         getgroups: avoid calling exit
1694         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
1695         drop xalloc.
1696         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
1697         dependencies.
1698         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
1699         exiting, in the rare case of malloc failure.
1700
1701         getgroups: fix logic error
1702         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
1703         has more than 20 groups.
1704         * modules/getgroups-tests: New test.
1705         * tests/test-getgroups.c: New file.
1706
1707 2009-11-13  Simon Josefsson  <simon@josefsson.org>
1708
1709         * tests/test-base64.c: Improve.
1710
1711 2009-11-13  Simon Josefsson  <simon@josefsson.org>
1712
1713         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
1714         Blake <ebb9@byu.net>.
1715
1716 2009-11-13  Simon Josefsson  <simon@josefsson.org>
1717
1718         * tests/test-xvasprintf.c: Add %s%s related checks.
1719
1720 2009-11-12  Eric Blake  <ebb9@byu.net>
1721
1722         version-etc: match standards.texi style
1723         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
1724         and use <> only for URLs.
1725
1726 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
1727
1728         fts: do not fail on a submount during traversal
1729         * lib/fts.c (fts_build): Read the stat info again after opening
1730         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
1731         Original report at http://bugzilla.redhat.com/501848.
1732
1733 2009-11-12  Jim Meyering  <meyering@redhat.com>
1734
1735         bootstrap: sync from coreutils
1736         * build-aux/bootstrap (bootstrap_epilogue): New function.
1737         Use git_modules_config in one more place.  This make bootstrap's
1738         --gnulib-srcdir option more useful for testing.
1739
1740         bootstrap: generalize autoheader check
1741         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
1742         AC_CONFIG_HEADERS.
1743
1744 2009-11-11  Eric Blake  <ebb9@byu.net>
1745
1746         mkfifoat: use new modules for Solaris and BSD bugs
1747         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
1748         * lib/mkfifoat.c (mknodat): Split...
1749         * lib/mknodat.c (mknodat): ...into new file.
1750         * modules/mkfifoat (Files): Ship new file.
1751         (Depends-on): Add mkfifo, mknod.
1752         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
1753         (Depends-on): Add symlink.
1754         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
1755         redundant with test_mkfifo.h.
1756         (do_mkfifoat, do_mknodat): New helpers.
1757
1758         mknod: new module
1759         * modules/mknod: New file.
1760         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
1761         * lib/mknod.c (mknod): Likewise.
1762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
1763         defaults.
1764         * modules/sys_stat (Makefile.am): Substitute them.
1765         * lib/sys_stat.in.h (mknod): Declare replacement.
1766         * MODULES.html.sh (Support for systems lacking POSIX:2008):
1767         Document it.
1768         * doc/posix-functions/mknod.texi (mknod): Likewise.
1769         * modules/mknod-tests: New test.
1770         * tests/test-mknod.c: Likewise.
1771
1772         mkfifo: new module
1773         * modules/mkfifo: New file.
1774         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1775         * lib/mkfifo.c (mkfifo): Likewise.
1776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
1777         defaults.
1778         * modules/sys_stat (Makefile.am): Substitute them.
1779         * lib/sys_stat.in.h (mkfifo): Declare replacement.
1780         * MODULES.html.sh (Support for systems lacking POSIX:2008):
1781         Document it.
1782         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
1783         * modules/mkfifo-tests: New test.
1784         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
1785         from test-mkfifoat.c.
1786         * tests/test-mkfifo.c: New file.
1787
1788         readlink: detect FreeBSD bug
1789         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
1790         slash on symlink.
1791         * doc/posix-functions/readlink.texi (readlink): Document the bug.
1792         * tests/test-readlink.h (test_readlink): Enhance test.
1793
1794         symlink: detect FreeBSD bug
1795         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
1796         slash on symlink.
1797         * doc/posix-functions/symlink.texi (symlink): Document the bug.
1798         * tests/test-symlink.h (test_symlink): Enhance test.
1799
1800 2009-11-10  Eric Blake  <ebb9@byu.net>
1801
1802         link: detect FreeBSD bug
1803         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
1804         symlink.
1805         * doc/posix-functions/link.texi (link): Document the bug.
1806         * tests/test-link.h (test_link): Enhance test.
1807         * tests/test-linkat.c (main): Update caller.
1808
1809         unlink, remove: detect FreeBSD bug
1810         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
1811         slash on symlink.
1812         * doc/posix-functions/unlink.texi (unlink): Document the bug.
1813         * doc/posix-functions/remove.texi (remove): Likewise.
1814         * tests/test-unlink.h (test_unlink): Enhance test.
1815         * tests/test-remove.c (main): Likewise.
1816
1817 2009-11-09  Eric Blake  <ebb9@byu.net>
1818
1819         rename: detect FreeBSD bug
1820         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
1821         slash on symlink.
1822         * modules/renameat-tests (Depends-on): Add filenamecat.
1823         * tests/test-rename.h (test_rename): Allow one more errno.
1824         * tests/test-renameat.c (main): Likewise.
1825         * doc/posix-functions/rename.texi (rename): Document the bug.
1826
1827         open: detect FreeBSD bug
1828         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
1829         symlink.
1830         * doc/posix-functions/open.texi (open): Document the bug.
1831         * doc/posix-functions/utimes.texi (utimes): Likewise.
1832         * tests/test-open.h (test_open): Add parameters, and test symlink
1833         handling.
1834         * tests/test-open.c (main): Adjust caller.
1835         * tests/test-fcntl-safer.c (main): Likewise.
1836         * modules/open-tests (Depends-on): Add stdbool, symlink.
1837         * modules/fcntl-safer-tests (Depends-on): Likewise.
1838         * tests/test-openat.c (main): Add test-open tests.
1839
1840         stat: detect FreeBSD bug
1841         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
1842         symlink.
1843         * doc/posix-functions/stat.texi (stat): Document the bug.
1844         * tests/test-stat.h (test_stat_func): Add argument.
1845         * tests/test-stat.c (main): Adjust caller.
1846         * tests/test-fstatat.c (main): Likewise.
1847         * modules/stat-tests (Depends-on): Add stdbool, symlink.
1848         Reported by Jim Meyering.
1849
1850 2009-11-09  James Youngman  <jay@gnu.org>
1851
1852         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
1853         * lib/strftime.c: Correct placement of #include "ignore-value.h".
1854
1855 2009-11-08  Jim Meyering  <meyering@redhat.com>
1856
1857         utimens: remove invalid futimesat call
1858         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
1859         It used the file descriptor of the target file as the DIR_FD
1860         parameter and NULL as the file name.  That caused failure with
1861         errno == EFAULT on FreeBSD-8.0-rc2
1862
1863 2009-11-07  Eric Blake  <ebb9@byu.net>
1864
1865         fflush, freadseek: use fseeko, not fseek
1866         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1867         (clear_ungetc_buffer): Avoid potential problems on large files.
1868         * lib/freadseek.c (freadseek): Likewise.
1869         * modules/freadseek (Depends-on): Add fseeko.
1870         * modules/fseek (configure.ac): Set a witness.
1871         * tests/test-fflush.c (main): Use fseeko.
1872         * tests/test-fpurge.c (fseek): Disable link warning.
1873         * tests/test-freadable.c (fseek): Likewise.
1874         * tests/test-freading.c (fseek): Likewise.
1875         * tests/test-fseeko.c (fseek): Likewise.
1876         * tests/test-ftell.c (fseek): Likewise.
1877         * tests/test-ftello.c (fseek): Likewise.
1878         * tests/test-fwritable.c (fseek): Likewise.
1879         * tests/test-fwriting.c (fseek): Likewise.
1880
1881 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1882
1883         * modules/memchr (Depends-on): Drop getpagesize dependency.
1884
1885 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1886
1887         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
1888         Reported by Ludovic Courtès.
1889         * build-aux/pmccabe2html: Improve example usage.
1890         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
1891
1892 2009-11-06  Jim Meyering  <meyering@redhat.com>
1893
1894         do-release-commit-and-tag: New module.
1895         Automate the release-commit and tag process.
1896         * build-aux/do-release-commit-and-tag: New script, from coreutils.
1897         * modules/do-release-commit-and-tag: New file.
1898         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1899
1900 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1901
1902         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
1903         because test-select.c uses inet_pton.
1904
1905 2009-11-06  Simon Josefsson  <simon@josefsson.org>
1906
1907         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
1908         GETADDRINFO_LIB.  Bump serial number.
1909         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
1910         Suggested by Eric Blake <ebb9@byu.net>.
1911
1912 2009-11-05  Eric Blake  <ebb9@byu.net>
1913
1914         strtod: detect darwin bug
1915         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
1916         Reported by Leo Davis.
1917
1918         freopen-safer: new module
1919         * modules/freopen-safer: New module.
1920         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
1921         * lib/freopen-safer.c (freopen_safer): New file.
1922         * lib/stdio-safer.h (freopen_safer): New declaration.
1923         * lib/stdio--.h (freopen): New override.
1924         * MODULES.html.sh (File stream based Input/Output): Mention it.
1925         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
1926         freopen-safer module.
1927         * doc/posix-functions/stderr.texi (stderr): Likewise.
1928         * doc/posix-functions/stdin.texi (stdin): Likewise.
1929         * doc/posix-functions/stdout.texi (stdout): Likewise.
1930         * modules/freopen-safer-tests: New test.
1931         * tests/test-reopen-safer.c: New file.
1932
1933 2009-11-05  Jim Meyering  <meyering@redhat.com>
1934
1935         maint.mk: Prohibit inclusion of "close-stream.h" without use.
1936         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
1937
1938 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1939
1940         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
1941
1942 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1943
1944         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
1945
1946 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1947
1948         Fix link error.
1949         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
1950         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1951
1952 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1953
1954         * tests/test-func.c: Also test value of __func__.
1955
1956 2009-11-05  Simon Josefsson  <simon@josefsson.org>
1957
1958         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
1959         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
1960
1961 2009-11-05  Bruno Haible  <bruno@clisp.org>
1962
1963         Fix link error.
1964         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
1965         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1966         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
1967
1968 2009-11-05  Bruno Haible  <bruno@clisp.org>
1969
1970         Tests for module 'inet_pton'.
1971         * modules/inet_pton-tests: New file.
1972         * tests/test-inet_pton.c: New file.
1973
1974 2009-11-05  Bruno Haible  <bruno@clisp.org>
1975
1976         Tests for module 'inet_ntop'.
1977         * modules/inet_ntop-tests: New file.
1978         * tests/test-inet_ntop.c: New file.
1979
1980 2009-11-04  Eric Blake  <ebb9@byu.net>
1981
1982         stdlib-safer: wrap all mkstemp variants
1983         * modules/mkostemp (configure.ac): Set witness.
1984         * modules/mkostemps (configure.ac): Likewise.
1985         * modules/mkstemps (configure.ac): Likewise.
1986         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
1987         (mkstemps_safer): Wrap more functions.
1988         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
1989         wrapping.
1990         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
1991         (mkstemps_safer): Implement the wrappers.
1992
1993         mkstemps, mkostemps: new modules
1994         * modules/mkostemps: New module.
1995         * modules/mkstemps: Likewise.
1996         * lib/mkostemps.c (mkostemps): New file.
1997         * lib/mkstemps.c (mkstemps): Likewise.
1998         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
1999         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
2000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
2001         * modules/stdlib (Makefile.am): Substitute them.
2002         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
2003         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
2004         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2005         * doc/gnulib.texi (Glibc stdlib.h): Include them.
2006         * MODULES.html.sh (File system functions): Mention them.
2007
2008         tempname: resync from glibc
2009         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
2010         same values for __GT_FILE as glibc.  Abort even when assertions
2011         are disabled.
2012         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
2013         match its value otherwise.  Allow idempotent inclusion.
2014         * lib/mkdtemp.c (mkdtemp): Adjust caller.
2015         * lib/mkostemp.c (mkostemp): Likewise.
2016         * lib/mkstemp.c (mkstemp): Likewise.
2017         * lib/tmpfile.c (tmpfile): Likewise.
2018         * NEWS: Document this.
2019
2020         utimens: fix use of futimens on older Linux
2021         * lib/utimens.c (fdutimens): Use updated, rather than original,
2022         timespec to avoid bug in older Linux kernel.
2023         Reported by Simon Josefsson.
2024
2025 2009-11-04  Bruno Haible  <bruno@clisp.org>
2026
2027         Make num_processors more flexible and consistent.
2028         * lib/nproc.h (enum nproc_query): New type.
2029         (num_processors): Add a 'query' argument.
2030         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
2031         (num_processors): Add a 'query' argument. Test the value of the
2032         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
2033         mingw, count the number of CPUs available for the current process.
2034         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
2035         Check for sched_getaffinity and sched_getaffinity_np.
2036         * modules/nproc (Depends-on): Add c-ctype, extensions.
2037         * NEWS: Mention the change.
2038
2039 2009-11-03  Bruno Haible  <bruno@clisp.org>
2040
2041         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
2042
2043 2009-11-03  Jim Meyering  <meyering@redhat.com>
2044
2045         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
2046         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
2047         if it is defined.
2048
2049 2009-11-02  Eric Blake  <ebb9@byu.net>
2050
2051         mktime, timegm: share common declaration
2052         * lib/mktime-internal.h: New file.
2053         * lib/mktime.c: Use it rather than open-coding a declaration.
2054         * lib/timegm.c: Likewise.
2055         * modules/mktime (Files): Ship it.
2056         * modules/timegm (Files): Likewise.
2057         Suggested by Bruno Haible.
2058
2059         test-update-copyright: update test to match script changes
2060         * tests/test-update-copyright.sh: Avoid hard-coding perl
2061         location.  Don't update *.bak created by earlier runs.
2062
2063 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2064             Simon Josefsson  <simon@josefsson.org>
2065             Bruno Haible  <bruno@clisp.org>
2066
2067         Fix link error on Solaris 8.
2068         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
2069         also in libnsl. Define also INET_PTON_LIB.
2070         * modules/inet_pton (Link): New section.
2071
2072 2009-11-02  Simon Josefsson  <simon@josefsson.org>
2073             Bruno Haible  <bruno@clisp.org>
2074
2075         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
2076         * modules/inet_ntop (Link): New section.
2077         Reported by Boyan Kasarov <bkasarov@gmail.com>.
2078
2079 2009-11-02  Eric Blake  <ebb9@byu.net>
2080
2081         maint: avoid compiler warnings in m4 macros
2082         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
2083         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
2084
2085 2009-11-02  Simon Josefsson  <simon@josefsson.org>
2086
2087         * m4/pmccabe2html.m4: Remove file.
2088         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
2089         function.  Change maintainer.
2090         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
2091         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
2092         Courtès).
2093
2094 2009-10-31  Eric Blake  <ebb9@byu.net>
2095
2096         fseeko: fix m4 regression
2097         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
2098         regression from 2009-10-27.
2099         Reported by Ralf Wildenhues.
2100
2101 2009-10-31  Jim Meyering  <meyering@redhat.com>
2102
2103         inttostr: aesthetics and improved (compile-time) safety
2104         Define inttype_is_signed rather than inttype_is_unsigned,
2105         since the sole use is via "#if inttype_is_signed".
2106         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
2107         inttype_is_unsigned.
2108         * lib/offtostr.c (inttype_is_signed): Likewise.
2109         * lib/uinttostr.c (inttype_is_signed): Likewise.
2110         * lib/umaxtostr.c (inttype_is_signed): Likewise.
2111         * lib/inttostr.c (inttostr): Use verify to cross-check the
2112         inttype_is_signed value and the signedness of the actual type.
2113         * modules/inttostr (Depends-on): Add verify.
2114
2115 2009-10-30  Eric Blake  <ebb9@byu.net>
2116
2117         build: avoid compiler warnings
2118         * lib/fchmodat.c (lchmod): Mark unused variables.
2119         * lib/getopt.c (_getopt_initialize): Likewise.
2120         * lib/mktime.c (__mktime_internal): Provide prototype.
2121         * lib/inttostr.c (inttostr): Avoid compiler warning even with
2122         older gcc that do not understand #pragma GCC diagnostic.
2123         * lib/uinttostr.c (inttype_is_unsigned): Define.
2124         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
2125
2126 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2127
2128         stat: fix compilation on AIX
2129         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
2130         only see struct stat64.
2131
2132 2009-10-30  Eric Blake  <ebb9@byu.net>
2133
2134         exclude: make more robust
2135         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
2136         rather than masking a coding bug.
2137         Suggested by Bruno Haible.
2138
2139 2009-10-30  Jim Meyering  <meyering@redhat.com>
2140
2141         perl scripts: remove #!/usr/bin/perl in favor of more portable...
2142         Rather than putting #!/usr/bin/perl on the first line,
2143         start with a variant of what's recommended by "man perlrun" that
2144         invokes the first "perl" program from your shell's search path.
2145         * build-aux/gitlog-to-changelog: Replace #!... as above.
2146         Add a "Local Variables" perl mode setting.
2147         Prompted by a patch from Ludovic Courtès.
2148         Improved by Eric Blake.
2149         * build-aux/useless-if-before-free: Likewise.
2150         * build-aux/announce-gen: Likewise.
2151         * build-aux/update-copyright: Likewise.
2152
2153 2009-10-29  Eric Blake  <ebb9@byu.net>
2154
2155         filenamecat-lgpl: adjust clients
2156         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
2157         filenamecat.
2158         * modules/renameat (Depends-on): Likewise.
2159
2160         filenamecat: split into filenamecat-lgpl
2161         * modules/filenamecat-lgpl: New module.
2162         * modules/filenamecat (Files): Move library-safe files into
2163         filenamecat-lgpl.
2164         (Depends-on): Add filenamecat-lgpl.
2165         (configure.ac): Declare witness.
2166         * lib/filenamecat.h (file_name_concat): Only declare when using
2167         GPL module.
2168         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
2169         Move...
2170         * lib/filenamecat-lgpl.c: ...into new file.
2171         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
2172         (gl_FILE_NAME_CONCAT): Use it.
2173         * MODULES.html.sh (File system functions): Mention new module.
2174
2175         argp: avoid memory leak
2176         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
2177         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
2178         base_name, since the latter malloc()s and can call exit().
2179         Leak introduced 2006-07-03.
2180
2181         dirname-lgpl: adjust clients that don't need full dirname
2182         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
2183         * modules/filenamecat (Depends-on): Likewise.
2184         * modules/linkat (Depends-on): Likewise.
2185         * modules/mkancesdirs (Depends-on): Likewise.
2186         * modules/mkdir (Depends-on): Likewise.
2187         * modules/openat (Depends-on): Likewise.
2188         * modules/savewd (Depends-on): Likewise.
2189         * modules/rename (Depends-on): Likewise.
2190         (License): Relax license.
2191         * modules/mkdir-tests (Depends-on): Drop progname.
2192         (Makefile.am): Delete unneeded LDADD.
2193         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
2194
2195         dirname: split into dirname-lgpl
2196         * modules/dirname-lgpl: New module.
2197         * modules/dirname (Files): Move library-safe files into
2198         dirname-lgpl.
2199         (Depends-on): Add dirname-lgpl.
2200         (configure.ac): Declare witness.
2201         * modules/double-slash-root (License): Relax license.
2202         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
2203         module.
2204         * lib/dirname.c (dir_len, mdir_name): Move...
2205         * lib/dirname-lgpl.c: ...into new file.
2206         * lib/basename.c (last_component, base_len): Move...
2207         * lib/basename-lgpl.c: ...into new file.
2208         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
2209         (gl_DIRNAME): Use it.
2210         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
2211         Mention new module.
2212         * modules/dirname-tests (Depends-on): Add progname.
2213         * tests/test-dirname.c (program_name): Delete.
2214
2215         mkdir: make safe for libraries
2216         * modules/mkdir (Depends-on): Drop xalloc.
2217         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
2218         exit.
2219
2220         tests: avoid some compiler warnings
2221         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
2222         literals.
2223         * tests/test-memchr.c (main): Avoid type mismatch.
2224         * tests/test-arpa_inet.c (main): Avoid unused parameters.
2225         * tests/test-base64.c (main): Likewise.
2226         * tests/test-getdelim.c (main): Likewise.
2227         * tests/test-gethostname.c (main): Likewise.
2228         * tests/test-getline.c (main): Likewise.
2229         * tests/test-netinet_in.c (main): Likewise.
2230         * tests/test-select.c (open_server_socket, main): Likewise.
2231         * tests/test-select-stdin.c (main): Likewise.
2232         * tests/test-sockets.c (main): Likewise.
2233         * tests/test-strsignal.c (main): Likewise.
2234         * tests/test-sys_select.c (main): Likewise.
2235         * tests/test-sys_socket.c (main): Likewise.
2236         * tests/test-u64.c (main): Likewise.
2237         * tests/test-xfprintf-posix.c (main): Likewise.
2238         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
2239
2240         sockets: avoid compiler warning
2241         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
2242
2243         maint: detect usage(1) and other suspicious exits
2244         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
2245
2246 2009-10-29  Jim Meyering  <meyering@redhat.com>
2247
2248         timespec: long-to-int truncation could make timespec_cmp malfunction
2249         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
2250         a multiple of 2^32 nanoseconds as no difference.
2251
2252 2009-10-28  Jim Meyering  <meyering@redhat.com>
2253
2254         fprintftime: wrap macro code argument in "do {...} while(0)"
2255         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
2256         cpy macro must be a statement that can be followed by a semicolon.
2257         Now that the else clause contains a comment and is hence longer
2258         than one line, I require curly braces.  That in turn requires
2259         that we wrap this code block in the standard do...while(0).
2260
2261         fprintftime: remove stray semicolon from previous change
2262         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
2263
2264         fprintftime: avoid a warning about ignored fwrite return value
2265         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
2266         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
2267         that is unsafe.
2268         * modules/fprintftime (Depends-on): Add ignore-value.
2269
2270         exclude: avoid an unwarranted warning
2271         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
2272
2273 2009-10-27  Eric Blake  <ebb9@byu.net>
2274
2275         fseek: avoid compilation failure when fflush is replaced
2276         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
2277         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
2278         module is in use.
2279         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
2280         module is not in use; since REPLACE_FSEEK worked otherwise.
2281         (GNULIB_FTELLO): Likewise for ftell.
2282         Reported by Ian Beckwith and others.
2283
2284 2009-10-27  Bruno Haible  <bruno@clisp.org>
2285
2286         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
2287         Reported by Jim Meyering.
2288
2289 2009-10-27  Jim Meyering  <jim@meyering.net>
2290             Bruno Haible  <bruno@clisp.org>
2291
2292         Avoid warning despite dropping the return value of fwrite.
2293         * lib/unicodeio.c: Include ignore-value.h.
2294         (fwrite_success_callback): Explicitly ignore fwrite's return value.
2295         * modules/unicodeio (Depends-on): Add ignore-value.
2296
2297 2009-10-26  Eric Blake  <ebb9@byu.net>
2298
2299         areadlinkat: fix fallback path
2300         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
2301         pointer and zero.
2302
2303 2009-10-22  Pádraig Brady  <P@draigBrady.com>
2304
2305         Use a better IO block size for modern systems
2306         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
2307         * lib/md2.c: Likewise.
2308         * lib/md4.c: Likewise.
2309         * lib/md5.c: Likewise.
2310         * lib/sha1.c: Likewise.
2311         * lib/sha256.c: Likewise.
2312         * lib/sha512.c: Likewise.
2313
2314 2009-10-22  Eric Blake  <ebb9@byu.net>
2315
2316         tests: avoid several compiler warnings
2317         * tests/test-getcwd.c (main): Avoid buffer underflow.
2318         * tests/test-getdate.c (main): String literals are not safe with
2319         putenv, so use setenv.  Declare unused argument.
2320         * modules/getdate-tests (Depends-on): Add setenv.
2321         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
2322         problems with string literals in char *.
2323         * tests/test-hash.c (main): Avoid shadowing declaration.
2324         (insert_new): Treat string literals as char const *.
2325         * tests/test-getopt.h (test_getopt): Likewise.
2326         (getopt_loop): Alter types to minimize casting elsewhere.
2327         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
2328         (test_getopt_long_posix): Likewise.
2329         (do_getopt_long): Add wrapper to minimize casting.
2330         * tests/test-atexit.c (clear_temp_file): Use void.
2331         * tests/test-areadlink-with-size.c (main): Declare unused
2332         arguments.
2333         * tests/test-areadlink.c (main): Likewise.
2334         * tests/test-areadlinkat-with-size.c (main): Likewise.
2335         * tests/test-areadlinkat.c (main): Likewise.
2336         * tests/test-canonicalize-lgpl.c (main): Likewise.
2337         * tests/test-canonicalize.c (main): Likewise.
2338         * tests/test-dirent-safer.c (main): Likewise.
2339         * tests/test-dirname.c (main): Likewise.
2340         * tests/test-dup2.c (main): Likewise.
2341         * tests/test-fchdir.c (main): Likewise.
2342         * tests/test-fcntl-h.c (main): Likewise.
2343         * tests/test-fcntl-safer.c (main): Likewise.
2344         * tests/test-fdopendir.c (main): Likewise.
2345         * tests/test-fdutimensat.c (main): Likewise.
2346         * tests/test-fflush.c (main): Likewise.
2347         * tests/test-filenamecat.c (main): Likewise.
2348         * tests/test-filevercmp.c (main): Likewise.
2349         * tests/test-fopen-safer.c (main): Likewise.
2350         * tests/test-fopen.c (main): Likewise.
2351         * tests/test-fpending.c (main): Likewise.
2352         * tests/test-fpurge.c (main): Likewise.
2353         * tests/test-freading.c (main): Likewise.
2354         * tests/test-fstatat.c (main): Likewise.
2355         * tests/test-fsync.c (main): Likewise.
2356         * tests/test-futimens.c (main): Likewise.
2357         * tests/test-getndelim2.c (main): Likewise.
2358         * tests/test-gettimeofday.c (main): Likewise.
2359         * tests/test-getopt.c (main): Likewise.
2360         * tests/test-i-ring.c (main): Likewise.
2361         * tests/test-inttypes.c (main): Likewise.
2362         * tests/test-link.c (main): Likewise.
2363         * tests/test-lstat.c (main): Likewise.
2364         * tests/test-math.c (main): Likewise.
2365         * tests/test-md5.c (main): Likewise.
2366         * tests/test-memchr2.c (main): Likewise.
2367         * tests/test-memrchr.c (main): Likewise.
2368         * tests/test-mkdir.c (main): Likewise.
2369         * tests/test-mkdirat.c (main): Likewise.
2370         * tests/test-mkfifoat.c (main): Likewise.
2371         * tests/test-open.c (main): Likewise.
2372         * tests/test-openat-safer.c (main): Likewise.
2373         * tests/test-openat.c (main): Likewise.
2374         * tests/test-quotearg.c (main): Likewise.
2375         * tests/test-rawmemchr.c (main): Likewise.
2376         * tests/test-readlink.c (main): Likewise.
2377         * tests/test-remove.c (main): Likewise.
2378         * tests/test-rename.c (main): Likewise.
2379         * tests/test-renameat.c (main): Likewise.
2380         * tests/test-rmdir.c (main): Likewise.
2381         * tests/test-sha1.c (main): Likewise.
2382         * tests/test-signal.c (main): Likewise.
2383         * tests/test-sigaction.c (main): Likewise.
2384         * tests/test-stat.c (main): Likewise.
2385         * tests/test-stat-time.c (main): Likewise.
2386         * tests/test-stddef.c (main): Likewise.
2387         * tests/test-stdint.c (main): Likewise.
2388         * tests/test-stdio.c (main): Likewise.
2389         * tests/test-stdlib.c (main): Likewise.
2390         * tests/test-strchrnul.c (main): Likewise.
2391         * tests/test-strerror.c (main): Likewise.
2392         * tests/test-string.c (main): Likewise.
2393         * tests/test-strtod.c (main): Likewise.
2394         * tests/test-strverscmp.c (main): Likewise.
2395         * tests/test-symlink.c (main): Likewise.
2396         * tests/test-symlinkat.c (main): Likewise.
2397         * tests/test-sys_stat.c (main): Likewise.
2398         * tests/test-sys_time.c (main): Likewise.
2399         * tests/test-time.c (main): Likewise.
2400         * tests/test-unistd.c (main): Likewise.
2401         * tests/test-unlink.c (main): Likewise.
2402         * tests/test-unlinkat.c (main): Likewise.
2403         * tests/test-utimens.c (main): Likewise.
2404         * tests/test-utimensat.c (main): Likewise.
2405         * tests/test-version-etc.c (main): Likewise.
2406         * tests/test-wchar.c (main): Likewise.
2407         * tests/test-wctype.c (main): Likewise.
2408         * tests/test-xprintf-posix.c (main): Likewise.
2409         * tests/test-posixtm.c (main): Likewise.
2410         (STREQ): Delete unused macro.
2411         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
2412         shadowed variables.
2413         * tests/test-memchr.c (main): Likewise.
2414
2415 2009-10-21  Eric Blake  <ebb9@byu.net>
2416
2417         areadlinkat: avoid failure on older glibc
2418         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
2419         rather than mis-comparing 0 against FUNC_RESULT of char*.
2420
2421 2009-10-21  Bruno Haible  <bruno@clisp.org>
2422
2423         * modules/stpncpy (License): Relicense under LGPLv2+.
2424         Reported by David Lutterkort <lutter@redhat.com>.
2425
2426 2009-10-20  Eric Blake  <ebb9@byu.net>
2427
2428         utimensat: work around Solaris 9 bug
2429         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
2430         has trailing slash bugs.
2431         * tests/test-lutimens.h (test_lutimens): Enhance test.
2432         * tests/test-utimens.h (test_utimens): Likewise.
2433         * doc/posix-functions/utime.texi (utime): Enhance documentation.
2434         * doc/posix-functions/utimes.texi (utimes): Likewise.
2435         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2436         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
2437         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
2438         * doc/posix-functions/futimens.texi (futimens): Likewise.
2439
2440         fdutimensat: new module
2441         * modules/fdutimensat: New file.
2442         * lib/fdutimensat.c (fdutimensat): Likewise.
2443         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
2444         * MODULES.html.sh (File system functions): Mention module.
2445         * modules/fdutimensat-tests: New test.
2446         * tests/test-fdutimensat.c: Likewise.
2447
2448         doc: regenerate INSTALL
2449         * doc/INSTALL: Reflect recent autoconf update.
2450         * doc/INSTALL.ISO: Likewise.
2451         * doc/INSTALL.UTF-8: Likewise.
2452
2453 2009-10-20  Pádraig Brady  <P@draigBrady.com>
2454
2455         acl: warn if ACL support is not detected
2456         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
2457
2458 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
2459
2460         * lib/nproc.h: Add extern "C" block for C++.
2461
2462 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
2463             Bruno Haible  <bruno@clisp.org>
2464
2465         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
2466         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
2467         * doc/posix-functions/isalpha.texi: Likewise.
2468         * doc/posix-functions/isblank.texi: Likewise.
2469         * doc/posix-functions/iscntrl.texi: Likewise.
2470         * doc/posix-functions/isdigit.texi: Likewise.
2471         * doc/posix-functions/isgraph.texi: Likewise.
2472         * doc/posix-functions/islower.texi: Likewise.
2473         * doc/posix-functions/isprint.texi: Likewise.
2474         * doc/posix-functions/ispunct.texi: Likewise.
2475         * doc/posix-functions/isspace.texi: Likewise.
2476         * doc/posix-functions/isupper.texi: Likewise.
2477         * doc/posix-functions/isxdigit.texi: Likewise.
2478
2479 2009-10-18  Bruno Haible  <bruno@clisp.org>
2480
2481         Tests for module 'isblank'.
2482         * modules/isblank-tests: New file.
2483         * tests/test-isblank.c: New file.
2484
2485         New module 'isblank'.
2486         * lib/isblank.c: New file.
2487         * m4/isblank.m4: New file.
2488         * modules/isblank: New file.
2489         * doc/posix-functions/isblank.texi: Mention the new module.
2490
2491 2009-10-18  Bruno Haible  <bruno@clisp.org>
2492
2493         New module 'ctype'.
2494         * lib/ctype.in.h: New file.
2495         * m4/ctype.m4: New file.
2496         * modules/ctype: New file.
2497         * doc/posix-headers/ctype.texi: Mention the new module.
2498
2499 2009-10-18  Jim Meyering  <meyering@redhat.com>
2500
2501         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
2502         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
2503         right after its initialization, rather than farther down.
2504         Keeping these in close proximity makes it easier to ensure
2505         that each such variable is initialized.  E.g.,
2506
2507             LIB_CLOCK_GETTIME=
2508             AC_SUBST([LIB_CLOCK_GETTIME])
2509
2510         This change also increments these serial numbers.
2511         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
2512         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2514
2515 2009-10-18  Bruno Haible  <bruno@clisp.org>
2516
2517         Don't let environment variables perturb build.
2518         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
2519         (gl_PREREQ_GETHRXTIME): ... not here.
2520
2521 2009-10-18  Bruno Haible  <bruno@clisp.org>
2522
2523         Avoid symlink attack in localcharset module.
2524         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
2525         (O_NOFOLLOW): Define fallback.
2526         (get_charset_aliases): Don't open the file if it is a symbolic link.
2527         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
2528         gl_FCNTL_H.
2529         (gl_FCNTL_H): Require it.
2530         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
2531         * modules/localcharset (Files): Add m4/fcntl_h.m4.
2532         Reported by Fergal Glynn <fglynn@veracode.com>.
2533
2534 2009-10-18  Bruno Haible  <bruno@clisp.org>
2535
2536         Implement nproc for mingw.
2537         * lib/nproc.c: Include <windows.h>
2538         (num_processors): On native Windows platforms, try GetSystemInfo.
2539
2540 2009-10-18  Bruno Haible  <bruno@clisp.org>
2541
2542         Implement nproc for IRIX.
2543         * lib/nproc.c: Include <sys/sysmp.h>.
2544         (num_processors): On IRIX systems, try sysmp.
2545         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
2546
2547 2009-10-18  Bruno Haible  <bruno@clisp.org>
2548
2549         Implement nproc for HP-UX.
2550         * lib/nproc.c: Include <sys/pstat.h>
2551         (num_processors): On HP-UX systems, try pstat_getdynamic.
2552         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
2553         pstat_getdynamic.
2554
2555 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
2556             Bruno Haible  <bruno@clisp.org>
2557
2558         Implement nproc for NetBSD, OpenBSD.
2559         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
2560         (ARRAY_SIZE): New macro.
2561         (num_processors): On BSD systems, try sysctl of HW_NCPU.
2562         * m4/nproc.m4: New file.
2563         * modules/nproc (Files): Add m4/nproc.m4.
2564         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
2565         (Makefile.am): Instead, augment lib_SOURCES.
2566
2567 2009-10-18  Bruno Haible  <bruno@clisp.org>
2568
2569         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
2570         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
2571         sys/param.h.
2572
2573 2009-10-16  Eric Blake  <ebb9@byu.net>
2574
2575         utimensat: new module
2576         * modules/utimensat: New file.
2577         * lib/utimensat.c (utimensat): Likewise.
2578         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2579         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
2580         so we can work around Linux bugs.
2581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
2582         * modules/sys_stat (Makefile.am): Substitute them.
2583         * lib/sys_stat.in.h (utimensat): Declare it.
2584         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2585         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2586         * modules/utimensat-tests: New test.
2587         * tests/test-utimensat.c: Likewise.
2588
2589         utimens: let lutimens work on non-symlinks
2590         * lib/utimens.c (lutimens): Fall back to utimens rather than
2591         failing with ENOSYS, when file is not a symlink.
2592         (utimens): Reduce redirection.
2593         * tests/test-lutimens.h (test_lutimens): Update test to cover
2594         non-symlinks.
2595         * tests/test-utimens.h (test_utimens): Update test to cover
2596         symlinks.
2597         * tests/test-utimens.c (main): Update caller.
2598
2599         utimens: cache whether utimensat syscall works
2600         * lib/utimens.c (utimensat_works_really): New cache variable.
2601         (fdutimens, lutimens): Use it to avoid failing syscall.
2602
2603         test-stat-time, test-utimens: improve portability
2604         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
2605         ext4 on alpha, and for cygwin.
2606         * tests/test-utimens-common.h: New file.
2607         (nap): Factor delays into single function.
2608         * tests/test-lutimens.h (test_lutimens): Use new header.
2609         * tests/test-futimens.h (test_futimens): Likewise.
2610         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
2611         timestamps to occur from same machine, as was done previously for
2612         test_utimens.
2613         * modules/utimens-tests (Files): Ship new file.
2614         * modules/futimens-tests (Files): Likewise.
2615         Reported in part by Jim Meyering.
2616
2617         sys_stat: sort replacement declarations
2618         * lib/sys_stat.in.h: Sort declarations.
2619         * lib/futimens.c (futimens): Fix typo.
2620
2621 2009-10-15  Jim Meyering  <meyering@redhat.com>
2622
2623         don't let environment settings perturb build
2624         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
2625         could cause a configure-time and/or build-time malfunction.
2626         Typically, a configure-time function-in-library test is performed
2627         via code like this:
2628
2629           LIB_VAR=
2630           AC_SUBST([LIB_VAR])
2631           prefix_saved_LIBS=$LIBS
2632             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
2633                        [test "$ac_cv_search_FUNC" = "none required" ||
2634                         LIB_VAR=$ac_cv_search_FUNC])
2635           LIBS=$prefix_saved_LIBS
2636
2637         However, in each of the files affected by this change, the LIB_VAR=
2638         initialization was omitted.  Thus, when set in the environment, its
2639         value would propagate into generated Makefiles when FUNC is not found
2640         in LIB_NAME.
2641         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
2642         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2644
2645 2009-10-14  Eric Blake  <ebb9@byu.net>
2646
2647         fchdir: avoid infinite recursion in mingw
2648         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
2649         recursing.
2650
2651         test-stat-time: port to mingw
2652         * tests/test-stat-time.c (force_unlink): Return a value.
2653         (test_ctime) [W32]: Fix compilation error.
2654         (nap): Don't call usleep with too large an argument.  Use
2655         force_unlink.
2656         * doc/pastposix-functions/usleep.texi (usleep): Document the
2657         portability issue.
2658
2659 2009-10-13  Jim Meyering  <meyering@redhat.com>
2660
2661         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
2662         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
2663         * modules/pipe-filter-ii: Likewise.
2664         * modules/sys_socket-tests: Likewise.
2665         * modules/tsearch-tests: Likewise.
2666         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
2667         (check): Depend on it.
2668
2669 2009-10-12  Eric Blake  <ebb9@byu.net>
2670
2671         utimens-tests: port to NFS file systems
2672         * tests/test-utimens.h (test_utimens): Refactor utimecmp
2673         comparisons to avoid spurious failures from timestamp drift
2674         between NFS machines.
2675
2676 2009-10-12  Eric Blake  <ebb9@byu.net>
2677
2678         stat-time-tests: minor cleanups
2679         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2680         * tests/test-stat-time.c (nap): Separate assignment from call.
2681         Suggested by Paolo Bonzini and Bruno Haible.
2682
2683         sys_stat: guarantee struct timespec
2684         * lib/sys_stat.in.h (includes): Always include <time.h>
2685         * modules/sys_stat (Depends-on): Add time.
2686         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
2687         mode_t permission values.
2688         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
2689         get at subsecond timestamps.
2690
2691 2009-10-10  Eric Blake  <ebb9@byu.net>
2692
2693         futimens: new module
2694         * modules/futimens: New file.
2695         * lib/futimens.c (futimens): Likewise.
2696         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
2697         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
2698         we can work around Linux bugs.
2699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
2700         * modules/sys_stat (Makefile.am): Substitute them.
2701         * lib/sys_stat.in.h (futimens): Declare it.
2702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2703         * doc/posix-functions/futimens.texi (futimens): Likewise.
2704         * modules/futimens-tests: New test.
2705         * tests/test-futimens.c: Likewise.
2706
2707         utimens: introduce fdutimens
2708         * lib/utimens.h (fdutimens): New prototype.
2709         * lib/utimens.c (gl_futimens): Move guts...
2710         (fdutimens): ...to new interface.
2711         * tests/test-utimens.c (do_fdutimens): Use it.
2712
2713         utimens: add UTIME_NOW and UTIME_OMIT support
2714         * lib/utimens.c (validate_timespec, update_timespec): New helper
2715         functions.
2716         (gl_futimens, lutimens): Use them.
2717         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
2718         stdbool, sys_stat.
2719         (Link): Mention resulting library dependency.
2720         * modules/utimecmp (Link): Likewise.
2721         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
2722         (Makefile.am): Pick up library dependency.
2723         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
2724         definition.
2725         * tests/test-sys_stat.c: Test the definitions.
2726         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
2727         * NEWS: Document library dependency.
2728
2729         utimecmp: support symlink timestamps
2730         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
2731         hashing when possible.  Use pathconf when available.
2732         (SYSCALL_RESOLUTION): Recognize tighter resolution.
2733         * modules/utimecmp (Depends-on): Add lstat.
2734
2735         utimens: add lutimens interface
2736         * lib/utimens.c (lutimens): New function.
2737         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
2738         * lib/utimens.h (lutimens): Declare new interface.
2739         * tests/test-utimens.c (main): Enhance test.
2740         * tests/test-lutimens.h (test_lutimens): New file.
2741         * modules/utimens-tests (Files): Distribute it.
2742         (Depends-on): Add symlink.
2743         (configure.ac): Check for usleep.
2744
2745         utimens: validate futimens usage
2746         * lib/utimens.c (gl_futimens): Require valid fd up front, using
2747         fewer syscalls on failure later on.  Avoid compiler warning on
2748         mingw.
2749         * modules/utimens (Depends-on): Add dup2.
2750
2751         utimens: add test
2752         * modules/utimens-tests: New test.
2753         * tests/test-utimens.h: New file.
2754         * tests/test-futimens.h: Likewise.
2755         * tests/test-utimens.c: Likewise.
2756
2757         doc: mention timestamp portability issues
2758         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
2759         instead.
2760         * doc/posix-functions/utime.texi (utime): Likewise.
2761         * doc/posix-functions/utimes.texi (utimes): Likewise.
2762         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
2763         instead.
2764         * doc/posix-functions/futimens.texi (futimens): Mention utimens
2765         module.
2766         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2767         Mention weakness with symlink timestamps.
2768         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
2769         to utimensat/futimens instead.
2770         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
2771
2772         test-dup2: enhance test
2773         * tests/test-dup2.c (main): Also check AT_FDCWD.
2774
2775         test-stat-time: avoid more spurious failures
2776         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
2777         xfs; and avoid race if the two timestamps cross quantization edge.
2778
2779         relocatable: prefer 'file system' over 'filesystem'
2780         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
2781         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
2782         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
2783         * doc/relocatable.texi (Enabling Relocatability): Likewise.
2784         * lib/relocatable.c (compute_curr_prefix): Likewise.
2785
2786 2009-10-10  Jim Meyering  <meyering@redhat.com>
2787
2788         stat-time-tests: check for the usleep function
2789         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
2790
2791 2009-10-10  Bruno Haible  <bruno@clisp.org>
2792
2793         * modules/xnanosleep: Put the Link section after the Include section.
2794
2795 2009-10-09  Eric Blake  <ebb9@byu.net>
2796
2797         dup2: work around FreeBSD 6.1 bug
2798         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
2799         * doc/posix-functions/dup2.texi (dup2): Document it.
2800         Reported by Nelson H. F. Beebe and Jim Meyering.
2801
2802         test-stat-time: port to buggy NFS clients
2803         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
2804         (test_ctime): Also skip test if mtime and ctime are skewed.
2805
2806         maint: prefer 'file system' over 'filesystem'
2807         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
2808         * doc/posix-functions/lstat.texi (lstat): Likewise.
2809         * lib/file-has-acl.c (file_has_acl): Likewise.
2810         * lib/fwriteerror.c [TEST]: Likewise.
2811         * tests/test-areadlink.h (test_areadlink): Likewise.
2812         * tests/test-areadlinkat-with-size.c (main): Likewise.
2813         * tests/test-areadlinkat.c (main): Likewise.
2814         * tests/test-canonicalize-lgpl.c (main): Likewise.
2815         * tests/test-canonicalize.c (main): Likewise.
2816         * tests/test-fstatat.c (main): Likewise.
2817         * tests/test-linkat.c (main): Likewise.
2818         * tests/test-lstat.h (test_lstat_func): Likewise.
2819         * tests/test-mkdir.h (test_mkdir): Likewise.
2820         * tests/test-readlink.h (test_readlink): Likewise.
2821         * tests/test-remove.c (main): Likewise.
2822         * tests/test-rename.h (test_rename): Likewise.
2823         * tests/test-renameat.c (main): Likewise.
2824         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2825         * tests/test-symlink.h (test_symlink): Likewise.
2826         * tests/test-symlinkat.c (main): Likewise.
2827         * tests/test-unlink.h (test_unlink_func): Likewise.
2828         * tests/test-unlinkat.c (main): Likewise.
2829
2830         maint: make realtime library usage explicit
2831         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
2832         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
2833         * modules/settime (Link): Likewise.
2834         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
2835
2836         test-stat-time: speed up execution
2837         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
2838         warning on mingw.
2839         (nap): New helper function.
2840         (prepare_test): Use it to reduce sleep time.
2841         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
2842         execution.
2843         * modules/stat-time-tests (configure.ac): Check for usleep.
2844
2845 2009-10-09  Jim Meyering  <meyering@redhat.com>
2846
2847         selinux-h: always use getfilecon wrappers
2848         * lib/getfilecon.c: New file.
2849         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
2850         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
2851         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
2852         (fgetfilecon): Provide a stub.
2853         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
2854         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
2855         file unconditionally.
2856         When <selinux/selinux.h> is found, arrange to use wrappers.
2857         * modules/selinux-h (Files): Add getfilecon.c.
2858         (Makefile.am): Substitute include-next-related bits
2859         into the now-always-generated selinux/selinux.h file.
2860         * doc/glibc-functions/lgetfilecon.texi: New file.
2861         * doc/glibc-functions/fgetfilecon.texi: New file.
2862         * doc/glibc-functions/getfilecon.texi: New file.
2863         * doc/glibc-functions/getfilecon-desc.texi: New file.
2864         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
2865         which to pull in the new files.
2866         * MODULES.html.sh (Misc): Add selinux-h.
2867
2868 2009-10-08  Jim Meyering  <meyering@redhat.com>
2869
2870         unistd: fix comment typo
2871         * lib/unistd.in.h (euidaccess): Fix a comment typo.
2872
2873 2009-10-08  Eric Blake  <ebb9@byu.net>
2874
2875         areadlink: use SIZE_MAX consistently
2876         * modules/areadlink (Depends-on): Add stdint.
2877         * modules/areadlink-with-size (Depends-on): Likewise.
2878         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
2879         gives NULL; drop sys/types, since unistd gives size_t; and add
2880         stdint for SIZE_MAX.
2881         (SIZE_MAX): Rely on headers.
2882         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
2883         and add stdint.
2884         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
2885         (SIZE_MAX): Likewise.
2886         (INITIAL_BUF_SIZE): Turn into enum.
2887         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
2888
2889 2009-10-08  Jim Meyering  <meyering@redhat.com>
2890
2891         areadlinkat: avoid compilation failure
2892         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
2893         Fix typo in comment.
2894
2895 2009-10-07  Eric Blake  <ebb9@byu.net>
2896
2897         areadlinkat-with-size: new module
2898         * modules/areadlinkat-with-size: New module.
2899         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
2900         * lib/areadlink.h (areadlinkat): Declare it.
2901         * MODULES.html.sh (File system functions): Mention it.
2902         * modules/areadlinkat-with-size-tests: New test.
2903         * tests/test-areadlinkat-with-size.c: New file.
2904
2905         xreadlinkat: new module
2906         * modules/xreadlinkat: New module.
2907         * lib/xreadlinkat.c (xreadlinkat): New file.
2908         * lib/xreadlink.h (xreadlinkat): Declare it.
2909         * MODULES.html.sh (File system functions): Mention it.
2910
2911         areadlinkat: new module
2912         * lib/at-func.c (FUNC_FAIL): New define.
2913         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
2914         * modules/areadlinkat: New module.
2915         * lib/linkat.c (areadlinkat): Move...
2916         * lib/areadlinkat.c (areadlinkat): ...to new file.
2917         * lib/areadlink.h (areadlinkat): Declare it.
2918         * modules/linkat (Depends-on): Add areadlinkat.
2919         * MODULES.html.sh (File system functions): Mention it.
2920         * modules/areadlinkat-tests: New test.
2921         * tests/test-areadlinkat.c: New file.
2922
2923         areadlink, areadlink-with-size: add tests
2924         * modules/areadlink-tests: New test.
2925         * modules/areadlink-with-size-tests: Likewise.
2926         * tests/test-areadlink.h: New file.
2927         * tests/test-areadlink.c: Likewise.
2928         * tests/test-areadlink-with-size.c: Likewise.
2929
2930         maint: minor cleanups
2931         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
2932         _UNUSED_PARAMETER_ instead.
2933         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
2934         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
2935         * modules/linkat-tests (Files): Distribute test-link.h.
2936
2937         openat, utimens: whitespace cleanup
2938         * lib/openat.c: Prefer space throughout, rather than mix of 8
2939         spaces vs. tabs.
2940         * lib/at-func.c: Likewise.
2941         * lib/utimens.c: Likewise.
2942
2943         openat: avoid using wrong fd
2944         * lib/openat.c (openat_permissive): Reject user's fd if saving the
2945         working directory chooses same fd.
2946         * lib/at-func.c (AT_FUNC_NAME): Likewise.
2947
2948         mkdir, mkdirat: fix cygwin 1.5.x bug
2949         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
2950         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
2951         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
2952         bug.
2953         (gl_PREREQ_MKDIR): Delete unused macro.
2954         * modules/mkdir (Files): Track file rename.
2955         (configure.ac): Update macro name.
2956         * modules/openat (Depends-on): Add mkdir.
2957         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
2958
2959         mkdir, mkdirat: add tests
2960         * modules/mkdir-tests: New test.
2961         * tests/test-mkdir.h: New file.
2962         * tests/test-mkdir.c: Likewise.
2963         * tests/test-mkdirat.c: Likewise.
2964         * modules/openat-tests (Files): Add new files.
2965         (Makefile.am): Run new test.
2966
2967 2009-10-06  Eric Blake  <ebb9@byu.net>
2968
2969         doc: tweak *at function documentation
2970         * doc/posix-functions/faccessat.texi (faccessat): Mention
2971         known issue with replacement.
2972         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
2973         * doc/posix-functions/linkat.texi (linkat): Likewise.
2974         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
2975         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
2976         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2977         * doc/posix-functions/renameat.texi (renameat): Likewise.
2978         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2979
2980         openat: fix GNU/Hurd bug in unlinkat
2981         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
2982         broken.
2983         * doc/posix-functions/unlink.texi (unlink): Document this.
2984         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
2985
2986         fdopendir: fix GNU/Hurd bug
2987         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
2988         allowing non-directory fds.
2989         * lib/fdopendir.c (rpl_fdopendir): Work around it.
2990         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
2991         * modules/dirent (Makefile.am): Substitute it.
2992         * lib/dirent.in.h (fdopendir): Declare replacement.
2993         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
2994         * tests/test-fdopendir.c (main): Test something other than
2995         /dev/null, since on Hurd that behaves like a directory.
2996
2997         test-symlink: port to GNU/Hurd
2998         * tests/test-symlink.h (test_symlink): Relax expected errno.
2999
3000         doc: tweak more cygwin information
3001         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
3002         now compatible with glibc.
3003         * doc/posix-functions/getopt.texi (getopt): Likewise.
3004
3005         getopt-gnu: add another test
3006         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
3007         guarantee behavior relied on by m4.
3008         * tests/test-getopt.c (main): Use it.
3009         * modules/getopt-posix-tests (Depends-on): Add setenv.
3010         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
3011
3012         getopt: fix compilation on darwin
3013         * lib/getopt.in.h (includes): Leave breadcrumbs during system
3014         include.
3015         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
3016         Reported by Ludovic Courtès.
3017
3018 2009-10-06  Bruno Haible  <bruno@clisp.org>
3019
3020         * modules/size_max (Description): Discourage its use.
3021         Reported by Simon Josefsson.
3022
3023 2009-10-06  Jim Meyering  <meyering@redhat.com>
3024
3025         linkat: avoid compilation failure
3026         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
3027
3028 2009-10-05  Eric Blake  <ebb9@byu.net>
3029
3030         linkat: support Linux 2.6.17
3031         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
3032         linkat on Linux, but allow cache variable override.
3033         * lib/linkat.c (rpl_linkat): Define override.
3034         * modules/linkat (Depends-on): Add symlinkat.
3035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
3036         * modules/unistd (Makefile.am): Substitute it.
3037         * lib/unistd.in.h (linkat): Declare replacement.
3038         Reported by Pádraig Brady.
3039
3040         quotearg: port test to systems with C.UTF-8 locale
3041         * tests/test-quotearg.c (struct result_strings): Add another
3042         member, differentiating between C.ASCII and C.UTF-8 handling.
3043         (compare_strings): Add parameter.
3044         (main): Adjust all callers.
3045
3046         getopt: avoid clash with FreeBSD _getopt_internal
3047         * lib/getopt.in.h (_getopt_internal): Override the name.
3048         * lib/getopt_int.h (includes): Pick up any overrides.
3049         Reported by Reuben Thomas.
3050
3051         hash: allow C89 compilation
3052         * lib/hash.c (check_tuning): Move declaration before statement.
3053         Reported by Reuben Thomas.
3054
3055 2009-10-05  Karl Berry  <karl@gnu.org>
3056
3057         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
3058
3059 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
3060             Bruno Haible  <bruno@clisp.org>
3061
3062         * lib/uname.c (uname): Use a table-driven algorithm to compute
3063         Windows NT versions.
3064
3065 2009-10-04  Bruno Haible  <bruno@clisp.org>
3066
3067         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
3068         program_invocation_short_name.
3069         * modules/progname (configure.ac): Test for presence of
3070         program_invocation_short_name.
3071         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3072
3073 2009-10-04  Bruno Haible  <bruno@clisp.org>
3074
3075         * lib/progname.c (set_program_name): Fix comment.
3076         Reported by Jim Meyering.
3077
3078 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
3079             Bruno Haible  <bruno@clisp.org>
3080
3081         * lib/uname.c: Include <string.h>.
3082         (uname): Do only one call to GetVersionEx in the common case.
3083
3084 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
3085             Bruno Haible  <bruno@clisp.org>
3086
3087         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
3088         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
3089         (uname): Add support for Windows CE and various non-x86 CPU types.
3090
3091 2009-10-03  Bruno Haible  <bruno@clisp.org>
3092
3093         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
3094         invocation to tests/configure.ac.
3095         Reported by Ian Beckwith <ianb@erislabs.net>.
3096
3097 2009-10-02  Eric Blake  <ebb9@byu.net>
3098
3099         fchdir: avoid compiler warning
3100         * lib/fchdir.c (canonicalize_file_name)
3101         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
3102
3103         test-open: support mingw errno values
3104         * tests/test-open.h (test_open): Relax test.
3105         * tests/test-fopen.h (test_fopen): Likewise.
3106         * tests/test-openat-safer.c (main): Likewise.
3107
3108         open: fix opening directory on mingw
3109         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
3110
3111         test-open: on GNU/Hurd, /dev/null is a directory
3112         * tests/test-fopen.h (main): Rename...
3113         (test_fopen): ...to this.  Use a guaranteed non-directory when
3114         confirming open behavior on trailing slash.
3115         * tests/test-openat-safer.c (main): Likewise.
3116         * tests/test-open.h (main): Likewise....
3117         (test_open): ...to this.
3118         * tests/test-fopen.c (main): Adjust caller.
3119         * tests/test-fopen-safer.c (main): Likewise.
3120         * tests/test-open.c (main): Likewise.
3121         * tests/test-fcntl-safer.c (main): Likewise.
3122         Reported by Samuel Thibault.
3123
3124         rename, fchdir: don't ignore chdir failure
3125         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
3126         * lib/rename.c (rpl_rename) [W32]: Likewise.
3127         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
3128         an empty destination directory if source cannot be renamed,
3129         although there is still possibility for failure.
3130         * doc/posix-functions/rename.texi (rename): Document the race.
3131         Reported by Jim Meyering.
3132
3133         maint: cleanup whitespace in recent commits
3134         * lib/rename.c (rpl_rename): Remove tabs.
3135         * tests/test-link.h (test_link): Likewise.
3136         * lib/fchdir.c (get_name): Likewise.
3137         Reported by Jim Meyering.
3138
3139 2009-10-02  Ben Pfaff  <blp@gnu.org>
3140
3141         relocatable-prog-wrapper: Add missing dependency on
3142         double-slash-root.
3143         * modules/relocatable-prog-wrapper: Add dependency.
3144         Reported by Ian Beckwith <ianb@erislabs.net>.
3145
3146 2009-10-02  Eric Blake  <ebb9@byu.net>
3147
3148         renameat: fix Solaris bugs
3149         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
3150         needed fixing.
3151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
3152         * modules/stdio (Makefile.am): Substitute it.
3153         * lib/stdio.in.h (renameat): Declare replacement.
3154         * lib/renameat.c (rpl_renameat): Implement fix.
3155
3156         renameat: new module
3157         * modules/renameat: New file.
3158         * lib/renameat.c (renameat): Likewise.
3159         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
3160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3161         * modules/stdio (Makefile.am): Substitute them.
3162         * lib/stdio.in.h (renameat): Declare it.
3163         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3164         * doc/posix-functions/renameat.texi (renameat): Likewise.
3165         * modules/renameat-tests: New test.
3166         * tests/test-renameat.c: Likewise.
3167
3168         rename: fix mingw bugs
3169         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
3170         directory overwrite bugs.
3171
3172         rename: fix another cygwin 1.5 bug
3173         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
3174         checks.
3175         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
3176         unnecessary cygwin workarounds.  Also work around bug with moving
3177         full directory onto an empty one.
3178         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
3179
3180         rename-dest-slash: merge into rename module
3181         * modules/rename-dest-slash (Status): Mark obsolete.
3182         (Depends-on): Add rename.
3183         (Files): Let rename do it all.
3184         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
3185         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
3186         * m4/rename-dest-slash.m4: ...so this file can be deleted.
3187         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
3188         * lib/rename.c (rpl_rename): Update comments.
3189
3190         rename: fix cygwin 1.5.x bugs
3191         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
3192         * lib/rename.c (rpl_rename): Work around them.
3193         * modules/rename (Depends-on): Add same-inode.
3194
3195         rename: fix Solaris 10 bug
3196         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3197         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
3198         was the only bug.
3199
3200         rename: fix Solaris 9 bug
3201         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
3202         on non-directory.  Avoid calling exit.
3203         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
3204         strdup.
3205         * modules/rename-tests (Depends-on): Drop lstat.
3206         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3207         (gl_PREREQ_RENAME): Delete unused macro.
3208
3209         rename-dest-slash: fix NetBSD bug
3210         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
3211         links.
3212         * modules/rename-dest-slash (Depends-on): Add same-inode.
3213
3214         rename-tests: new test, exposes several platform bugs
3215         * modules/rename-tests: New file.
3216         * tests/test-rename.h: Likewise.
3217         * tests/test-rename.c: Likewise.
3218         * doc/posix-functions/rename.texi (rename): Improve documentation,
3219         including bugs that will eventually be fixed in gnulib.
3220
3221 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
3222
3223         * lib/uname.c: Include <stdlib.h>
3224         (uname): Assume version info is available.
3225
3226 2009-10-02  Jim Meyering  <meyering@redhat.com>
3227
3228         gnu-web-doc-update: correct --help output
3229         * build-aux/gnu-web-doc-update: Make --help output relevant.
3230
3231         gnu-web-doc-update: add standard options
3232         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
3233
3234         gnu-web-doc-update: New module.
3235         Use this script to automatically update the on-line web documentation
3236         for your GNU project at http://www.gnu.org/software/$pkg/manual/
3237         * modules/gnu-web-doc-update: New file, from coreutils.
3238         * build-aux/gnu-web-doc-update: New script.
3239
3240 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
3241
3242         link: LoadLibrary is not needed.
3243         * lib/link.c: Use GetModuleHandle.
3244
3245 2009-10-01  Eric Blake  <ebb9@byu.net>
3246
3247         getopt: bump serial number
3248         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
3249         change.
3250
3251         tests: tighten link, rmdir, and remove tests
3252         * tests/test-link.h (includes): No need to use <config.h> here.
3253         Clean up if directory hard link was created, otherwise test for
3254         trailing '.'.
3255         * tests/test-linkat.c (main): Simplify.
3256         * tests/test-remove.c (main): Enhance test for trailing '.'.
3257         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3258
3259 2009-10-01  Jim Meyering  <meyering@redhat.com>
3260
3261         maint.mk: requiring "make major" was annoying, for a "minor" release.
3262         What is intended is "stable", to contrast with alpha and beta,
3263         so require "make stable", not "make major".
3264         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
3265         (get_tool_versions): Likewise.
3266         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
3267
3268 2009-09-30  Ben Pfaff  <blp@gnu.org>
3269
3270         Fix broken build of replacement for Windows tmpfile().
3271         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
3272         flags argument added along with the 'mkostemp' module.
3273
3274 2009-09-28  Bruno Haible  <bruno@clisp.org>
3275
3276         Avoid identifier clash with POSIX function 'remove' defined as a macro.
3277         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
3278         to 'remove_elt'.
3279         (gl_list_remove): Update.
3280         * lib/gl_list.c (gl_list_remove): Update.
3281         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
3282         to 'remove_elt'.
3283         (gl_oset_remove): Update.
3284         * lib/gl_list.c (gl_oset_remove): Update.
3285         Reported by Eric Blake.
3286
3287 2009-09-28  Eric Blake  <ebb9@byu.net>
3288
3289         doc: mention yet more cygwin 1.7 status
3290         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
3291         cygwin.
3292         * doc/glibc-functions/execvpe.texi (execvpe): New file.
3293         * doc/gnulib.texi (Glibc unistd.h): Mention it.
3294
3295         argp: fix test failure
3296         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
3297         that are not upper-case.  Pass correct range to tolower.
3298
3299 2009-09-27  Jim Meyering  <meyering@redhat.com>
3300
3301         test-yesno: work around sparc-dash here-document infelicity
3302         Without this change, the literal \177 byte in a here document
3303         would make dash 0.5.5.1-3 access uninitialized memory.
3304         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
3305         Instead, use a marker, "@", and filter through tr to create the desired
3306         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
3307
3308 2009-09-27  Bruno Haible  <bruno@clisp.org>
3309
3310         Disable untested support for new flavours of ACLs on AIX.
3311         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
3312         progress.
3313         * lib/set-mode-acl.c (qset_acl): Likewise.
3314
3315 2008-12-07  Bruno Haible  <bruno@clisp.org>
3316
3317         Add support for new flavours of ACLs on AIX. (Untested.)
3318         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
3319         (file_has_acl): Add support for newer AIX.
3320         * lib/set-mode-acl.c (qset_acl): Likewise.
3321         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
3322         Rainer Tammer <tammer@tammer.net>.
3323
3324 2009-09-26  Eric Blake  <ebb9@byu.net>
3325
3326         argp: fix compilation of getopt
3327         * lib/getopt.in.h (includes): Use different guard than glibc.
3328         Reported by Sergey Poznyakoff.
3329
3330         doc: mention more cygwin 1.7 status
3331         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
3332         bug.
3333         * doc/posix-functions/execl.texi (execl): Likewise.
3334         * doc/posix-functions/execle.texi (execle): Likewise.
3335         * doc/posix-functions/execlp.texi (execlp): Likewise.
3336         * doc/posix-functions/execv.texi (execv): Likewise.
3337         * doc/posix-functions/execve.texi (execve): Likewise.
3338         * doc/posix-functions/execvp.texi (execvp): Likewise.
3339         * doc/glibc-functions/canonicalize_file_name.texi
3340         (canonicalize_file_name): Cygwin 1.7 now provides this.
3341         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
3342         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
3343         on AT_SYMLINK_NOFOLLOW.
3344
3345 2009-09-24  Eric Blake  <ebb9@byu.net>
3346
3347         test-linkat: make test more robust
3348         * tests/test-linkat.c (main): Avoid collision with EEXIST.
3349
3350         getopt: fix inclusion guards for cygwin
3351         * modules/getopt-posix (Depends-on): Add include-next.
3352         (Makefile.am): Substitute more items in replacement header.
3353         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
3354         <getopt.h>.
3355         * lib/getopt.in.h (includes): Use split inclusion guard, and
3356         prefer <getopt.h> over include <unistd.h> when one is present.
3357         (option): Also override name of 'struct option'.
3358
3359         same-inode: revert prior change; it is not yet ready
3360         * NEWS: Undo mention of this change.
3361         * lib/same-inode.h (same-inode.h): Undo tri-state change.
3362         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3363         * lib/cycle-check.c (cycle_check): Likewise.
3364         * lib/same.c (same_name): Likewise.
3365         * lib/at-func2.c (at_func2): Likewise.
3366
3367 2009-09-23  Eric Blake  <ebb9@byu.net>
3368
3369         linkat: new module
3370         * modules/linkat: New file.
3371         * lib/at-func2.c (at_func2): Likewise.
3372         * lib/linkat.c (linkat): Likewise.
3373         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3374         * lib/openat-priv.h (at_func2): Add declaration.
3375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3376         * modules/unistd (Makefile.am): Substitute them.
3377         * lib/unistd.in.h (linkat): Declare it.
3378         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3379         * doc/posix-functions/linkat.texi (linkat): Likewise.
3380         * doc/posix-functions/link.texi (link): Tweak wording.
3381         * tests/test-link.c (main): Move guts...
3382         * tests/test-link.h (test_link): ...into new file.
3383         * modules/linkat-tests: New test.
3384         * tests/test-linkat.c: Likewise.
3385         * modules/link-tests (Files): Ship new file.
3386         (Depends-on): Add stdbool.
3387
3388         dirname: add library-safe mdir_name
3389         * lib/dirname.h (mdir_name): New prototype.
3390         * lib/dirname.c (dir_name): Move guts...
3391         (mdir_name): ...to new function that avoids xalloc_die.
3392
3393         fchdir: another mingw fix
3394         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
3395         * lib/fchdir.c (get_name): New helper method; skips canonicalize
3396         on mingw (where it has not yet been ported), and make it optional
3397         elsewhere.
3398         (_gl_register_fd): Use it.
3399
3400         same-inode: make SAME_INODE tri-state, to port to mingw
3401         * NEWS: Mention this change.
3402         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
3403         st_ino always being 0.
3404         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3405         * lib/cycle-check.c (cycle_check): Likewise.
3406         * lib/same.c (same_name): Likewise.
3407
3408         lstat: avoid mingw compilation error
3409         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
3410         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
3411         lstat ourselves.
3412         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
3413         was adequate.
3414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
3415         the checks for lstat.
3416         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
3417
3418         link: fix test failure on Solaris 9
3419         * lib/link.c (rpl_link): Don't assume link will catch bogus
3420         trailing slash on source.
3421
3422         test-symlinkat: enhance test
3423         * tests/test-readlink.c (main): Move guts...
3424         * tests/test-readlink.h (test_readlink): ...into new file.
3425         * tests/test-symlink.c (main): Move guts...
3426         * tests/test-symlink.h (test_symlink): ...into new file.
3427         * tests/test-symlinkat.c (main): Use new files for further
3428         coverage.
3429         (do_symlink, do_readlink): New helper functions.
3430         * modules/symlink-tests (Files): Ship new file.
3431         (Depends-on): Add stdbool.
3432         * modules/readlink-tests (Files): Ship new file.
3433         (Depends-on): Add stdbool.
3434         * modules/symlinkat-tests (Files): Use new files.
3435
3436 2009-09-23  Eric Blake  <ebb9@byu.net>
3437
3438         readlink: document portability issue with symlink length
3439         * doc/posix-functions/lstat.texi (lstat): Mention that some file
3440         systems have bogus st_size on symlinks, and mention the
3441         areadlink-with-size module.
3442         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3443         * doc/posix-functions/readlink.texi (readlink): Mention the
3444         areadlink module, and ERANGE failure.
3445         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3446         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
3447
3448         readlink: fix Solaris 9 bug with trailing slash
3449         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
3450         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
3451         * doc/posix-functions/readlink.texi (readlink): Document this.
3452         * modules/readlink-tests: New test.
3453         * tests/test-readlink.c: Likewise.
3454
3455         readlink: fix cygwin 1.5.x bug with return type
3456         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
3457         * lib/unistd.in.h (readlink): Use ssize_t.
3458         * lib/readlink.c (readlink): Likewise.
3459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3460         * modules/unistd (Makefile.am): Substitute it.
3461         * lib/unistd.in.h (readlink): Declare replacement.
3462         * doc/posix-functions/readlink.texi (readlink): Document this.
3463
3464         symlink: use throughout gnulib
3465         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
3466         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
3467         symlink is not used.
3468         * modules/symlinkat (Depends-on): Add symlink.
3469         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3470         * modules/canonicalize-tests (Depends-on): Likewise.
3471         * modules/lstat-tests (Depends-on): Likewise.
3472         * modules/openat-tests (Depends-on): Likewise.
3473         * modules/remove-tests (Depends-on): Likewise.
3474         * modules/rmdir-tests (Depends-on): Likewise.
3475         * modules/unlink-tests (Depends-on): Likewise.
3476         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
3477         * tests/test-canonicalize.c (symlink): Likewise.
3478         * tests/test-fstatat.c (symlink): Likewise.
3479         * tests/test-lstat.c (symlink): Likewise.
3480         * tests/test-remove.c (symlink): Likewise.
3481         * tests/test-rmdir.c (symlink): Likewise.
3482         * tests/test-unlink.c (symlink): Likewise.
3483         * tests/test-unlinkat.c (symlink): Likewise.
3484
3485         symlink: new module, for Solaris 9 bug
3486         * modules/symlink: New file.
3487         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3488         * lib/symlink.c: Likewise.
3489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
3490         * modules/unistd (Makefile.am): Substitute them.
3491         * lib/unistd.in.h (symlink): Declare replacement.
3492         * MODULES.html.sh (File system functions): Mention it.
3493         * doc/posix-functions/symlink.texi (symlink): Likewise.
3494         * modules/symlink-tests: New test.
3495         * tests/test-symlink.c: Likewise.
3496
3497 2009-09-23  Bruno Haible  <bruno@clisp.org>
3498
3499         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
3500         when needed.
3501         Test case: gnulib-tool --import --with-tests atexit inttypes.
3502         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
3503
3504 2009-09-23  Bruno Haible  <bruno@clisp.org>
3505
3506         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
3507         subcommand, not in a subshell.
3508
3509 2009-09-22  Eric Blake  <ebb9@byu.net>
3510
3511         unistd: sort replacement declarations
3512         * lib/unistd.in.h: Sort declarations.
3513
3514         open, openat: minor optimization
3515         * lib/open.c (open): If open succeeded, len is non-zero.
3516         * lib/openat.c (rpl_openat): Likewise.
3517
3518         link-follow: ensure correct result
3519         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
3520         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
3521         distinguish between possible failures.
3522
3523 2009-09-21  Eric Blake  <ebb9@byu.net>
3524
3525         fts: avoid compiler warning
3526         * lib/fts.c (dirent_inode_sort_may_be_useful)
3527         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
3528
3529 2009-09-19  Bruno Haible  <bruno@clisp.org>
3530
3531         * lib/progreloc.c (canonicalize_file_name): New declaration.
3532
3533 2009-09-19  Eric Blake  <ebb9@byu.net>
3534
3535         link: fix quoting
3536         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
3537
3538         openat: fix openat bugs on Solaris 9
3539         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
3540         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
3541         * modules/openat (Depends-on): Add open.
3542         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
3543         * modules/fcntl-h (Makefile.am): Substitute it.
3544         * lib/fcntl.in.h (openat): Declare replacement.
3545         * doc/posix-functions/openat.texi (openat): Document this.
3546
3547         openat: move fstatat and unlinkat into correct files
3548         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
3549         compiled.
3550         * lib/openat.c (fstatat, unlinkat): Move...
3551         * lib/fstatat.c (fstatat): ...into correct files.
3552         * lib/unlinkat.c (unlinkat): Likewise.
3553
3554         openat: fix unlinkat bugs on Solaris 9
3555         * lib/unlinkat.c (unlinkat): New file.
3556         * modules/openat (Depends-on): Add unlink.
3557         (Files): Distribute it.
3558         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
3559         trailing slash behavior is broken.
3560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3561         * modules/unistd (Makefile.am): Substitute it.
3562         * lib/unistd.in.h (unlinkat): Declare replacement.
3563         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
3564
3565         openat: fix fstatat bugs on Solaris 9
3566         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
3567         stat.
3568         * doc/posix-functions/fstatat.texi (fstatat): Document this.
3569
3570         test-unlinkat: enhance test, to expose Solaris 9 bug
3571         * tests/test-unlink.c (main): Factor guts...
3572         * tests/test-unlink.h (test_rmdir_func): ...into new file.
3573         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
3574         * tests/test-rmdir.c (main): Adjust caller.
3575         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
3576         (unlinker): New helper function.
3577         (rmdirat): Enhance check.
3578         * modules/rmdir-tests (Depends-on): Add stdbool.
3579         * modules/unlink-tests (Depends-on): Likewise.
3580         (Files): Add test-unlink.h.
3581         * modules/openat-tests (Files): Likewise.
3582         (Depends-on): Add unlinkdir.
3583
3584         test-fstatat: new test, to expose Solaris 9 bugs
3585         * tests/test-stat.c (main): Factor guts...
3586         * tests/test-stat.h (test_stat_func): ...into new file.
3587         * tests/test-lstat.c (main): Factor guts...
3588         * tests/test-lstat.h (test_lstat_func): ...into new file.
3589         * tests/test-fstatat.c: New file.
3590         * modules/stat-tests (Files): Add test-stat.h.
3591         * modules/lstat-tests (Files): Add test-lstat.h.
3592         (Depends-on): Add stdbool.
3593         * modules/openat-tests (Depends-on): Add pathmax.
3594         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
3595         (Makefile.am): Run new test.
3596
3597         remove: new module, for mingw and Solaris 9 bugs
3598         * modules/remove: New file.
3599         * lib/remove.c: Likewise.
3600         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
3601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3602         * modules/stdio (Makefile.am): Use them.
3603         * lib/stdio.in.h (remove): Declare replacement.
3604         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3605         * doc/posix-functions/remove.texi (remove): Likewise.
3606         * modules/remove-tests: New test.
3607         * tests/test-remove.c: Likewise.
3608
3609         unlink: new module, for Solaris 9 bug
3610         * modules/unlink: New file.
3611         * lib/unlink.c: Likewise.
3612         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3614         * modules/unistd (Makefile.am): Use them.
3615         * lib/unistd.in.h (stat): Declare replacement.
3616         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3617         * doc/posix-functions/unlink.texi (unlink): Likewise.
3618         * modules/unlink-tests: New test.
3619         * tests/test-unlink.c: Likewise.
3620
3621         lstat: fix Solaris 9 bug
3622         * lib/lstat.c (lstat): Also check for trailing slash on
3623         non-symlink, non-directories.  Use stat module to simplify logic.
3624         * doc/posix-functions/lstat.texi (lstat): Document it.
3625         * modules/lstat-tests (Depends-on): Add errno, same-inode.
3626         (configure.ac): Check for symlink.
3627         * tests/test-lstat.c (main): Add more tests.
3628
3629         stat: add as dependency to other modules
3630         * modules/chown (Depends-on): Add stat.
3631         * modules/euidaccess (Depends-on): Likewise.
3632         * modules/fchdir (Depends-on): Likewise.
3633         * modules/isdir (Depends-on): Likewise.
3634         * modules/link (Depends-on): Likewise.
3635         * modules/lstat (Depends-on): Likewise.
3636         * modules/mkdir-p (Depends-on): Likewise.
3637         * modules/modechange (Depends-on): Likewise.
3638         * modules/open (Depends-on): Likewise.
3639         * modules/readlink (Depends-on): Likewise.
3640         * modules/same (Depends-on): Likewise.
3641
3642         stat: fix Solaris 9 bug
3643         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
3644         slash.
3645         * lib/stat.c (rpl_stat): Work around it.
3646         * doc/posix-functions/stat.texi (stat): Update documentation.
3647
3648         stat: new module, for mingw bug
3649         * modules/stat: New file.
3650         * lib/stat.c: Likewise.
3651         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3652         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3653         * modules/sys_stat (Makefile.am): Use them.
3654         * lib/sys_stat.in.h (stat): Declare replacement.
3655         * lib/openat.c (fstatat): Deal with lstat and stat being function
3656         macros.
3657         * modules/openat (Depends-on): Add inline.
3658         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3659         * doc/posix-functions/stat.texi (stat): Likewise.
3660         * modules/stat-tests: New test.
3661         * tests/test-stat.c: Likewise.
3662
3663 2009-09-19  Jim Meyering  <meyering@redhat.com>
3664
3665         syntax-check: detect unnecessary inclusion of canonicalize.h
3666         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
3667
3668 2009-09-19  Eric Blake  <ebb9@byu.net>
3669
3670         canonicalize-lgpl: adjust clients to use correct header
3671         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3672         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
3673         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
3674         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
3675         * lib/progreloc.c (includes): Likewise.
3676
3677 2009-09-19  Jim Meyering  <meyering@redhat.com>
3678
3679         test-posixtm.c: correct a comment
3680         * tests/test-posixtm.c: Correct first-line comment.
3681         Spotted by Eric Blake.
3682
3683 2009-09-16  Jim Meyering  <meyering@redhat.com>
3684
3685         posixtm-tests: make T const-correct; add a test case
3686         * tests/test-posixtm.c (T): Declare const.
3687         Add a test for -(2^31+1).
3688         Remove useless can-succeed-only-in-2002 test.
3689
3690         posixtm-tests: adjust the sole failing test
3691         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
3692         expected output matches what mktime now produces.  Cross-checked via
3693         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
3694
3695         posixtm: move #ifdef'd tests into a new module
3696         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
3697         * tests/test-posixtm.c: ... this new file.
3698         * modules/posixtm-tests: New module.
3699
3700 2009-09-19  Eric Blake  <ebb9@byu.net>
3701
3702         openat: simplify use of at-func.c
3703         * lib/at-func.c (includes): Include prerequisites here, to
3704         simplify requirements on client files.
3705         * lib/openat-priv.h: Add double-inclusion guard.
3706         * lib/faccessat.c (includes): Simplify.
3707         * lib/fchmodat.c (includes): Likewise.
3708         * lib/fchownat.c (includes): Likewise.
3709         * lib/mkdirat.c (includes): Likewise.
3710         * lib/mkfifoat.c (includes): Likewise.
3711         * lib/symlinkat.c (includes): Likewise.
3712
3713         openat: allow return of fd 0
3714         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
3715         * modules/save-cwd (Depends-on): Replace fcntl-safer with
3716         unistd-safer.
3717         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
3718         <fcntl.h>; this module does not leak fds.
3719         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
3720         must be allowed to return 0, leaving openat_safer to add the
3721         safety.
3722         (openat_permissive): Avoid writing to just-opened fd 2 if
3723         restoring the current directory fails.
3724         * lib/openat-die.c (openat_restore_fail): Add comment.
3725         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
3726         (save_cwd): Guarantee safe fd, but without use of open_safer.
3727         * tests/test-openat.c: New test.
3728         * modules/openat-tests (Files, Makefile.am): Distribute and build
3729         new file.
3730
3731         relocatable-prog-wrapper: fix build
3732         * modules/relocatable-prog-wrapper (Files): Update name of
3733         canonicalize m4 file, broken on 2009-09-17.
3734         Reported by emad hajjar <aleppos@hotmail.com>.
3735
3736 2009-09-19  Bruno Haible  <bruno@clisp.org>
3737
3738         * lib/safe-alloc.h: Use the standard header with GPL copyright.
3739         * lib/safe-alloc.c: Likewise.
3740         Reported by Ian Beckwith <ianb@erislabs.net>.
3741
3742 2009-09-18  Bruno Haible  <bruno@clisp.org>
3743
3744         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
3745         Reported by <erobles@sensacd.com.mx>.
3746
3747 2009-09-17  Eric Blake  <ebb9@byu.net>
3748
3749         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
3750         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
3751         slashes when checking if last component is missing.
3752         * tests/test-canonicalize.c (main): Test this.
3753
3754         canonicalize, canonicalize-lgpl: honor // if distinct from /
3755         * modules/canonicalize (Files): Add double-slash-root.m4.
3756         * modules/canonicalize-lgpl (Files): Likewise.
3757         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3758         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
3759         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
3760         fallback definition.
3761         (canonicalize_filename_mode): Use it to protect //.
3762         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
3763         (__realpath): Likewise.
3764         * tests/test-canonicalize.c (main): Test this.
3765         * tests/test-canonicalize-lgpl.c (main): Likewise.
3766         * modules/canonicalize-tests (Depends-on): Add same-inode.
3767         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3768
3769         canonicalize-lgpl: fix glibc bug with trailing slash
3770         * m4/canonicalize-lgpl.m4: Move contents...
3771         * m4/canonicalize.m4: ...here.
3772         (gl_CANONICALIZE_LGPL): Factor realpath check...
3773         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
3774         glibc 2.3.5 bug, fixed 2005-04-27.
3775         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
3776         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
3777         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
3778         * modules/canonicalize-lgpl (Files): Manage file rename.
3779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
3780         * modules/stdlib (Makefile.am): Substitute witness.
3781         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
3782         is needed.
3783         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
3784         replacement is required.
3785         * lib/canonicalize.c (canonicalize_file_name): Likewise.
3786         * doc/glibc-functions/canonicalize_file_name.texi
3787         (canonicalize_file_name): Document this.
3788         * doc/posix-functions/realpath.texi (realpath): Likewise.
3789
3790         canonicalize-lgpl: reject non-directory with trailing slash
3791         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
3792         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
3793         catches failures in glibc 2.3.5.
3794         * tests/test-canonicalize.c (main): Likewise.
3795
3796         canonicalize-lgpl: use native realpath if it works
3797         * lib/canonicalize-lgpl.c (realpath): Guard with
3798         FUNC_REALPATH_WORKS.
3799         * lib/stdlib.in.h (realpath): Make declaration optional based on
3800         HAVE_REALPATH.
3801         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
3802         native realpath works.
3803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
3804         * modules/stdlib (Makefile.am): Substitute witness.
3805
3806         canonicalize, canonicalize-lgpl: use <stdlib.h>
3807         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
3808         (Include): Mention <stdlib.h>.
3809         (configure.ac): Mention functions we provide.
3810         * modules/canonicalize (configure.ac): Likewise.
3811         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
3812         realpath if canonicalize_file_name is missing.
3813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
3814         * modules/stdlib (Makefile.am): Substitute witnesses.
3815         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
3816         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
3817         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
3818         * NEWS: Document this.
3819         * doc/glibc-functions/canonicalize_file_name.texi
3820         (canonicalize_file_name): Likewise.
3821         * doc/posix-functions/realpath.texi (realpath): Likewise.
3822         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
3823
3824         test-canonicalize: consolidate into single C program
3825         * tests/test-canonicalize.sh: Delete; move setup into...
3826         * tests/test-canonicalize.c (main): ...the program, making it
3827         easier to run in debugger.  Add some tests.
3828         * modules/canonicalize-tests (Files): Remove unused file.
3829         (Depends-on): Add progname.
3830         (configure.ac, Makefile.am): Simplify.
3831
3832         test-canonicalize-lgpl: consolidate into single C program
3833         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
3834         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
3835         easier to run in debugger.  Add some tests.
3836         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
3837         (configure.ac, Makefile.am): Simplify.
3838
3839         canonicalize: avoid resolvepath
3840         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
3841         unnecessary checks.
3842         * lib/canonicalize.c (includes): Simplify.
3843         (canonicalize_file_name): Drop resolvepath implementation.
3844         * modules/canonicalize (Depends-on): Drop filenamecat.
3845
3846         canonicalize: don't lose errno
3847         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
3848         over calls to free.
3849
3850         canonicalize: simplify errno handling
3851         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
3852         assignment.
3853
3854         canonicalize, canonicalize-lgpl: update module dependencies
3855         * modules/canonicalize (Depends-on): Add extensions, lstat,
3856         pathmax, stdlib.
3857         (Files): Drop pathmax.h.
3858         (configure.ac): Adjust macro name.
3859         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
3860         lstat, stdlib, sys_stat.
3861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
3862         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
3863         extensions.
3864         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
3865         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
3866         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
3867         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
3868         declaration, if available.
3869         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
3870         we can rely on the readlink module.
3871         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
3872         (includes): Use <unistd.h> unconditionally.
3873
3874 2009-09-17  Eric Blake  <ebb9@byu.net>
3875
3876         maint: make Include sections of modules consistent
3877         * modules/alloca: Use only header name; no need to list #include.
3878         * modules/alloca-opt: Likewise.
3879         * modules/arpa_inet: Likewise.
3880         * modules/canon-host: Likewise.
3881         * modules/configmake: Likewise.
3882         * modules/dirent: Likewise.
3883         * modules/eealloc: Likewise.
3884         * modules/environ: Likewise.
3885         * modules/fchdir: Likewise.
3886         * modules/fcntl: Likewise.
3887         * modules/fcntl-h: Likewise.
3888         * modules/gethrxtime: Likewise.
3889         * modules/gettime: Likewise.
3890         * modules/ignore-value: Likewise.
3891         * modules/inet_ntop: Likewise.
3892         * modules/inet_pton: Likewise.
3893         * modules/inttypes: Likewise.
3894         * modules/isnand-nolibm: Likewise.
3895         * modules/isnanf-nolibm: Likewise.
3896         * modules/mbchar: Likewise.
3897         * modules/mbfile: Likewise.
3898         * modules/mbiter: Likewise.
3899         * modules/mbuiter: Likewise.
3900         * modules/netdb: Likewise.
3901         * modules/netinet_in: Likewise.
3902         * modules/nproc: Likewise.
3903         * modules/pagealign_alloc: Likewise.
3904         * modules/poll: Likewise.
3905         * modules/printf-frexp: Likewise.
3906         * modules/pthread: Likewise.
3907         * modules/putenv: Likewise.
3908         * modules/random_r: Likewise.
3909         * modules/relocatable-prog: Likewise.
3910         * modules/search: Likewise.
3911         * modules/select: Likewise.
3912         * modules/selinux-h: Likewise.
3913         * modules/settime: Likewise.
3914         * modules/signal: Likewise.
3915         * modules/size_max: Likewise.
3916         * modules/socklen: Likewise.
3917         * modules/ssize_t: Likewise.
3918         * modules/stdarg: Likewise.
3919         * modules/stdbool: Likewise.
3920         * modules/stddef: Likewise.
3921         * modules/stdint: Likewise.
3922         * modules/stdio: Likewise.
3923         * modules/stdlib: Likewise.
3924         * modules/string: Likewise.
3925         * modules/strings: Likewise.
3926         * modules/sys_file: Likewise.
3927         * modules/sys_ioctl: Likewise.
3928         * modules/sys_select: Likewise.
3929         * modules/sys_socket: Likewise.
3930         * modules/sys_stat: Likewise.
3931         * modules/sys_time: Likewise.
3932         * modules/sys_times: Likewise.
3933         * modules/sys_utsname: Likewise.
3934         * modules/sys_wait: Likewise.
3935         * modules/sysexits: Likewise.
3936         * modules/time: Likewise.
3937         * modules/times: Likewise.
3938         * modules/tmpfile: Likewise.
3939         * modules/trim: Likewise.
3940         * modules/unistd: Likewise.
3941         * modules/wchar: Likewise.
3942         * modules/wctype: Likewise.
3943
3944 2009-09-17  Bruno Haible  <bruno@clisp.org>
3945
3946         Make getdate.y compile on QNX and NetBSD 5 / i386.
3947         * m4/getdate.m4 (gl_GETDATE): Conditionally define
3948         TIME_T_FITS_IN_LONG_INT.
3949         * lib/getdate.y (long_time_t): New type.
3950         (relative_time): Change type of 'seconds' field to long_time_t.
3951         (get_date): Update types of local variables. Check against overflow
3952         during conversion from long_time_t to time_t.
3953         Reported by Matt Kraai <kraai@ftbfs.org>
3954         and Hasso Tepper <hasso@netbsd.org>.
3955
3956 2009-09-17  Bruno Haible  <bruno@clisp.org>
3957
3958         * modules/COPYING: Update copyright years.
3959         * modules/README: Likeiwse.
3960         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
3961         Reported by Ian Beckwith <ianb@erislabs.net>.
3962
3963 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
3964
3965         * users.txt: Update references for gnuit package.
3966
3967 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
3968
3969         * m4/getdelim.m4: Fix typo in copyright line.
3970
3971 2009-09-17  Bruno Haible  <bruno@clisp.org>
3972
3973         * lib/atoll.c: Use the standard header with GPL copyright.
3974         * lib/argz.in.h: Likewise.
3975         * lib/glob.c: Likewise.
3976         * lib/glob-libc.h: Likewise.
3977         * lib/random_r.c: Likewise.
3978         * lib/siglist.h: Likewise.
3979         * lib/strsignal.c: Likewise.
3980         Reported by Ian Beckwith <ianb@erislabs.net>.
3981
3982 2009-09-17  Eric Blake  <ebb9@byu.net>
3983
3984         rmdir: ensure correct dependency order
3985         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
3986
3987 2009-09-17  Bruno Haible  <bruno@clisp.org>
3988
3989         Disable assertion that fails on NetBSD 5 / i386.
3990         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
3991         Reported by Sam Steingold <sds@gnu.org>
3992         and Hasso Tepper <hasso@netbsd.org>.
3993
3994 2009-09-16  Eric Blake  <ebb9@byu.net>
3995
3996         unlinkdir: port to mingw
3997         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
3998         on which no one can unlink a directory.
3999
4000         stdlib: sort witness names
4001         * modules/stdlib (Makefile.am): Sort replacements.
4002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4003         * lib/stdlib.in.h: Likewise.
4004
4005         parse-duration-tests: avoid link failure
4006         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
4007         LIBINTL.
4008         Reported by Tom G. Christensen.
4009
4010         openat-tests: ensure unlinkat behaves like rmdir
4011         * tests/test-rmdir.c (main): Factor guts...
4012         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
4013         * modules/rmdir-tests (Files): Ship new file.
4014         * modules/openat-tests: New test.
4015         * tests/test-unlinkat.c: Likewise.
4016
4017         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
4018         * modules/rmdir-errno (Status, Notice): Now obsolete.
4019
4020         rmdir: work around cygwin 1.5.x and mingw bugs
4021         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
4022         * lib/rmdir.c (rmdir): Work around it.
4023         * modules/rmdir (Status, Notice): No longer obsolete.
4024         (Files): Add dos.m4.
4025         (Depends-on): Add unistd.
4026         (configure.ac): Set witnesses.
4027         (License): Relax to LGPLv2+.
4028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
4029         * modules/unistd (Makefile.am): Substitute witnesses.
4030         * lib/unistd.in.h (rmdir): Declare replacement.
4031         * doc/posix-functions/rmdir.texi (rmdir): Document this.
4032         * modules/rmdir-tests: New tests.
4033         * tests/test-rmdir.c: Likewise.
4034
4035 2009-09-15  Eric Blake  <ebb9@byu.net>
4036
4037         fchdir: improve use of replacement functions
4038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
4039         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
4040         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
4041         REPLACE_CLOSEDIR.
4042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
4043         * modules/sys_stat (Makefile.am): Substitute correct witness.
4044         * modules/dirent (Makefile.am): Likewise.
4045         * modules/unistd (Makefile.am): Likewise.
4046         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
4047         * lib/unistd.in.h (dup): Likewise.
4048         * lib/sys_stat.in.h (fstat): Likewise.
4049
4050         maint: ignore gnulib-tool temp files
4051         * .gitignore: Ignore files created during gnulib-tool --test.
4052
4053 2009-09-13  Jim Meyering  <meyering@redhat.com>
4054
4055         posixtm: don't reject a time that specify "60" as the number of seconds
4056         * lib/posixtm.c (posixtime): The code to reject invalid dates
4057         would also reject a time specified with the .60 suffix.
4058         But POSIX allows that, in order to accommodate leap seconds.
4059         So don't reject it.
4060         (main): Adjust tests accordingly.
4061         * modules/posixtm (Depends-on): Add stpcpy.
4062
4063 2009-09-11  Jim Meyering  <meyering@redhat.com>
4064
4065         announce-gen: include [$release_type] in emitted Subject:
4066         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
4067         e.g., [stable] in the emitted Subject: line.
4068
4069 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4070
4071         Remove obsolete macros from several modules.
4072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
4073         obsolete Autoconf macros with their modern counterparts.
4074         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
4075         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
4076         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4077         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4078         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
4079         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4081         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4082         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4083         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
4084         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4085         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4086         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4087         * m4/sockets.m4 (gl_SOCKETS): Likewise.
4088         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
4089         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
4090         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
4091         * m4/time_r.m4 (gl_TIME_R): Likewise.
4092         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4093         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
4094         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4095
4096         Fix copyright header in build-aux scripts.
4097         * build-aux/git-version-gen: Fix copyright header to match GPLv3
4098         recommendation.
4099         * build-aux/ncftpput-ftp: Likewise.
4100         * build-aux/update-copyright: Likewise.
4101
4102 2009-09-09  Eric Blake  <ebb9@byu.net>
4103
4104         test-link: allow Linux choice of errno
4105         * tests/test-link.c (main): Relax test for alternate error.
4106
4107         strndup: fix improper m4 caching
4108         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
4109         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
4110         (gl_PREREQ_STRNDUP): Delete.
4111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
4112         * modules/string (Makefile.am): Substitute it.
4113         * lib/string.in.h (strndup): Modernize prototype.
4114
4115         getcwd: port to mingw
4116         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
4117         different from the POSIX assumptions made throughout the getcwd
4118         module; fortunately, the mingw getcwd does not need replacement.
4119         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
4120         * modules/getcwd-tests: New test.
4121         * tests/test-getcwd.c: Likewise.
4122
4123         link: fix platform bugs
4124         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
4125         * lib/link.c (link): Work around them.  Fix related mingw bug.
4126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
4127         * modules/unistd (Makefile.am): Substitute it.
4128         * lib/unistd.in.h (link): Declare replacement.
4129         * doc/posix-functions/link.texi (link): Document this.
4130         * modules/link (Depends-on): Add strdup-posix, sys_stat.
4131
4132         test-link: consolidate into single C program, test more cases
4133         * tests/test-link.sh: Delete.
4134         * tests/test-link.c: Test more error conditions.  Exposes bugs on
4135         at least Cygwin and Solaris.
4136         * modules/link-tests (Files): Remove unused file.
4137         (Depends-on): Add errno, sys_stat.
4138         (Makefile.am): Simplify.
4139
4140 2009-09-08  Bruno Haible  <bruno@clisp.org>
4141
4142         Work around towlower, towupper bug on mingw.
4143         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
4144         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
4145         * doc/posix-functions/towlower.texi: Mention the mingw bug.
4146         * doc/posix-functions/towupper.texi: Likewise.
4147         Reported by Eric Blake.
4148
4149 2009-09-08  Jim Meyering  <meyering@redhat.com>
4150
4151         build: don't try to run autoheader if we don't use it
4152         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
4153         is not used in configure.ac.
4154
4155 2009-09-08  Eric Blake  <ebb9@byu.net>
4156
4157         euidaccess: fix compilation error
4158         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
4159
4160         rawmemchr: relax license
4161         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
4162         okay.
4163         Reported by Jim Meyering.
4164
4165         mkfifoat: new module
4166         * modules/mkfifoat: New file.
4167         * lib/mkfifoat.c: Likewise.
4168         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
4169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4170         * modules/sys_stat (Makefile.am): Use them.
4171         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
4172         * MODULES.html.sh (File system functions): Mention module.
4173         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
4174         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
4175         * modules/mkfifoat-tests: New test.
4176         * tests/test-mkfifoat.c: Likewise.
4177
4178         strchrnul: relax license
4179         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
4180         okay.
4181         Reported by Jim Meyering.
4182
4183 2009-09-08  Eric Blake  <ebb9@byu.net>
4184
4185         fstatat: fix compilation on Solaris
4186         * lib/fstatat.c (includes): Add fcntl.h.
4187         Reported by Pádraig Brady.
4188
4189 2009-09-07  Eric Blake  <ebb9@byu.net>
4190
4191         rename: modernize replacement
4192         * modules/rename (Depends-on): Add stdio.
4193         (configure.ac): Declare witness.
4194         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
4195         stdio take care of replacement.
4196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4197         * modules/stdio (Makefile.am): Substitute them.
4198         * lib/stdio.in.h (rename): Declare replacement.
4199         * lib/rename.c (includes): Allow cross-compilation to non-windows
4200         machines.
4201         * doc/posix-functions/rename.texi (rename): Improve
4202         documentation.
4203
4204         stdio: sort witness names
4205         * modules/stdio (Makefile.am): Sort replacements.
4206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4207         * lib/stdio.in.h: Likewise.
4208
4209         getcwd: minor cleanups
4210         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
4211         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
4212
4213         openat: provide more convenience names
4214         * modules/faccessat (configure.ac): Add C witness.
4215         * lib/unistd.in.h (readlinkat): Fix typo.
4216         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
4217         convenience wrappers.
4218         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
4219         wrappers in syntax checks.
4220
4221 2009-09-06  Eric Blake  <ebb9@byu.net>
4222
4223         doc: fix comments in recent patches
4224         * lib/faccessat.c: Mention correct function.
4225         * lib/fchmodat.c: Likewise.
4226         * lib/fchownat.c: Likewise.
4227         * lib/symlinkat.c: Likewise.
4228         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
4229         constants.
4230
4231         faccessat, symlinkat: continue cleanup of previous patch
4232         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
4233         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4234         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
4235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
4236         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
4237         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
4238         set.
4239
4240 2009-09-06  Bruno Haible  <bruno@clisp.org>
4241
4242         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
4243         (fstatat): Declare if GNULIB_FSTATAT is set.
4244         (mkdirat): Declare if GNULIB_MKDIRAT is set.
4245         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
4246         (unlinkat): Declare if GNULIB_UNLINKAT is set.
4247         * modules/fcntl-h (Files): Remove m4/openat.m4.
4248         * modules/sys_stat (Files): Remove m4/openat.m4.
4249         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
4250         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
4251         * modules/unistd (Files): Remove m4/openat.m4.
4252         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
4253         GNULIB_OPENAT.
4254         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
4255         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
4256         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4257         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
4258         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
4259         gl_OPENAT_DEFAULTS.
4260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
4261         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
4262         Don't require gl_OPENAT_DEFAULTS.
4263         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
4264         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
4265         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
4266         (gl_OPENAT_DEFAULTS): Remove macro.
4267
4268 2009-09-06  Bruno Haible  <bruno@clisp.org>
4269
4270         * modules/openat (configure.ac): Remove unneeded witness.
4271
4272 2009-09-06  Bruno Haible  <bruno@clisp.org>
4273
4274         Set errno to ENOSYS when a function is entirely unsupported.
4275         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
4276         EOPNOTSUPP.
4277         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4278         * modules/chown (Depends-on): Remove errno.
4279
4280 2009-09-06  Bruno Haible  <bruno@clisp.org>
4281
4282         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
4283
4284 2009-09-06  Bruno Haible  <bruno@clisp.org>
4285
4286         * lib/sys_stat.in.h: Fix preprocessor command indentation.
4287
4288 2009-09-06  Ben Pfaff  <blp@gnu.org>
4289             Bruno Haible  <bruno@clisp.org>
4290
4291         Work around a glibc bug in strtok_r.
4292         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
4293         Undefine if UNDEFINE_STRTOK_R is set.
4294         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
4295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4296         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
4297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
4298         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
4299         UNDEFINE_STRTOK_R.
4300         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
4301
4302 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4303
4304         exclude: minor fix
4305         * lib/exclude.c: Include wctype.h
4306
4307 2009-09-06  Akim Demaille  <demaille@gostai.com>
4308
4309         bootstrap: improve error message
4310         * build-aux/bootstrap (find_tool): Upon failure, report the list
4311         of candidates.
4312         Honor the initial value of the envvar.
4313
4314 2009-09-05  Eric Blake  <ebb9@byu.net>
4315
4316         symlinkat: new module
4317         * modules/symlinkat: New file.
4318         * lib/symlinkat.c: Likewise.
4319         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4321         * modules/unistd (Makefile.am): Use them.
4322         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
4323         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
4324         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
4325         * MODULES.html.sh (File system functions): Mention module.
4326         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4327         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4328         * modules/symlinkat-tests: New test.
4329         * tests/test-symlinkat.c: Likewise.
4330
4331         test-openat-safer: add more checks
4332         * tests/test-openat-safer.c (main): Check more code paths.
4333
4334 2009-09-05  Jim Meyering  <meyering@redhat.com>
4335
4336         syntax-check: detect unnecessary inclusion of openat.h
4337         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
4338
4339 2009-09-05  Bruno Haible  <bruno@clisp.org>
4340
4341         Support towlower, towupper.
4342         * doc/posix-functions/towlower.texi: Mention module wctype.
4343         * doc/posix-functions/towupper.texi: Likewise.
4344         * lib/wctype.in.h (towlower, towupper): New functions.
4345         * tests/test-wctype.c: Include stdio.h, stdlib.h.
4346         (ASSERT): New macro.
4347         (e): New variable.
4348         (main): Test also towlower, towupper. Test WEOF argument.
4349         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4350
4351 2009-09-05  Bruno Haible  <bruno@clisp.org>
4352
4353         Fix conversion behaviour when the input is invalid.
4354         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
4355         mark occurring in first pass of indirect conversion.
4356         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
4357         input.
4358         Found by clang's static analyzer.
4359
4360 2009-09-05  Bruno Haible  <bruno@clisp.org>
4361
4362         * tests/test-striconveh.c (main): Test indirect conversion on platforms
4363         where direct conversion is possible.
4364
4365 2009-09-04  Eric Blake  <ebb9@byu.net>
4366
4367         openat: fail with ENOENT on empty name
4368         * lib/openat-proc.c (openat_proc_name): Special-case the empty
4369         buffer.
4370
4371         link-follow: fix logic bug in prior patch
4372         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
4373         reversed sense of yes and no in prior patch.  Avoid confusing
4374         compilation failure with desired semantics.
4375
4376         link-follow: accomodate mingw and cross-compilation
4377         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
4378         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
4379         cross-compilation results to -1, to make linkat easier to
4380         implement when cross-compiling.  Trivially support mingw.
4381         * modules/link-follow (configure.ac): Call new name.
4382         * NEWS: Mention this.
4383
4384 2009-09-03  Eric Blake  <ebb9@byu.net>
4385
4386         faccessat: compile replacement
4387         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
4388         needed.
4389
4390         fts: fix compilation error
4391         * lib/fts.c (includes): Re-add "openat.h", for
4392         openat_needs_fchdir.
4393
4394         faccessat: new module
4395         * modules/faccessat: New file.
4396         * lib/faccessat.c: Likewise.
4397         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4399         * modules/unistd (Makefile.am): Use it.
4400         * lib/unistd.in.h (faccessat): Declare it.
4401         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
4402         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
4403         * MODULES.html.sh (File system functions): Mention it.
4404         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
4405         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4406
4407         euidaccess: prefer POSIX over non-standard implementation
4408         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
4409         * lib/euidaccess.c (euidaccess): Use it if available.
4410
4411         openat: make template easier to use
4412         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
4413         AT_FUNC_F2 to be undefined.
4414         (VALIDATE_FLAG): New macro; use it to reject bad flags.
4415         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
4416         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
4417         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
4418         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
4419         Likewise.
4420         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
4421         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
4422         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
4423         Likewise.
4424
4425         openat: declare in POSIX headers
4426         * NEWS: Mention this.
4427         * modules/openat (configure.ac): Declare witnesses.
4428         (Depends-on): Add fcntl-h, sys_stat, unistd.
4429         (Include): Mention correct headers.
4430         * modules/fcntl-h (Depends-on): Add link-warning.
4431         (Files): Add openat.m4.
4432         (Makefile.am): Substitute witnesses.
4433         * modules/sys_stat (Files, Makefile.am): Likewise.
4434         * modules/unistd (Files, Makefile.am): Likewise.
4435         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
4436         (gl_OPENAT_DEFAULTS): New macro.
4437         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
4438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
4439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
4440         (SYS_STAT_H): Remove unused variable.
4441         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
4442         * lib/fcntl--.h (includes): Remove unneeded header.
4443         * lib/openat-safer.c (includes): Likewise.
4444         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
4445         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
4446         appropriate headers.
4447         (__OPENAT_PREFIX): Delete.
4448         * lib/fcntl.in.h (openat): Provide declaration.
4449         (AT_FDCWD): Fix Solaris bug.
4450         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
4451         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
4452         * lib/fchmodat.c (includes):  Adjust to find declaration.
4453         * lib/fchownat.c (includes): Likewise.
4454         * lib/mkdirat.c (includes): Likewise.
4455         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
4456         still visible.
4457
4458 2009-09-02  Eric Blake  <ebb9@byu.net>
4459
4460         errno: use consistently
4461         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
4462         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
4463         * lib/canonicalize.c (ELOOP): Likewise.
4464         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
4465         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
4466         * lib/lchown.c (EOPNOTSUPP): Likewise.
4467         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
4468         * lib/savewd.c (ESTALE): Likewise.
4469         * lib/settime.c (ENOSYS): Likewise.
4470         * lib/utimens.c (ENOSYS): Likewise.
4471         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
4472         * lib/chdir-safer.c (ELOOP): Likewise.
4473         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
4474         * modules/c-stack (Depends-on): Add errno.
4475         * modules/canonicalize (Depends-on): Likewise.
4476         * modules/chdir-safer (Depends-on): Likewise.
4477         * modules/fdopendir (Depends-on): Likewise.
4478         * modules/inet_ntop (Depends-on): Likewise.
4479         * modules/inet_pton (Depends-on): Likewise.
4480         * modules/lchown (Depends-on): Likewise.
4481         * modules/openat (Depends-on): Likewise.
4482         * modules/savewd (Depends-on): Likewise.
4483         * modules/settime (Depends-on): Likewise.
4484         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
4485
4486         fts: avoid leaking fds
4487         * modules/fts (Depends-on): Add cloexec.
4488         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
4489         flag.
4490
4491         fts: make directory fds more robust
4492         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
4493         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
4494
4495         backupfile, chdir-long, fts, savedir: make safer
4496         * lib/backupfile.c (includes): Use "dirent--.h", since
4497         numbered_backup can write to stderr during readdir.
4498         * lib/savedir.c (includes): Likewise.
4499         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
4500         emulation can write to stderr on failure.
4501         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
4502         * lib/getcwd.c: Document why opendir_safer is unused.
4503         * lib/glob.c: Likewise.
4504         * lib/scandir.c: Likewise.
4505         * lib/openat-proc.c: Likewise, for open_safer.
4506         * modules/backupfile (Depends-on): Add dirent-safer.
4507         * modules/savedir (Depends-on): Likewise.
4508         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
4509         * modules/chdir-long (Depends-on): Add openat-safer.
4510
4511         openat-safer: new module
4512         * modules/openat-safer: New file.
4513         * lib/openat-safer.c: Likewise.
4514         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
4515         * lib/fcntl-safer.h (openat_safer): Declare.
4516         * lib/fcntl--.h (openat): Override.
4517         * MODULES.html.sh (File descriptor based I/O): Mention it.
4518         * lib/openat.h: Add double-inclusion guards.
4519         * lib/openat.c (includes): Only include "fcntl-safer.h", not
4520         "fcntl--.h", so we can implement openat.
4521         * modules/openat-safer-tests: New test.
4522         * tests/test-openat-safer.c: New file.
4523
4524         dirent-safer: new module
4525         * modules/dirent-safer: New file.
4526         * lib/dirent--.h: Likewise.
4527         * lib/dirent-safer.h: Likewise.
4528         * lib/opendir-safer.c: Likewise.
4529         * m4/dirent-safer.m4: Likewise.
4530         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
4531         * modules/dirent-safer-tests: New test.
4532         * tests/test-dirent-safer.c: New file.
4533         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
4534
4535         fdopendir: optimize on mingw
4536         * lib/unistd.in.h (_gl_directory_name): New prototype.
4537         * lib/fchdir.c (_gl_directory_name): Implement it.
4538         (fchdir): Use it to simplify implementation.
4539         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
4540         fchdir, when available, to avoid calling [f]chdir().
4541
4542         fdopendir: split into its own module
4543         * lib/openat.c (fdopendir): Move...
4544         * lib/fdopendir.c: ...into new file.
4545         * modules/fdopendir: New module.
4546         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
4547         * modules/openat (Depends-on): Add fdopendir.
4548         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
4549         fdopendir here.
4550         * modules/savedir (Depends-on): Only need fdopendir, not full
4551         openat.
4552         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
4553         * lib/openat.h (fdopendir): Drop prototype.
4554         * lib/dirent.in.h (fdopendir): Provide prototype.
4555         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
4556         * modules/dirent (Makefile.am): Substitute them.
4557         * MODULES.html.sh (File system functions): Mention it.
4558         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
4559         * modules/fdopendir-tests: New file.
4560         * tests/test-fdopendir.c: Likewise.
4561
4562         fchdir: use more consistent macro convention
4563         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
4564         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
4565         REPLACE_FCHDIR, rather than relying on config.h macros.
4566         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
4567         inside a single make-time REPLACE_FCHDIR block, rather than using
4568         the config.h FCHDIR_REPLACEMENT.
4569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
4570         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
4571         Manage fstat replacement.
4572         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
4573         REPLACE_FCHDIR.
4574         * modules/sys_stat (Files): Add m4/unistd_h.m4.
4575         (Makefile.am): Substitute REPLACE_FCHDIR.
4576         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
4577         FCHDIR_REPLACEMENT.
4578         * lib/dup-safer.c (dup_safer): Likewise.
4579         * lib/dup2.c (rpl_dup2): Likewise.
4580         * lib/dup3.c (rpl_dup3): Likewise.
4581         * lib/open.c (rpl_open): Likewise.
4582
4583         fchdir: simplify error handling, and support dup3
4584         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
4585         stdbool, malloc-posix, realloc-posix.
4586         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
4587         (ensure_dirs_slot): Return false on allocation failure.
4588         (rpl_dup2): Delete.
4589         (_gl_register_dup): New function.
4590         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
4591         (_gl_register_fd): Close fd on allocation failure.
4592         * lib/fcntl.in.h (_gl_register_fd): Update signature.
4593         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
4594         prototype.
4595         (rpl_dup2_fchdir): Delete prototype.
4596         * lib/open.c (open): Update caller.
4597         * lib/dup2.c (dup2): Track fchdir metadata.
4598         * lib/dup3.c (dup3): Likewise.
4599         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
4600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
4601
4602 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4603
4604         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
4605         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
4606         don't pass arguments to AC_OUTPUT.
4607
4608 2009-09-02  Bruno Haible  <bruno@clisp.org>
4609
4610         * modules/mkdtemp (License): Relicense under LGPLv2+.
4611         Reported by Paolo Bonzini.
4612
4613 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4614
4615         Replace uses of obsolete autoconf macros in Jim's modules.
4616         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
4617         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
4618         can evoke a warning from autoconf when run with -Wobsolete
4619         enabled.  They were declared obsolete for good reasons (see
4620         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
4621         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
4622         should not continue using the deprecated macros.
4623         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
4624         obsolete Autoconf macros with modern counterparts.
4625         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4626         * m4/dos.m4 (gl_AC_DOS): Likewise.
4627         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4628         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4629         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4630         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
4631         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
4632         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4633         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
4634         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
4635         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
4636         Likewise.
4637         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4638         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4639         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
4640         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
4641         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
4642         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
4643
4644 2009-09-01  Eric Blake  <ebb9@byu.net>
4645
4646         fchdir: fix off-by-one bug in previous patch
4647         * lib/fchdir.c (rpl_fstat): Use correct bounds.
4648         (_gl_unregister_fd): Delete useless if.
4649
4650 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
4651
4652         maint.mk: sort the list of syntax-check rules
4653         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
4654         easier to get a sense of progress when the rules are run sequentially
4655         and take a long time.
4656
4657 2009-09-01  Simon Josefsson  <simon@josefsson.org>
4658
4659         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
4660         * modules/netinet_in: Likewise.
4661         * modules/sys_file: Likewise.
4662         * modules/sys_ioctl: Likewise.
4663         * modules/sys_select: Likewise.
4664         * modules/sys_socket: Likewise.
4665         * modules/sys_stat: Likewise.
4666         * modules/sys_time: Likewise.
4667         * modules/sys_times: Likewise.
4668         * modules/sys_utsname: Likewise.
4669         * modules/sys_wait: Likewise.
4670
4671 2009-09-01  Jim Meyering  <meyering@redhat.com>
4672
4673         fts: help ensure that return values are not ignored
4674         * lib/fts_.h (__GNUC_PREREQ): Define.
4675         (__attribute_warn_unused_result__): Define.
4676         (fts_children, fts_close, fts_open, fts_read): Declare with
4677         __attribute_warn_unused_result__.
4678
4679         fts: fts_close now fails also when closing a dir file descriptor fails
4680         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
4681         and propagate to caller, along with errno.
4682
4683         announce-gen: correct formatting in --help output
4684         * build-aux/announce-gen (usage): Move the one-line description in
4685         --help output "up", to where it belongs, just after Usage:.
4686
4687 2009-08-31  Eric Blake  <ebb9@byu.net>
4688
4689         fchdir: port to mingw
4690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
4691         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
4692         opened, then use a substitute.
4693         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
4694         replacement.
4695         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
4696         (_gl_register_fd): No need to check stat if open already filters
4697         all directories.
4698         (fchdir): Fix error condition to match POSIX.
4699         * modules/fchdir (Depends-on): Add sys_stat.
4700         * doc/posix-functions/open.texi (open): Document the limitation.
4701         * modules/fchdir-tests: New file.
4702         * tests/test-fchdir.c: Likewise.
4703
4704         canonicalize: allow cross-testing from cygwin to mingw
4705         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
4706         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
4707         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
4708         Likewise.
4709         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
4710         target does not support symlinks.
4711         * tests/test-canonicalize-lgpl.sh: Likewise.
4712
4713         chown: avoid compilation warning on mingw
4714         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
4715         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
4716         mingw.
4717         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4718         * modules/chown (Depends-on): Add errno.
4719
4720 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4721
4722         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
4723         command.
4724
4725 2009-08-31  Jim Meyering  <meyering@redhat.com>
4726
4727         canonicalize: remove useless initialization
4728         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
4729         initialization of local, "end".
4730
4731 2009-08-30  Bruno Haible  <bruno@clisp.org>
4732
4733         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
4734         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
4735         ENOSYS.
4736
4737 2009-08-30  Bruno Haible  <bruno@clisp.org>
4738
4739         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
4740         /usr/xpg4/bin/tr when it exists.
4741         * tests/test-pipe-filter-gi1.sh: Likewise.
4742
4743 2009-08-30  Bruno Haible  <bruno@clisp.org>
4744
4745         Work around deficient /usr/bin/id program on Solaris.
4746         * tests/test-file-has-acl.sh (ID): New variable.
4747         * tests/test-set-mode-acl.sh (ID): Likewise.
4748         * tests/test-copy-acl.sh (ID): Likewise.
4749         * tests/test-copy-file.sh (ID): Likewise.
4750
4751 2009-08-30  Bruno Haible  <bruno@clisp.org>
4752
4753         New module 'xstriconveh'.
4754         * lib/xstriconveh.h: New file.
4755         * lib/xstriconveh.c: New file.
4756         * modules/xstriconveh: New file.
4757
4758 2009-08-30  Bruno Haible  <bruno@clisp.org>
4759
4760         Make it easier to use mem_cd_iconveh.
4761         * lib/striconveh.h (iconveh_t): New type.
4762         (iconveh_open, iconveh_close): New declarations.
4763         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
4764         with a single 'const iconveh_t *' argument.
4765         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
4766         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
4767         with a single 'const iconveh_t *' argument.
4768         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
4769         * tests/test-striconveh.c (main): Update.
4770         * NEWS: Mention the change.
4771
4772 2009-08-30  Bruno Haible  <bruno@clisp.org>
4773
4774         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
4775         problem.
4776
4777 2009-08-30  Bruno Haible  <bruno@clisp.org>
4778
4779         Work around iconv_open problem on Solaris.
4780         * lib/iconv_open-solaris.gperf: New file.
4781         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
4782         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
4783         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
4784         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
4785         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
4786         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
4787
4788 2009-08-29  Jim Meyering  <meyering@redhat.com>
4789
4790         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
4791         * top/maint.mk (cvs-check): Remove target; it was just an alias
4792         to the better-named vc-diff-check.
4793         (maintainer-distcheck): Remove rule.  It was used only from
4794         the (alpha/beta/major) target, and all of its commands but one
4795         were coreutils-specific.
4796         (vc-dist): Remove rule.
4797         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
4798         Run vc-diff-check, not vc-dist.
4799         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
4800
4801 2009-08-27  Bruno Haible  <bruno@clisp.org>
4802
4803         * tests/test-bitrotate.c (main): Remove test that uses a shift count
4804         of 0.
4805
4806 2009-08-27  Bruno Haible  <bruno@clisp.org>
4807
4808         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
4809         compilers.
4810         * doc/func.texi: Document the SunPRO C bug.
4811
4812 2009-08-27  Bruno Haible  <bruno@clisp.org>
4813
4814         Fix link error on Solaris.
4815         * tests/test-parse-duration.c (xstrdup): Remove function.
4816
4817 2009-08-26  Pádraig Brady  <P@draigbrady.com>
4818
4819         ignore-value: handle pointer types, too
4820         * lib/ignore-value.h (__attribute__): Remove definition.
4821         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
4822         of a more concise and more-often effective "(void) i" statement.
4823         (ignore_ptr): New function to suppress warnings from functions that
4824         return pointers, and to make it explicit that one function doesn't
4825         handle all cases.
4826
4827 2009-08-25  Bruno Haible  <bruno@clisp.org>
4828
4829         dup2: work around a Linux bug.
4830         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
4831         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
4832         * doc/posix-functions/dup2.texi: Mention the Linux bug.
4833         Reported by Simon Josefsson.
4834
4835 2009-08-25  Jim Meyering  <meyering@redhat.com>
4836
4837         libguestfs uses gnulib
4838         * users.txt: Add libguestfs.
4839
4840 2009-08-24  Eric Blake  <ebb9@byu.net>
4841
4842         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
4843         * lib/pipe2.c (includes): Add binary-io.h.
4844         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
4845
4846 2009-08-24  Bruno Haible  <bruno@clisp.org>
4847
4848         Tolerate declared but missing accept4 syscall.
4849         * lib/accept4.c (accept4): Invoke original accept4 function first, if
4850         available.
4851         * lib/sys_socket.in.h (accept4): If the function is already present,
4852         override it.
4853         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
4854         * modules/accept4 (Makefile.am): Compile accept4.c always.
4855         Reported by Paolo Bonzini and Eric Blake.
4856
4857 2009-08-23  Bruno Haible  <bruno@clisp.org>
4858
4859         New module 'accept4'.
4860         * lib/sys_socket.in.h (accept4): New declaration.
4861         * lib/accept4.c: New file.
4862         * m4/accept4.m4: New file.
4863         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4864         GNULIB_ACCEPT4, HAVE_ACCEPT4.
4865         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
4866         HAVE_ACCEPT4.
4867         * modules/accept4: New file.
4868         * doc/glibc-functions/accept4.texi: Mention the new module.
4869
4870 2009-08-24  Jim Meyering  <meyering@redhat.com>
4871
4872         progname: also set global program_invocation_name, when possible
4873         Before this change, a libtool-enabled program that calls glibc's
4874         error function would report the program name as
4875         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
4876         * modules/progname (configure.ac): Check for a declaration of
4877         program_invocation_name.
4878         * lib/progname.c:  Include <errno.h>.
4879         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
4880         Set program_invocation_name.
4881
4882 2009-08-23  Bruno Haible  <bruno@clisp.org>
4883
4884         * lib/dup3.c: Include <string.h>.
4885
4886 2009-08-23  Bruno Haible  <bruno@clisp.org>
4887
4888         * lib/dup3.c (dup3): Test only once whether the system actually exists.
4889         * lib/pipe2.c (pipe2): Likewise.
4890         Suggested by Eric Blake.
4891
4892 2009-08-23  Bruno Haible  <bruno@clisp.org>
4893
4894         Tolerate declared but missing dup3 syscall.
4895         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
4896         * lib/unistd.in.h (dup3): If the function is already present,
4897         override it.
4898         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
4899         * modules/dup3 (Makefile.am): Compile dup3.c always.
4900         Reported by Paolo Bonzini.
4901
4902 2009-08-23  Bruno Haible  <bruno@clisp.org>
4903
4904         Tolerate declared but missing pipe2 syscall.
4905         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
4906         available.
4907         * lib/unistd.in.h (pipe2): If the function is already present,
4908         override it.
4909         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
4910         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
4911         Reported by Paolo Bonzini.
4912
4913 2009-08-23  Bruno Haible  <bruno@clisp.org>
4914
4915         * lib/pipe2.c (pipe2): Move #ifs inside function.
4916
4917 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
4918
4919         quotearg: document limitations of quote_these_too
4920         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
4921         those limitations are created.
4922         * lib/quotearg.h (set_char_quoting): Document that digits and
4923         letters that are special after backslash are not permitted.
4924         (quotearg_char): Cross-reference set_char_quoting documentation.
4925
4926 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
4927
4928         quotearg: implement custom_quoting_style
4929         * lib/quotearg.c: (struct quoting_options): Add left_quote and
4930         right_quote fields.
4931         (set_custom_quoting): New public function.
4932         (quotearg_buffer_restyled): Add left_quote and right_quote
4933         arguments, handle them very much like locale quoting, and update
4934         all uses.
4935         (quotearg_n_custom): New public function.
4936         (quotearg_n_custom_mem): New public function.
4937         (quotearg_custom): New public function.
4938         (quotearg_custom_mem): New public function.
4939         * lib/quotearg.h: Prototype and document new public functions.
4940         (enum quoting_style): For escape_quoting_style and
4941         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
4942         ignored even though they're otherwise like c_quoting_style.
4943         Add custom_quoting_style member and document with comparison to
4944         clocale_quoting_style.
4945         * tests/test-quotearg.c (custom_quotes): New array.
4946         (custom_results): New array.
4947         (main): Extend to test custom quoting.
4948
4949 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
4950
4951         quotearg: fix right quote escaping when it's in quote_these_too
4952         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
4953         quote, be sure to prepend only one backslash.
4954         * tests/test-quotearg.c (use_quote_double_quotes): New function.
4955         (main): Test it.
4956
4957 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
4958
4959         quotearg-tests: test escaping of embedded locale quotes
4960         * tests/test-quotearg.c (struct result_strings): Add member for
4961         new input.
4962         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
4963         (inputs): Add new input.
4964         (results_g): Add expected results.
4965         (flag_results): Likewise.
4966         (locale_results): Likewise.
4967         (compare_strings): Check those.
4968
4969 2009-08-23  Bruno Haible  <bruno@clisp.org>
4970
4971         Tests for module 'dup3'.
4972         * modules/dup3-tests: New file.
4973         * tests/test-dup3.c: New file.
4974
4975         New module 'dup3'.
4976         * lib/unistd.in.h (dup3): New declaration.
4977         * lib/dup3.c: New file.
4978         * m4/dup3.m4: New file.
4979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
4980         HAVE_DUP3.
4981         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
4982         * modules/dup3: New file.
4983         * doc/glibc-functions/dup3.texi: Mention the new module.
4984
4985 2009-08-23  Bruno Haible  <bruno@clisp.org>
4986
4987         Tweak the dup2 test.
4988         * tests/test-dup2.c (main): Create the test file empty. Verify that an
4989         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
4990         the test file is still empty. Fix argument order of lseek.
4991
4992 2009-08-23  Bruno Haible  <bruno@clisp.org>
4993
4994         Avoid test link errors when the modules getopt-gnu, gettext are used.
4995         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
4996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4997
4998 2009-08-23  Bruno Haible  <bruno@clisp.org>
4999
5000         Fix getdtablesize() on mingw.
5001         * lib/getdtablesize.c (getdtablesize): Implement differently.
5002         * lib/unistd.in.h (getdtablesize): Improve comment.
5003
5004 2009-08-23  Bruno Haible  <bruno@clisp.org>
5005
5006         New module 'mkostemp'.
5007         Based on Ulrich Drepper's 2007-08-10 change in glibc.
5008         * lib/stdlib.in.h (mksotemp): New declaration.
5009         * lib/mkostemp.c: New file, from glibc with modifications.
5010         * lib/tempname.h (GT_FILE): Remove outdated comment.
5011         (gen_tempname): Add flags argument.
5012         * lib/tempname.c (__GT_BIGFILE): Remove macro.
5013         (__GT_FILE): Map to 1.
5014         (small_open, large_open): Remove macros.
5015         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
5016         * lib/mkstemp.c (mkstemp): Update.
5017         * lib/mkdtemp.c (mkdtemp): Likewise.
5018         * m4/mkostemp.m4: New file.
5019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
5020         HAVE_MKOSTEMP.
5021         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
5022         HAVE_MKOSTEMP.
5023         * modules/mkostemp: New file, based on modules/mkstemp.
5024         * doc/glibc-functions/mkostemp.texi: Mention the new module.
5025         * NEWS: Mention the change.
5026
5027 2009-08-23  Bruno Haible  <bruno@clisp.org>
5028
5029         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
5030         Reported by Eric Blake.
5031
5032 2009-08-23  Bruno Haible  <bruno@clisp.org>
5033
5034         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
5035         Reported by Eric Blake.
5036
5037 2009-08-23  Bruno Haible  <bruno@clisp.org>
5038
5039         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
5040         * modules/pipe2 (Depends-on): Likewise.
5041
5042 2009-08-23  Eric Blake  <ebb9@byu.net>
5043
5044         fcntl-h: add O_TTY_INIT support
5045         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
5046         * tests/test-fcntl-h.c (o): Test it.
5047         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5048
5049         fcntl-h: rename from fcntl, in preparation for fcntl(2)
5050         * modules/fcntl: Move <fcntl.h> header replacement...
5051         * modules/fcntl-h: ...to new name, so as not to collide with
5052         like-named function.
5053         * tests/test-fcntl.c: Rename...
5054         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
5055         * modules/fcntl-tests: Rename...
5056         * modules/fcntl-h-tests: ...to this.  Update test file name.
5057         * modules/chdir-long (Depends-on): Update clients.
5058         * modules/chdir-safer (Depends-on): Likewise.
5059         * modules/fcntl-safer (Depends-on): Likewise.
5060         * modules/fts (Depends-on): Likewise.
5061         * modules/mkancesdirs (Depends-on): Likewise.
5062         * modules/mkdir-p (Depends-on): Likewise.
5063         * modules/open (Depends-on): Likewise.
5064         * modules/savewd (Depends-on): Likewise.
5065         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
5066         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5067
5068 2009-08-22  Bruno Haible  <bruno@clisp.org>
5069
5070         * modules/binary-io (License): Relicense under LGPL.
5071         * modules/pipe2 (License): Likewise.
5072
5073 2009-08-22  Bruno Haible  <bruno@clisp.org>
5074
5075         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
5076         return value.
5077         * lib/pipe-filter-gi.c (filter_init): Likewise.
5078         Reported by Eric Blake.
5079
5080 2009-08-22  Bruno Haible  <bruno@clisp.org>
5081
5082         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
5083         * modules/pipe (Depends-on): Add pipe2.
5084
5085 2009-08-22  Bruno Haible  <bruno@clisp.org>
5086
5087         Tests for module 'pipe2'.
5088         * modules/pipe2-tests: New file.
5089         * tests/test-pipe2.c: New file.
5090
5091         New module 'pipe2'.
5092         * lib/unistd.in.h (pipe2): New declaration.
5093         * lib/pipe2.c: New file.
5094         * m4/pipe2.m4: New file.
5095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
5096         HAVE_PIPE2.
5097         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
5098         * modules/pipe2: New file.
5099         * doc/glibc-functions/pipe2.texi: Mention the new module.
5100
5101 2009-08-22  Bruno Haible  <bruno@clisp.org>
5102
5103         Reference some new glibc functions.
5104         * doc/glibc-functions/accept4.texi: New file.
5105         * doc/glibc-functions/dup3.texi: New file.
5106         * doc/glibc-functions/mkostemp.texi: New file.
5107         * doc/glibc-functions/pipe2.texi: New file.
5108         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
5109         (Glibc sys/socket.h): Refer to accept4.
5110         (Glibc unistd.h): Refer to dup3, pipe2.
5111         Reported by Eric Blake.
5112
5113 2009-08-22  Jim Meyering  <meyering@redhat.com>
5114             Bruno Haible  <bruno@clisp.org>
5115
5116         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
5117         This makes it so packages using automake-1.11's silent-rules option
5118         can print e.g., a single "GEN    configmake.h" line, rather than
5119         the 30+ statements that perform the job.  If you want to see the
5120         actual commands, you can still run "make V=1".
5121         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
5122         so that make output is abbreviated when those variables are defined
5123         appropriately.
5124         * modules/argz: Likewise.
5125         * modules/arpa_inet: Likewise.
5126         * modules/byteswap: Likewise.
5127         * modules/configmake: Likewise.
5128         * modules/dirent: Likewise.
5129         * modules/errno: Likewise.
5130         * modules/fcntl: Likewise.
5131         * modules/float: Likewise.
5132         * modules/fnmatch: Likewise.
5133         * modules/getopt-posix: Likewise.
5134         * modules/glob: Likewise.
5135         * modules/iconv_open: Likewise.
5136         * modules/inttypes: Likewise.
5137         * modules/localcharset: Likewise.
5138         * modules/locale: Likewise.
5139         * modules/math: Likewise.
5140         * modules/netdb: Likewise.
5141         * modules/netinet_in: Likewise.
5142         * modules/poll: Likewise.
5143         * modules/posix_spawnp-tests: Likewise.
5144         * modules/sched: Likewise.
5145         * modules/search: Likewise.
5146         * modules/selinux-h: Likewise.
5147         * modules/signal: Likewise.
5148         * modules/spawn: Likewise.
5149         * modules/stdarg: Likewise.
5150         * modules/stdbool: Likewise.
5151         * modules/stddef: Likewise.
5152         * modules/stdint: Likewise.
5153         * modules/stdio: Likewise.
5154         * modules/stdlib: Likewise.
5155         * modules/string: Likewise.
5156         * modules/strings: Likewise.
5157         * modules/sys_file: Likewise.
5158         * modules/sys_ioctl: Likewise.
5159         * modules/sys_select: Likewise.
5160         * modules/sys_socket: Likewise.
5161         * modules/sys_stat: Likewise.
5162         * modules/sys_time: Likewise.
5163         * modules/sys_times: Likewise.
5164         * modules/sys_utsname: Likewise.
5165         * modules/sys_wait: Likewise.
5166         * modules/sysexits: Likewise.
5167         * modules/time: Likewise.
5168         * modules/unistd: Likewise.
5169         * modules/wchar: Likewise.
5170         * modules/wctype: Likewise.
5171
5172 2009-08-22  Jim Meyering  <meyering@redhat.com>
5173
5174         announce-gen: detect write failure
5175         * build-aux/announce-gen: Add Coda at end.
5176         Remove equivalent-but-more-verbose block at top.
5177
5178 2009-08-19  Akim Demaille  <demaille@gostai.com>
5179
5180         bootstrap: --help to stdout.
5181         * bootstrap (usage): Don't send --help to stderr.
5182         Use a here doc instead of a long string.
5183
5184 2009-08-21  Eric Blake  <ebb9@byu.net>
5185
5186         test-popen-safer: split from test-popen
5187         * tests/test-popen.c (main): Move...
5188         * tests/test-popen.h: ...into new file.
5189         * tests/test-popen-safer2.c: New file.
5190         * modules/popen-tests (Files): Add test-popen.h.
5191         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
5192         Suggested by Bruno Haible.
5193
5194         test-fcntl-safer: split from test-open
5195         * tests/test-open.c (main): Move...
5196         * tests/test-open.h: ...into new file.
5197         * tests/test-fcntl-safer.c: New file.
5198         * modules/open-tests (Files): Add test-open.h.
5199         * modules/fcntl-safer-tests: New file.
5200         Suggested by Bruno Haible.
5201
5202         test-fopen-safer: split from test-fopen
5203         * tests/test-fopen.c (main): Move...
5204         * tests/test-fopen.h: ...into new file.
5205         * tests/test-fopen-safer.c: New file.
5206         * modules/fopen-tests (Files): Add test-fopen.h.
5207         * modules/fopen-safer-tests: New file.
5208         Suggested by Bruno Haible.
5209
5210 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
5211
5212         popen-safer: test O_CLOEXEC at run-time.
5213         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
5214
5215 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
5216
5217         fcntl: move more flags to the header
5218         * lib/cloexec.c: Do not define FD_CLOEXEC here.
5219         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
5220         * lib/fcntl.in.h: Do both things here.
5221
5222 2009-08-21  Jim Meyering  <meyering@redhat.com>
5223
5224         consistently remove $@-t before redirecting to it
5225         * modules/argz: Remove $@-t and $@ before redirecting to the former.
5226         * modules/alloca-opt: Likewise.
5227         * modules/byteswap: Likewise.
5228         * modules/fnmatch: Likewise.
5229         * modules/getopt-posix: Likewise.
5230         * modules/glob: Likewise.
5231         * modules/poll: Likewise.
5232         * modules/posix_spawnp-tests: Likewise.
5233         * modules/sys_socket: Likewise.
5234         * modules/sysexits: Likewise.
5235
5236 2009-08-21  Eric Blake  <ebb9@byu.net>
5237
5238         popen: simplify access to original popen
5239         * lib/popen.c (rpl_popen): No need to worry about popen being a
5240         macro.
5241         Reported by Bruno Haible.
5242
5243 2009-08-20  Eric Blake  <ebb9@byu.net>
5244
5245         build: avoid some compiler warnings
5246         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
5247         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
5248         type.
5249         (new_exclude_segment, excluded_file_pattern_p)
5250         (excluded_file_name_p): Reduce scope.
5251         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
5252         old-style declaration.
5253
5254 2009-08-20  Simon Josefsson  <simon@josefsson.org>
5255
5256         * tests/test-exclude1.sh: Handle Windows EOL.
5257         * tests/test-exclude2.sh: Likewise.
5258         * tests/test-exclude3.sh: Likewise.
5259         * tests/test-exclude4.sh: Likewise.
5260         * tests/test-exclude5.sh: Likewise.
5261         * tests/test-exclude6.sh: Likewise.
5262         * tests/test-exclude7.sh: Likewise.
5263
5264 2009-08-19  Akim Demaille  <demaille@gostai.com>
5265
5266         bootstrap: find sha1sum when named gsha1sum.
5267         * bootstrap (find_tool): New.
5268         ($SHA1SUM): New.
5269         Use it.
5270
5271 2009-08-20  Jim Meyering  <meyering@redhat.com>
5272
5273         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
5274         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
5275         expression that converts "." in a file name to "\." in the resulting
5276         regexp.  Start with a dummy statement, so that prior shell variable
5277         definitions are expanded portably.  Reported by Simon Josefsson.
5278
5279 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
5280
5281         Fix polling for writeability of a screen buffer.
5282         * lib/poll.c: Distinguish input and screen buffers for the
5283         Win32 implementation.
5284         * lib/select.c: Likewise.
5285
5286 2009-08-19  Eric Blake  <ebb9@byu.net>
5287
5288         popen-safer: prevent popen from clobbering std descriptors
5289         * modules/popen-safer: New file.
5290         * lib/popen-safer.c: Likewise.
5291         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
5292         * lib/stdio--.h (popen): Provide override.
5293         * lib/stdio-safer.h (popen_safer): Provide declaration.
5294         * tests/test-popen.c (includes): Partially test this.
5295         * modules/popen-safer-tests: New file, for more tests.
5296         * tests/test-popen-safer.c: Likewise.
5297         * MODULES.html.sh (file stream based Input/Output): Mention it.
5298
5299         tests: test some of the *-safer modules
5300         * modules/fopen-safer (Depends-on): Add fopen.
5301         * modules/fcntl-safer (Depends-on): Add fcntl.
5302         * modules/stdlib-safer (Depends-on): Add stdlib.
5303         (configure.ac): Set indicator.
5304         * modules/unistd-safer (configure.ac): Likewise.
5305         * modules/tmpfile-safer (configure.ac): Likewise.
5306         (Depends-on): Add tmpfile.
5307         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
5308         active.
5309         * tests/test-fopen.c (includes): Test safer versions when they are
5310         in use.
5311         * tests/test-open.c (includes): Likewise.
5312
5313         popen: fix cygwin 1.5 bug when stdin closed
5314         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
5315         * modules/popen: New file.
5316         * modules/popen-tests: Likewise.
5317         * tests/test-popen.c: Likewise.
5318         * m4/popen.m4: Likewise.
5319         * lib/popen.c: Likewise.
5320         * lib/stdio.in.h (popen): New declaration.
5321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
5322         * modules/stdio (Makefile.am): Likewise.
5323         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
5324
5325 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
5326
5327         maint.mk: give full control over update-copyright exclusions
5328         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
5329         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
5330         (update-copyright): Don't force inclusion of top-level
5331         ChangeLog.  Don't force exclusion of all COPYING files, but make
5332         them the default exclusion instead.
5333
5334 2009-08-16  Bruno Haible  <bruno@clisp.org>
5335
5336         Fix test failures on Solaris 10.
5337         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
5338         tests when Solaris iconv() is used.
5339         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5340         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5341         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5342         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5343         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5344
5345 2009-08-16  Bruno Haible  <bruno@clisp.org>
5346
5347         Fix test failures on Solaris 10.
5348         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
5349         'tr' program and pass it as first argument.
5350         * tests/test-pipe-filter-gi1.sh: Likewise.
5351         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
5352         program as first argument.
5353         * tests/test-pipe-filter-gi1.c (main): Likewise.
5354
5355 2009-08-16  Eric Blake  <ebb9@byu.net>
5356
5357         fpurge: fix previous commits
5358         * modules/fpurge (Makefile.am): Make replacement conditional,
5359         partially reverting 2007-04-29 change; missed in previous
5360         attempt.
5361         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
5362         is missing.
5363
5364 2009-08-16  Bruno Haible  <bruno@clisp.org>
5365
5366         Clarify fpurge's effect on the file position.
5367         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
5368         * tests/test-fpurge.c (main): Make a second pass for checking the file
5369         position.
5370
5371 2009-08-16  Bruno Haible  <bruno@clisp.org>
5372
5373         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
5374         declaration of fpurge is missing.
5375         * tests/test-fpurge.c (main): Check that the file has not more contents
5376         than expected. Close the file before removing it.
5377
5378 2009-08-15  Eric Blake  <ebb9@byu.net>
5379
5380         fpurge: don't wrap working cygwin implementation
5381         * lib/fpurge.c (fpurge): Fix comment typo.
5382         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
5383         1.7 to avoid replacement.
5384         * tests/test-fpurge.c (main): Enhance test.
5385
5386 2009-08-15  Eric Blake  <ebb9@byu.net>
5387         and Jim Meyering  <meyering@redhat.com>
5388
5389         test-update-copyright: skip if perl is insufficient
5390         * tests/test-update-copyright.sh: Failure to run maintainer tool
5391         should not cause testsuite failure on cygwin 1.5.
5392
5393 2009-08-14  Eric Blake  <ebb9@byu.net>
5394
5395         doc: mention more functions added in cygwin 1.7.0
5396         * doc/posix-headers/limits.texi (limits.h): Update for recent
5397         cygwin additions.
5398         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
5399         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5400         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
5401         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
5402         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
5403
5404 2009-08-14  Eric Blake  <ebb9@byu.net>
5405
5406         maint.mk: simplify update-copyright rule
5407         * top/maint.mk (update-copyright-local): Delete, and document how
5408         to do it in cfg.mk instead.
5409         (update-copyright-exclude-regexp): Delete, and document how to do
5410         it in .x-update-copyright instead.
5411         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
5412         exclude ChangeLog.
5413
5414 2009-08-14  Bruno Haible  <bruno@clisp.org>
5415
5416         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
5417
5418 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
5419
5420         maint.mk: support update-copyright-env
5421         * top/maint.mk (update-copyright-env): Define place-holder.
5422         (update-copyright): Expand $(update-copyright-env) before
5423         invoking update-copyright.
5424
5425 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
5426
5427         update-copyright: implement forced reformatting
5428         * build-aux/update-copyright: Implement and document
5429         UPDATE_COPYRIGHT_FORCE.
5430         * tests/test-update-copyright.sh: Test it.
5431
5432 2009-08-14  Eric Blake  <ebb9@byu.net>
5433         and Bruno Haible  <bruno@clisp.org>
5434
5435         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
5436         * tests/test-locale.c: Revert previous patch related to NULL.
5437         * tests/test-stdio.c: Likewise.
5438         * tests/test-stdlib.c: Likewise.
5439         * tests/test-string.c: Likewise.
5440         * tests/test-unistd.c: Likewise.
5441         * modules/time-tests (Depends-on): Add verify.
5442         * modules/wchar-tests (Depends-on): Likewise.
5443         * tests/test-time.c: Test for NULL compliance.
5444         * tests/test-wchar.c: Likewise.
5445         * modules/locale (Depends-on): Add stddef.
5446         * modules/stdio (Depends-on): Likewise.
5447         * modules/stdlib (Depends-on): Likewise.
5448         * modules/string (Depends-on): Likewise.
5449         * modules/time (Depends-on): Likewise.
5450         * modules/unistd (Depends-on): Likewise.
5451         * modules/wchar (Depends-on): Likewise.
5452         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
5453         * lib/stdlib.in.h (includes): Likewise.
5454         * lib/string.in.h (includes): Likewise.
5455         * lib/time.in.h (includes): Likewise.
5456         * lib/unistd.in.h (includes): Likewise.
5457         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
5458         replaced.
5459         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5460         * m4/stddef_h.m4: New file.
5461         * modules/stddef: Likewise.
5462         * lib/stddef.in.h: Likewise.
5463         * modules/stddef-tests: Likewise.
5464         * tests/test-stddef.c: Likewise.
5465         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
5466         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
5467         * doc/posix-headers/locale.texi (locale.h): Likewise.
5468         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
5469         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5470         * doc/posix-headers/string.texi (string.h): Likewise.
5471         * doc/posix-headers/time.texi (time.h): Likewise.
5472         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
5473         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
5474
5475 2009-08-14  Eric Blake  <ebb9@byu.net>
5476
5477         doc: improve git diff of texinfo files
5478         * .gitattributes: Add rule for *.texi files, with hint on how to
5479         use it.
5480         Copied from m4, and based on a report by Bruno Haible.
5481
5482 2009-08-14  Bruno Haible  <bruno@clisp.org>
5483
5484         Disable multithread support by default on Cygwin 1.5.x for real.
5485         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
5486
5487 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
5488
5489         update-copyright: much ado about intervals
5490         * build-aux/update-copyright: Implement and document
5491         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
5492         of copyright year intervals.
5493         Also, document UPDATE_COPYRIGHT_YEAR.
5494         * tests/test-update-copyright.sh: Test it.
5495
5496         update-copyright: convert 2-digit to 4-digit years
5497         * build-aux/update-copyright: Implement and document.
5498         * tests/test-update-copyright.sh: Update.
5499
5500 2009-08-14  Jim Meyering  <meyering@redhat.com>
5501
5502         test-exclude: avoid coreutils "make check" failure
5503         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
5504         just as in test-argmatch.c.
5505
5506 2009-08-13  Eric Blake  <ebb9@byu.net>
5507
5508         test-dup2: fix bad assumption
5509         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
5510         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
5511
5512         test-version-etc: fix CRLF portability issue
5513         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
5514         recognize \r.
5515         * tests/test-argp-version-etc-1.sh: Likewise.
5516
5517         getopt: update client modules
5518         * modules/argp (Depends-on): Use getopt-gnu.
5519         * modules/git-merge-changelog (Depends-on): Likewise.
5520         * modules/long-options (Depends-on): Likewise.
5521         * modules/xstrtol (Depends-on): Likewise.
5522
5523 2009-08-13  Simon Josefsson  <simon@josefsson.org>
5524
5525         * tests/test-version-etc.sh: Don't fail on different
5526         project/version.  Don't fail on CRLF differences.  Rewrite to use
5527         multiple -e instead of multiple sed forks, suggested by Eric Blake
5528         <ebb9@byu.net>.
5529         * tests/test-argp-version-etc-1.sh: Likewise.
5530
5531 2009-08-13  Simon Josefsson  <simon@josefsson.org>
5532
5533         * tests/test-version-etc.sh: Don't fail on different
5534         project/version.
5535
5536 2009-08-12  Bruno Haible  <bruno@clisp.org>
5537
5538         Tests for modules 'getopt-posix', 'getopt-gnu'.
5539         * modules/getopt-posix-tests: New file.
5540         * tests/test-getopt.c: New file.
5541         * tests/test-getopt.h: New file.
5542         * tests/test-getopt_long.h: New file.
5543
5544         New modules 'getopt-posix', 'getopt-gnu'.
5545         * modules/getopt-gnu: New file, renamed from modules/getopt.
5546         * modules/getopt-posix: New file.
5547         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
5548         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
5549         (gl_GETOPT): Remove macro.
5550         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
5551         Disable the test against BSD systems that declare optreset. Test
5552         against mingw bug. Test against lack of support of optional arguments
5553         on many platforms.
5554         * doc/glibc-headers/getopt.texi: Update module name and list of
5555         relevant platforms.
5556         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
5557         'getopt-gnu' and more portability problems.
5558         * NEWS: Mention the changes.
5559
5560 2009-08-12  Bruno Haible  <bruno@clisp.org>
5561
5562         Ensure that optarg etc. get declared by <unistd.h>.
5563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
5564         AC_USE_SYSTEM_EXTENSIONS.
5565         * modules/getopt (Depends-on): Add 'extensions'.
5566
5567 2009-08-12  Bruno Haible  <bruno@clisp.org>
5568
5569         Avoid test link errors.
5570         * modules/pipe-filter-ii-tests (Makefile.am): Define
5571         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
5572         * modules/pipe-filter-gi-tests (Makefile.am): Define
5573         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
5574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5575
5576 2009-08-12  Bruno Haible  <bruno@clisp.org>
5577
5578         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
5579         gl_GETOPT_SUBSTITUTE before.
5580         (gl_GETOPT): Use it.
5581         * m4/argp.m4 (gl_ARGP): Update.
5582         Reported by Sergey Poznyakoff.
5583
5584         * m4/getopt.m4: Reorder macros.
5585         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
5586         (gl_GETOPT_SUBSTITUTE): Remove macro.
5587
5588 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5589
5590         Minor improvement in gitlog-to-changelog
5591
5592         * build-aux/gitlog-to-changelog: New option `--format' makes
5593         output format string configurable.
5594
5595 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5596
5597         Optimize exclude: use hash tables for non-wildcard patterns.
5598
5599         * lib/exclude.c: Include hash.h and mbuiter.h
5600         (struct exclude_pattern, exclude_segment): New data types.
5601         (struct exclude): Rewrite.
5602         (fnmatch_pattern_has_wildcards): New function.
5603         (new_exclude_segment, free_exclude_segment): New functions.
5604         (excluded_file_pattern_p, excluded_file_name_p): New functions.
5605         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
5606         * lib/exclude.h (is_fnmatch_pattern): New prototype.
5607         * modules/exclude: Depend on hash and mbuiter.
5608
5609         * modules/exclude-tests: New file.
5610         * tests/test-exclude.c: New file.
5611         * tests/test-exclude1.sh: New file.
5612         * tests/test-exclude2.sh: New file.
5613         * tests/test-exclude3.sh: New file.
5614         * tests/test-exclude4.sh: New file.
5615         * tests/test-exclude5.sh: New file.
5616         * tests/test-exclude6.sh: New file.
5617         * tests/test-exclude7.sh: New file.
5618
5619 2009-08-12  Bruno Haible  <bruno@clisp.org>
5620
5621         Ensure that getopt() gets declared by <unistd.h>.
5622         * lib/unistd.in.h: Conditionally include getopt.h.
5623         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
5624         Set GNULIB_UNISTD_H_GETOPT.
5625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5626         GNULIB_UNISTD_H_GETOPT.
5627         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
5628
5629 2009-08-12  Bruno Haible  <bruno@clisp.org>
5630
5631         Clarify logic.
5632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
5633         gl_replace_getopt instead of GETOPT_H.
5634
5635 2009-08-12  Bruno Haible  <bruno@clisp.org>
5636
5637         * m4/getopt.m4: Add comments.
5638
5639 2009-08-12  Bruno Haible  <bruno@clisp.org>
5640
5641         Disable multithread support by default on Cygwin 1.5.x.
5642         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
5643         set gl_use_threads=no if not specified otherwise.
5644
5645 2009-08-11  Bruno Haible  <bruno@clisp.org>
5646
5647         Avoid compilation error on NetBSD 5.0.
5648         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
5649         * tests/test-stdio.c: Likewise.
5650         * tests/test-stdlib.c: Likewise.
5651         * tests/test-string.c: Likewise.
5652         * tests/test-unistd.c: Likewise.
5653         Reported by Greg Troxel <gdt@ir.bbn.com>
5654         at <https://savannah.gnu.org/support/?106973>.
5655
5656 2009-08-11  Bruno Haible  <bruno@clisp.org>
5657
5658         * modules/dup2-tests (Depends-on): Remove close.
5659
5660         Undo 2009-07-19 commit.
5661         * modules/acl-tests (Depends-on): Remove close.
5662         * modules/binary-io-tests (Depends-on): Likewise.
5663         * modules/closein-tests (Depends-on): Likewise.
5664         * modules/flock-tests (Depends-on): Likewise.
5665         * modules/fsync-tests (Depends-on): Likewise.
5666         * modules/lseek-tests (Depends-on): Likewise.
5667         * modules/pipe-tests (Depends-on): Likewise.
5668         * modules/posix_spawn-tests (Depends-on): Likewise.
5669         * modules/posix_spawnp-tests (Depends-on): Likewise.
5670         * modules/stat-time-tests (Depends-on): Likewise.
5671         * modules/yesno-tests (Depends-on): Likewise.
5672
5673 2009-08-10  Bruno Haible  <bruno@clisp.org>
5674
5675         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
5676
5677 2009-08-10  Bruno Haible  <bruno@clisp.org>
5678
5679         Fix a gcc warning.
5680         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
5681
5682 2009-08-10  Bruno Haible  <bruno@clisp.org>
5683
5684         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
5685         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
5686         not only the first time.
5687         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
5688         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
5689         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
5690         is 1, not only the the first time.
5691
5692 2009-08-10  Bruno Haible  <bruno@clisp.org>
5693
5694         Make it possible to use module 'gethostname' without module 'close'.
5695         * lib/unistd.in.h (close): Evoke a link error only if
5696         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
5697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5698         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5699         * modules/unistd (Makefile.am): Substitute
5700         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5701         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
5702         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
5703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5704         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5705         * modules/sys_ioctl (Makefile.am): Substitute
5706         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5707         * modules/socket (configure.ac): On native Windows, set
5708         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
5709         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
5710         Reported by Sam Steingold <sds@gnu.org>.
5711
5712 2009-08-10  Bruno Haible  <bruno@clisp.org>
5713
5714         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
5715         * modules/ioctl (configure.ac): Likewise.
5716
5717 2009-08-10  Bruno Haible  <bruno@clisp.org>
5718
5719         Avoid collision between gnulib wrapper and libintl wrapper.
5720         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
5721         already defined in intl/printf.c.
5722         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
5723         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
5724
5725 2009-08-09  Bruno Haible  <bruno@clisp.org>
5726
5727         Make <sys/select.h> really self-contained, also on Solaris 10.
5728         * lib/sys_select.in.h: Include <string.h>.
5729         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
5730         Solaris 10 problem.
5731         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
5732         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
5733         Reported by Jim Meyering.
5734
5735 2009-08-09  Bruno Haible  <bruno@clisp.org>
5736
5737         Avoid warnings from 'aclocal' that are due to a use of macro name
5738         AM_XGETTEXT_OPTION that is not defined in automake.
5739         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
5740         automake.
5741         * modules/error (configure.ac): Likewise.
5742         * modules/propername (configure.ac): Likewise.
5743         * modules/vasprintf (configure.ac): Likewise.
5744         * modules/verror (configure.ac): Likewise.
5745         * modules/xprintf (configure.ac): Likewise.
5746         * modules/xvasprintf (configure.ac): Likewise.
5747
5748 2009-08-08  Bruno Haible  <bruno@clisp.org>
5749
5750         Avoid compilation error in C++ mode.
5751         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
5752         Reported by Sam Steingold <sds@gnu.org>.
5753
5754 2009-08-08  Bruno Haible  <bruno@clisp.org>
5755
5756         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
5757         for the various Unix platforms.
5758         * doc/posix-headers/limits.texi: Update platforms list regarding
5759         HOST_NAME_MAX.
5760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5761
5762 2009-08-07  Jim Meyering  <meyering@redhat.com>
5763
5764         selinux-at: fix typo in a comment
5765         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
5766         Spotted by Paolo Bonzini.
5767
5768         selinux-at: remove redundant m4 code, add documentation
5769         * modules/selinux-at (configure.ac): Remove redundant code.
5770         LIB_SELINUX is already set via the dependent module, selinux-h.
5771         (Include): Add quotes around selinux-at.h.
5772         * lib/selinux-at.h: Add documentation.
5773         Reported by Bruno Haible in
5774         http://marc.info/?l=gnulib-bug&m=124958988300749
5775
5776 2009-08-07  Bruno Haible  <bruno@clisp.org>
5777
5778         Avoid link error on MacOS X 10.3 and 10.4.
5779         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
5780         on non-ELF systems.
5781         * lib/argp-pv.c (argp_program_version): Likewise.
5782         Reported by Simon Josefsson.
5783
5784 2009-08-07  Simon Josefsson  <simon@josefsson.org>
5785
5786         * tests/test-version-etc.sh: Use $EXEEXT.
5787
5788 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
5789
5790         update-copyright: update documentation to point to maint.mk
5791         * build-aux/update-copyright: Here.
5792
5793 2009-08-06  Jim Meyering  <meyering@redhat.com>
5794
5795         maint.mk: support update-copyright-local
5796         * top/maint.mk (update-copyright-local): Define place-holder.
5797         (update-copyright): Depend on $(update-copyright-local).
5798
5799 2009-08-06  Jim Meyering  <meyering@redhat.com>
5800
5801         selinux-at: new module
5802         Initially written for coreutils, this module will soon be
5803         used by findutils, too.
5804         * MODULES.html.sh [Misc]: Add selinux-at.
5805         * lib/selinux-at.h: New file, from coreutils.
5806         * lib/selinux-at.c: Likewise.
5807         * modules/selinux-at: Likewise.
5808         (License): Change from LGPL to GPL, since it depends
5809         on the GPL'd openat module.
5810
5811         doc: update README
5812         * README: Remove references to cogito.
5813         Remove cvs-repo-updating instructions from 2007.
5814         Don't imply that CVS is better if you have limited disk space.
5815
5816 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5817
5818         update-copyright: support C-style comments
5819         * build-aux/update-copyright: Implement and document.
5820         * tests/test-update-copyright.sh: Test.
5821
5822 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5823
5824         update-copyright: support omitted "(C)"
5825         * build-aux/update-copyright: Implement and document.  Also,
5826         allow variable whitespace before "(C)".
5827         * tests/test-update-copyright.sh: Test.
5828
5829 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5830
5831         update-copyright: don't trip on non-FSF copyright statements
5832         * build-aux/update-copyright: Fix so that the first correctly
5833         formatted FSF copyright statement is recognized no matter what
5834         appears before it.  Update documentation.
5835         * tests/test-update-copyright.sh: Test that.
5836
5837 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5838
5839         update-copyright: clean up code a little
5840         * build-aux/update-copyright: Append "_re" to the name of any
5841         variable holding a regular expression.
5842         Replace "old" and "new" with "stmt" in variable names.
5843         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
5844         handled correctly.
5845         Format code more consistently.
5846
5847 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
5848
5849         update-copyright-tests: improve portability
5850         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
5851         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
5852
5853 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
5854
5855         update-copyright: support @copyright{} and &copy;
5856         * build-aux/update-copyright: Implement and document.
5857         * tests/test-update-copyright.sh: Test.
5858
5859 2009-08-04  Jim Meyering  <meyering@redhat.com>
5860
5861         update-copyright-tests: correctly test EOL=\r\n handling
5862         * tests/test-update-copyright.sh: Put \r at the end of some lines
5863         for the dos-eol tests.  Based on a patch by Joel E. Denny.
5864
5865         maint.mk: make update-copyright exclusion list more configurable
5866         * top/maint.mk (update-copyright): Default to excluding COPYING,
5867         but allow an override, in case someone does want to update that file.
5868
5869         maint.mk: don't update copyright date in COPYING
5870         * top/maint.mk (update-copyright): Exclude COPYING.
5871
5872         maint.mk: add a copyright-updating rule
5873         * top/maint.mk (update-copyright): New rule.
5874         Derived from coreutils/Makefile.am.
5875
5876         update-copyright: rename some variables
5877         * build-aux/update-copyright: Rename a few variables for clarity.
5878         Tweak syntax.  List Joel E. Denny as coauthor.
5879
5880 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
5881
5882         update-copyright: fix bug for 2-digit last year and add tests
5883         * build-aux/update-copyright: Fix bug.
5884         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
5885         specified.
5886         * modules/update-copyright-tests: New
5887         * tests/test-update-copyright.sh: New.
5888
5889 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
5890
5891         update-copyright: handle leading tabs in line prefix
5892         * build-aux/update-copyright: Count leading tabs as 8 spaces
5893         when computing margin.  This helps with the formatting of
5894         ChangeLogs, for example.
5895         Fix documentation a little.
5896
5897 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
5898
5899         update-copyright: support EOL=\r\n
5900         * build-aux/update-copyright: Implement that.
5901
5902 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
5903
5904         update-copyright: automatically format copyright statements
5905         * build-aux/update-copyright: Implement that.
5906         Also, be a little more predictable and safer by always failing
5907         when the full copyright format is not perfectly recognized as an
5908         unbroken whole.  Discussed at
5909         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
5910         Rewrite documentation.
5911
5912 2009-08-03  Bruno Haible  <bruno@clisp.org>
5913
5914         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
5915
5916 2009-08-02  Bruno Haible  <bruno@clisp.org>
5917
5918         Tests for module 'uname'.
5919         * modules/uname-tests: New file.
5920         * tests/test-uname.c: New file.
5921
5922         New module 'uname'.
5923         * lib/uname.c: New file.
5924         * m4/uname.m4: New file.
5925         * modules/uname: New file.
5926         * doc/posix-functions/uname.texi: Mention the new module.
5927
5928 2009-08-02  Bruno Haible  <bruno@clisp.org>
5929
5930         Tests for module 'sys_utsname'.
5931         * modules/sys_utsname-tests: New file.
5932         * tests/test-sys_utsname.c: New file.
5933
5934         New module 'sys_utsname'.
5935         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
5936         * m4/sys_utsname_h.m4: New file.
5937         * modules/sys_utsname: New file.
5938         * doc/posix-headers/sys_utsname.texi: Mention the new module.
5939
5940 2009-08-02  Bruno Haible  <bruno@clisp.org>
5941
5942         Implicitly initialize the sockets library.
5943         * lib/gethostname.c: Include sockets.h.
5944         (rpl_gethostname): Invoke gl_sockets_startup.
5945         * lib/socket.c: Include sockets.h.
5946         (rpl_socket): Invoke gl_sockets_startup.
5947         * modules/gethostname (Depends-on): Add sockets.
5948         * modules/socket (Depends-on): Likewise.
5949         * tests/test-poll.c: Don't include sockets.h.
5950         (main): Don't invoke gl_sockets_startup.
5951         * tests/test-select.c: Don't include sockets.h.
5952         (main): Don't invoke gl_sockets_startup.
5953
5954 2009-08-02  Bruno Haible  <bruno@clisp.org>
5955
5956         Allow multiple calls to gl_sockets_startup.
5957         * lib/sockets.c (initialized_sockets_version): New variable.
5958         (gl_sockets_startup): Do nothing if already called for this or a higher
5959         version.
5960         (gl_sockets_cleanup): Reset initialized_sockets_version.
5961
5962 2009-08-03  Simon Josefsson  <simon@josefsson.org>
5963
5964         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
5965         different project/version.
5966
5967 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
5968             Bruno Haible  <bruno@clisp.org>
5969
5970         Tests for module 'pipe-filter-gi'.
5971         * modules/pipe-filter-gi-tests: New file.
5972         * tests/test-pipe-filter-gi1.sh: New file.
5973         * tests/test-pipe-filter-gi1.c: New file.
5974         * tests/test-pipe-filter-gi2.sh: New file.
5975         * tests/test-pipe-filter-gi2-main.c: New file.
5976         * tests/test-pipe-filter-gi2-child.c: New file.
5977
5978         New module 'pipe-filter-gi'.
5979         * lib/pipe-filter-gi.c: New file.
5980         * modules/pipe-filter-gi: New file.
5981
5982 2009-08-02  Bruno Haible  <bruno@clisp.org>
5983             Paolo Bonzini  <bonzini@gnu.org>
5984
5985         Tests for module 'pipe-filter-ii'.
5986         * modules/pipe-filter-ii-tests: New file.
5987         * tests/test-pipe-filter-ii1.sh: New file.
5988         * tests/test-pipe-filter-ii1.c: New file.
5989         * tests/test-pipe-filter-ii2.sh: New file.
5990         * tests/test-pipe-filter-ii2-main.c: New file.
5991         * tests/test-pipe-filter-ii2-child.c: New file.
5992
5993         New module 'pipe-filter-ii'.
5994         * lib/pipe-filter.h: New file.
5995         * lib/pipe-filter-ii.c: New file.
5996         * lib/pipe-filter-aux.h: New file.
5997         * modules/pipe-filter-ii: New file.
5998
5999 2009-08-02  Simon Josefsson  <simon@josefsson.org>
6000
6001         * lib/gc-libgcrypt.c: Change copyright to FSF.
6002         * lib/gc-gnulib.c: Likewise.
6003
6004 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
6005
6006         * lib/gethostname.c: Include limits.h.
6007
6008 2009-08-02  Simon Josefsson  <simon@josefsson.org>
6009             Bruno Haible  <bruno@clisp.org>
6010
6011         Ensure HOST_NAME_MAX as part of the gethostname module.
6012         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
6013         define also HOST_NAME_MAX.
6014         * tests/test-gethostname.c: Include <limits.h>.
6015         (main): Check also HOST_NAME_MAX.
6016         * doc/posix-headers/limits.texi: Document the mingw problem.
6017
6018 2009-08-02  Bruno Haible  <bruno@clisp.org>
6019
6020         * lib/gethostname.c (gethostname): Fix handling of large len argument.
6021         Add comments.
6022
6023 2009-03-31  Simon Josefsson  <simon@josefsson.org>
6024
6025         * lib/gethostname.c: Add Windows wrapper.
6026         * m4/gethostname.m4: Look for gethostname in -lws2_32.
6027         * modules/gethostname: Depend on sys_socket & errno, for also
6028         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
6029         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
6030
6031 2009-07-31  Jim Meyering  <meyering@redhat.com>
6032
6033         getloadavg: fix symbol name in comment
6034         * lib/getloadavg.c: Correct a typo I introduced when adding
6035         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
6036         Matt Kraai spotted the problem.
6037
6038 2009-07-29  Matt Kraai  <mkraai@beckman.com>
6039
6040         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
6041         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
6042         code also if ! defined N_NAME_POINTER.
6043         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
6044         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
6045         but the n_name member is a 12-byte array.
6046
6047 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
6048
6049         update-copyright: generalize comment handling
6050         * build-aux/update-copyright: Handle copyright statements
6051         within more comment styles.
6052         Document usage.
6053         Report any file with an external copyright holder or parse failure.
6054
6055 2009-07-29  Jim Meyering  <meyering@redhat.com>
6056
6057         mktime: correct setting of REPLACE_MKTIME
6058         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
6059
6060         update-copyright: new module
6061         * modules/update-copyright: New file.
6062         * build-aux/update-copyright: New file.
6063         * MODULES.html.sh (maint+release support): Add update-copyright.
6064
6065 2009-07-27  Bruno Haible  <bruno@clisp.org>
6066
6067         Fix compilation error when <ctime> is used and mktime is replaced.
6068         * lib/time.in.h (mktime): New declaration.
6069         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
6070         REPLACE_MKTIME instead of defining mktime in config.h.
6071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
6072         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
6073         Reported by Ross McFarland <rwmcfa1@neces.com>.
6074
6075 2009-07-27  Bruno Haible  <bruno@clisp.org>
6076
6077         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
6078         Reported by Matt Kraai <mkraai@beckman.com>.
6079
6080 2009-07-25  Jim Meyering  <meyering@redhat.com>
6081
6082         maint.mk: avoid warnings about missing files
6083         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
6084         diagnostic when .prev-version does not exist.
6085         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
6086         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
6087         nonexistent cfg.mk.
6088         Suggestions from Simon Josefsson.
6089
6090 2009-07-25  Bruno Haible  <bruno@clisp.org>
6091
6092         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
6093         defined as macros. Needed on QNX 6.4.1.
6094         Reported by Matt Kraai <mkraai@beckman.com>.
6095
6096 2009-07-23  Jim Meyering  <meyering@redhat.com>
6097
6098         maint.mk: invoke "make dist" with a working value of XZ_OPT
6099         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
6100
6101 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
6102
6103         Make fseeko.c compile on QNX.
6104         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
6105
6106 2009-07-22  Peter Simons  <simons@cryp.to>
6107
6108         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
6109         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
6110         * lib/md4.h: Likewise.
6111         * lib/md5.h: Likewise.
6112         * lib/sha1.h: Likewise.
6113         * lib/sha256.h: Likewise.
6114         * lib/sha512.h: Likewise.
6115
6116         tests-sha1: don't assign literal string to 'char *' variable
6117         * tests/test-sha1.c (main): Declare locals with "const" to match
6118         attributes of the right hand side.
6119
6120 2009-07-21  Eric Blake  <ebb9@byu.net>
6121
6122         dup2: fix more mingw problems
6123         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
6124         fd to itself.
6125         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6126         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
6127         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
6128         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
6129         care of mingw bugs.
6130
6131 2009-07-21  Jim Meyering  <meyering@redhat.com>
6132
6133         vc-list-files: avoid failure when /bin/sh is dash
6134         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
6135         On some Debian based systems, /bin/sh is a symlink to dash, and running
6136         this command would omit the "/" following each 'tests' prefix:
6137           dash -x build-aux/vc-list-files -C . tests
6138         That is because bash and dash work differently:
6139           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
6140           bash ok
6141           dash odd
6142
6143 2009-07-21  Eric Blake  <ebb9@byu.net>
6144
6145         dup2-tests: test previous patch
6146         * modules/dup2-tests: New file.
6147         * tests/test-dup2.c: Likewise.
6148         * tests/test-open.c (main): Avoid unspecified behavior.
6149         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
6150         test.
6151
6152         dup2: work around mingw and cygwin 1.5 bug
6153         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
6154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6155         * modules/unistd (Makefile.am): Substitute it.
6156         * lib/unistd.in.h (dup2): Declare the replacement.
6157         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
6158         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
6159         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
6160         * modules/execute (Depends-on): Add dup2.
6161         * modules/fseterr (Depends-on): Likewise.
6162         * modules/pipe (Depends-on): Likewise.
6163         * modules/posix_spawn-internal (Depends-on): Likewise.
6164
6165 2009-07-21  Bruno Haible  <bruno@clisp.org>
6166
6167         * modules/.gitattributes: New file.
6168
6169 2009-07-20  Bruno Haible  <bruno@clisp.org>
6170
6171         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
6172         (main): Use it.
6173
6174 2009-07-20  Eric Blake  <ebb9@byu.net>
6175
6176         test-pipe: make a bit more robust.
6177         * tests/test-pipe.c (myerr): Allow error messages regardless of
6178         what we do to stderr.
6179         (test_pipe): Rearrange to avoid deadlock.
6180         (child_main): Try a larger read, to ensure we avoided deadlock.
6181         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
6182         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
6183         if misused.
6184
6185 2009-07-19  Jim Meyering  <meyering@redhat.com>
6186
6187         fts: avoid false-positive cycle-detection
6188         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
6189         for each new command line argument.
6190
6191 2009-07-19  Bruno Haible  <bruno@clisp.org>
6192
6193         Fix build error on mingw with the modules sys_select and unistd.
6194         * modules/acl-tests (Depends-on): Add close.
6195         * modules/binary-io-tests (Depends-on): Likewise.
6196         * modules/closein-tests (Depends-on): Likewise.
6197         * modules/flock-tests (Depends-on): Likewise.
6198         * modules/fsync-tests (Depends-on): Likewise.
6199         * modules/lseek-tests (Depends-on): Likewise.
6200         * modules/pipe-tests (Depends-on): Likewise.
6201         * modules/posix_spawn-tests (Depends-on): Likewise.
6202         * modules/posix_spawnp-tests (Depends-on): Likewise.
6203         * modules/stat-time-tests (Depends-on): Likewise.
6204         * modules/yesno-tests (Depends-on): Likewise.
6205
6206 2009-07-19  Bruno Haible  <bruno@clisp.org>
6207
6208         Unify conditionals.
6209         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
6210         macros, not at the compiler macros.
6211         * lib/pipe.c: Likewise.
6212         * lib/execute.c: Likewise.
6213         * lib/spawni.c: Likewise.
6214
6215 2009-07-19  Bruno Haible  <bruno@clisp.org>
6216
6217         Fix handling of closed stdin/stdout/stderr on mingw.
6218         * lib/w32spawn.h: Include unistd.h.
6219         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
6220         file descriptor with O_NOINHERIT flag.
6221         (fd_safer_noinherit): New function, based on fd-safer.c.
6222         (dup_safer_noinherit): New function, based on dup-safer.c.
6223         (undup_safer_noinherit): New function.
6224         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
6225         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
6226         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
6227         instead of fd_safer.
6228         * tests/test-pipe.c: Include <windows.h>.
6229         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
6230
6231         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
6232         from main.
6233         (test_pipe): Pass an extra argument for disambiguation.
6234         (main): Invoke parent_main or child_main.
6235
6236         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
6237         consistently.
6238
6239 2009-07-18  Eric Blake  <ebb9@byu.net>
6240
6241         test-pipe: fix mingw build
6242         * tests/test-pipe.c (main): Avoid fcntl on mingw.
6243
6244 2009-07-18  Bruno Haible  <bruno@clisp.org>
6245
6246         * modules/pipe-tests (Makefile.am): Fix typo.
6247
6248 2009-07-18  Eric Blake  <ebb9@byu.net>
6249
6250         error: fix mingw build
6251         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
6252         Reported by Bruno Haible.
6253
6254         error: avoid undefined use of stdout
6255         * lib/error.c (error, error_at_line): Check that fd 1 is open
6256         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
6257         is handling faults and the close_stdout module wants to report the
6258         detection of closed stdout as an error.
6259
6260 2009-07-17  Eric Blake  <ebb9@byu.net>
6261
6262         pipe: be robust in face of closed fds
6263         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
6264         should cause child to misbehave.
6265         * modules/pipe-tests: New module.
6266         * tests/test-pipe.c: New file.
6267         * tests/test-pipe.sh: New file.
6268         Reported by Akim Demaille.
6269
6270 2009-07-14  Bruno Haible  <bruno@clisp.org>
6271
6272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
6273         Reported by anonymous kc.
6274
6275 2009-07-07  Jim Meyering  <meyering@redhat.com>
6276
6277         maint.mk: don't look for translatable strings in *.m4 or *.mk
6278         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
6279         when searching for translatable strings.
6280
6281 2009-07-05  Jim Meyering  <meyering@redhat.com>
6282
6283         remove superfluous parentheses in STREQ definition
6284         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
6285         * lib/getugroups.c (STREQ): Likewise.
6286         * lib/fnmatch.c (STREQ): Likewise.
6287         Spotted by Bruno Haible.
6288
6289 2009-07-04  Jim Meyering  <meyering@redhat.com>
6290
6291         argv-iter: new module
6292         * MODULES.html.sh: Add argv-iter.
6293         * lib/argv-iter.c, lib/argv-iter.h: New files.
6294         * modules/argv-iter: New file.
6295         * modules/argv-iter-tests: New file.
6296         * tests/test-argv-iter.c: Test it.
6297
6298 2009-07-04  Bruno Haible  <bruno@clisp.org>
6299
6300         Fix assertion.
6301         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
6302         contains more exact copies of a given entry than file2, leave the extra
6303         copies unpaired rather than aborting.
6304         Reported by Eric Blake.
6305
6306 2009-07-02  Bruno Haible  <bruno@clisp.org>
6307
6308         Speedup git-merge-changelog for git cherry-pick.
6309         * lib/git-merge-changelog.c (struct entries_mapping): New type.
6310         (entries_mapping_get): New function, extracted from compute_mapping.
6311         (entries_mapping_reverse_get): New function.
6312         (compute_mapping): Add a 'full' argument. Return the result in a
6313         'struct entries_mapping'.
6314         (main): Update. Access the mappings through entries_mapping_get.
6315         Reported by Eric Blake.
6316
6317 2009-07-02  Bruno Haible  <bruno@clisp.org>
6318
6319         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
6320         best_i.
6321
6322 2009-07-02  Bruno Haible  <bruno@clisp.org>
6323
6324         Speed up approximate search for matching ChangeLog entries.
6325         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
6326         argument. Call fstrcmp_bounded instead of fstrcmp.
6327         (compute_mapping, try_split_merged_entry, main): Update callers.
6328
6329 2009-07-02  Bruno Haible  <bruno@clisp.org>
6330
6331         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
6332
6333 2009-06-30  Bruno Haible  <bruno@clisp.org>
6334
6335         Reduce the number of uc_is_cased calls.
6336         * lib/unicase.h (casing_suffix_context_t): Add
6337         'first_char_except_ignorable' field.
6338         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
6339         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
6340         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
6341         Update initializer.
6342         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
6343         case-ignorable characters.
6344         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
6345         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
6346         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
6347         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
6348         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
6349
6350 2009-06-30  Bruno Haible  <bruno@clisp.org>
6351
6352         Tests for module 'unicase/ignorable'.
6353         * modules/unicase/ignorable-tests: New file.
6354         * tests/unicase/test-ignorable.c: New file, generated by
6355         gen-uni-tables.
6356
6357         Tests for module 'unicase/cased'.
6358         * modules/unicase/cased-tests: New file.
6359         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
6360         * tests/unicase/test-predicate-part1.h: New file, derived from
6361         tests/unictype/test-predicate-part1.h.
6362         * tests/unicase/test-predicate-part2.h: New file, same as
6363         tests/unictype/test-predicate-part2.h.
6364
6365         Fix evaluation of "Before C" condition of FINAL_SIGMA.
6366         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
6367         (output_casing_properties): New function.
6368         (main): Call it.
6369         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
6370         * lib/unicase/cased.c: Include unictype/bitmap.h.
6371         (uc_is_cased): Define through a bitmap lookup.
6372         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
6373         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
6374         (uc_is_case_ignorable): Define through a bitmap lookup.
6375         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
6376         lib/unictype/bitmap.h.
6377         (Depends-on): Add inline. Clean up.
6378         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
6379         lib/unictype/bitmap.h.
6380         (Depends-on): Add inline. Clean up.
6381         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
6382         recognition.
6383         * tests/unicase/test-u16-tolower.c (main): Likewise.
6384         * tests/unicase/test-u32-tolower.c (main): Likewise.
6385
6386 2009-06-30  Bruno Haible  <bruno@clisp.org>
6387
6388         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
6389         * lib/unicase/u16-casemap.c: Likewise.
6390         * lib/unicase/u32-casemap.c: Likewise.
6391
6392 2009-06-29  Bruno Haible  <bruno@clisp.org>
6393
6394         Define u32_casefold as a wrapper around u32_ct_casefold.
6395         * lib/unicase/u32-casefold.c: Update.
6396         * modules/unicase/u32-casefold (Depends-on): Add
6397         unicase/u32-ct-casefold, unicase/empty-prefix-context,
6398         unicase/empty-suffix-context. Clean up.
6399
6400         Define u16_casefold as a wrapper around u16_ct_casefold.
6401         * lib/unicase/u16-casefold.c: Update.
6402         * modules/unicase/u16-casefold (Depends-on): Add
6403         unicase/u16-ct-casefold, unicase/empty-prefix-context,
6404         unicase/empty-suffix-context. Clean up.
6405
6406         Define u8_casefold as a wrapper around u8_ct_casefold.
6407         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
6408         * lib/unicase/u8-casefold.c: Update.
6409         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
6410         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6411
6412         Define u32_totitle as a wrapper around u32_ct_totitle.
6413         * lib/unicase/u32-totitle.c: Update.
6414         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
6415         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6416
6417         Define u16_totitle as a wrapper around u16_ct_totitle.
6418         * lib/unicase/u16-totitle.c: Update.
6419         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
6420         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6421
6422         Define u8_totitle as a wrapper around u8_ct_totitle.
6423         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
6424         functions.
6425         (FUNC): Delegate to U_CT_TOTITLE.
6426         * lib/unicase/u8-totitle.c: Update.
6427         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
6428         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6429
6430         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
6431         invocation.
6432         * modules/unicase/u32-tolower (Depends-on): Add
6433         unicase/empty-prefix-context, unicase/empty-suffix-context.
6434
6435         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
6436         invocation.
6437         * modules/unicase/u16-tolower (Depends-on): Add
6438         unicase/empty-prefix-context, unicase/empty-suffix-context.
6439
6440         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
6441         * modules/unicase/u8-tolower (Depends-on): Add
6442         unicase/empty-prefix-context, unicase/empty-suffix-context.
6443
6444         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
6445         invocation.
6446         * modules/unicase/u32-toupper (Depends-on): Add
6447         unicase/empty-prefix-context, unicase/empty-suffix-context.
6448
6449         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
6450         invocation.
6451         * modules/unicase/u16-toupper (Depends-on): Add
6452         unicase/empty-prefix-context, unicase/empty-suffix-context.
6453
6454         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
6455         * modules/unicase/u8-toupper (Depends-on): Add
6456         unicase/empty-prefix-context, unicase/empty-suffix-context.
6457
6458         New module 'unicase/u32-ct-casefold'.
6459         * lib/unicase/u32-ct-casefold.c: New file.
6460         * modules/unicase/u32-ct-casefold: New file.
6461
6462         New module 'unicase/u16-ct-casefold'.
6463         * lib/unicase/u16-ct-casefold.c: New file.
6464         * modules/unicase/u16-ct-casefold: New file.
6465
6466         New module 'unicase/u8-ct-casefold'.
6467         * lib/unicase/u8-ct-casefold.c: New file.
6468         * lib/unicase/u-ct-casefold.h: New file, derived from
6469         lib/unicase/u-casefold.h.
6470         * modules/unicase/u8-ct-casefold: New file.
6471
6472         New module 'unicase/u32-ct-totitle'.
6473         * lib/unicase/u32-ct-totitle.c: New file.
6474         * modules/unicase/u32-ct-totitle: New file.
6475
6476         New module 'unicase/u16-ct-totitle'.
6477         * lib/unicase/u16-ct-totitle.c: New file.
6478         * modules/unicase/u16-ct-totitle: New file.
6479
6480         New module 'unicase/u8-ct-totitle'.
6481         * lib/unicase/u8-ct-totitle.c: New file.
6482         * lib/unicase/u-ct-totitle.h: New file, derived from
6483         lib/unicase/u-totitle.h.
6484         * modules/unicase/u8-ct-totitle: New file.
6485
6486         New module 'unicase/u32-ct-tolower'.
6487         * lib/unicase/u32-ct-tolower.c: New file.
6488         * modules/unicase/u32-ct-tolower: New file.
6489
6490         New module 'unicase/u16-ct-tolower'.
6491         * lib/unicase/u16-ct-tolower.c: New file.
6492         * modules/unicase/u16-ct-tolower: New file.
6493
6494         New module 'unicase/u8-ct-tolower'.
6495         * lib/unicase/u8-ct-tolower.c: New file.
6496         * modules/unicase/u8-ct-tolower: New file.
6497
6498         New module 'unicase/u32-ct-toupper'.
6499         * lib/unicase/u32-ct-toupper.c: New file.
6500         * modules/unicase/u32-ct-toupper: New file.
6501
6502         New module 'unicase/u16-ct-toupper'.
6503         * lib/unicase/u16-ct-toupper.c: New file.
6504         * modules/unicase/u16-ct-toupper: New file.
6505
6506         New module 'unicase/u8-ct-toupper'.
6507         * lib/unicase/u8-ct-toupper.c: New file.
6508         * modules/unicase/u8-ct-toupper: New file.
6509
6510         Add context arguments to u*_casemap functions.
6511         * lib/unicase/unicasemap.h: Include unicase.h.
6512         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
6513         suffix_context arguments.
6514         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
6515         functions.
6516         (FUNC): Add prefix_context and suffix_context arguments. Use
6517         uc_is_cased and uc_is_case_ignorable.
6518         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
6519         * lib/unicase/u16-casemap.c: Likewise.
6520         * lib/unicase/u32-casemap.c: Likewise.
6521         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
6522         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6523         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
6524         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6525         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
6526         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6527
6528         New module 'unicase/u32-suffix-context'.
6529         * lib/unicase/u32-suffix-context.c: New file.
6530         * modules/unicase/u32-suffix-context: New file.
6531
6532         New module 'unicase/u16-suffix-context'.
6533         * lib/unicase/u16-suffix-context.c: New file.
6534         * modules/unicase/u16-suffix-context: New file.
6535
6536         New module 'unicase/u8-suffix-context'.
6537         * lib/unicase/u8-suffix-context.c: New file.
6538         * lib/unicase/u-suffix-context.h: New file.
6539         * modules/unicase/u8-suffix-context: New file.
6540
6541         New module 'unicase/empty-suffix-context'.
6542         * lib/unicase/empty-suffix-context.c: New file.
6543         * modules/unicase/empty-suffix-context: New file.
6544
6545         New module 'unicase/u32-prefix-context'.
6546         * lib/unicase/u32-prefix-context.c: New file.
6547         * modules/unicase/u32-prefix-context: New file.
6548
6549         New module 'unicase/u16-prefix-context'.
6550         * lib/unicase/u16-prefix-context.c: New file.
6551         * modules/unicase/u16-prefix-context: New file.
6552
6553         New module 'unicase/u8-prefix-context'.
6554         * lib/unicase/u8-prefix-context.c: New file.
6555         * lib/unicase/u-prefix-context.h: New file.
6556         * lib/unicase/context.h: New file.
6557         * modules/unicase/u8-prefix-context: New file.
6558
6559         New module 'unicase/empty-prefix-context'.
6560         * lib/unicase/empty-prefix-context.c: New file.
6561         * modules/unicase/empty-prefix-context: New file.
6562
6563         New module 'unicase/ignorable'.
6564         * lib/unicase/ignorable.c: New file.
6565         * modules/unicase/ignorable: New file.
6566
6567         New module 'unicase/cased'.
6568         * lib/unicase/caseprop.h: New file.
6569         * lib/unicase/cased.c: New file.
6570         * modules/unicase/cased: New file.
6571
6572         New functions for case mapping of substrings.
6573         * lib/unicase.h (casing_prefix_context_t): New type.
6574         (unicase_empty_prefix_context): New variable.
6575         (u8_casing_prefix_context, u16_casing_prefix_context,
6576         u32_casing_prefix_context, u8_casing_prefixes_context,
6577         u16_casing_prefixes_context, u32_casing_prefixes_context): New
6578         declarations.
6579         (casing_suffix_context_t): New type.
6580         (unicase_empty_suffix_context): New variable.
6581         (u8_casing_suffix_context, u16_casing_suffix_context,
6582         u32_casing_suffix_context, u8_casing_suffixes_context,
6583         u16_casing_suffixes_context, u32_casing_suffixes_context,
6584         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6585         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6586         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
6587         declarations.
6588
6589 2009-06-28  Jim Meyering  <meyering@redhat.com>
6590
6591         boostrap: indent only with spaces
6592         * build-aux/bootstrap: Indent only with spaces, never TABs.
6593
6594         bootstrap: split long lines
6595         * build-aux/bootstrap: Keep line length < 80.
6596
6597         bootstrap: sync from coreutils
6598         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
6599         just as autoreconf does.  Verify a list of prerequisite
6600         package-name,version-number pairs if defined in bootstrap.conf.
6601         Refer to README-prereq, if prerequisites are not satisfied.
6602
6603 2009-06-27  Eric Blake  <ebb9@byu.net>
6604
6605         tests: add test for bogus NULL definition
6606         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
6607         * tests/test-stdlib.c: Likewise.
6608         * tests/test-string.c: Likewise.
6609         * tests/test-locale.c: Likewise.
6610         * tests/test-unistd.c: Likewise.
6611         * modules/stdio-tests (Depends-on): Add verify.
6612         * modules/stdlib-tests (Depends-on): Likewise.
6613         * modules/string-tests (Depends-on): Likewise.
6614         * modules/locale-tests (Depends-on): Likewise.
6615         * modules/unistd-tests (Depends-on): Likewise.
6616
6617 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6618
6619         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
6620         self-explaining comment.
6621         * m4/selinux-selinux-h: Update serial.
6622         (gl_LIBSELINUX): New macro, adding a warning for missing development
6623         packages to code extracted from...
6624         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
6625         Add warning for missing development packages here, too.
6626
6627 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
6628
6629         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
6630
6631 2009-06-25  Eric Blake  <ebb9@byu.net>
6632
6633         version-etc: fix regression
6634         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
6635         gcc.
6636         (version_etc): Use it, to catch bugs with trailing NULL.
6637         * lib/version-etc.c (version_etc_arn): Delete unused argument.
6638         (version_etc_va): Fix logic bug.
6639         * modules/version-etc-tests: Add test.
6640         * tests/test-version-etc.c: New file.
6641         * tests/test-version-etc.sh: Likewise.
6642
6643 2009-06-25  Sam Steingold  <sds@gnu.org>
6644
6645         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
6646         mbtowc declaration.
6647
6648 2009-06-25  Eric Blake  <ebb9@byu.net>
6649
6650         fpurge: migrate into <stdio.h>
6651         * lib/fpurge.h: Delete...
6652         * lib/stdio.in.h (fpurge): ...and declare here, instead.
6653         * lib/fpurge.c (fpurge): Change declaring header.
6654         * modules/fpurge (Files): Drop deleted file.
6655         (Depends-on): Add stdio.
6656         (configure.ac): Set witness.
6657         * modules/stdio (Makefile.am): Support fpurge macros.
6658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6659         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
6660         * lib/fflush.c: Update client.
6661         * tests/test-fpurge.c: Likewise.
6662         * NEWS: Mention the change.
6663
6664 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6665
6666         * lib/argp-version-etc.c (program_authors): Add const
6667         qualifier.
6668         * lib/version-etc.c: Fix typos in the comments.
6669         * modules/argp-version-etc: Depends on version-etc.
6670
6671 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6672
6673         argp-version-etc: new module.
6674
6675         * lib/argp-version-etc.c: New file.
6676         * lib/argp-version-etc.h: New file.
6677         * modules/argp-version-etc: New file.
6678         * modules/argp-version-etc-tests: New file.
6679         * tests/test-argp-version-etc.c: New test.
6680         * tests/test-argp-version-etc-1.sh: New test.
6681
6682 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
6683
6684         Provide additional interfaces and documentation for version-etc
6685         module.
6686
6687         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
6688         interfaces.
6689         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
6690         prototypes.
6691
6692 2009-06-24  Bruno Haible  <bruno@clisp.org>
6693
6694         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
6695         HAVE_LIB${NAME} macro.
6696         Reported by Sam Steingold <sds@gnu.org>.
6697
6698 2009-06-23  Simon Josefsson  <simon@josefsson.org>
6699
6700         * modules/hash-tests (test_hash_LDADD): Link to libintl when
6701         needed.
6702
6703 2009-06-21  Bruno Haible  <bruno@clisp.org>
6704
6705         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
6706         work.
6707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
6708         together with LIB${NAME}, LTLIB${NAME}.
6709         Reported by Sam Steingold <sds@gnu.org>.
6710
6711 2009-06-20  Jim Meyering  <meyering@redhat.com>
6712
6713         tests: make sc_require_test_exit_idiom more generic
6714         * top/maint.mk (Exit_witness_file): New overridable variable.
6715         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
6716         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
6717
6718 2009-06-19  Jim Meyering  <meyering@redhat.com>
6719
6720         hash: reverse order of src/dst parameters in an internal interface
6721         * lib/hash.c (transfer_entries): Reverse order of parameters to
6722         put DST before SRC.  Adjust callers.
6723
6724         tests: test-hash: avoid wholesale duplication
6725         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
6726         Instead, use a loop and add a single conditional.
6727
6728         tests: test-hash: allow seed selection via a command line argument
6729         * tests/test-hash.c (get_seed): New function.
6730         (main): Use it.
6731
6732 2009-06-19  Eric Blake  <ebb9@byu.net>
6733
6734         hash: avoid memory leak on allocation failure
6735         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
6736         failure.  Factor repeated algorithm...
6737         (transfer_entries): ...into new helper routine.
6738         (hash_delete): React to hash_rehash return value.
6739
6740         hash: reduce memory pressure in hash_rehash no-op case
6741         * lib/hash.c (next_prime): Avoid overflow.
6742         (hash_initialize): Factor bucket size computation...
6743         (compute_bucket_size): ...into new helper function.
6744         (hash_rehash): Use new function and open coding to reduce memory
6745         pressure, and avoid a memory leak in USE_OBSTACK code.
6746         Reported by Jim Meyering.
6747
6748 2009-06-18  Eric Blake  <ebb9@byu.net>
6749
6750         hash: make rotation more obvious
6751         * modules/hash (Depends-on): Add bitrotate and stdint.
6752         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
6753         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
6754         (SIZE_MAX): Rely on headers for definition.
6755         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
6756         (raw_hasher): Use rotr_sz.
6757         Suggested by Jim Meyering.
6758
6759         hash: fix memory leak in last patch
6760         * lib/hash.c (hash_rehash): Avoid memory leak.
6761
6762         hash: avoid no-op rehashing
6763         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
6764
6765         hash: provide default callback functions
6766         * lib/hash.c (raw_hasher, raw_comparator): New functions.
6767         (hash_initialize): Use them as defaults.
6768         * tests/test-hash.c (main): Test this.
6769
6770         hash: minor optimization
6771         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
6772         when possible.
6773         (hash_initialize): Document this promise.
6774         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
6775         * tests/test-hash.c (hash_compare_strings): Test this.
6776
6777 2009-06-18  Bruno Haible  <bruno@clisp.org>
6778
6779         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
6780         going to be replaced anyway.
6781
6782 2009-06-18  Bruno Haible  <bruno@clisp.org>
6783
6784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
6785         in one place.
6786         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
6787         be replaced anyway.
6788
6789 2009-06-18  Eric Blake  <ebb9@byu.net>
6790
6791         hash: check for resize before insertion
6792         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
6793         threshold before insertion, so that a pathological hash_rehash
6794         that fills every bucket can still trigger another rehash.
6795
6796 2009-06-18  Jim Meyering  <meyering@redhat.com>
6797
6798         hash-tests: add a loop around the small tests
6799         * tests/test-hash.c (main): Repeat small tests with selected
6800         small initial table sizes.
6801
6802 2009-06-17  Eric Blake  <ebb9@byu.net>
6803
6804         hash: minor cleanups
6805         * lib/hash.h (hash_entry): Make opaque, by moving...
6806         * lib/hash.c (hash_entry): ...here.
6807         (hash_insert): Clarify restrictions on what can be inserted.
6808         (hash_get_next): Clarify when it is safe to remove an element
6809         during traversal.
6810         (check_tuning): Skip verification when tuning is known safe.
6811         (hash_initialize): Clarify restrictions on tuning.
6812
6813 2009-06-17  Jim Meyering  <jim@meyering.net>
6814         and Eric Blake  <ebb9@byu.net>
6815
6816         hash-tests: new module
6817         * modules/hash-tests: New file.
6818         * tests/test-hash.c: New file.
6819
6820 2009-06-17  Eric Blake  <ebb9@byu.net>
6821
6822         strstr-simple: document new module
6823         * MODULES.html.sh: Document new module.
6824
6825         strstr, strcasestr: replace on platforms with broken memchr
6826         * modules/strstr: Split into...
6827         * modules/strstr-simple: ...new module that does not care about
6828         performance, but does care about glibc bug.
6829         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
6830         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
6831         if platform memchr is broken, per Debian bug 521737.
6832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
6833         memchr.
6834         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
6835         * doc/posix-functions/strstr.texi (strstr): Document the fix.
6836         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
6837         * modules/mountlist (Depends-on): Add strstr-simple.
6838         * modules/gen-uni-tables (Depends-on): Likewise.
6839         * modules/argz (Depends-on): Add strstr.
6840
6841 2009-06-17  Bruno Haible  <bruno@clisp.org>
6842
6843         * modules/posix_spawn-internal (Depends-on): Add errno.
6844
6845 2009-06-17  Bruno Haible  <bruno@clisp.org>
6846
6847         Define missing ESTALE on Interix 3.5.
6848         * lib/errno.in.h (ESTALE): Assign a value if missing.
6849         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
6850         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
6851         missing.
6852         * doc/posix-headers/errno.texi: Mention the Interix bug.
6853         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
6854
6855 2009-06-15  Eric Blake  <ebb9@byu.net>
6856
6857         memchr, memchr2: add valgrind exception
6858         * lib/memchr.valgrind: New file.
6859         * lib/memchr2.valgrind: New file.
6860         * modules/memchr (Files): Distribute valgrind file.
6861         * modules/memchr2 (Files): Likewise.
6862
6863         docs: memchr is no longer obsolete
6864         * MODULES.html.sh: Move memchr from obsolete to string.h section.
6865         * lib/string.in.h (memchr): Simplify logic.
6866
6867 2009-06-14  Jim Meyering  <meyering@redhat.com>
6868
6869         link-follow: fix the "checking..." message to not mention trailing slash
6870         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
6871         never considered trailing slashes.
6872
6873 2009-06-14  Bruno Haible  <bruno@clisp.org>
6874
6875         * m4/memchr.m4: Mention also the bug on IA-64.
6876         * doc/posix-functions/memchr.texi: Likewise.
6877
6878 2009-06-12  Eric Blake  <ebb9@byu.net>
6879
6880         memchr: detect broken x86_64 and alpha implementations
6881         * modules/memchr-tests (Depends-on): Move mmap detection...
6882         * modules/memchr (Depends-on): ...here.
6883         (configure.ac): Set indicator.
6884         * lib/string.in.h (memchr): Declare replacement.
6885         * modules/string (Makefile.am): Trigger replacement.
6886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
6887         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
6888         bugs.
6889         * doc/posix-functions/memchr.texi (memchr): Document the bug.
6890         * modules/getpagesize (License): Relax license.
6891
6892 2009-06-11  Bruno Haible  <bruno@clisp.org>
6893
6894         * lib/idpriv.h: Add more references.
6895
6896 2009-06-08  Bruno Haible  <bruno@clisp.org>
6897
6898         Tests for module 'idpriv-droptemp'.
6899         * modules/idpriv-droptemp-tests: New file.
6900         * tests/test-idpriv-droptemp.sh: New file.
6901         * tests/test-idpriv-droptemp.su.sh: New file.
6902         * tests/test-idpriv-droptemp.c: New file.
6903
6904         New module 'idpriv-droptemp'.
6905         * lib/idpriv-droptemp.c: New file.
6906         * modules/idpriv-droptemp: New file.
6907
6908 2009-06-08  Bruno Haible  <bruno@clisp.org>
6909
6910         Tests for module 'idpriv-drop'.
6911         * modules/idpriv-drop-tests: New file.
6912         * tests/test-idpriv-drop.sh: New file.
6913         * tests/test-idpriv-drop.su.sh: New file.
6914         * tests/test-idpriv-drop.c: New file.
6915
6916         New module 'idpriv-drop'.
6917         * lib/idpriv.h: New file.
6918         * lib-idpriv-drop.c: New file.
6919         * m4/idpriv.m4: New file.
6920         * modules/idpriv-drop: New file.
6921
6922 2009-06-08  Bruno Haible  <bruno@clisp.org>
6923
6924         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
6925         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6926         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6927         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6928         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6931
6932 2009-06-08  Eric Blake  <ebb9@byu.net>
6933
6934         test-strstr: use memory fence, when possible
6935         * tests/test-strstr.c (main): Use memory fence, in order to be
6936         more likely to trigger Debian bug 521737.
6937         * modules/strstr-tests (Files): Pull in additional files.
6938
6939         memchr: no longer obsolete, for wider field testing
6940         * modules/memchr (Status, Notice): Delete, this module is no
6941         longer obsolete.
6942         * modules/vasnprintf (Depends-on): Add memchr.
6943
6944 2009-06-07  Jim Meyering  <meyering@redhat.com>
6945
6946         hash: declare some functions with the warn_unused_result attribute
6947         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
6948
6949 2009-06-07  Bruno Haible  <bruno@clisp.org>
6950
6951         * tests/test-alignof.c: Don't test int64_t if it does not exist.
6952         Reported by Eric Blake.
6953
6954 2009-06-06  Eric Blake  <ebb9@byu.net>
6955
6956         test-alignof: fix typo with long double
6957         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
6958         compiler error.
6959
6960 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
6961
6962         Escape non-texinfo { and }s.
6963         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
6964         markup error.
6965
6966 2009-06-04  Jim Meyering  <meyering@redhat.com>
6967
6968         gitlog-to-changelog: don't infloop on an empty commit log
6969         * build-aux/gitlog-to-changelog: Warn about an empty log message.
6970         Reported by Boris Petersen <transacid@centerim.org>.
6971
6972 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
6973
6974         version-etc: extend for packagers
6975         Add three new configure options, intended for packagers:
6976           --with-packager="packager name"
6977           --with-packager-version="packager-specific version"
6978           --with-packager-bug-reports="packager bug reporting"
6979         An example with coreutils:
6980           $ ./configure \
6981             --with-packager=Gentoo \
6982             --with-packager-bug-report=http://bugs.gentoo.org/ \
6983             --with-packager-version="patchset 1.6"
6984           $ ./src/ls --version | head -n3
6985           ls (GNU coreutils) 7.1-dirty
6986           Packaged by Gentoo (patchset 1.6)
6987           Copyright (C) 2009 Free Software Foundation, Inc.
6988         Note that the bug reporting info via --help doesn't show up because
6989         coreutils uses its own custom emit_bug_reporting_address() implementation
6990         in src/system.h.  If it didn't, it'd look like:
6991           $ ./src/ls --help | tail -n4
6992           Report bugs to <bug-coreutils@gnu.org>.
6993           Report Gentoo bugs to <http://bugs.gentoo.org/>.
6994           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
6995           General help using GNU software: <http://www.gnu.org/gethelp/>.
6996         * lib/version-etc.c: Print new information, if provided.
6997         * m4/version-etc.m4: New file.
6998         * modules/version-etc (Files): Add m4/version-etc.m4.
6999         (configure.ac): Add gl_VERSION_ETC.
7000
7001 2009-05-31  Bruno Haible  <bruno@clisp.org>
7002
7003         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
7004         and 'int64_t'.
7005         * modules/alignof-tests (Dependencies): Add stdint.
7006         Reported by Eric Blake.
7007
7008 2009-05-31  Bruno Haible  <bruno@clisp.org>
7009
7010         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
7011         restriction due to compiler bugs.
7012         Reported by Eric Blake.
7013
7014 2009-05-31  Simon Josefsson  <simon@josefsson.org>
7015             Bruno Haible  <bruno@clisp.org>
7016
7017         Fix test-alignof failure.
7018         * lib/alignof.h (alignof_slot): New macro.
7019         (alignof_type): New macro, with the same semantics as the previous
7020         'alignof'.
7021         (alignof): Alias to alignof_slot.
7022         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
7023         check that the results are usable as constant expressions.
7024
7025 2009-05-31  Bruno Haible  <bruno@clisp.org>
7026
7027         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
7028         * tests/test-memchr.c (main): Check that memchr does not read past the
7029         first occurrence of the byte.
7030         * tests/test-strstr.c (main): Update comment.
7031         Suggested by Eric Blake.
7032
7033 2009-05-30  Bruno Haible  <bruno@clisp.org>
7034
7035         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
7036         detail how to use dumpbin.
7037         Reported by David Byron <dbyron@dbyron.com>.
7038
7039 2009-06-02  Simon Josefsson  <simon@josefsson.org>
7040
7041         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
7042
7043 2009-06-02  Simon Josefsson  <simon@josefsson.org>
7044
7045         * m4/manywarnings.m4: Add GCC 4.4 warnings.
7046
7047 2009-05-28  Bruno Haible  <bruno@clisp.org>
7048
7049         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
7050         build-aux/ files.
7051
7052 2009-05-28  Simon Josefsson  <simon@josefsson.org>
7053
7054         * gnulib-tool (func_import): Transform license on build-aux/ files too.
7055
7056 2009-05-27  Simon Josefsson  <simon@josefsson.org>
7057
7058         * gnulib-tool (sed_transform_main_lib_file)
7059         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
7060         regexps.
7061
7062 2009-05-26  Simon Josefsson  <simon@josefsson.org>
7063
7064         * tests/test-strstr.c: Add another self-test.
7065         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
7066         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
7067
7068 2009-05-23  Bruno Haible  <bruno@clisp.org>
7069
7070         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
7071         change.
7072
7073 2009-05-21  Bruno Haible  <bruno@clisp.org>
7074
7075         Simplify use of mode_t varargs.
7076         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
7077         uses 'mode_t' or 'int'.
7078         * lib/openat.c (openat): Likewise.
7079         * lib/open-safer.c (open_safer): Likewise.
7080         * m4/mode_t.m4: New file.
7081         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
7082         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
7083         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
7084         * modules/open (Files): Add m4/mode_t.m4.
7085         * modules/openat (Files): Likewise.
7086         * modules/fcntl-safer (Files): Likewise.
7087         Suggested by Eric Blake.
7088
7089 2009-05-21  Pádraig Brady  <P@draigbrady.com>
7090
7091         * doc/glibc-functions/fallocate.texi: New file.
7092         * doc/gnulib.texi: Include it.
7093
7094 2009-05-21  Eric Blake  <ebb9@byu.net>
7095             Bruno Haible  <bruno@clisp.org>
7096
7097         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
7098         invocations.
7099         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7100
7101 2009-05-21  Eric Blake  <ebb9@byu.net>
7102             Bruno Haible  <bruno@clisp.org>
7103
7104         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
7105         include_next. Fix of 2008-11-20 commit.
7106         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
7107         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
7108         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
7109         NEXT_MATH_H.
7110         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
7111         instead of NEXT_MATH_H.
7112
7113 2009-05-21  Bruno Haible  <bruno@clisp.org>
7114
7115         Avoid redefinition warnings for SIZE_MAX.
7116         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
7117         Reported by Simon Josefsson.
7118
7119 2009-05-21  Bruno Haible  <bruno@clisp.org>
7120
7121         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
7122         AC_CACHE_VAL.
7123
7124 2009-05-20  Bruno Haible  <bruno@clisp.org>
7125
7126         Make zeroptr.h work on mingw.
7127         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
7128         mprotect.
7129         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
7130         * modules/memchr2-tests (configure.ac): Likewise.
7131         * modules/memcmp-tests (configure.ac): Likewise.
7132         * modules/memmem-tests (configure.ac): Likewise.
7133         * modules/memrchr-tests (configure.ac): Likewise.
7134         Reported by Simon Josefsson.
7135
7136 2009-05-20  Simon Josefsson  <simon@josefsson.org>
7137
7138         * tests/test-glob.c: Include string.h for strcmp prototype.
7139
7140 2009-05-20  Simon Josefsson  <simon@josefsson.org>
7141
7142         * modules/getdelim (Depends-on): Add explicit stdint, although it
7143         was implicitly already pulled in via realloc-posix.
7144         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
7145
7146 2009-05-20  Simon Josefsson  <simon@josefsson.org>
7147
7148         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
7149         G. Christensen" <tgc@jupiterrise.com>.
7150         * m4/sys_socket_h.m4: Check for sa_family_t.
7151         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
7152         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
7153         * tests/test-sys_socket.c: Check that sa_family_t works.
7154
7155 2009-05-18  Eric Blake  <ebb9@byu.net>
7156
7157         maint.mk: allow gnulib_dir in VPATH build
7158         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
7159
7160 2009-05-15  Jim Meyering  <meyering@redhat.com>
7161
7162         maint.mk: Give gnulib_dir a default definition.
7163         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
7164         Thus, most packages no longer need to specify this variable in cfg.mk
7165
7166 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
7167
7168         rename.m4: fix typos that would make non-mingw cross-configure fail
7169         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
7170
7171 2009-05-13  Eric Blake  <ebb9@byu.net>
7172
7173         mmap-anon: avoid out-of-order autoconf expansion
7174         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
7175         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
7176         * modules/memchr-tests (Depends-on): Add extensions.
7177         * modules/memchr2-tests (Depends-on): Add extensions.
7178         * modules/memcmp-tests (Depends-on): Add extensions.
7179         * modules/memmem-tests (Depends-on): Add extensions.
7180         * modules/memrchr-tests (Depends-on): Add extensions.
7181
7182 2009-05-13  Bruno Haible  <bruno@clisp.org>
7183
7184         Make some tests ISO C 99 compliant.
7185         * tests/zerosize-ptr.h: New file.
7186         * tests/test-memchr.c: Include zerosize-ptr.h.
7187         (main): Use a zero-size object pointer instead of NULL.
7188         * tests/test-memchr2.c: Include zerosize-ptr.h.
7189         (main): Use a zero-size object pointer instead of NULL.
7190         * tests/test-memcmp.c: Include zerosize-ptr.h.
7191         (main): Use a zero-size object pointer instead of NULL.
7192         * tests/test-memmem.c: Include zerosize-ptr.h.
7193         (main): Use a zero-size object pointer instead of NULL.
7194         * tests/test-memrchr.c: Include zerosize-ptr.h.
7195         (main): Use a zero-size object pointer instead of NULL.
7196         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
7197         m4/mmap-anon.m4.
7198         (Depends-on): Add getpagesize.
7199         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7200         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
7201         m4/mmap-anon.m4.
7202         (Depends-on): Add getpagesize.
7203         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7204         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
7205         m4/mmap-anon.m4.
7206         (Depends-on): Add getpagesize.
7207         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7208         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
7209         m4/mmap-anon.m4.
7210         (Depends-on): Add getpagesize.
7211         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7212         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
7213         m4/mmap-anon.m4.
7214         (Depends-on): Add getpagesize.
7215         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7216
7217 2009-05-12  Bruno Haible  <bruno@clisp.org>
7218
7219         Tests for module 'alignof'.
7220         * modules/alignof-tests: New file.
7221         * tests/test-alignof.c: New file.
7222
7223 2009-05-12  Bruno Haible  <bruno@clisp.org>
7224
7225         Fix alignof macro.
7226         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
7227         vendor compilers that are always correct.
7228
7229 2009-05-12  Bruno Haible  <bruno@clisp.org>
7230
7231         Make the MAP_ANONYMOUS detection work on HP-UX 11.
7232         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
7233         not whether its fully works.
7234
7235 2009-05-12  Bruno Haible  <bruno@clisp.org>
7236
7237         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
7238
7239 2009-05-12  Jim Meyering  <meyering@redhat.com>
7240
7241         * top/maint.mk: Adjust backslash alignment.
7242
7243 2009-05-11  Simon Josefsson  <simon@josefsson.org>
7244
7245         * top/maint.mk: Make $(srcdir)/build-aux configurable.
7246
7247 2009-05-11  Eric Blake  <ebb9@byu.net>
7248
7249         argp: avoid undefined behavior
7250         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
7251         macros.
7252
7253 2009-05-08  Simon Josefsson  <simon@josefsson.org>
7254
7255         * tests/test-vc-list-files-git.sh: Do git config of user.email and
7256         user.name to prevent git commit from complaining.
7257
7258 2009-05-10  Bruno Haible  <bruno@clisp.org>
7259
7260         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
7261         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
7262         it rewrites every file name only once.
7263         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
7264
7265 2009-05-08  Bruno Haible  <bruno@clisp.org>
7266
7267         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
7268         instead of 'max'.
7269
7270 2009-05-08  Simon Josefsson  <simon@josefsson.org>
7271
7272         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
7273         sockaddr_storage test.
7274
7275 2009-05-07  Simon Josefsson  <simon@josefsson.org>
7276
7277         * modules/sys_socket (Makefile.am): Substitute
7278         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
7279         * m4/sys_socket_h.m4: Check for sockaddr_storage.
7280         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
7281         * tests/test-sys_socket.c: Check sockaddr_storage.
7282
7283 2009-05-08  Bruno Haible  <bruno@clisp.org>
7284
7285         New module 'alignof'.
7286         * lib/alignof.h: New file.
7287         * modules/alignof: New file.
7288
7289 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7290             Bruno Haible  <bruno@clisp.org>
7291
7292         Fix test-file-has-acl on FreeBSD.
7293         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
7294         mask is implicitly added.
7295         * tests/test-file-has-acl.c: Include <signal.h>.
7296         (main): Terminate the test after 5 seconds.
7297         * modules/acl-tests (configure.ac): Check for alarm function.
7298
7299 2009-05-04  Bruno Haible  <bruno@clisp.org>
7300
7301         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
7302         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
7303         * modules/errno (configure.ac): Drop AC_REQUIRE.
7304         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
7305         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
7306
7307 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7308
7309         * modules/glob-tests: New module.
7310         * tests/test-glob.c: Add.
7311
7312 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7313
7314         * modules/fnmatch-tests: New module.
7315         * tests/test-fnmatch.c: Add.
7316
7317 2009-05-04  Eric Blake  <ebb9@byu.net>
7318
7319         maint: make the new no-submodule-changes rule VPATH-safe
7320         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
7321
7322 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7323             Bruno Haible  <bruno@clisp.org>
7324
7325         acl: Fix infinite loop on FreeBSD.
7326         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
7327         of return value from acl_get_entry.
7328         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
7329         Likewise.
7330
7331 2009-05-03  Bruno Haible  <bruno@clisp.org>
7332
7333         * lib/acl-internal.h (acl_entries): Clarify return value.
7334         * lib/acl_entries.c (acl_entries): Likewise.
7335
7336 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7337
7338         Bug fix in acl module.
7339         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
7340
7341 2009-05-03  Bruno Haible  <bruno@clisp.org>
7342
7343         Create gperf-generated file in the source dir, not in the build dir.
7344         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
7345         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
7346         * modules/unicase/locale-language (unicase/locale-languages.h):
7347         Likewise.
7348         * modules/unicase/special-casing (unicase/special-casing-table.h):
7349         Likewise.
7350         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
7351         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
7352         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
7353         Reported by Ralf Wildenhues.
7354
7355 2009-05-03  Bruno Haible  <bruno@clisp.org>
7356
7357         * modules/fnmatch (Description, configure.ac): Taken from
7358         fnmatch-posix.
7359         * modules/fnmatch-posix: Turn into a symbolic reference to the
7360         'fnmatch' module, and deprecate.
7361         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
7362
7363 2009-05-03  Bruno Haible  <bruno@clisp.org>
7364
7365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
7366         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
7367         Reported by Ralf Wildenhues.
7368
7369 2009-05-04  Simon Josefsson  <simon@josefsson.org>
7370
7371         * m4/fnmatch.m4: Fix fnmatch re-define.
7372
7373 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
7374
7375         priv-set: new module and tests; adapt write-any-file
7376         * lib/priv-set.c: New file.
7377         * lib/priv-set.h: New file.
7378         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
7379         * lib/write-any-file.c: Simplify by using priv-set module.
7380         * m4/priv-set.m4: New file.
7381         * modules/priv-set: New file.
7382         * modules/unlinkdir: Add dependency on priv-set module.
7383         * modules/write-any-file: Likewise.
7384
7385         Tests for module 'priv-set'.
7386         * modules/priv-set-tests: New file.
7387         * tests/test-priv-set.c: New file.
7388
7389 2009-05-03  Jim Meyering  <meyering@redhat.com>
7390             Bruno Haible  <bruno@clisp.org>
7391
7392         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
7393         use the converted UTF-8 variant of the name instead.
7394
7395 2009-05-03  Jim Meyering  <meyering@redhat.com>
7396
7397         tests: tighten some getdate tests
7398         * tests/test-getdate.c (main): Tighten tests: require equality,
7399         not just greater than.  Set TZ envvar to UTC0.
7400
7401 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
7402
7403         getdate: correctly interpret "next monday" when run on a Monday
7404         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
7405         that e.g., "next tues" (when run on a tuesday) results in a date
7406         that is one week in the future, and not today's date.
7407         I.e., add a week when the wday is the same as the current one.
7408         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
7409         and earlier by Martin Bernreuther and Jan Minář.
7410         * tests/test-getdate.c (main): Check that "next DAY" is always in
7411         the future and that "last DAY" is always in the past.
7412
7413 2009-05-02  Jim Meyering  <meyering@redhat.com>
7414
7415         build: ensure that a release build fails when a submodule is unclean
7416         * top/maint.mk (no-submodule-changes): New rule.
7417         (alpha beta major): Depend on it.
7418
7419 2009-05-02  Bruno Haible  <bruno@clisp.org>
7420
7421         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
7422         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
7423         shell variable gl_fnmatch_required to detect which variant is
7424         requested.
7425         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
7426         gl_FUNC_FNMATCH_POSIX.
7427         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
7428         exclude fnmatch-posix.
7429
7430 2009-05-02  Bruno Haible  <bruno@clisp.org>
7431
7432         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
7433         * modules/mbsrtowcs (License): Change to LGPLv2+.
7434         * modules/strnlen1 (License): Likewise.
7435         Reported by Simon Josefsson.
7436
7437 2009-05-02  Bruno Haible  <bruno@clisp.org>
7438
7439         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
7440         "cross".
7441         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
7442         gnulib-tool was called with option --source-base=lib.
7443
7444 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7445
7446         Use automake *-local hooks without commands, for extensibility.
7447         * modules/localcharset (Makefile.am): Rename install-exec-local
7448         rule to install-exec-localcharset, and make it a prerequisite of
7449         install-exec-local.  Likewise, rename the uninstall-local rule to
7450         uninstall-localcharset, and make it a prerequisite of the former.
7451
7452 2009-05-01  Bruno Haible  <bruno@clisp.org>
7453
7454         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
7455         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
7456         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
7457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
7458         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
7459         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
7460         m4/locale-zh.m4, m4/codeset.m4.
7461
7462         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
7463         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
7464         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
7465         m4/locale-zh.m4.
7466
7467         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
7468         REPLACE_WCRTOMB if mbstate_t must be replaced.
7469         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
7470         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
7471
7472 2009-05-01  Bruno Haible  <bruno@clisp.org>
7473
7474         Avoid compiler warnings when redefining macros defined by <libintl.h>.
7475         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
7476         dngettext, dcngettext, textdomain, bindtextdomain,
7477         bind_textdomain_codeset): Undefine before redefining.
7478
7479 2009-04-30  Bruno Haible  <bruno@clisp.org>
7480
7481         Fix bug introduced on 2009-04-25.
7482         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
7483         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
7484         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
7485         is defined.
7486         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
7487         is defined.
7488         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
7489         is defined.
7490         Reported by Elbert_Pol <elbert.pol@gmail.com>.
7491
7492 2009-04-28  Bruno Haible  <bruno@clisp.org>
7493
7494         Comment tweaks.
7495         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
7496         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
7497         * lib/unicase.h (u*_casexfrm): Likewise.
7498         Reported by Paolo Bonzini.
7499
7500 2009-04-28  Bruno Haible  <bruno@clisp.org>
7501
7502         Fix a compilation error.
7503         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
7504         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7505         Reported by Jim Meyering.
7506
7507 2009-04-27  Bruno Haible  <bruno@clisp.org>
7508
7509         New module 'libunistring'.
7510         * modules/libunistring: New file.
7511         * m4/libunistring.m4: New file.
7512         * MODULES.html.sh (Unicode string functions): Add it.
7513
7514 2009-04-27  Eric Blake  <ebb9@byu.net>
7515
7516         maint.mk: allow package-specific header to provide <config.h>
7517         * top/maint.mk (sc_require_config_h): New variable.
7518         (sc_require_config_h, sc_require_config_h_first): Use it.
7519
7520 2009-04-27  Simon Josefsson  <simon@josefsson.org>
7521
7522         * top/maint.mk (sc_avoid_if_before_free): Except
7523         useless-if-before-free script.
7524
7525 2009-04-27  Eric Blake  <ebb9@byu.net>
7526
7527         maintainer-makefile: depend on all required helper scripts
7528         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
7529         useless-if-before-free.
7530         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
7531         version, rather than assuming gnulib checkout is available.
7532         Reported by Simen Josefsson.
7533
7534 2009-04-26  Bruno Haible  <bruno@clisp.org>
7535
7536         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
7537         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
7538         "../" or "..".
7539
7540 2009-04-26  Bruno Haible  <bruno@clisp.org>
7541
7542         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
7543         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
7544         AC_LIB_HAVE_LINKFLAGS.
7545
7546 2009-04-26  Bruno Haible  <bruno@clisp.org>
7547
7548         Simplify calling convention of u*_conv_from_encoding.
7549         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
7550         u32_conv_from_encoding): Expect a resultbuf argument and return the
7551         result directly as a pointer.
7552         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
7553         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
7554         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
7555         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
7556         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
7557         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
7558         Update.
7559         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
7560         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
7561         * lib/vasnprintf.c (VASNPRINTF): Update.
7562         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
7563         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
7564         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
7565         * NEWS: Mention the change.
7566
7567 2009-04-26  Bruno Haible  <bruno@clisp.org>
7568
7569         Simplify calling convention of u*_conv_to_encoding.
7570         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
7571         u32_conv_to_encoding): Expect a resultbuf argument and return the
7572         result directly as a pointer.
7573         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7574         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
7575         freeing scaled_offsets if mem_iconveha failed.
7576         * lib/unicase/u-casexfrm.h (FUNC): Update.
7577         * lib/uninorm/u-normxfrm.h (FUNC): Update.
7578         * lib/vasnprintf.c (VASNPRINTF): Update.
7579         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
7580         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
7581         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
7582         * NEWS: Mention the change.
7583
7584 2009-04-26  Bruno Haible  <bruno@clisp.org>
7585
7586         Avoid test failures on AIX and OSF/1.
7587         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
7588         malloc(0).
7589         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7590         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
7591         Likewise.
7592         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
7593         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
7594         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
7595         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
7596         * doc/posix-functions/malloc.texi: Document the portability problem
7597         related to malloc(0).
7598
7599 2009-04-26  Bruno Haible  <bruno@clisp.org>
7600
7601         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
7602         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
7603         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
7604
7605 2009-04-25  Bruno Haible  <bruno@clisp.org>
7606
7607         Avoid link error when creating a namespace clean library.
7608         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
7609         as macro with arguments if already defined as an alias.
7610         * lib/signbitf.c (gl_signbitf): Don't undefine.
7611         * lib/signbitd.c (gl_signbitd): Don't undefine.
7612         * lib/signbitl.c (gl_signbitl): Don't undefine.
7613
7614 2009-04-25  Jim Meyering  <meyering@redhat.com>
7615
7616         vc-list-files: fix another quoting bug
7617         * build-aux/vc-list-files: Avoid sed backslash expansion
7618         of pathological directory names.
7619
7620 2009-04-25  Eric Blake  <ebb9@byu.net>
7621
7622         vc-list-files: fix shell quoting error
7623         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
7624         timestamp.
7625
7626 2009-04-25  Jim Meyering  <meyering@redhat.com>
7627
7628         vc-list-files: restore lost functionality with subdir argument
7629         * build-aux/vc-list-files: When given a non-"." sub-directory
7630         argument, substitute the $dir/ prefix back onto each resulting name.
7631         Otherwise, coreutils' root_tests check would fail.
7632
7633 2009-04-24  Eric Blake  <ebb9@byu.net>
7634
7635         vc-list-files: ignore git symlinks
7636         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
7637         than ls-files, to ignore git symlinks.
7638
7639         maint.mk: import improvements from m4
7640         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
7641         (move_if_change): Delete unused macro.
7642         (news-date-check, vc-diff-check): Support VPATH builds.
7643         (announcement): Likewise.  Split --bootstrap-tools list...
7644         (boostrap-tools): ...into separate list, which can be overridden
7645         in cfg.mk.
7646         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
7647         requiring dependency on useless-if-before-free module.
7648         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
7649         Support VPATH builds.
7650
7651 2009-04-24  Jim Meyering  <meyering@redhat.com>
7652
7653         maint.mk: remove coreutils-specific rules and variables
7654         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
7655         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
7656         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
7657
7658         maint.mk: remove obsolete rule
7659         * top/maint.mk (rel-check): Remove rule.
7660         (WGET, WGETFLAGS): Remove now-unused variables.
7661
7662 2009-04-24  Simon Josefsson  <simon@josefsson.org>
7663
7664         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
7665         consistency.
7666
7667         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
7668         '$(PATH_SEPARATOR)' instead of ':'.
7669
7670 2009-04-24  Simon Josefsson  <simon@josefsson.org>
7671
7672         * lib/getopt1.c (main): Use 'const' for static array.
7673
7674 2009-04-24  Simon Josefsson  <simon@josefsson.org>
7675
7676         * top/maint.mk: Sync with coreutils.
7677         * NEWS: Explain incompatibilities.
7678
7679 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7680             Bruno Haible  <bruno@clisp.org>
7681
7682         Fix cross-compilation results.
7683         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
7684         statement, as third argument of AC_TRY_RUN.
7685         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7686         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
7687         Likewise.
7688         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7689         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7690         Likewise.
7691         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7692         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
7693         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
7694
7695 2009-04-20  Bruno Haible  <bruno@clisp.org>
7696
7697         Avoid test failure on mingw.
7698         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
7699
7700 2009-04-20  Bruno Haible  <bruno@clisp.org>
7701
7702         Avoid compilation error on mingw.
7703         * modules/localename-tests (Depends-on): Add locale.
7704
7705 2009-04-19  Bruno Haible  <bruno@clisp.org>
7706
7707         Support for building a shared library on Windows platforms.
7708         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
7709         (main): Test the presence of UNINORM_NFC here.
7710         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
7711         (main): Test the presence of UNINORM_NFD here.
7712         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
7713         (main): Test the presence of UNINORM_NFKC here.
7714         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
7715         (main): Test the presence of UNINORM_NFKD here.
7716
7717 2009-04-19  Bruno Haible  <bruno@clisp.org>
7718
7719         Avoid a compiler warning.
7720         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
7721         Change type of variable 'sequence'.
7722
7723 2009-04-19  Bruno Haible  <bruno@clisp.org>
7724
7725         * modules/configmake (Makefile.am): When the contents of configmake.h
7726         does not change, arrange to preserve its modification time.
7727
7728 2009-04-17  Simon Josefsson  <simon@josefsson.org>
7729
7730         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
7731         gettext domain.
7732
7733 2009-04-16  Jim Meyering  <meyering@redhat.com>
7734
7735         useless-if-before-free: improve conversion code
7736         * build-aux/useless-if-before-free: Adjust code-in-comment to match
7737         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
7738
7739 2009-04-14  Bruno Haible  <bruno@clisp.org>
7740
7741         * modules/fcntl (Depends-on): Add extensions.
7742         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
7743
7744 2009-04-12  Ben Pfaff  <blp@gnu.org>
7745
7746         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
7747         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
7748
7749 2009-03-20  Ben Pfaff  <blp@gnu.org>
7750
7751         Make rename replace existing destinations on Windows.
7752         * m4/rename.m4: Add test for Mingw.
7753         * lib/rename.c: Add rename replacement that uses MoveFileEx with
7754         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
7755         * doc/posix-functions/rename.texi: Document.
7756
7757 2009-04-10  Bruno Haible  <bruno@clisp.org>
7758
7759         New include file "iconveh.h".
7760         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
7761         * lib/striconveh.h: Include it.
7762         (enum iconv_ilseq_handler): Remove definition.
7763         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
7764         striconveh.h.
7765         * lib/striconveha.c: Include striconveh.h.
7766         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
7767         * modules/striconveh (Files): Add lib/iconveh.h.
7768         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
7769         lib/striconveh.h.
7770
7771 2009-04-10  Bruno Haible  <bruno@clisp.org>
7772
7773         * lib/uniconv.h: Update comment.
7774
7775 2009-04-10  Bruno Haible  <bruno@clisp.org>
7776
7777         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
7778         always.
7779         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7780         * lib/unistr/u16-mbtouc-aux.c: Likewise.
7781         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7782         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
7783         "unistring-notinline.h", so that the function gets defined always.
7784         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7785         * lib/unistr/u8-uctomb.c: Likewise.
7786         * lib/unistr/u16-mbtouc.c: Likewise.
7787         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7788         * lib/unistr/u16-uctomb.c: Likewise.
7789         * lib/unistr/u32-mbtouc.c: Likewise.
7790         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7791         * lib/unistr/u32-uctomb.c: Likewise.
7792
7793 2009-04-10  Bruno Haible  <bruno@clisp.org>
7794
7795         Mark 'utime' obsolete.
7796         * modules/utime (Status, Notice): New sections.
7797         Suggested by Jim Meyering.
7798
7799         Fix cross-compile guess for utime test.
7800         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
7801         autoconf.
7802         * doc/posix-functions/utime.texi: Give more precisions.
7803         Reported by Jan <ipif@ymail.com>.
7804
7805 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
7806
7807         filevercmp: correct today's change
7808         * lib/filevercmp.c: Also handle coreutils' test inputs.
7809         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
7810
7811         Fix regression in 'filevercmp' module. Thanks Sven Joachim
7812         for reporting it.
7813         * lib/filevercmp.c: Special handle for "", "." and "..".
7814         * tests/test-filevercmp.c: Enlarge the set suite.
7815
7816 2009-04-07  Jim Meyering  <meyering@redhat.com>
7817
7818         useless-if-before-free: show how to remove braced useless free, too
7819         * build-aux/useless-if-before-free: still only in a comment, though.
7820
7821 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
7822
7823         maint.mk: import changes to syntax-check macros from coreutils
7824         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
7825         Use them in the relevant macros.
7826
7827 2009-04-06  Bruno Haible  <bruno@clisp.org>
7828
7829         Fix unportable use of bit-fields.
7830         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
7831         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
7832         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
7833
7834 2009-04-06  Bruno Haible  <bruno@clisp.org>
7835
7836         Avoid test failures on AIX and OSF/1.
7837         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
7838         that malloc(0) = NULL.
7839         * tests/unicase/test-u8-tolower.c (check): Likewise.
7840         * tests/unicase/test-u8-totitle.c (check): Likewise.
7841         * tests/unicase/test-u8-toupper.c (check): Likewise.
7842         * tests/unicase/test-u16-casefold.c (check): Likewise.
7843         * tests/unicase/test-u16-tolower.c (check): Likewise.
7844         * tests/unicase/test-u16-totitle.c (check): Likewise.
7845         * tests/unicase/test-u16-toupper.c (check): Likewise.
7846         * tests/unicase/test-u32-casefold.c (check): Likewise.
7847         * tests/unicase/test-u32-tolower.c (check): Likewise.
7848         * tests/unicase/test-u32-totitle.c (check): Likewise.
7849         * tests/unicase/test-u32-toupper.c (check): Likewise.
7850         * tests/uninorm/test-u8-nfc.c (check): Likewise.
7851         * tests/uninorm/test-u8-nfd.c (check): Likewise.
7852         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
7853         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
7854         * tests/uninorm/test-u16-nfc.c (check): Likewise.
7855         * tests/uninorm/test-u16-nfd.c (check): Likewise.
7856         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
7857         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
7858         * tests/uninorm/test-u32-nfc.c (check): Likewise.
7859         * tests/uninorm/test-u32-nfd.c (check): Likewise.
7860         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
7861         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
7862
7863 2009-04-05  Bruno Haible  <bruno@clisp.org>
7864
7865         Work around an autoconf limitation.
7866         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
7867         comment line if it would be longer than 3 KB.
7868
7869 2009-04-05  Bruno Haible  <bruno@clisp.org>
7870
7871         Avoid test failure with libiconv-1.13.
7872         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
7873         of the expected test results.
7874
7875 2009-04-05  Bruno Haible  <bruno@clisp.org>
7876
7877         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
7878         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
7879         that it should be installed.
7880
7881 2009-04-05  Bruno Haible  <bruno@clisp.org>
7882
7883         * gnulib-tool: New option --copy-file.
7884         (func_usage): Document it.
7885         (func_dest_tmpfilename): Moved out of func_import.
7886         (func_add_file, func_update_file): New functions, extracted from
7887         func_import.
7888         (func_import): Update.
7889
7890 2009-04-05  Karl Berry  <karl@gnu.org>
7891
7892         * README: prominently mention gnulib-tool.
7893         Rearrange sections so getting the code is near the top.
7894
7895 2009-04-05  Bruno Haible  <bruno@clisp.org>
7896
7897         * lib/unicase.h: Mention u*_cmp2.
7898         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
7899         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
7900         * lib/unicase/ulc-casecmp.c: Likewise.
7901         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
7902         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
7903         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
7904         unistr/u8-cmp.
7905         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
7906         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
7907         unistr/u16-cmp.
7908         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
7909         unistr/u32-cmp.
7910
7911         * lib/uninorm.h: Mention u*_cmp2.
7912         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
7913         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
7914         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
7915         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
7916         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
7917         unistr/u8-cmp.
7918         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
7919         unistr/u16-cmp.
7920         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
7921         unistr/u32-cmp.
7922
7923         New module 'unistr/u32-cmp2'.
7924         * lib/unistr/u32-cmp2.c: New file.
7925         * modules/unistr/u32-cmp2: New file.
7926
7927         New module 'unistr/u16-cmp2'.
7928         * lib/unistr/u16-cmp2.c: New file.
7929         * modules/unistr/u16-cmp2: New file.
7930
7931         New module 'unistr/u8-cmp2'.
7932         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
7933         * lib/unistr/u8-cmp2.c: New file.
7934         * lib/unistr/u-cmp2.h: New file.
7935         * modules/unistr/u8-cmp2: New file.
7936
7937 2009-04-05  Bruno Haible  <bruno@clisp.org>
7938
7939         * lib/unictype.h (uc_property_is_valid): New macro.
7940         * tests/unictype/test-pr_byname.c (main): Use it.
7941
7942         * lib/unistr.h: Doc fixes.
7943         * lib/uniconv.h: Doc fixes.
7944         * lib/unictype.h: Doc fixes.
7945
7946 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         Port coreutils 7.2 to Solaris 8.
7949
7950         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
7951         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
7952         for Solaris 8.  This is a bit of a hack, as it means it's the
7953         caller's responsibility to add -lnsl if needed, but most likely it
7954         won't be needed since only getaddrinfo uses this and getaddrinfo
7955         isn't needed on Solaris 8.
7956
7957         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
7958         problem to Solaris 8 encountered with coreutils 7.2, which
7959         resulted in a message "fnmatch.c:292: warning: passing argument 4
7960         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
7961         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
7962
7963 2009-04-03  Simon Josefsson  <simon@josefsson.org>
7964
7965         * m4/ld-version-script.m4: Add FIXME comment.
7966
7967 2009-04-02  Simon Josefsson  <simon@josefsson.org>
7968
7969         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
7970         SOVERSION variable.
7971
7972 2009-04-02  Bruno Haible  <bruno@clisp.org>
7973
7974         * Makefile (info, html, dvi, pdf): Combine the rules.
7975         Suggested by Jim Meyering.
7976
7977 2009-04-01  Bruno Haible  <bruno@clisp.org>
7978
7979         * Makefile (info, html, dvi, pdf): New targets.
7980         Reported by Reuben Thomas <rrt@sc3d.org>.
7981
7982 2009-04-01  Bruno Haible  <bruno@clisp.org>
7983
7984         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
7985         can be put into PATH.
7986         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
7987
7988 2009-04-01  Bruno Haible  <bruno@clisp.org>
7989
7990         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
7991
7992 2009-04-01  Bruno Haible  <bruno@clisp.org>
7993
7994         Rename module 'visibility'.
7995         * modules/lib-symbol-visibility: Renamed from modules/visibility.
7996         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
7997         * doc/gnulib.texi: Update.
7998         * MODULES.html.sh (Misc): Update.
7999         * NEWS: Mention the change.
8000
8001 2009-04-01  Simon Josefsson  <simon@josefsson.org>
8002
8003         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
8004         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
8005         Eric Blake <ebb9@byu.net> for review.
8006         * MODULES.html.sh: Add lib-msvc-compat.
8007         * doc/gnulib.texi: Link to new section.
8008         * m4/ld-output-def.m4: New file.
8009         * doc/ld-output-def.texi: New file.
8010
8011 2009-04-01  Simon Josefsson  <simon@josefsson.org>
8012
8013         Rename ld-version-script to lib-symbol-versions.  Suggested by
8014         Bruno Haible <bruno@clisp.org>.
8015         * modules/ld-version-script: Renamed to lib-symbol-versions.
8016         * doc/ld-version-script.texi: Fix module name.
8017         * MODULES.html.sh: Add lib-symbol-versions.
8018
8019 2009-03-31  Simon Josefsson  <simon@josefsson.org>
8020
8021         * modules/u64-tests: New file.
8022         * tests/test-u64.c: New file.
8023
8024 2009-03-04  Simon Josefsson  <simon@josefsson.org>
8025
8026         * MODULES.html.sh: Mention u64.
8027         * modules/u64: New module.
8028         * modules/crypto/sha512: Depend on u64 module instead of providing
8029         u64.h.
8030
8031 2009-03-27  Eric Blake  <ebb9@byu.net>
8032
8033         test-strerror: make debugging EAI_SYSTEM easier
8034         * modules/getaddrinfo-tests (Depends-on): Add strerror.
8035         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
8036         failure was EAI_SYSTEM.
8037
8038 2009-03-25  Bruno Haible  <bruno@clisp.org>
8039
8040         Fix a problem with --enable-relocatable on Solaris 7.
8041         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
8042         since 2008-02-24.
8043
8044 2009-03-25  Eric Blake  <ebb9@byu.net>
8045
8046         test-sockets: avoid gcc warning
8047         * tests/test-sockets.c (main): Silence compiler warning.
8048
8049 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8050
8051         New modules nproc, pthread, contributed by Glen Lenker.
8052
8053         * MODULES.html.sh: Add pthread, nproc.
8054         * lib/nproc.c: New file.
8055         * lib/nproc.h: New file.
8056         * lib/pthread.in.h: New file.
8057         * m4/pthread.m4: New file.
8058         * modules/nproc: New file.
8059         * modules/pthread: New file.
8060
8061 2009-03-24  Simon Josefsson  <simon@josefsson.org>
8062
8063         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
8064         New variable.
8065
8066 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
8067
8068         filevercmp: handle simple~ and numbered.~3~ backup suffixes
8069         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
8070         * tests/test-filevercmp.c: Add tests for backup suffixes.
8071
8072 2009-03-24  Simon Josefsson  <simon@josefsson.org>
8073
8074         * modules/stdlib (Depends-on): Add stdint, needed when defining
8075         struct random_data on, for example, HP-UX 10.20.  Reported by
8076         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8077
8078 2009-03-24  Simon Josefsson  <simon@josefsson.org>
8079
8080         * lib/readline.c (readline): Call fflush on stdout after printing
8081         prompt.
8082
8083 2009-03-20  Bruno Haible  <bruno@clisp.org>
8084
8085         Remove dependency from 'close' module to -lws2_32 on native Windows.
8086         * lib/close-hook.h: New file.
8087         * lib/close-hook.c: New file.
8088         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
8089         w32sock.h.
8090         (_gl_close_fd_maybe_socket): Remove function.
8091         (rpl_close): Invoke execute_all_close_hooks instead of
8092         _gl_close_fd_maybe_socket.
8093         * lib/sockets.c: Include close-hook.h, w32sock.h.
8094         (close_fd_maybe_socket): New function, essentially from lib/close.c.
8095         (close_sockets_hook): New variable.
8096         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
8097         (gl_sockets_cleanup): Unregister it.
8098         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
8099         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
8100         * modules/close-hook: New file.
8101         * modules/close (Files): Remove lib/w32sock.h.
8102         (Depends-on): Add close-hook.
8103         (Link): Remove section.
8104         * modules/sockets (Files): Add lib/w32sock.h.
8105         (Depends-on): Add close-hook.
8106         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
8107         invocation.
8108         * NEWS: Mention that LIB_CLOSE is gone.
8109
8110 2009-03-23  Eric Blake  <ebb9@byu.net>
8111
8112         signal-tests: test previous patch
8113         * tests/test-signal.c: New file.
8114         * modules/signal-tests: Likewise.
8115
8116         signal.h: always support 'volatile sig_atomic_t'
8117         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
8118         (gl_SIGNAL_H_DEFAULTS): Add a default.
8119         * modules/signal (Makefile.am): Substitute if needed.
8120         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
8121         users can blindly add volatile.
8122         * doc/posix-headers/signal.texi (signal.h): Document it.
8123         Reported by Matthew Woehlke.
8124
8125 2009-03-23  Jim Meyering  <meyering@redhat.com>
8126
8127         pathmax: PATH_MAX: use pathconf only when available
8128         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
8129         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
8130         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
8131         This avoids a link failure in a PSP cross-compilation environment
8132         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
8133
8134         * lib/vasnprintf.c (divide): Fix typo in comment.
8135
8136 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8137
8138         * gnulib-tool (func_filter_filelist): Fix comment.
8139
8140 2009-03-20  Bruno Haible  <bruno@clisp.org>
8141
8142         Make sockets.h self-contained.
8143         * lib/sockets.c: Include sockets.h first.
8144         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
8145
8146 2009-03-19  Eric Blake  <ebb9@byu.net>
8147
8148         doc: mention more functions added in cygwin 1.7.0
8149         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
8150         addition.
8151         * doc/posix-functions/log2f.texi: Likewise.
8152
8153 2009-03-19  Jim Meyering  <meyering@redhat.com>
8154
8155         fsusage: avoid syntax error due to statement-before-declaration
8156         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
8157         after all declarations.  Reported by Matthew Woehlke in
8158         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
8159
8160 2009-03-18  Eric Blake  <ebb9@byu.net>
8161
8162         build-aux/compile: sync from automake
8163         * build-aux/compile: New file, from automake.
8164         * config/srclist.txt: Mention build-aux/compile.
8165
8166 2009-03-17  Bruno Haible  <bruno@clisp.org>
8167
8168         * lib/git-merge-changelog.c: Fix typo in comment.
8169         Reported by Reuben Thomas <rrt@sc3d.org>.
8170
8171 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
8172
8173         * m4/regex.m4: update and improve help for
8174         --without-included-regex.
8175
8176 2009-03-17  Simon Josefsson  <simon@josefsson.org>
8177
8178         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
8179         failure on missing include files.
8180
8181 2009-03-17  Eric Blake  <ebb9@byu.net>
8182
8183         doc: mention more functions added in cygwin 1.7.0
8184         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
8185         addition.
8186         * doc/posix-functions/fwscanf.texi: Likewise.
8187         * doc/posix-functions/swprintf.texi: Likewise.
8188         * doc/posix-functions/swscanf.texi: Likewise.
8189         * doc/posix-functions/vfwprintf.texi: Likewise.
8190         * doc/posix-functions/vfwscanf.texi: Likewise.
8191         * doc/posix-functions/vswprintf.texi: Likewise.
8192         * doc/posix-functions/vswscanf.texi: Likewise.
8193         * doc/posix-functions/vwprintf.texi: Likewise.
8194         * doc/posix-functions/vwscanf.texi: Likewise.
8195         * doc/posix-functions/wcscasecmp.texi: Likewise.
8196         * doc/posix-functions/wcsdup.texi: Likewise.
8197         * doc/posix-functions/wcsftime.texi: Likewise.
8198         * doc/posix-functions/wcsncasecmp.texi: Likewise.
8199         * doc/posix-functions/wprintf.texi: Likewise.
8200         * doc/posix-functions/wscanf.texi: Likewise.
8201         * doc/glibc-functions/gethostbyname2.texi: Likewise.
8202
8203 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8204
8205         maint.mk: really add $(AM_MAKEFLAGS)
8206         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
8207         was inadvertently omitted in the last commit.
8208         Spotted by Bruno Haible.
8209
8210         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
8211         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
8212         $(AM_MAKEFLAGS)' rather than plain `make'.
8213
8214         gnulib-tool: execute $MAKE not make
8215         * gnulib-tool: Default $MAKE to 'make'.
8216         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
8217         than make.  Initialize $MAKE in the do-autobuild script.
8218
8219         gnulib-tool: use $MAKE not make in generated files
8220         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
8221         make, in generated files.  Initialize $MAKE in the do-autobuild
8222         script.
8223
8224         * top/GNUmakefile (_have-git-version-gen): Fix typo.
8225
8226         GNUmakefile: disable parallelism only for multiple, recursive targets
8227         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
8228         additions in the Makefile.
8229         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
8230         by Automake.
8231         (.NOTPARALLEL): Only disable parallel builds if multiple targets
8232         are listed on the command line and at least one of them is
8233         listed in $(ALL_RECURSIVE_TARGETS).
8234
8235 2009-03-14  Bruno Haible  <bruno@clisp.org>
8236
8237         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
8238         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
8239         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
8240         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
8241         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
8242         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
8243         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
8244         unistr/u8-uctomb.
8245         * modules/unistr/u8-strchr (Depends-on): Likewise.
8246         * modules/unistr/u8-strrchr (Depends-on): Likewise.
8247         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
8248         unistr/u16-uctomb.
8249         * modules/unistr/u16-strchr (Depends-on): Likewise.
8250         * modules/unistr/u16-strrchr (Depends-on): Likewise.
8251
8252 2009-03-12  Bruno Haible  <bruno@clisp.org>
8253
8254         Work around select() bug on Interix 3.5.
8255         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
8256         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
8257         * m4/select.m4: New file.
8258         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
8259         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
8260         * modules/select (Files): Add m4/select.m4.
8261         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
8262         * modules/nanosleep (Depends-on): Add select.
8263         * modules/poll (Depends-on): Likewise.
8264         * doc/posix-functions/select.texi: Mention the Interix bug.
8265         Reported by Markus Duft <mduft@gentoo.org>.
8266
8267         * lib/select.c: Renamed from lib/winsock-select.c.
8268         * modules/select (Files): Add lib/select.c, remove
8269         lib/winsock-select.c.
8270         (configure.ac): Update.
8271
8272 2009-03-12  Jim Meyering  <meyering@redhat.com>
8273
8274         avoid gcc warnings about unused macro definitions
8275         * lib/readtokens.c (STREQ): Remove unused definition.
8276         * lib/xmalloc.c (SIZE_MAX): Likewise.
8277         * lib/openat-die.c (N_): Likewise.
8278         * lib/mountlist.c (SIZE_MAX): Remove definition.
8279         Instead, include <stdint.h>.
8280         * lib/readutmp.c: Likewise.
8281         * modules/readutmp (Depends-on): Add stdint.
8282         * modules/mountlist (Depends-on): Add stdint.
8283         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
8284
8285 2009-03-10  Bruno Haible  <bruno@clisp.org>
8286
8287         Tests for module 'mbmemcasecoll'.
8288         * modules/mbmemcasecoll-tests: New file.
8289         * tests/test-mbmemcasecoll1.sh: New file.
8290         * tests/test-mbmemcasecoll2.sh: New file.
8291         * tests/test-mbmemcasecoll3.sh: New file.
8292         * tests/test-mbmemcasecoll.c: New file.
8293
8294         New module 'mbmemcasecoll'.
8295         * lib/mbmemcasecoll.h: New file.
8296         * lib/mbmemcasecoll.c: New file.
8297         * modules/mbmemcasecoll: New file.
8298
8299         * tests/test-mbmemcasecmp.h: New file, extracted from
8300         tests/test-mbmemcasecmp.c.
8301         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
8302         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
8303         (main): Update.
8304         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
8305
8306 2009-03-09  Bruno Haible  <bruno@clisp.org>
8307
8308         Tests for module 'mbmemcasecmp'.
8309         * modules/mbmemcasecmp-tests: New file.
8310         * tests/test-mbmemcasecmp1.sh: New file.
8311         * tests/test-mbmemcasecmp2.sh: New file.
8312         * tests/test-mbmemcasecmp3.sh: New file.
8313         * tests/test-mbmemcasecmp.c: New file.
8314
8315         New module 'mbmemcasecmp'.
8316         * lib/mbmemcasecmp.h: New file.
8317         * lib/mbmemcasecmp.c: New file.
8318         * modules/mbmemcasecmp: New file.
8319
8320 2009-03-09  Bruno Haible  <bruno@clisp.org>
8321
8322         Tests for module 'unicase/ulc-casecoll'.
8323         * modules/unicase/ulc-casecoll-tests: New file.
8324         * tests/unicase/test-ulc-casecoll1.sh: New file.
8325         * tests/unicase/test-ulc-casecoll2.sh: New file.
8326         * tests/unicase/test-ulc-casecoll.c: New file.
8327
8328         New module 'unicase/ulc-casecoll'.
8329         * lib/unicase.h (ulc_casecoll): New declaration.
8330         * lib/unicase/ulc-casecoll.c: New file.
8331         * modules/unicase/ulc-casecoll: New file.
8332
8333         New module 'unicase/ulc-casexfrm'.
8334         * lib/unicase.h (ulc_casexfrm): New declaration.
8335         * lib/unicase/ulc-casexfrm.c: New file.
8336         * modules/unicase/ulc-casexfrm: New file.
8337
8338 2009-03-09  Bruno Haible  <bruno@clisp.org>
8339
8340         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
8341         invocations.
8342
8343         * m4/mbscasecmp.m4: Remove file.
8344         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
8345         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
8346
8347         * m4/mbscasestr.m4: Remove file.
8348         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
8349         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
8350
8351         * m4/mbschr.m4: Remove file.
8352         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
8353         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
8354
8355         * m4/mbscspn.m4: Remove file.
8356         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
8357         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
8358
8359         * m4/mbslen.m4: Remove file.
8360         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
8361         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
8362
8363         * m4/mbsncasecmp.m4: Remove file.
8364         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
8365         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
8366
8367         * m4/mbsnlen.m4: Remove file.
8368         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
8369         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
8370
8371         * m4/mbspbrk.m4: Remove file.
8372         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
8373         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
8374
8375         * m4/mbspcasecmp.m4: Remove file.
8376         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
8377         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
8378
8379         * m4/mbsrchr.m4: Remove file.
8380         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
8381         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
8382
8383         * m4/mbssep.m4: Remove file.
8384         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
8385         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
8386
8387         * m4/mbsspn.m4: Remove file.
8388         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
8389         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
8390
8391         * m4/mbsstr.m4: Remove file.
8392         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
8393         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
8394
8395         * m4/mbstok_r.m4: Remove file.
8396         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
8397         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
8398
8399         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
8400
8401         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
8402         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
8403
8404         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
8405
8406 2009-03-08  Bruno Haible  <bruno@clisp.org>
8407
8408         Tests for module 'unicase/ulc-casecmp'.
8409         * modules/unicase/ulc-casecmp-tests: New file.
8410         * tests/unicase/test-ulc-casecmp1.sh: New file.
8411         * tests/unicase/test-ulc-casecmp2.sh: New file.
8412         * tests/unicase/test-ulc-casecmp.c: New file.
8413
8414         New module 'unicase/ulc-casecmp'.
8415         * lib/unicase.h (ulc_casecmp): New declaration.
8416         * lib/unicase/ulc-casecmp.c: New file.
8417         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
8418         'const SRC_UNIT *'.
8419         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
8420         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
8421         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
8422         * modules/unicase/ulc-casecmp: New file.
8423
8424         Tests for module 'unicase/u32-is-cased'.
8425         * modules/unicase/u32-is-cased-tests: New file.
8426         * tests/unicase/test-u32-is-cased.c: New file.
8427
8428         Tests for module 'unicase/u16-is-cased'.
8429         * modules/unicase/u16-is-cased-tests: New file.
8430         * tests/unicase/test-u16-is-cased.c: New file.
8431
8432         Tests for module 'unicase/u8-is-cased'.
8433         * modules/unicase/u8-is-cased-tests: New file.
8434         * tests/unicase/test-u8-is-cased.c: New file.
8435         * tests/unicase/test-is-cased.h: New file.
8436
8437         New module 'unicase/u32-is-cased'.
8438         * lib/unicase/u32-is-cased.c: New file.
8439         * modules/unicase/u32-is-cased: New file.
8440
8441         New module 'unicase/u16-is-cased'.
8442         * lib/unicase/u16-is-cased.c: New file.
8443         * modules/unicase/u16-is-cased: New file.
8444
8445         New module 'unicase/u8-is-cased'.
8446         * lib/unicase/u8-is-cased.c: New file.
8447         * lib/unicase/u-is-cased.h: New file.
8448         * modules/unicase/u8-is-cased: New file.
8449
8450         Tests for module 'unicase/u32-is-casefolded'.
8451         * modules/unicase/u32-is-casefolded-tests: New file.
8452         * tests/unicase/test-u32-is-casefolded.c: New file.
8453
8454         Tests for module 'unicase/u16-is-casefolded'.
8455         * modules/unicase/u16-is-casefolded-tests: New file.
8456         * tests/unicase/test-u16-is-casefolded.c: New file.
8457
8458         Tests for module 'unicase/u8-is-casefolded'.
8459         * modules/unicase/u8-is-casefolded-tests: New file.
8460         * tests/unicase/test-u8-is-casefolded.c: New file.
8461         * tests/unicase/test-is-casefolded.h: New file.
8462
8463         New module 'unicase/u32-is-casefolded'.
8464         * lib/unicase/u32-is-casefolded.c: New file.
8465         * modules/unicase/u32-is-casefolded: New file.
8466
8467         New module 'unicase/u16-is-casefolded'.
8468         * lib/unicase/u16-is-casefolded.c: New file.
8469         * modules/unicase/u16-is-casefolded: New file.
8470
8471         New module 'unicase/u8-is-casefolded'.
8472         * lib/unicase/u8-is-casefolded.c: New file.
8473         * modules/unicase/u8-is-casefolded: New file.
8474
8475         Tests for module 'unicase/u32-is-titlecase'.
8476         * modules/unicase/u32-is-titlecase-tests: New file.
8477         * tests/unicase/test-u32-is-titlecase.c: New file.
8478
8479         Tests for module 'unicase/u16-is-titlecase'.
8480         * modules/unicase/u16-is-titlecase-tests: New file.
8481         * tests/unicase/test-u16-is-titlecase.c: New file.
8482
8483         Tests for module 'unicase/u8-is-titlecase'.
8484         * modules/unicase/u8-is-titlecase-tests: New file.
8485         * tests/unicase/test-u8-is-titlecase.c: New file.
8486         * tests/unicase/test-is-titlecase.h: New file.
8487
8488         New module 'unicase/u32-is-titlecase'.
8489         * lib/unicase/u32-is-titlecase.c: New file.
8490         * modules/unicase/u32-is-titlecase: New file.
8491
8492         New module 'unicase/u16-is-titlecase'.
8493         * lib/unicase/u16-is-titlecase.c: New file.
8494         * modules/unicase/u16-is-titlecase: New file.
8495
8496         New module 'unicase/u8-is-titlecase'.
8497         * lib/unicase/u8-is-titlecase.c: New file.
8498         * modules/unicase/u8-is-titlecase: New file.
8499
8500         Tests for module 'unicase/u32-is-lowercase'.
8501         * modules/unicase/u32-is-lowercase-tests: New file.
8502         * tests/unicase/test-u32-is-lowercase.c: New file.
8503
8504         Tests for module 'unicase/u16-is-lowercase'.
8505         * modules/unicase/u16-is-lowercase-tests: New file.
8506         * tests/unicase/test-u16-is-lowercase.c: New file.
8507
8508         Tests for module 'unicase/u8-is-lowercase'.
8509         * modules/unicase/u8-is-lowercase-tests: New file.
8510         * tests/unicase/test-u8-is-lowercase.c: New file.
8511         * tests/unicase/test-is-lowercase.h: New file.
8512
8513         New module 'unicase/u32-is-lowercase'.
8514         * lib/unicase/u32-is-lowercase.c: New file.
8515         * modules/unicase/u32-is-lowercase: New file.
8516
8517         New module 'unicase/u16-is-lowercase'.
8518         * lib/unicase/u16-is-lowercase.c: New file.
8519         * modules/unicase/u16-is-lowercase: New file.
8520
8521         New module 'unicase/u8-is-lowercase'.
8522         * lib/unicase/u8-is-lowercase.c: New file.
8523         * modules/unicase/u8-is-lowercase: New file.
8524
8525         Tests for module 'unicase/u32-is-uppercase'.
8526         * modules/unicase/u32-is-uppercase-tests: New file.
8527         * tests/unicase/test-u32-is-uppercase.c: New file.
8528
8529         Tests for module 'unicase/u16-is-uppercase'.
8530         * modules/unicase/u16-is-uppercase-tests: New file.
8531         * tests/unicase/test-u16-is-uppercase.c: New file.
8532
8533         Tests for module 'unicase/u8-is-uppercase'.
8534         * modules/unicase/u8-is-uppercase-tests: New file.
8535         * tests/unicase/test-u8-is-uppercase.c: New file.
8536         * tests/unicase/test-is-uppercase.h: New file.
8537
8538         New module 'unicase/u32-is-uppercase'.
8539         * lib/unicase/u32-is-uppercase.c: New file.
8540         * modules/unicase/u32-is-uppercase: New file.
8541
8542         New module 'unicase/u16-is-uppercase'.
8543         * lib/unicase/u16-is-uppercase.c: New file.
8544         * modules/unicase/u16-is-uppercase: New file.
8545
8546         New module 'unicase/u8-is-uppercase'.
8547         * lib/unicase/u8-is-uppercase.c: New file.
8548         * modules/unicase/u8-is-uppercase: New file.
8549
8550         New module 'unicase/u32-is-invariant'.
8551         * lib/unicase/u32-is-invariant.c: New file.
8552         * modules/unicase/u32-is-invariant: New file.
8553
8554         New module 'unicase/u16-is-invariant'.
8555         * lib/unicase/u16-is-invariant.c: New file.
8556         * modules/unicase/u16-is-invariant: New file.
8557
8558         New module 'unicase/u8-is-invariant'.
8559         * lib/unicase/u8-is-invariant.c: New file.
8560         * lib/unicase/invariant.h: New file.
8561         * lib/unicase/u-is-invariant.h: New file.
8562         * modules/unicase/u8-is-invariant: New file.
8563
8564         Tests for module 'unicase/u32-casecoll'.
8565         * modules/unicase/u32-casecoll-tests: New file.
8566         * tests/unicase/test-u32-casecoll.c: New file.
8567
8568         Tests for module 'unicase/u16-casecoll'.
8569         * modules/unicase/u16-casecoll-tests: New file.
8570         * tests/unicase/test-u16-casecoll.c: New file.
8571
8572         Tests for module 'unicase/u8-casecoll'.
8573         * modules/unicase/u8-casecoll-tests: New file.
8574         * tests/unicase/test-u8-casecoll.c: New file.
8575
8576         New module 'unicase/u32-casecoll'.
8577         * lib/unicase/u32-casecoll.c: New file.
8578         * modules/unicase/u32-casecoll: New file.
8579
8580         New module 'unicase/u16-casecoll'.
8581         * lib/unicase/u16-casecoll.c: New file.
8582         * modules/unicase/u16-casecoll: New file.
8583
8584         New module 'unicase/u8-casecoll'.
8585         * lib/unicase/u8-casecoll.c: New file.
8586         * lib/unicase/u-casecoll.h: New file.
8587         * modules/unicase/u8-casecoll: New file.
8588
8589         New module 'unicase/u32-casexfrm'.
8590         * lib/unicase/u32-casexfrm.c: New file.
8591         * modules/unicase/u32-casexfrm: New file.
8592
8593         New module 'unicase/u16-casexfrm'.
8594         * lib/unicase/u16-casexfrm.c: New file.
8595         * modules/unicase/u16-casexfrm: New file.
8596
8597         New module 'unicase/u8-casexfrm'.
8598         * lib/unicase/u8-casexfrm.c: New file.
8599         * lib/unicase/u-casexfrm.h: New file.
8600         * modules/unicase/u8-casexfrm: New file.
8601
8602         Tests for module 'unicase/u32-casecmp'.
8603         * modules/unicase/u32-casecmp-tests: New file.
8604         * tests/unicase/test-u32-casecmp.c: New file.
8605
8606         Tests for module 'unicase/u16-casecmp'.
8607         * modules/unicase/u16-casecmp-tests: New file.
8608         * tests/unicase/test-u16-casecmp.c: New file.
8609
8610         Tests for module 'unicase/u8-casecmp'.
8611         * modules/unicase/u8-casecmp-tests: New file.
8612         * tests/unicase/test-u8-casecmp.c: New file.
8613         * tests/unicase/test-casecmp.h: New file.
8614
8615         New module 'unicase/u32-casecmp'.
8616         * lib/unicase/u32-casecmp.c: New file.
8617         * modules/unicase/u32-casecmp: New file.
8618
8619         New module 'unicase/u16-casecmp'.
8620         * lib/unicase/u16-casecmp.c: New file.
8621         * modules/unicase/u16-casecmp: New file.
8622
8623         New module 'unicase/u8-casecmp'.
8624         * lib/unicase/u8-casecmp.c: New file.
8625         * lib/unicase/u-casecmp.h: New file.
8626         * modules/unicase/u8-casecmp: New file.
8627
8628         Tests for module 'unicase/u32-casefold'.
8629         * modules/unicase/u32-casefold-tests: New file.
8630         * tests/unicase/test-u32-casefold.c: New file.
8631
8632         Tests for module 'unicase/u16-casefold'.
8633         * modules/unicase/u16-casefold-tests: New file.
8634         * tests/unicase/test-u16-casefold.c: New file.
8635
8636         Tests for module 'unicase/u8-casefold'.
8637         * modules/unicase/u8-casefold-tests: New file.
8638         * tests/unicase/test-u8-casefold.c: New file.
8639
8640         New module 'unicase/u32-casefold'.
8641         * lib/unicase/u32-casefold.c: New file.
8642         * modules/unicase/u32-casefold: New file.
8643
8644         New module 'unicase/u16-casefold'.
8645         * lib/unicase/u16-casefold.c: New file.
8646         * modules/unicase/u16-casefold: New file.
8647
8648         New module 'unicase/u8-casefold'.
8649         * lib/unicase/u8-casefold.c: New file.
8650         * lib/unicase/u-casefold.h: New file.
8651         * modules/unicase/u8-casefold: New file.
8652
8653         New module 'unicase/tocasefold'.
8654         * lib/unicase/casefold.h: New file.
8655         * lib/unicase/tocasefold.c: New file.
8656         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
8657         * modules/unicase/tocasefold: New file.
8658
8659         Tests for module 'unicase/u32-totitle'.
8660         * modules/unicase/u32-totitle-tests: New file.
8661         * tests/unicase/test-u32-totitle.c: New file.
8662
8663         Tests for module 'unicase/u16-totitle'.
8664         * modules/unicase/u16-totitle-tests: New file.
8665         * tests/unicase/test-u16-totitle.c: New file.
8666
8667         Tests for module 'unicase/u8-totitle'.
8668         * modules/unicase/u8-totitle-tests: New file.
8669         * tests/unicase/test-u8-totitle.c: New file.
8670
8671         New module 'unicase/u32-totitle'.
8672         * lib/unicase/u32-totitle.c: New file.
8673         * modules/unicase/u32-totitle: New file.
8674
8675         New module 'unicase/u16-totitle'.
8676         * lib/unicase/u16-totitle.c: New file.
8677         * modules/unicase/u16-totitle: New file.
8678
8679         New module 'unicase/u8-totitle'.
8680         * lib/unicase/u8-totitle.c: New file.
8681         * lib/unicase/u-totitle.h: New file.
8682         * modules/unicase/u8-totitle: New file.
8683
8684         Tests for module 'unicase/u32-tolower'.
8685         * modules/unicase/u32-tolower-tests: New file.
8686         * tests/unicase/test-u32-tolower.c: New file.
8687
8688         Tests for module 'unicase/u16-tolower'.
8689         * modules/unicase/u16-tolower-tests: New file.
8690         * tests/unicase/test-u16-tolower.c: New file.
8691
8692         Tests for module 'unicase/u8-tolower'.
8693         * modules/unicase/u8-tolower-tests: New file.
8694         * tests/unicase/test-u8-tolower.c: New file.
8695
8696         New module 'unicase/u32-tolower'.
8697         * lib/unicase/u32-tolower.c: New file.
8698         * modules/unicase/u32-tolower: New file.
8699
8700         New module 'unicase/u16-tolower'.
8701         * lib/unicase/u16-tolower.c: New file.
8702         * modules/unicase/u16-tolower: New file.
8703
8704         New module 'unicase/u8-tolower'.
8705         * lib/unicase/u8-tolower.c: New file.
8706         * modules/unicase/u8-tolower: New file.
8707
8708         Tests for module 'unicase/u32-toupper'.
8709         * modules/unicase/u32-toupper-tests: New file.
8710         * tests/unicase/test-u32-toupper.c: New file.
8711
8712         Tests for module 'unicase/u16-toupper'.
8713         * modules/unicase/u16-toupper-tests: New file.
8714         * tests/unicase/test-u16-toupper.c: New file.
8715
8716         Tests for module 'unicase/u8-toupper'.
8717         * modules/unicase/u8-toupper-tests: New file.
8718         * tests/unicase/test-u8-toupper.c: New file.
8719
8720         New module 'unicase/u32-toupper'.
8721         * lib/unicase/u32-toupper.c: New file.
8722         * modules/unicase/u32-toupper: New file.
8723
8724         New module 'unicase/u16-toupper'.
8725         * lib/unicase/u16-toupper.c: New file.
8726         * modules/unicase/u16-toupper: New file.
8727
8728         New module 'unicase/u8-toupper'.
8729         * lib/unicase/u8-toupper.c: New file.
8730         * modules/unicase/u8-toupper: New file.
8731
8732         New module 'unicase/u32-casemap'.
8733         * lib/unicase/u32-casemap.c: New file.
8734         * modules/unicase/u32-casemap: New file.
8735
8736         New module 'unicase/u16-casemap'.
8737         * lib/unicase/u16-casemap.c: New file.
8738         * modules/unicase/u16-casemap: New file.
8739
8740         New module 'unicase/u8-casemap'.
8741         * lib/unicase/unicasemap.h: New file.
8742         * lib/unicase/u8-casemap.c: New file.
8743         * lib/unicase/u-casemap.h: New file.
8744         * modules/unicase/u8-casemap: New file.
8745
8746         New module 'unicase/special-casing'.
8747         * lib/unicase/special-casing.h: New file.
8748         * lib/unicase/special-casing.c: New file.
8749         * lib/unicase/special-casing-table.gperf: New file, generated by
8750         gen-uni-tables.c.
8751         * modules/unicase/special-casing: New file.
8752
8753         Tests for module 'unicase/locale-language'.
8754         * modules/unicase/locale-language-tests: New file.
8755         * tests/unicase/test-locale-language.sh: New file.
8756         * tests/unicase/test-locale-language.c: New file.
8757
8758         New module 'unicase/locale-language'.
8759         * lib/unicase/locale-language.c: New file.
8760         * lib/unicase/locale-languages.gperf: New file.
8761         * modules/unicase/locale-language: New file.
8762
8763         Generate more tables for case conversion and case folding.
8764         * lib/gen-uni-tables.c (SCC_*): New enum items.
8765         (struct special_casing_rule): New type.
8766         (casing_rules, num_casing_rules, allocated_casing_rules): New
8767         variables.
8768         (add_casing_rule, fill_casing_rules): New functions.
8769         (struct casefold_rule): New type.
8770         (casefolding_rules, num_casefolding_rules,
8771         allocated_casefolding_rules): New variables.
8772         (fill_casefolding_rules): New function.
8773         (unicode_casefold): New variable.
8774         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
8775         sort_casing_rules, output_casing_rules): New functions.
8776         (main): Accept to more arguments: SpecialCasing.txt and
8777         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
8778         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
8779         Output mapping for casefolding.
8780
8781         * lib/unicase.h: Include stdbool.h, uninorm.h.
8782         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
8783         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
8784         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
8785         arguments.
8786         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
8787         resultp arguments.
8788         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
8789         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
8790         resultp arguments.
8791         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
8792         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
8793         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
8794         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
8795         declarations.
8796         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
8797
8798 2009-03-08  Bruno Haible  <bruno@clisp.org>
8799
8800         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
8801         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
8802         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
8803         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
8804
8805 2009-03-07  Bruno Haible  <bruno@clisp.org>
8806
8807         Adjust u*_normcmp, u*_normcoll API.
8808         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
8809         u16_normcoll, u32_normcoll): Change failure conventions.
8810         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
8811         errno and return -1.
8812         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
8813
8814 2009-03-07  Bruno Haible  <bruno@clisp.org>
8815
8816         Tests for module 'uninorm/u32-normcoll'.
8817         * modules/uninorm/u32-normcoll-tests: New file.
8818         * tests/uninorm/test-u32-normcoll.c: New file.
8819
8820         Tests for module 'uninorm/u16-normcoll'.
8821         * modules/uninorm/u16-normcoll-tests: New file.
8822         * tests/uninorm/test-u16-normcoll.c: New file.
8823
8824         Tests for module 'uninorm/u8-normcoll'.
8825         * modules/uninorm/u8-normcoll-tests: New file.
8826         * tests/uninorm/test-u8-normcoll.c: New file.
8827
8828 2009-03-07  Bruno Haible  <bruno@clisp.org>
8829
8830         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
8831         tests/uninorm/test-u32-normcmp.c.
8832         * tests/uninorm/test-u32-normcmp.c: Include it.
8833         (test_nonascii): New function, extracted from main. Add some more
8834         tests.
8835         (main): Invoke test_ascii and test_nonascii.
8836         * modules/uninorm/u32-normcmp-tests (Files): Add
8837         tests/uninorm/test-u32-normcmp.h.
8838         (Depends-on): Remove uninorm/u32-normcmp.
8839
8840         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
8841         tests/uninorm/test-u16-normcmp.c.
8842         * tests/uninorm/test-u16-normcmp.c: Include it.
8843         (test_nonascii): New function, extracted from main. Add some more
8844         tests.
8845         (main): Invoke test_ascii and test_nonascii.
8846         * modules/uninorm/u16-normcmp-tests (Files): Add
8847         tests/uninorm/test-u16-normcmp.h.
8848         (Depends-on): Remove uninorm/u16-normcmp.
8849
8850         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
8851         tests/uninorm/test-u8-normcmp.c.
8852         * tests/uninorm/test-u8-normcmp.c: Include it.
8853         (test_nonascii): New function, extracted from main. Add some more
8854         tests.
8855         (main): Invoke test_ascii and test_nonascii.
8856         * modules/uninorm/u8-normcmp-tests (Files): Add
8857         tests/uninorm/test-u8-normcmp.h.
8858         (Depends-on): Remove uninorm/u8-normcmp.
8859
8860 2009-03-07  Bruno Haible  <bruno@clisp.org>
8861
8862         New module 'uninorm/u32-normcoll'.
8863         * lib/uninorm/u32-normcoll.c: New file.
8864         * modules/uninorm/u32-normcoll: New file.
8865
8866         New module 'uninorm/u16-normcoll'.
8867         * lib/uninorm/u16-normcoll.c: New file.
8868         * modules/uninorm/u16-normcoll: New file.
8869
8870         New module 'uninorm/u8-normcoll'.
8871         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
8872         declarations.
8873         * lib/uninorm/u8-normcoll.c: New file.
8874         * lib/uninorm/u-normcoll.h: New file.
8875         * modules/uninorm/u8-normcoll: New file.
8876
8877         New module 'uninorm/u32-normxfrm'.
8878         * lib/uninorm/u32-normxfrm.c: New file.
8879         * modules/uninorm/u32-normxfrm: New file.
8880
8881         New module 'uninorm/u16-normxfrm'.
8882         * lib/uninorm/u16-normxfrm.c: New file.
8883         * modules/uninorm/u16-normxfrm: New file.
8884
8885         New module 'uninorm/u8-normxfrm'.
8886         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
8887         declarations.
8888         * lib/uninorm/u8-normxfrm.c: New file.
8889         * lib/uninorm/u-normxfrm.h: New file.
8890         * modules/uninorm/u8-normxfrm: New file.
8891
8892 2009-03-07  Bruno Haible  <bruno@clisp.org>
8893
8894         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
8895         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
8896         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
8897
8898 2009-03-07  Bruno Haible  <bruno@clisp.org>
8899
8900         New module 'memxfrm'.
8901         * lib/memxfrm.h: New file.
8902         * lib/memxfrm.c: New file.
8903         * modules/memxfrm: New file.
8904
8905 2009-03-07  Bruno Haible  <bruno@clisp.org>
8906
8907         New module 'memcmp2'.
8908         * lib/memcmp2.h: New file.
8909         * lib/memcmp2.c: New file.
8910         * modules/memcmp2: New file.
8911
8912 2009-03-07  Bruno Haible  <bruno@clisp.org>
8913
8914         Tests for module 'uninorm/decomposing-form'.
8915         * modules/uninorm/decomposing-form-tests: New file.
8916         * tests/uninorm/test-decomposing-form.c: New file.
8917
8918         New module 'uninorm/decomposing-form'.
8919         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
8920         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
8921         Add 'decomposing_variant' field.
8922         * lib/uninorm/decomposing-form.c: New file.
8923         * lib/uninorm/nfc.c (uninorm_nfc): Update.
8924         * lib/uninorm/nfd.c (uninorm_nfd): Update.
8925         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
8926         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
8927         * modules/uninorm/decomposing-form: New file.
8928         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
8929         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
8930
8931 2009-03-07  Bruno Haible  <bruno@clisp.org>
8932
8933         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
8934         strings.
8935
8936 2009-03-06  Bruno Haible  <bruno@clisp.org>
8937
8938         Tests for module 'uninorm/u32-normcmp'.
8939         * tests/uninorm/test-u32-normcmp.c: New file.
8940         * modules/uninorm/u32-normcmp-tests: New file.
8941
8942         Tests for module 'uninorm/u16-normcmp'.
8943         * tests/uninorm/test-u16-normcmp.c: New file.
8944         * modules/uninorm/u16-normcmp-tests: New file.
8945
8946         Tests for module 'uninorm/u8-normcmp'.
8947         * tests/uninorm/test-u8-normcmp.c: New file.
8948         * modules/uninorm/u8-normcmp-tests: New file.
8949
8950         New module 'uninorm/u32-normcmp'.
8951         * lib/uninorm/u32-normcmp.c: New file.
8952         * modules/uninorm/u32-normcmp: New file.
8953
8954         New module 'uninorm/u16-normcmp'.
8955         * lib/uninorm/u16-normcmp.c: New file.
8956         * modules/uninorm/u16-normcmp: New file.
8957
8958         New module 'uninorm/u8-normcmp'.
8959         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
8960         declarations.
8961         * lib/uninorm/u8-normcmp.c: New file.
8962         * lib/uninorm/u-normcmp.h: New file.
8963         * modules/uninorm/u8-normcmp: New file.
8964
8965 2009-03-06  Bruno Haible  <bruno@clisp.org>
8966
8967         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
8968         Reported by Eric Blake.
8969
8970 2009-03-06  Eric Blake  <ebb9@byu.net>
8971             Bruno Haible  <bruno@clisp.org>
8972
8973         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
8974         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
8975         condition.
8976         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
8977         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
8978         condition.
8979         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
8980
8981 2009-03-06  Eric Blake  <ebb9@byu.net>
8982
8983         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
8984         to avoid compiler warnings.
8985         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
8986
8987 2009-03-05  Bruno Haible  <bruno@clisp.org>
8988
8989         * tests/test-ftell.c (main): Disable test beyond end of file on
8990         FreeMiNT.
8991         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
8992
8993 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
8994
8995         * lib/filevercmp.c: Move hidden files up in ordering.
8996         * tests/test-filevercmp.c: Add tests for hidden files.
8997
8998 2009-03-04  Bruno Haible  <bruno@clisp.org>
8999
9000         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
9001         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
9002         AM_CFLAGS.
9003         Reported by Simon Josefsson.
9004
9005 2009-03-03  Bruno Haible  <bruno@clisp.org>
9006
9007         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
9008         Reported by Simon Josefsson.
9009
9010         * doc/ld-version-script.texi: Update node reference.
9011
9012 2009-03-03  Bruno Haible  <bruno@clisp.org>
9013
9014         * modules/visibility (License): Change to 'unlimited'.
9015         Suggested by Simon Josefsson.
9016
9017 2009-03-03  Jim Meyering  <meyering@redhat.com>
9018
9019         unlinkdir: cannot_unlink_dir may modify process state
9020         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
9021         it's neither thread-safe nor appropriate for use in a library.
9022
9023 2009-03-03  Eric Blake  <ebb9@byu.net>
9024
9025         test-closein: silence test under Darwin
9026         * tests/test-closein.sh: Ignore stderr from cat, since we don't
9027         care if it dies from EPIPE or EBADF.
9028
9029 2009-03-03  Bruno Haible  <bruno@clisp.org>
9030
9031         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
9032         earlier.
9033         * doc/visibility.texi: Fix @node and @section.
9034
9035 2009-03-03  Simon Josefsson  <simon@josefsson.org>
9036
9037         * doc/gnulib.texi: Link to sections for ld version script and
9038         visibility.
9039         * doc/visibility.texi: Add @node and @section.
9040         * modules/ld-version-script: New module.
9041         * m4/ld-version-script.m4: New file.
9042         * doc/ld-version-script.texi: New file.
9043
9044 2009-03-02  David Lutterkort  <lutter@redhat.com>
9045
9046         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
9047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9048
9049 2009-03-02  Bruno Haible  <bruno@clisp.org>
9050
9051         * doc/visibility.texi: Mention libtool's -export-symbols option.
9052
9053 2009-03-02  Jim Meyering  <meyering@redhat.com>
9054
9055         announce-gen: new option: --no-print-checksums
9056         * build-aux/announce-gen (usage): Describe it.
9057         (print_checksums): Print a newline here, not in the [*] footnote.
9058         (main): Honor it.
9059
9060 2009-03-01  Bruno Haible  <bruno@clisp.org>
9061
9062         Use socklen_t in the native Windows replacements prototypes.
9063         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
9064         instead of 'int'.
9065         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9066         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9067         * modules/getsockopt (Depends-on): Add socklen.
9068         * modules/setsockopt (Depends-on): Add socklen.
9069
9070 2009-03-01  Bruno Haible  <bruno@clisp.org>
9071
9072         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
9073         least 4.2.
9074
9075 2009-03-01  Eric Blake  <ebb9@byu.net>
9076             Bruno Haible  <bruno@clisp.org>
9077
9078         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
9079         error messages.
9080         * lib/wait-process.c (wait_subprocess): Omit error message about
9081         deadly signal sent to the child of termsigp != NULL.
9082
9083 2009-03-01  Eric Blake  <ebb9@byu.net>
9084
9085         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
9086
9087 2009-03-01  Bruno Haible  <bruno@clisp.org>
9088
9089         Avoid a gcc warning.
9090         * tests/test-sched.c (b): Make global.
9091         Reported by Eric Blake.
9092
9093 2009-01-19  Martin Lambers  <marlam@marlam.de>
9094
9095         Provide POSIX semantics for socket timeout options on W32.
9096         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
9097         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
9098         * modules/setsockopt: Depend on sys_time module for struct timeval.
9099         * modules/getsockopt: Depend on sys_time module for struct timeval.
9100
9101 2009-03-01  Simon Josefsson  <simon@josefsson.org>
9102
9103         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
9104         __USE_GNU, for consistency with netdb.in.h.
9105         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9106
9107 2009-03-01  Bruno Haible  <bruno@clisp.org>
9108
9109         More support for FreeMiNT.
9110         * lib/fseeko.c (rpl_fseeko): Complete last commit.
9111         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9112
9113 2009-03-01  Bruno Haible  <bruno@clisp.org>
9114
9115         More support for FreeMiNT.
9116         * lib/fpurge.c (fpurge): Correct last commit.
9117         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9118
9119 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9120
9121         Fix unportable awk script in vc-list-files.
9122         * build-aux/vc-list-files: In the replacement awk script, use
9123         substr with a second argument of 1, not zero.
9124         Report by Simon Josefsson.
9125
9126 2009-02-28  Bruno Haible  <bruno@clisp.org>
9127
9128         More support for FreeMiNT.
9129         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
9130         to FreeMiNT today.
9131         * lib/fwriting.c (fwriting): Likewise.
9132         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
9133
9134 2009-02-28  Bruno Haible  <bruno@clisp.org>
9135
9136         * tests/test-freadseek.c (main): Disable test beyond end of file on
9137         FreeMiNT.
9138         * tests/test-ftello.c (main): Likewise.
9139         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9140
9141 2009-02-28  Bruno Haible  <bruno@clisp.org>
9142
9143         Add tentative support for FreeMiNT.
9144         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
9145         * lib/fpurge.c (fpurge): Likewise.
9146         * lib/freadable.c (freadable): Likewise.
9147         * lib/freading.c (freading): Likewise.
9148         * lib/freadptr.c (freadptr): Likewise.
9149         * lib/freadseek.c (freadptrinc): Likewise.
9150         * lib/fseeko.c (rpl_fseeko): Likewise.
9151         * lib/fseterr.c (fseterr): Likewise.
9152         * lib/fwritable.c (fwritable): Likewise.
9153         * lib/fwriting.c (fwriting): Likewise.
9154         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
9155         Hourihane.
9156         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9157
9158 2009-02-28  Bruno Haible  <bruno@clisp.org>
9159
9160         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
9161         SIGCHLD.
9162         Reported by Jim Meyering.
9163
9164 2009-02-28  Bruno Haible  <bruno@clisp.org>
9165
9166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
9167         Mention the results of these tests on various platforms.
9168         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
9169         order.
9170         * doc/posix-functions/printf.texi: Likewise.
9171         * doc/posix-functions/snprintf.texi: Likewise.
9172         * doc/posix-functions/sprintf.texi: Likewise.
9173         * doc/posix-functions/vfprintf.texi: Likewise.
9174         * doc/posix-functions/vprintf.texi: Likewise.
9175         * doc/posix-functions/vsnprintf.texi: Likewise.
9176         * doc/posix-functions/vsprintf.texi: Likewise.
9177         * doc/glibc-functions/obstack_printf.texi: Likewise.
9178         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9179
9180 2009-02-28  Bruno Haible  <bruno@clisp.org>
9181
9182         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
9183         Reported by Loïc Minier <lool@dooz.org>.
9184
9185 2009-02-27  Bruno Haible  <bruno@clisp.org>
9186
9187         * gnulib-tool (func_import): Make the sed expression used to create the
9188         sed script for updating the .gitignore file POSIX compliant.
9189         Reported by Eric Blake.
9190
9191 2009-02-27  Bruno Haible  <bruno@clisp.org>
9192
9193         * gnulib-tool (sed): Don't alias as "sed --posix".
9194         Reported by Eric Blake.
9195
9196 2009-02-27  Bruno Haible  <bruno@clisp.org>
9197
9198         Avoid test link errors.
9199         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
9200         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
9201         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
9202         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
9203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9204
9205 2009-02-27  Bruno Haible  <bruno@clisp.org>
9206
9207         Avoid spurious "(cached)" in configure output.
9208         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
9209         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
9210         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9211         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9212         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9213         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9214         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9215         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9216         Reported by Eric Blake.
9217
9218 2009-02-27  Eric Blake  <ebb9@byu.net>
9219
9220         printf: fix regression in previous patch
9221         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
9222
9223 2009-02-27  Bruno Haible  <bruno@clisp.org>
9224
9225         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
9226         value.
9227         * lib/stdint.in.h: Likewise.
9228         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
9229
9230 2009-02-27  Eric Blake  <ebb9@byu.net>
9231
9232         doc: mention more functions added in cygwin 1.7.0
9233         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
9234         addition.
9235         * doc/posix-functions/open_wmemstream.texi: Likewise.
9236         * doc/posix-functions/wcsnlen.texi: Likewise.
9237         * doc/posix-functions/wcsnrtombs.texi: Likewise.
9238         * doc/posix-functions/wcstod.texi: Likewise.
9239         * doc/posix-functions/wcstof.texi: Likewise.
9240         * doc/posix-functions/wcstoimax.texi: Likewise.
9241         * doc/posix-functions/wcstok.texi: Likewise.
9242         * doc/posix-functions/wcstoumax.texi: Likewise.
9243
9244         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
9245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
9246         * doc/posix-functions/fprintf.texi: Update.
9247         * doc/posix-functions/printf.texi: Update.
9248         * doc/posix-functions/snprintf.texi: Update.
9249         * doc/posix-functions/sprintf.texi: Update.
9250         * doc/posix-functions/vfprintf.texi: Update.
9251         * doc/posix-functions/vprintf.texi: Update.
9252         * doc/posix-functions/vsnprintf.texi: Update.
9253         * doc/posix-functions/vsprintf.texi: Update.
9254         * doc/glibc-functions/obstack_printf.texi: Update.
9255         * doc/glibc-functions/obstack_vprintf.texi: Update.
9256
9257 2009-02-26  Eric Blake  <ebb9@byu.net>
9258
9259         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
9260         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
9261         compilation bug by using runtime conversion.
9262         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9263         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
9264         * modules/ceill-tests (Files): Use nan.h.
9265         * modules/floorl-tests (Files): Likewise.
9266         * modules/frexpl-tests (Files): Likewise.
9267         * modules/isnanl-tests (Files): Likewise.
9268         * modules/ldexpl-tests (Files): Likewise.
9269         * modules/roundl-tests (Files): Likewise.
9270         * modules/truncl-tests (Files): Likewise.
9271         * tests/test-ceill.c (main): Use a working NaN.
9272         * tests/test-floorl.c (main): Likewise.
9273         * tests/test-frexpl.c (main): Likewise.
9274         * tests/test-isnan.c (test_long_double): Likewise.
9275         * tests/test-isnanl.h (main): Likewise.
9276         * tests/test-ldexpl.h (main): Likewise.
9277         * tests/test-roundl.h (main): Likewise.
9278         * tests/test-truncl.h (main): Likewise.
9279         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
9280
9281 2009-02-26  Eric Blake  <ebb9@byu.net>
9282             Bruno Haible  <bruno@clisp.org>
9283
9284         Work around a *printf bug with %ls on Solaris.
9285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
9286         precision is specified, sprintf stops converting the wide string
9287         argument when the number of bytes that have been produced by this
9288         conversion equals or exceeds the precision.
9289         * doc/posix-functions/fprintf.texi: Update.
9290         * doc/posix-functions/printf.texi: Update.
9291         * doc/posix-functions/snprintf.texi: Update.
9292         * doc/posix-functions/sprintf.texi: Update.
9293         * doc/posix-functions/vfprintf.texi: Update.
9294         * doc/posix-functions/vprintf.texi: Update.
9295         * doc/posix-functions/vsnprintf.texi: Update.
9296         * doc/posix-functions/vsprintf.texi: Update.
9297         * doc/glibc-functions/obstack_printf.texi: Update.
9298         * doc/glibc-functions/obstack_vprintf.texi: Update.
9299
9300 2009-02-26  Eric Blake  <ebb9@byu.net>
9301
9302         stdlib: favor compiler check of random.h
9303         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
9304         to avoid an ObjC random.h installed by Swarm.
9305
9306 2009-02-26  Bruno Haible  <bruno@clisp.org>
9307
9308         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
9309         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
9310         Reported by Gary V. Vaughan <gary@gnu.org>.
9311
9312 2009-02-26  Bruno Haible  <bruno@clisp.org>
9313
9314         Fix *printf behaviour regarding the %ls directive.
9315         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
9316         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
9317         NEED_PRINTF_DIRECTIVE_LS.
9318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
9319         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9321         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
9322         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
9323         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
9324         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9329         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
9330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9333         * doc/posix-functions/fprintf.texi: Update.
9334         * doc/posix-functions/printf.texi: Update.
9335         * doc/posix-functions/snprintf.texi: Update.
9336         * doc/posix-functions/sprintf.texi: Update.
9337         * doc/posix-functions/vfprintf.texi: Update.
9338         * doc/posix-functions/vprintf.texi: Update.
9339         * doc/posix-functions/vsnprintf.texi: Update.
9340         * doc/posix-functions/vsprintf.texi: Update.
9341         * doc/glibc-functions/obstack_printf.texi: Update.
9342         * doc/glibc-functions/obstack_vprintf.texi: Update.
9343         Reported by Eric Blake.
9344
9345 2009-02-25  Bruno Haible  <bruno@clisp.org>
9346
9347         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
9348         with known value.
9349         Reported by Gary V. Vaughan <gary@gnu.org>.
9350
9351 2009-02-25  Bruno Haible  <bruno@clisp.org>
9352
9353         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
9354         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
9355         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
9356         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
9357         Reported by Gary V. Vaughan <gary@gnu.org>.
9358
9359 2009-02-25  Bruno Haible  <bruno@clisp.org>
9360
9361         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
9362         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
9363         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
9364         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
9365         Reported by Gary V. Vaughan <gary@gnu.org>.
9366
9367 2009-02-25  Eric Blake  <ebb9@byu.net>
9368
9369         tests: skip fseek/ftell tests if ungetc is broken
9370         * m4/ungetc.m4: New file.
9371         * modules/fseek-tests: Split test, so ungetc dependency is
9372         separate from rest of test.
9373         * modules/fseeko-tests: Likewise.
9374         * modules/ftell-tests: Likewise.
9375         * modules/ftello-tests: Likewise.
9376         * tests/test-fseek.c (main): Isolate ungetc dependency.
9377         * tests/test-fseeko.c (main): Likewise.
9378         * tests/test-ftell.c (main): Likewise.
9379         * tests/test-ftello.c (main): Likewise.
9380         * tests/test-fseek2.sh: New file.
9381         * tests/test-fseeko2.sh: Likewise.
9382         * tests/test-ftell2.sh: Likewise.
9383         * tests/test-ftello2.sh: Likewise.
9384
9385 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
9386
9387         test-getaddrinfo: fix usage of skip return code 77
9388         * tests/test-gettaddrinfo.c: Return skip code 77 only
9389         for first occurance of skip (4x77 is not 77)
9390
9391 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
9392
9393         strtod: avoid C99 decl-after-statement
9394         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
9395
9396 2009-02-24  Eric Blake  <ebb9@byu.net>
9397
9398         strtod: detect HP-UX 11.31 bug
9399         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
9400         Reported by Gary V. Vaughan.
9401
9402 2009-02-23  Bruno Haible  <bruno@clisp.org>
9403
9404         Fix invalid read past end of memory block.
9405         * lib/vasnprintf.c (DCHAR_SET): Define.
9406         (local_wcslen): Define only when needed.
9407         (local_strnlen, local_wcsnlen): New functions.
9408         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
9409         directives that involve a conversion ourselves.
9410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
9411         wcsnlen, mbrtowc, wcrtomb.
9412         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
9413         * tests/test-vasprintf-posix.c (test_function): Likewise.
9414         * tests/test-snprintf-posix.h (test_function): Likewise.
9415         * tests/test-sprintf-posix.h (test_function): Likewise.
9416         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9417
9418 2009-02-22  Bruno Haible  <bruno@clisp.org>
9419
9420         Implement new clarified decomposition of Hangul syllables.
9421         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
9422         of type LTV, return only a pairwise decomposition.
9423         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
9424         Likewise.
9425         * tests/uninorm/test-decomposition.c (main): Updated expected result.
9426         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
9427         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
9428
9429 2009-02-22  Bruno Haible  <bruno@clisp.org>
9430
9431         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
9432         zero-length results and shrink excess allocated memory.
9433         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
9434         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
9435         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
9436         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
9437         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
9438         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
9439         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
9440         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
9441         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
9442         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
9443         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
9444         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
9445
9446 2009-02-21  Bruno Haible  <bruno@clisp.org>
9447
9448         * doc/gnulib.texi: Include safe-alloc.texi earlier.
9449         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
9450         spaces after a period. Put a space between a macro name and its
9451         argument list. Trivial rewordings.
9452         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
9453         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
9454         (main): Return 0 explicitly.
9455
9456 2009-02-21  Bruno Haible  <bruno@clisp.org>
9457
9458         Tests for module 'uninorm/filter'.
9459         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
9460         * modules/uninorm/filter-tests: New file.
9461
9462         New module 'uninorm/filter'.
9463         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
9464         uninorm_filter_flush, uninorm_filter_free): New declarations.
9465         * lib/uninorm/uninorm-filter.c: New file.
9466         * modules/uninorm/filter: New file.
9467
9468 2009-02-21  Bruno Haible  <bruno@clisp.org>
9469
9470         Tests for module 'uninorm/nfkc'.
9471         * tests/uninorm/test-nfkc.c: New file.
9472         * tests/uninorm/test-u8-nfkc.c: New file.
9473         * tests/uninorm/test-u16-nfkc.c: New file.
9474         * tests/uninorm/test-u32-nfkc.c: New file.
9475         * tests/uninorm/test-u32-nfkc-big.sh: New file.
9476         * tests/uninorm/test-u32-nfkc-big.c: New file.
9477         * modules/uninorm/nfkc-tests: New file.
9478
9479         New module 'uninorm/nfkc'.
9480         * lib/uninorm/nfkc.c: New file.
9481         * modules/uninorm/nfkc: New file.
9482
9483         Tests for module 'uninorm/nfkd'.
9484         * tests/uninorm/test-nfkd.c: New file.
9485         * tests/uninorm/test-u8-nfkd.c: New file.
9486         * tests/uninorm/test-u16-nfkd.c: New file.
9487         * tests/uninorm/test-u32-nfkd.c: New file.
9488         * tests/uninorm/test-u32-nfkd-big.sh: New file.
9489         * tests/uninorm/test-u32-nfkd-big.c: New file.
9490         * modules/uninorm/nfkd-tests: New file.
9491
9492         New module 'uninorm/nfkd'.
9493         * lib/uninorm/nfkd.c: New file.
9494         * modules/uninorm/nfkd: New file.
9495
9496         Tests for module 'uninorm/nfc'.
9497         * tests/uninorm/test-nfc.c: New file.
9498         * tests/uninorm/test-u8-nfc.c: New file.
9499         * tests/uninorm/test-u16-nfc.c: New file.
9500         * tests/uninorm/test-u32-nfc.c: New file.
9501         * tests/uninorm/test-u32-nfc-big.sh: New file.
9502         * tests/uninorm/test-u32-nfc-big.c: New file.
9503         * modules/uninorm/nfc-tests: New file.
9504
9505         New module 'uninorm/nfc'.
9506         * lib/uninorm/nfc.c: New file.
9507         * modules/uninorm/nfc: New file.
9508
9509         Tests for module 'uninorm/nfd'.
9510         * tests/uninorm/test-nfd.c: New file.
9511         * tests/uninorm/test-u8-nfd.c: New file.
9512         * tests/uninorm/test-u16-nfd.c: New file.
9513         * tests/uninorm/test-u32-nfd.c: New file.
9514         * tests/uninorm/test-u32-nfd-big.sh: New file.
9515         * tests/uninorm/test-u32-nfd-big.c: New file.
9516         * tests/uninorm/test-u32-normalize-big.h: New file.
9517         * tests/uninorm/test-u32-normalize-big.c: New file.
9518         * tests/uninorm/NormalizationTest.txt: New file, created from
9519         Unicode 5.1.0 NormalizationTest.txt.
9520         * modules/uninorm/nfd-tests: New file.
9521
9522         New module 'uninorm/nfd'.
9523         * lib/uninorm/nfd.c: New file.
9524         * modules/uninorm/nfd: New file.
9525
9526         New module 'uninorm/u32-normalize'.
9527         * lib/uninorm/u32-normalize.c: New file.
9528         * modules/uninorm/u32-normalize: New file.
9529
9530         New module 'uninorm/u16-normalize'.
9531         * lib/uninorm/u16-normalize.c: New file.
9532         * modules/uninorm/u16-normalize: New file.
9533
9534         New module 'uninorm/u8-normalize'.
9535         * lib/uninorm/u8-normalize.c: New file.
9536         * lib/uninorm/normalize-internal.h: New file.
9537         * lib/uninorm/u-normalize-internal.h: New file.
9538         * modules/uninorm/u8-normalize: New file.
9539
9540         New module 'uninorm/decompose-internal'.
9541         * lib/uninorm/decompose-internal.c: New file.
9542         * modules/uninorm/decompose-internal: New file.
9543
9544         Tests for module 'uninorm/composition'.
9545         * tests/uninorm/test-composition.c: New file.
9546         * modules/uninorm/composition-tests: New file.
9547
9548         New module 'uninorm/composition'.
9549         * lib/uninorm/composition.c: New file.
9550         * lib/uninorm/composition-table.gperf: New file, generated by
9551         gen-uni-tables.
9552         * modules/uninorm/composition: New file.
9553
9554         Tests for module 'uninorm/compat-decomposition'.
9555         * tests/uninorm/test-compat-decomposition.c: New file.
9556         * modules/uninorm/compat-decomposition-tests: New file.
9557
9558         New module 'uninorm/compat-decomposition'.
9559         * lib/uninorm/decompose-internal.h: New file.
9560         * lib/uninorm/compat-decomposition.c: New file.
9561         * modules/uninorm/compat-decomposition: New file.
9562
9563         Tests for module 'uninorm/canonical-decomposition'.
9564         * tests/uninorm/test-canonical-decomposition.c: New file.
9565         * modules/uninorm/canonical-decomposition-tests: New file.
9566
9567         New module 'uninorm/canonical-decomposition'.
9568         * lib/uninorm/canonical-decomposition.c: New file.
9569         * modules/uninorm/canonical-decomposition: New file.
9570
9571         Tests for module 'uninorm/decomposition'.
9572         * tests/uninorm/test-decomposition.c: New file.
9573         * modules/uninorm/decomposition-tests: New file.
9574
9575         New module 'uninorm/decomposition'.
9576         * lib/uninorm/decomposition.c: New file.
9577         * modules/uninorm/decomposition: New file.
9578
9579         New module 'uninorm/decomposition-table'.
9580         * lib/uninorm/decomposition-table.h: New file.
9581         * lib/uninorm/decomposition-table.c: New file.
9582         * lib/uninorm/decomposition-table1.h: New file, generated by
9583         gen-uni-tables.
9584         * lib/uninorm/decomposition-table2.h: New file, generated by
9585         gen-uni-tables.
9586         * modules/uninorm/decomposition-table: New file.
9587
9588         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
9589         (UC_DECOMP_*): New enumeration items.
9590         (get_decomposition): New function.
9591         (struct decomp_table): New type.
9592         (output_decomposition, output_decomposition_tables): New functions.
9593         (unicode_composition_exclusions): New variable.
9594         (fill_composition_exclusions, debug_output_composition_tables): New
9595         functions.
9596         (main): Accept one more argument. Invoke fill_composition_exclusions.
9597         Output decomposition and composition tables.
9598
9599         New module 'uninorm/base'.
9600         * lib/uninorm.h: New file.
9601         * lib/unictype.h: Update comment.
9602         * modules/uninorm/base: New file.
9603
9604 2009-02-21  David Lutterkort  <lutter@redhat.com>
9605
9606         Tests for module 'safe-alloc'.
9607         * tests/test-safe-alloc.c: New file.
9608         * modules/safe-alloc-tests: New file.
9609
9610         New module 'safe-alloc'.
9611         * lib/safe-alloc.h: New file.
9612         * lib/safe-alloc.c: New file.
9613         * m4/safe-alloc.m4: New file.
9614         * modules/safe-alloc: New file.
9615         * doc/safe-alloc.texi: New file.
9616         * doc/gnulib.texi: Include it.
9617         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9618         safe-alloc.
9619
9620 2009-02-18  Bruno Haible  <bruno@clisp.org>
9621
9622         Fix link error on non-glibc systems.
9623         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
9624         variable.
9625         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9626
9627 2009-02-18  Jim Meyering  <meyering@redhat.com>
9628
9629         fts: avoid used-uninitialized error due to recent change
9630         * lib/fts.c (fts_read): Guard uses of the new member,
9631         parent->fts_n_dirs_remaining, since it's not relevant for
9632         the parent of a directory specified on the command-line.
9633
9634 2009-02-17  James Youngman  <jay@gnu.org>
9635             Bruno Haible  <bruno@clisp.org>
9636
9637         * m4/include_next.m4: Reformulate comment.
9638
9639 2009-02-16  Jim Meyering  <meyering@redhat.com>
9640
9641         fts: add #if guards so that the fts_lgpl module still builds
9642         * lib/fts.c: Guard just-added hash-table-using parts with
9643         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
9644         Reported by Simon Josefsson.
9645
9646 2009-02-15  Bruno Haible  <bruno@clisp.org>
9647
9648         * modules/array-mergesort-tests: New file.
9649         * tests/test-array-mergesort.c: New file.
9650
9651         New module 'array-mergesort'.
9652         * modules/array-mergesort: New file.
9653         * lib/array-mergesort.h: New file.
9654
9655 2009-02-15  Bruno Haible  <bruno@clisp.org>
9656
9657         Fix 2009-02-07 commit.
9658         * lib/gen-uni-tables.c (output_predicate, output_category,
9659         output_combclass, output_bidi_category, output_decimal_digit,
9660         output_digit, output_numeric, output_mirror, output_scripts,
9661         output_ident_category, output_simple_mapping): Fix format directives.
9662         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
9663
9664 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
9665
9666         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
9667         fixes are available from IBM.
9668
9669 2009-02-13  Jim Meyering  <meyering@redhat.com>
9670
9671         fts: arrange not to stat non-directories in more cases
9672         This makes GNU find (when it doesn't need to stat each file)
9673         *much* more efficient at traversing reiserfs file systems.
9674         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
9675         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
9676         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
9677         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
9678         (leaf_optimization_applies): New function.
9679         (LCO_hash, LCO_compare): New helper functions.
9680         (link_count_optimize_ok): New function.
9681         (fts_stat): Initialize new member (if dir).
9682         (fts_read): Decrement parent's fts_n_dirs_remaining count if
9683         we've just stat'ed a directory.  Skip the stat call when possible.
9684         ---
9685         Note this AFS-related exchange:
9686         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
9687         and note find's pioctl call in find/fstype.c.
9688         But that is necessary only if you want to enable the
9689         optimization for AFS, and for now, I don't.
9690
9691         fts: move a function definition "up" (no semantic change)
9692         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
9693         "up" to precede upcoming use of a related function.
9694
9695 2009-02-11  Jim Meyering  <meyering@redhat.com>
9696
9697         fts: correct internal computation of nlinks (optimization-related)
9698         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
9699         whether the current entry is a directory, so don't test it.
9700
9701 2009-02-10  Bruno Haible  <bruno@clisp.org>
9702
9703         Tests for module 'uniwbrk/ulc-wordbreaks'.
9704         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
9705         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
9706         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
9707
9708         Tests for module 'uniwbrk/u32-wordbreaks'.
9709         * modules/uniwbrk/u32-wordbreaks-tests: New file.
9710         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
9711
9712         Tests for module 'uniwbrk/u16-wordbreaks'.
9713         * modules/uniwbrk/u16-wordbreaks-tests: New file.
9714         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
9715
9716         Tests for module 'uniwbrk/u8-wordbreaks'.
9717         * modules/uniwbrk/u8-wordbreaks-tests: New file.
9718         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
9719
9720 2009-02-10  Bruno Haible  <bruno@clisp.org>
9721
9722         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
9723         property.
9724         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
9725         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
9726         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
9727
9728 2009-02-10  Simon Josefsson  <simon@josefsson.org>
9729
9730         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
9731         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
9732
9733 2009-02-10  Bruno Haible  <bruno@clisp.org>
9734
9735         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
9736         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
9737         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
9738         * lib/unilbrk/u8-possible-linebreaks.c: Update.
9739         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
9740         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
9741
9742 2009-02-09  Simon Josefsson  <simon@josefsson.org>
9743
9744         * lib/sockets.h (gl_fd_to_handle): New function.
9745
9746         * tests/test-sockets.c: Call gl_fd_to_handle.
9747
9748 2009-02-09  Bruno Haible  <bruno@clisp.org>
9749
9750         * doc/havelib.texi: Document the conventions on bi-arch systems.
9751
9752 2009-02-08  Bruno Haible  <bruno@clisp.org>
9753
9754         Document the AC_LIB_LINKFLAGS macro.
9755         * doc/havelib.texi: New file, mostly written on 2005-05-24.
9756         * doc/gnulib.texi: Include it.
9757
9758 2009-02-08  Bruno Haible  <bruno@clisp.org>
9759
9760         Fix wrong order of sections, compared to TOC.
9761         * doc/gnulib.texi: Include relocatable-maint.texi after the
9762         "Regular expressions" node, not before.
9763
9764 2009-02-08  Bruno Haible  <bruno@clisp.org>
9765
9766         Tests for module 'unicase/totitle'.
9767         * modules/unicase/totitle-tests: New file.
9768
9769         Tests for module 'unicase/tolower'.
9770         * modules/unicase/tolower-tests: New file.
9771
9772         Tests for module 'unicase/toupper'.
9773         * modules/unicase/toupper-tests: New file.
9774         * tests/unicase/test-mapping-part1.h: New file.
9775         * tests/unicase/test-mapping-part2.h: New file.
9776
9777         New module 'unicase/totitle'.
9778         * modules/unicase/totitle: New file.
9779         * lib/unicase/totitle.c: New file.
9780
9781         New module 'unicase/tolower'.
9782         * modules/unicase/tolower: New file.
9783         * lib/unicase/tolower.c: New file.
9784
9785         New module 'unicase/toupper'.
9786         * modules/unicase/toupper: New file.
9787         * lib/unicase/toupper.c: New file.
9788         * lib/unicase/simple-mapping.h: New file.
9789
9790         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
9791         (mapping_table): New structure.
9792         (output_simple_mapping): New function.
9793         (main): Invoke output_simple_mapping_test and output_simple_mapping.
9794         * modules/gen-uni-tables (Description): Update.
9795         * lib/unicase/toupper.h: New file, automatically generated by
9796         gen-uni-tables.
9797         * lib/unicase/tolower.h: New file, automatically generated by
9798         gen-uni-tables.
9799         * lib/unicase/totitle.h: New file, automatically generated by
9800         gen-uni-tables.
9801         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
9802         gen-uni-tables.
9803         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
9804         gen-uni-tables.
9805         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
9806         gen-uni-tables.
9807
9808         New module 'unicase/base'.
9809         * modules/unicase/base: New file.
9810         * lib/unicase.h: New file.
9811
9812 2009-02-08  Bruno Haible  <bruno@clisp.org>
9813
9814         New module 'uniwbrk/ulc-wordbreaks'.
9815         * modules/uniwbrk/ulc-wordbreaks: New file.
9816         * lib/uniwbrk/ulc-wordbreaks.c: New file.
9817
9818         New module 'uniwbrk/u32-wordbreaks'.
9819         * modules/uniwbrk/u32-wordbreaks: New file.
9820         * lib/uniwbrk/u32-wordbreaks.c: New file.
9821
9822         New module 'uniwbrk/u16-wordbreaks'.
9823         * modules/uniwbrk/u16-wordbreaks: New file.
9824         * lib/uniwbrk/u16-wordbreaks.c: New file.
9825
9826         New module 'uniwbrk/u8-wordbreaks'.
9827         * modules/uniwbrk/u8-wordbreaks: New file.
9828         * lib/uniwbrk/u8-wordbreaks.c: New file.
9829         * lib/uniwbrk/u-wordbreaks.h: New file.
9830
9831         New module 'uniwbrk/table'.
9832         * modules/uniwbrk/table: New file.
9833         * lib/uniwbrk/wbrktable.h: New file.
9834         * lib/uniwbrk/wbrktable.c: New file.
9835
9836         New module 'uniwbrk/wordbreak-property'.
9837         * modules/uniwbrk/wordbreak-property: New file.
9838         * lib/uniwbrk/wordbreak-property.c: New file.
9839
9840         * lib/gen-uni-tables.c (WBP_*): New enum items.
9841         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
9842         (unicode_org_wbp): New variable.
9843         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
9844         New functions.
9845         (wbp_table): New structure.
9846         (output_wbp, output_wbrk_tables): New functions.
9847         (main): Accept additional argument. Invoke fill_org_wbp,
9848         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
9849         output_wbrk_tables.
9850         * modules/gen-uni-tables (Description): Update.
9851         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
9852         gen-uni-tables.
9853
9854         New module 'uniwbrk/base'.
9855         * modules/uniwbrk/base: New file.
9856         * lib/uniwbrk.h: New file.
9857
9858 2009-02-08  Bruno Haible  <bruno@clisp.org>
9859
9860         Update to Unicode 5.1.0.
9861         * lib/gen-uni-tables.c (is_property_alphabetic): Include
9862         U+2185..U+2188.
9863         (is_property_default_ignorable_code_point): Don't include characters
9864         of category Cc or Cs and not-a-characters.
9865         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
9866         U+0D79, U+109E, U+109F, U+A60C.
9867         * lib/unictype/bidi_of.h: Regenerated.
9868         * lib/unictype/blocks.h: Regenerated.
9869         * lib/unictype/categ_C.h: Regenerated.
9870         * lib/unictype/categ_Cf.h: Regenerated.
9871         * lib/unictype/categ_Cn.h: Regenerated.
9872         * lib/unictype/categ_L.h: Regenerated.
9873         * lib/unictype/categ_Ll.h: Regenerated.
9874         * lib/unictype/categ_Lm.h: Regenerated.
9875         * lib/unictype/categ_Lo.h: Regenerated.
9876         * lib/unictype/categ_Lu.h: Regenerated.
9877         * lib/unictype/categ_M.h: Regenerated.
9878         * lib/unictype/categ_Mc.h: Regenerated.
9879         * lib/unictype/categ_Me.h: Regenerated.
9880         * lib/unictype/categ_Mn.h: Regenerated.
9881         * lib/unictype/categ_N.h: Regenerated.
9882         * lib/unictype/categ_Nd.h: Regenerated.
9883         * lib/unictype/categ_Nl.h: Regenerated.
9884         * lib/unictype/categ_No.h: Regenerated.
9885         * lib/unictype/categ_P.h: Regenerated.
9886         * lib/unictype/categ_Pd.h: Regenerated.
9887         * lib/unictype/categ_Pe.h: Regenerated.
9888         * lib/unictype/categ_Pf.h: Regenerated.
9889         * lib/unictype/categ_Pi.h: Regenerated.
9890         * lib/unictype/categ_Po.h: Regenerated.
9891         * lib/unictype/categ_Ps.h: Regenerated.
9892         * lib/unictype/categ_S.h: Regenerated.
9893         * lib/unictype/categ_Sk.h: Regenerated.
9894         * lib/unictype/categ_Sm.h: Regenerated.
9895         * lib/unictype/categ_So.h: Regenerated.
9896         * lib/unictype/categ_of.h: Regenerated.
9897         * lib/unictype/combining.h: Regenerated.
9898         * lib/unictype/ctype_alnum.h: Regenerated.
9899         * lib/unictype/ctype_alpha.h: Regenerated.
9900         * lib/unictype/ctype_graph.h: Regenerated.
9901         * lib/unictype/ctype_lower.h: Regenerated.
9902         * lib/unictype/ctype_print.h: Regenerated.
9903         * lib/unictype/ctype_punct.h: Regenerated.
9904         * lib/unictype/ctype_upper.h: Regenerated.
9905         * lib/unictype/decdigit.h: Regenerated.
9906         * lib/unictype/digit.h: Regenerated.
9907         * lib/unictype/mirror.h: Regenerated.
9908         * lib/unictype/numeric.h: Regenerated.
9909         * lib/unictype/pr_alphabetic.h: Regenerated.
9910         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
9911         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
9912         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
9913         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
9914         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
9915         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
9916         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
9917         * lib/unictype/pr_combining.h: Regenerated.
9918         * lib/unictype/pr_dash.h: Regenerated.
9919         * lib/unictype/pr_decimal_digit.h: Regenerated.
9920         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
9921         * lib/unictype/pr_deprecated.h: Regenerated.
9922         * lib/unictype/pr_diacritic.h: Regenerated.
9923         * lib/unictype/pr_extender.h: Regenerated.
9924         * lib/unictype/pr_format_control.h: Regenerated.
9925         * lib/unictype/pr_grapheme_base.h: Regenerated.
9926         * lib/unictype/pr_grapheme_extend.h: Regenerated.
9927         * lib/unictype/pr_grapheme_link.h: Regenerated.
9928         * lib/unictype/pr_id_continue.h: Regenerated.
9929         * lib/unictype/pr_id_start.h: Regenerated.
9930         * lib/unictype/pr_ideographic.h: Regenerated.
9931         * lib/unictype/pr_ignorable_control.h: Regenerated.
9932         * lib/unictype/pr_lowercase.h: Regenerated.
9933         * lib/unictype/pr_math.h: Regenerated.
9934         * lib/unictype/pr_numeric.h: Regenerated.
9935         * lib/unictype/pr_other_alphabetic.h: Regenerated.
9936         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
9937         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
9938         * lib/unictype/pr_other_id_continue.h: Regenerated.
9939         * lib/unictype/pr_other_lowercase.h: Regenerated.
9940         * lib/unictype/pr_other_math.h: Regenerated.
9941         * lib/unictype/pr_punctuation.h: Regenerated.
9942         * lib/unictype/pr_sentence_terminal.h: Regenerated.
9943         * lib/unictype/pr_soft_dotted.h: Regenerated.
9944         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
9945         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
9946         * lib/unictype/pr_unified_ideograph.h: Regenerated.
9947         * lib/unictype/pr_uppercase.h: Regenerated.
9948         * lib/unictype/pr_xid_continue.h: Regenerated.
9949         * lib/unictype/pr_xid_start.h: Regenerated.
9950         * lib/unictype/pr_zero_width.h: Regenerated.
9951         * lib/unictype/scripts.h: Regenerated.
9952         * lib/unictype/scripts_byname.gperf: Regenerated.
9953         * lib/unictype/sy_java_ident.h: Regenerated.
9954         * lib/unilbrk/lbrkprop1.h: Regenerated.
9955         * lib/unilbrk/lbrkprop2.h: Regenerated.
9956         * tests/unictype/test-categ_C.c: Regenerated.
9957         * tests/unictype/test-categ_Cf.c: Regenerated.
9958         * tests/unictype/test-categ_Cn.c: Regenerated.
9959         * tests/unictype/test-categ_L.c: Regenerated.
9960         * tests/unictype/test-categ_Ll.c: Regenerated.
9961         * tests/unictype/test-categ_Lm.c: Regenerated.
9962         * tests/unictype/test-categ_Lo.c: Regenerated.
9963         * tests/unictype/test-categ_Lu.c: Regenerated.
9964         * tests/unictype/test-categ_M.c: Regenerated.
9965         * tests/unictype/test-categ_Mc.c: Regenerated.
9966         * tests/unictype/test-categ_Me.c: Regenerated.
9967         * tests/unictype/test-categ_Mn.c: Regenerated.
9968         * tests/unictype/test-categ_N.c: Regenerated.
9969         * tests/unictype/test-categ_Nd.c: Regenerated.
9970         * tests/unictype/test-categ_Nl.c: Regenerated.
9971         * tests/unictype/test-categ_No.c: Regenerated.
9972         * tests/unictype/test-categ_P.c: Regenerated.
9973         * tests/unictype/test-categ_Pd.c: Regenerated.
9974         * tests/unictype/test-categ_Pe.c: Regenerated.
9975         * tests/unictype/test-categ_Pf.c: Regenerated.
9976         * tests/unictype/test-categ_Pi.c: Regenerated.
9977         * tests/unictype/test-categ_Po.c: Regenerated.
9978         * tests/unictype/test-categ_Ps.c: Regenerated.
9979         * tests/unictype/test-categ_S.c: Regenerated.
9980         * tests/unictype/test-categ_Sk.c: Regenerated.
9981         * tests/unictype/test-categ_Sm.c: Regenerated.
9982         * tests/unictype/test-categ_So.c: Regenerated.
9983         * tests/unictype/test-ctype_alnum.c: Regenerated.
9984         * tests/unictype/test-ctype_alpha.c: Regenerated.
9985         * tests/unictype/test-ctype_graph.c: Regenerated.
9986         * tests/unictype/test-ctype_lower.c: Regenerated.
9987         * tests/unictype/test-ctype_print.c: Regenerated.
9988         * tests/unictype/test-ctype_punct.c: Regenerated.
9989         * tests/unictype/test-ctype_upper.c: Regenerated.
9990         * tests/unictype/test-decdigit.h: Regenerated.
9991         * tests/unictype/test-digit.h: Regenerated.
9992         * tests/unictype/test-numeric.h: Regenerated.
9993         * tests/unictype/test-pr_alphabetic.c: Regenerated.
9994         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
9995         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
9996         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
9997         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
9998         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
9999         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
10000         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
10001         * tests/unictype/test-pr_combining.c: Regenerated.
10002         * tests/unictype/test-pr_dash.c: Regenerated.
10003         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
10004         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
10005         * tests/unictype/test-pr_deprecated.c: Regenerated.
10006         * tests/unictype/test-pr_diacritic.c: Regenerated.
10007         * tests/unictype/test-pr_extender.c: Regenerated.
10008         * tests/unictype/test-pr_format_control.c: Regenerated.
10009         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
10010         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
10011         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
10012         * tests/unictype/test-pr_id_continue.c: Regenerated.
10013         * tests/unictype/test-pr_id_start.c: Regenerated.
10014         * tests/unictype/test-pr_ideographic.c: Regenerated.
10015         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
10016         * tests/unictype/test-pr_lowercase.c: Regenerated.
10017         * tests/unictype/test-pr_math.c: Regenerated.
10018         * tests/unictype/test-pr_numeric.c: Regenerated.
10019         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
10020         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
10021         Regenerated.
10022         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
10023         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
10024         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
10025         * tests/unictype/test-pr_other_math.c: Regenerated.
10026         * tests/unictype/test-pr_punctuation.c: Regenerated.
10027         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
10028         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
10029         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
10030         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
10031         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
10032         * tests/unictype/test-pr_uppercase.c: Regenerated.
10033         * tests/unictype/test-pr_xid_continue.c: Regenerated.
10034         * tests/unictype/test-pr_xid_start.c: Regenerated.
10035         * tests/unictype/test-pr_zero_width.c: Regenerated.
10036
10037         Update to Unicode 5.1.0.
10038         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
10039         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
10040         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
10041         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
10042         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
10043         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
10044         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
10045         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
10046         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
10047         (nonspacing_table_ind): Update.
10048         * tests/uniwidth/test-uc_width2.sh: Update expected result.
10049
10050         Update to Unicode 5.1.0.
10051         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
10052         code transform.
10053         * lib/uniname/uniname.c (unicode_character_name,
10054         unicode_name_character): Add the range 0x1Fxxx to the code transform.
10055         * lib/uniname/uninames.h: Regenerated.
10056         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
10057
10058 2009-02-07  Bruno Haible  <bruno@clisp.org>
10059
10060         Merge gen-ctype and gen-lbrk into a single program.
10061         * lib/gen-uni-tables.c: New file, incorporating
10062         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
10063         Add directory prefixes to the names of the generated files.
10064         * lib/unictype/gen-ctype.c: Remove file.
10065         * lib/unilbrk/gen-lbrk.c: Remove file.
10066         * modules/gen-uni-tables: New file.
10067         * modules/unictype/gen-ctype: Remove file.
10068         * modules/unilbrk/gen-lbrk: Remove file.
10069
10070 2009-02-07  Bruno Haible  <bruno@clisp.org>
10071
10072         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
10073
10074         New module 'unistr/u32-strcoll'.
10075         * modules/unistr/u32-strcoll: New file.
10076         * lib/unistr/u32-strcoll.c: New file.
10077
10078         New module 'unistr/u16-strcoll'.
10079         * modules/unistr/u16-strcoll: New file.
10080         * lib/unistr/u16-strcoll.c: New file.
10081
10082         New module 'unistr/u8-strcoll'.
10083         * modules/unistr/u8-strcoll: New file.
10084         * lib/unistr/u8-strcoll.c: New file.
10085         * lib/unistr/u-strcoll.h: New file.
10086
10087 2009-02-07  Bruno Haible  <bruno@clisp.org>
10088
10089         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
10090         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10091         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10092         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
10093         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
10094         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
10095
10096 2009-02-07  Bruno Haible  <bruno@clisp.org>
10097
10098         Make 64-bit clean.
10099         * lib/unictype/gen-ctype.c (output_predicate, output_category,
10100         output_combclass, output_bidi_category, output_decimal_digit,
10101         output_digit, output_numeric, output_mirror, output_scripts,
10102         output_ident_category): Use proper width specifier in format strings.
10103
10104 2009-02-07  Bruno Haible  <bruno@clisp.org>
10105
10106         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
10107         failure behaviour.
10108
10109 2009-02-07  Jim Meyering  <meyering@redhat.com>
10110
10111         regex: avoid compilation failure with upcoming gcc-4.4
10112         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
10113         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
10114         "... error: integer overflow in preprocessor expression".
10115
10116 2009-02-05  Ben Pfaff  <blp@gnu.org>
10117
10118         Fix link errors on Windows when close module is used.
10119         * modules/close: Add $(LIB_CLOSE) to Link section.
10120         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
10121         $(LIB_CLOSE) on Windows.
10122
10123 2009-02-05  Jim Meyering  <meyering@redhat.com>
10124
10125         still avoid unused-parameter warnings, but do it cleanly
10126         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
10127         (get_fs_usage): Cast to void instead.
10128         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
10129         (dev_from_mount_options, read_file_system_list): Cast to void.
10130         Prompted by Bruno Haible.
10131
10132 2009-02-04  Jim Meyering  <meyering@redhat.com>
10133
10134         fsusage.c: correct copyright year
10135         * lib/fsusage.c: Reflect year in which the change is pushed into
10136
10137         avoid misc. warnings
10138         * lib/fsusage.c (UNUSED_PARAM): Define.
10139         (get_fs_usage): Mark parameter "disk" as unused.
10140         * lib/getugroups.c (getgrent): Use "void" in prototype.
10141         * lib/mountlist.c: Mark unused parameters.
10142         (read_file_system_list): Declare a local with "const".
10143         * lib/nanosleep.c (getnow): Declare static.
10144         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
10145
10146         dirfd: set errno upon failure
10147         * lib/dirfd.c: Include <errno.h>.
10148         Set errno to ENOTSUP when returning -1.
10149         * modules/dirfd (Depends-on): Add errno.
10150         Suggested by John Kodis <kodis@comcast.net>.
10151
10152 2009-02-01  Bruno Haible  <bruno@clisp.org>
10153
10154         Don't assume sizeof (long) >= sizeof (void *).
10155         * lib/memcmp.c: Include stdint.h.
10156         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
10157         srcp2 to 'const byte *'.
10158         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
10159         types to uintptr_t.
10160         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
10161         * modules/memcmp (Depends-on): Add stdint.
10162         Reported by Ozkan Sezer <sezeroz@gmail.com>.
10163
10164 2009-01-30  Eric Blake  <ebb9@byu.net>
10165
10166         fix more require-before-expand issues
10167         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
10168         expand, AC_PROG_AWK.
10169         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
10170
10171 2009-01-28  Eric Blake  <ebb9@byu.net>
10172
10173         version-etc: use consistent URL formatting
10174         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
10175         Improve formatting.  Use fputs for string without %.
10176
10177 2009-01-28  Jim Meyering  <meyering@redhat.com>
10178
10179         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
10180         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
10181         "underquoted definition of NAME" from autoconf-2.59.
10182
10183 2009-01-28  Bruno Haible  <bruno@clisp.org>
10184
10185         * doc/gnulib.texi: Add "Obsolete modules" to index.
10186
10187 2009-01-28  Jim Meyering  <meyering@redhat.com>
10188
10189         useless-if-before-free: recognize more variants
10190         * build-aux/useless-if-before-free: Also recognize e.g.,
10191         if (NULL != p) free (p);
10192
10193 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
10194
10195         test-getaddrinfo: skip (don't fail) this test when there's no network
10196         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
10197         on the presumption that it means you lack network access.
10198
10199 2009-01-26  Jim Meyering  <meyering@redhat.com>
10200
10201         fflush: avoid warnings on modern systems
10202         * lib/fflush.c (rpl_fflush): Move declarations of locals,
10203         pos and result, into scopes where they're used.
10204
10205 2009-01-26  Eric Blake  <ebb9@byu.net>
10206
10207         Silence warning reintroduced by recent extensions patch.
10208         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
10209         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
10210         autoconf.
10211
10212         Backport improved autoconf semantics of AC_DEFUN_ONCE.
10213         * m4/00gnulib.m4: New file.
10214         * gnulib-tool (func_get_filelist): Always use it.
10215         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
10216         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
10217
10218 2009-01-25  Bruno Haible  <bruno@clisp.org>
10219
10220         Make test-quotearg work on MacOS X and AIX.
10221         * tests/test-quotearg.sh: New file.
10222         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
10223         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
10224         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
10225         include <libintl.h>.
10226         (fake_locale): Remove variable.
10227         (gettext, dgettext, dcgettext): Remove functions.
10228         (main): Instead of setting a fake locale, set a real locale. Call
10229         textdomain and bindtextdomain.
10230         * modules/quotearg-tests (Files): Add the new files.
10231         (Depends-on): Add gettext, setenv, unsetenv.
10232         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10233         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
10234         Augment TESTS_ENVIRONMENT.
10235
10236 2009-01-25  Bruno Haible  <bruno@clisp.org>
10237
10238         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
10239         fr_FR.ISO8859-1 locale on MacOS X.
10240         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
10241         ja_JP.eucJP locale on MacOS X.
10242         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
10243         zh_CN.GB18030 locale on MacOS X.
10244
10245 2009-01-25  Bruno Haible  <bruno@clisp.org>
10246
10247         Avoid link errors on MacOS X 10.3.
10248         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
10249         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10250
10251 2009-01-25  Bruno Haible  <bruno@clisp.org>
10252
10253         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10254         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
10255         * modules/pipe (Files): Remove m4/posix_spawn.m4.
10256         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10257         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
10258         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10259         posix_spawnattr_init, posix_spawnattr_setsigmask,
10260         posix_spawnattr_setflags, posix_spawnattr_destroy.
10261
10262         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10263         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
10264         * modules/execute (Files): Remove m4/posix_spawn.m4.
10265         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10266         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10267         posix_spawnattr_init, posix_spawnattr_setsigmask,
10268         posix_spawnattr_setflags, posix_spawnattr_destroy.
10269
10270 2009-01-25  Bruno Haible  <bruno@clisp.org>
10271
10272         * lib/glthread/threadlib.c: Include <stdlib.h>.
10273
10274 2009-01-25  Bruno Haible  <bruno@clisp.org>
10275
10276         * lib/glthread/threadlib.c (dummy): New declaration.
10277
10278 2009-01-25  Bruno Haible  <bruno@clisp.org>
10279
10280         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
10281         multibyte characters also for the GB18030 encoding. Don't crash when
10282         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
10283
10284 2009-01-25  Bruno Haible  <bruno@clisp.org>
10285
10286         Avoid redefining 'struct random_data' on OSF/1 5.1.
10287         * lib/stdlib.in.h: Include <random.h> if it exists.
10288         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
10289         HAVE_RANDOM_H. Include <random.h> when testing whether
10290         'struct random_data' exists.
10291         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
10292
10293 2009-01-25  Bruno Haible  <bruno@clisp.org>
10294
10295         Don't install charset.alias on MacOS X >= 10.3.
10296         * lib/localcharset.c (DARWIN7): New macro.
10297         (get_charset_aliases): Hardcode the result for Darwin7.
10298         * modules/localcharset (install-exec-local): Don't install
10299         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
10300
10301 2009-01-25  Bruno Haible  <bruno@clisp.org>
10302
10303         Don't install charset.alias on mingw and Cygwin.
10304         * modules/localcharset (install-exec-local): Don't install
10305         charset.alias on mingw and Cygwin, if the file does not yet exist.
10306         The result for these platforms is hardcoded in localcharset.c.
10307
10308 2009-01-25  Bruno Haible  <bruno@clisp.org>
10309
10310         Make it possible again to use AC_GNU_SOURCE together with gnulib.
10311         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
10312         before requiring AC_USE_SYSTEM_EXTENSIONS.
10313
10314 2009-01-25  Jim Meyering  <meyering@redhat.com>
10315
10316         c-strtod: avoid warnings
10317         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
10318         "assignment discards qualifiers from pointer target type" warnings.
10319
10320 2009-01-24  Bruno Haible  <bruno@clisp.org>
10321
10322         Add support for non-UTF-8 locales on MacOS X.
10323         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
10324         canonical encodings. For Darwin 7 and newer, don't map traditional
10325         encodings to UTF-8.
10326         Reported by Vincent Lefevre <vincent@vinc17.org>
10327         at <http://savannah.gnu.org/bugs/?25235>.
10328
10329 2009-01-24  Bruno Haible  <bruno@clisp.org>
10330
10331         * doc/gnulib.texi (Obsolete modules): New section.
10332         Reported by Mike Frysinger <vapier@gentoo.org>.
10333
10334 2009-01-24  Bruno Haible  <bruno@clisp.org>
10335
10336         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
10337         (%.dvi): New rule.
10338
10339 2009-01-24  Bruno Haible  <bruno@clisp.org>
10340
10341         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
10342         Reported by Eric Blake.
10343
10344 2009-01-24  Bruno Haible  <bruno@clisp.org>
10345
10346         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
10347         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
10348         Reported by Gary V. Vaughan <gary@gnu.org>.
10349
10350 2009-01-24  Bruno Haible  <bruno@clisp.org>
10351
10352         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
10353
10354 2009-01-23  Bruno Haible  <bruno@clisp.org>
10355
10356         Make c-strtod, c-strtold usable in libraries.
10357         * lib/c-strtod.c: Include string.h instead of xalloc.h.
10358         (C_STRTOD): Call strdup instead of xstrdup.
10359         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
10360         * modules/c-strtold (Depends-on): Likewise.
10361         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
10362         * NEWS: Mention the change.
10363         Reported by Michael Gold <mgold@ncf.ca>.
10364
10365 2009-01-23  Jim Meyering  <meyering@redhat.com>
10366
10367         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
10368         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
10369         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
10370
10371 2009-01-23  Simon Josefsson  <simon@josefsson.org>
10372
10373         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
10374         GNU CoreUtils.
10375         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
10376         * modules/version-etc (Description): Update.
10377
10378 2009-01-22  Bruno Haible  <bruno@clisp.org>
10379
10380         Cache the C locale object.
10381         * lib/c-strtod.c (c_locale_cache): New variable.
10382         (c_locale): New function.
10383         (C_STRTOD): Use it, and don't call freelocale.
10384         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
10385         Suggested by Paolo Bonzini.
10386
10387 2009-01-21  Bruno Haible  <bruno@clisp.org>
10388
10389         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
10390         conditions other than overflow.
10391
10392 2009-01-21  Bruno Haible  <bruno@clisp.org>
10393
10394         * lib/c-strtod.c: Include errno.h.
10395         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
10396         value from STRTOD_L and STRTOD.
10397
10398 2009-01-21  Bruno Haible  <bruno@clisp.org>
10399         and Jim Meyering  <meyering@redhat.com>
10400
10401         nanosleep: skip configure test (fail it) for apple universal builds
10402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
10403         universal builds, assume that nanosleep does not work.
10404         * modules/nanosleep (Depends-on): Add multiarch.
10405
10406         mktime: skip configure test (fail it) for apple universal builds
10407         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
10408         universal builds, assume that mktime does not work.
10409         * modules/mktime (Depends-on): Add multiarch.
10410
10411 2009-01-21  Eric Blake  <ebb9@byu.net>
10412
10413         multiarch: avoid expand-before-require warning
10414         * modules/multiarch (configure.ac): Require, rather than expand,
10415         gl_MULTIARCH.
10416         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
10417         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
10418         enforce that all clients require it.  Partial reversion of
10419         2008-12-29 patch.
10420
10421         error: avoid expand-before-require warning
10422         * modules/errno (configure.ac): Require, rather than expand,
10423         gl_HEADER_ERRNO_H.
10424         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
10425         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
10426         enforce that all clients require it.
10427
10428         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
10429         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
10430         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
10431         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
10432
10433 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
10434
10435         Revert:
10436         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
10437
10438         regex: do not depend on obsolete modules.
10439         * modules/regex: Remove memcmp and memmove.
10440
10441 2009-01-20  Bruno Haible  <bruno@clisp.org>
10442
10443         Make the 'link' module link on Windows NT 4.
10444         * lib/link.c (_WIN32_WINNT): Don't define.
10445         (CreateHardLinkFuncType): New type.
10446         (CreateHardLinkFunc, initialized): New variables.
10447         (initialize): New function.
10448         (link): Invoke CreateHardLink indirectly through the function pointer.
10449
10450 2009-01-20  Bruno Haible  <bruno@clisp.org>
10451
10452         Fix compilation failure on mingw.
10453         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
10454
10455 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
10456
10457         * doc/c-strtod.texi: Mention a couple of restrictions.
10458
10459 2009-01-20  Jim Meyering  <meyering@redhat.com>
10460
10461         gettimeofday: move more declarations out of functions
10462         * lib/gettimeofday.c: Move extern declarations of tzset and
10463         gmtime out of containing functions.  Prompted by Bruno Haible.
10464
10465 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
10466
10467         regex: do not depend on obsolete modules.
10468         * modules/regex: Remove memcmp and memmove.
10469
10470 2009-01-19  Bruno Haible  <bruno@clisp.org>
10471
10472         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
10473         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
10474         gl_BIGENDIAN, not AC_C_BIGENDIAN.
10475         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
10476         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
10477
10478 2009-01-19  Bruno Haible  <bruno@clisp.org>
10479
10480         * tests/test-link.c: Include <errno.h>.
10481         (main): Exit with code 77 when a hard link cannot be created due to
10482         the file system.
10483         * tests/test-link.sh: Skip test when a hard link cannot be created due
10484         to the file system.
10485         Suggested by Eric Blake.
10486
10487 2009-01-19  Martin Lambers  <marlam@marlam.de>
10488
10489         * modules/link-tests: New file.
10490         * tests/test-link.sh: New file.
10491         * tests/test-link.c: New file.
10492
10493 2009-01-19  Eric Blake  <ebb9@byu.net>
10494
10495         doc: mention another function added in cygwin 1.7.0
10496         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
10497         Another new function in cygwin 1.7.
10498
10499 2009-01-19  Bruno Haible  <bruno@clisp.org>
10500
10501         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
10502         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
10503         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
10504         gl_BIGENDIAN, not AC_C_BIGENDIAN.
10505         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10506         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
10507         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10508         * m4/md4.m4 (gl_MD4): Likewise.
10509         * m4/md5.m4 (gl_MD5): Likewise.
10510         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
10511         * m4/sha1.m4 (gl_SHA1): Likewise.
10512         * m4/sha256.m4 (gl_SHA256): Likewise.
10513         * m4/sha512.m4 (gl_SHA512): Likewise.
10514
10515 2009-01-19  Bruno Haible  <bruno@clisp.org>
10516
10517         * modules/uniname/uniname-tests (Depends-on): Add progname.
10518         * tests/uniname/test-uninames.c: Include progname.h.
10519         (main): Call set_program_name.
10520
10521         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
10522         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
10523         (main): Call set_program_name.
10524
10525         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
10526         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
10527         (main): Call set_program_name.
10528
10529         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
10530         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
10531         (main): Call set_program_name.
10532
10533         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
10534         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
10535         (main): Call set_program_name.
10536
10537         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
10538         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
10539         (main): Call set_program_name.
10540
10541         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
10542         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
10543         (main): Call set_program_name.
10544
10545         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
10546         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
10547         (main): Call set_program_name.
10548
10549         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
10550         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
10551         (main): Call set_program_name.
10552
10553 2009-01-19  Eric Blake  <ebb9@byu.net>
10554
10555         test-unistd: test previous patch
10556         * tests/test-unistd.c: Test *_FILENO macros.
10557
10558         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
10559         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10560         Guarantee a definition.
10561         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
10562         * modules/unistd-safer (Depends-on): Add dependency on unistd.
10563         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
10564         * lib/dup-safer.c (STDERR_FILENO): Likewise.
10565         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10566         Likewise.
10567         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
10568         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
10569         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10570         Likewise.
10571         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
10572         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
10573         (STDERR_FILENO): Likewise.
10574         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
10575         (STDERR_FILENO): Likewise.
10576         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
10577         (STDERR_FILENO): Likewise.
10578         Reported by Elbert Pol.
10579
10580 2009-01-19  Eric Blake  <ebb9@byu.net>
10581
10582         doc: mention more functions added in cygwin 1.7.0
10583         * doc/posix-functions/abort.texi (abort): Update wording related
10584         to cygwin.
10585         * doc/posix-functions/daylight.texi (daylight): Likewise.
10586         * doc/posix-functions/optarg.texi (optarg): Likewise.
10587         * doc/posix-functions/optarg.texi (opterr): Likewise.
10588         * doc/posix-functions/optarg.texi (optind): Likewise.
10589         * doc/posix-functions/optarg.texi (optopt): Likewise.
10590         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
10591         worked in 1.5.x, and was withdrawn in 1.7.
10592         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10593         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
10594         cygwin versions.
10595         * doc/posix-functions/perror.texi (perror): Likewise.
10596         * doc/posix-functions/printf.texi (printf): Likewise.
10597         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
10598         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
10599         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10600         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10601         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10602         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
10603         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
10604         Likewise.
10605         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
10606         Likewise.
10607         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
10608         this function.
10609         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
10610         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
10611         Likewise.
10612         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
10613         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
10614         * doc/posix-functions/confstr.texi (confstr): Likewise.
10615         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
10616         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
10617         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
10618         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
10619         * doc/posix-functions/fputws.texi (fputws): Likewise.
10620         * doc/posix-functions/fwide.texi (fwide): Likewise.
10621         * doc/posix-functions/getwc.texi (getwc): Likewise.
10622         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
10623         * doc/posix-functions/putwc.texi (putwc): Likewise.
10624         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10625         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
10626         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
10627         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10628         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
10629         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
10630         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
10631         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
10632         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
10633         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
10634         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
10635
10636 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
10637
10638         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
10639         * lib/ioctl.c: Include <sys/ioctl.h>.
10640
10641 2009-01-19  Simon Josefsson  <simon@josefsson.org>
10642
10643         * modules/getdate-tests (Depends-on): Add progname.
10644         * tests/test-getdate.c: Use progname module, to avoid link errors
10645         on non-glibc systems.
10646
10647 2009-01-18  Simon Josefsson  <simon@josefsson.org>
10648
10649         * modules/filenamecat-tests (Depends-on): Add progname.
10650         * modules/fstrcmp-tests (Depends-on): Likewise.
10651
10652         * tests/test-filenamecat.c: Use progname module, to avoid link
10653         errors on non-glibc systems.
10654         * tests/test-fstrcmp.c: Likewise.
10655
10656 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
10657
10658         gettimeofday: avoid warning: nested extern declaration of 'localtime'
10659         * lib/gettimeofday.c: Move extern declaration out of function.
10660
10661 2009-01-18  Bruno Haible  <bruno@clisp.org>
10662
10663         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
10664         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
10665         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
10666
10667 2009-01-18  Bruno Haible  <bruno@clisp.org>
10668
10669         * lib/strftime.c (MEMPCPY): Remove unused macro.
10670         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
10671
10672 2009-01-18  Martin Lambers  <marlam@marlam.de>
10673
10674         New module 'link'.
10675         * lib/unistd.in.h (link): New declaration.
10676         * lib/link.c: New file.
10677         * m4/link.m4: New file.
10678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
10679         HAVE_LINK.
10680         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
10681         * modules/link: New file.
10682         * doc/posix-functions/link.texi: Mention the new module.
10683
10684 2009-01-18  Bruno Haible  <bruno@clisp.org>
10685
10686         * tests/test-avltree_list.c (main): Call set_program_name.
10687         * tests/test-avltree_oset.c (main): Likewise.
10688         * tests/test-obstack-printf.c: Include progname.h.
10689         (main): Call set_program_name.
10690         * tests/test-quotearg.c: Include progname.h.
10691         (main): Call set_program_name.
10692         * tests/test-xmemdup0.c: Include progname.h.
10693         (main): Call set_program_name.
10694
10695 2009-01-18  Bruno Haible  <bruno@clisp.org>
10696
10697         New module 'alphasort'.
10698         * lib/dirent.in.h (alphasort): New declaration.
10699         * lib/alphasort.c: New file, from glibc with modifications.
10700         * m4/alphasort.m4: New file.
10701         * modules/alphasort: New file.
10702         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
10703         HAVE_ALPHASORT.
10704         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
10705         HAVE_ALPHASORT.
10706         * doc/posix-functions/alphasort.texi: Mention the new module and the
10707         portability problems.
10708
10709 2009-01-18  Bruno Haible  <bruno@clisp.org>
10710
10711         New module 'scandir'.
10712         * lib/dirent.in.h (scandir): New declaration.
10713         * lib/scandir.c: New file, from glibc with modifications.
10714         * m4/scandir.m4: New file.
10715         * modules/scandir: New file.
10716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
10717         HAVE_SCANDIR.
10718         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
10719         HAVE_SCANDIR.
10720         * doc/posix-functions/scandir.texi: Mention the new module and the
10721         portability problems.
10722
10723 2009-01-17  Bruno Haible  <bruno@clisp.org>
10724
10725         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
10726         Update documentation.
10727         (func_remove_suffix): Escape all dots in the suffix. Update
10728         documentation.
10729         (func_filter_filelist): Update documentation.
10730         Reported by Ralf Wildenhues.
10731
10732 2009-01-17  Bruno Haible  <bruno@clisp.org>
10733
10734         * modules/dprintf-posix-tests: New file.
10735         * tests/test-dprintf-posix.sh: New file.
10736         * tests/test-dprintf-posix.c: New file.
10737
10738         New modules 'dprintf', 'dprintf-posix'.
10739         * lib/stdio.in.h (dprintf): New declaration.
10740         * lib/dprintf.c: New file.
10741         * m4/dprintf.m4: New file.
10742         * m4/dprintf-posix.m4: New file.
10743         * modules/dprintf: New file.
10744         * modules/dprintf-posix: New file.
10745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
10746         HAVE_DPRINTF, REPLACE_DPRINTF.
10747         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
10748         HAVE_DPRINTF, REPLACE_DPRINTF.
10749         * doc/posix-functions/dprintf.texi: Mention the new modules.
10750
10751 2009-01-17  Bruno Haible  <bruno@clisp.org>
10752
10753         * modules/vdprintf-posix-tests: New file.
10754         * tests/test-vdprintf-posix.sh: New file.
10755         * tests/test-vdprintf-posix.c: New file.
10756
10757         New modules 'vdprintf', 'vdprintf-posix'.
10758         * lib/stdio.in.h (vdprintf): New declaration.
10759         * lib/vdprintf.c: New file.
10760         * m4/vdprintf.m4: New file.
10761         * m4/vdprintf-posix.m4: New file.
10762         * modules/vdprintf: New file.
10763         * modules/vdprintf-posix: New file.
10764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
10765         HAVE_VDPRINTF, REPLACE_VDPRINTF.
10766         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
10767         HAVE_VDPRINTF, REPLACE_VDPRINTF.
10768         * doc/posix-functions/vdprintf.texi: Mention the new modules.
10769
10770 2009-01-17  Bruno Haible  <bruno@clisp.org>
10771
10772         Fix replacement of fopen on mingw.
10773         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
10774         mingw.
10775
10776 2009-01-17  Bruno Haible  <bruno@clisp.org>
10777
10778         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
10779         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
10780
10781 2009-01-17  Bruno Haible  <bruno@clisp.org>
10782
10783         Avoid test-fflush2.sh failure on mingw.
10784         * tests/test-fflush2.c: Include binary-io.h.
10785         (main): Put standard input into binary mode.
10786         * modules/fflush-tests (Depends-on): Add binary-io.
10787
10788 2009-01-17  Bruno Haible  <bruno@clisp.org>
10789
10790         * lib/wchar.in.h: In another particular situation, include only the
10791         system's <wchar.h> file.
10792         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
10793         Reported by Albert Chin-A-Young <china@thewrittenword.com>
10794         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
10795
10796 2009-01-17  Bruno Haible  <bruno@clisp.org>
10797
10798         Support for stripping executables in --enable-relocatable.
10799         * build-aux/install-reloc: Expect one more argument, or an environment
10800         variable RELOC_STRIP_PROG. If set, strip the destination program and
10801         its wrapper.
10802         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
10803         RELOC_STRIP_PROG.
10804         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
10805         to set RELOCATABLE_STRIP.
10806         * NEWS: Mention the new Makefile requirement.
10807
10808 2009-01-17  Bruno Haible  <bruno@clisp.org>
10809
10810         * build-aux/install-reloc: Remove debugging information left over by
10811         C compiler on MacOS X.
10812
10813 2009-01-17  Bruno Haible  <bruno@clisp.org>
10814
10815         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
10816         * lib/progreloc.c (find_executable): Fix type of pointer passed to
10817         _NSGetExecutablePath.
10818
10819 2009-01-16  Jim Meyering  <meyering@redhat.com>
10820
10821         strerror: avoid warnings about discarding "const"
10822         * lib/strerror.c (rpl_strerror): Instead of returning a const
10823         string from each and every "case", use a variable, and add a single
10824         cast after the switch.
10825
10826 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
10827
10828         * lib/arpa_inet.in.h: Add extern "C" block for C++.
10829
10830 2009-01-16  Bruno Haible  <bruno@clisp.org>
10831
10832         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
10833         array initializer syntax that also works in C++ mode.
10834         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10835
10836 2009-01-16  Jim Meyering  <meyering@redhat.com>
10837
10838         poll: suppress a warning
10839         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
10840         to ignore "...unsigned expression < 0 is always false" warnings.
10841
10842 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
10843
10844         poll: remove declarations of unused variables
10845         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
10846         sockbuf and optlen.
10847
10848 2009-01-15  Bruno Haible  <bruno@clisp.org>
10849
10850         Make fflush-after-ungetc POSIX compliant on BSD systems.
10851         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
10852         (clear_ungetc_buffer): Implement also for other systems.
10853         (rpl_fflush): On glibc systems, invoke
10854         clear_ungetc_buffer_preserving_position. Otherwise, invoke
10855         clear_ungetc_buffer after fetching the stream's position, not before.
10856
10857 2009-01-15  Bruno Haible  <bruno@clisp.org>
10858
10859         Make fflush-after-ungetc POSIX compliant on glibc systems.
10860         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
10861         after ungetc.
10862         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
10863         (rpl_fflush): On glibc systems, simply call the system's fflush
10864         function after clearing the ungetc buffer.
10865         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
10866         Instead, lseek only to the end of file, then use the system's fseeko
10867         for the rest. On glibc systems, reset the EOF indicator bit.
10868
10869 2009-01-15  Jim Meyering  <meyering@redhat.com>
10870
10871         openmp.m4: revert quote-adding change, for portability to older autoconf
10872         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
10873         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
10874         Simon Josefsson noticed the problem when using autoconf-2.61.
10875
10876 2009-01-15  Bruno Haible  <bruno@clisp.org>
10877
10878         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
10879         * tests/test-fflush2.c (ASSERT): Always fail.
10880         (main): Add two tests for fflush() after ungetc(), taking into account
10881         the Austin Group's clarification.
10882         Suggested by Eric Blake.
10883
10884 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
10885
10886         mktime.m4: remove K&R-style function prototypes
10887         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
10888         for the Sun C++ compiler.
10889
10890 2009-01-14  Bruno Haible  <bruno@clisp.org>
10891
10892         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
10893         while including <wchar.h>.
10894         * lib/wchar.in.h: In two particular situations on HP-UX, include only
10895         the system's <wchar.h> file.
10896         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10897
10898 2009-01-14  Bruno Haible  <bruno@clisp.org>
10899
10900         * m4/csharp.m4: Don't mention gettext on the serial number line.
10901         * m4/csharpexec.m4: Likewise.
10902         * m4/eaccess.m4: Likewise.
10903         * m4/javaexec.m4: Likewise.
10904         * m4/sig_atomic_t.m4: Likewise.
10905         * m4/tmpdir.m4: Likewise.
10906         * m4/intldir.m4: Bump gettext version.
10907         * m4/lib-ld.m4: Likewise.
10908
10909 2009-01-14  Bruno Haible  <bruno@clisp.org>
10910
10911         * lib/progname.c (set_program_name): Add more comments.
10912         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10913
10914 2009-01-14  Simon Josefsson  <simon@josefsson.org>
10915
10916         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
10917         were sys/stat.h does not define it.
10918
10919 2009-01-14  Jim Meyering  <meyering@redhat.com>
10920
10921         many *.m4 files: improve m4 quoting
10922         99% of this change was performed by running the following commands:
10923         git ls-files | grep '\.m4$' | xargs perl -pi \
10924           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
10925           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
10926           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
10927           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
10928         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
10929         The remainder were to add Copyright dates, increment serial numbers,
10930         undo some changes in comments, exclude m4/intl.m4, and add quotes
10931         around the "1" in ",1" where the unusual spacing prohibited the
10932         above regexps from doing the job.  For more details, see
10933         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
10934         * m4/acl.m4: Modified.
10935         * m4/afs.m4: Likewise.
10936         * m4/alloca.m4: Likewise.
10937         * m4/argp.m4: Likewise.
10938         * m4/argz.m4: Likewise.
10939         * m4/atexit.m4: Likewise.
10940         * m4/bison-i18n.m4: Likewise.
10941         * m4/bison.m4: Likewise.
10942         * m4/byteswap.m4: Likewise.
10943         * m4/c-stack.m4: Likewise.
10944         * m4/c-strtod.m4: Likewise.
10945         * m4/calloc.m4: Likewise.
10946         * m4/canonicalize-lgpl.m4: Likewise.
10947         * m4/chown.m4: Likewise.
10948         * m4/clock_time.m4: Likewise.
10949         * m4/codeset.m4: Likewise.
10950         * m4/copy-file.m4: Likewise.
10951         * m4/csharp.m4: Likewise.
10952         * m4/csharpcomp.m4: Likewise.
10953         * m4/csharpexec.m4: Likewise.
10954         * m4/d-ino.m4: Likewise.
10955         * m4/d-type.m4: Likewise.
10956         * m4/dirfd.m4: Likewise.
10957         * m4/double-slash-root.m4: Likewise.
10958         * m4/eaccess.m4: Likewise.
10959         * m4/eealloc.m4: Likewise.
10960         * m4/environ.m4: Likewise.
10961         * m4/errno_h.m4: Likewise.
10962         * m4/euidaccess.m4: Likewise.
10963         * m4/execute.m4: Likewise.
10964         * m4/fatal-signal.m4: Likewise.
10965         * m4/fchdir.m4: Likewise.
10966         * m4/fcntl_h.m4: Likewise.
10967         * m4/fileblocks.m4: Likewise.
10968         * m4/filenamecat.m4: Likewise.
10969         * m4/findprog.m4: Likewise.
10970         * m4/flexmember.m4: Likewise.
10971         * m4/fnmatch.m4: Likewise.
10972         * m4/fopen.m4: Likewise.
10973         * m4/fpending.m4: Likewise.
10974         * m4/fprintf-posix.m4: Likewise.
10975         * m4/free.m4: Likewise.
10976         * m4/frexp.m4: Likewise.
10977         * m4/frexpl.m4: Likewise.
10978         * m4/fsusage.m4: Likewise.
10979         * m4/ftruncate.m4: Likewise.
10980         * m4/gc-camellia.m4: Likewise.
10981         * m4/gc-random.m4: Likewise.
10982         * m4/gc.m4: Likewise.
10983         * m4/getaddrinfo.m4: Likewise.
10984         * m4/getcwd-abort-bug.m4: Likewise.
10985         * m4/getcwd-path-max.m4: Likewise.
10986         * m4/getdate.m4: Likewise.
10987         * m4/getdomainname.m4: Likewise.
10988         * m4/getgroups.m4: Likewise.
10989         * m4/gethostname.m4: Likewise.
10990         * m4/gethrxtime.m4: Likewise.
10991         * m4/getline.m4: Likewise.
10992         * m4/getloadavg.m4: Likewise.
10993         * m4/getndelim2.m4: Likewise.
10994         * m4/getpass.m4: Likewise.
10995         * m4/gettext.m4: Likewise.
10996         * m4/gettime.m4: Likewise.
10997         * m4/gettimeofday.m4: Likewise.
10998         * m4/gnulib-common.m4: Likewise.
10999         * m4/group-member.m4: Likewise.
11000         * m4/host-os.m4: Likewise.
11001         * m4/iconv.m4: Likewise.
11002         * m4/iconv_open.m4: Likewise.
11003         * m4/inet_ntop.m4: Likewise.
11004         * m4/inet_pton.m4: Likewise.
11005         * m4/inline.m4: Likewise.
11006         * m4/intldir.m4: Likewise.
11007         * m4/intlmacosx.m4: Likewise.
11008         * m4/intmax.m4: Likewise.
11009         * m4/intmax_t.m4: Likewise.
11010         * m4/inttypes.m4: Likewise.
11011         * m4/inttypes_h.m4: Likewise.
11012         * m4/inttypes-pri.m4: Likewise.
11013         * m4/isapipe.m4: Likewise.
11014         * m4/isnand.m4: Likewise.
11015         * m4/isnanf.m4: Likewise.
11016         * m4/isnanl.m4: Likewise.
11017         * m4/javacomp.m4: Likewise.
11018         * m4/javaexec.m4: Likewise.
11019         * m4/jm-winsz1.m4: Likewise.
11020         * m4/jm-winsz2.m4: Likewise.
11021         * m4/lchown.m4: Likewise.
11022         * m4/lcmessage.m4: Likewise.
11023         * m4/ldexpl.m4: Likewise.
11024         * m4/lib-ld.m4: Likewise.
11025         * m4/lib-link.m4: Likewise.
11026         * m4/libsigsegv.m4: Likewise.
11027         * m4/link-follow.m4: Likewise.
11028         * m4/localcharset.m4: Likewise.
11029         * m4/locale-fr.m4: Likewise.
11030         * m4/locale-ja.m4: Likewise.
11031         * m4/locale-tr.m4: Likewise.
11032         * m4/locale-zh.m4: Likewise.
11033         * m4/lock.m4: Likewise.
11034         * m4/longlong.m4: Likewise.
11035         * m4/ls-mntd-fs.m4: Likewise.
11036         * m4/lstat.m4: Likewise.
11037         * m4/malloc.m4: Likewise.
11038         * m4/mathl.m4: Likewise.
11039         * m4/mbrtowc.m4: Likewise.
11040         * m4/mbstate_t.m4: Likewise.
11041         * m4/mbswidth.m4: Likewise.
11042         * m4/memchr.m4: Likewise.
11043         * m4/memcmp.m4: Likewise.
11044         * m4/memcpy.m4: Likewise.
11045         * m4/memmem.m4: Likewise.
11046         * m4/memmove.m4: Likewise.
11047         * m4/mempcpy.m4: Likewise.
11048         * m4/memrchr.m4: Likewise.
11049         * m4/memset.m4: Likewise.
11050         * m4/minmax.m4: Likewise.
11051         * m4/mkdir-slash.m4: Likewise.
11052         * m4/mkdtemp.m4: Likewise.
11053         * m4/mktime.m4: Likewise.
11054         * m4/mmap-anon.m4: Likewise.
11055         * m4/mountlist.m4: Likewise.
11056         * m4/nanosleep.m4: Likewise.
11057         * m4/nls.m4: Likewise.
11058         * m4/nocrash.m4: Likewise.
11059         * m4/open.m4: Likewise.
11060         * m4/openat.m4: Likewise.
11061         * m4/openmp.m4: Likewise.
11062         * m4/pathmax.m4: Likewise.
11063         * m4/perl.m4: Likewise.
11064         * m4/physmem.m4: Likewise.
11065         * m4/pipe.m4: Likewise.
11066         * m4/po.m4: Likewise.
11067         * m4/poll.m4: Likewise.
11068         * m4/posixtm.m4: Likewise.
11069         * m4/posixver.m4: Likewise.
11070         * m4/printf-frexp.m4: Likewise.
11071         * m4/printf-frexpl.m4: Likewise.
11072         * m4/printf-posix.m4: Likewise.
11073         * m4/printf-posix-rpl.m4: Likewise.
11074         * m4/printf.m4: Likewise.
11075         * m4/progtest.m4: Likewise.
11076         * m4/putenv.m4: Likewise.
11077         * m4/readline.m4: Likewise.
11078         * m4/readlink.m4: Likewise.
11079         * m4/readutmp.m4: Likewise.
11080         * m4/realloc.m4: Likewise.
11081         * m4/regex.m4: Likewise.
11082         * m4/relocatable.m4: Likewise.
11083         * m4/relocatable-lib.m4: Likewise.
11084         * m4/rename-dest-slash.m4: Likewise.
11085         * m4/rename.m4: Likewise.
11086         * m4/rmdir-errno.m4: Likewise.
11087         * m4/rmdir.m4: Likewise.
11088         * m4/roundf.m4: Likewise.
11089         * m4/roundl.m4: Likewise.
11090         * m4/rpmatch.m4: Likewise.
11091         * m4/save-cwd.m4: Likewise.
11092         * m4/selinux-selinux-h.m4: Likewise.
11093         * m4/setenv.m4: Likewise.
11094         * m4/settime.m4: Likewise.
11095         * m4/sig2str.m4: Likewise.
11096         * m4/sig_atomic_t.m4: Likewise.
11097         * m4/signalblocking.m4: Likewise.
11098         * m4/signbit.m4: Likewise.
11099         * m4/sigpipe.m4: Likewise.
11100         * m4/sockets.m4: Likewise.
11101         * m4/sockpfaf.m4: Likewise.
11102         * m4/st_dm_mode.m4: Likewise.
11103         * m4/stat-time.m4: Likewise.
11104         * m4/stdbool.m4: Likewise.
11105         * m4/stdint.m4: Likewise.
11106         * m4/stdint_h.m4: Likewise.
11107         * m4/stpcpy.m4: Likewise.
11108         * m4/stpncpy.m4: Likewise.
11109         * m4/strcase.m4: Likewise.
11110         * m4/strchrnul.m4: Likewise.
11111         * m4/strcspn.m4: Likewise.
11112         * m4/strdup.m4: Likewise.
11113         * m4/strftime.m4: Likewise.
11114         * m4/strndup.m4: Likewise.
11115         * m4/strnlen.m4: Likewise.
11116         * m4/strpbrk.m4: Likewise.
11117         * m4/strptime.m4: Likewise.
11118         * m4/strsep.m4: Likewise.
11119         * m4/strtod.m4: Likewise.
11120         * m4/strtoimax.m4: Likewise.
11121         * m4/strtok_r.m4: Likewise.
11122         * m4/strtol.m4: Likewise.
11123         * m4/strtoll.m4: Likewise.
11124         * m4/strtoul.m4: Likewise.
11125         * m4/strtoull.m4: Likewise.
11126         * m4/strtoumax.m4: Likewise.
11127         * m4/strverscmp.m4: Likewise.
11128         * m4/threadlib.m4: Likewise.
11129         * m4/timegm.m4: Likewise.
11130         * m4/tm_gmtoff.m4: Likewise.
11131         * m4/tmpdir.m4: Likewise.
11132         * m4/tmpfile.m4: Likewise.
11133         * m4/tzset.m4: Likewise.
11134         * m4/uintmax_t.m4: Likewise.
11135         * m4/unlinkdir.m4: Likewise.
11136         * m4/unlocked-io.m4: Likewise.
11137         * m4/uptime.m4: Likewise.
11138         * m4/userspec.m4: Likewise.
11139         * m4/utimbuf.m4: Likewise.
11140         * m4/utime.m4: Likewise.
11141         * m4/utimes-null.m4: Likewise.
11142         * m4/utimes.m4: Likewise.
11143         * m4/vararrays.m4: Likewise.
11144         * m4/vasnprintf.m4: Likewise.
11145         * m4/vfprintf-posix.m4: Likewise.
11146         * m4/vprintf-posix.m4: Likewise.
11147         * m4/wait-process.m4: Likewise.
11148         * m4/wchar_t.m4: Likewise.
11149         * m4/wint_t.m4: Likewise.
11150         * m4/write-any-file.m4: Likewise.
11151         * m4/yield.m4: Likewise.
11152
11153 2009-01-13  Bruno Haible  <bruno@clisp.org>
11154
11155         Avoid test-copy-file.sh failures when ACL support insufficient.
11156         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
11157         TESTS_ENVIRONMENT.
11158         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
11159         Reported by Jim Meyering.
11160
11161 2009-01-13  Bruno Haible  <bruno@clisp.org>
11162
11163         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
11164         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
11165         * modules/unistdio/u8-printf-parse (Files): Likewise.
11166         * modules/unistdio/u32-printf-parse (Files): Likewise.
11167         * modules/unistdio/ulc-printf-parse (Files): Likewise.
11168
11169 2009-01-13  Simon Josefsson  <simon@josefsson.org>
11170
11171         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
11172         and m4/inttypes_h.m4 too.
11173
11174 2009-01-12  Eric Blake  <ebb9@byu.net>
11175
11176         tests: IRIX 6.2 cc can't compile -0.0 into .data
11177         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
11178         rather than at compile-time.
11179         * tests/test-floorl.c (minus_zero): Likewise.
11180         * tests/test-frexpl.c (minus_zero): Likewise.
11181         * tests/test-isnan.c (minus_zerol): Likewise.
11182         * tests/test-isnanl.h (minus_zero): Likewise.
11183         * tests/test-ldexpl.c (minus_zero): Likewise.
11184         * tests/test-roundl.c (minus_zero): Likewise.
11185         * tests/test-signbit.c (minus_zerol): Likewise.
11186         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11187         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11188         * tests/test-truncl.c (minus_zero): Likewise.
11189         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11190         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11191         Reported by Tom G. Christensen and Nelson H. F. Beebe.
11192
11193 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
11194
11195         regex: fix glibc bug 9697
11196         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
11197         handling.
11198
11199 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
11200
11201         regex: fix glibc bug 697
11202         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
11203         being NULL also if there are no backreferences.
11204
11205 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
11206
11207         regex: merge glibc changes
11208         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
11209         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
11210         re_string_skip_chars, re_string_reconstruct): Likewise.
11211         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
11212
11213 2009-01-07  Jim Meyering  <meyering@redhat.com>
11214
11215         poll: filter through cppi
11216         * lib/poll.c: Indent cpp directives to reflect nesting.
11217
11218 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
11219
11220         poll: don't return uninitialized
11221         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
11222
11223 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
11224
11225         avoid compile failure on AIX 6.1
11226         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
11227         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
11228
11229 2009-01-04  Jim Meyering  <meyering@redhat.com>
11230
11231         remove duplicate inclusion of <stdio.h>
11232         * tests/test-fprintf-posix.c: Likewise.
11233         * tests/test-printf-posix.c: Likewise.
11234         * tests/test-snprintf-posix.c: Likewise.
11235         * tests/test-sprintf-posix.c: Likewise.
11236         * tests/test-vasprintf-posix.c: Likewise.
11237         * tests/test-vfprintf-posix.c: Likewise.
11238         * tests/test-vprintf-posix.c: Likewise.
11239         * tests/test-vsnprintf-posix.c: Likewise.
11240         * tests/test-vsprintf-posix.c: Likewise.
11241
11242 2009-01-03  Jim Meyering  <meyering@redhat.com>
11243
11244         gnulib-tool: fix sed-based filtering
11245         * gnulib-tool (func_filter_filelist): Remove extra backslash
11246         in sed_fff_filter definition.
11247
11248 2009-01-02  Jim Meyering  <meyering@redhat.com>
11249
11250         strftime: avoid compilation failure on Solaris 2.6
11251         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
11252         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
11253         Don't #define mbrlen or mbsinit, since now they're guaranteed to
11254         be available.  Reported by Tom G. Christensen.  Details in
11255         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
11256
11257 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11258             Bruno Haible  <bruno@clisp.org>
11259
11260         Speed up gnulib-tool by doing more string processing through shell
11261         built-ins.
11262         * gnulib-tool (fast_func_append): New variable.
11263         (func_remove_prefix, func_remove_suffix): New functions.
11264         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
11265         (func_filter_filelist): New function.
11266         (func_get_dependencies): Use func_remove_suffix instead of sed.
11267         (func_get_automake_snippet): Use func_filter_filelist instead of a
11268         subshell and sed invocation.
11269
11270 2009-01-01  Bruno Haible  <bruno@clisp.org>
11271
11272         Fix a security bug.
11273         * gnulib-tool (func_import, import, update): Don't allow the characters
11274         '"', '$', '`', '\' in macro arguments that become part of commands that
11275         are evaluated.
11276
11277 2009-01-01  Bruno Haible  <bruno@clisp.org>
11278
11279         * gnulib-tool (func_reset_sigpipe): Add more comments.
11280
11281 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11282
11283         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
11284         func_emit_tests_Makefile_am, func_import): Abort loops early if we
11285         already know the answer.
11286
11287 2009-01-01  Jim Meyering  <meyering@redhat.com>
11288
11289         * lib/version-etc.c (version_etc_va): Update copyright year.
11290
11291 2008-12-30  Bruno Haible  <bruno@clisp.org>
11292
11293         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
11294         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
11295         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
11296
11297 2008-12-29  Eric Blake  <ebb9@byu.net>
11298
11299         multiarch: avoid autoconf AC_REQUIRE bug
11300         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
11301         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
11302         2.63 and older.
11303         Reported by Bruno Haible, and analyzed in
11304         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
11305
11306 2008-12-29  Bruno Haible  <bruno@clisp.org>
11307
11308         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
11309         files in subdirectories correctly.
11310         Reported by Ralf Wildenhues.
11311
11312 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11313
11314         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
11315         rather than 'join FILE -', for Solaris join.
11316
11317 2008-12-29  Bruno Haible  <bruno@clisp.org>
11318
11319         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
11320         quoting.
11321         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11322         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11323         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11324         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
11325         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11326         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11327         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11328         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11329         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11330         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11331         * m4/nls.m4 (AM_NLS): Likewise.
11332         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
11333         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11334         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11335         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11336         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11337         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11338         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
11339         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11340         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11341         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11342         * m4/xsize.m4 (gl_XSIZE): Likewise.
11343         Suggested by Jim Meyering.
11344
11345 2008-11-17  Bruce Korb  <bkorb@gnu.org>
11346
11347         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
11348         * lib/parse-duration.c: use a switch instead of cascading if's.
11349
11350 2008-12-29  Eric Blake  <ebb9@byu.net>
11351
11352         wchar.h: supply WEOF on Irix 5.3
11353         * lib/wchar.in.h (wint_t): Also supply WEOF.
11354         * lib/wctype.in.h (wint_t): Likewise.
11355         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
11356         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
11357         Reported by Tom G. Christensen.
11358
11359 2008-12-26  Bruno Haible  <bruno@clisp.org>
11360
11361         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
11362         i486, i586, i686.
11363
11364 2008-12-26  Bruno Haible  <bruno@clisp.org>
11365
11366         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
11367
11368 2008-12-26  Bruno Haible  <bruno@clisp.org>
11369
11370         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
11371         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
11372         not __STDC_CONSTANT_MACROS.
11373         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11374
11375 2008-12-25  Bruno Haible  <bruno@clisp.org>
11376
11377         Add support for universal builds to vasnprintf.
11378         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
11379         universal builds, guess no.
11380         * modules/vasnprintf-posix (Depends-on): Add multiarch.
11381         * modules/vasprintf-posix (Depends-on): Likewise.
11382         * modules/fprintf-posix (Depends-on): Likewise.
11383         * modules/vfprintf-posix (Depends-on): Likewise.
11384         * modules/snprintf-posix (Depends-on): Likewise.
11385         * modules/vsnprintf-posix (Depends-on): Likewise.
11386         * modules/sprintf-posix (Depends-on): Likewise.
11387         * modules/vsprintf-posix (Depends-on): Likewise.
11388         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11389         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11390         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11391         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11392         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11393         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11394         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11395
11396         Add support for universal builds to <inttypes.h>.
11397         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
11398         _SCNu64_PREFIX): In Apple
11399         universal builds, define directly, using _LP64.
11400         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
11401         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
11402         * modules/inttypes (Depends-on): Add multiarch.
11403         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
11404
11405         Add support for universal builds to <stdint.h>.
11406         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
11407         universal builds, define directly, using _LP64.
11408         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
11409         Apple universal builds, don't test for the size and suffix of ptrdiff_t
11410         and size_t.
11411         * modules/stdint (Depends-on): Add multiarch.
11412         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
11413
11414         New module 'multiarch'.
11415         * modules/multiarch: New file.
11416         * m4/multiarch.m4: New file.
11417
11418 2008-12-25  Bruno Haible  <bruno@clisp.org>
11419
11420         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
11421
11422 2008-12-25  Bruno Haible  <bruno@clisp.org>
11423
11424         * modules/btowc (License): Relicense under LGPLv2+.
11425         * modules/mbsinit (License): Likewise.
11426         * modules/mbrtowc (License): Likewise.
11427         * modules/wcrtomb (License): Likewise.
11428         * modules/streq (License): Likewise.
11429         Reported by David Lutterkort <lutter@redhat.com>.
11430
11431 2008-12-23  Bruno Haible  <bruno@clisp.org>
11432
11433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
11434
11435 2008-12-23  Bruno Haible  <bruno@clisp.org>
11436
11437         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
11438         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
11439         GETADDRINFO_LIB, not in LIBS.
11440         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
11441         * modules/canon-host (Link): Likewise.
11442         * NEWS: Mention the change.
11443         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
11444         GETADDRINFO_LIB.
11445
11446 2008-12-22  Bruno Haible  <bruno@clisp.org>
11447
11448         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
11449         * doc/posix-functions/iswalpha_l.texi: Likewise.
11450         * doc/posix-functions/iswblank_l.texi: Likewise.
11451         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11452         * doc/posix-functions/iswctype_l.texi: Likewise.
11453         * doc/posix-functions/iswdigit_l.texi: Likewise.
11454         * doc/posix-functions/iswgraph_l.texi: Likewise.
11455         * doc/posix-functions/iswlower_l.texi: Likewise.
11456         * doc/posix-functions/iswprint_l.texi: Likewise.
11457         * doc/posix-functions/iswpunct_l.texi: Likewise.
11458         * doc/posix-functions/iswspace_l.texi: Likewise.
11459         * doc/posix-functions/iswupper_l.texi: Likewise.
11460         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11461         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
11462         * doc/posix-functions/open_wmemstream.texi: Likewise.
11463         * doc/posix-functions/swscanf.texi: Likewise.
11464         * doc/posix-functions/towctrans_l.texi: Likewise.
11465         * doc/posix-functions/towlower.texi: Likewise.
11466         * doc/posix-functions/towlower_l.texi: Likewise.
11467         * doc/posix-functions/towupper.texi: Likewise.
11468         * doc/posix-functions/towupper_l.texi: Likewise.
11469         * doc/posix-functions/vfwprintf.texi: Likewise.
11470         * doc/posix-functions/vfwscanf.texi: Likewise.
11471         * doc/posix-functions/vswscanf.texi: Likewise.
11472         * doc/posix-functions/vwprintf.texi: Likewise.
11473         * doc/posix-functions/vwscanf.texi: Likewise.
11474         * doc/posix-functions/wcpcpy.texi: Likewise.
11475         * doc/posix-functions/wcpncpy.texi: Likewise.
11476         * doc/posix-functions/wcscasecmp.texi: Likewise.
11477         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
11478         * doc/posix-functions/wcscoll_l.texi: Likewise.
11479         * doc/posix-functions/wcsdup.texi: Likewise.
11480         * doc/posix-functions/wcsncasecmp.texi: Likewise.
11481         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
11482         * doc/posix-functions/wcsnlen.texi: Likewise.
11483         * doc/posix-functions/wcsnrtombs.texi: Likewise.
11484         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11485         * doc/posix-functions/wctrans_l.texi: Likewise.
11486         * doc/posix-functions/wctype_l.texi: Likewise.
11487         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
11488         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
11489         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
11490         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
11491         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
11492         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
11493         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
11494         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
11495         * doc/glibc-functions/wcschrnul.texi: Likewise.
11496         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11497         * doc/glibc-functions/wcstod_l.texi: Likewise.
11498         * doc/glibc-functions/wcstof_l.texi: Likewise.
11499         * doc/glibc-functions/wcstol_l.texi: Likewise.
11500         * doc/glibc-functions/wcstold_l.texi: Likewise.
11501         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11502         * doc/glibc-functions/wcstoq.texi: Likewise.
11503         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11504         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11505         * doc/glibc-functions/wcstouq.texi: Likewise.
11506         * doc/glibc-functions/wmempcpy.texi: Likewise.
11507
11508 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
11509             Eric Blake  <ebb9@byu.net>
11510             Paolo Bonzini  <bonzini@gnu.org>
11511             Bruno Haible  <bruno@clisp.org>
11512
11513         Make c-stack work on Haiku.
11514         * lib/c-stack.c (SA_ONSTACK): Define fallback.
11515         (c_stack_action): Use SA_ONSTACK flag.
11516
11517 2008-12-22  Bruno Haible  <bruno@clisp.org>
11518
11519         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
11520
11521 2008-12-22  Bruno Haible  <bruno@clisp.org>
11522
11523         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
11524         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
11525         being overridden.
11526         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
11527         New macros.
11528         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
11529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
11530         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
11531         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
11532
11533 2008-12-22  Bruno Haible  <bruno@clisp.org>
11534
11535         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
11536         from test code.
11537
11538 2008-12-22  Eric Blake  <ebb9@byu.net>
11539
11540         Avoid gcc warnings on cygwin.
11541         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
11542         Avoid unused variable.
11543         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
11544         Likewise.
11545
11546 2008-12-22  Bruno Haible  <bruno@clisp.org>
11547
11548         Remove HAVE_MBRTOWC conditionals.
11549         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
11550         (mbscasecmp): Assume mbrtowc function.
11551         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
11552         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
11553         * lib/mbschr.c: Include mbuiter.h unconditionally.
11554         (mbschr): Assume mbrtowc function.
11555         * lib/mbscspn.c: Include mbuiter.h unconditionally.
11556         (mbscspn): Assume mbrtowc function.
11557         * lib/mbslen.c: Include mbuiter.h unconditionally.
11558         (mbslen): Assume mbrtowc function.
11559         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
11560         (mbsncasecmp): Assume mbrtowc function.
11561         * lib/mbsnlen.c: Include mbiter.h unconditionally.
11562         (mbsnlen): Assume mbrtowc function.
11563         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
11564         (mbspbrk): Assume mbrtowc function.
11565         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
11566         (mbspcasecmp): Assume mbrtowc function.
11567         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
11568         (mbsrchr): Assume mbrtowc function.
11569         * lib/mbssep.c: Include mbuiter.h unconditionally.
11570         (mbssep): Assume mbrtowc function.
11571         * lib/mbsspn.c: Include mbuiter.h unconditionally.
11572         (mbsspn): Assume mbrtowc function.
11573         * lib/mbsstr.c: Include mbuiter.h unconditionally.
11574         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
11575         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
11576         (mbstok_r): Assume mbrtowc function.
11577         * lib/propername.c: Include mbuiter.h unconditionally.
11578         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
11579         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
11580         (trim2): Assume mbrtowc function.
11581         * lib/mbswidth.c (mbsinit): Remove fallback definition.
11582         (mbsnwidth): Assume mbrtowc function.
11583         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
11584         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
11585         fallback definitions.
11586         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
11587
11588 2008-12-22  Bruno Haible  <bruno@clisp.org>
11589
11590         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
11591
11592 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
11593
11594         * modules/regex: Request emulations for the mb*/wc* functions we need.
11595         * m4/regex.m4: Don't look for those functions here.
11596         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
11597
11598 2008-12-22  Bruno Haible  <bruno@clisp.org>
11599
11600         * modules/fnmatch (Depends-on): Remove duplicated dependency.
11601
11602 2008-12-21  Bruno Haible  <bruno@clisp.org>
11603
11604         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
11605         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
11606         (Include): Remove conditionalization.
11607         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
11608         (Include): Remove conditionalization.
11609         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
11610         (Include): Remove conditionalization.
11611         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
11612         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11613         * NEWS: Mention the change.
11614         Reported by Alan Hourihane <alanh@fairlite.co.uk>
11615         via Sergey Poznyakoff <gray@gnu.org.ua>.
11616
11617 2008-12-21  Bruno Haible  <bruno@clisp.org>
11618
11619         * MODULES.html.sh (Extended multibyte and wide character utilities
11620         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
11621         wcrtomb, wcsrtombs.
11622         (Support for systems lacking POSIX:2008): Add accept, bind, close,
11623         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
11624         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
11625         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
11626
11627 2008-12-21  Bruno Haible  <bruno@clisp.org>
11628
11629         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
11630
11631 2008-12-21  Bruno Haible  <bruno@clisp.org>
11632
11633         * modules/wcsnrtombs-tests: New file.
11634         * tests/test-wcsnrtombs1.sh: New file.
11635         * tests/test-wcsnrtombs2.sh: New file.
11636         * tests/test-wcsnrtombs3.sh: New file.
11637         * tests/test-wcsnrtombs4.sh: New file.
11638         * tests/test-wcsnrtombs.c: New file.
11639
11640         New module 'wcsnrtombs'.
11641         * lib/wchar.in.h (wcsnrtombs): New declaration.
11642         * lib/wcsnrtombs.c: New file.
11643         * lib/wcsrtombs-state.c: New file.
11644         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
11645         (internal_state): Remove variable.
11646         * m4/wcsnrtombs.m4: New file.
11647         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
11648         compilation units.
11649         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
11650         HAVE_WCSNRTOMBS.
11651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
11652         HAVE_WCSNRTOMBS.
11653         * modules/wcsnrtombs: New file.
11654         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
11655         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
11656
11657 2008-12-21  Bruno Haible  <bruno@clisp.org>
11658
11659         * modules/wcsrtombs-tests: New file.
11660         * tests/test-wcsrtombs1.sh: New file.
11661         * tests/test-wcsrtombs2.sh: New file.
11662         * tests/test-wcsrtombs3.sh: New file.
11663         * tests/test-wcsrtombs4.sh: New file.
11664         * tests/test-wcsrtombs.c: New file.
11665
11666         New module 'wcsrtombs'.
11667         * lib/wchar.in.h (wcsrtombs): New declaration.
11668         * lib/wcsrtombs.c: New file.
11669         * m4/wcsrtombs.m4: New file.
11670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
11671         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
11672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
11673         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
11674         * modules/wcsrtombs: New file.
11675         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
11676         bugs.
11677
11678 2008-12-21  Bruno Haible  <bruno@clisp.org>
11679
11680         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
11681         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
11682         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
11683         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
11684         if not correct.
11685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
11686         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
11687         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
11688         m4/locale-zh.m4, m4/codeset.m4.
11689         * doc/posix-functions/wcrtomb.texi: Document the bug.
11690
11691 2008-12-21  Bruno Haible  <bruno@clisp.org>
11692
11693         Work around a btowc() bug on IRIX 6.5.
11694         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
11695         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
11696         REPLACE_WTOBC if not.
11697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
11698         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
11699         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
11700
11701 2008-12-21  Bruno Haible  <bruno@clisp.org>
11702
11703         * modules/wcrtomb-tests: New file.
11704         * tests/test-wcrtomb.sh: New file.
11705         * tests/test-wcrtomb.c: New file.
11706
11707         New module 'wcrtomb'.
11708         * lib/wchar.in.h (wcrtomb): New declaration.
11709         * lib/wcrtomb.c: New file.
11710         * m4/wcrtomb.m4: New file.
11711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
11712         HAVE_WCRTOMB.
11713         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
11714         HAVE_WCRTOMB.
11715         * modules/wcrtomb: New file.
11716         * doc/posix-functions/wcrtomb.texi: Mention the new module.
11717
11718 2008-12-21  Bruno Haible  <bruno@clisp.org>
11719
11720         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
11721         * modules/mbsrtowcs (Files): Likewise.
11722         * modules/wctob (Files): Likewise.
11723         * modules/c-strcase-tests (Files): Likewise.
11724         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11725         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11726         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11727         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11728         * modules/vasnprintf-posix-tests (Files): Likewise.
11729
11730 2008-12-21  William Pursell  <bill.pursell@gmail.com>
11731
11732         gitlog-to-changelog: pass all command-line arguments to git-log
11733         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
11734         it is sometimes convenient to filter the commits in various ways.
11735         gitlog-to-changelog only allows --since to specify a start date,
11736         but git-log itself supports many other filtering mechanisms.
11737         At the moment, I want to filter by branch name.  Rather than
11738         adding a --branch option to gitlog-to-changelog, it seems more
11739         flexible to simply pass all options directly to git-log and let
11740         git do the work.  Notice that this effectively makes --since a
11741         redundant option for gitlog-to-changelog, but removing it would
11742         require current usage to change since calls would then require
11743         an additional '--'.
11744
11745 2008-12-21  Bruno Haible  <bruno@clisp.org>
11746
11747         * modules/mbsnrtowcs-tests: New file.
11748         * tests/test-mbsnrtowcs1.sh: New file.
11749         * tests/test-mbsnrtowcs2.sh: New file.
11750         * tests/test-mbsnrtowcs3.sh: New file.
11751         * tests/test-mbsnrtowcs4.sh: New file.
11752         * tests/test-mbsnrtowcs.c: New file.
11753
11754         New module 'mbsnrtowcs'.
11755         * lib/wchar.in.h (mbsnrtowcs): New declaration.
11756         * lib/mbsnrtowcs.c: New file.
11757         * lib/mbsrtowcs-state.c: New file.
11758         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
11759         (internal_state): Remove variable.
11760         * m4/mbsnrtowcs.m4: New file.
11761         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
11762         compilation units.
11763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
11764         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
11765         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
11766         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
11767         * modules/mbsnrtowcs: New file.
11768         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
11769         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
11770         portability problem.
11771
11772 2008-12-21  Bruno Haible  <bruno@clisp.org>
11773
11774         Work around mbsrtowcs bug.
11775         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
11776         (gl_FUNC_MBSRTOWCS): Invoke it.
11777         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
11778         m4/locale-zh.m4.
11779         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
11780
11781 2008-12-21  Bruno Haible  <bruno@clisp.org>
11782
11783         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
11784
11785 2008-12-21  Bruno Haible  <bruno@clisp.org>
11786
11787         Update doc for AIX.
11788         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
11789         16-bit wchar_t type.
11790         * doc/posix-functions/btowc.texi: Likewise.
11791         * doc/posix-functions/fgetwc.texi: Likewise.
11792         * doc/posix-functions/fgetws.texi: Likewise.
11793         * doc/posix-functions/fputwc.texi: Likewise.
11794         * doc/posix-functions/fputws.texi: Likewise.
11795         * doc/posix-functions/fwide.texi: Likewise.
11796         * doc/posix-functions/fwprintf.texi: Likewise.
11797         * doc/posix-functions/fwscanf.texi: Likewise.
11798         * doc/posix-functions/getwchar.texi: Likewise.
11799         * doc/posix-functions/getwc.texi: Likewise.
11800         * doc/posix-functions/iswalnum.texi: Likewise.
11801         * doc/posix-functions/iswalpha.texi: Likewise.
11802         * doc/posix-functions/iswblank.texi: Likewise.
11803         * doc/posix-functions/iswcntrl.texi: Likewise.
11804         * doc/posix-functions/iswctype.texi: Likewise.
11805         * doc/posix-functions/iswdigit.texi: Likewise.
11806         * doc/posix-functions/iswgraph.texi: Likewise.
11807         * doc/posix-functions/iswlower.texi: Likewise.
11808         * doc/posix-functions/iswprint.texi: Likewise.
11809         * doc/posix-functions/iswpunct.texi: Likewise.
11810         * doc/posix-functions/iswspace.texi: Likewise.
11811         * doc/posix-functions/iswupper.texi: Likewise.
11812         * doc/posix-functions/iswxdigit.texi: Likewise.
11813         * doc/posix-functions/mbrtowc.texi: Likewise.
11814         * doc/posix-functions/mbsrtowcs.texi: Likewise.
11815         * doc/posix-functions/mbstowcs.texi: Likewise.
11816         * doc/posix-functions/mbtowc.texi: Likewise.
11817         * doc/posix-functions/putwchar.texi: Likewise.
11818         * doc/posix-functions/putwc.texi: Likewise.
11819         * doc/posix-functions/swprintf.texi: Likewise.
11820         * doc/posix-functions/tolower.texi: Likewise.
11821         * doc/posix-functions/toupper.texi: Likewise.
11822         * doc/posix-functions/towctrans.texi: Likewise.
11823         * doc/posix-functions/ungetwc.texi: Likewise.
11824         * doc/posix-functions/vswprintf.texi: Likewise.
11825         * doc/posix-functions/wcrtomb.texi: Likewise.
11826         * doc/posix-functions/wcscat.texi: Likewise.
11827         * doc/posix-functions/wcschr.texi: Likewise.
11828         * doc/posix-functions/wcscmp.texi: Likewise.
11829         * doc/posix-functions/wcscoll.texi: Likewise.
11830         * doc/posix-functions/wcscpy.texi: Likewise.
11831         * doc/posix-functions/wcscspn.texi: Likewise.
11832         * doc/posix-functions/wcsftime.texi: Likewise.
11833         * doc/posix-functions/wcslen.texi: Likewise.
11834         * doc/posix-functions/wcsncat.texi: Likewise.
11835         * doc/posix-functions/wcsncmp.texi: Likewise.
11836         * doc/posix-functions/wcsncpy.texi: Likewise.
11837         * doc/posix-functions/wcspbrk.texi: Likewise.
11838         * doc/posix-functions/wcsrchr.texi: Likewise.
11839         * doc/posix-functions/wcsrtombs.texi: Likewise.
11840         * doc/posix-functions/wcsspn.texi: Likewise.
11841         * doc/posix-functions/wcsstr.texi: Likewise.
11842         * doc/posix-functions/wcstod.texi: Likewise.
11843         * doc/posix-functions/wcstof.texi: Likewise.
11844         * doc/posix-functions/wcstoimax.texi: Likewise.
11845         * doc/posix-functions/wcstok.texi: Likewise.
11846         * doc/posix-functions/wcstold.texi: Likewise.
11847         * doc/posix-functions/wcstoll.texi: Likewise.
11848         * doc/posix-functions/wcstol.texi: Likewise.
11849         * doc/posix-functions/wcstombs.texi: Likewise.
11850         * doc/posix-functions/wcstoull.texi: Likewise.
11851         * doc/posix-functions/wcstoul.texi: Likewise.
11852         * doc/posix-functions/wcstoumax.texi: Likewise.
11853         * doc/posix-functions/wcswidth.texi: Likewise.
11854         * doc/posix-functions/wcsxfrm.texi: Likewise.
11855         * doc/posix-functions/wctob.texi: Likewise.
11856         * doc/posix-functions/wctomb.texi: Likewise.
11857         * doc/posix-functions/wctrans.texi: Likewise.
11858         * doc/posix-functions/wctype.texi: Likewise.
11859         * doc/posix-functions/wcwidth.texi: Likewise.
11860         * doc/posix-functions/wmemchr.texi: Likewise.
11861         * doc/posix-functions/wmemcmp.texi: Likewise.
11862         * doc/posix-functions/wmemcpy.texi: Likewise.
11863         * doc/posix-functions/wmemmove.texi: Likewise.
11864         * doc/posix-functions/wmemset.texi: Likewise.
11865         * doc/posix-functions/wprintf.texi: Likewise.
11866         * doc/posix-functions/wscanf.texi: Likewise.
11867
11868 2008-12-21  Bruno Haible  <bruno@clisp.org>
11869
11870         Update doc for HP-UX 11.11.
11871         * doc/posix-functions/btowc.texi: Clarify that the function is missing
11872         in HP-UX version 11.00, not in all versions of HP-UX 11.
11873         * doc/posix-functions/fwide.texi: Likewise.
11874         * doc/posix-functions/fwprintf.texi: Likewise.
11875         * doc/posix-functions/fwscanf.texi: Likewise.
11876         * doc/posix-functions/inet_ntop.texi: Likewise.
11877         * doc/posix-functions/inet_pton.texi: Likewise.
11878         * doc/posix-functions/mbrlen.texi: Likewise.
11879         * doc/posix-functions/mbrtowc.texi: Likewise.
11880         * doc/posix-functions/mbsinit.texi: Likewise.
11881         * doc/posix-functions/mbsrtowcs.texi: Likewise.
11882         * doc/posix-functions/swprintf.texi: Likewise.
11883         * doc/posix-functions/swscanf.texi: Likewise.
11884         * doc/posix-functions/towctrans.texi: Likewise.
11885         * doc/posix-functions/vfwprintf.texi: Likewise.
11886         * doc/posix-functions/vswprintf.texi: Likewise.
11887         * doc/posix-functions/vwprintf.texi: Likewise.
11888         * doc/posix-functions/wcrtomb.texi: Likewise.
11889         * doc/posix-functions/wcsrtombs.texi: Likewise.
11890         * doc/posix-functions/wcsstr.texi: Likewise.
11891         * doc/posix-functions/wctob.texi: Likewise.
11892         * doc/posix-functions/wctrans.texi: Likewise.
11893         * doc/posix-functions/wmemchr.texi: Likewise.
11894         * doc/posix-functions/wmemcmp.texi: Likewise.
11895         * doc/posix-functions/wmemcpy.texi: Likewise.
11896         * doc/posix-functions/wmemmove.texi: Likewise.
11897         * doc/posix-functions/wmemset.texi: Likewise.
11898         * doc/posix-functions/wprintf.texi: Likewise.
11899         * doc/posix-functions/wscanf.texi: Likewise.
11900
11901 2008-12-21  Bruno Haible  <bruno@clisp.org>
11902
11903         Work around a portability problem.
11904         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
11905         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
11906
11907 2008-12-20  Bruno Haible  <bruno@clisp.org>
11908
11909         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
11910         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
11911         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
11912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
11913         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
11914
11915         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
11916         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
11917         set.
11918         (GNULIB_defined_mbstate_t): New macro.
11919         (mbsinit): Redefine if REPLACE_MBSINIT is set.
11920         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
11921         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
11922         reuses the system's mbrtowc function but works around the bugs.
11923         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
11924         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
11925         macros.
11926         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
11927         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
11928         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
11929         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
11930         REPLACE_MBSINIT if mbsinit needs to be overridden.
11931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
11932         REPLACE_MBSINIT, REPLACE_MBRTOWC.
11933         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
11934         REPLACE_MBSINIT, REPLACE_MBRTOWC.
11935         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
11936         m4/locale-zh.m4.
11937         (Depends): Add mbsinit.
11938         * modules/mbsinit (Depends): Add mbrtowc.
11939         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
11940
11941 2008-12-20  Bruno Haible  <bruno@clisp.org>
11942
11943         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
11944         so that there are no conversion errors on AIX.
11945         * tests/test-mbsrtowcs.c (main): LIkewise.
11946
11947 2008-12-20  Bruno Haible  <bruno@clisp.org>
11948
11949         Work around wctob bug on Solaris <= 9.
11950         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
11951         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
11952         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
11953         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
11954         * modules/wctob (Files): Add m4/locale-fr.m4.
11955         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
11956
11957 2008-12-20  Bruno Haible  <bruno@clisp.org>
11958
11959         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
11960         /dev/null.
11961         * tests/test-select-in.sh: Likewise.
11962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11963
11964 2008-12-20  Bruno Haible  <bruno@clisp.org>
11965
11966         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
11967         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
11968         Cygwin 1.5.x.
11969
11970 2008-12-20  Bruno Haible  <bruno@clisp.org>
11971
11972         Ensure mbstate_t is defined on HP-UX 11.11.
11973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
11974         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
11975         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
11976         AC_USE_SYSTEM_EXTENSIONS.
11977         * modules/fnmatch (Depends-on): Add extensions.
11978         * modules/mbrlen (Depends-on): Likewise.
11979         * modules/mbrtowc (Depends-on): Likewise.
11980         * modules/mbsinit (Depends-on): Likewise.
11981         * modules/mbsrtowcs (Depends-on): Likewise.
11982         * modules/mbswidth (Depends-on): Likewise.
11983         * modules/quotearg (Depends-on): Likewise.
11984         * modules/strftime (Depends-on): Likewise.
11985
11986 2008-12-20  Bruno Haible  <bruno@clisp.org>
11987
11988         Ensure wctob is declared on IRIX 6.5.
11989         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
11990         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
11991         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
11992         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
11993         of HAVE_WCTOB.
11994         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
11995         HAVE_WCTOB.
11996         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
11997
11998 2008-12-19  Bruno Haible  <bruno@clisp.org>
11999
12000         * modules/mbsrtowcs-tests: New file.
12001         * tests/test-mbsrtowcs1.sh: New file.
12002         * tests/test-mbsrtowcs2.sh: New file.
12003         * tests/test-mbsrtowcs3.sh: New file.
12004         * tests/test-mbsrtowcs4.sh: New file.
12005         * tests/test-mbsrtowcs.c: New file.
12006
12007         New module 'mbsrtowcs'.
12008         * lib/wchar.in.h (mbsrtowcs): New declaration.
12009         * lib/mbsrtowcs.c: New file.
12010         * m4/mbsrtowcs.m4: New file.
12011         * modules/mbsrtowcs: New file.
12012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
12013         HAVE_MBSRTOWCS.
12014         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
12015         HAVE_MBSRTOWCS.
12016         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
12017
12018 2008-12-19  Bruno Haible  <bruno@clisp.org>
12019
12020         New module 'mbrlen'.
12021         * lib/wchar.in.h (mbrlen): New declaration.
12022         * lib/mbrlen.c: New file.
12023         * m4/mbrlen.m4: New file.
12024         * modules/mbrlen: New file.
12025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
12026         HAVE_MBRLEN.
12027         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
12028         HAVE_MBRLEN.
12029         * doc/posix-functions/mbrlen.texi: Document the new module.
12030
12031 2008-12-19  Bruno Haible  <bruno@clisp.org>
12032
12033         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
12034         * modules/mbrtowc (Depends-on): Add verify.
12035         Suggested by Paul Eggert.
12036
12037 2008-12-18  Bruno Haible  <bruno@clisp.org>
12038
12039         * modules/mbsinit-tests: New file.
12040         * tests/test-mbsinit.sh: New file.
12041         * tests/test-mbsinit.c: New file.
12042
12043 2008-12-18  Bruno Haible  <bruno@clisp.org>
12044
12045         * modules/mbrtowc-tests: New file.
12046         * tests/test-mbrtowc1.sh: New file.
12047         * tests/test-mbrtowc2.sh: New file.
12048         * tests/test-mbrtowc3.sh: New file.
12049         * tests/test-mbrtowc4.sh: New file.
12050         * tests/test-mbrtowc.c: New file.
12051
12052         New module 'mbrtowc'.
12053         * lib/wchar.in.h (mbstate_t): Override when the system does not have
12054         mbsinit and mbrtowc.
12055         (mbrtowc): New declaration.
12056         * lib/mbrtowc.c: New file.
12057         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
12058         * modules/mbrtowc: New file.
12059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
12060         HAVE_MBRTOWC.
12061         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
12062         HAVE_MBRTOWC.
12063         * doc/posix-functions/mbrtowc.texi: Document the new module.
12064
12065 2008-12-18  Bruno Haible  <bruno@clisp.org>
12066
12067         New module 'wctob'.
12068         * lib/wchar.in.h (wctob): New declaration.
12069         * lib/wctob.c: New file.
12070         * m4/wctob.m4: New file.
12071         * modules/wctob: New file.
12072         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
12073         HAVE_WCTOB.
12074         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
12075         * doc/posix-functions/wctob.texi: Document the new module.
12076
12077 2008-12-18  Bruno Haible  <bruno@clisp.org>
12078
12079         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
12080         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
12081
12082 2008-12-18  Simon Josefsson  <simon@josefsson.org>
12083
12084         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
12085         G. Christensen" <tgc@jupiterrise.com>.
12086
12087         * lib/flock.c: Need to include errno.h.  Reported by "Tom
12088         G. Christensen" <tgc@jupiterrise.com>.
12089
12090         * lib/flock.c: Need to include string.h.  Reported by "Tom
12091         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
12092         <ebb9@byu.net>.
12093
12094 2008-12-18  Bruno Haible  <bruno@clisp.org>
12095
12096         * m4/locale-ja.m4: New file, from GNU gettext.
12097
12098 2008-12-17  Bruno Haible  <bruno@clisp.org>
12099
12100         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
12101         Suggested by Eric Blake.
12102
12103 2008-12-17  Bruno Haible  <bruno@clisp.org>
12104
12105         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
12106
12107 2008-12-17  Bruno Haible  <bruno@clisp.org>
12108
12109         * lib/mbsinit.c: Include verify.h. Verify an assumption.
12110         * modules/mbsinit (Depends-on): Add verify.
12111         Suggested by Paul Eggert.
12112
12113 2008-12-17  Bruno Haible  <bruno@clisp.org>
12114
12115         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
12116         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
12117         gl_FUNC_MBRTOWC.
12118         * m4/mbiter.m4 (gl_MBITER): LIkewise.
12119         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
12120         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
12121         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
12122         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
12123         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
12124         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
12125         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
12126         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
12127         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
12128         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
12129         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
12130         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
12131         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
12132         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
12133         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12134         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
12135         * modules/trim (configure.ac): Likewise.
12136
12137 2008-12-17  Bruno Haible  <bruno@clisp.org>
12138
12139         * modules/btowc-tests: New file.
12140         * tests/test-btowc1.sh: New file.
12141         * tests/test-btowc2.sh: New file.
12142         * tests/test-btowc.c: New file.
12143
12144         New module 'btowc'.
12145         * lib/wchar.in.h (btowc): New declaration.
12146         * lib/btowc.c: New file.
12147         * m4/btowc.m4: New file.
12148         * modules/btowc: New file.
12149         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
12150         HAVE_BTOWC.
12151         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
12152         * doc/posix-functions/btowc.texi: Document the new module.
12153
12154 2008-12-17  Bruno Haible  <bruno@clisp.org>
12155
12156         New module 'mbsinit'.
12157         * lib/wchar.in.h (mbsinit): New declaration.
12158         * lib/mbsinit.c: New file.
12159         * m4/mbsinit.m4: New file.
12160         * modules/mbsinit: New file.
12161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
12162         HAVE_MBSINIT.
12163         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
12164         HAVE_MBSINIT.
12165         * doc/posix-functions/mbsinit.texi: Document the new module.
12166
12167 2008-12-16  Bruno Haible  <bruno@clisp.org>
12168
12169         * lib/unistd.in.h: Add comment.
12170         * tests/test-environ.c: Don't include <stdlib.h>.
12171
12172 2008-12-16  Bruno Haible  <bruno@clisp.org>
12173
12174         * lib/parse-duration.h (parse_duration): Document return value
12175         convention.
12176         * lib/parse-duration.c: Include specification header first. Add
12177         comments.
12178         (_): Remove macro.
12179         (parse_year_month_day, parse_hour_minute_second): Move side effects
12180         outside of strchr call.
12181         (parse_non_iso8601): Move side effects outside of isspace call.
12182         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
12183         call.
12184
12185 2008-12-16  Bruno Haible  <bruno@clisp.org>
12186
12187         * tests/test-parse-duration.sh: Produce no output when the test
12188         succeeds.
12189
12190 2008-12-16  Bruno Haible  <bruno@clisp.org>
12191
12192         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
12193         expressions.
12194
12195 2008-12-15  Bruno Haible  <bruno@clisp.org>
12196
12197         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
12198         * doc/glibc-functions/flistxattr.texi: Likewise.
12199         * doc/glibc-functions/fopencookie.texi: Likewise.
12200         * doc/glibc-functions/fremovexattr.texi: Likewise.
12201         * doc/glibc-functions/fsetxattr.texi: Likewise.
12202         * doc/glibc-functions/getxattr.texi: Likewise.
12203         * doc/glibc-functions/lgetxattr.texi: Likewise.
12204         * doc/glibc-functions/listxattr.texi: Likewise.
12205         * doc/glibc-functions/llistxattr.texi: Likewise.
12206         * doc/glibc-functions/lremovexattr.texi: Likewise.
12207         * doc/glibc-functions/lsetxattr.texi: Likewise.
12208         * doc/glibc-functions/removexattr.texi: Likewise.
12209         * doc/glibc-functions/setxattr.texi: Likewise.
12210         * doc/posix-functions/open_memstream.texi: Likewise.
12211
12212 2008-12-15  Eric Blake  <ebb9@byu.net>
12213
12214         Update doc for cygwin 1.7.
12215         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
12216         functions.
12217         * doc/posix-functions/fchmodat.texi: Likewise.
12218         * doc/posix-functions/fchownat.texi: Likewise.
12219         * doc/posix-functions/fdopendir.texi: Likewise.
12220         * doc/posix-functions/fmemopen.texi: Likewise.
12221         * doc/posix-functions/freeaddrinfo.texi: Likewise.
12222         * doc/posix-functions/fstatat.texi: Likewise.
12223         * doc/posix-functions/futimens.texi: Likewise.
12224         * doc/posix-functions/gai_strerror.texi: Likewise.
12225         * doc/posix-functions/getaddrinfo.texi: Likewise.
12226         * doc/posix-functions/getnameinfo.texi: Likewise.
12227         * doc/posix-functions/if_freenameindex.texi: Likewise.
12228         * doc/posix-functions/if_indextoname.texi: Likewise.
12229         * doc/posix-functions/if_nameindex.texi: Likewise.
12230         * doc/posix-functions/if_nametoindex.texi: Likewise.
12231         * doc/posix-functions/insque.texi: Likewise.
12232         * doc/posix-functions/linkat.texi: Likewise.
12233         * doc/posix-functions/llrint.texi: Likewise.
12234         * doc/posix-functions/llrintf.texi: Likewise.
12235         * doc/posix-functions/llrintl.texi: Likewise.
12236         * doc/posix-functions/lockf.texi: Likewise.
12237         * doc/posix-functions/lrintl.texi: Likewise.
12238         * doc/posix-functions/mkdirat.texi: Likewise.
12239         * doc/posix-functions/mkfifoat.texi: Likewise.
12240         * doc/posix-functions/mknodat.texi: Likewise.
12241         * doc/posix-functions/mq_close.texi: Likewise.
12242         * doc/posix-functions/mq_getattr.texi: Likewise.
12243         * doc/posix-functions/mq_notify.texi: Likewise.
12244         * doc/posix-functions/mq_open.texi: Likewise.
12245         * doc/posix-functions/mq_receive.texi: Likewise.
12246         * doc/posix-functions/mq_send.texi: Likewise.
12247         * doc/posix-functions/mq_setattr.texi: Likewise.
12248         * doc/posix-functions/mq_timedreceive.texi: Likewise.
12249         * doc/posix-functions/mq_timedsend.texi: Likewise.
12250         * doc/posix-functions/mq_unlink.texi: Likewise.
12251         * doc/posix-functions/open_memstream.texi: Likewise.
12252         * doc/posix-functions/openat.texi: Likewise.
12253         * doc/posix-functions/posix_fadvise.texi: Likewise.
12254         * doc/posix-functions/posix_fallocate.texi: Likewise.
12255         * doc/posix-functions/posix_madvise.texi: Likewise.
12256         * doc/posix-functions/posix_memalign.texi: Likewise.
12257         * doc/posix-functions/posix_openpt.texi: Likewise.
12258         * doc/posix-functions/readlinkat.texi: Likewise.
12259         * doc/posix-functions/remque.texi: Likewise.
12260         * doc/posix-functions/renameat.texi: Likewise.
12261         * doc/posix-functions/rintl.texi: Likewise.
12262         * doc/posix-functions/sem_unlink.texi: Likewise.
12263         * doc/posix-functions/shm_open.texi: Likewise.
12264         * doc/posix-functions/shm_unlink.texi: Likewise.
12265         * doc/posix-functions/signgam.texi: Likewise.
12266         * doc/posix-functions/sigset.texi: Likewise.
12267         * doc/posix-functions/stpcpy.texi: Likewise.
12268         * doc/posix-functions/stpncpy.texi: Likewise.
12269         * doc/posix-functions/strerror.texi: Likewise.
12270         * doc/posix-functions/strtod.texi: Likewise.
12271         * doc/posix-functions/symlinkat.texi: Likewise.
12272         * doc/posix-functions/unlinkat.texi: Likewise.
12273         * doc/posix-functions/utimensat.texi: Likewise.
12274         * doc/glibc-functions/bindresvport.texi: Likewise.
12275         * doc/glibc-functions/dn_expand.texi: Likewise.
12276         * doc/glibc-functions/exp10.texi: Likewise.
12277         * doc/glibc-functions/exp10f.texi: Likewise.
12278         * doc/glibc-functions/fgetxattr.texi: Likewise.
12279         * doc/glibc-functions/flistxattr.texi: Likewise.
12280         * doc/glibc-functions/fopencookie.texi: Likewise.
12281         * doc/glibc-functions/freeifaddrs.texi: Likewise.
12282         * doc/glibc-functions/fremovexattr.texi: Likewise.
12283         * doc/glibc-functions/fsetxattr.texi: Likewise.
12284         * doc/glibc-functions/getifaddrs.texi: Likewise.
12285         * doc/glibc-functions/getxattr.texi: Likewise.
12286         * doc/glibc-functions/lgetxattr.texi: Likewise.
12287         * doc/glibc-functions/listxattr.texi: Likewise.
12288         * doc/glibc-functions/llistxattr.texi: Likewise.
12289         * doc/glibc-functions/lremovexattr.texi: Likewise.
12290         * doc/glibc-functions/lsetxattr.texi: Likewise.
12291         * doc/glibc-functions/pow10.texi: Likewise.
12292         * doc/glibc-functions/pow10f.texi: Likewise.
12293         * doc/glibc-functions/rcmd_af.texi: Likewise.
12294         * doc/glibc-functions/removexattr.texi: Likewise.
12295         * doc/glibc-functions/res_init.texi: Likewise.
12296         * doc/glibc-functions/res_mkquery.texi: Likewise.
12297         * doc/glibc-functions/res_query.texi: Likewise.
12298         * doc/glibc-functions/res_querydomain.texi: Likewise.
12299         * doc/glibc-functions/res_send.texi: Likewise.
12300         * doc/glibc-functions/rresvport_af.texi: Likewise.
12301         * doc/glibc-functions/setxattr.texi: Likewise.
12302         * doc/glibc-functions/strcasestr.texi: Likewise.
12303
12304 2008-12-15  Bruno Haible  <bruno@clisp.org>
12305
12306         Fix compilation error on OSF/1 4.0.
12307         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
12308         <sys/time.h>, simply delegate to the system header.
12309         Reported by Daniel Richard G. <oss@teragram.com>.
12310
12311 2008-12-15  Bruno Haible  <bruno@clisp.org>
12312
12313         * doc/posix-functions/openat.texi: Mention the 'openat' module.
12314         * doc/posix-functions/fchmodat.texi: Likewise.
12315         * doc/posix-functions/fchownat.texi: Likewise.
12316         * doc/posix-functions/fdopendir.texi: Likewise.
12317         * doc/posix-functions/fstatat.texi: Likewise.
12318         * doc/posix-functions/mkdirat.texi: Likewise.
12319         * doc/posix-functions/unlinkat.texi: Likewise.
12320
12321 2008-12-14  Bruno Haible  <bruno@clisp.org>
12322
12323         Update doc for POSIX:2008.
12324         * doc/posix-functions/faccessat.texi: New file.
12325         * doc/posix-functions/fchmodat.texi: New file.
12326         * doc/posix-functions/fchownat.texi: New file.
12327         * doc/posix-functions/fdopendir.texi: New file.
12328         * doc/posix-functions/fstatat.texi: New file.
12329         * doc/posix-functions/futimens.texi: New file.
12330         * doc/posix-functions/linkat.texi: New file.
12331         * doc/posix-functions/mkdirat.texi: New file.
12332         * doc/posix-functions/mkfifoat.texi: New file.
12333         * doc/posix-functions/mknodat.texi: New file.
12334         * doc/posix-functions/open_wmemstream.texi: New file.
12335         * doc/posix-functions/openat.texi: New file.
12336         * doc/posix-functions/psiginfo.texi: New file.
12337         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
12338         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
12339         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
12340         * doc/posix-functions/readlinkat.texi: New file.
12341         * doc/posix-functions/renameat.texi: New file.
12342         * doc/posix-functions/strerror_l.texi: New file.
12343         * doc/posix-functions/symlinkat.texi: New file.
12344         * doc/posix-functions/unlinkat.texi: New file.
12345         * doc/posix-functions/utimensat.texi: New file.
12346         * doc/gnulib.texi (Function Substitutes): Add these subsections.
12347
12348 2008-12-14  Bruno Haible  <bruno@clisp.org>
12349
12350         Update doc for POSIX:2008.
12351         * doc/posix-functions/alphasort.texi: Renamed from
12352         doc/glibc-functions/alphasort.texi.
12353         * doc/posix-functions/dirfd.texi: Renamed from
12354         doc/glibc-functions/dirfd.texi.
12355         * doc/posix-functions/dprintf.texi: Renamed from
12356         doc/glibc-functions/dprintf.texi.
12357         * doc/posix-functions/duplocale.texi: Renamed from
12358         doc/glibc-functions/duplocale.texi.
12359         * doc/posix-functions/fexecve.texi: Renamed from
12360         doc/glibc-functions/fexecve.texi.
12361         * doc/posix-functions/fmemopen.texi: Renamed from
12362         doc/glibc-functions/fmemopen.texi.
12363         * doc/posix-functions/freelocale.texi: Renamed from
12364         doc/glibc-functions/freelocale.texi.
12365         * doc/posix-functions/getdate_err.texi: Renamed from
12366         doc/glibc-functions/getdate_err.texi.
12367         * doc/posix-functions/isalnum_l.texi: Renamed from
12368         doc/glibc-functions/isalnum_l.texi.
12369         * doc/posix-functions/isalpha_l.texi: Renamed from
12370         doc/glibc-functions/isalpha_l.texi.
12371         * doc/posix-functions/isblank_l.texi: Renamed from
12372         doc/glibc-functions/isblank_l.texi.
12373         * doc/posix-functions/iscntrl_l.texi: Renamed from
12374         doc/glibc-functions/iscntrl_l.texi.
12375         * doc/posix-functions/isdigit_l.texi: Renamed from
12376         doc/glibc-functions/isdigit_l.texi.
12377         * doc/posix-functions/isgraph_l.texi: Renamed from
12378         doc/glibc-functions/isgraph_l.texi.
12379         * doc/posix-functions/islower_l.texi: Renamed from
12380         doc/glibc-functions/islower_l.texi.
12381         * doc/posix-functions/isprint_l.texi: Renamed from
12382         doc/glibc-functions/isprint_l.texi.
12383         * doc/posix-functions/ispunct_l.texi: Renamed from
12384         doc/glibc-functions/ispunct_l.texi.
12385         * doc/posix-functions/isspace_l.texi: Renamed from
12386         doc/glibc-functions/isspace_l.texi.
12387         * doc/posix-functions/isupper_l.texi: Renamed from
12388         doc/glibc-functions/isupper_l.texi.
12389         * doc/posix-functions/iswalnum_l.texi: Renamed from
12390         doc/glibc-functions/iswalnum_l.texi.
12391         * doc/posix-functions/iswalpha_l.texi: Renamed from
12392         doc/glibc-functions/iswalpha_l.texi.
12393         * doc/posix-functions/iswblank_l.texi: Renamed from
12394         doc/glibc-functions/iswblank_l.texi.
12395         * doc/posix-functions/iswcntrl_l.texi: Renamed from
12396         doc/glibc-functions/iswcntrl_l.texi.
12397         * doc/posix-functions/iswctype_l.texi: Renamed from
12398         doc/glibc-functions/iswctype_l.texi.
12399         * doc/posix-functions/iswdigit_l.texi: Renamed from
12400         doc/glibc-functions/iswdigit_l.texi.
12401         * doc/posix-functions/iswgraph_l.texi: Renamed from
12402         doc/glibc-functions/iswgraph_l.texi.
12403         * doc/posix-functions/iswlower_l.texi: Renamed from
12404         doc/glibc-functions/iswlower_l.texi.
12405         * doc/posix-functions/iswprint_l.texi: Renamed from
12406         doc/glibc-functions/iswprint_l.texi.
12407         * doc/posix-functions/iswpunct_l.texi: Renamed from
12408         doc/glibc-functions/iswpunct_l.texi.
12409         * doc/posix-functions/iswspace_l.texi: Renamed from
12410         doc/glibc-functions/iswspace_l.texi.
12411         * doc/posix-functions/iswupper_l.texi: Renamed from
12412         doc/glibc-functions/iswupper_l.texi.
12413         * doc/posix-functions/iswxdigit_l.texi: Renamed from
12414         doc/glibc-functions/iswxdigit_l.texi.
12415         * doc/posix-functions/isxdigit_l.texi: Renamed from
12416         doc/glibc-functions/isxdigit_l.texi.
12417         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
12418         doc/glibc-functions/mbsnrtowcs.texi.
12419         * doc/posix-functions/mkdtemp.texi: Renamed from
12420         doc/glibc-functions/mkdtemp.texi.
12421         * doc/posix-functions/newlocale.texi: Renamed from
12422         doc/glibc-functions/newlocale.texi.
12423         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
12424         doc/glibc-functions/nl_langinfo_l.texi.
12425         * doc/posix-functions/open_memstream.texi: Renamed from
12426         doc/glibc-functions/open_memstream.texi.
12427         * doc/posix-functions/opterr.texi: Renamed from
12428         doc/glibc-functions/opterr.texi.
12429         * doc/posix-functions/optind.texi: Renamed from
12430         doc/glibc-functions/optind.texi.
12431         * doc/posix-functions/optopt.texi: Renamed from
12432         doc/glibc-functions/optopt.texi.
12433         * doc/posix-functions/psignal.texi: Renamed from
12434         doc/glibc-functions/psignal.texi.
12435         * doc/posix-functions/scandir.texi: Renamed from
12436         doc/glibc-functions/scandir.texi.
12437         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
12438         doc/glibc-functions/sched_get_priority_min.texi.
12439         * doc/posix-functions/signgam.texi: Renamed from
12440         doc/glibc-functions/signgam.texi.
12441         * doc/posix-functions/stpcpy.texi: Renamed from
12442         doc/glibc-functions/stpcpy.texi.
12443         * doc/posix-functions/stpncpy.texi: Renamed from
12444         doc/glibc-functions/stpncpy.texi.
12445         * doc/posix-functions/strcasecmp_l.texi: Renamed from
12446         doc/glibc-functions/strcasecmp_l.texi.
12447         * doc/posix-functions/strcoll_l.texi: Renamed from
12448         doc/glibc-functions/strcoll_l.texi.
12449         * doc/posix-functions/strfmon_l.texi: Renamed from
12450         doc/glibc-functions/strfmon_l.texi.
12451         * doc/posix-functions/strftime_l.texi: Renamed from
12452         doc/glibc-functions/strftime_l.texi.
12453         * doc/posix-functions/strncasecmp_l.texi: Renamed from
12454         doc/glibc-functions/strncasecmp_l.texi.
12455         * doc/posix-functions/strndup.texi: Renamed from
12456         doc/glibc-functions/strndup.texi.
12457         * doc/posix-functions/strnlen.texi: Renamed from
12458         doc/glibc-functions/strnlen.texi.
12459         * doc/posix-functions/strsignal.texi: Renamed from
12460         doc/glibc-functions/strsignal.texi.
12461         * doc/posix-functions/strxfrm_l.texi: Renamed from
12462         doc/glibc-functions/strxfrm_l.texi.
12463         * doc/posix-functions/timer_gettime.texi: Renamed from
12464         doc/glibc-functions/timer_gettime.texi.
12465         * doc/posix-functions/tolower_l.texi: Renamed from
12466         doc/glibc-functions/tolower_l.texi.
12467         * doc/posix-functions/toupper_l.texi: Renamed from
12468         doc/glibc-functions/toupper_l.texi.
12469         * doc/posix-functions/towctrans_l.texi: Renamed from
12470         doc/glibc-functions/towctrans_l.texi.
12471         * doc/posix-functions/towlower_l.texi: Renamed from
12472         doc/glibc-functions/towlower_l.texi.
12473         * doc/posix-functions/towupper_l.texi: Renamed from
12474         doc/glibc-functions/towupper_l.texi.
12475         * doc/posix-functions/uselocale.texi: Renamed from
12476         doc/glibc-functions/uselocale.texi.
12477         * doc/posix-functions/vdprintf.texi: Renamed from
12478         doc/glibc-functions/vdprintf.texi.
12479         * doc/posix-functions/wcpcpy.texi:
12480         Renamed from doc/glibc-functions/wcpcpy.texi.
12481         * doc/posix-functions/wcpncpy.texi: Renamed from
12482         doc/glibc-functions/wcpncpy.texi.
12483         * doc/posix-functions/wcscasecmp.texi: Renamed from
12484         doc/glibc-functions/wcscasecmp.texi.
12485         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
12486         doc/glibc-functions/wcscasecmp_l.texi.
12487         * doc/posix-functions/wcscoll_l.texi: Renamed from
12488         doc/glibc-functions/wcscoll_l.texi.
12489         * doc/posix-functions/wcsdup.texi: Renamed from
12490         doc/glibc-functions/wcsdup.texi.
12491         * doc/posix-functions/wcsncasecmp.texi: Renamed from
12492         doc/glibc-functions/wcsncasecmp.texi.
12493         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
12494         doc/glibc-functions/wcsncasecmp_l.texi.
12495         * doc/posix-functions/wcsnlen.texi: Renamed from
12496         doc/glibc-functions/wcsnlen.texi.
12497         * doc/posix-functions/wcsnrtombs.texi: Renamed from
12498         doc/glibc-functions/wcsnrtombs.texi.
12499         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
12500         doc/glibc-functions/wcsxfrm_l.texi.
12501         * doc/posix-functions/wctrans_l.texi: Renamed from
12502         doc/glibc-functions/wctrans_l.texi.
12503         * doc/posix-functions/wctype_l.texi: Renamed from
12504         doc/glibc-functions/wctype_l.texi.
12505         * doc/gnulib.texi (Function Substitutes): Add these subsections.
12506         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
12507         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
12508         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
12509         these subsections.
12510         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
12511         Remove sections.
12512
12513 2008-12-14  Bruno Haible  <bruno@clisp.org>
12514
12515         Update doc for POSIX:2008.
12516         * doc/posix-functions/*.texi: Update URL of POSIX specification.
12517
12518 2008-12-14  Bruno Haible  <bruno@clisp.org>
12519
12520         Update doc for POSIX:2008.
12521         * doc/pastposix-functions/bcmp.texi: Renamed from
12522         doc/posix-functions/bcmp.texi.
12523         * doc/pastposix-functions/bcopy.texi: Renamed from
12524         doc/posix-functions/bcopy.texi.
12525         * doc/pastposix-functions/bsd_signal.texi: Renamed from
12526         doc/posix-functions/bsd_signal.texi.
12527         * doc/pastposix-functions/bzero.texi: Renamed from
12528         doc/posix-functions/bzero.texi.
12529         * doc/pastposix-functions/ecvt.texi: Renamed from
12530         doc/posix-functions/ecvt.texi.
12531         * doc/pastposix-functions/fcvt.texi: Renamed from
12532         doc/posix-functions/fcvt.texi.
12533         * doc/pastposix-functions/ftime.texi: Renamed from
12534         doc/posix-functions/ftime.texi.
12535         * doc/pastposix-functions/gcvt.texi: Renamed from
12536         doc/posix-functions/gcvt.texi.
12537         * doc/pastposix-functions/getcontext.texi: Renamed from
12538         doc/posix-functions/getcontext.texi.
12539         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
12540         doc/posix-functions/gethostbyaddr.texi.
12541         * doc/pastposix-functions/gethostbyname.texi: Renamed from
12542         doc/posix-functions/gethostbyname.texi.
12543         * doc/pastposix-functions/getwd.texi: Renamed from
12544         doc/posix-functions/getwd.texi.
12545         * doc/pastposix-functions/h_errno.texi: Renamed from
12546         doc/posix-functions/h_errno.texi.
12547         * doc/pastposix-functions/index.texi: Renamed from
12548         doc/posix-functions/index.texi.
12549         * doc/pastposix-functions/makecontext.texi: Renamed from
12550         doc/posix-functions/makecontext.texi.
12551         * doc/pastposix-functions/mktemp.texi: Renamed from
12552         doc/posix-functions/mktemp.texi.
12553         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
12554         doc/posix-functions/pthread_attr_getstackaddr.texi.
12555         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
12556         doc/posix-functions/pthread_attr_setstackaddr.texi.
12557         * doc/pastposix-functions/rindex.texi: Renamed from
12558         doc/posix-functions/rindex.texi.
12559         * doc/pastposix-functions/scalb.texi: Renamed from
12560         doc/posix-functions/scalb.texi.
12561         * doc/pastposix-functions/setcontext.texi: Renamed from
12562         doc/posix-functions/setcontext.texi.
12563         * doc/pastposix-functions/swapcontext.texi: Renamed from
12564         doc/posix-functions/swapcontext.texi.
12565         * doc/pastposix-functions/ualarm.texi: Renamed from
12566         doc/posix-functions/ualarm.texi.
12567         * doc/pastposix-functions/usleep.texi: Renamed from
12568         doc/posix-functions/usleep.texi.
12569         * doc/pastposix-functions/vfork.texi: Renamed from
12570         doc/posix-functions/vfork.texi.
12571         * doc/pastposix-functions/wcswcs.texi: Renamed from
12572         doc/posix-functions/wcswcs.texi.
12573         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
12574         (Function Substitutes): Update.
12575
12576 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12577
12578         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
12579         m4/strerror.m4.
12580
12581 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12582             Bruno Haible  <bruno@clisp.org>
12583
12584         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
12585
12586 2008-12-13  Bruno Haible  <bruno@clisp.org>
12587
12588         * modules/strtoull (Depends-on): Remove unistd.
12589
12590 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12591
12592         * modules/strtoull (Depends-on): Add stdlib.
12593
12594 2008-12-11  Simon Josefsson  <simon@josefsson.org>
12595
12596         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
12597
12598 2008-12-10  Jim Meyering  <meyering@redhat.com>
12599
12600         gl_ASSERT: don't say assertions are disabled when they're not
12601         * m4/assert.m4 (gl_ASSERT): Do not make configure report
12602         "checking whether to enable assertions... no", when they are in
12603         fact enabled.  This is solely a bug in the output of configure.
12604         In spite of saying "no", NDEBUG was not defined in that case.
12605         Also, as noted by Eric Blake, leave assertions enabled upon
12606         --enable-assert=INVALID.
12607
12608 2008-12-10  Bruno Haible  <bruno@clisp.org>
12609
12610         Change MODULES.html to refer to POSIX:2008 where possible.
12611         * MODULES.html.sh (POSIX2008_URL): New variable.
12612         (posix_headers): Remove sys/timeb, ucontext.
12613         (posix2001_headers): New variable.
12614         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
12615         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
12616         index, makecontext, mktemp, pthread_attr_getstackaddr,
12617         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
12618         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
12619         (posix2001_functions): New variable.
12620         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
12621         otherwise.
12622
12623 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12624
12625         add missing include to parse-duration.c
12626         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
12627         * modules/parse-duration (Depends-on): Add xalloc.
12628
12629         fix sed script reading maint.mk
12630         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
12631         (syntax-check-rules): Use it.
12632
12633 2008-12-09  Bruno Haible  <bruno@clisp.org>
12634
12635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
12636         MacOS X 10.4/PowerPC.
12637         Reported by Simon Josefsson.
12638
12639 2008-12-08  Jim Meyering  <meyering@redhat.com>
12640
12641         work around mingw's lack of some S_IF definitions
12642         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
12643         Reported by Simon Josefsson.
12644
12645 2008-12-08  Bruno Haible  <bruno@clisp.org>
12646
12647         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
12648         applied to variables. Needed on MacOS X 10.4/PowerPC.
12649         Reported by Simon Josefsson.
12650
12651 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
12652         and Eric Blake  <ebb9@byu.net>
12653
12654         assert: honor --enable-assert
12655         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
12656         order to honor --enable-assert, rather than treating it as a
12657         synonym for --disable-assert.
12658
12659 2008-12-08  Jim Meyering  <meyering@redhat.com>
12660
12661         * lib/posixtm.c: Remove now-useless declaration of mktime.
12662
12663         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
12664
12665 2008-12-07  Bruno Haible  <bruno@clisp.org>
12666
12667         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
12668         test_once): Mark functions as static.
12669         * tests/test-tls.c (test_tls): Likewise.
12670
12671 2008-12-07  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
12674         iconv_register_autodetect.
12675
12676 2008-12-07  Jim Meyering  <meyering@redhat.com>
12677
12678         posixtm.c: avoid a warning
12679         * lib/posixtm.c (posixtime): Don't initialize tm0.
12680         It's no longer needed to placate gcc4's -Wuninitialized,
12681         and the attempt to placate would elicit a new warning.
12682
12683         unicodeio.c: mark unused parameters
12684         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
12685         (fallback_failure_callback): Likewise.
12686
12687 2008-12-07  Bruno Haible  <bruno@clisp.org>
12688
12689         * gnulib-tool (func_create_testdir): When building the tests
12690         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
12691         Reported by Simon Josefsson.
12692
12693 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12694
12695         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
12696
12697 2008-12-06  Bruno Haible  <bruno@clisp.org>
12698
12699         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
12700         Suggested by Eric Blake.
12701
12702 2008-12-06  Bruno Haible  <bruno@clisp.org>
12703
12704         Fix a c-stack test failure on MacOS X.
12705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
12706         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
12707         handler for SIGBUS as well.
12708         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
12709         install a signal handler for SIGBUS as well.
12710         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
12711
12712 2008-12-06  Bruno Haible  <bruno@clisp.org>
12713
12714         Advocacy documentation.
12715         * doc/gnulib-intro.texi (Benefits): New section.
12716         * doc/gnulib.texi: Update.
12717
12718 2008-12-06  Bruno Haible  <bruno@clisp.org>
12719
12720         Document the 'manywarnings' module.
12721         * doc/manywarnings.texi: New file.
12722         * doc/gnulib.texi: Include it.
12723
12724 2008-12-05  Eric Blake  <ebb9@byu.net>
12725
12726         tests: silence some gcc warnings
12727         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
12728         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
12729         type mismatches.
12730
12731 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12732             Bruno Haible  <bruno@clisp.org>
12733
12734         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
12735
12736 2008-11-29  Jim Meyering  <meyering@redhat.com>
12737
12738         unicodeio.c: mark unused parameters
12739         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
12740         (fallback_failure_callback): Likewise.
12741
12742         fts: fix a thinko
12743         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
12744         (set_stat_type): Return S_IF*-valued "type" directly.
12745         Prompted by James Youngman's spotting a related bug.
12746         Confirmed by further testing through find.
12747
12748         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
12749         * lib/fts.c (D_TYPE): Define.
12750         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
12751         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
12752         (s_ifmt_shift_bits): New function.
12753         (set_stat_type): New function.
12754         (fts_build): When not calling fts_stat, call set_stat_type
12755         to propagate dirent.d_type info to fts_read caller.
12756         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
12757         fts_statp->st_mode type information may be valid.
12758
12759 2008-11-28  Simon Josefsson  <simon@josefsson.org>
12760
12761         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
12762         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
12763         <sds@gnu.org>.
12764
12765 2008-11-20  Bruno Haible  <bruno@clisp.org>
12766
12767         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
12768         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
12769         INCLUDE_NEXT.
12770         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
12771         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
12772         * modules/math (Makefile.am): Substitute
12773         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
12774         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12775
12776 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
12777             Bruno Haible  <bruno@clisp.org>
12778
12779         * lib/stdint.in.h: Define all type macros so that their expansion is
12780         a single typedef'ed token. Fixes a compilation failure in Boost which
12781         does "using ::int8_t;".
12782
12783 2008-11-18  Simon Josefsson  <simon@josefsson.org>
12784
12785         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
12786         gl_MANYWARN_ALL_GCC.
12787         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
12788         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
12789         * modules/manywarnings: New file.
12790         * MODULES.html.sh: Mention manywarnings module.
12791
12792 2008-11-18  Bruno Haible  <bruno@clisp.org>
12793
12794         * doc/gnulib-tool.texi (Unit tests): New section.
12795
12796 2008-11-18  Simon Josefsson  <simon@josefsson.org>
12797
12798         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
12799         paths like 'lib/po/foo.po'.
12800
12801 2008-11-17  Simon Josefsson  <simon@josefsson.org>
12802
12803         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
12804         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
12805
12806 2008-11-17  Simon Josefsson  <simon@josefsson.org>
12807
12808         * m4/warnings.m4: Use CPPFLAGS to really check whether the
12809         parameter works.
12810
12811 2008-11-17  Simon Josefsson  <simon@josefsson.org>
12812
12813         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
12814
12815 2008-11-17  Bruce Korb  <bkorb@gnu.org>
12816
12817         * modules/parse-duration-tests: New file.
12818         * tests/test-parse-duration.sh: New file.
12819         * tests/test-parse-duration.c: New file.
12820
12821         New module 'parse-duration'.
12822         * lib/parse-duration.h: New file.
12823         * lib/parse-duration.c: New file.
12824         * modules/parse-duration: New file.
12825
12826 2008-11-17  Bruno Haible  <bruno@clisp.org>
12827
12828         * tests/test-select-out.sh: Comment out the first pipe test.
12829         Reported by Simon Josefsson.
12830
12831 2008-11-17  Bruno Haible  <bruno@clisp.org>
12832
12833         * modules/getaddrinfo (Depends-on): Add servent, hostent.
12834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
12835         gl_HOSTENT.
12836
12837 2008-11-17  Bruno Haible  <bruno@clisp.org>
12838
12839         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
12840         -lnetwork and -lnet. Needed for Haiku and BeOS.
12841
12842 2008-11-16  Bruno Haible  <bruno@clisp.org>
12843
12844         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
12845
12846 2008-11-16  Bruno Haible  <bruno@clisp.org>
12847
12848         Avoid test failure on Haiku.
12849         * tests/test-fsync.c: Include <errno.h>.
12850         (main): Don't require that fsync (0) fails.
12851
12852 2008-11-15  Bruno Haible  <bruno@clisp.org>
12853
12854         New module 'hostent'.
12855         * modules/hostent: New file.
12856         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
12857
12858 2008-11-15  Bruno Haible  <bruno@clisp.org>
12859
12860         New module 'servent'.
12861         * modules/servent: New file.
12862         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
12863
12864 2008-11-15  Bruno Haible  <bruno@clisp.org>
12865
12866         Avoid generating same test program with two different rules.
12867         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
12868         test-frexp to test-frexp-nolibm.
12869         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
12870         test-frexpl to test-frexpl-nolibm.
12871
12872 2008-11-15  Bruno Haible  <bruno@clisp.org>
12873
12874         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
12875         $(FREXPL_LIBM).
12876
12877 2008-11-15  Bruno Haible  <bruno@clisp.org>
12878
12879         * lib/netdb.in.h: Activate the definitions also when the system's
12880         <netdb.h> has 'struct addrinfo'.
12881         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
12882         EAI_OVERFLOW or AI_NUMERICSERV.
12883         * doc/posix-headers/netdb.texi: Document the problem.
12884
12885 2008-11-15  Bruno Haible  <bruno@clisp.org>
12886
12887         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
12888
12889         Make the 'sched' module work on platforms where <sched.h> exists but
12890         is incomplete (such as Haiku).
12891         * lib/sched.in.h; Include the system's <sched.h> if it exists.
12892         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
12893         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
12894         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
12895         HAVE_STRUCT_SCHED_PARAM.
12896         * modules/sched (Depends-on): Add include_next.
12897         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
12898         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
12899         * doc/posix-headers/sched.texi: Document the issue.
12900
12901 2008-11-13  Jim Meyering  <meyering@redhat.com>
12902
12903         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
12904         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
12905         test would fail due to the difference in the Report bugs to ...
12906         line.  The expected address is empty, "<>", while the actual
12907         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
12908
12909 2008-11-12  Bruno Haible  <bruno@clisp.org>
12910
12911         lstat: don't compile lstat.c on systems lacking lstat
12912         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
12913         which don't have lstat; this is handled by lib/sys_stat.in.h already.
12914         Reported by Daniel P. Berrange via Jim Meyering.
12915
12916 2008-11-12  Jim Meyering  <meyering@redhat.com>
12917
12918         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
12919
12920 2008-11-12  Simon Josefsson  <simon@josefsson.org>
12921
12922         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
12923         instead.
12924
12925 2008-11-12  Bruno Haible  <bruno@clisp.org>
12926
12927         * lib/unicodeio.c: Include unistr.h.
12928         (utf8_wctomb): Remove function.
12929         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
12930
12931 2008-11-12  Simon Josefsson  <simon@josefsson.org>
12932
12933         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
12934         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
12935         <bruno@clisp.org>.
12936         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
12937
12938 2008-11-12  Simon Josefsson  <simon@josefsson.org>
12939
12940         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
12941         * doc/gnulib.texi: Add section for warnings.
12942
12943 2008-11-11  Bruno Haible  <bruno@clisp.org>
12944
12945         * lib/sockets.h: Add a comment.
12946
12947 2008-11-11  Karl Berry  <karl@gnu.org>
12948
12949         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
12950
12951 2008-11-11  Eric Blake  <ebb9@byu.net>
12952
12953         fdl.texi: avoid git symlinks
12954         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
12955
12956 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12957
12958         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
12959
12960 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12961
12962         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
12963         (gl_WARN_ADD): Substitute $2 if literal.
12964
12965 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12966
12967         * m4/warning.m4: Remove.
12968
12969 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
12970
12971         * m4/warnings.m4: Almost complete rewrite. :-)
12972
12973 2008-11-10  Simon Josefsson  <simon@josefsson.org>
12974
12975         * modules/warnings: New module.
12976         * m4/warnings.m4: New file.
12977         * MODULES.html.sh: Mention warnings module.
12978         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
12979         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12980
12981 2008-11-10  Eric Blake  <ebb9@byu.net>
12982
12983         fdl.texi: make a symlink to the latest version
12984         * doc/standards.texi: Revert today's earlier change.
12985         * doc/fdl-1.2.texi: Rename from old fdl.texi...
12986         * doc/fdl.texi: ...and replace this with a symlink to the newer
12987         fdl-1.3.texi.
12988
12989 2008-11-10  Bruno Haible  <bruno@clisp.org>
12990
12991         * tests/test-select-fd.c (main): Accept the result file name as fourth
12992         argument.
12993         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
12994         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
12995
12996 2008-11-10  Bruno Haible  <bruno@clisp.org>
12997
12998         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
12999         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
13000         as autoconf-substituted macros.
13001         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
13002         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
13003         gl_NETDB_H_DEFAULTS. Set these variables.
13004         * modules/netdb (Makefile.am): Substitute these variables.
13005
13006 2008-11-10  Eric Blake  <ebb9@byu.net>
13007
13008         standards.texi: include correct file for FDL 1.3
13009         * doc/standards.texi (GNU Free Documentation License): Change
13010         include file to pull in FDL 1.3, not 1.2.
13011
13012         fdl.texi: revert accidental change to license
13013         * doc/fdl.texi: This is FDL 1.2, not 1.3.
13014
13015 2008-11-10  Bruno Haible  <bruno@clisp.org>
13016
13017         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
13018         cross-compiling guesses also when the native compile gives no result.
13019
13020 2008-11-10  Bruno Haible  <bruno@clisp.org>
13021
13022         * lib/spawni.c (__spawni): Force variable into the stack.
13023
13024 2008-11-10  Bruno Haible  <bruno@clisp.org>
13025
13026         Add support for Haiku.
13027         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
13028         glibc and BeOS, but also on Haiku.
13029         * lib/fpurge.c (fpurge): Likewise.
13030         * lib/freadable.c (freadable): Likewise.
13031         * lib/freadahead.c (freadahead): Likewise.
13032         * lib/freading.c (freading): Likewise.
13033         * lib/freadptr.c (freadptr): Likewise.
13034         * lib/freadseek.c (freadptrinc): Likewise.
13035         * lib/fseeko.c (rpl_fseeko): Likewise.
13036         * lib/fseterr.c (fseterr): Likewise.
13037         * lib/fwritable.c (fwritable): Likewise.
13038         * lib/fwriting.c (fwriting): Likewise.
13039         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
13040
13041 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
13042
13043         * lib/config.charset: Treat Haiku like BeOS.
13044
13045 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
13046
13047         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
13048         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
13049
13050 2008-11-08  Bruno Haible  <bruno@clisp.org>
13051
13052         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
13053         AC_CACHE_CHECK.
13054
13055 2008-11-08  Bruno Haible  <bruno@clisp.org>
13056
13057         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
13058
13059 2008-11-08  Bruno Haible  <bruno@clisp.org>
13060
13061         * tests/test-select-fd.c: New file.
13062         * tests/test-select-in.sh: New file.
13063         * tests/test-select-out.sh: New file.
13064         * tests/test-select-stdin.c: New file.
13065         * modules/select-tests (Files): Add the new files.
13066         (Depends-on): Add gettimeofday.
13067         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
13068         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
13069         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
13070
13071 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
13072             Bruno Haible  <bruno@clisp.org>
13073
13074         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
13075
13076 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
13077
13078         * build-aux/pmccabe2html: Added support for C++ source files.
13079
13080 2008-11-05  Ben Pfaff  <blp@gnu.org>
13081
13082         Fix lib/close.c build on Windows.
13083         * modules/close (Files): Add lib/w32sock.h.
13084
13085 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
13086
13087         Accept Bison's NEWS format.
13088         * build-aux/announce-gen (print_news_deltas): Tweak
13089         $re_prefix.
13090
13091 2008-11-04  Bruno Haible  <bruno@clisp.org>
13092
13093         * modules/random_r (Maintainer): Add glibc.
13094
13095 2008-11-04  Simon Josefsson  <simon@josefsson.org>
13096
13097         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
13098         by karl@freefriends.org (Karl Berry).
13099         * doc/alloca.texi: Likewise.
13100         * doc/c-ctype.texi: Likewise.
13101         * doc/c-strcase.texi: Likewise.
13102         * doc/c-strcaseeq.texi: Likewise.
13103         * doc/c-strcasestr.texi: Likewise.
13104         * doc/c-strstr.texi: Likewise.
13105         * doc/c-strtod.texi: Likewise.
13106         * doc/c-strtold.texi: Likewise.
13107         * doc/ctime.texi: Likewise.
13108         * doc/error.texi: Likewise.
13109         * doc/fdl.texi: Likewise.
13110         * doc/gcd.texi: Likewise.
13111         * doc/getdate.texi: Likewise.
13112         * doc/gnulib-intro.texi: Likewise.
13113         * doc/gnulib-tool.texi: Likewise.
13114         * doc/gnulib.texi: Likewise.
13115         * doc/inet_ntoa.texi: Likewise.
13116         * doc/maintain.texi: Likewise.
13117         * doc/make-stds.texi: Likewise.
13118         * doc/quote.texi: Likewise.
13119         * doc/regexprops-generic.texi: Likewise.
13120         * doc/standards.texi: Likewise.
13121         * doc/verify.texi: Likewise.
13122         * doc/visibility.texi: Likewise.
13123         * doc/gnulib.texi (GNU Free Documentation License): Include
13124         fdl-1.3.texi instead of fdl.texi.
13125
13126 2008-11-04  Simon Josefsson  <simon@josefsson.org>
13127
13128         * doc/fdl-1.3.texi: New file, from
13129         <http://www.gnu.org/licenses/fdl-1.3.texi>.
13130         * modules/fdl-1.3: Add.
13131         * MODULES.html.sh: Add fdl-1.3.
13132
13133 2008-11-03  Bruno Haible  <bruno@clisp.org>
13134
13135         Make determination of absolute name of header file work with AIX xlc.
13136         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
13137         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
13138         preprocessing.
13139         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13140         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13141
13142 2008-11-03  Simon Josefsson  <simon@josefsson.org>
13143
13144         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
13145         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
13146         <ludo@gnu.org>.
13147
13148 2008-11-02  Bruno Haible  <bruno@clisp.org>
13149
13150         Mark 'strpbrk' obsolete.
13151         * modules/strpbrk (Status, Notice): New sections.
13152         * modules/strtok_r (Depends-on): Add strpbrk.
13153
13154 2008-11-02  Bruno Haible  <bruno@clisp.org>
13155
13156         Mark 'strdup' obsolete.
13157         * modules/strdup (Status, Notice): New sections.
13158         * modules/findprog (Depends-on): Add strdup.
13159         * modules/getaddrinfo (Depends-on): Likewise.
13160         * modules/localename (Depends-on): Likewise.
13161         * modules/relocatable-lib (Depends-on): Likewise.
13162         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
13163         * modules/relocatable-prog (Depends-on): Likewise.
13164         * modules/trim (Depends-on): Likewise.
13165         * modules/unictype/gen-ctype (Depends-on): Likewise.
13166         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13167
13168 2008-11-02  Bruno Haible  <bruno@clisp.org>
13169
13170         Mark 'strcspn' obsolete.
13171         * modules/strcspn (Status, Notice): New sections.
13172
13173 2008-11-02  Bruno Haible  <bruno@clisp.org>
13174
13175         Mark 'rmdir' obsolete.
13176         * modules/rmdir (Status, Notice): New sections.
13177         * modules/clean-temp (Depends-on): Add rmdir.
13178         * modules/openat (Depends-on): Likewise.
13179
13180 2008-11-02  Bruno Haible  <bruno@clisp.org>
13181
13182         Mark 'raise' obsolete.
13183         * modules/raise (Status, Notice): New sections.
13184         (Include): Specify <signal.h>.
13185         * modules/stdio (Depends-on): Add raise.
13186         * modules/write (Depends-on): Likewise.
13187
13188 2008-11-02  Bruno Haible  <bruno@clisp.org>
13189
13190         Mark 'memset' obsolete.
13191         * modules/memset (Status, Notice): New sections.
13192
13193 2008-11-02  Bruno Haible  <bruno@clisp.org>
13194
13195         Mark 'memmove' obsolete.
13196         * modules/memmove (Status, Notice): New sections.
13197         * modules/argp (Depends-on): Add memmove.
13198         * modules/argz (Depends-on): Likewise.
13199         * modules/canonicalize (Depends-on): Likewise.
13200         * modules/canonicalize-lgpl (Depends-on): Likewise.
13201         * modules/fts (Depends-on): Likewise.
13202         * modules/getcwd (Depends-on): Likewise.
13203         * modules/human (Depends-on): Likewise.
13204         * modules/regex (Depends-on): Likewise.
13205         * modules/striconveh (Depends-on): Likewise.
13206         * modules/trim (Depends-on): Likewise.
13207         * modules/unistr/u8-move (Depends-on): Likewise.
13208         * modules/unistr/u16-move (Depends-on): Likewise.
13209         * modules/unistr/u32-move (Depends-on): Likewise.
13210
13211 2008-11-02  Bruno Haible  <bruno@clisp.org>
13212
13213         Mark 'memcpy' obsolete.
13214         * modules/memcpy (Status, Notice): New sections.
13215
13216 2008-11-02  Bruno Haible  <bruno@clisp.org>
13217
13218         Mark 'memcmp' obsolete.
13219         * modules/memcmp (Status, Notice): New sections.
13220         * modules/argmatch (Depends-on): Add memchr.
13221         * modules/backupfile (Depends-on): Likewise.
13222         * modules/c-strcasestr (Depends-on): Likewise.
13223         * modules/crypto/des (Depends-on): Likewise.
13224         * modules/csharpcomp (Depends-on): Likewise.
13225         * modules/fnmatch (Depends-on): Likewise.
13226         * modules/git-merge-changelog (Depends-on): Likewise.
13227         * modules/isnand (Depends-on): Likewise.
13228         * modules/isnand-nolibm (Depends-on): Likewise.
13229         * modules/isnanf (Depends-on): Likewise.
13230         * modules/isnanf-nolibm (Depends-on): Likewise.
13231         * modules/isnanl (Depends-on): Likewise.
13232         * modules/isnanl-nolibm (Depends-on): Likewise.
13233         * modules/mbchar (Depends-on): Likewise.
13234         * modules/memcoll (Depends-on): Likewise.
13235         * modules/quotearg (Depends-on): Likewise.
13236         * modules/regex (Depends-on): Likewise.
13237         * modules/relocatable-prog (Depends-on): Likewise.
13238         * modules/same (Depends-on): Likewise.
13239         * modules/signbit (Depends-on): Likewise.
13240         * modules/strcasestr-simple (Depends-on): Likewise.
13241         * modules/unictype/gen-ctype (Depends-on): Likewise.
13242         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13243         * modules/uniname/uniname (Depends-on): Likewise.
13244         * modules/unistr/u8-cmp (Depends-on): Likewise.
13245
13246 2008-11-02  Bruno Haible  <bruno@clisp.org>
13247
13248         Mark 'memchr' obsolete.
13249         * modules/memchr (Status, Notice): New sections.
13250         * modules/argp (Depends-on): Add memchr.
13251         * modules/base64 (Depends-on): Likewise.
13252         * modules/c-strcasestr (Depends-on): Likewise.
13253         * modules/chdir-long (Depends-on): Likewise.
13254         * modules/fnmatch (Depends-on): Likewise.
13255         * modules/getsubopt (Depends-on): Likewise.
13256         * modules/git-merge-changelog (Depends-on): Likewise.
13257         * modules/glob (Depends-on): Likewise.
13258         * modules/strcasestr-simple (Depends-on): Likewise.
13259         * modules/strnlen (Depends-on): Likewise.
13260
13261 2008-11-02  Bruno Haible  <bruno@clisp.org>
13262
13263         Mark 'atexit' obsolete.
13264         * modules/atexit (Status, Notice): New sections.
13265         * modules/chdir-long (Depends-on): Add atexit.
13266         * modules/wait-process (Depends-on): Likewise.
13267
13268 2008-11-02  Bruno Haible  <bruno@clisp.org>
13269
13270         * gnulib-tool: New option --with-obsolete.
13271         (func_usage): Document it.
13272         (func_modules_transitive_closure): Drop obsolete dependencies if
13273         incobsolete is not true.
13274         (func_import): Read and save the incobsolete variable to the cache.
13275
13276 2008-11-02  Bruno Haible  <bruno@clisp.org>
13277
13278         * modules/TEMPLATE-EXTENDED: New field 'Status'.
13279         * gnulib-tool: New option --extract-status.
13280         (func_usage): Document it.
13281         (sed_extract_prog): Recognize it.
13282         (func_get_status): New function.
13283
13284 2008-10-30  Simon Josefsson  <simon@josefsson.org>
13285
13286         * modules/sockets (License): Change from LGPL to LGPLv2+.
13287
13288 2008-10-28  Simon Josefsson  <simon@josefsson.org>
13289
13290         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
13291
13292 2008-10-28  Simon Josefsson  <simon@josefsson.org>
13293
13294         * MODULES.html.sh (Support for systems lacking POSIX:2001):
13295         Mention times and sys_times.
13296         * modules/sys_times, modules/sys_times-tests: New modules.
13297         * modules/times, modules/times-tests: Likewise
13298         * m4/sys_times_h.m4: New file.
13299         * lib/sys_times.in.h: Likewise
13300         * lib/times.c: Likewise.
13301         * tests/test-sys_times.c: Likewise.
13302         * tests/test-times.c: Likewise.
13303         * doc/posix-headers/sys_times.texi: Update.
13304         * doc/posix-functions/times.texi: Update.
13305
13306 2008-10-28  Jim Meyering  <meyering@redhat.com>
13307
13308         * modules/tempname (Depends-on): Add lstat.
13309
13310         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
13311
13312 2008-10-28  Simon Josefsson  <simon@josefsson.org>
13313
13314         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
13315         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
13316         using idiom used elsewhere in gnulib.
13317
13318 2008-10-27  Jim Meyering  <meyering@redhat.com>
13319
13320         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
13321
13322 2008-10-27  Simon Josefsson  <simon@josefsson.org>
13323
13324         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
13325         TESTS_ENVIRONMENT, for shell scripts that needs to call built
13326         programs.
13327         * tests/test-argp-2.sh: Use $EXEEXT when needed.
13328
13329 2008-10-27  Simon Josefsson  <simon@josefsson.org>
13330
13331         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
13332
13333 2008-10-27  Bruno Haible  <bruno@clisp.org>
13334
13335         * tests/test-lstat.c: Include <stdio.h>.
13336
13337 2008-10-27  Simon Josefsson  <simon@josefsson.org>
13338
13339         * modules/lstat-tests: New module.
13340         * tests/test-lstat.c: New file.
13341
13342 2008-10-26  Jim Meyering  <meyering@redhat.com>
13343
13344         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
13345
13346 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13347             Bruno Haible  <bruno@clisp.org>
13348
13349         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
13350         * modules/configmake (Include): Add a note that the include must come
13351         after all system headers.
13352         * lib/javaversion.c: Include configmake.h after all other includes.
13353
13354 2008-10-26  Bruno Haible  <bruno@clisp.org>
13355
13356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
13357         HAVE_STRUCT_RANDOM_DATA to 1.
13358         (gl_STDLIB_H): Simplify.
13359
13360 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13361
13362         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
13363         substitute HAVE_STRUCT_RANDOM_DATA.
13364         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
13365         random_data.
13366         * modules/stdlib (Makefile.am): Substitute
13367         HAVE_STRUCT_RANDOM_DATA.
13368
13369 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13370
13371         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
13372         * doc/gnulib-intro.texi (Copyright): Likewise.
13373
13374 2008-10-26  Simon Josefsson  <simon@josefsson.org>
13375
13376         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
13377         findings.
13378
13379 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
13380             Bruno Haible  <bruno@clisp.org>
13381
13382         * lib/unistd.in.h: Include <winsock2.h>.
13383         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
13384         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
13385         Provide dummy declarations.
13386         (gethostname): Override.
13387         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
13388         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
13389         gl_PREREQ_SYS_H_WINSOCK2.
13390         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
13391         * doc/posix-functions/gethostname.texi: More details.
13392
13393 2008-10-25  Bruno Haible  <bruno@clisp.org>
13394
13395         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
13396         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
13397         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
13398
13399         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
13400         here ...
13401         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
13402         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
13403         gl_UNISTD_H_DEFAULTS.
13404
13405 2008-10-25  Eric Blake  <ebb9@byu.net>
13406
13407         signbit: avoid spurious compiler failure
13408         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
13409         declarations inside function.
13410
13411 2008-10-24  Simon Josefsson  <simon@josefsson.org>
13412             Bruno Haible  <bruno@clisp.org>
13413
13414         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
13415         * modules/random_r (Depends-on): Add stdint.
13416
13417 2008-10-24  Bruno Haible  <bruno@clisp.org>
13418
13419         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
13420         Eggert.
13421         * modules/strerror (License): Likewise.
13422
13423 2008-10-24  Jim Meyering  <meyering@redhat.com>
13424
13425         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
13426         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
13427
13428 2008-10-24  Eric Blake  <ebb9@byu.net>
13429
13430         getgroups: fix compilation when getgroups is available
13431         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
13432         but with <config.h> override of getgroups disabled.
13433
13434 2008-10-24  Simon Josefsson  <simon@josefsson.org>
13435
13436         * doc/gnulib.texi (Header files): Add note about C++ problems.
13437         Explained by Bruno Haible <bruno@clisp.org>.
13438
13439 2008-10-23  Bruno Haible  <bruno@clisp.org>
13440
13441         Define a dummy SA_NODEFER macro on Interix.
13442         * lib/signal.in.h (SA_NODEFER): Define fallback.
13443         Reported by Aleksey Cheusov <cheusov@tut.by> via
13444         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
13445
13446 2008-10-23  Bruno Haible  <bruno@clisp.org>
13447
13448         * modules/freadahead (License): Change to LGPLv2+.
13449         Suggested by Simon Josefsson.
13450
13451 2008-10-23  Jim Meyering  <meyering@redhat.com>
13452
13453         random_r: new module
13454         * modules/random_r: New file.
13455         * m4/random_r.m4: New file.
13456         * lib/random_r.c: New file, from glibc.
13457         * modules/random_r-tests: New file.
13458         * tests/test-random_r.c: New file.
13459         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
13460          Declare.
13461         (RAND_MAX): Define.
13462         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
13463         * modules/stdlib: Substitute them, too.
13464         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
13465         * doc/glibc-functions/initstate_r.texi: Mention the new module.
13466         * doc/glibc-functions/random_r.texi: Likewise.
13467         * doc/glibc-functions/setstate_r.texi: Likewise.
13468         * doc/glibc-functions/srandom_r.texi: Likewise.
13469         * config/srclist.txt: Mention it.
13470
13471 2008-10-23  David Lutterkort  <lutter@redhat.com>
13472
13473         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
13474         link requirement
13475
13476 2008-10-23  Jim Meyering  <meyering@redhat.com>
13477
13478         selinux-h: mark parameters of stub functions as intentionally unused
13479         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
13480         * lib/se-context.in.h: Likewise.
13481
13482 2008-10-22  Simon Josefsson  <simon@josefsson.org>
13483
13484         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
13485
13486 2008-10-22  Simon Josefsson  <simon@josefsson.org>
13487
13488         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
13489
13490 2008-10-22  Eric Blake  <ebb9@byu.net>
13491
13492         glthread/thread: avoid compiler warning
13493         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
13494         Add unreachable abort to silence compiler.
13495
13496 2008-10-22  Eric Blake  <ebb9@byu.net>
13497
13498         netdb: also supply struct addrinfo for cygwin 1.5.x
13499         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
13500         older cygwin.
13501         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
13502         cygwin.
13503         * doc/posix-headers/netdb.texi (netdb.h): Document this.
13504
13505 2008-10-22  Bruno Haible  <bruno@clisp.org>
13506
13507         * users.txt: Update entry about pspp.
13508
13509 2008-10-21  Bruno Haible  <bruno@clisp.org>
13510
13511         Simplification.
13512         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
13513         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
13514
13515         Simplification.
13516         * lib/ioctl.c (ioctl): Don't undefine.
13517         * lib/socket.c (socket): Don't undefine.
13518
13519         Remove unused module indicator macros.
13520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
13521         GNULIB_$1 as a C macro.
13522
13523         * doc/posix-functions/close.texi: Undo last change.
13524         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
13525         Windows platforms.
13526
13527 2008-10-21  Bruno Haible  <bruno@clisp.org>
13528
13529         Add gethostname() declaration to <unistd.h>.
13530         * lib/unistd.in.h (gethostname): New declaration.
13531         * lib/gethostname.c: Include <unistd.h>.
13532         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
13533         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
13534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
13535         and HAVE_GETHOSTNAME.
13536         * modules/gethostname (Depends-on): Add unistd.
13537         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13538         (Include): Specify <unistd.h>.
13539         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
13540         HAVE_GETHOSTNAME.
13541         * tests/test-gethostname.c: Include <unistd.h> first.
13542
13543 2008-10-21  Bruno Haible  <bruno@clisp.org>
13544
13545         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
13546         * modules/select-tests (Depends-on): Likewise.
13547         Reported by Simon Josefsson.
13548
13549 2008-10-21  Simon Josefsson  <simon@josefsson.org>
13550
13551         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
13552         * lib/accept.c: New file, based on winsock.c.
13553         * lib/bind.c: New file, based on winsock.c.
13554         * lib/connect.c: New file, based on winsock.c.
13555         * lib/getpeername.c: New file, based on winsock.c.
13556         * lib/getsockname.c: New file, based on winsock.c.
13557         * lib/getsockopt.c: New file, based on winsock.c.
13558         * lib/ioctl.c: New file, based on winsock.c.
13559         * lib/listen.c: New file, based on winsock.c.
13560         * lib/recv.c: New file, based on winsock.c.
13561         * lib/recvfrom.c: New file, based on winsock.c.
13562         * lib/send.c: New file, based on winsock.c.
13563         * lib/sendto.c: New file, based on winsock.c.
13564         * lib/setsockopt.c: New file, based on winsock.c.
13565         * lib/shutdown.c: New file, based on winsock.c.
13566         * lib/socket.c: New file, based on winsock.c.
13567         * lib/w32sock.h: New file, based on winsock.c.
13568         * lib/winsock.c: Remove file.
13569         * modules/accept: Likewise.
13570         * modules/bind: Likewise.
13571         * modules/connect: Likewise.
13572         * modules/getpeername: Likewise.
13573         * modules/getsockname: Likewise.
13574         * modules/getsockopt: Likewise.
13575         * modules/ioctl: Likewise.
13576         * modules/listen: Likewise.
13577         * modules/recv: Likewise.
13578         * modules/recvfrom: Likewise.
13579         * modules/send: Likewise.
13580         * modules/sendto: Likewise.
13581         * modules/setsockopt: Likewise.
13582         * modules/shutdown: Likewise.
13583         * modules/socket: Use socket.c instead of winsock.c.
13584         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
13585         * doc/posix-functions/accept.texi: Doc fix.
13586         * doc/posix-functions/bind.texi: Doc fix.
13587         * doc/posix-functions/close.texi: Doc fix.
13588         * doc/posix-functions/connect.texi: Doc fix.
13589         * doc/posix-functions/getpeername.texi: Doc fix.
13590         * doc/posix-functions/getsockname.texi: Doc fix.
13591         * doc/posix-functions/getsockopt.texi: Doc fix.
13592         * doc/posix-functions/ioctl.texi: Doc fix.
13593         * doc/posix-functions/listen.texi: Doc fix.
13594         * doc/posix-functions/recv.texi: Doc fix.
13595         * doc/posix-functions/recvfrom.texi: Doc fix.
13596         * doc/posix-functions/send.texi: Doc fix.
13597         * doc/posix-functions/sendto.texi: Doc fix.
13598         * doc/posix-functions/setsockopt.texi: Doc fix.
13599         * doc/posix-functions/shutdown.texi: Doc fix.
13600         * doc/posix-functions/socket.texi: Doc fix.
13601
13602 2008-10-20  Bruno Haible  <bruno@clisp.org>
13603
13604         Take into account the role of SIGABRT_COMPAT on Windows 2008.
13605         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
13606         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
13607         as an alias for SIGABRT.
13608         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
13609         (sigaction): Map it to SIGABRT.
13610         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
13611
13612 2008-10-20  Bruno Haible  <bruno@clisp.org>
13613
13614         * lib/fts.c: Don't include lstat.h.
13615         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
13616
13617         Move the lstat() declaration to <sys/stat.h>.
13618         * lib/lstat.h: Remove file.
13619         * lib/sys_stat.in.h: Add special invocation convention.
13620         (lstat): New declaration.
13621         * lib/lstat.c (orig_lstat): New function.
13622         (rpl_lstat): Use orig_lstat instead of lstat.
13623         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
13624         AC_C_INLINE. Set REPLACE_LSTAT.
13625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
13626         and REPLACE_LSTAT.
13627         * modules/lstat (Files): Remove lib/lstat.h.
13628         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
13629         (Include): Specify <sys/stat.h> instead of lstat.h.
13630         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
13631         REPLACE_LSTAT.
13632         * NEWS: Mention the change.
13633
13634 2008-10-20  Bruno Haible  <bruno@clisp.org>
13635
13636         * modules/posix_spawn-tests: New file.
13637         * tests/test-posix_spawn3.c: New file.
13638
13639 2008-10-20  Bruno Haible  <bruno@clisp.org>
13640
13641         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
13642         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
13643         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
13644         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
13645         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
13646
13647 2008-10-20  Bruno Haible  <bruno@clisp.org>
13648
13649         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
13650         of posix_spawn on AIX 5.3.
13651
13652 2008-10-20  Bruno Haible  <bruno@clisp.org>
13653
13654         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
13655
13656 2008-10-20  Bruno Haible  <bruno@clisp.org>
13657
13658         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
13659         of AC_LANG_PROGRAM.
13660
13661 2008-10-20  Simon Josefsson  <simon@josefsson.org>
13662
13663         * lib/netdb.in.h: Don't define GNU specific constants until they
13664         are supported or needed.  Reported by Bruno Haible
13665         <bruno@clisp.org>.
13666
13667 2008-10-20  Simon Josefsson  <simon@josefsson.org>
13668
13669         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
13670
13671 2008-10-20  Simon Josefsson  <simon@josefsson.org>
13672
13673         * lib/getaddrinfo.h: Remove file.
13674         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
13675         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
13676         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
13677         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
13678         * modules/netdb: Substitute GNULIB_GETADDRINFO.
13679         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
13680         * tests/test-getaddrinfo.c: Likewise.
13681         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
13682         * NEWS: Mention change.
13683
13684 2008-10-19  Bruno Haible  <bruno@clisp.org>
13685
13686         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
13687
13688 2008-10-19  Bruno Haible  <bruno@clisp.org>
13689
13690         * lib/wait-process.c: Include simply <sys/wait.h>.
13691         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
13692         WIFSTOPPED): Remove fallback definitions.
13693         * modules/wait-process (Depends-on): Add sys_wait.
13694
13695         New module 'sys_wait'.
13696         * modules/sys_wait: New file.
13697         * lib/sys_wait.in.h: New file, partially copied from
13698         lib/wait-process.c.
13699         * m4/sys_wait_h.m4: New file.
13700         * doc/posix-headers/sys_wait.texi: Mention the new module.
13701
13702 2008-10-19  Bruno Haible  <bruno@clisp.org>
13703
13704         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
13705
13706 2008-10-19  Bruno Haible  <bruno@clisp.org>
13707
13708         Assume that waitpid() fills an 'int' status, not a 'union wait'.
13709         * lib/wait-process.c (WAIT_T): Remove type.
13710         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
13711         (wait_subprocess): Update.
13712
13713 2008-10-19  Bruno Haible  <bruno@clisp.org>
13714
13715         New module 'atoll'.
13716         * modules/atoll: New file.
13717         * lib/stdlib.in.h (atoll): New declaration.
13718         * lib/atoll.c: New file, from glibc with modifications.
13719         * m4/atoll.m4: New file.
13720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
13721         HAVE_ATOLL.
13722         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
13723         * doc/posix-functions/atoll.texi: Mention the new module.
13724
13725 2008-10-19  Bruno Haible  <bruno@clisp.org>
13726
13727         Add strtoull() declaration to <stdlib.h>.
13728         * lib/stdlib.in.h (strtoull): New declaration.
13729         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
13730         Set HAVE_STRTOULL.
13731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
13732         HAVE_STRTOULL.
13733         * modules/strtoull (Depends-on): Add stdlib.
13734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13735         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
13736         HAVE_STRTOULL.
13737
13738 2008-10-19  Bruno Haible  <bruno@clisp.org>
13739
13740         Add strtoll() declaration to <stdlib.h>.
13741         * lib/stdlib.in.h (strtoll): New declaration.
13742         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
13743         Set HAVE_STRTOLL.
13744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
13745         HAVE_STRTOLL.
13746         * modules/strtoll (Depends-on): Add stdlib.
13747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13748         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
13749
13750 2008-10-19  Bruno Haible  <bruno@clisp.org>
13751
13752         * modules/bcopy (Depends-on): Add strings.
13753         (Include): Specify <strings.h>.
13754
13755 2008-10-19  Bruno Haible  <bruno@clisp.org>
13756
13757         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
13758
13759 2008-10-19  Bruno Haible  <bruno@clisp.org>
13760
13761         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
13762         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
13763         mingw.
13764
13765 2008-10-19  Bruno Haible  <bruno@clisp.org>
13766
13767         * lib/atanl.c: Don't include isnanl.h.
13768         * lib/cosl.c: Likewise.
13769         * lib/ldexpl.c: Likewise.
13770         * lib/logl.c: Likewise.
13771         * lib/sinl.c: Likewise.
13772         * lib/sqrtl.c: Likewise.
13773         * lib/tanl.c: Likewise.
13774
13775         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
13776         * lib/isnanf.h: Remove file.
13777         * lib/isnand.h: Remove file.
13778         * lib/isnanl.h: Remove file.
13779         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
13780         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
13781         macros.
13782         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
13783         HAVE_ISNANF, don't define it as a C macro.
13784         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
13785         HAVE_ISNAND, don't define it as a C macro.
13786         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
13787         HAVE_ISNANL, don't define it as a C macro.
13788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
13789         HAVE_ISNAN[FDL].
13790         * modules/isnanf (Files): Remove lib/isnanf.h.
13791         (Depends-on): Add math.
13792         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13793         (Include): Specify <math.h> instead of isnanf.h.
13794         * modules/isnand (Files): Remove lib/isnand.h.
13795         (Depends-on): Add math.
13796         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13797         (Include): Specify <math.h> instead of isnand.h.
13798         * modules/isnanl (Files): Remove lib/isnanl.h.
13799         (Depends-on): Add math.
13800         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13801         (Include): Specify <math.h> instead of isnanl.h.
13802         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
13803         HAVE_ISNAN[FDL].
13804         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
13805         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
13806         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
13807         * NEWS: Mention the change.
13808
13809 2008-10-18  Bruno Haible  <bruno@clisp.org>
13810
13811         Add getusershell(), setusershell(), endusershell() declarations to
13812         <unistd.h>.
13813         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
13814         declarations.
13815         * lib/getusershell.c: Include unistd.h.
13816         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
13817         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
13818         HAVE_GETUSERSHELL.
13819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
13820         and HAVE_GETUSERSHELL.
13821         * modules/getusershell (Depends-on): Add unistd, extensions.
13822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13823         (Include): Specify <unistd.h>.
13824         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
13825         HAVE_GETUSERSHELL.
13826
13827 2008-10-18  Bruno Haible  <bruno@clisp.org>
13828
13829         Add a getloadavg() declaration to <stdlib.h>.
13830         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
13831         getloadavg declaration.
13832         (getloadavg): New declaration.
13833         * lib/getloadavg.c: Include <stdlib.h> first.
13834         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
13835         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
13836         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
13837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
13838         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
13839         * modules/getloadavg (Depends-on): Add stdlib, extensions.
13840         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13841         (Include): Specify <stdlib.h>.
13842         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
13843         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
13844
13845 2008-10-18  Bruno Haible  <bruno@clisp.org>
13846
13847         * lib/dirchownmod.c: Don't include lchmod.h.
13848
13849         Move the lchmod() declaration to <sys/stat.h>.
13850         * lib/lchmod.h: Remove file.
13851         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
13852         (lchmod): New declaration, moved here from lib/lchown.h.
13853         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
13854         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
13855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
13856         and HAVE_LCHMOD.
13857         * modules/lchmod (Files): Remove lib/lchmod.h.
13858         (Depends-on): Add sys_stat, extensions.
13859         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
13860         (Include): Specify <sys/stat.h> instead of lchmod.h.
13861         * modules/sys_stat (Depends-on): Add link-warning.
13862         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
13863         definition of GL_LINK_WARNING.
13864         * NEWS: Mention the change.
13865
13866 2008-10-18  Bruno Haible  <bruno@clisp.org>
13867
13868         * lib/fchdir.c: Don't include dirfd.h.
13869         * lib/fts.c: Likewise.
13870         * lib/getcwd.c: Likewise.
13871         * lib/glob.c: Likewise.
13872
13873         Move the dirfd() declaration to <dirent.h>.
13874         * lib/dirfd.h: Remove file.
13875         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
13876         (dirfd): New declaration.
13877         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
13878         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
13879         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
13880         HAVE_DECL_DIRFD.
13881         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
13882         HAVE_DECL_DIRFD.
13883         * modules/dirfd (Files): Remove lib/dirfd.h.
13884         (Depends-on): Add dirent, extensions.
13885         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
13886         (Include): Specify <dirent.h> instead of dirfd.h.
13887         * modules/dirent (Depends-on): Add link-warning.
13888         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
13889         definition of GL_LINK_WARNING.
13890         * NEWS: Mention the change.
13891
13892 2008-10-18  Bruno Haible  <bruno@clisp.org>
13893
13894         Move the euidaccess() declaration to <unistd.h>.
13895         * lib/euidaccess.h: Remove file.
13896         * lib/unistd.in.h (euidaccess): New declaration.
13897         * lib/euidaccess.c: Don't include euidaccess.h.
13898         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
13899         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
13900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
13901         and HAVE_EUIDACCESS.
13902         * modules/euidaccess (Files): Remove lib/euidaccess.h.
13903         (Depends-on): Add unistd.
13904         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13905         (Include): Specify <unistd.h> instead of euidaccess.h.
13906         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
13907         HAVE_EUIDACCESS.
13908         * NEWS: Mention the change.
13909
13910 2008-10-18  Bruno Haible  <bruno@clisp.org>
13911
13912         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
13913
13914         Move the getdomainname() declaration to <unistd.h>.
13915         * lib/getdomainname.h: Remove file.
13916         * lib/unistd.in.h (getdomainname): New declaration.
13917         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
13918         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
13919         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
13920         HAVE_GETDOMAINNAME.
13921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13922         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
13923         * modules/getdomainname (Files): Remove lib/getdomainname.h.
13924         (Depends-on): Add unistd, extensions.
13925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13926         (Includes): Specify <unistd.h> instead of getdomainname.h.
13927         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
13928         HAVE_GETDOMAINNAME.
13929         * NEWS: Mention the change.
13930
13931 2008-10-18  Bruno Haible  <bruno@clisp.org>
13932
13933         * modules/dirent: New file.
13934         * m4/dirent_h.m4: New file.
13935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
13936         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
13937         * modules/fchdir (Files): Remove lib/dirent.in.h.
13938         (Depends-on): Add dirent.
13939         (Makefile.am): Move rules to modules/dirent.
13940         * doc/posix-headers/dirent.texi: Mention the new module.
13941
13942 2008-10-18  Bruno Haible  <bruno@clisp.org>
13943
13944         Avoid -Wunused-parameter warnings in public gnulib header files.
13945         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
13946         macro.
13947         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
13948
13949 2008-10-18  Bruno Haible  <bruno@clisp.org>
13950
13951         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
13952         * doc/glibc-functions/error.texi: Mention the module 'error'.
13953         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
13954         * doc/glibc-functions/getdomainname.texi: Mention the module
13955         'getdomainname'.
13956         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
13957         * doc/glibc-functions/getpagesize.texi: Mention the module
13958         'getpagesize'.
13959         * doc/glibc-functions/getusershell.texi: Mention the module
13960         'getusershell'.
13961         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
13962         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
13963         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
13964         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
13965         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
13966         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
13967         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
13968         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
13969         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
13970         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
13971         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
13972         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
13973         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
13974         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
13975
13976 2008-10-17  Bruno Haible  <bruno@clisp.org>
13977
13978         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
13979         HP-UX and IRIX, use -0.0L.
13980         * tests/test-ceill.c (minus_zero): Likewise.
13981         * tests/test-floorl.c (minus_zero): Likewise.
13982         * tests/test-frexpl.c (minus_zero): Likewise.
13983         * tests/test-isnan.c (minus_zerol): Likewise.
13984         * tests/test-isnanl.h (minus_zero): Likewise.
13985         * tests/test-ldexpl.c (minus_zero): Likewise.
13986         * tests/test-roundl.c (minus_zero): Likewise.
13987         * tests/test-signbit.c (minus_zerol): Likewise.
13988         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
13989         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
13990         * tests/test-truncl.c (minus_zero): Likewise.
13991         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
13992         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
13993         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
13994         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
13995
13996 2008-10-17  Bruno Haible  <bruno@clisp.org>
13997
13998         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
13999         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
14000         that it gets activated only for gcc >= 3.0.
14001         * lib/dirent.in.h: Likewise.
14002         * lib/errno.in.h: Likewise.
14003         * lib/fcntl.in.h: Likewise.
14004         * lib/float.in.h: Likewise.
14005         * lib/iconv.in.h: Likewise.
14006         * lib/inttypes.in.h: Likewise.
14007         * lib/locale.in.h: Likewise.
14008         * lib/math.in.h: Likewise.
14009         * lib/netdb.in.h: Likewise.
14010         * lib/netinet_in.in.h: Likewise.
14011         * lib/search.in.h: Likewise.
14012         * lib/signal.in.h: Likewise.
14013         * lib/spawn.in.h: Likewise.
14014         * lib/stdarg.in.h: Likewise.
14015         * lib/stdint.in.h: Likewise.
14016         * lib/stdio.in.h: Likewise.
14017         * lib/stdlib.in.h: Likewise.
14018         * lib/string.in.h: Likewise.
14019         * lib/strings.in.h: Likewise.
14020         * lib/sys_file.in.h: Likewise.
14021         * lib/sys_ioctl.in.h: Likewise.
14022         * lib/sys_select.in.h: Likewise.
14023         * lib/sys_socket.in.h: Likewise.
14024         * lib/sys_stat.in.h: Likewise.
14025         * lib/sys_time.in.h: Likewise.
14026         * lib/sysexits.in.h: Likewise.
14027         * lib/time.in.h: Likewise.
14028         * lib/unistd.in.h: Likewise.
14029         * lib/wchar.in.h: Likewise.
14030         * lib/wctype.in.h: Likewise.
14031         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14032
14033 2008-10-17  Jim Meyering  <meyering@redhat.com>
14034
14035         ignore-value: don't depend on inline module
14036         * modules/ignore-value (Depends-on): Remove 'inline'.
14037         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
14038         Suggestion from Bruno Haible.
14039
14040 2008-10-17  Bruno Haible  <bruno@clisp.org>
14041
14042         New implementation of condition variables for Win32.
14043         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
14044         (gl_linked_waitqueue_t): New type.
14045         (gl_cond_t): Use it.
14046         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
14047         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14048         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
14049         (glthread_cond_init_func, glthread_cond_wait_func,
14050         glthread_cond_timedwait_func, glthread_cond_signal_func,
14051         glthread_cond_broadcast_func, glthread_cond_destroy_func):
14052         Reimplemented on the basis of gl_linked_waitqueue_t.
14053         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
14054         gl_waitqueue_t.
14055         (gl_rwlock_t): Update.
14056         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
14057
14058 2008-10-17  Simon Josefsson  <simon@josefsson.org>
14059
14060         * modules/recvfrom (Depends-on): Add dependency on getpeername.
14061         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14062
14063 2008-10-17  Jim Meyering  <meyering@redhat.com>
14064
14065         ignore-value: new module
14066         * modules/ignore-value: New file.
14067         * lib/ignore-value.h: New file.
14068         * MODULES.html.sh (Compiler warning management): New section,
14069         just for this module.  More to come.
14070
14071 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
14072
14073         open-safer.c: avoid 'signed and unsigned in conditional...' warning
14074         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
14075         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
14076
14077 2008-10-16  Jim Meyering  <meyering@redhat.com>
14078
14079         openat-die.c: avoid 'no previous prototype' warning
14080         * lib/openat-die.c: Include "openat.h".
14081         Reported by Reuben Thomas <rrt@sc3d.org>.
14082
14083 2008-10-16  Simon Josefsson  <simon@josefsson.org>
14084
14085         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
14086         * lib/netdb.in.h: Fix typo.
14087         Reported by Bruno Haible  <bruno@clisp.org>
14088
14089         * lib/netdb.in.h: Include sys/socket.h for platforms without
14090         netdb.h, to get structures like hostent on MinGW.
14091         * modules/netdb (Depends-on): Add sys_socket.
14092
14093 2008-10-15  Simon Josefsson  <simon@josefsson.org>
14094
14095         * modules/netdb, modules/netdb-tests: New file.
14096         * m4/netdb_h.m4: New file.
14097         * lib/netdb.in.h: Add, currently just an empty file pending
14098         definitions.
14099         * tests/test-netdb.c: New file.
14100         * doc/posix-headers/netdb.texi: Mention that we replace it if
14101         needed.
14102         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14103         netdb.
14104
14105 2008-10-15  Simon Josefsson  <simon@josefsson.org>
14106
14107         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
14108         with code.
14109
14110 2008-10-13  Bruno Haible  <bruno@clisp.org>
14111
14112         * lib/glthread/cond.c (glthread_cond_wait_func,
14113         glthread_cond_timedwait_func): Add a comment.
14114
14115 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14116
14117         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
14118         * tests/test-select.c: Likewise,
14119
14120 2008-10-13  Bruno Haible  <bruno@clisp.org>
14121
14122         * lib/glthread/cond.c (glthread_cond_wait_func,
14123         glthread_cond_timedwait_func): Fix variable name.
14124         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14125
14126 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
14127
14128         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
14129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
14130         struct sockaddr.sa_len.
14131         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
14132
14133 2008-10-13  Simon Josefsson  <simon@josefsson.org>
14134
14135         * build-aux/pmccabe2html: Add css and css_url parameters.
14136
14137 2008-10-12  Bruno Haible  <bruno@clisp.org>
14138
14139         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
14140         calling aclx_get.
14141         Reported by Rainer Tammer <tammer@tammer.net>.
14142
14143 2008-10-12  Bruno Haible  <bruno@clisp.org>
14144
14145         Use msvcrt aware primitives for creation/termination of Win32 threads.
14146         * lib/glthread/thread.c: Include <process.h>.
14147         (glthread_create_func): Use _beginthreadex instead of CreateThread.
14148         (wrapper_func): Update signature.
14149         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
14150
14151 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
14152             Bruno Haible  <bruno@clisp.org>
14153
14154         Provide a Win32 implementation of the 'cond' module.
14155         * lib/glthread/cond.h [USE_WIN32]: New implementation.
14156         * lib/glthread/cond.c (glthread_cond_init_func,
14157         glthread_cond_wait_func, glthread_cond_timedwait_func,
14158         glthread_cond_signal_func, glthread_cond_broadcast_func,
14159         glthread_cond_destroy_func) [USE_WIN32]: New functions.
14160         * modules/cond (Dependencies): Add gettimeofday.
14161
14162 2008-10-11  Bruno Haible  <bruno@clisp.org>
14163
14164         Make sleep work on older versions of mingw.
14165         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
14166         only whether it exists.
14167         * doc/posix-functions/sleep.texi: Mention the problem with older
14168         versions of mingw.
14169
14170 2008-10-11  Bruno Haible  <bruno@clisp.org>
14171
14172         New module 'shutdown'.
14173         * modules/shutdown: New file.
14174         * lib/sys_socket.in.h (shutdown): New declaration.
14175         * lib/winsock.c (shutdown): New function.
14176         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14177         GNULIB_SHUTDOWN.
14178         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
14179         * doc/posix-functions/shutdown.texi: Document the new module.
14180
14181 2008-10-11  Jim Meyering  <meyering@redhat.com>
14182
14183         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
14184
14185 2008-10-11  Bruno Haible  <bruno@clisp.org>
14186
14187         New module 'fclose'.
14188         * modules/fclose: New file.
14189         * lib/stdio.in.h (fclose): New declaration.
14190         * lib/fclose.c: New file.
14191         * m4/fclose.m4: New file.
14192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
14193         REPLACE_FCLOSE.
14194         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
14195         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
14196         REPLACE_FCLOSE.
14197         * modules/close (Depends-on): fclose.
14198         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
14199
14200 2008-10-11  Bruno Haible  <bruno@clisp.org>
14201
14202         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
14203         set errno and don't call _close.
14204
14205 2008-10-10  Bruno Haible  <bruno@clisp.org>
14206
14207         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
14208         ACL, not afterwards. Fixes test failure on Cygwin.
14209
14210 2008-10-09  Ben Pfaff  <blp@gnu.org>
14211
14212         * build-aux/announce-gen: Fix gnulib version related part of usage
14213         message.  Die with a useful error message if no tarballs are
14214         found.
14215
14216 2008-10-10  Jim Meyering  <meyering@redhat.com>
14217
14218         bootstrap: use git's --depth=N option only if it's supported
14219         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
14220         recognize the --depth option.  Reported by Pádraig Brady.
14221
14222 2008-10-09  Bruno Haible  <bruno@clisp.org>
14223
14224         New module 'ioctl'.
14225         * modules/ioctl: New file.
14226         * lib/sys_socket.in.h (ioctl): Remove declaration.
14227         * lib/winsock.c: Include <sys/ioctl.h>.
14228         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
14229         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14230         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
14231         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
14232         * doc/posix-functions/ioctl.texi: Mention the new module.
14233
14234 2008-10-09  Bruno Haible  <bruno@clisp.org>
14235
14236         New module 'sys_ioctl'.
14237         * lib/sys_ioctl.in.h: New file.
14238         * m4/sys_ioctl_h.m4: New file.
14239         * modules/sys_ioctl: New file.
14240         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
14241
14242 2008-10-09  Bruno Haible  <bruno@clisp.org>
14243
14244         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
14245         * lib/winsock.c: Include <stdarg.h>.
14246         (rpl_ioctl): Change to second argument 'int' and then varargs.
14247
14248 2008-10-09  Bruno Haible  <bruno@clisp.org>
14249
14250         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
14251         when the sys_socket module is present and the system has <winsock2.h>.
14252
14253 2008-10-09  Bruno Haible  <bruno@clisp.org>
14254
14255         * doc/posix-functions/close.texi: Mention module 'close' instead of
14256         module 'sys_socket'.
14257
14258 2008-10-09  Bruno Haible  <bruno@clisp.org>
14259
14260         * doc/glibc-headers/sys_ioctl.texi: New file.
14261         * doc/gnulib.texi: Include it.
14262
14263 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14264             Bruno Haible  <bruno@clisp.org>
14265
14266         Combine the two replacements of 'close'.
14267         * lib/sys_socket.in.h (close): Define to a reminder to include
14268         <unistd.h>.
14269         (_gl_close_fd_maybe_socket): New declaration.
14270         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
14271         * lib/winsock.c (close): Remove undefinition.
14272         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
14273         needed for the gnulib module 'close'.
14274         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
14275         define to an error symbol or to a warning, if suitable.
14276         * lib/close.c: Include <sys/socket.h>.
14277         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
14278         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
14279         UNISTD_H_HAVE_WINSOCK2_H.
14280         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
14281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14282         UNISTD_H_HAVE_WINSOCK2_H.
14283         * modules/sys_socket (Files): Add m4/unistd_h.m4.
14284         (configure.ac): Set a module indicator.
14285         (Makefile.am): Substitute GNULIB_CLOSE.
14286         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
14287         * modules/poll-tests (Depends-on): Add close.
14288         * modules/select-tests (Depends-on): Likewise.
14289
14290 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14291             Bruno Haible  <bruno@clisp.org>
14292
14293         New module 'close'.
14294         * modules/close: New file.
14295         * lib/unistd.in.h (close): Move declaration out of the
14296         FCHDIR_REPLACEMENT scope.
14297         (_gl_unregister_fd): New declaration.
14298         * lib/close.c: New file.
14299         * lib/fchdir.c (rpl_close): Remove function.
14300         * m4/close.m4: New file.
14301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14302         close.
14303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
14304         REPLACE_CLOSE.
14305         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
14306         REPLACE_CLOSE.
14307         * modules/fchdir (Depends-on): Add close.
14308
14309 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14310             Bruno Haible  <bruno@clisp.org>
14311
14312         * lib/fcntl.in.h (open): Simplify conditionals.
14313         (_gl_register_fd): New declaration.
14314         * lib/fchdir.c (rpl_open): Remove function.
14315         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
14316         also.
14317         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
14318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14319         open.
14320
14321 2008-10-09  Jim Meyering  <meyering@redhat.com>
14322
14323         GNUmakefile: use the more name-space-friendly "_version"
14324         * top/GNUmakefile (_dummy): Update.
14325         (_version): Rename from "version".
14326
14327 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14328             Bruno Haible  <bruno@clisp.org>
14329
14330         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
14331         rpl_close.
14332         (_gl_register_fd): New function, extracted from rpl_open.
14333         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
14334         (rpl_open, rpl_opendir): Use _gl_register_fd.
14335
14336 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
14337
14338         Fix organization of 'open' replacement.
14339         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
14340         (gl_FUNC_OPEN): Use it.
14341         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
14342
14343 2008-10-08  Bruno Haible  <bruno@clisp.org>
14344
14345         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
14346
14347 2008-10-08  Simon Josefsson  <simon@josefsson.org>
14348
14349         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
14350         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
14351         listen).
14352
14353 2008-10-08  Eric Blake  <ebb9@byu.net>
14354
14355         GNUmakefile: add 'make version' target
14356         * top/GNUmakefile (_curr-ver): Split version update rules...
14357         (version): ...into a target.
14358
14359 2008-10-07  Bruno Haible  <bruno@clisp.org>
14360
14361         Use a more portable replacement expression for -0.0L.
14362         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
14363         instead of -0.0L. Fix m4 quotation.
14364
14365         * tests/test-signbit.c: Include <float.h>.
14366         (minus_zero): New variable.
14367         (test_signbitl): Use minus_zero instead of -zero.
14368         * modules/signbit-tests (Depends-on): Add float.
14369
14370         * tests/test-ceill.c: Include <float.h>.
14371         (zero): Remove variable.
14372         (minus_zero): New variable.
14373         (main): Use minus_zero instead of -zero.
14374         * modules/ceill-tests (Depends-on): Add float.
14375
14376         * tests/test-floorl.c: Include <float.h>.
14377         (zero): Remove variable.
14378         (minus_zero): New variable.
14379         (main): Use minus_zero instead of -zero.
14380         * modules/floorl-tests (Depends-on): Add float.
14381
14382         * tests/test-roundl.c: Include <float.h>.
14383         (zero): Remove variable.
14384         (minus_zero): New variable.
14385         (main): Use minus_zero instead of -zero.
14386         * modules/roundl-tests (Depends-on): Add float.
14387
14388         * tests/test-truncl.c: Include <float.h>.
14389         (zero): Remove variable.
14390         (minus_zero): New variable.
14391         (main): Use minus_zero instead of -zero.
14392         * modules/truncl-tests (Depends-on): Add float.
14393
14394         * tests/test-frexpl.c (zero): Remove variable.
14395         (minus_zero): New variable.
14396         (main): Use minus_zero instead of -zero.
14397         * modules/frexpl-tests (Depends-on): Add float.
14398
14399         * tests/test-isnan.c (zerol): Remove variable.
14400         (minus_zerol): New variable.
14401         (test_long_double): Use minus_zerol instead of -zerol.
14402         * modules/isnan-tests (Depends-on): Add float.
14403
14404         * tests/test-isnanl.h (zero): Remove variable.
14405         (minus_zero): New variable.
14406         (main): Use minus_zero instead of -zero.
14407         * modules/isnanl-nolibm-tests (Depends-on): Add float.
14408         * modules/isnanl-tests (Depends-on): Add float.
14409
14410         * tests/test-ldexpl.c (zero): Remove variable.
14411         (minus_zero): New variable.
14412         (main): Use minus_zero instead of -zero.
14413         * modules/ldexpl-tests (Depends-on): Add float.
14414
14415         * tests/test-snprintf-posix.h (zerol): Remove variable.
14416         (minus_zerol): New variable.
14417         (test_function): Use minus_zerol instead of -zerol.
14418         * modules/snprintf-posix-tests (Depends-on): Add float.
14419         * modules/vsnprintf-posix-tests (Depends-on): Add float.
14420
14421         * tests/test-sprintf-posix.h (zerol): Remove variable.
14422         (minus_zerol): New variable.
14423         (test_function): Use minus_zerol instead of -zerol.
14424         * modules/sprintf-posix-tests (Depends-on): Add float.
14425         * modules/vsprintf-posix-tests (Depends-on): Add float.
14426
14427         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
14428         (minus_zerol): New variable.
14429         (test_function): Use minus_zerol instead of -zerol.
14430         * modules/vasnprintf-posix-tests (Depends-on): Add float.
14431
14432         * tests/test-vasprintf-posix.c (zerol): Remove variable.
14433         (minus_zerol): New variable.
14434         (test_function): Use minus_zerol instead of -zerol.
14435         * modules/vasprintf-posix-tests (Depends-on): Add float.
14436
14437 2008-10-07  Simon Josefsson  <simon@josefsson.org>
14438
14439         * MODULES.html.sh (Support for building documentation): Mention
14440         pmccabe2html.  Sort entries.
14441
14442         Add pmccabe2html module, from gnupdf.
14443         * build-aux/pmccabe.css: New file.
14444         * build-aux/pmccabe2html: New file.
14445         * m4/pmccabe2html.m4: New file.
14446         * modules/pmccabe2html: New file.
14447
14448 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
14449
14450         flock: new module
14451         * MODULES.html.sh: Add to list of modules.
14452         * lib/flock.c: flock implementation for Windows and Unix systems
14453         which have fcntl.
14454         * doc/glibc-functions/flock.texi: Update documentation.
14455         * lib/sys_file.in.h: <sys/file.h> header file.
14456         * m4/flock.m4: M4 macros.
14457         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
14458         * modules/flock: flock module.
14459         * modules/flock-tests: flock tests module.
14460         * modules/sys_file: sys/file.h module.
14461         * tests/test-flock.c: test suite for flock.
14462
14463 2008-10-06  Jim Meyering  <meyering@redhat.com>
14464
14465         bootstrap: check for LT_INIT more portably still ;-)
14466         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
14467         Spotted by Bruno Haible.
14468
14469 2008-10-06  Eric Blake  <ebb9@byu.net>
14470
14471         test-signbit: avoid tripping Irix cc bug on -0.0L
14472         * tests/test-signbit.c (minus_zerol): Delete, and replace with
14473         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
14474         entire testsuite consistent and avoids an Irix 6.2 bug.
14475
14476 2008-10-05  Bruno Haible  <bruno@clisp.org>
14477             Jim Meyering  <jim@meyering.net>
14478
14479         Add an option for ignoring EPIPE during close_stdout.
14480         * lib/closeout.h: Include <stdbool.h>.
14481         (close_stdout_set_ignore_EPIPE): New declaration.
14482         * lib/closeout.c: Include <stdbool.h>.
14483         (ignore_EPIPE): New variable.
14484         (close_stdout_set_ignore_EPIPE): New function.
14485         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
14486         * lib/close-stream.c (close_stream): Mention the possible EPIPE
14487         failure.
14488         * modules/closeout (Depends-on): Add stdbool.
14489
14490 2008-10-05  Bruno Haible  <bruno@clisp.org>
14491
14492         * modules/accept: New file.
14493         * modules/bind: New file.
14494         * modules/connect: New file.
14495         * modules/getpeername: New file.
14496         * modules/getsockname: New file.
14497         * modules/getsockopt: New file.
14498         * modules/listen: New file.
14499         * modules/recv: New file.
14500         * modules/recvfrom: New file.
14501         * modules/send: New file.
14502         * modules/sendto: New file.
14503         * modules/setsockopt: New file.
14504         * modules/socket: New file.
14505         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
14506         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14507         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
14508         the particular module is requested. Add a link warning when the
14509         particular module is not requested.
14510         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
14511         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
14512         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
14513         the particular module is requested.
14514         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
14515         gl_SYS_SOCKET_H_DEFAULTS): New macros.
14516         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
14517         * modules/sys_socket (Depends-on): Add link-warning.
14518         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
14519         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
14520         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
14521         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
14522         GL_LINK_WARNING.
14523         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
14524         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
14525         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
14526         * doc/posix-functions/getpeername.texi: Mention the new module
14527         'getpeername'.
14528         * doc/posix-functions/getsockname.texi: Mention the new module
14529         'getsockname'.
14530         * doc/posix-functions/getsockopt.texi: Mention the new module
14531         'getsockopt'.
14532         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
14533         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
14534         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
14535         * doc/posix-functions/send.texi: Mention the new module 'send'.
14536         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
14537         * doc/posix-functions/setsockopt.texi: Mention the new module
14538         'setsockopt'.
14539         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
14540         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
14541         listen, connect, accept.
14542         * modules/select-tests (Depends-on): Likewise.
14543
14544 2008-10-05  Bruno Haible  <bruno@clisp.org>
14545
14546         * lib/winsock.c (strerror): Remove unused #undef.
14547         (rpl_close): Remove unused local variable.
14548
14549         * modules/sys_socket (Depends-on); Add errno.
14550
14551 2008-10-05  Bruno Haible  <bruno@clisp.org>
14552
14553         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
14554         (select): Add a link warning when the 'select' module is not used.
14555         * modules/sys_select (Depends-on): Add link-warning.
14556         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
14557         Suggested by Paolo Bonzini.
14558
14559 2008-10-05  Jim Meyering  <meyering@redhat.com>
14560
14561         bootstrap: check for LT_INIT more portably
14562         * build-aux/bootstrap: Avoid using grep -E, since it's not
14563         portable enough.  Suggestion from Bruno Haible.
14564
14565 2008-10-05  Bruno Haible  <bruno@clisp.org>
14566
14567         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
14568         as being fixed by gnulib.
14569
14570 2008-10-05  Bruno Haible  <bruno@clisp.org>
14571
14572         * modules/select-tests: New file, mostly copied from
14573         modules/sys_select-tests.
14574         * tests/test-select.c: New file, mostly copied from
14575         tests/test-sys_select.c.
14576         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
14577         * modules/sys_select-tests (Depends-on): Remove all dependencies.
14578         (Makefile.am): Remove test_sys_select_LDADD.
14579
14580         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
14581         to an undefined symbol, for an error message.
14582         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
14583         (gl_SYS_SELECT_H_DEFAULTS): New macro.
14584         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
14585         winsock-select.c here.
14586         * modules/sys_select (Files): Remove lib/winsock-select.c.
14587         (Depends-on): Remove alloca.
14588         (Makefile.am): Substitute GNULIB_SELECT.
14589         * modules/select: New file.
14590         * doc/posix-functions/select.texi: Update.
14591
14592 2008-10-05  Bruno Haible  <bruno@clisp.org>
14593
14594         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
14595         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
14596         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
14597         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
14598         getdtablesize.
14599         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14600         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14601
14602 2008-10-05  Bruno Haible  <bruno@clisp.org>
14603
14604         * modules/getdtablesize-tests: New file.
14605         * tests/test-getdtablesize.c: New file.
14606
14607         New module 'getdtablesize'.
14608         * lib/unistd.in.h (getdtablesize): New declaration.
14609         * lib/getdtablesize.c: New file.
14610         * m4/getdtablesize.m4: New file.
14611         * modules/getdtablesize: New file.
14612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14613         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
14614         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
14615         HAVE_GETDTABLESIZE.
14616         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
14617
14618 2008-10-05  Bruno Haible  <bruno@clisp.org>
14619
14620         * modules/sched (Makefile.am): Fix typo.
14621         Reported by Simon Josefsson.
14622
14623 2008-10-05  Jim Meyering  <meyering@redhat.com>
14624
14625         bootstrap: check for LT_INIT, too
14626         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
14627         are deprecated.  Suggestion from Ralf Wildenhues.
14628
14629 2008-10-05  Bruno Haible  <bruno@clisp.org>
14630
14631         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
14632         overriding them by ours.
14633         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
14634
14635 2008-10-05  Jim Meyering  <meyering@redhat.com>
14636
14637         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
14638         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
14639         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
14640
14641 2008-10-04  Bruno Haible  <bruno@clisp.org>
14642
14643         * modules/dup2 (License): Change to LGPLv2+.
14644         * modules/sleep (License): Likewise.
14645         * modules/perror (License): Likewise.
14646         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
14647         Blake.
14648         * modules/signal (License): Likewise.
14649         * modules/sigprocmask (License): Likewise.
14650         * modules/raise (License): Change to LGPLv2+, with approval by Jim
14651         Meyering.
14652
14653 2008-10-04  Bruno Haible  <bruno@clisp.org>
14654
14655         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
14656         Reported by Rainer Tammer <tammer@tammer.net>.
14657
14658 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
14659             Bruno Haible  <bruno@clisp.org>
14660
14661         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
14662         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
14663         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
14664
14665 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
14666
14667         filevercmp: new module
14668         * lib/filevercmp.h: New function filevercmp comparing version strings.
14669         * lib/filevercmp.c: Implementation of filevercmp function.
14670         * modules/filevercmp: Module metadata.
14671         * tests/test-filevercmp.c: Unit test for new module.
14672         * modules/filevercmp-tests: Unit test metadata.
14673         * MODULES.html.sh: Add filevercmp module.
14674
14675 2008-10-03  Bruno Haible  <bruno@clisp.org>
14676
14677         * lib/c-ctype.h: Add comment.
14678         Reported by Jim Meyering.
14679
14680 2008-10-02  Bruno Haible  <bruno@clisp.org>
14681
14682         * modules/posix_spawn-internal (Depends-on): Add 'open'.
14683
14684 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
14685
14686         * build-aux/bootstrap: Allow renaming bootstrap, and change the
14687         name of bootstrap.conf accordingly.
14688
14689 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
14690
14691         * build-aux/bootstrap: Install git-merge-changelog configuration
14692         items into .gitconfig if needed.
14693
14694 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
14695
14696         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
14697         git repository, and initialize/update it accordingly.
14698
14699 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
14700
14701         * modules/fsync-tests: New file.
14702         * tests/test-fsync.c: New file.
14703
14704         New module 'fsync'.
14705         * lib/fsync.c: New file.
14706         * m4/fsync.m4: New file.
14707         * modules/fsync: New file.
14708         * lib/unistd.in.h (fsync): New declaration.
14709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
14710         GNULIB_FSYNC and HAVE_FSYNC.
14711         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
14712         * MODULES.html.sh (posix_functions): Add fsync.
14713         * doc/posix-functions/fsync.texi: Mention the new module.
14714
14715 2008-10-02  Jim Meyering  <meyering@redhat.com>
14716
14717         fts.c: sync with similar code from coreutils' remove.c
14718         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
14719         Guard also with "#if defined __linux__", since for now at least,
14720         this code is Linux-kernel-specific.
14721
14722 2008-10-02  Jim Meyering  <meyering@redhat.com>
14723
14724         fts: bug fixes
14725         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
14726         Include <sys/vfs.h>, not <sys/statfs.h>.
14727
14728         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
14729         Include <sys/vfs.h>, not <sys/statfs.h>.
14730
14731 2008-10-01  Bruno Haible  <bruno@clisp.org>
14732
14733         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
14734         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
14735         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
14736         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
14737         * doc/posix-functions/posix_spawnp.texi: Likewise.
14738         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
14739         whether posix_spawn actually works.
14740         * m4/pipe.m4 (gl_PIPE): Likewise.
14741         * modules/execute (Files): Add m4/posix_spawn.m4.
14742         * modules/pipe (Files): Add m4/posix_spawn.m4.
14743         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
14744
14745 2008-10-01  Jim Meyering  <meyering@redhat.com>
14746
14747         remove trailing spaces
14748         * NEWS: Likewise.
14749         * lib/poll.c (poll): Likewise.
14750         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
14751         * lib/winsock.c (rpl_close): Likewise.
14752         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
14753         * modules/yield: Likewise.
14754         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
14755         * tests/test-sys_select.c (connect_to_socket): Likewise.
14756
14757         fts.c: adjust a new interface to be more generally useful
14758         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
14759         (fts_build): Adjust caller.
14760
14761 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14762
14763         * modules/cond-tests: New file.
14764         * tests/test-cond.c: New file.
14765
14766 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14767             Bruno Haible  <bruno@clisp.org>
14768
14769         * modules/cond (Dependencies): Add errno, time.
14770         * lib/glthread/cond.h: Include <time.h>.
14771         (gl_cond_define, gl_cond_define_initialized): Use the same definition
14772         across platforms.
14773
14774 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14775             Bruno Haible  <bruno@clisp.org>
14776
14777         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
14778
14779 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14780             Bruno Haible  <bruno@clisp.org>
14781
14782         * modules/tls-tests (Depends-on): Add thread, yield.
14783         (configure.ac): Remove all checks.
14784         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
14785         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
14786         gl_thread_self): Remove definitions. Include glthread/thread.h and
14787         glthread/yield.h instead.
14788         (test_tls): Pass an additional NULL argument to gl_thread_join.
14789
14790 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14791             Bruno Haible  <bruno@clisp.org>
14792
14793         * modules/lock-tests (Depends-on): Add thread, yield.
14794         (configure.ac): Remove all checks.
14795         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
14796         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
14797         gl_thread_self): Remove definitions. Include glthread/thread.h and
14798         glthread/yield.h instead.
14799         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
14800         additional NULL argument to gl_thread_join.
14801
14802 2008-09-30  Bruno Haible  <bruno@clisp.org>
14803
14804         Fix the Win32 implementation of the 'thread' module.
14805         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
14806         pointer type.
14807         (gl_thread_self): Invoke gl_thread_self_func.
14808         (gl_thread_self_func): New declaration.
14809         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
14810         (do_init_self_key, init_self_key): New functions.
14811         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
14812         Remove some fields.
14813         (running_threads, running_lock): Remove variables.
14814         (get_current_thread_handle): New function.
14815         (gl_thread_self_func, wrapper_func, glthread_create_func,
14816         glthread_join_func, gl_thread_exit_func): Largely rewritten and
14817         simplified.
14818
14819 2008-09-30  Bruno Haible  <bruno@clisp.org>
14820
14821         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
14822         files.
14823
14824 2008-09-30  Jim Meyering  <meyering@redhat.com>
14825
14826         fts.m4: correct the test for statfs.f_type
14827         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
14828         when checking for statfs.f_type.
14829
14830 2008-09-15  Simon Josefsson  <simon@josefsson.org>
14831
14832         tests: avoid some compiler warnings
14833         * tests/test-memchr.c (main): Pass NULL indirectly.
14834         * tests/test-getdate.c (main): Remove unused variable 'ret'.
14835
14836 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
14837
14838         getdate.y: disallow countable dayshifts like "4 yesterday ago"
14839         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
14840         exactly specified dayshifts.
14841         (dayshift): New rule.
14842         (rel): Add dayshift.
14843         (relative_time_table) [tomorrow, yesterday, today, now]:
14844         Use tDAY_SHIFT in place of tDAY_UNIT.
14845         * tests/test-getdate.c: Add tests for now-disallowed countable
14846         dayshifts, e.g., "4 yesterday ago".
14847
14848 2008-09-29  Bruno Haible  <bruno@clisp.org>
14849
14850         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
14851         * tests/test-posix_spawn1.in.sh: Renamed from
14852         tests/test-posix_spawn.in.sh.
14853         * tests/test-posix_spawn2.c: New file.
14854         * tests/test-posix_spawn2.in.sh: New file.
14855         * modules/posix_spawnp-tests (Files): Update.
14856         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
14857
14858 2008-09-29  Bruno Haible  <bruno@clisp.org>
14859
14860         Propagate effects of putenv/setenv/unsetenv to child processes.
14861         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
14862         * lib/pipe.c (create_pipe): Likewise.
14863
14864 2008-09-29  Bruno Haible  <bruno@clisp.org>
14865
14866         Enable use of shell scripts as executables in mingw.
14867         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
14868         run the program as a shell script.
14869         * lib/pipe.c (create_pipe): Likewise.
14870         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
14871         resulting array.
14872
14873 2008-09-29  Eric Blake  <ebb9@byu.net>
14874
14875         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
14876
14877 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
14878
14879         * doc/posix-functions/accept.texi: Update mingw problems.
14880         * doc/posix-functions/bind.texi: Update mingw problems.
14881         * doc/posix-functions/close.texi: Update mingw problems.
14882         * doc/posix-functions/connect.texi: Update mingw problems.
14883         * doc/posix-functions/getpeername.texi: Update mingw problems.
14884         * doc/posix-functions/getsockname.texi: Update mingw problems.
14885         * doc/posix-functions/getsockopt.texi: Update mingw problems.
14886         * doc/posix-functions/ioctl.texi: Update mingw problems.
14887         * doc/posix-functions/listen.texi: Update mingw problems.
14888         * doc/posix-functions/recv.texi: Update mingw problems.
14889         * doc/posix-functions/recvfrom.texi: Update mingw problems.
14890         * doc/posix-functions/select.texi: Update mingw problems.
14891         * doc/posix-functions/send.texi: Update mingw problems.
14892         * doc/posix-functions/sendto.texi: Update mingw problems.
14893         * doc/posix-functions/setsockopt.texi: Update mingw problems.
14894         * doc/posix-functions/socket.texi: Update mingw problems.
14895
14896 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
14897             Bruno Haible  <bruno@clisp.org>
14898
14899         * lib/sys_select.in.h: Include sys/time.h.
14900         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
14901         * modules/sys_select: Depend on sys_time.
14902         * tests/test-sys_select.c: Test that sys/select.h defines struct
14903         timeval fully.
14904
14905 2008-09-29  Bruno Haible  <bruno@clisp.org>
14906
14907         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
14908         * lib/sys_select.in.h: Likewise.
14909
14910 2008-09-29  Bruno Haible  <bruno@clisp.org>
14911
14912         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
14913
14914 2008-09-29  Bruno Haible  <bruno@clisp.org>
14915
14916         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
14917         Set LIBSOCKET instead of augmenting LIBS.
14918         * modules/sockets (Link): New section.
14919         * modules/sockets-tests (test_sockets_LDADD): New variable.
14920         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
14921         * modules/poll-tests (test_poll_LDADD): New variable.
14922         * NEWS: Document the change.
14923
14924 2008-09-29  Bruno Haible  <bruno@clisp.org>
14925
14926         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
14927         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
14928         ARPA_INET_H directly.
14929         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14930
14931 2008-09-28  Bruno Haible  <bruno@clisp.org>
14932
14933         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
14934         from gl_HEADER_SYS_SOCKET.
14935         (gl_HEADER_SYS_SOCKET): Invoke it.
14936         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14937
14938 2008-09-28  Bruno Haible  <bruno@clisp.org>
14939
14940         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
14941         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
14942         Needed on OSF/1 4.0.
14943
14944 2008-09-28  Bruno Haible  <bruno@clisp.org>
14945
14946         Override open more carefully.
14947         * lib/open.c (orig_open): New function.
14948         (rpl_open): Use orig_open instead of open.
14949         * lib/fcntl.in.h: Add special invocation convention.
14950         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
14951         (gl_FUNC_OPEN): Invoke it.
14952
14953         Override freopen more carefully.
14954         * lib/freopen.c (orig_freopen): New function.
14955         (rpl_freopen): Use orig_freopen instead of freopen.
14956         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
14957         (gl_FUNC_FREOPEN): Invoke it.
14958
14959         Override fopen more carefully.
14960         * lib/fopen.c (orig_fopen): New function.
14961         (rpl_fopen): Use orig_fopen instead of fopen.
14962         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
14963         (gl_FUNC_FOPEN): Invoke it.
14964         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
14965
14966 2008-09-28  Bruno Haible  <bruno@clisp.org>
14967
14968         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
14969         SIGPIPE.
14970
14971 2008-09-28  Bruno Haible  <bruno@clisp.org>
14972
14973         * tests/test-sigaction.c (handler, main): Disable the check whether
14974         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
14975         glibc systems with LinuxThreads.
14976
14977 2008-09-28  Bruno Haible  <bruno@clisp.org>
14978
14979         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
14980
14981         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
14982         with AIX xlc.
14983         * lib/fcntl.in.h (open): Likewise.
14984         Reported by Rainer Tammer <tammer@tammer.net>.
14985
14986 2008-09-28  Bruno Haible  <bruno@clisp.org>
14987
14988         * modules/posix_spawnp-tests: New file.
14989         * tests/test-posix_spawn.c: New file.
14990         * tests/test-posix_spawn.in.sh: New file.
14991
14992         New module 'posix_spawnp'.
14993         * modules/posix_spawnp: New file.
14994         * lib/spawnp.c: New file, from GNU libc with modifications.
14995         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
14996
14997         New module 'posix_spawn'.
14998         * modules/posix_spawn: New file.
14999         * lib/spawn.c: New file, from GNU libc with modifications.
15000         * doc/posix-functions/posix_spawn.texi: Mention the new module.
15001
15002         New module 'posix_spawnattr_destroy'.
15003         * modules/posix_spawnattr_destroy: New file.
15004         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
15005         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
15006         module.
15007
15008         New module 'posix_spawnattr_setsigmask'.
15009         * modules/posix_spawnattr_setsigmask: New file.
15010         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
15011         modifications.
15012         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
15013         new module.
15014
15015         New module 'posix_spawnattr_getsigmask'.
15016         * modules/posix_spawnattr_getsigmask: New file.
15017         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
15018         modifications.
15019         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
15020         new module.
15021
15022         New module 'posix_spawnattr_setsigdefault'.
15023         * modules/posix_spawnattr_setsigdefault: New file.
15024         * lib/spawnattr_setdefault.c: New file, from GNU libc with
15025         modifications.
15026         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
15027         new module.
15028
15029         New module 'posix_spawnattr_getsigdefault'.
15030         * modules/posix_spawnattr_getsigdefault: New file.
15031         * lib/spawnattr_getdefault.c: New file, from GNU libc with
15032         modifications.
15033         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
15034         new module.
15035
15036         New module 'posix_spawnattr_setschedpolicy'.
15037         * modules/posix_spawnattr_setschedpolicy: New file.
15038         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
15039         modifications.
15040         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
15041         new module.
15042
15043         New module 'posix_spawnattr_getschedpolicy'.
15044         * modules/posix_spawnattr_getschedpolicy: New file.
15045         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
15046         modifications.
15047         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
15048         new module.
15049
15050         New module 'posix_spawnattr_setschedparam'.
15051         * modules/posix_spawnattr_setschedparam: New file.
15052         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
15053         modifications.
15054         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
15055         new module.
15056
15057         New module 'posix_spawnattr_getschedparam'.
15058         * modules/posix_spawnattr_getschedparam: New file.
15059         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
15060         modifications.
15061         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
15062         new module.
15063
15064         New module 'posix_spawnattr_setpgroup'.
15065         * modules/posix_spawnattr_setpgroup: New file.
15066         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
15067         modifications.
15068         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
15069         module.
15070
15071         New module 'posix_spawnattr_getpgroup'.
15072         * modules/posix_spawnattr_getpgroup: New file.
15073         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
15074         modifications.
15075         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
15076         module.
15077
15078         New module 'posix_spawnattr_setflags'.
15079         * modules/posix_spawnattr_setflags: New file.
15080         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
15081         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
15082         module.
15083
15084         New module 'posix_spawnattr_getflags'.
15085         * modules/posix_spawnattr_getflags: New file.
15086         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
15087         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
15088         module.
15089
15090         New module 'posix_spawnattr_init'.
15091         * modules/posix_spawnattr_init: New file.
15092         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
15093         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
15094         module.
15095
15096         New module 'posix_spawn_file_actions_destroy'.
15097         * modules/posix_spawn_file_actions_destroy: New file.
15098         * lib/spawn_faction_destroy.c: New file, from GNU libc with
15099         modifications.
15100         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
15101         the new module.
15102
15103         New module 'posix_spawn_file_actions_addopen'.
15104         * modules/posix_spawn_file_actions_addopen: New file.
15105         * lib/spawn_faction_addopen.c: New file, from GNU libc with
15106         modifications.
15107         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
15108         the new module.
15109
15110         New module 'posix_spawn_file_actions_adddup2'.
15111         * modules/posix_spawn_file_actions_adddup2: New file.
15112         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
15113         modifications.
15114         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
15115         the new module.
15116
15117         New module 'posix_spawn_file_actions_addclose'.
15118         * modules/posix_spawn_file_actions_addclose: New file.
15119         * lib/spawn_faction_addclose.c: New file, from GNU libc with
15120         modifications.
15121         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15122         the new module.
15123
15124         New module 'posix_spawn_file_actions_init'.
15125         * modules/posix_spawn_file_actions_init: New file.
15126         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
15127         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
15128         new module.
15129
15130         New module 'posix_spawn-internal'.
15131         * modules/posix_spawn-internal: New file.
15132         * lib/spawn_int.h: New file, from GNU libc with modifications.
15133         * lib/spawni.c: New file, from GNU libc with modifications.
15134         * m4/posix_spawn.m4: New file.
15135
15136         New module 'spawn'.
15137         * modules/spawn: New file.
15138         * lib/spawn.in.h: New file, from GNU libc with modifications.
15139         * m4/spawn_h.m4: New file.
15140         * doc/posix-headers/spawn.texi: Mention the new module.
15141
15142 2008-09-28  Bruno Haible  <bruno@clisp.org>
15143
15144         * modules/sched-tests: New file.
15145         * tests/test-sched.c: New file.
15146
15147         New module 'sched'.
15148         * modules/sched: New file.
15149         * lib/sched.in.h: New file.
15150         * m4/sched_h.m4: New file.
15151         * doc/posix-headers/sched.texi: Mention the new module.
15152
15153 2008-09-27  Eric Blake  <ebb9@byu.net>
15154
15155         Fix previous patch, and tweak references to $0.
15156         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
15157         (func_version, func_gnulib_dir): Don't call this program
15158         gnulib-tool.
15159         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
15160         with using $0 in function.
15161         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
15162         (func_fatal_error): Reuse the name the user invoked us with.
15163
15164 2008-09-27  Bruno Haible  <bruno@clisp.org>
15165
15166         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
15167         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
15168         (gl_ICONV_H): Not here.
15169         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15170         instead of assigning ICONV_H directly.
15171
15172         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
15173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
15174         WCHAR_H directly.
15175
15176 2008-09-27  Bruno Haible  <bruno@clisp.org>
15177
15178         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
15179         * modules/arpa_inet (Depends-on): Add link-warning.
15180         (Makefile.am): Insert the definition of GL_LINK-WARNING.
15181         * modules/unistd (Makefile.am): Likewise.
15182
15183 2008-09-26  Bruno Haible  <bruno@clisp.org>
15184
15185         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
15186         variables.
15187         (func_version): Essentially copied from gnulib-tool.
15188         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
15189         func_readlink): Copied from gnulib-tool.
15190
15191 2008-09-26  Bruno Haible  <bruno@clisp.org>
15192
15193         * gnulib-tool (func_version): Change directory to $gnulib_dir before
15194         invoking git-version-gen.
15195
15196 2008-09-26  Bruno Haible  <bruno@clisp.org>
15197
15198         * posix-modules: Update to directory names changed on 2008-01-19.
15199         Remove commas in output before splitting into words. No more need to
15200         avoid 'ftruncate' since 2007-02-19.
15201
15202 2008-09-26  Bruno Haible  <bruno@clisp.org>
15203
15204         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
15205
15206 2008-09-26  Bruno Haible  <bruno@clisp.org>
15207
15208         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
15209         * modules/fwriteerror (Depends-on): Add errno.
15210
15211 2008-09-26  Bruno Haible  <bruno@clisp.org>
15212
15213         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
15214         * tests/test-vc-list-files-cvs.sh: Likewise.
15215
15216 2008-09-26  Bruno Haible  <bruno@clisp.org>
15217
15218         * doc/posix-headers/sys_resource.texi: Reorder items.
15219
15220 2008-09-26  Jim Meyering  <meyering@redhat.com>
15221
15222         fts: tweak inode comparison function
15223         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
15224         inode numbers, as documented.
15225
15226         fts: sort dirent entries on inode number before traversing
15227         This avoids a quadratic, seek-related performance penalty when
15228         operating on a directory containing many entries (measurable at 10k;
15229         3.5 hours at 2 million entries with a cold cache) on certain types
15230         of file systems, including ext3 and ext4, but not tmpfs.
15231         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
15232         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
15233         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
15234         (fs_handles_readdir_ordered_dirents_efficiently): New function.
15235         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
15236         (fts_build): Set the stat.st_ino member from D_INO.
15237         If it is likely to be useful, sort dirent entries on inode number.
15238
15239         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
15240         and the struct statfs.f_type member.
15241         * modules/fts (Depends-on): Add d-ino.
15242
15243 2008-09-26  Bruno Haible  <bruno@clisp.org>
15244
15245         * modules/sigpipe-die (Depends-on): Add sigpipe.
15246
15247         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
15248         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
15249         and GNULIB_STDIO_H_SIGPIPE are set.
15250         * lib/stdio-write.c: New file.
15251         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
15252         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15253         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15254         REPLACE_STDIO_WRITE_FUNCS.
15255         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
15256         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15257         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15258         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15259         * modules/stdio (Files): Add lib/stdio-write.c.
15260         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
15261         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15262         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15263         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15264         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
15265         REPLACE_FPRINTF_POSIX.
15266         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
15267         REPLACE_PRINTF_POSIX.
15268         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
15269         REPLACE_VFPRINTF_POSIX.
15270         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
15271         REPLACE_VPRINTF_POSIX.
15272         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
15273         SIGPIPE issue.
15274         * doc/posix-functions/fputc.texi: Likewise.
15275         * doc/posix-functions/fputs.texi: Likewise.
15276         * doc/posix-functions/fwrite.texi: Likewise.
15277         * doc/posix-functions/printf.texi: Likewise.
15278         * doc/posix-functions/putc.texi: Likewise.
15279         * doc/posix-functions/putchar.texi: Likewise.
15280         * doc/posix-functions/puts.texi: Likewise.
15281         * doc/posix-functions/vfprintf.texi: Likewise.
15282         * doc/posix-functions/vprintf.texi: Likewise.
15283
15284         * modules/safe-write (Depends-on): Add write.
15285
15286         * modules/sigpipe-tests: New file.
15287         * tests/test-sigpipe.c: New file.
15288         * tests/test-sigpipe.sh: New file.
15289
15290         * modules/write: New file.
15291         * lib/unistd.in.h: Include <sys/types.h>.
15292         (write): New declaration.
15293         * lib/write.c: New file.
15294         * m4/write.m4: New file.
15295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15296         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
15297         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
15298         GNULIB_WRITE, REPLACE_WRITE.
15299         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
15300         and the SIGPIPE issue.
15301
15302         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
15303         (raise): New declaration.
15304         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
15305         (ext_signal): New function.
15306         (rpl_raise): New function.
15307         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15308         GNULIB_SIGNAL_H_SIGPIPE.
15309         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
15310         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
15311
15312         * modules/sigpipe: New file.
15313         * m4/sigpipe.m4: New file.
15314
15315 2008-09-25  Derek Price  <derek@ximbiot.com>
15316             Bruno Haible  <bruno@clisp.org>
15317
15318         * gnulib-tool (func_import): Report all license incompatibilities, not
15319         just the first one.
15320
15321 2008-09-25  Bruno Haible  <bruno@clisp.org>
15322
15323         * gnulib-tool (func_import): When computing the edits, consider not
15324         only the Makefile.ams that exist but also those that will be generated.
15325
15326 2008-09-25  Simon Josefsson  <simon@josefsson.org>
15327
15328         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
15329         fixes gnulib-tool --test warning about duplicate dependency.
15330
15331 2008-09-25  Bruno Haible  <bruno@clisp.org>
15332
15333         * gnulib-tool: Don't ask the user to perform edits in the generated
15334         Makefile.ams.
15335         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
15336         apply to the Makefile.am being generated.
15337         (func_emit_tests_Makefile_am): Execute edits that apply to the
15338         Makefile.am being generated.
15339         (func_import): Setup list of Makefile.am edits before emitting the
15340         Makefile.ams, not at the end.
15341         (func_create_testdir): Update.
15342         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15343
15344 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15345
15346         * gnulib-tool (func_import): Store the --tests-base option in the
15347         comment in gnulib-cache.m4.
15348
15349 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
15350
15351         * NEWS: Document increased portability that sys_select now provides.
15352
15353         * lib/sys_select.in.h: Install select wrapper.
15354         * lib/sys_socket.in.h: Use more descriptive name when there is no
15355         select wrapper.
15356         * lib/winsock-select.c: New.
15357         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
15358         Require gl_HEADER_SYS_SOCKET.
15359         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
15360         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
15361         * tests/test-sys_select.c: Add functional tests.
15362
15363 2008-09-24  Eric Blake  <ebb9@byu.net>
15364
15365         open, fopen: close fd leak in last patch
15366         * lib/open.c (rpl_open): Close fd before returning error.
15367         * lib/fopen.c (rpl_fopen): Close fd before returning error.
15368         * doc/posix-functions/open.texi (open): Document that Irix also
15369         has the bug.
15370         * doc/posix-functions/fopen.texi (fopen): Likewise.
15371         Reported by Paolo Bonzini.
15372
15373 2008-09-24  Bruno Haible  <bruno@clisp.org>
15374
15375         Ensure that a filename ending in a slash cannot be used to access a
15376         non-directory.
15377         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
15378         to check whether it's really a directory.
15379         * lib/fopen.c: Include fcntl.h, unistd.h.
15380         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
15381         and fdopen().
15382         * modules/fopen (Depends-on): Add unistd.
15383         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
15384         * tests/test-fopen.c (main): Likewise.
15385         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
15386         * doc/posix-functions/fopen.texi: Likewise.
15387         Reported by Eric Blake.
15388
15389 2008-09-23  Eric Blake  <ebb9@byu.net>
15390
15391         c-stack: avoid compiler optimizations when provoking overflow
15392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
15393         recursion harder to optimize, to ensure a stack overflow occurs.
15394         * tests/test-c-stack.c (recurse): Likewise.
15395         Borrowed from libsigsegv.
15396
15397         c-stack: work around Irix sigaltstack bug
15398         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
15399         whether sigaltstack uses wrong end of stack_t (copied in part from
15400         libsigsegv).
15401         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
15402         Irix bug, without requiring an over-allocation.
15403         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
15404         bug.
15405
15406         fopen: document mingw bug on directories
15407         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
15408         not allowing a stream visiting a directory, even though reading
15409         from such a stream is not portable.
15410
15411 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
15412
15413         * lib/poll.c: Rewrite.
15414         * modules/poll: Depend on alloca.
15415
15416 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
15417
15418         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
15419         instead define prototypes for a full set of wrappers.  Ensure
15420         that Cygwin does not use the compatibility code, which is only
15421         for MinGW.
15422         * lib/winsock.c: New.
15423         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
15424         * modules/sys_socket: Add lib/winsock.c.
15425
15426         * modules/poll-tests: Add errno and perror.
15427         * tests/test-poll.c: Use ioctl, not ioctlsocket.
15428
15429 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
15430
15431         * tests/test-poll.c: Downgrade minimum needed Winsock version.
15432
15433 2008-09-23  Bruno Haible  <bruno@clisp.org>
15434
15435         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
15436         * doc/glibc-functions/*: Likewise.
15437
15438 2008-09-23  Simon Josefsson  <simon@josefsson.org>
15439
15440         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
15441         success.
15442
15443 2008-09-22  Eric Blake  <ebb9@byu.net>
15444             Bruno Haible  <bruno@clisp.org>
15445
15446         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
15447         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
15448         supply %A but mishandle pseudo-NaN.
15449         Reported by Simon Josefsson.
15450
15451 2008-09-21  Bruno Haible  <bruno@clisp.org>
15452
15453         * tests/test-lock.c (main): Tweak skip message.
15454         * tests/test-tls.c (main): Likewise.
15455
15456 2008-09-21  Bruno Haible  <bruno@clisp.org>
15457
15458         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
15459         whether 'struct sigaction' has sa_sigaction here...
15460         (gl_PREREQ_SIG_HANDLER_H): ... not here.
15461         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
15462
15463 2008-09-21  Bruno Haible  <bruno@clisp.org>
15464
15465         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
15466         section.
15467         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
15468         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
15469         the new section.
15470         (Support for obsolete systems lacking POSIX:2001): New section.
15471         (String handling <string.h>): Move strdup to the new section.
15472         Suggested by Simon Josefsson and Paolo Bonzini.
15473
15474 2008-09-21  Bruno Haible  <bruno@clisp.org>
15475
15476         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
15477         exponents in %e and %g results on 'long double'. Needed for mingw's
15478         improved *printf functions.
15479         * tests/test-vasprintf-posix.c (test_function): Likewise.
15480         * tests/test-snprintf-posix.h (test_function): Likewise.
15481         * tests/test-sprintf-posix.h (test_function): Likewise.
15482         Reported by Eric Blake.
15483
15484 2008-09-21  Bruno Haible  <bruno@clisp.org>
15485
15486         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
15487         * tests/test-sprintf-posix.h (test_function): Likewise.
15488
15489 2008-09-21  Bruno Haible  <bruno@clisp.org>
15490
15491         * modules/getpass (Depends-on): Add strdup-posix.
15492
15493         New module 'strdup-posix'.
15494         * modules/strdup-posix: New file.
15495         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
15496         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
15497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15498         REPLACE_STRDUP.
15499         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
15500         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
15501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15502         strdup-posix.
15503
15504         * modules/strdup (Depends-on): Remove malloc-posix.
15505
15506 2008-09-20  Bruno Haible  <bruno@clisp.org>
15507
15508         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
15509         Wildenhues.
15510
15511 2008-09-20  Bruno Haible  <bruno@clisp.org>
15512
15513         Ensure that wint_t gets defined on IRIX 5.3.
15514         * lib/wchar.in.h (wint_t): Define if not defined by the system.
15515         * lib/wctype.in.h (wint_t): Likewise.
15516         (__wctype_wint_t): Remove type.
15517         (isw*): Use wint_t instead of __wctype_wint_t.
15518         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
15519         * modules/wchar (Files): Add m4/wint_t.m4.
15520         (Makefile.am): Substitute HAVE_WINT_T.
15521         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
15522         * tests/test-wctype.c: Check that wint_t is defined.
15523         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
15524         * doc/posix-headers/wctype.texi: Likewise.
15525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15526
15527 2008-09-18  Bruno Haible  <bruno@clisp.org>
15528
15529         * gnulib-tool (func_exit): Update comment.
15530
15531 2008-09-18  Simon Josefsson  <simon@josefsson.org>
15532
15533         * modules/getaddrinfo (Depends-on): Remove strdup, this module
15534         assumes strdup exists and does not depend on strdup to return
15535         ENOMEM on out of memory conditions.
15536
15537 2008-09-18  Bruno Haible  <bruno@clisp.org>
15538
15539         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
15540         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
15541         digits for the exponent.
15542
15543 2008-09-18  Jim Meyering  <meyering@redhat.com>
15544             Bruno Haible  <bruno@clisp.org>
15545
15546         * lib/vasnprintf.c (decimal_point_char): Define also if
15547         NEED_PRINTF_INFINITE_LONG_DOUBLE.
15548
15549 2008-09-16  Bruno Haible  <bruno@clisp.org>
15550         and Eric Blake  <ebb9@byu.net>
15551
15552         vasnprintf: support Irix 5.3
15553         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
15554         that mishandle long double infinity.
15555         Reported by Tom G. Christensen.
15556
15557 2008-09-16  Bruno Haible  <bruno@clisp.org>
15558
15559         * doc/glibc-functions/scandir.texi: Mention the function is missing on
15560         Solaris 9.
15561         * doc/glibc-functions/alphasort.texi: Likewise.
15562         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
15563
15564 2008-09-16  Jim Meyering  <meyering@redhat.com>
15565
15566         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
15567         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
15568         a umask modification leak out of a subshell.  Otherwise, the
15569         opensolaris /bin/sh would be accepted and thus cause unwarranted
15570         failures in the coreutils test suite.
15571
15572 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
15573
15574         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
15575         to succeed.
15576
15577 2008-09-16  Jim Meyering  <meyering@redhat.com>
15578
15579         avoid spurious test failure when library is built without ACL support
15580         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
15581         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
15582         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
15583         * tests/test-copy-acl.sh: Likewise.
15584
15585 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15586
15587         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
15588         based on character occurrence counts.
15589
15590 2008-09-15  Eric Blake  <ebb9@byu.net>
15591
15592         tests: avoid some compiler warnings
15593         * tests/test-memchr.c (main): Pass NULL indirectly.
15594         * tests/test-closein.c (main): Avoid unused variable.
15595
15596 2008-09-15  Bruno Haible  <bruno@clisp.org>
15597
15598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
15599         are missing on OpenBSD 4.0 individually.
15600         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15601
15602 2008-09-15  Bruno Haible  <bruno@clisp.org>
15603
15604         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
15605         * doc/posix-functions/strerror.texi: Mention also Cygwin.
15606         * doc/posix-functions/perror.texi: Likewise.
15607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
15608         is missing.
15609         Reported by Eric Blake.
15610
15611         * lib/errno.in.h: Use replacement values >= 2000.
15612         Reported by Eric Blake.
15613
15614 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15615
15616         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
15617         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
15618         limit.
15619         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
15620         compareseq was aborted.
15621
15622 2008-09-14  Bruno Haible  <bruno@clisp.org>
15623
15624         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
15625         yvec_edit_count.
15626         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
15627         (fstrcmp_bounded): Simplify result computation accordingly.
15628
15629 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15630
15631         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
15632         (fstrcmp): Define in terms of fstrcmp_bounded.
15633         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
15634         lower_bound argument.
15635         Return quickly if the result is certainly < lower_bound.
15636         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
15637
15638 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15639
15640         * lib/diffseq.h (EARLY_ABORT): New macro.
15641         (compareseq): Change return type to bool. Return true when EARLY_ABORT
15642         evaluates to true.
15643
15644 2008-09-14  Bruno Haible  <bruno@clisp.org>
15645
15646         * modules/perror-tests: New file.
15647         * tests/test-perror.sh: New file.
15648         * tests/test-perror.c: New file.
15649
15650         New module 'perror'.
15651         * lib/stdio.in.h (perror): New declaration.
15652         * lib/perror.c: New file.
15653         * m4/perror.m4: New file.
15654         * modules/perror: New file.
15655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
15656         * doc/posix-functions/perror.texi: Mention the perror module.
15657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
15658         REPLACE_PERROR.
15659         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
15660         REPLACE_PERROR.
15661
15662 2008-09-14  Bruno Haible  <bruno@clisp.org>
15663
15664         * modules/stdio (Makefile.am): Reorder to match the order in
15665         lib/stdio.in.h.
15666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
15667
15668 2008-09-13  Bruno Haible  <bruno@clisp.org>
15669
15670         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
15671
15672 2008-09-13  Bruno Haible  <bruno@clisp.org>
15673
15674         Extend strerror to cover the added errno values.
15675         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
15676         (rpl_strerror): Provide error messages for the added errno values and
15677         for the WSA* values.
15678         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
15679         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
15680         strerror.
15681         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
15682         * modules/strerror (Depends-on): Add errno.
15683         * doc/posix-functions/strerror.texi: Document the change.
15684         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
15685         and EOVERFLOW.
15686
15687 2008-09-13  Bruno Haible  <bruno@clisp.org>
15688
15689         * modules/EOVERFLOW: Remove file.
15690         * m4/eoverflow.m4: Remove file.
15691         * modules/EOVERFLOW-tests: Remove file.
15692         * tests/test-EOVERFLOW.c: Remove file.
15693         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
15694         * modules/ftell (Depends-on): Likewise.
15695         * modules/getdelim (Depends-on): Likewise.
15696         * modules/getugroups (Depends-on): Likewise.
15697         * modules/poll (Depends-on): Likewise.
15698         * modules/snprintf (Depends-on): Likewise.
15699         * modules/sprintf-posix (Depends-on): Likewise.
15700         * modules/vasnprintf (Depends-on): Likewise.
15701         * modules/vasprintf (Depends-on): Likewise.
15702         * modules/vfprintf-posix (Depends-on): Likewise.
15703         * modules/vsnprintf (Depends-on): Likewise.
15704         * modules/vsprintf-posix (Depends-on): Likewise.
15705         * modules/xvasprintf (Depends-on): Likewise.
15706         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15707         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
15708         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
15709         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
15710         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15711         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
15712         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
15713         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
15714         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15715         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
15716         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
15717         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
15718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15719         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
15720         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
15721         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
15722         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15723         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
15724         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
15725         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
15726         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15727         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
15728         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
15729         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
15730         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
15731         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15732         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
15733         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
15734         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
15735         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
15736         * MODULES.html.sh: Remove EOVERFLOW.
15737         * NEWS: Mention the change.
15738
15739 2008-09-13  Bruno Haible  <bruno@clisp.org>
15740
15741         * modules/errno-tests: New file.
15742         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
15743
15744         * lib/errno.in.h: New file.
15745         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
15746         * modules/errno: New file.
15747         * doc/posix-headers/errno.texi: Update documentation.
15748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
15749
15750 2008-09-13  Bruno Haible  <bruno@clisp.org>
15751
15752         * tests/test-poll.c: Use #if for native Windows, rather than testing
15753         __MSVCRT__.
15754
15755 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15756             Bruno Haible  <bruno@clisp.org>
15757
15758         * lib/glob.c: Don't include <pwd.h> on native Windows.
15759         (WINDOWS32): New macro.
15760         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
15761
15762 2008-09-13  Bruno Haible  <bruno@clisp.org>
15763
15764         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
15765         (ETIMEDOUT): Remove macro.
15766         (glthread_cond_timedwait_multithreaded): New declaration.
15767         (glthread_cond_timedwait): Use it.
15768         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
15769         (glthread_cond_timedwait_multithreaded): New function.
15770
15771 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
15772
15773         * modules/poll-tests: Do not check for io.h.
15774         * tests/test-poll.c: Check for __MSVCRT__ instead.
15775
15776 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
15777
15778         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
15779         * modules/poll-tests: Add inet_pton, stdbool, sockets.
15780         * tests/test-poll.c: Use them.  Use _pipe on Windows.
15781
15782 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
15783
15784         * modules/poll-tests: New.
15785         * tests/test-poll.c: New.
15786
15787 2008-09-12  Eric Blake  <ebb9@byu.net>
15788
15789         frexp: test for NetBSD failure on -0.0
15790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
15791         not all, bugs from NetBSD 3.0 have been fixed.
15792         * doc/posix-functions/frexp.texi (frexp): Document bug.
15793         Reported by Thomas Klausner.
15794
15795         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
15796         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
15797         literal -0.0.
15798         Reported by Jonathan C. Patschke <jp@centtech.com>.
15799
15800 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15801
15802         * lib/glthread/cond.h: Use dummy implementation also if
15803         USE_WIN32_THREADS.
15804
15805 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15806
15807         * modules/fnmatch-posix (License): Change to LGPLv2+.
15808         * modules/fnmatch-gnu (License): Likewise.
15809
15810 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15811
15812         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
15813
15814 2008-09-11  Jim Meyering  <meyering@redhat.com>
15815
15816         * users.txt: Add gtk-vnc.
15817
15818 2008-09-08  Simon Josefsson  <simon@josefsson.org>
15819
15820         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
15821         rotate amounts.
15822
15823         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
15824         required for 16-bit and 8-bit rotates.
15825         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
15826         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
15827         UINT8_MAX instead of hard-coded constants.
15828         Suggested by Paul Eggert.
15829
15830 2008-09-07  Bruno Haible  <bruno@clisp.org>
15831
15832         * tests/test-striconveh.c (main): Check behaviour when converting from
15833         UTF-7.
15834
15835         Make striconveh work better with stateful encodings.
15836         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
15837         that iconv does not increment the inptr when returning -1/EINVAL.
15838
15839 2008-09-07  Bruno Haible  <bruno@clisp.org>
15840
15841         * build-aux/config.rpath: Update according to libtool-2.2.6.
15842         * build-aux/config.libpath: Likewise.
15843
15844 2008-09-06  Bruno Haible  <bruno@clisp.org>
15845
15846         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
15847         * lib/freadptr.c (freadptr): Likewise.
15848         * lib/freadseek.c (freadptrinc): Likewise.
15849         Reported by Simon Josefsson.
15850
15851 2008-09-06  Bruno Haible  <bruno@clisp.org>
15852
15853         * modules/freadptr (License): Change to LGPLv2+.
15854         * modules/freadseek (License): Likewise.
15855         Suggested by Eric Blake.
15856
15857         * modules/memchr2 (License): Change to LGPLv2+.
15858         Approved by Eric Blake.
15859
15860 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15861             Bruno Haible  <bruno@clisp.org>
15862
15863         Make gnulib-tool work with native 'sed' on AIX.
15864         * gnulib-tool (sed_noop): New variable.
15865         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
15866         func_add_or_update, func_create_testdir): Use it to initialize sed
15867         script variables.
15868         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15869
15870 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
15871             Bruno Haible  <bruno@clisp.org>
15872
15873         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
15874         also works after #include directives.
15875
15876 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
15877
15878         getdate.y: reject an out-of-range timezone value
15879         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
15880         the range [-24...+24].  When specified with only one or two digits,
15881         * tests/test-getdate.c: Tests for the fix.
15882         * doc/getdate.texi: Document this change.
15883
15884 2008-09-03  Bruno Haible  <bruno@clisp.org>
15885
15886         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
15887
15888 2008-09-02  Simon Josefsson  <simon@josefsson.org>
15889
15890         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
15891         <bruce.korb@gmail.com> with ideas from Ben Pfaff
15892         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
15893         Blake <ebb9@byu.net>.
15894
15895         * tests/test-bitrotate.c: Add more test vectors.
15896
15897 2008-09-02  Eric Blake  <ebb9@byu.net>
15898
15899         vasnprintf-posix: handle large precision via %.*d
15900         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
15901         when handling it ourselves.
15902         * tests/test-vasnprintf-posix.c (test_function): Add test.
15903         * tests/test-snprintf-posix.h (test_function): Likewise.
15904         * tests/test-sprintf-posix.h (test_function): Likewise.
15905         * tests/test-vasprintf-posix.c (test_function): Likewise.
15906         Reported by Alain Guibert.
15907
15908 2008-09-01  Eric Blake  <ebb9@byu.net>
15909
15910         c-stack: make configure-time check more robust
15911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
15912         successful sigaction call.
15913         Reported by Tom G. Christensen.
15914
15915 2008-09-01  Bruno Haible  <bruno@clisp.org>
15916
15917         New module 'findprog-lgpl'.
15918         * modules/findprog-lgpl: New file.
15919         * lib/findprog-lgpl.c: New file.
15920         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
15921         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
15922         to decide whether to use strdup or xstrdup, concatenated_filename or
15923         xconcatenated_filename.
15924
15925 2008-09-01  Bruno Haible  <bruno@clisp.org>
15926
15927         Split module 'concat-filename' into 'concat-filename' (LGPL) and
15928         'xconcat-filename' (GPL).
15929         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
15930         (License): Change to LGPLv2+.
15931         * modules/xconcat-filename: New file.
15932         * lib/concat-filename.h (concatenated_filename): Change specification.
15933         (xconcatenated_filename): New declaration.
15934         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
15935         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
15936         memory situations.
15937         * lib/xconcat-filename.c: New file.
15938         * NEWS: Mention the change.
15939         * lib/findprog.c: Include concat-filename.h, not filename.h.
15940         (find_in_path): Use xconcatenated_filename instead of
15941         concatenated_filename.
15942         * lib/javacomp.c: Include concat-filename.h, not filename.h.
15943         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15944         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15945         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15946         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
15947         instead of concatenated_filename.
15948         * lib/javaexec.c: Include concat-filename.h, not filename.h.
15949         (execute_java_class): Use xconcatenated_filename instead of
15950         concatenated_filename.
15951         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
15952         * modules/javacomp (Depends-on): Likewise.
15953         * modules/javaexec (Depends-on): Likewise.
15954
15955 2008-09-01  Bruno Haible  <bruno@clisp.org>
15956
15957         Split module 'filename' into 'filename' and 'concat-filename'.
15958         * modules/filename: Keep only lib/filename.h.
15959         (License): Change to LGPLv2+.
15960         * modules/concat-filename: New file, extracted from modules/filename.
15961         * lib/filename.h (concatenated_filename): Remove declaration.
15962         * lib/concat-filename.h: New file, extracted from lib/filename.h.
15963         * lib/concat-filename.c: Include concat-filename.h.
15964         * NEWS: Mention the change.
15965
15966 2008-09-01  Simon Josefsson  <simon@josefsson.org>
15967
15968         * lib/bitrotate.h (rotl8, rotr8): Add.
15969
15970         * modules/bitrotate (configure.ac): Need
15971         AC_REQUIRE([AC_C_INLINE]).
15972         (Description): Mention stdint.h.  Reported by Bruno Haible
15973         <bruno@clisp.org>.
15974
15975         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
15976         Paolo Bonzini <bonzini@gnu.org>.
15977
15978 2008-08-31  Bruno Haible  <bruno@clisp.org>
15979
15980         Assume Solaris specific bi-arch conventions on Solaris systems.
15981         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
15982         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
15983         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
15984         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
15985         like acl_libdirstem.
15986         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
15987         acl_libdirstem.
15988         * NEWS: Mention the change.
15989         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
15990
15991 2008-08-31  Jim Meyering  <meyering@redhat.com>
15992
15993         * lib/strftime.h: Add comments describing the two added arguments.
15994
15995         remove duplicate #include directives
15996         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
15997         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
15998
15999 2008-08-31  Bruno Haible  <bruno@clisp.org>
16000
16001         New module 'sigpipe-die'.
16002         * modules/sigpipe-die: New file.
16003         * lib/sigpipe-die.h: New file.
16004         * lib/sigpipe-die.c: New file.
16005         * MODULES.html.sh (Signal handling): Add sigpipe-die.
16006
16007 2008-08-31  Bruno Haible  <bruno@clisp.org>
16008
16009         Don't override previously installed signal handlers.
16010         * lib/fatal-signal.c (saved_sigactions): New variable.
16011         (uninstall_handlers): Reset the signal to the saved handler, not
16012         to SIG_DFL (except when ignored).
16013         (install_handlers): Save the previous handlers.
16014
16015 2008-08-30  Bruno Haible  <bruno@clisp.org>
16016
16017         * gnulib-tool (func_reset_sigpipe): New function.
16018         (func_get_automake_snippet, func_modules_transitive_closure,
16019         func_import): Invoke it before a join command that reads from stdin,
16020         to avoid "echo: write error: Broken pipe" error messages on stderr.
16021         Reported by Sam Steingold <sds@gnu.org>.
16022
16023 2008-08-30  Bruno Haible  <bruno@clisp.org>
16024
16025         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
16026         Code copied from m4/open.m4.
16027         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
16028         access and the filename ends in a slash. Code copied from lib/open.c.
16029         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
16030         * tests/test-fopen.c (main): Check against bug with trailing slash.
16031
16032 2008-08-29  Bruno Haible  <bruno@clisp.org>
16033
16034         Avoid some "gcc -pedantic" warnings.
16035         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
16036         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
16037         * lib/dirent.in.h: Likewise.
16038         * lib/fcntl.in.h: Likewise.
16039         * lib/float.in.h: Likewise.
16040         * lib/iconv.in.h: Likewise.
16041         * lib/inttypes.in.h: Likewise.
16042         * lib/locale.in.h: Likewise.
16043         * lib/math.in.h: Likewise.
16044         * lib/netinet_in.in.h: Likewise.
16045         * lib/search.in.h: Likewise.
16046         * lib/signal.in.h: Likewise.
16047         * lib/stdarg.in.h: Likewise.
16048         * lib/stdint.in.h: Likewise.
16049         * lib/stdio.in.h: Likewise.
16050         * lib/stdlib.in.h: Likewise.
16051         * lib/string.in.h: Likewise.
16052         * lib/strings.in.h: Likewise.
16053         * lib/sys_select.in.h: Likewise.
16054         * lib/sys_socket.in.h: Likewise.
16055         * lib/sys_stat.in.h: Likewise.
16056         * lib/sys_time.in.h: Likewise.
16057         * lib/sysexits.in.h: Likewise.
16058         * lib/time.in.h: Likewise.
16059         * lib/unistd.in.h: Likewise.
16060         * lib/wchar.in.h: Likewise.
16061         * lib/wctype.in.h: Likewise.
16062         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
16063         * modules/fchdir (Makefile.am): Likewise.
16064         * modules/fcntl (Makefile.am): Likewise.
16065         * modules/float (Makefile.am): Likewise.
16066         * modules/iconv_open (Makefile.am): Likewise.
16067         * modules/inttypes (Makefile.am): Likewise.
16068         * modules/locale (Makefile.am): Likewise.
16069         * modules/math (Makefile.am): Likewise.
16070         * modules/netinet_in (Makefile.am): Likewise.
16071         * modules/search (Makefile.am): Likewise.
16072         * modules/signal (Makefile.am): Likewise.
16073         * modules/stdarg (Makefile.am): Likewise.
16074         * modules/stdint (Makefile.am): Likewise.
16075         * modules/stdio (Makefile.am): Likewise.
16076         * modules/stdlib (Makefile.am): Likewise.
16077         * modules/string (Makefile.am): Likewise.
16078         * modules/strings (Makefile.am): Likewise.
16079         * modules/sys_select (Makefile.am): Likewise.
16080         * modules/sys_socket (Makefile.am): Likewise.
16081         * modules/sys_stat (Makefile.am): Likewise.
16082         * modules/sys_time (Makefile.am): Likewise.
16083         * modules/sysexits (Makefile.am): Likewise.
16084         * modules/time (Makefile.am): Likewise.
16085         * modules/unistd (Makefile.am): Likewise.
16086         * modules/wchar (Makefile.am): Likewise.
16087         * modules/wctype (Makefile.am): Likewise.
16088         Reported by Reuben Thomas <rrt@sc3d.org>.
16089
16090 2008-08-29  Bruno Haible  <bruno@clisp.org>
16091
16092         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
16093         any more.
16094
16095 2008-08-29  Simon Josefsson  <simon@josefsson.org>
16096
16097         * MODULES.html.sh (Misc): Add bitrotate.
16098
16099         * modules/bitrotate: New file.
16100
16101         * lib/bitrotate.h: New file.
16102
16103         * modules/bitrotate-tests: New file.
16104
16105         * tests/test-bitrotate.c: New file.
16106
16107         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
16108         on the bitrotate module.
16109
16110         * lib/arctwo.c: Use new bitrotate module.
16111
16112 2008-08-29  Jim Meyering  <meyering@redhat.com>
16113
16114         bootstrap: merge changes from coreutils
16115         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
16116         of copied files.  Remove a kludge, now that this is fixed.
16117         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
16118         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
16119         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
16120
16121 2008-08-29  Bruno Haible  <bruno@clisp.org>
16122
16123         * MODULES.html.sh: Remove --cvs-urls option.
16124
16125 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
16126
16127         maint.mk: adjust to file name change
16128         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
16129
16130 2008-08-28  Jim Meyering  <meyering@redhat.com>
16131
16132         * modules/getndelim2 (License): Relicense to LGPLv2+.
16133         Approved by Richard Stallman for the version of 1995, and by
16134         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
16135
16136 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
16137
16138         * lib/getdelim.c (flockfile, funlockfile): Make all of them
16139         dummy if one is not available.  Do not touch them if
16140         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
16141         (getc_maybe_unlocked): New.
16142         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
16143
16144 2008-08-26  Eric Blake  <ebb9@byu.net>
16145
16146         doc/INSTALL: resync from autoconf
16147         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
16148         (INSTALL_PRELUDE): Delete; this is done more efficiently by
16149         moving...
16150         * install.texi [!autoconf]: ...here.  Resync from autoconf.
16151         * INSTALL: Regenerate.
16152         * INSTALL.ISO: New file.
16153         * INSTALL.UTF-8: Likewise.
16154
16155 2008-08-26  Jim Meyering  <meyering@redhat.com>
16156
16157         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
16158         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
16159         these definitions conditional, so that they may be overridden, too.
16160
16161 2008-08-26  Bruno Haible  <bruno@clisp.org>
16162
16163         Generate INSTALL file variants with prettier quotes.
16164         * doc/Makefile (INSTALL_PRELUDE): New macro.
16165         (INSTALL): Use it.
16166         (INSTALL.ISO, INSTALL.UTF-8): New rules.
16167
16168 2008-08-26  Bruno Haible  <bruno@clisp.org>
16169
16170         Run makeinfo in an English locale.
16171         * doc/Makefile (MAKEINFO): New variable.
16172
16173 2008-08-26  Bruno Haible  <bruno@clisp.org>
16174
16175         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
16176         Suggested by Eric Blake.
16177
16178 2008-08-25  Bruno Haible  <bruno@clisp.org>
16179
16180         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
16181
16182 2008-08-25  Eric Blake  <ebb9@byu.net>
16183
16184         c-stack: test that stack overflow can be caught
16185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
16186         that platform allows handling stack overflow; at least OS/2 EMX
16187         has sigaltstack, but crashes before transferring control to
16188         handler on stack overflow.
16189         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
16190         check for HAVE_STACK_OVERFLOW_HANDLING.
16191         Reported by Elbert Pol.
16192
16193 2008-08-25  Bruno Haible  <bruno@clisp.org>
16194
16195         * doc/posix-functions/strftime.texi: Fix description of strftime
16196         module.
16197
16198 2008-08-24  Bruno Haible  <bruno@clisp.org>
16199
16200         * tests/uniwidth/test-uc_width2.c: New file.
16201         * tests/uniwidth/test-uc_width2.sh: New file.
16202         * modules/uniwidth/width-tests (Files): Add the new files.
16203         (TESTS): Add uniwidth/test-uc_width2.sh.
16204         (TESTS_ENVIRONMENT): New variable.
16205         (check_PROGRAMS): Add test-uc_width2.
16206         (test_uc_width2_SOURCES): New variable.
16207
16208         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
16209         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
16210         not 0x00AB.
16211         Reported by Alexander V. Lukyanov <lav@netis.ru>.
16212
16213 2008-08-22  Eric Blake  <ebb9@byu.net>
16214
16215         test-lock, test-tls: mention why a test is skipped
16216         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
16217         skipped.
16218         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
16219
16220         count-one-bits: relax license
16221         * modules/count-one-bits (License): Relicense to LGPLv2+.
16222         Suggested by Ludovic Courtès, approved by Ben Pfaff.
16223
16224 2008-08-22  Andreas Schwab  <schwab@suse.de>
16225
16226         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16227         Remove spurious space in assignment.
16228
16229 2008-08-21  Simon Josefsson  <simon@josefsson.org>
16230
16231         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
16232         Paul Eggert <eggert@CS.UCLA.EDU>.
16233
16234 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
16235
16236         * modules/gettext: Add m4/threadlib.m4.
16237
16238 2008-08-19  Eric Blake  <ebb9@byu.net>
16239
16240         test-c-stack: fix compilation failure on FreeBSD 5.0
16241         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
16242         headers before <sys/resource.h>.
16243         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
16244         the bug.
16245         Reported by Nelson H. F. Beebe.
16246
16247         strverscmp: migrate from "strverscmp.h" to <string.h>
16248         * modules/string (Makefile.am): Add new hooks.
16249         * modules/strverscmp (Files): Remove strverscmp.h.
16250         (Depends-on): Add string.
16251         (configure.ac): Add indicator.
16252         (Include): Mention new header.
16253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
16254         defaults.
16255         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
16256         results.
16257         * lib/strverscmp.h: Delete.
16258         * lib/string.in.h (strverscmp): Provide declaration, when needed.
16259         * tests/test-strverscmp.c (includes): Adjust client.
16260         * lib/check-version.c (includes): Likewise.
16261         * NEWS: Document the change.
16262
16263         strverscmp: add unit test
16264         * modules/strverscmp-tests: New file.
16265         * tests/test-strverscmp.c: Likewise.
16266
16267 2008-08-19  Simon Josefsson  <simon@josefsson.org>
16268
16269         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
16270         regarding Windows crypto stuff, from Mono.
16271
16272 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
16273
16274         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
16275         if present, for intel RND.  Return error on failures.
16276
16277 2008-08-18  Ben Pfaff  <blp@gnu.org>
16278
16279         gitlog-to-changelog: give better diagnostic for failed pipe-open
16280         * build-aux/gitlog-to-changelog: Improve error message: suggest
16281         that the version of Git may be too old.
16282
16283 2008-08-18  Simon Josefsson  <simon@josefsson.org>
16284
16285         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
16286         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
16287
16288 2008-08-18  Bruno Haible  <bruno@clisp.org>
16289
16290         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
16291         pthread_in_use().
16292
16293 2008-08-18  Bruno Haible  <bruno@clisp.org>
16294
16295         * lib/glthread/threadlib.c: Include <pthread.h>.
16296
16297 2008-08-18  Bruno Haible  <bruno@clisp.org>
16298
16299         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
16300         glthread_recursive_lock_* macros.
16301         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
16302         Fix syntax error.
16303
16304 2008-08-18  Bruno Haible  <bruno@clisp.org>
16305
16306         * lib/glthread/thread.c: Avoid forcing a context switch right after
16307         thread creation.
16308
16309 2008-08-17  Bruno Haible  <bruno@clisp.org>
16310
16311         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
16312         * lib/glthread/thread.h: Provide Win32 specific implementation.
16313         * modules/thread (Files): Add lib/glthread/thread.c.
16314         (Depends-on): Add lock.
16315         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
16316
16317 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16318
16319         New module 'yield'.
16320         * modules/yield: New file.
16321         * lib/glthread/yield.h: New file.
16322         * m4/yield.m4: New file.
16323         * MODULES.html.sh (Multithreading): Add yield.
16324
16325 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16326
16327         New module 'thread'.
16328         * modules/thread: New file.
16329         * lib/glthread/thread.h: New file.
16330         * m4/thread.m4: New file.
16331         * MODULES.html.sh (Multithreading): Add thread.
16332
16333 2008-08-17  Bruno Haible  <bruno@clisp.org>
16334
16335         * lib/glthread/lock.h: Include <stdlib.h> always.
16336         * lib/glthread/tls.h: Likewise.
16337         * lib/glthread/cond.h: Likewise.
16338
16339 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
16340
16341         New module 'cond'.
16342         * modules/cond: New file.
16343         * lib/glthread/cond.h: New file.
16344         * lib/glthread/cond.c: New file.
16345         * m4/cond.m4: New file.
16346         * MODULES.html.sh (Multithreading): Add cond.
16347
16348 2008-08-16  Eric Blake  <ebb9@byu.net>
16349
16350         c-stack: fix regression on Irix 5.3 from 2008-06-21
16351         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
16352         sa_sigaction...
16353         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
16354         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
16355         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
16356         * modules/signal (Makefile.am): Use the value.
16357         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
16358         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
16359         * doc/posix-headers/signal.texi (signal.h): Document this
16360         portability issue.
16361         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
16362         Reported by Tom G. Christensen.
16363
16364 2008-08-17  Bruno Haible  <bruno@clisp.org>
16365
16366         New module 'threadlib'.
16367         * modules/threadlib: New file.
16368         * lib/glthread/threadlib.c: New file, extracted from
16369         lib/glthread/lock.c.
16370         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
16371         functions.
16372         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
16373         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
16374         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
16375         macros.
16376         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
16377         (gl_DISABLE_THREADS): Remove macro.
16378         * modules/lock (Files): Remove build-aux/config.rpath.
16379         (Depends-on): Remove havelib. Add threadlib.
16380         (configure.ac-early): Remove section.
16381         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
16382         * modules/tls (Depends-on): Remove lock. Add threadlib.
16383         (Link): New section, copied from threadlib.
16384         * MODULES.html.sh (Multithreading): Add threadlib.
16385
16386 2008-08-14  Bruno Haible  <bruno@clisp.org>
16387
16388         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
16389         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
16390         glthread_rwlock_unlock, glthread_rwlock_destroy,
16391         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
16392         glthread_recursive_lock_destroy): Define as macros always.
16393         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
16394         glthread_lock_lock.
16395         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
16396         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
16397         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
16398         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
16399         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
16400         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
16401         (glthread_recursive_lock_lock_func): Renamed from
16402         glthread_recursive_lock_lock.
16403         (glthread_recursive_lock_unlock_func): Renamed from
16404         glthread_recursive_lock_unlock.
16405         (glthread_recursive_lock_destroy_func): Renamed from
16406         glthread_recursive_lock_destroy.
16407
16408 2008-08-14  Bruno Haible  <bruno@clisp.org>
16409
16410         * lib/glthread/lock.h: Renamed from lib/lock.h.
16411         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
16412         * lib/glthread/tls.h: Renamed from lib/tls.h.
16413         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
16414         * lib/fstrcmp.c: Update includes.
16415         * lib/strsignal.c: Update includes.
16416         * modules/lock (Files, Makefile.am): Update.
16417         (Include): Change to "glthread/lock.h".
16418         * modules/tls (Files, Makefile.am): Update.
16419         (Include): Change to "glthread/tls.h".
16420         * tests/test-lock.c: Update includes.
16421         * tests/test-tls.c: Update includes.
16422         * NEWS: Mention the renamed header files.
16423
16424 2008-08-11  Jim Meyering  <meyering@redhat.com>
16425
16426         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
16427
16428 2008-08-11  Eric Blake  <ebb9@byu.net>
16429
16430         test-c-stack: avoid C99-ism
16431         * tests/test-c-stack.c (main): Fix whitespace, move declaration
16432         before statement.
16433         Reported by Alain Guibert.
16434
16435 2008-08-10  Jim Meyering  <meyering@redhat.com>
16436
16437         ensure that return value of uinttostr et al are not ignored
16438         * lib/inttostr.h (__GNUC_PREREQ): Define.
16439         (__attribute_warn_unused_result__): Define.
16440         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
16441
16442 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
16443
16444         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
16445         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
16446
16447 2008-08-07  Jim Meyering  <meyering@redhat.com>
16448
16449         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
16450
16451         * modules/mkstemp (License): Relicense under LGPLv2+.
16452         * modules/tempname (License): Likewise.
16453
16454 2008-08-06  Bruno Haible  <bruno@clisp.org>
16455
16456         * lib/poll.c (poll): Further micro-optimization.
16457
16458 2008-08-06  Jim Meyering  <meyering@redhat.com>
16459
16460         inet_pton.c: use locale-independent tolower
16461         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
16462         (inet_pton6): Use c_tolower rather than tolower.
16463         * modules/inet_pton (Depends-on): Add c-ctype.
16464
16465 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
16466
16467         * lib/poll.c (poll): Avoid division when timeout is 0, cache
16468         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
16469
16470 2008-08-06  Jim Meyering  <meyering@redhat.com>
16471
16472         * modules/inet_pton (License): Relicense under LGPLv2+.
16473
16474 2008-08-03  Bruno Haible  <bruno@clisp.org>
16475
16476         Additional non-aborting API for lock and tls.
16477         * lib/lock.h: Include <errno.h>.
16478         (glthread_lock_init): New macro/function.
16479         (gl_lock_init): Define as wrapper around glthread_lock_init.
16480         (glthread_lock_lock): New macro/function.
16481         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
16482         (glthread_lock_unlock): New macro/function.
16483         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
16484         (glthread_lock_destroy): New macro/function.
16485         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
16486         (glthread_rwlock_init): New macro/function.
16487         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
16488         (glthread_rwlock_rdlock): New macro/function.
16489         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
16490         (glthread_rwlock_wrlock): New macro/function.
16491         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
16492         (glthread_rwlock_unlock): New macro/function.
16493         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
16494         (glthread_rwlock_destroy): New macro/function.
16495         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
16496         (glthread_recursive_lock_init): New macro/function.
16497         (gl_recursive_lock_init): Define as wrapper around
16498         glthread_recursive_lock_init.
16499         (glthread_recursive_lock_lock): New macro/function.
16500         (gl_recursive_lock_lock): Define as wrapper around
16501         glthread_recursive_lock_lock.
16502         (glthread_recursive_lock_unlock): New macro/function.
16503         (gl_recursive_lock_unlock): Define as wrapper around
16504         glthread_recursive_lock_unlock.
16505         (glthread_recursive_lock_destroy): New macro/function.
16506         (gl_recursive_lock_destroy): Define as wrapper around
16507         glthread_recursive_lock_destroy.
16508         (glthread_once): New macro/function.
16509         (gl_once): Define as wrapper around glthread_once.
16510         Update function declarations.
16511         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
16512         glthread_rwlock_init. Return error code.
16513         (glthread_rwlock_rdlock_multithreaded): Renamed from
16514         glthread_rwlock_rdlock. Return error code.
16515         (glthread_rwlock_wrlock_multithreaded): Renamed from
16516         glthread_rwlock_wrlock. Return error code.
16517         (glthread_rwlock_unlock_multithreaded): Renamed from
16518         glthread_rwlock_unlock. Return error code.
16519         (glthread_rwlock_destroy_multithreaded): Renamed from
16520         glthread_rwlock_destroy. Return error code.
16521         (glthread_recursive_lock_init_multithreaded): Renamed from
16522         glthread_recursive_lock_init. Return error code.
16523         (glthread_recursive_lock_lock_multithreaded): Renamed from
16524         glthread_recursive_lock_lock. Return error code.
16525         (glthread_recursive_lock_unlock_multithreaded): Renamed from
16526         glthread_recursive_lock_unlock. Return error code.
16527         (glthread_recursive_lock_destroy_multithreaded): Renamed from
16528         glthread_recursive_lock_destroy. Return error code.
16529         (glthread_once_call): Make static.
16530         (glthread_once_multithreaded): Renamed from glthread_once.
16531         * lib/tls.h: Include <errno.h>.
16532         (glthread_tls_key_init): New macro/function.
16533         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
16534         (glthread_tls_set): New macro/function.
16535         (gl_tls_set): Define as wrapper around glthread_tls_set.
16536         (glthread_tls_key_destroy): New macro/function.
16537         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
16538         Update function declarations.
16539         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
16540         glthread_tls_get.
16541         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16542
16543 2008-08-04  Eric Blake  <ebb9@byu.net>
16544
16545         gnumakefile: use space, not TAB, outside of targets
16546         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
16547
16548 2008-08-02  Jim Meyering  <meyering@redhat.com>
16549
16550         getdate.y: avoid locale-dependent date parsing failure
16551         In Turkish locales, getdate would fail to recognize keywords
16552         containing a lowercase "i".  The solution is not to rely on
16553         locale-sensitive case-conversion.
16554         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
16555         (lookup_word): Use c_toupper in place of toupper.
16556         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
16557         Reported by Vefa Bicakci <bicave@superonline.com> in
16558         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
16559         * modules/getdate (Depends-on): Add c-ctype.
16560
16561 2008-08-02  Bruno Haible  <bruno@clisp.org>
16562
16563         * gnulib-tool (func_import): When updating or creating a .gitignore
16564         file, prepend each added line with a slash, and ignore leading slashes
16565         from the existing lines.
16566         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16567
16568 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16569
16570         Portability fix for GNU make 3.79.1.
16571         * top/GNUmakefile: Avoid 'else COND', which older GNU make
16572         versions do not understand.
16573
16574 2008-08-01  Bruno Haible  <bruno@clisp.org>
16575
16576         Work around bug of HP-UX 10.20 cc with -0.0 literal.
16577         * tests/test-isnanf.h (zero): New variable.
16578         (main): Avoid literal -0.0f.
16579         * tests/test-isnand.h (zero): New variable.
16580         (main): Avoid literal -0.0.
16581         * tests/test-isnanl.h (zero): New variable.
16582         (main): Avoid literal -0.0L.
16583         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
16584         (test_float, test_double, test_long_double): Avoid literals -0.0f,
16585         -0.0, -0.0L.
16586         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
16587         (test_signbitd): Avoid literal -0.0.
16588         (test_signbitl): Avoid literal -0.0L.
16589         * tests/test-ceilf1.c (zero): New variable.
16590         (main): Avoid literal -0.0f.
16591         * tests/test-ceill.c (zero): New variable.
16592         (main): Avoid literal -0.0L.
16593         * tests/test-floorf1.c (zero): New variable.
16594         (main): Avoid literal -0.0f.
16595         * tests/test-floorl.c (zero): New variable.
16596         (main): Avoid literal -0.0L.
16597         * tests/test-roundf1.c (zero): New variable.
16598         (main): Avoid literal -0.0f.
16599         * tests/test-round1.c (zero): New variable.
16600         (main): Avoid literal -0.0.
16601         * tests/test-roundl.c (zero): New variable.
16602         (main): Avoid literal -0.0L.
16603         * tests/test-truncf1.c (zero): New variable.
16604         (main): Avoid literal -0.0f.
16605         * tests/test-trunc1.c (zero): New variable.
16606         (main): Avoid literal -0.0.
16607         * tests/test-truncl.c (zero): New variable.
16608         (main): Avoid literal -0.0L.
16609         * tests/test-frexp.c (zero): New variable.
16610         (main): Avoid literal -0.0.
16611         * tests/test-frexpl.c (zero): New variable.
16612         (main): Avoid literal -0.0L.
16613         * tests/test-ldexpl.c (zero): New variable.
16614         (main): Avoid literal -0.0L.
16615         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
16616         (zerod, zerol): New variables.
16617         (test_function): Avoid literals -0.0, -0.0L.
16618         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
16619         (zerod, zerol): New variables.
16620         (test_function): Avoid literals -0.0, -0.0L.
16621         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
16622         (zerod, zerol): New variables.
16623         (test_function): Avoid literals -0.0, -0.0L.
16624         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
16625         (zerod, zerol): New variables.
16626         (test_function): Avoid literals -0.0, -0.0L.
16627         * tests/test-strtod.c (zero): New variable.
16628         (main): Avoid literal -0.0.
16629         Reported by Jonathan C. Patschke <jp@centtech.com>.
16630
16631 2008-07-31  Jim Meyering  <meyering@redhat.com>
16632
16633         sha256.h: correct definition of SHA224_DIGEST_SIZE
16634         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
16635         Reported by Paulie Pena IV <paulie4@gmail.com>.
16636         Define as 224 / 8, rather than as a literal.
16637         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
16638         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
16639         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
16640
16641 2008-07-31  Bruno Haible  <bruno@clisp.org>
16642
16643         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
16644         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
16645         Reported by Jonathan Patschke <jp@centtech.com>.
16646
16647 2008-07-31  Bruno Haible  <bruno@clisp.org>
16648
16649         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
16650         Reported by Paolo Bonzini <bonzini@gnu.org>.
16651
16652 2008-07-30  Eric Blake  <ebb9@byu.net>
16653
16654         test-strtod: allow compilation without -lm
16655         * tests/test-strtod.c (main): Avoid link dependence on fabs.
16656         Reported by Dennis Clarke <blastwave@gmail.com>.
16657
16658 2008-07-28  Jim Meyering  <meyering@redhat.com>
16659
16660         bootstrap: work also when there are no .po files in po/
16661         * build-aux/bootstrap (update_po_files): Complete the change
16662         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
16663
16664 2008-07-27  Jim Meyering  <meyering@redhat.com>
16665
16666         * users.txt: Add zile.
16667
16668 2008-07-26  Ben Pfaff  <blp@gnu.org>
16669
16670         Add missing dependencies on new m4/exponent[fdl].m4 files.
16671         * modules/isnanf-nolibm: Add m4/exponentf.m4.
16672         * modules/isnand-nolibm: Add m4/exponentd.m4.
16673         * modules/isnanl-nolibm: Add m4/exponentl.m4.
16674         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
16675         m4/isnan[fdl].m4, because the macros actually used moved.
16676         Reported by Jim Meyering.
16677
16678 2008-07-14  Ben Pfaff  <blp@gnu.org>
16679
16680         Add isinf module.
16681         * lib/isinf.c: New file.
16682         * lib/math.in.h: Define isinf macro if we have decided to replace
16683         it.
16684         * m4/isinf.m4: New file.
16685         * m4/math_h.m4: Initialize and substitute variables for isinf
16686         module.
16687         * modules/isinf: New file.
16688         * modules/isinf-tests: New file.
16689         * modules/math: Add substitutions for new module.
16690         * tests/test-isinf.c: New file.
16691         * doc/posix-functions/isinf.texi: Mention new module.
16692         * MODULES.html.sh: Mention new module.
16693
16694 2008-07-14  Ben Pfaff  <blp@gnu.org>
16695
16696         Factor out some macros for use by additional modules.
16697         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
16698         exponentf.m4.
16699         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
16700         exponentd.m4.
16701         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
16702         file exponentl.m4.
16703         * m4/exponentf.m4: New file.
16704         * m4/exponentd.m4: New file.
16705         * m4/exponentl.m4: New file.
16706         * modules/isnanf: Use new file m4/exponentf.m4.
16707         * modules/isnand: Use new file m4/exponentd.m4.
16708         * modules/isnanl: Use new file m4/exponentl.m4.
16709
16710 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
16711
16712         mktime.c: normalize tp->tm_isdst value to -1/0/1.
16713         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
16714         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
16715         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
16716
16717         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
16718         readlink on platforms without PATH_MAX.
16719
16720 2008-07-21  Eric Blake  <ebb9@byu.net>
16721
16722         Warn, not fail, on stale version.
16723         * top/GNUmakefile (_curr-ver): Tone down previous patch.
16724
16725         Don't allow installation with stale devel version number.
16726         * top/GNUmakefile (_is-install-target): New macro.
16727         (_curr-ver): Forbid installation with stale version number.
16728
16729 2008-07-20  Bruno Haible  <bruno@clisp.org>
16730
16731         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
16732         TESTS_ENVIRONMENT.
16733         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
16734
16735 2008-07-20  Bruno Haible  <bruno@clisp.org>
16736
16737         * lib/c-stack.h (c_stack_action): Add documentation.
16738         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
16739
16740 2008-07-20  Bruno Haible  <bruno@clisp.org>
16741
16742         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
16743         * modules/readlink (License): Likewise.
16744
16745 2008-07-17  Eric Blake  <ebb9@byu.net>
16746
16747         * modules/c-stack (Link): Fix typo.
16748
16749         Make c-stack use libsigsegv, when available.
16750         * modules/c-stack (Depends-on): Add libsigsegv.
16751         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
16752         needed.
16753         * lib/c-stack.c (SIGSTKSZ): Define fallback.
16754         (segv_handler, overflow_handler, c_stack_action)
16755         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
16756         implementation when libsigsegv is available, but only when using
16757         the library is necessary.
16758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
16759         comment, explaining why XSI check fails on Linux.
16760         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
16761         * tests/test-c-stack2.sh: Tweak skip message.
16762         * NEWS: Document new link-time requirements.
16763
16764 2008-07-16  Eric Blake  <ebb9@byu.net>
16765
16766         c-stack: Expose false positives when not using libsigsegv.
16767         * modules/c-stack-tests (Files): Expand test.
16768         * tests/test-c-stack.c (main): Add means to conditionally trigger
16769         non-overflow SIGSEGV.
16770         * tests/test-c-stack2.sh: New file.
16771
16772 2008-07-14  Bruno Haible  <bruno@clisp.org>
16773
16774         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
16775         Reported by Eric Blake.
16776
16777 2008-07-14  Sam Steingold  <sds@gnu.org>
16778             Bruno Haible  <bruno@clisp.org>
16779
16780         New module libsigsegv.
16781         * modules/libsigsegv: New file.
16782         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
16783         modifications.
16784         * MODULES.html.sh (Signal handling): New section.
16785
16786 2008-07-14  Bruno Haible  <bruno@clisp.org>
16787
16788         * modules/unictype/ctype-* (Description): Add the word "function".
16789         Improves the resulting doc in MODULES.html.
16790
16791 2008-07-12  Ben Pfaff  <blp@gnu.org>
16792
16793         Add longlong module.
16794         * modules/longlong: New file.
16795
16796 2008-07-12  Bruno Haible  <bruno@clisp.org>
16797
16798         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
16799         to empty.
16800
16801 2008-07-10  Ben Pfaff  <blp@gnu.org>
16802
16803         Add isnan module.
16804         * doc/posix-functions/isnan.texi: Mention new module.
16805         * lib/math.in.h: Define isnan macro if we have decided to replace
16806         it.
16807         * m4/isnan.m4: New file.
16808         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
16809         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
16810         also.
16811         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
16812         redundancy.
16813         * m4/math_h.m4: Initialize and substitute variables for isnan
16814         module.
16815         * modules/isnan: New file.
16816         * modules/isnan-tests: New file.
16817         * modules/math: Add substitutions for new module.
16818         * tests/test-isnan.c: New file.
16819         * MODULES.html.sh: Mention new module.
16820
16821 2008-07-10  Ben Pfaff  <blp@gnu.org>
16822
16823         Add isnanf module.
16824         * lib/isnanf.m4: New file.
16825         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
16826         (gl_HAVE_ISNANF_IN_LIBM): New macro.
16827         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
16828         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
16829         * modules/isnanf: New file.
16830         * modules/isnanf-tests: New file.
16831         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
16832         files.
16833         * tests/test-isnanf-nolibm.c: factored most of its contents into
16834         new file tests/test-isnanf.h.
16835         * tests/test-isnanf.h: New file.
16836         * tests/test-isnanf.c: New file.
16837         * MODULES.html.sh: Mention new module.
16838         * doc/glibc-functions/isnanf.texi: Mention new module.
16839
16840 2008-07-10  Ben Pfaff  <blp@gnu.org>
16841
16842         Add isnand module.
16843         * lib/isnand.h: New file.
16844         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
16845         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
16846         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
16847         functionality also.
16848         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
16849         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
16850         (gl_HAVE_ISNAND_IN_LIBM): New macro.
16851         * modules/isnand: New file.
16852         * modules/isnand-tests: New file.
16853         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
16854         files.
16855         * tests/test-isnand-nolibm.c: factored most of its contents into
16856         new file tests/test-isnand.h.
16857         * tests/test-isnand.h: New file.
16858         * tests/test-isnand.c: New file.
16859         * MODULES.html.sh: Mention new module.
16860
16861 2008-07-10  Ben Pfaff  <blp@gnu.org>
16862
16863         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
16864         * lib/isnand.h: Rename lib/isnand-nolibm.h.
16865         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
16866         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
16867         * modules/isnanf-nolibm: Update references to renamed files.
16868         * modules/isnand-nolibm: Likewise.
16869         * modules/isnanf-nolibm-tests: Likewise.
16870         * modules/isnand-nolibm-tests: Likewise.
16871         * lib/frexp.c: Likewise.
16872         * lib/isfinite.c: Likewise.
16873         * lib/signbitd.c: Likewise.
16874         * lib/signbitf.c: Likewise.
16875         * lib/vasnprintf.c: Likewise.
16876         * tests/test-ceilf1.c: Likewise.
16877         * tests/test-ceilf2.c: Likewise.
16878         * tests/test-floorf1.c: Likewise.
16879         * tests/test-floorf2.c: Likewise.
16880         * tests/test-frexp.c: Likewise.
16881         * tests/test-round1.c: Likewise.
16882         * tests/test-round2.c: Likewise.
16883         * tests/test-roundf1.c: Likewise.
16884         * tests/test-strtod.c: Likewise.
16885         * tests/test-trunc1.c: Likewise.
16886         * tests/test-trunc2.c: Likewise.
16887         * tests/test-truncf1.c: Likewise.
16888         * tests/test-truncf2.c: Likewise.
16889         * NEWS: Mention the renamed header files.
16890
16891 2008-07-11  Jim Meyering  <meyering@redhat.com>
16892
16893         vc-list-files: make the last-resort awk code more portable
16894         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
16895         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
16896         does not support it.
16897
16898 2008-07-10  Eric Blake  <ebb9@byu.net>
16899
16900         Work with tar's bootstrap.
16901         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
16902         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
16903         an m4 comment.
16904
16905 2008-07-09  Jim Meyering  <meyering@redhat.com>
16906
16907         posix-shell.m4: fix typo that made this test malfunction
16908         * m4/posix-shell.m4: Remove capitalization in variable name.
16909
16910 2008-07-08  Bruno Haible  <bruno@clisp.org>
16911
16912         * m4/onceonly.m4: Update comments.
16913         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16914
16915 2008-07-04  Jim Meyering  <meyering@redhat.com>
16916
16917         * users.txt: Add vc-dwim.
16918         (bison, coreutils): Use the gitweb URL.
16919
16920 2008-07-03  Jim Meyering  <meyering@redhat.com>
16921
16922         * users.txt: Add libffcall.  From Sam Steingold.
16923
16924 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
16925
16926         getdate.y: do not ignore TZ with relative day, month or year offset
16927         * lib/getdate.y (get_date): Move the tz-handling block to follow the
16928         relative-date-handling, since otherwise, the latter would clobber the
16929         sole output (an updated Start value) of the tz-handling block.
16930         * tests/test-getdate.c: Tests for the fix
16931
16932 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16933
16934         Recognize 'foo_LIBRARIES += libgnu.a'.
16935         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
16936         makefile snippet has already specified an installation location,
16937         also using '+='.
16938
16939 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
16940
16941         getdate.y: factor out common actions
16942         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
16943         Use them in place of open-coded actions.
16944
16945 2008-07-01  Simon Josefsson  <simon@josefsson.org>
16946
16947         Add self-test for getdate module.
16948         * modules/getdate-tests: New file.
16949         * tests/test-getdate.c: New file.
16950
16951 2008-06-29  Bruno Haible  <bruno@clisp.org>
16952
16953         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
16954         .gitignore.
16955         Reported by Sylvain Beucler <beuc@beuc.net>.
16956
16957 2008-06-29  Bruno Haible  <bruno@clisp.org>
16958
16959         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
16960         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
16961
16962 2008-06-29  Bruno Haible  <bruno@clisp.org>
16963
16964         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
16965         EXTRA_DIST.
16966         Reported by Sylvain Beucler <beuc@beuc.net>.
16967
16968 2008-06-26  Jim Meyering  <meyering@redhat.com>
16969
16970         make several modules depend on the "open" module
16971         This provides slightly increased consistency when opening-for-write
16972         the name of a non-directory spelled with a trailing slash.
16973         * modules/chdir-safer: Likewise.
16974         * modules/chown: Likewise.
16975         * modules/clean-temp: Likewise.
16976         * modules/copy-file: Likewise.
16977         * modules/fchdir: Likewise.
16978         * modules/fcntl-safer: Likewise.
16979         * modules/pipe: Likewise.
16980         * modules/utime: Likewise.
16981         Prompted by Eric Blake and Bruno Haible.
16982
16983 2008-06-24  Andreas Schwab  <schwab@suse.de>
16984
16985         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
16986         literals can be used as initializers for global variables.
16987
16988 2008-06-23  Eric Blake  <ebb9@byu.net>
16989
16990         Make gnulib-cache.m4 easier to diff.
16991         * gnulib-tool (func_import): Allow newlines when reading cached
16992         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
16993
16994 2008-06-23  Bruno Haible  <bruno@clisp.org>
16995
16996         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
16997         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
16998         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
16999         m4/signalblocking.m4.
17000         (gl_PREREQ_SIGACTION): Don't invoke it.
17001         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
17002         gl_PREREQ_SIG_HANDLER_H.
17003         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17004         Don't check for sigaction here.
17005
17006 2008-06-23  Bruno Haible  <bruno@clisp.org>
17007
17008         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
17009         (install_handlers): Don't set the SA_RESETHAND flag.
17010
17011 2008-06-23  Bruno Haible  <bruno@clisp.org>
17012
17013         * m4/sigaction.m4: Comment fixes.
17014         * lib/signal.in.h: Likewise.
17015
17016 2008-06-23  Eric Blake  <ebb9@byu.net>
17017
17018         Fix typo.
17019         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
17020
17021         Avoid SA_ namespace.
17022         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
17023         Reported by Ralf Wildenhues.
17024
17025         Avoid test failure due to SA_RESTORER.
17026         * tests/test-sigaction.c (SA_MASK): New macro.
17027         (main): Avoid failing due to extension flags being set.
17028         Reported by Jim Meyering.
17029
17030         Revert use of sig-handler.h in sigprocmask.c.
17031         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
17032         it requires the existence of struct sigaction.
17033         * lib/sigprocmask.c (handler_t): Restore typedef.
17034         (rpl_signal, old_handlers): Use local type.
17035
17036 2008-06-22  Bruno Haible  <bruno@clisp.org>
17037
17038         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
17039         conditionally.
17040         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17041
17042 2008-06-22  Bruno Haible  <bruno@clisp.org>
17043
17044         * doc/posix-functions/siginterrupt.texi: Move note.
17045
17046         * lib/signal.in.h (SA_RESTART): New macro.
17047         * lib/sigaction.c: Update comment.
17048
17049         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
17050
17051         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
17052         (gl_PREREQ_SIGPROCMASK): Invoke it.
17053         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
17054
17055         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
17056
17057         * lib/sigprocmask.c: Update a comment.
17058
17059 2008-06-21  Eric Blake  <ebb9@byu.net>
17060
17061         Use sigaction module rather than signal().
17062         * modules/c-stack (Depends-on): Add sigaction.
17063         * modules/fatal-signal (Depends-on): Likewise.
17064         * modules/nanosleep (Depends-on): Likewise.
17065         * modules/sigprocmask (Files): Add sig-handler.h.
17066         * modules/sigaction (Files): Likewise.
17067         * lib/sig-handler.h (get_handler): New file, suggested by Paul
17068         Eggert.
17069         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
17070         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
17071         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
17072         (init_fatal_signals): Likewise.
17073         * lib/nanosleep.c (rpl_nanosleep): Likewise.
17074         (siginterrupt): Delete fallback.
17075         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
17076         instead.
17077         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
17078         siginterrupt.
17079
17080         New module sigaction, for mingw.
17081         * modules/sigaction: New module...
17082         * modules/sigaction-tests: ...and its test.
17083         * m4/sigaction.m4: New file.
17084         * lib/sigaction.c: Likewise.
17085         * tests/test-sigaction.c: Likewise.
17086         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
17087         * modules/signal (Makefile.am): Likewise.
17088         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
17089         needed.
17090         * doc/posix-headers/signal.texi (signal.h): Mention provided
17091         types.
17092         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
17093         that sigaction is preferable.
17094         * doc/posix-functions/sigaction.texi (sigaction): Mention new
17095         module.
17096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17097         sigaction.
17098
17099         Improve robustness of sigprocmask by overriding signal.
17100         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
17101         is in use.
17102         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
17103         (SIGKILL, SIGSTOP): Provide fallbacks.
17104         (rpl_signal): Implement.
17105         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
17106         signal can be called inside handlers.
17107
17108         Fix nanosleep module on mingw.
17109         * modules/nanosleep (Depends-on): Add sys_select.
17110         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
17111
17112         Fix licensing of sigprocmask.
17113         * modules/raise (License): Relicense as LGPL.
17114
17115 2008-06-21  Bruno Haible  <bruno@clisp.org>
17116
17117         * lib/propername.c (proper_name_utf8): Don't use the transliterated
17118         result if it contains question marks.
17119         Reported by Michael Geng <linux@michaelgeng.de>.
17120
17121 2008-06-19  Bruno Haible  <bruno@clisp.org>
17122
17123         Fix CVS-ism.
17124         * doc/gnulib.texi: Include updated-stamp.texi.
17125         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
17126         (updated-stamp.texi): New rule.
17127         (gnulib.info): Depend on it.
17128         * doc/.gitignore: Add updated-stamp.texi.
17129         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
17130
17131 2008-06-19  Bruno Haible  <bruno@clisp.org>
17132
17133         * doc/Makefile (gnulib.info): Update and simplify dependencies.
17134         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17135
17136 2008-06-19  Eric Blake  <ebb9@byu.net>
17137
17138         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
17139         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
17140         Reported by Stepan Kasal.
17141
17142 2008-06-18  Bruno Haible  <bruno@clisp.org>
17143
17144         * lib/fatal-signal.c (init_fatal_signals): Add comment.
17145         Reported by Eric Blake.
17146
17147 2008-06-18  Eric Blake  <ebb9@byu.net>
17148
17149         Work around cygwin 1.5.25 strsignal bug.
17150         * tests/test-strsignal.c: Allow for const char *.
17151         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
17152
17153 2008-06-18  Simon Josefsson  <simon@josefsson.org>
17154
17155         * users.txt: Update URL to article and add author/date
17156         information.
17157
17158 2008-06-17  Bruno Haible  <bruno@clisp.org>
17159
17160         New macro gl_DISABLE_THREADS.
17161         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
17162         if the user did not pass --enable-threads or --disable-threads option.
17163         (gl_DISABLE_THREADS): New macro.
17164         Reported by Eric Blake <ebb9@byu.net>.
17165
17166 2008-06-17  Bruno Haible  <bruno@clisp.org>
17167
17168         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
17169         when the macro ignores it.
17170         Based on a patch by Eric Blake <ebb9@byu.net>.
17171
17172 2008-06-17  Bruno Haible  <bruno@clisp.org>
17173
17174         * modules/tls (License): Change to LGPLv2+.
17175         Reported by Eric Blake.
17176
17177 2008-06-17  Eric Blake  <ebb9@byu.net>
17178
17179         Simplify c-stack prerequisites.
17180         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
17181         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
17182         no longer requires <ucontext.h> to exist.  Optimize setrlimit
17183         check.
17184         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
17185         <sys/resource.h>.
17186
17187         Move c-stack test into testsuite.
17188         * modules/c-stack-tests: New file.
17189         * lib/c-stack.c [DEBUG]: Move test program...
17190         * tests/test-c-stack.c: ...into this new file.  Skip rather than
17191         fail test if sigaltstack is lacking.
17192         * tests/test-c-stack.sh: New driver file.
17193
17194 2008-06-16  Eric Blake  <ebb9@byu.net>
17195
17196         Use raise module consistently.
17197         * modules/fatal-signal (Depends-on): Add raise.
17198         * modules/sigprocmask (Depends-on): Likewise.
17199         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
17200         * lib/sigprocmask.c (sigprocmask): Likewise.
17201         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17202         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
17203
17204         Fix compliance bug in sigpending.
17205         * lib/sigprocmask.c (sigpending): Return pending array via
17206         parameter, not return value.
17207
17208 2008-06-14  Eric Blake  <ebb9@byu.net>
17209
17210         Improve obstack-printf test code.
17211         * tests/test-obstack-printf.c (test_function): Fix comment, and
17212         simplify usage of obstack_* in macros.  Add a test for coverage.
17213         Reported by Bruno Haible.
17214
17215 2008-06-14  Bruno Haible  <bruno@clisp.org>
17216
17217         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
17218         array size as a constant, not as a const variable.
17219         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
17220         AC_USE_SYSTEM_EXTENSIONS.
17221         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
17222         Test whether the obstack_printf function actually exists.
17223         * modules/obstack-printf (Depends-on): Add extensions.
17224         (Include): Remove obstack.h.
17225         * modules/obstack-printf-posix (Depends-on): Add extensions.
17226         (Include): Remove obstack.h.
17227
17228 2008-06-13  Eric Blake  <ebb9@byu.net>
17229
17230         Add obstack-printf and obstack-printf-posix modules.
17231         * modules/obstack-printf: New file.
17232         * modules/obstack-printf-posix: Likewise.
17233         * MODULES.html.sh (Misc): Mention them.
17234         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17235         Likewise.
17236         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17237         Likewise.
17238         * modules/stdio (Makefile.am): Accomodate new modules.
17239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17240         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
17241         Declare.
17242         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
17243         functions.
17244         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
17245         (gl_REPLACE_OBSTACK_PRINTF): New macros
17246         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
17247         * tests/test-obstack-printf.c: New file.
17248         * modules/obstack-printf-tests: Likewise.
17249         * modules/obstack-printf-posix-tests: Likewise.
17250
17251 2008-06-11  Bruno Haible  <bruno@clisp.org>
17252
17253         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
17254         * lib/open.c: Include errno.h.
17255         (open): Fail when attempting to write to a file that has a trailing
17256         slash.
17257         * tests/test-open.c (main): Test against trailing slash bug.
17258         * doc/posix-functions/open.texi: Mention the trailing slash bug.
17259
17260 2008-06-10  Bruno Haible  <bruno@clisp.org>
17261
17262         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
17263         for $? to work inside the trap command, with various /bin/sh-s.
17264         * tests/test-vc-list-files-cvs.sh: Likewise.
17265
17266 2008-06-10  Bruno Haible  <bruno@clisp.org>
17267
17268         * lib/acl-internal.h: Don't include gettext.h here.
17269         * lib/set-mode-acl.c: Include gettext.h here.
17270         * lib/copy-acl.c: Likewise.
17271
17272 2008-06-10  Bruno Haible  <bruno@clisp.org>
17273
17274         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
17275         * lib/wait-process.c (wait_subprocess): Likewise.
17276         * lib/execute.h (execute): Add termsigp argument.
17277         * lib/execute.c (execute): Likewise.
17278         * lib/csharpcomp.c (compile_csharp_using_pnet,
17279         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
17280         * lib/csharpexec.c (execute_csharp_using_pnet,
17281         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
17282         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
17283         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
17284         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
17285         is_jikes_present): Update.
17286         * lib/javaexec.c (execute_java_class): Update.
17287         * lib/javaversion.c (execute_and_read_line): Update.
17288         * NEWS: Document the changes.
17289         Reported by Eric Blake.
17290
17291 2008-06-10  Eric Blake  <ebb9@byu.net>
17292
17293         Add missing include.
17294         * tests/test-strstr.c (includes): Add <signal.h>.
17295         * tests/test-strcasestr.c (includes): Likewise.
17296         * tests/test-memmem.c (includes): Likewise.
17297
17298 2008-06-10  Bruno Haible  <bruno@clisp.org>
17299
17300         * lib/wait-process.c (wait_subprocess): Add an assertion.
17301
17302 2008-06-10  Bruno Haible  <bruno@clisp.org>
17303
17304         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
17305
17306 2008-06-10  Bruno Haible  <bruno@clisp.org>
17307
17308         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
17309         using alarm().
17310         * tests/test-strcasestr.c (main): Likewise.
17311         * tests/test-strstr.c (main): Likewise.
17312
17313 2008-06-09  Bruno Haible  <bruno@clisp.org>
17314
17315         Work around the Solaris 10 ACE ACLs ABI change.
17316         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
17317         declare if ACL_NO_TRIVIAL is present.
17318         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
17319         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
17320         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
17321         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
17322         define if ACL_NO_TRIVIAL is present.
17323         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
17324         and use the current ABI.
17325         (file_has_acl): Use same #if condition as elsewhere.
17326         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
17327         in use, and use the current ABI.
17328         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
17329         Reported by Jim Meyering.
17330
17331 2008-06-09  Eric Blake  <ebb9@byu.net>
17332
17333         Work around environments that (stupidly) ignore SIGALRM.
17334         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
17335         before using alarm().
17336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17337         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17338         Reported by Ian Beckwith <ianb@erislabs.net>.
17339
17340         Produce autobuild blurb earlier in log.
17341         * modules/autobuild (configure.ac-early): Move AB_INIT here.
17342
17343 2008-06-09  Jim Meyering  <meyering@redhat.com>
17344         and Ondřej Vašík  <ovasik@redhat.com>
17345
17346         utimens.c: correct kernel bug work-around
17347         Ondřej Vašík found that the invalid return value of 280 indicates
17348         failure, not success, and the kernel bug we're trying to work
17349         around affects not just the utimensat call, but also the fallback
17350         futimens call.
17351         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
17352         not success.
17353         [HAVE_FUTIMENS]: Use the same work-around, here.
17354
17355 2008-06-09  Jim Meyering  <meyering@redhat.com>
17356
17357         add more guards around definition of ACE_-related code
17358         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
17359         ALLOW and ACE_OWNER are also defined.
17360
17361 2008-06-08  Bruno Haible  <bruno@clisp.org>
17362
17363         * lib/acl-internal.h: Add me as co-author.
17364         * lib/file-has-acl.c: Likewise.
17365         * lib/set-mode-acl.c: Likewise.
17366         * lib/copy-acl.c: Likewise.
17367
17368 2008-06-08  Bruno Haible  <bruno@clisp.org>
17369
17370         Add support for AIX ACLs.
17371         * lib/acl-internal.h (acl_nontrivial): New declaration.
17372         * lib/file-has-acl.c (acl_nontrivial): New function.
17373         (file_has_acl): Add implementation using AIX 4 ACL API.
17374         * lib/set-mode-acl.c (qset_acl): Likewise.
17375         * lib/copy-acl.c (qcopy_acl): Likewise.
17376
17377 2008-06-08  Bruno Haible  <bruno@clisp.org>
17378
17379         Add support for HP-UX ACLs.
17380         * lib/acl-internal.h (acl_nontrivial): New declaration.
17381         * lib/file-has-acl.c (acl_nontrivial): New function.
17382         (file_has_acl): Add implementation using HP-UX 11 ACL API.
17383         * lib/set-mode-acl.c (qset_acl): Likewise.
17384         * lib/copy-acl.c (qcopy_acl): Likewise.
17385
17386 2008-06-08  Bruno Haible  <bruno@clisp.org>
17387
17388         Add support for Cygwin ACLs.
17389         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
17390         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
17391         the chmod_or_fchmod call.
17392         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
17393
17394 2008-06-08  Bruno Haible  <bruno@clisp.org>
17395
17396         Fix bug with setuid modes in Solaris 10+ code.
17397         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
17398         succeeded, when the mode contains some special bits.
17399
17400 2008-06-08  Bruno Haible  <bruno@clisp.org>
17401
17402         Add support for Solaris 7..10 ACLs.
17403         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
17404         declarations.
17405         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
17406         functions.
17407         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
17408         * lib/set-mode-acl.c (qset_acl): Likewise.
17409         * lib/copy-acl.c (qcopy_acl): Likewise.
17410
17411 2008-06-08  Bruno Haible  <bruno@clisp.org>
17412
17413         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
17414         declaration.
17415         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
17416         (acl_access_nontrivial): Remove MacOS X case.
17417         (file_has_acl): Use acl_extended_nontrivial.
17418         * lib/copy-acl.c (qcopy_acl): Likewise.
17419
17420 2008-06-08  Bruno Haible  <bruno@clisp.org>
17421
17422         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
17423
17424 2008-06-08  Jim Meyering  <meyering@redhat.com>
17425
17426         * modules/acl (Maintainer): Add Bruno Haible.
17427
17428 2008-06-07  Bruno Haible  <bruno@clisp.org>
17429
17430         Improve support for Tru64 ACLs.
17431         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
17432         ACL on OSF/1.
17433
17434 2008-06-07  Bruno Haible  <bruno@clisp.org>
17435
17436         Add support for MacOS X ACLs.
17437         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
17438         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
17439         * lib/set-mode-acl.c (qset_acl): Likewise.
17440         * lib/copy-acl.c (qcopy_acl): Likewise.
17441
17442 2008-06-07  Bruno Haible  <bruno@clisp.org>
17443
17444         Fix memory leak introduced on 2008-05-22.
17445         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
17446         use.
17447
17448 2008-06-07  Bruno Haible  <bruno@clisp.org>
17449
17450         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
17451         to construct an empty ACL.
17452
17453 2008-06-07  Bruno Haible  <bruno@clisp.org>
17454
17455         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
17456         precisely.
17457         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
17458
17459 2008-06-07  Bruno Haible  <bruno@clisp.org>
17460
17461         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
17462         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
17463
17464 2008-06-07  Bruno Haible  <bruno@clisp.org>
17465
17466         * doc/posix-functions/_setjmp.texi: Explain the use of this function
17467         regardless of POSIX.
17468         * doc/posix-functions/_longjmp.texi: Likewise.
17469         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
17470         SystemV platform in this case.
17471
17472 2008-06-06  Eric Blake  <ebb9@byu.net>
17473
17474         Document abort() bugs.
17475         * doc/posix-functions/abort.texi (abort): Mention anomalies.
17476
17477         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
17478         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
17479         sigsetjmp.
17480         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
17481         siglongjmp, but only as a macro.
17482         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
17483         is obsolete.
17484         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
17485
17486         Tweak documentation to cover cygwin argz bugs.
17487         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
17488         argz bug fix; no code change needed since no cygwin releases
17489         occurred between the last fix and the bug being tested.
17490         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
17491         module and recently fixed cygwin bugs.
17492         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
17493         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
17494         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
17495         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
17496         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
17497         Likewise.
17498         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
17499         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
17500         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
17501         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
17502         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
17503         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
17504         Likewise.
17505
17506         Avoid gcc warning on cygwin.
17507         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
17508         !ACL_NO_TRIVIAL]: Avoid unused variable.
17509
17510 2008-06-05  Eric Blake  <ebb9@byu.net>
17511
17512         Be tolerant of UNKNOWN version in gnulib-tool test dir.
17513         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
17514         git-version-gen fails to come up with a version.
17515         Reported by Simon Josefsson.
17516
17517 2008-06-05  Jim Meyering  <meyering@redhat.com>
17518             Paul Eggert  <eggert@cs.ucla.edu>
17519
17520         utimens.c: work around a probable Linux kernel bug
17521         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
17522         appears to be a kernel bug that causes utimensat to return 280
17523         instead of 0, indicating success.
17524
17525 2008-06-04  Bruno Haible  <bruno@clisp.org>
17526
17527         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
17528         2008-06-01 commit.
17529
17530 2008-06-04  Bruno Haible  <bruno@clisp.org>
17531
17532         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
17533         * lib/file-has-acl.c (acl_access_nontrivial): New function.
17534         (file_has_acl): Use it. Save errno afterwards.
17535         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
17536
17537 2008-06-03  Bruno Haible  <bruno@clisp.org>
17538
17539         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
17540         draft code. Simplify #ifs.
17541         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
17542         Put Solaris code after POSIX-draft code. Fix comments regarding
17543         Solaris 10, HP-UX. Mention Cygwin.
17544         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
17545
17546 2008-06-03  Eric Blake  <ebb9@byu.net>
17547
17548         Provide fallback for older kernels.
17549         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
17550         Provide runtime fallback if kernel lacks support.
17551         Reported by Mike Frysinger.
17552
17553 2008-06-02  Bruno Haible  <bruno@clisp.org>
17554
17555         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
17556         it exists.
17557
17558 2008-06-02  Bruno Haible  <bruno@clisp.org>
17559
17560         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
17561         * lib/copy-acl.c (qcopy_acl): Update comment.
17562
17563 2008-06-02  Bruno Haible  <bruno@clisp.org>
17564
17565         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
17566         like ACL APIs.
17567
17568 2008-06-02  Bruno Haible  <bruno@clisp.org>
17569
17570         * tests/test-file-has-acl.sh: Use different code for Cygwin.
17571         * tests/test-set-mode-acl.sh: Likewise.
17572         * tests/test-copy-acl.sh: Likewise.
17573         * tests/test-copy-file.sh: Likewise.
17574
17575 2008-06-02  Bruno Haible  <bruno@clisp.org>
17576
17577         * tests/test-file-has-acl.sh: Remove unused code.
17578
17579 2008-06-01  Bruno Haible  <bruno@clisp.org>
17580
17581         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
17582         (copy_acl): Just a wrapper around qcopy_acl that emits the error
17583         messages.
17584         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
17585
17586 2008-06-01  Bruno Haible  <bruno@clisp.org>
17587
17588         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
17589         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
17590         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
17591         APIs.
17592         * modules/acl-tests (configure.ac): Remove tests now contained in
17593         m4/acl.m4.
17594
17595 2008-06-02  Jim Meyering  <meyering@redhat.com>
17596
17597         announce-gen: use a better key-server host name
17598         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
17599         it may be more consistently reliable.  Suggested by Werner Koch
17600         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
17601
17602 2008-06-01  Bruno Haible  <bruno@clisp.org>
17603
17604         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
17605         Reported by Voroskoi Andras <voroskoi@gmail.com>.
17606
17607 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
17608
17609         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
17610
17611 2008-06-01  Bruno Haible  <bruno@clisp.org>
17612
17613         New ACL tests.
17614         * tests/test-file-has-acl.sh: New file.
17615         * tests/test-file-has-acl.c: New file.
17616         * tests/test-set-mode-acl.sh: New file.
17617         * tests/test-set-mode-acl.c: New file.
17618         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
17619         * tests/test-copy-acl.c: New file.
17620         * modules/acl-tests: New file, based on modules/copy-file-tests.
17621         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
17622         (Depends-on): Add acl-tests.
17623         (configure.ac): Remove checks.
17624         (Makefile.am): Don't create test-sameacls program here any more.
17625
17626 2008-06-01  Bruno Haible  <bruno@clisp.org>
17627
17628         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
17629         * tests/test-sameacls.c: Include progname.h.
17630         (main): Invoke set_program_name. Portability fixes for MacOS X,
17631         Solaris, HP-UX.
17632
17633 2008-06-01  Bruno Haible  <bruno@clisp.org>
17634
17635         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
17636         function.
17637         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
17638
17639 2008-06-01  Bruno Haible  <bruno@clisp.org>
17640
17641         * modules/rpmatch (Depends-on): Add strdup.
17642
17643 2008-06-01  Bruno Haible  <bruno@clisp.org>
17644
17645         * lib/pipe.c: Include unistd-safer.h.
17646         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
17647         * modules/pipe (Depends-on): Add unistd-safer.
17648
17649 2008-05-30  Simon Josefsson  <simon@josefsson.org>
17650
17651         * modules/autobuild (configure.ac): Call AB_INIT.
17652
17653 2008-05-30  Simon Josefsson  <simon@josefsson.org>
17654
17655         * tests/test-getaddrinfo.c: Don't print debug messages by default.
17656         Suggested by Bruno Haible <bruno@clisp.org>.
17657
17658 2008-05-30  Simon Josefsson  <simon@josefsson.org>
17659
17660         * tests/test-base64.c: Cast size_t to unsigned long when invoking
17661         printf.  Use %lu instead of %d.  Reported by Bruno Haible
17662         <bruno@clisp.org>.
17663
17664 2008-05-29  Eric Blake  <ebb9@byu.net>
17665
17666         Prefer new POSIX 200x interfaces over futimesat.
17667         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
17668         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
17669         when available.
17670         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
17671
17672 2008-05-28  Bruno Haible  <bruno@clisp.org>
17673
17674         * modules/stpcpy (License): Change to LGPLv2+.
17675         Requested by David Lutterkort <dlutter@redhat.com>.
17676
17677 2008-05-27  Bruno Haible  <bruno@clisp.org>
17678
17679         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
17680         current mingw.
17681         Reported by Jose E. Marchesi <jemarch@gnu.org>.
17682
17683 2008-05-27  Bruno Haible  <bruno@clisp.org>
17684
17685         * modules/iconv_open (Link): New section, from module 'iconv'.
17686         * modules/striconv (Link): Likewise.
17687         * modules/striconveh (Link): Likewise.
17688         * modules/xstriconv (Link): Likewise.
17689         * modules/unicodeio (Link): Likewise.
17690         * modules/propername (Link): Likewise.
17691         Reported by Jim Meyering.
17692
17693 2008-05-26  Jim Meyering  <meyering@redhat.com>
17694
17695         sha256: do not artificially restrict buffer length to be < 2^32
17696         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
17697         uint32_t to size_t.
17698         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
17699         to match.
17700
17701         avoid unaligned access errors, e.g., on sparc
17702         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
17703         direct access through a possibly-unaligned uint64* pointer.
17704         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
17705         direct access through a possibly-unaligned uint32* pointer.
17706         Prompted by this patch from Tom "spot" Callaway:
17707         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
17708
17709         sha512.c: fix typo in comment
17710         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
17711
17712 2008-05-25  Bruno Haible  <bruno@clisp.org>
17713
17714         * lib/set-mode-acl.c: Renamed from lib/acl.c.
17715         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
17716         (Makefile.am): Update lib_SOURCES.
17717
17718 2008-05-25  Bruno Haible  <bruno@clisp.org>
17719
17720         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
17721
17722 2008-05-25  Jim Meyering  <meyering@redhat.com>
17723
17724         useless-if-before-free: freed expr may have white-space differences
17725         * build-aux/useless-if-before-free: Recognize cases in which the
17726         freed expression differs from the tested one in embedded white
17727         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
17728         $1 was used, so we can't make any regexp shy.  Improved tests now
17729         detect this.
17730
17731         useless-if-before-free: accept white space in the expression.
17732         * build-aux/useless-if-before-free: For now, any white space
17733         in the expression must be identical in the free argument.
17734
17735         useless-if-before-free: efficiency tweak
17736         * build-aux/useless-if-before-free: Make the expression-matching
17737         regexp "shy".
17738         Make the *outer* regexp shy, not the expr-matching one.
17739
17740         update code-in-comment to accept cast of free arg
17741         * build-aux/useless-if-before-free: Update regexp.
17742
17743 2008-05-25  Bruno Haible  <bruno@clisp.org>
17744
17745         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
17746         * modules/copy-file-tests (Files, Makefile.am): Update.
17747         * tests/test-copy-file.c (func_test_copy): Update.
17748
17749 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
17750
17751         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
17752
17753 2008-05-23  Bruno Haible  <bruno@clisp.org>
17754
17755         Improve support for ACLs on OSF/1.
17756         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
17757         Remove fallback for unknown flavors of ACLs.
17758
17759 2008-05-22  Bruno Haible  <bruno@clisp.org>
17760
17761         Add support for ACLs on OSF/1.
17762         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
17763         replacements.
17764         (acl_free_text): New macro fallback.
17765         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
17766         acl_free.
17767         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
17768         acl_free_text function. Require AC_C_INLINE.
17769
17770 2008-05-22  Bruno Haible  <bruno@clisp.org>
17771
17772         Make copy_acl work on MacOS X 10.5.
17773         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
17774         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
17775         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
17776         If MODE_INSIDE_ACL, don't assume that every system has the same text
17777         representation for ACLs as FreeBSD.
17778         * lib/copy-acl.c (copy_acl): Add support for platforms with
17779         !MODE_INSIDE_ACL.
17780         * lib/file-has-acl.c (file_has_acl): Likewise.
17781         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
17782         FreeBSD, MacOS X, or IRIX, respectively.
17783
17784 2008-05-22  Bruno Haible  <bruno@clisp.org>
17785
17786         * lib/acl.h: Don't include <sys/acl.h>.
17787         (GETACLCNT): Move fallback to lib/acl-internal.h.
17788         * lib/acl-internal.h: Include <sys/acl.h> here.
17789         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
17790
17791 2008-05-22  Bruno Haible  <bruno@clisp.org>
17792
17793         Split off copy_acl function to separate file.
17794         * lib/copy-acl.c: New file, extracted from lib/acl.c.
17795         * lib/acl.c (copy_acl): Moved function to separate file.
17796         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
17797         * modules/acl (Files): Add lib/copy-acl.c.
17798         (Makefiles.am): Augment lib_SOURCES.
17799
17800 2008-05-22  Bruno Haible  <bruno@clisp.org>
17801
17802         * modules/copy-file-tests: New file.
17803         * tests/test-copy-file.sh: New file.
17804         * tests/test-copy-file.c: New file.
17805         * tests/test-copy-file-sameacls.c: New file.
17806
17807 2008-05-22  Eric Blake  <ebb9@byu.net>
17808
17809         Avoid gcc warning.
17810         * tests/test-memcmp.c (main): Pass NULL indirectly.
17811
17812 2008-05-21  Bruno Haible  <bruno@clisp.org>
17813
17814         Add reference doc about ACLs.
17815         * doc/acl-resources.txt: New file.
17816         * doc/acl-cygwin.txt: New file.
17817
17818 2008-05-21  Bruno Haible  <bruno@clisp.org>
17819
17820         Avoid one more warning from gcc.
17821         * lib/vasnprintf.c (IF_LINT): Update comments.
17822         (VASNPRINTF): Use it also for the 'prefix' array initializer.
17823
17824 2008-05-21  Jim Meyering  <meyering@redhat.com>
17825
17826         avoid a warning from gcc
17827         * lib/vasnprintf.c (IF_LINT): Define.
17828         (scale10_round_decimal_long_double):
17829         Use it to avoid a "may be used uninitialized" warning.
17830         (scale10_round_decimal_double): Likewise.
17831
17832 2008-05-21  Simon Josefsson  <simon@josefsson.org>
17833
17834         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
17835         declared.
17836
17837 2008-05-20  Bruno Haible  <bruno@clisp.org>
17838
17839         * tests/test-memcmp.c (main): Test also the sign of the result. Test
17840         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
17841
17842 2008-05-20  Simon Josefsson  <simon@josefsson.org>
17843
17844         * modules/memcmp-tests: New file.
17845         * tests/test-memcmp.c: New file.
17846
17847 2008-05-19  Bruno Haible  <bruno@clisp.org>
17848
17849         * modules/propername (Notice, configure.ac): Put quoted "..." into
17850         --keyword option.
17851         * lib/propername.h: Update comments accordingly.
17852         Reported by Eric Blake.
17853
17854 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
17855
17856         * modules/getpass-gnu (Depends-on): Add fseeko.
17857
17858 2008-05-19  Simon Josefsson  <simon@josefsson.org>
17859
17860         * modules/base64-tests: New file.
17861
17862 2008-05-19  Bo Borgerson <gigabo@gmail.com>
17863
17864         * lib/base64.c (base64_decode_ctx): If a decode context structure
17865         was passed in use it to ignore newlines.  If a context structure
17866         was _not_ passed in, continue to treat newlines as garbage (this
17867         is the historical behavior).  Formerly base64_decode.
17868         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
17869         takes a decode context structure.
17870         * lib/base64.h (base64_decode): Macro for four-argument calls.
17871         (base64_decode_alloc): Likewise.
17872         * lib/base64.c (base64_decode_ctx): If a decode context structure
17873         was passed in use it to ignore newlines.  If a context structure
17874         was _not_ passed in, continue to treat newlines as garbage (this
17875         is the historical behavior).  Formerly base64_decode.
17876         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
17877         takes a decode context structure.
17878         * lib/base64.h (base64_decode): Macro for four-argument calls.
17879         (base64_decode_alloc): Likewise.
17880
17881 2008-05-19  Jim Meyering  <meyering@redhat.com>
17882
17883         avoid a warning from gcc
17884         * lib/trim.c (IF_LINT): Define.
17885         (trim2): Use it to avoid a "may be used uninitialized" warning.
17886
17887         Fix doc typo.
17888         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
17889
17890 2008-05-19  Bruno Haible  <bruno@clisp.org>
17891
17892         * doc/glibc-functions/getpass.texi: Document limits of other
17893         implementations.
17894
17895 2008-05-19  Simon Josefsson  <simon@josefsson.org>
17896             Bruno Haible <bruno@clisp.org>
17897
17898         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
17899
17900 2008-05-18  Bruno Haible  <bruno@clisp.org>
17901
17902         * modules/propername: New file, from GNU gettext.
17903         * lib/propername.h: New file, from GNU gettext.
17904         * lib/propername.c: New file, from GNU gettext.
17905         * MODULES.html.sh (Internationalization functions): Add propername.
17906
17907 2008-05-16  Jim Meyering  <meyering@redhat.com>
17908             Bruno Haible  <bruno@clisp.org>
17909
17910         Avoid some warnings from "gcc -Wshadow".
17911         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
17912
17913 2008-05-15  Eric Blake  <ebb9@byu.net>
17914
17915         Extend previous patch to cygwin 1.7.0.
17916         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
17917         fast implementation in cygwin >= 1.7.0.
17918         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17920
17921 2008-05-15  Bruno Haible  <bruno@clisp.org>
17922
17923         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
17924         implementation in glibc >= 2.9.
17925         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17926         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17927
17928 2008-05-15  Bruno Haible  <bruno@clisp.org>
17929
17930         * MODULES.html.sh (Internationalization functions): Remove linebreak.
17931         (Unicode string functions): Add unilbrk/*.
17932         Reported by Karl Berry.
17933
17934 2008-05-15  Eric Blake  <ebb9@byu.net>
17935
17936         Fix violation of <stdbool.h> replacement in regex.
17937         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
17938         * lib/regexec.c (re_search_internal): Likewise.
17939         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
17940
17941 2008-05-15  Jim Meyering  <meyering@redhat.com>
17942
17943         avoid distracting test output when git or cvs is not found
17944         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
17945         * tests/test-vc-list-files-git.sh: Likewise.
17946
17947 2008-05-15  Eric Blake  <ebb9@byu.net>
17948
17949         Glibc finally accepted the memmem speedup code, bugzilla #5514.
17950         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
17951         glibc version.
17952         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17953         * doc/posix-functions/strstr.texi (strstr): Likewise.
17954         * lib/str-two-way.h (MAX): Sychronize with glibc.
17955
17956 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
17957
17958         * lib/regcomp.c (optimize_utf8): Add a note on why we test
17959         opr.ctx_type.
17960         (calc_first): Initialize constraint field.
17961         (duplicate_node_closure): Use it instead of special casing ANCHORS.
17962         Fix grammar.
17963         (duplicate_node): Merge constraint field for all node types.
17964         (calc_eclosure_iter): Look at constraint field for all node types.
17965         * lib/regex_internal.c (create_cd_newstate): Don't look at
17966         opr.ctx_type.
17967
17968 2008-05-14  Bruno Haible  <bruno@clisp.org>
17969
17970         Help GCC to do better code generation.
17971         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
17972         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17973         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
17974         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
17975         Declare with attribute 'malloc' if supported.
17976
17977 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
17978
17979         use "echo STR|wc -c" rather than unportable "expr length STR"
17980         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
17981         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
17982
17983 2008-05-14  Jim Meyering  <meyering@redhat.com>
17984
17985         use dd ibs=$n count=1 ... rather than less-portable head -c$n
17986         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
17987         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
17988         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
17989         via Collin Lasse.
17990
17991 2008-05-14  Eric Blake  <ebb9@byu.net>
17992
17993         Avoid quadratic growth in gl_LIBSOURCES.
17994         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
17995         Suggested by Bruno Haible.
17996
17997         Test xmemdup0.
17998         * modules/xmemdup0-tests: New file.
17999         * tests/test-xmemdup0.c: Likewise.
18000
18001 2008-05-13  Eric Blake  <ebb9@byu.net>
18002
18003         Split xmemdup0 into its own module.
18004         * modules/xmemdup0: New file.
18005         * lib/xmemdup0.h: Likewise.
18006         * lib/xmemdup0.c: Likewise.
18007         * MODULES.html.sh (Memory management functions): Add xmemdup0.
18008         * lib/xalloc.h (xmemdup0): Remove.
18009         * lib/xmalloc.c (xmemdup0): Likewise.
18010
18011 2008-05-13  Eric Blake  <ebb9@byu.net>
18012             Bruno Haible  <bruno@clisp.org>
18013
18014         Reduce number of forks required during autoconf.
18015         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
18016         and gl_LIBSOURCES_DIR.
18017         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
18018         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
18019         m4_syscmd per file.
18020         <m4_foreach_w>: Move...
18021         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
18022
18023 2008-05-13  Eric Blake  <ebb9@byu.net>
18024
18025         * gnulib-tool: Fix various comment typos.
18026
18027 2008-05-12  Bruno Haible  <bruno@clisp.org>
18028
18029         Tailor the linebreaking algorithm.
18030         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
18031
18032 2008-05-12  Bruno Haible  <bruno@clisp.org>
18033
18034         Update to Unicode 5.0.0.
18035         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18036         LBP_JV, LBP_JT. Redistribute values.
18037         (unilbrk_table): Change size.
18038         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
18039         Unicode TR#14 rev. 22.
18040         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18041         LBP_JV, LBP_JT. Redistribute values.
18042         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
18043         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
18044         Update.
18045         * lib/unilbrk/lbrkprop1.h: Regenerated.
18046         * lib/unilbrk/lbrkprop2.h: Regenerated.
18047         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
18048         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
18049         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
18050         Likewise.
18051         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
18052         Likewise.
18053         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
18054         result.
18055         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18056         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18057         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18058         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
18059         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
18060         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
18061
18062 2008-05-11  Bruno Haible  <bruno@clisp.org>
18063
18064         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
18065
18066 2008-05-11  Bruno Haible  <bruno@clisp.org>
18067
18068         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
18069         * modules/unilbrk/gen-lbrk: New file.
18070
18071 2008-05-11  Bruno Haible  <bruno@clisp.org>
18072
18073         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
18074         * m4/sha512.m4 (gl_SHA512): Likewise.
18075
18076 2008-05-11  Jim Meyering  <meyering@redhat.com>
18077
18078         New modules: crypto/sha256, crypto/sha512 (from coreutils)
18079         * modules/crypto/sha256: New file.
18080         * modules/crypto/sha512: Likewise.
18081         * lib/sha256.c: Likewise.
18082         * lib/sha256.h: Likewise.
18083         * lib/sha512.c: Likewise.
18084         * lib/sha512.h: Likewise.
18085         * lib/u64.h: Likewise.
18086         * m4/sha256.m4: Likewise.
18087         * m4/sha512.m4: Likewise.
18088         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
18089
18090 2008-05-10  Bruno Haible  <bruno@clisp.org>
18091
18092         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
18093         (Input/Output <stdio.h>): Add xprintf.
18094         (Signal handling <signal.h>): Add strsignal.
18095         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
18096         (Core language properties): Add func.
18097         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
18098         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
18099         strings.
18100         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
18101         (Input/output): New section.
18102         (File system functions): Add openat-die, stat-macros.
18103         (Networking functions): Add sockets.
18104         (Unicode string functions): Add unictype/*.
18105         (Support for building libraries and executables): Add gperf.
18106         (Support for building documentation): Add agpl-3.0.
18107         (Misc): Add nocrash.
18108
18109 2008-05-10  Bruno Haible  <bruno@clisp.org>
18110
18111         * modules/unictype/gen-ctype: New file.
18112
18113 2008-05-10  Jim Meyering  <meyering@redhat.com>
18114
18115         Make chdir-safer.c more efficient on a system with no symlinks.
18116         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
18117         also if ELOOP is zero.  Suggested by Bruno Haible.
18118
18119         Make chdir-safer.c slightly safer.
18120         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
18121         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
18122
18123         Avoid compile failure on systems without ELOOP (like mingw).
18124         * lib/chdir-safer.c (ELOOP): Define if not already defined.
18125         Reported by Bruno Haible.
18126
18127 2008-05-10  Bruno Haible  <bruno@clisp.org>
18128
18129         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
18130         (is_utf8_encoding): Use a case-insensitive comparison.
18131         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
18132         streq.
18133
18134 2008-05-10  Bruno Haible  <bruno@clisp.org>
18135
18136         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
18137         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
18138         * lib/unilbrk/ulc-common.h (iconv_string_length,
18139         iconv_string_keeping_offsets): Remove declarations.
18140         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
18141         Don't include <iconv.h>, streq.h, xsize.h.
18142         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
18143         conversion.
18144         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
18145         <iconv.h>, streq.h, xsize.h.
18146         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
18147         conversion.
18148         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
18149         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
18150         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
18151         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
18152
18153 2008-05-10  Bruno Haible  <bruno@clisp.org>
18154
18155         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
18156         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
18157
18158         * modules/unilbrk/u32-width-linebreaks-tests: New file.
18159         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
18160
18161         * modules/unilbrk/u16-width-linebreaks-tests: New file.
18162         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
18163
18164         * modules/unilbrk/u8-width-linebreaks-tests: New file.
18165         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
18166
18167         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
18168         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
18169
18170         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
18171         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
18172
18173         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
18174         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
18175
18176         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
18177         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
18178
18179 2008-05-10  Bruno Haible  <bruno@clisp.org>
18180
18181         Split up 'linebreak' module.
18182         * lib/unilbrk.h: New file, based on lib/linebreak.h.
18183         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
18184         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
18185         modifications.
18186         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
18187         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
18188         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
18189         lib/linebreak.c.
18190         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
18191         lib/linebreak.c.
18192         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
18193         lib/linebreak.c.
18194         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
18195         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
18196         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
18197         lib/linebreak.c.
18198         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
18199         lib/linebreak.c.
18200         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
18201         lib/linebreak.c.
18202         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
18203         lib/linebreak.c.
18204         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
18205         lib/linebreak.c.
18206         * modules/unilbrk/base: New file.
18207         * modules/unilbrk/tables: New file.
18208         * modules/unilbrk/u8-possible-linebreaks: New file.
18209         * modules/unilbrk/u16-possible-linebreaks: New file.
18210         * modules/unilbrk/u32-possible-linebreaks: New file.
18211         * modules/unilbrk/ulc-common: New file.
18212         * modules/unilbrk/ulc-possible-linebreaks: New file.
18213         * modules/unilbrk/u8-width-linebreaks: New file.
18214         * modules/unilbrk/u16-width-linebreaks: New file.
18215         * modules/unilbrk/u32-width-linebreaks: New file.
18216         * modules/unilbrk/ulc-width-linebreaks: New file.
18217         * lib/linebreak.h: Remove file.
18218         * lib/linebreak.c: Remove file.
18219         * m4/linebreak.m4: Remove file.
18220         * modules/linebreak: Remove file.
18221         * NEWS: Mention the changes.
18222
18223 2008-05-09  Eric Blake  <ebb9@byu.net>
18224
18225         Add xmemdup0.
18226         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
18227         implementation.
18228         * lib/xmalloc.c (xmemdup0): New C implementation.
18229
18230 2008-05-08  Bruno Haible  <bruno@clisp.org>
18231
18232         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
18233
18234 2008-05-07  Eric Blake  <ebb9@byu.net>
18235
18236         Support cross-compilation of <wctype.h>.
18237         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
18238         AC_CACHE_CHECK.
18239
18240 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
18241
18242         * build-aux/vc-list-files: Add support for bzr.
18243
18244 2008-05-03  Jim Meyering  <meyering@redhat.com>
18245
18246         avoid failed assertion with tight malloc
18247         * tests/test-getndelim2.c: Correct an off-by-one assertion.
18248
18249 2008-05-03  Simon Josefsson  <simon@josefsson.org>
18250
18251         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
18252         are needed from arpa/inet.h.
18253         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
18254         Reported by Bruno Haible.
18255
18256 2008-05-02  Jim Meyering  <meyering@redhat.com>
18257
18258         avoid compilation error on FreeBSD 6
18259         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
18260
18261 2008-05-01  Jim Meyering  <meyering@redhat.com>
18262
18263         useless-if-before-free: correct --help's exit status description
18264         * build-aux/useless-if-before-free (usage): Like grep, exit 0
18265         for one or more matches, etc.  Reported by Bruno Haible.
18266
18267         vc-list-files: make the stand-alone gnulib test work
18268         * modules/vc-list-files-tests (configure.ac):
18269         Define and AC_SUBST abs_aux_dir.
18270         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
18271         $(abs_top_srcdir) to each script and having each of them
18272         duplicate the work of setting PATH, set PATH here, using
18273         the new variable, abs_aux_dir instead.
18274         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
18275         * tests/test-vc-list-files-git.sh: Likewise.
18276         Reported by Bruno Haible.
18277
18278 2008-05-01  Bruno Haible  <bruno@clisp.org>
18279
18280         * lib/getndelim2.c (getndelim2): Fix newsize computation during
18281         reallocation. Rename 'done' to 'found_delimiter'.
18282
18283 2008-05-01  Jim Meyering  <meyering@redhat.com>
18284
18285         vc-list-files: accommodate /bin/sh like the one from Solaris 10
18286         * build-aux/vc-list-files: Use `...`, not $(...).
18287
18288 2008-04-30  Jim Meyering  <meyering@redhat.com>
18289
18290         add tests for vc-list-files
18291         * modules/vc-list-files-tests: New module.
18292         * tests/test-vc-list-files-cvs.sh: New file.
18293         * tests/test-vc-list-files-git.sh: New file.
18294
18295         avoid a warning from gcc
18296         * lib/getndelim2.c (IF_LINT): Define.
18297         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
18298
18299         vc-list-files: work properly with build-aux/cvsu, too
18300         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
18301         to all cvs-based clauses.
18302
18303         vc-list-files: work properly in the CVS+awk case, too
18304         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
18305
18306         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
18307         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
18308         take more than one file argument, so .  Add quotes, just in case $dir
18309         ever contains a shell meta-character.  Prompted by Soren Hansen in
18310         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
18311
18312 2008-04-29  Eric Blake  <ebb9@byu.net>
18313
18314         Optimize getndelim2 to use block operations when possible.
18315         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
18316         freadseek, and memchr2.
18317         * lib/getndelim2.c (getndelim2): Use them for block reads.
18318
18319 2008-04-29  Bruno Haible  <bruno@clisp.org>
18320
18321         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
18322         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18323         * modules/inet_ntop (Depends-on): Add extensions.
18324         * modules/inet_pton (Depends-on): Likewise.
18325         Reported by Simon Josefsson.
18326
18327 2008-04-29  Jim Meyering  <meyering@redhat.com>
18328
18329         When the is more than one match in a block, match all of them.
18330         * build-aux/useless-if-before-free: Iterate through each block
18331         until there are no more matches.
18332
18333         Fix broken useless-if-before-free script.
18334         * build-aux/useless-if-before-free: Fix typo: missing "?" after
18335         the expression to match cast of argument to free-like function.
18336
18337 2008-04-29  Eric Blake  <ebb9@byu.net>
18338
18339         Use new header.
18340         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
18341
18342 2008-04-29  Jim Meyering  <meyering@redhat.com>
18343
18344         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
18345         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
18346         by gnulib to exist and to declare e.g., inet_ntop.
18347         Don't include "inet_ntop.h", now removed.
18348
18349         * m4/arpa_inet_h.m4: Remove trailing blanks.
18350
18351 2008-04-29  Eric Blake  <ebb9@byu.net>
18352
18353         Silence valgrind on safe reads beyond potential array bounds.
18354         * lib/rawmemchr.valgrind: New file.
18355         * lib/strchrnul.valgrind: Likewise.
18356         * modules/rawmemchr (Files): Distribute new file.
18357         * modules/strchrnul (Files): Likewise.
18358         Suggested by Bruno Haible.
18359
18360 2008-04-29  Bruno Haible  <bruno@clisp.org>
18361
18362         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
18363         (inet_ntop, inet_pton): Change portability warning's wording.
18364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
18365         Invoke gl_CHECK_NEXT_HEADERS.
18366         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
18367         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
18368         set ARPA_INET_H.
18369         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18370         * modules/arpa_inet (Description): No longer only for systems that
18371         lack it.
18372         (Depends-on): Add include_next.
18373         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
18374         HAVE_ARPA_INET_H.
18375
18376 2008-04-29  Jim Meyering  <meyering@redhat.com>
18377
18378         * modules/mkdir (License): Re-license as LGPLv2+.
18379
18380 2008-04-29  Bruno Haible  <bruno@clisp.org>
18381
18382         * modules/rawmemchr (Maintainer): Set to Eric.
18383         * modules/strchrnul (Maintainer): Likewise.
18384
18385 2008-04-29  Simon Josefsson  <simon@josefsson.org>
18386
18387         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
18388         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
18389
18390         * modules/arpa_inet (arpa/inet.h): Use them.
18391
18392 2008-04-28  Eric Blake  <ebb9@byu.net>
18393
18394         Test getndelim2.
18395         * modules/getndelim2-tests: New file.
18396         * tests/test-getndelim2.c: Likewise.
18397         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
18398         stream.
18399         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
18400
18401         * MODULES.html.sh: Document new module.
18402
18403 2008-04-20  Bruno Haible  <bruno@clisp.org>
18404
18405         * lib/c-stack.c (die): Use raise.
18406         * modules/c-stack (Depends-on): Add raise.
18407
18408 2008-04-28  Bruno Haible  <bruno@clisp.org>
18409
18410         Expect rpmatch to be declared.
18411         * lib/yesno.c (rpmatch): Remove declaration.
18412
18413         Declare rpmatch.
18414         * lib/stdlib.in.h (rpmatch): New declaration.
18415         * lib/rpmatch.c: Include <stdlib.h> first.
18416         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
18417         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
18418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
18419         HAVE_RPMATCH.
18420         * modules/rpmatch (Depends-on): Add stdlib, extensions.
18421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18422         (Include): Set to <stdlib.h>.
18423         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
18424         HAVE_RPMATCH.
18425         * NEWS: Document the change.
18426
18427 2008-04-28  Bruno Haible  <bruno@clisp.org>
18428
18429         Change rpmatch to use nl_langinfo when appropriate.
18430         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
18431         (N_): New macro.
18432         (localized_pattern): New function/macro.
18433         (try): Remove match, nomatch arguments. Copy the pattern into safe
18434         memory before caching it.
18435         (rpmatch): Use localized_pattern. Add translator comments.
18436         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
18437         Suggested by Eric Blake.
18438         * modules/rpmatch (Depends-on): Add stdbool.
18439
18440 2008-04-28  Eric Blake  <ebb9@byu.net>
18441
18442         Add rawmemchr module, matching glibc.
18443         * modules/string (Makefile.am): New indicator.
18444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
18445         * lib/string.in.h (rawmemchr): Declare when appropriate.
18446         * modules/rawmemchr: New file.
18447         * m4/rawmemchr.m4: Likewise.
18448         * lib/rawmemchr.c: Likewise.
18449         * modules/rawmemchr-tests: Likewise.
18450         * tests/test-rawmemchr.c: Likewise.
18451         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
18452         module.
18453         * modules/strchrnul (Depends-on): Add rawmemchr.
18454         * lib/strchrnul.c (strchrnul): Optimize a corner case.
18455
18456         Whitespace cleanup.
18457         * tests/test-strchrnul.c: Reindent.
18458         * lib/strchrnul.c: Likewise.
18459
18460         Optimize and test strchrnul.
18461         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
18462         * modules/strchrnul-tests: New file.
18463         * tests/test-strchrnul.c: Likewise.
18464
18465         Remove intprops dependency.
18466         * modules/memchr (Depends-on): Remove intprops.
18467         * modules/memrchr (Depends-on): Likewise.
18468         * modules/memchr2 (Depends-on): Likewise.
18469         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
18470         * lib/memrchr.c (__memrchr): Likewise.
18471         * lib/memrchr2.c (memchr2): Likewise.
18472         Reported by Simon Josefsson.
18473
18474 2008-04-28  Simon Josefsson  <simon@josefsson.org>
18475
18476         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
18477         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18478
18479 2008-04-28  Simon Josefsson  <simon@josefsson.org>
18480
18481         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
18482
18483         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
18484
18485         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
18486
18487         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
18488         declarations.
18489         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
18490
18491         * m4/inet_pton.m4: Don't check for header files.
18492
18493         * m4/inet_ntop.m4: Don't check for header files.
18494
18495 2008-04-28  Simon Josefsson  <simon@josefsson.org>
18496
18497         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
18498         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
18499         trigger for cygwin).
18500         Reported by Bruno Haible  <bruno@clisp.org>.
18501
18502 2008-04-28  Bruno Haible  <bruno@clisp.org>
18503
18504         * doc/posix-functions/strdup.texi: Mention mingw problem.
18505
18506 2008-04-27  Bruno Haible  <bruno@clisp.org>
18507
18508         * modules/stat-time-tests (Depends-on): Add sleep.
18509         * tests/test-stat-time.c (force_unlink): New function.
18510         (cleanup): Use it.
18511         (test_mtime): Remove the ctime related tests.
18512         (test_ctime): New function, containing the ctime related tests.
18513         (main): Call test_ctime, except on native Windows platforms.
18514
18515 2008-04-27  Bruno Haible  <bruno@clisp.org>
18516
18517         * lib/rpmatch.c (rpmatch): Add some comments.
18518         Reported by James Youngman <jay@gnu.org>.
18519
18520 2008-04-27  Bruno Haible  <bruno@clisp.org>
18521
18522         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
18523         quiet NaNs.
18524
18525 2008-04-27  Bruno Haible  <bruno@clisp.org>
18526
18527         Make test-yesno.sh work on mingw.
18528         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
18529         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
18530         (main): Set stdin to binary mode.
18531         * modules/yesno-tests (Depends-on): Add binary-io.
18532
18533 2008-04-27  Bruno Haible  <bruno@clisp.org>
18534
18535         Fix 'isfinite' on x86, x86_64, ia64 platforms.
18536         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
18537         argument that lie outside the IEEE 854 domain.
18538         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
18539         (gl_ISFINITE): Use it.
18540         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
18541
18542 2008-04-27  Bruno Haible  <bruno@clisp.org>
18543
18544         Allow local renaming in config.h.
18545         * lib/memrchr.c (memrchr): Don't undefine outside libc.
18546
18547 2008-04-27  Bruno Haible  <bruno@clisp.org>
18548
18549         * lib/memchr.c (__memchr): Change type of 'i'.
18550         * lib/memchr2.c (memchr2): Likewise.
18551
18552 2008-04-26  Eric Blake  <ebb9@byu.net>
18553         and Bruno Haible  <bruno@clisp.org>
18554
18555         Optimize and test memrchr.
18556         * modules/memrchr (Depends-on): Add intprops.
18557         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
18558         * modules/memrchr-tests: New file.
18559         * tests/test-memrchr.c: New file.
18560
18561 2008-04-26  Bruno Haible  <bruno@clisp.org>
18562
18563         Add tentative support for DragonFly BSD.
18564         * lib/stdio-impl.h: Add macros for DragonFly BSD.
18565         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
18566         fp.
18567         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
18568         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
18569         * lib/fpurge.c (fpurge): Likewise.
18570         * lib/freadable.c (freaadable): Likewise.
18571         * lib/freadahead.c (freadahead): Likewise.
18572         * lib/freading.c (freading): Likewise.
18573         * lib/freadptr.c (freadptr): Likewise.
18574         * lib/freadseek.c (freadptrinc): Likewise.
18575         * lib/fseeko.c (fseeko): Likewise.
18576         * lib/fseterr.c (fseterr): Likewise.
18577         * lib/fwritable.c (fwritable): Likewise.
18578         * lib/fwriting.c (fwriting): Likewise.
18579
18580 2008-04-26  Bruno Haible  <bruno@clisp.org>
18581
18582         * lib/stdio-impl.h: New file.
18583         * lib/fbufmode.c: Include stdio-impl.h.
18584         (fbufmode): Use fp_, remove redundant #defines.
18585         * lib/fflush.c: Include stdio-impl.h.
18586         (clear_ungetc_buffer): Remove redundant #defines.
18587         * lib/fpurge.c: Include stdio-impl.h.
18588         (fpurge): Remove redundant #defines.
18589         * lib/freadable.c: Include stdio-impl.h.
18590         (freadable): Remove redundant #defines.
18591         * lib/freadahead.c: Include stdio-impl.h.
18592         (freadahead): Remove redundant #defines.
18593         * lib/freading.c: Include stdio-impl.h.
18594         (freading): Remove redundant #defines.
18595         * lib/freadptr.c: Include stdio-impl.h.
18596         (freadptr): Remove redundant #defines.
18597         * lib/freadseek.c: Include stdio-impl.h.
18598         (freadptrinc): Remove redundant #defines.
18599         * lib/fseeko.c: Include stdio-impl.h.
18600         (rpl_fseeko): Remove redundant #defines.
18601         * lib/fseterr.c: Include stdio-impl.h.
18602         (fseterr): Remove redundant #defines.
18603         * lib/fwritable.c: Include stdio-impl.h.
18604         (fwritable: Remove redundant #defines.
18605         * lib/fwriting.c: Include stdio-impl.h.
18606         (fwriting): Remove redundant #defines.
18607         * modules/fbufmode (Files): Add lib/stdio-impl.h.
18608         * modules/fflush (Files): Likewise.
18609         * modules/fpurge (Files): Likewise.
18610         * modules/freadable (Files): Likewise.
18611         * modules/freadahead (Files): Likewise.
18612         * modules/freading (Files): Likewise.
18613         * modules/freadptr (Files): Likewise.
18614         * modules/freadseek (Files): Likewise.
18615         * modules/fseeko (Files): Likewise.
18616         * modules/fseterr (Files): Likewise.
18617         * modules/fwritable (Files): Likewise.
18618         * modules/fwriting (Files): Likewise.
18619
18620 2008-04-26  Bruno Haible  <bruno@clisp.org>
18621
18622         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
18623         restore_seek_optimization, update_fpos_cache): New functions, extracted
18624         from rpl_fflush.
18625         (rpl_fflush): Use them.
18626         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
18627         (gl_REPLACE_FFLUSH): Use it.
18628
18629 2008-04-26  Bruno Haible  <bruno@clisp.org>
18630
18631         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
18632         on Solaris.
18633         * tests/test-xstrtoimax.sh: Likewise.
18634         * tests/test-xstrtoumax.sh: Likewise.
18635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18636
18637 2008-04-26  Bruno Haible  <bruno@clisp.org>
18638
18639         * modules/memchr-tests: New file.
18640         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
18641
18642 2008-04-26  Eric Blake  <ebb9@byu.net>
18643             Bruno Haible  <bruno@clisp.org>
18644
18645         * lib/memchr.c: Include intprops.h.
18646         (__memchr): Optimize parallel detection of matching bytes. Rename local
18647         variables. Add explanatory comments.
18648
18649 2008-04-26  Bruno Haible  <bruno@clisp.org>
18650
18651         Fix module 'memchr', broken since 2000-10-28.
18652         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
18653
18654 2008-04-26  Bruno Haible  <bruno@clisp.org>
18655
18656         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
18657         comments.
18658
18659 2008-04-25  Eric Blake  <ebb9@byu.net>
18660
18661         Use native fstatat on cygwin 1.7.0.
18662         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
18663         first.
18664
18665 2008-04-23  Eric Blake  <ebb9@byu.net>
18666
18667         Improve memchr2 performance.
18668         * lib/memchr2.c (memchr2): Further optimize parallel detection of
18669         NUL bytes.
18670         * modules/memchr2 (Depends-on): Use intprops.h.
18671
18672 2008-04-23  Simon Josefsson  <simon@josefsson.org>
18673
18674         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
18675         an inline function instead of a CPP macro.  Patch by Ben Pfaff
18676         <blp@cs.stanford.edu>.
18677
18678 2008-04-23  Simon Josefsson  <simon@josefsson.org>
18679
18680         * lib/arpa_inet.in.h: New file.
18681
18682         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
18683         (Makefile.am): Sed in substitute header file.
18684
18685         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
18686         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
18687
18688         * modules/inet_ntop (configure.ac): Use
18689         gl_ARPA_INET_MODULE_INDICATOR.
18690
18691         * modules/inet_pton (configure.ac): Use
18692         gl_ARPA_INET_MODULE_INDICATOR.
18693
18694 2008-04-22  Jim Meyering  <meyering@redhat.com>
18695
18696         * modules/verify (License): Re-license as LGPLv2+.
18697
18698 2008-04-22  Simon Josefsson  <simon@josefsson.org>
18699
18700         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
18701         parameter to void* as per POSIX standard (MinGW uses char*).
18702
18703 2008-04-21  Bruno Haible  <bruno@clisp.org>
18704
18705         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18706         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
18707         Define to replacements if REPLACE_ISWCNTRL is 1.
18708         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
18709         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
18710         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
18711         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
18712         what it fixes.
18713         * doc/posix-functions/iswalpha.texi: Likewise.
18714         * doc/posix-functions/iswblank.texi: Likewise.
18715         * doc/posix-functions/iswcntrl.texi: Likewise.
18716         * doc/posix-functions/iswdigit.texi: Likewise.
18717         * doc/posix-functions/iswgraph.texi: Likewise.
18718         * doc/posix-functions/iswlower.texi: Likewise.
18719         * doc/posix-functions/iswprint.texi: Likewise.
18720         * doc/posix-functions/iswpunct.texi: Likewise.
18721         * doc/posix-functions/iswspace.texi: Likewise.
18722         * doc/posix-functions/iswupper.texi: Likewise.
18723         * doc/posix-functions/iswxdigit.texi: Likewise.
18724         Reported by Alain Guibert.
18725
18726 2008-04-21  Bruno Haible  <bruno@clisp.org>
18727
18728         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
18729         Patch by Alain Guibert.
18730
18731 2008-04-21  Bruno Haible  <bruno@clisp.org>
18732
18733         Fix test failures on mingw.
18734         * tests/test-xstrtol.c (print_no_progname): New function.
18735         (main): Install it in error_print_progname hook.
18736         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
18737         * tests/test-xstrtoimax.sh: Likewise.
18738         * tests/test-xstrtoumax.sh: Likewise.
18739
18740 2008-04-21  Bruno Haible  <bruno@clisp.org>
18741
18742         Fix test failure on mingw.
18743         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
18744
18745 2008-04-21  Bruno Haible  <bruno@clisp.org>
18746
18747         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
18748         Actually assign a value.
18749
18750 2008-04-20  Bruno Haible  <bruno@clisp.org>
18751
18752         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
18753         take 2.
18754         * lib/canonicalize.c (canonicalize_file_name): Elide if the
18755         'canonicalize-lgpl' module is also used.
18756         * lib/canonicalize-lgpl.c: Undo last change.
18757         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
18758
18759 2008-04-20  Bruno Haible  <bruno@clisp.org>
18760
18761         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
18762         config.h. Provide _mkdir based fallback for mingw.
18763         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
18764         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
18765         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
18766         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
18767         rather than defining mkdir in config.h.
18768         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
18769         (gl_SYS_STAT_H_DEFAULTS): New macro.
18770         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
18771         HAVE_IO_H any more.
18772         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
18773         HAVE_DECL_MKDIR and HAVE_IO_H.
18774
18775 2008-04-20  Bruno Haible  <bruno@clisp.org>
18776
18777         * lib/isapipe.c: Port to native Windows platforms.
18778
18779 2008-04-20  Bruno Haible  <bruno@clisp.org>
18780
18781         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
18782
18783 2008-04-21  Eric Blake  <ebb9@byu.net>
18784
18785         Work around preprocessors that don't handle UINTMAX_MAX.
18786         * lib/memchr2.c (memchr2): Avoid embedded #if.
18787         Reported by Alain Guibert, fix suggested by Bruno Haible.
18788
18789 2008-04-21  Simon Josefsson  <simon@josefsson.org>
18790
18791         * doc/posix-functions/strftime.texi (strftime): Explain better
18792         Windows incompatibility.  Suggested by Micah Cowan
18793         <micah@cowan.name>.
18794
18795 2008-04-20  Bruno Haible  <bruno@clisp.org>
18796
18797         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
18798         unistr/u8-mblen.
18799
18800 2008-04-20  Bruno Haible  <bruno@clisp.org>
18801
18802         Fix test failure on platforms with non-GNU iconv.
18803         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
18804         (U_TO_U8): Use it, rather than u16_to_u8.
18805         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
18806         units at the end of the input string.
18807         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
18808
18809 2008-04-20  Bruno Haible  <bruno@clisp.org>
18810
18811         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
18812         when the resulting length is 0.
18813         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
18814
18815 2008-04-20  Bruno Haible  <bruno@clisp.org>
18816
18817         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
18818         works.
18819         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
18820
18821 2008-04-20  Bruno Haible  <bruno@clisp.org>
18822
18823         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
18824         * modules/tsearch-tests (configure.ac): Test for initstate function.
18825
18826 2008-04-20  Bruno Haible  <bruno@clisp.org>
18827
18828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
18829         for nlink_t if missing.
18830         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
18831
18832 2008-04-19  Bruno Haible  <bruno@clisp.org>
18833
18834         Work around snprintf bug on Linux libc5.
18835         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
18836         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
18837         gl_SNPRINTF_SIZE1.
18838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18839         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
18840         that test failed.
18841         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
18842         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
18843         * modules/snprintf (Files): Add m4/printf.m4.
18844         * modules/vsnprintf (Files): Likewise.
18845         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
18846         * doc/posix-functions/vsnprintf.texi: Likewise.
18847
18848 2008-04-19  Bruno Haible  <bruno@clisp.org>
18849
18850         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
18851         from 0.0058 to less than 10^-7.
18852
18853 2008-04-19  Bruno Haible  <bruno@clisp.org>
18854
18855         Fix rounding when a precision is given.
18856         * lib/vasnprintf.c (is_borderline): New function.
18857         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
18858         9...9x.
18859         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
18860         %e, %g.
18861         * tests/test-vasprintf-posix.c (test_function): Likewise.
18862         * tests/test-snprintf-posix.h (test_function): Likewise.
18863         * tests/test-sprintf-posix.h (test_function): Likewise.
18864         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
18865         * tests/test-printf-posix.h (test_function): Likewise.
18866         * tests/test-printf-posix.output: Update.
18867         Reported by John Darrington <john@darrington.wattle.id.au> via
18868         Ben Pfaff <blp@cs.stanford.edu>.
18869
18870 2008-04-18  Simon Josefsson  <simon@josefsson.org>
18871
18872         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
18873         Suggested by Bruno Haible <bruno@clisp.org>.
18874
18875 2008-04-17  Bruno Haible  <bruno@clisp.org>
18876
18877         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
18878         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
18879         implementation.
18880         Patch by Bruce Merry <bmerry@gmail.com>.
18881
18882 2008-04-17  Simon Josefsson  <simon@josefsson.org>
18883
18884         * doc/posix-functions/strftime.texi (strftime): Mention that %e
18885         doesn't work under Windows.
18886
18887 2008-04-16  Bruno Haible  <bruno@clisp.org>
18888
18889         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
18890         New macros.
18891         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
18892         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
18893         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
18894         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
18895         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
18896         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
18897         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
18898         macros.
18899         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
18900         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
18901         Northern Sotho, Uighur.
18902
18903 2008-04-16  Bruno Haible  <bruno@clisp.org>
18904
18905         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
18906         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
18907         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
18908         Reported by Daniel Bergström <daniel@octocode.com>.
18909
18910 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
18911             Bruno Haible  <bruno@clisp.org>
18912
18913         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
18914         function.
18915         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
18916         New functions, mostly extracted from gl_locale_name_default.
18917         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
18918
18919 2008-04-16  Eric Blake  <ebb9@byu.net>
18920
18921         Adjust strtod detection to catch glibc 2.7 bug.
18922         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
18923         Reported by John Gatewood Ham.
18924
18925 2008-04-16  Bruno Haible  <bruno@clisp.org>
18926
18927         Add tentative support for Linux libc5.
18928         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
18929         * lib/fpurge.c (fpurge): Likewise.
18930         * lib/freadable.c (freadable): Likewise.
18931         * lib/freadahead.c (freadahead): Likewise.
18932         * lib/freading.c (freading): Likewise.
18933         * lib/freadptr.c (freadptr): Likewise.
18934         * lib/freadseek.c (freadptrinc): Likewise.
18935         * lib/fseeko.c (rpl_fseeko): Likewise.
18936         * lib/fseterr.c (fseterr): Likewise.
18937         * lib/fwritable.c (fwritable): Likewise.
18938         * lib/fwriting.c (fwriting): Likewise.
18939         Reported by Alain Guibert <alguibert+bts@free.fr>.
18940
18941 2008-04-15  Bruno Haible  <bruno@clisp.org>
18942
18943         * modules/mathl (configure.ac): Define module indicator.
18944
18945 2008-04-15  Bruno Haible  <bruno@clisp.org>
18946
18947         * lib/logl.c (logl): Remove unused variables.
18948
18949 2008-04-15  Bruno Haible  <bruno@clisp.org>
18950
18951         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
18952         fails.
18953
18954 2008-04-15  Bruno Haible  <bruno@clisp.org>
18955
18956         * lib/trim.c (trim2): Fix argument of isspace() macro.
18957
18958 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
18959
18960         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
18961         to 0.
18962         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
18963
18964 2008-04-14  Bruno Haible  <bruno@clisp.org>
18965
18966         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
18967         AC_LANG_PROGRAM argument.
18968         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
18969         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
18970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18971         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18972         * m4/math_h.m4 (gl_MATH_H): Likewise.
18973         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18974         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18975         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18976         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18977         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18978         * m4/regex.m4 (gl_REGEX): Likewise.
18979         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
18980         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
18981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18982         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
18983         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
18984         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18987
18988 2008-04-14  Jim Meyering  <meyering@redhat.com>
18989
18990         test-strtod: fix typos: s/abs/fabs/
18991         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
18992
18993 2008-04-13  Bruno Haible  <bruno@clisp.org>
18994
18995         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
18996         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
18997         module is also used and while not building the reloc-wrapper.
18998
18999 2008-04-13  Bruno Haible  <bruno@clisp.org>
19000
19001         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
19002
19003 2008-04-13  Bruno Haible  <bruno@clisp.org>
19004
19005         Fix AIX compilation failure introduced on 2008-04-02.
19006         * tests/test-frexp.c (exp): Undefine before redefining.
19007         * tests/test-frexpl.c (exp): Likewise.
19008
19009 2008-04-13  Bruno Haible  <bruno@clisp.org>
19010
19011         Work around a HP-UX stdio bug.
19012         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
19013         * tests/test-ftello.c (main): Likewise.
19014         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
19015         * doc/posix-functions/ftello.texi: Likewise.
19016
19017 2008-04-13  Bruno Haible  <bruno@clisp.org>
19018
19019         Make test-signbit pass on HP-UX/hppa.
19020         * tests/test-signbit.c (minus_zerol): New variable.
19021         (test_signbitl): Use it.
19022
19023 2008-04-13  Bruno Haible  <bruno@clisp.org>
19024
19025         Make truncl work on OSF/1 4.0.
19026         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
19027         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19028         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
19030         HAVE_DECL_TRUNCL.
19031         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
19032         HAVE_DECL_TRUNCL.
19033         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
19034
19035 2008-04-13  Bruno Haible  <bruno@clisp.org>
19036
19037         * lib/unictype.h: Remove trailing comma from enumeration definitions.
19038
19039 2008-04-13  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
19042         expression, so as to avoid HP-UX 11 cc compiler bug.
19043
19044 2008-04-13  Bruno Haible  <bruno@clisp.org>
19045
19046         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
19047
19048 2008-04-13  Bruno Haible  <bruno@clisp.org>
19049
19050         * lib/git-merge-changelog.c: Remove empty declaration outside of
19051         functions.
19052
19053 2008-04-13  Bruno Haible  <bruno@clisp.org>
19054
19055         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
19056
19057 2008-04-13  Bruno Haible  <bruno@clisp.org>
19058
19059         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
19060         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
19061         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
19062         also if it exists but lacks definitions of the SHUT_* macros.
19063         * modules/sys_socket (Description): Update.
19064         Reported by Elbert Pol <e.pol@chello.nl>.
19065
19066 2008-04-13  Bruno Haible  <bruno@clisp.org>
19067
19068         * lib/localcharset.c (OS2): Don't redefine if already defined.
19069         Reported by Elbert Pol <e.pol@chello.nl>.
19070
19071 2008-04-13  Bruno Haible  <bruno@clisp.org>
19072
19073         * lib/binary-io.h [__EMX__]: Include <io.h>.
19074         Reported by Elbert Pol <e.pol@chello.nl>.
19075
19076 2008-04-12  Bruno Haible  <bruno@clisp.org>
19077
19078         * lib/fpucw.h: Enable the definitions also for x86_64.
19079         Needed for NetBSD/x86_64.
19080         Reported by Thomas Klausner <tk@giga.or.at>.
19081
19082 2008-04-12  Bruno Haible  <bruno@clisp.org>
19083
19084         * tests/test-strtod.c: Include isnand.h.
19085         (main): Use isnand instead of isnan.
19086         Reported by Jim Meyering.
19087
19088 2008-04-12  Bruno Haible  <bruno@clisp.org>
19089
19090         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
19091         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19092
19093 2008-04-12  Jim Meyering  <meyering@redhat.com>
19094
19095         * m4/math_h.m4 (gl_MATH_H): Fix typos.
19096
19097 2008-04-12  Bruno Haible  <bruno@clisp.org>
19098
19099         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
19100         Reported by Elbert Pol <e.pol@chello.nl>.
19101
19102 2008-04-12  Eric Blake  <ebb9@byu.net>
19103
19104         Work around Solaris 10 math.h bug.
19105         * m4/math_h.m4 (gl_MATH_H): Check for bug.
19106         (gl_MATH_H_DEFAULTS): Set up default.
19107         * modules/math (Makefile.am): Replace new indicators.
19108         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
19109         * tests/test-math.c (main): Test this.
19110         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
19111         * doc/posix-headers/math.texi (math.h): Mention bug.
19112         Reported by Nelson H. F. Beebe and Jim Meyering.
19113
19114 2008-04-11  Bruno Haible  <bruno@clisp.org>
19115
19116         Adapt to future versions of Apple GCC.
19117         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
19118         Reported by Peter O'Gorman <peter@pogma.com>.
19119
19120 2008-04-11  Bruno Haible  <bruno@clisp.org>
19121
19122         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
19123
19124 2008-04-11  Bruno Haible  <bruno@clisp.org>
19125
19126         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
19127
19128         * modules/getaddrinfo-tests (Makefile.am): Define
19129         test_getaddrinfo_LDADD.
19130
19131 2008-04-11  Bruno Haible  <bruno@clisp.org>
19132
19133         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
19134         (init): Fix syntax error.
19135         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
19136         is declared.
19137
19138 2008-04-11  Bruno Haible  <bruno@clisp.org>
19139
19140         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
19141         * modules/glob (Depends-on): Add stdbool.
19142
19143 2008-04-11  Bruno Haible  <bruno@clisp.org>
19144
19145         * lib/trim.c: Include <string.h>.
19146
19147 2008-04-11  Eric Blake  <ebb9@byu.net>
19148
19149         Avoid compile failure on OS/2.
19150         * lib/regex_internal.h (internal_function): Disable optimization
19151         on OS/2 (__EMX__), where it caused compiler error.
19152         Reported by Elbert Pol.
19153
19154 2008-04-11  Bruno Haible  <bruno@clisp.org>
19155
19156         Flush the standard error stream before aborting. Needed on mingw.
19157         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
19158         * tests/test-array_list.c (ASSERT): Likewise.
19159         * tests/test-array_oset.c (ASSERT): Likewise.
19160         * tests/test-avltree_list.c (ASSERT): Likewise.
19161         * tests/test-avltree_oset.c (ASSERT): Likewise.
19162         * tests/test-avltreehash_list.c (ASSERT): Likewise.
19163         * tests/test-binary-io.c (ASSERT): Likewise.
19164         * tests/test-byteswap.c (ASSERT): Likewise.
19165         * tests/test-c-ctype.c (ASSERT): Likewise.
19166         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
19167         * tests/test-c-strcasestr.c (ASSERT): Likewise.
19168         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
19169         * tests/test-c-strstr.c (ASSERT): Likewise.
19170         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
19171         * tests/test-canonicalize.c (ASSERT): Likewise.
19172         * tests/test-carray_list.c (ASSERT): Likewise.
19173         * tests/test-ceilf1.c (ASSERT): Likewise.
19174         * tests/test-ceilf2.c (ASSERT): Likewise.
19175         * tests/test-ceill.c (ASSERT): Likewise.
19176         * tests/test-count-one-bits.c (ASSERT): Likewise.
19177         * tests/test-fbufmode.c (ASSERT): Likewise.
19178         * tests/test-fflush2.c (ASSERT): Likewise.
19179         * tests/test-floorf1.c (ASSERT): Likewise.
19180         * tests/test-floorf2.c (ASSERT): Likewise.
19181         * tests/test-floorl.c (ASSERT): Likewise.
19182         * tests/test-fopen.c (ASSERT): Likewise.
19183         * tests/test-fpending.c (ASSERT): Likewise.
19184         * tests/test-fprintf-posix.c (ASSERT): Likewise.
19185         * tests/test-fpurge.c (ASSERT): Likewise.
19186         * tests/test-freadable.c (ASSERT): Likewise.
19187         * tests/test-freadahead.c (ASSERT): Likewise.
19188         * tests/test-freading.c (ASSERT): Likewise.
19189         * tests/test-freadptr.c (ASSERT): Likewise.
19190         * tests/test-freadptr2.c (ASSERT): Likewise.
19191         * tests/test-freadseek.c (ASSERT): Likewise.
19192         * tests/test-freopen.c (ASSERT): Likewise.
19193         * tests/test-frexp.c (ASSERT): Likewise.
19194         * tests/test-frexpl.c (ASSERT): Likewise.
19195         * tests/test-fseek.c (ASSERT): Likewise.
19196         * tests/test-fseeko.c (ASSERT): Likewise.
19197         * tests/test-fstrcmp.c (ASSERT): Likewise.
19198         * tests/test-ftell.c (ASSERT): Likewise.
19199         * tests/test-ftello.c (ASSERT): Likewise.
19200         * tests/test-func.c (ASSERT): Likewise.
19201         * tests/test-fwritable.c (ASSERT): Likewise.
19202         * tests/test-fwriting.c (ASSERT): Likewise.
19203         * tests/test-getdelim.c (ASSERT): Likewise.
19204         * tests/test-getline.c (ASSERT): Likewise.
19205         * tests/test-i-ring.c (ASSERT): Likewise.
19206         * tests/test-iconv-utf.c (ASSERT): Likewise.
19207         * tests/test-iconv.c (ASSERT): Likewise.
19208         * tests/test-isfinite.c (ASSERT): Likewise.
19209         * tests/test-isnand.c (ASSERT): Likewise.
19210         * tests/test-isnanf.c (ASSERT): Likewise.
19211         * tests/test-isnanl.h (ASSERT): Likewise.
19212         * tests/test-ldexpl.c (ASSERT): Likewise.
19213         * tests/test-linked_list.c (ASSERT): Likewise.
19214         * tests/test-linkedhash_list.c (ASSERT): Likewise.
19215         * tests/test-localename.c (ASSERT): Likewise.
19216         * tests/test-lseek.c (ASSERT): Likewise.
19217         * tests/test-mbscasecmp.c (ASSERT): Likewise.
19218         * tests/test-mbscasestr1.c (ASSERT): Likewise.
19219         * tests/test-mbscasestr2.c (ASSERT): Likewise.
19220         * tests/test-mbscasestr3.c (ASSERT): Likewise.
19221         * tests/test-mbscasestr4.c (ASSERT): Likewise.
19222         * tests/test-mbschr.c (ASSERT): Likewise.
19223         * tests/test-mbscspn.c (ASSERT): Likewise.
19224         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
19225         * tests/test-mbspbrk.c (ASSERT): Likewise.
19226         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
19227         * tests/test-mbsrchr.c (ASSERT): Likewise.
19228         * tests/test-mbsspn.c (ASSERT): Likewise.
19229         * tests/test-mbsstr1.c (ASSERT): Likewise.
19230         * tests/test-mbsstr2.c (ASSERT): Likewise.
19231         * tests/test-mbsstr3.c (ASSERT): Likewise.
19232         * tests/test-memchr2.c (ASSERT): Likewise.
19233         * tests/test-memmem.c (ASSERT): Likewise.
19234         * tests/test-open.c (ASSERT): Likewise.
19235         * tests/test-printf-frexp.c (ASSERT): Likewise.
19236         * tests/test-printf-frexpl.c (ASSERT): Likewise.
19237         * tests/test-printf-posix.c (ASSERT): Likewise.
19238         * tests/test-quotearg.c (ASSERT): Likewise.
19239         * tests/test-rbtree_list.c (ASSERT): Likewise.
19240         * tests/test-rbtree_oset.c (ASSERT): Likewise.
19241         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
19242         * tests/test-round1.c (ASSERT): Likewise.
19243         * tests/test-roundf1.c (ASSERT): Likewise.
19244         * tests/test-roundl.c (ASSERT): Likewise.
19245         * tests/test-signbit.c (ASSERT): Likewise.
19246         * tests/test-sleep.c (ASSERT): Likewise.
19247         * tests/test-snprintf-posix.c (ASSERT): Likewise.
19248         * tests/test-snprintf.c (ASSERT): Likewise.
19249         * tests/test-sprintf-posix.c (ASSERT): Likewise.
19250         * tests/test-stat-time.c (ASSERT): Likewise.
19251         * tests/test-strcasestr.c (ASSERT): Likewise.
19252         * tests/test-strerror.c (ASSERT): Likewise.
19253         * tests/test-striconv.c (ASSERT): Likewise.
19254         * tests/test-striconveh.c (ASSERT): Likewise.
19255         * tests/test-striconveha.c (ASSERT): Likewise.
19256         * tests/test-strsignal.c (ASSERT): Likewise.
19257         * tests/test-strstr.c (ASSERT): Likewise.
19258         * tests/test-strtod.c (ASSERT): Likewise.
19259         * tests/test-trunc1.c (ASSERT): Likewise.
19260         * tests/test-trunc2.c (ASSERT): Likewise.
19261         * tests/test-truncf1.c (ASSERT): Likewise.
19262         * tests/test-truncf2.c (ASSERT): Likewise.
19263         * tests/test-truncl.c (ASSERT): Likewise.
19264         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
19265         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
19266         * tests/test-vasnprintf.c (ASSERT): Likewise.
19267         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
19268         * tests/test-vasprintf.c (ASSERT): Likewise.
19269         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
19270         * tests/test-vprintf-posix.c (ASSERT): Likewise.
19271         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
19272         * tests/test-vsnprintf.c (ASSERT): Likewise.
19273         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
19274         * tests/test-wcwidth.c (ASSERT): Likewise.
19275         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
19276         * tests/test-xprintf-posix.c (ASSERT): Likewise.
19277         * tests/test-xvasprintf.c (ASSERT): Likewise.
19278         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
19279         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
19280         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
19281         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
19282         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
19283         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
19284         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
19285         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
19286         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
19287         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
19288         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
19289         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
19290         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
19291         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
19292         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
19293         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
19294         * tests/unictype/test-block_list.c (ASSERT): Likewise.
19295         * tests/unictype/test-block_of.c (ASSERT): Likewise.
19296         * tests/unictype/test-block_test.c (ASSERT): Likewise.
19297         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
19298         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
19299         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
19300         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
19301         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
19302         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
19303         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
19304         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
19305         * tests/unictype/test-combining.c (ASSERT): Likewise.
19306         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
19307         * tests/unictype/test-digit.c (ASSERT): Likewise.
19308         * tests/unictype/test-mirror.c (ASSERT): Likewise.
19309         * tests/unictype/test-numeric.c (ASSERT): Likewise.
19310         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
19311         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
19312         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
19313         * tests/unictype/test-scripts.c (ASSERT): Likewise.
19314         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
19315         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
19316         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
19317         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
19318         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
19319         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
19320         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
19321         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
19322         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
19323         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
19324         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
19325         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
19326         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
19327         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
19328         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
19329         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
19330         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
19331         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
19332         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
19333         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
19334         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
19335         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
19336         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
19337         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
19338         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
19339         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
19340         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
19341         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
19342         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
19343         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
19344         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
19345         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
19346         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
19347         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
19348         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
19349         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
19350         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
19351         Reported by Eric Blake.
19352
19353 2008-04-11  Bruno Haible  <bruno@clisp.org>
19354
19355         * lib/wchar.in.h: Tweak comment.
19356
19357 2008-04-11  Bruno Haible  <bruno@clisp.org>
19358
19359         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
19360         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
19361         gl_COMMON.
19362         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
19363
19364 2008-04-11  Bruno Haible  <bruno@clisp.org>
19365
19366         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
19367
19368 2008-04-11  Simon Josefsson  <simon@josefsson.org>
19369
19370         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
19371         of attempting to use non-existing /dev/*random.  Based on patch
19372         from Adam Strzelecki <ono@java.pl> in
19373         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
19374
19375 2008-04-08  Bruno Haible  <bruno@clisp.org>
19376
19377         Add tentative support for emx+gcc.
19378         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
19379         * lib/fpurge.c (fpurge): Likewise.
19380         * lib/freadable.c (freadable): Likewise.
19381         * lib/freadahead.c (freadahead): Likewise.
19382         * lib/freading.c (freading): Likewise.
19383         * lib/freadptr.c (freadptr): Likewise.
19384         * lib/freadseek.c (freadptrinc): Likewise.
19385         * lib/fseeko.c (rpl_fseeko): Likewise.
19386         * lib/fseterr.c (fseterr): Likewise.
19387         * lib/fwritable.c (fwritable): Likewise.
19388         * lib/fwriting.c (fwriting): Likewise.
19389         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
19390
19391 2008-04-09  Eric Blake  <ebb9@byu.net>
19392
19393         Avoid some autoconf warnings.
19394         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
19395         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
19396         * m4/afs.m4 (gl_AFS): Likewise.
19397         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
19398         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
19399         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19400         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
19401         (gl_INTEGER_TYPE_SUFFIX): Likewise.
19402         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
19403         (AC_CHECK_DECLS_ONCE): Likewise.
19404         Rename file...
19405         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
19406         gnulib-tool requires autoconf 2.59 or better.
19407         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
19408
19409 2008-04-08  Eric Blake  <ebb9@byu.net>
19410
19411         Use 'git describe --match' if present (added in git 1.5.5).
19412         * build-aux/git-version-gen: Limit result to tags that match 'v*'
19413         if possible.
19414
19415 2008-04-08  Bruno Haible  <bruno@clisp.org>
19416
19417         Add tentative support for OpenServer.
19418         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
19419         _ptr, _cnt.
19420         * lib/fpurge.c (fpurge): Likewise.
19421         * lib/freadable.c (freadable): Likewise.
19422         * lib/freadahead.c (freadahead): Likewise.
19423         * lib/freading.c (freading): Likewise.
19424         * lib/freadptr.c (freadptr): Likewise.
19425         * lib/freadseek.c (freadptrinc): Likewise.
19426         * lib/fseeko.c (rpl_fseeko): Likewise.
19427         * lib/fseterr.c (fseterr): Likewise.
19428         * lib/fwritable.c (fwritable): Likewise.
19429         * lib/fwriting.c (fwriting): Likewise.
19430         Reported by Roger Cornelius <rac@tenzing.org> and
19431         Brian K. White <brian@aljex.com>.
19432
19433 2008-04-06  Jim Meyering  <meyering@redhat.com>
19434
19435         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
19436
19437 2008-04-06  Bruno Haible  <bruno@clisp.org>
19438
19439         Avoid possible error with non-ASCII bytes in UTF-8 locales.
19440         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
19441         * tests/test-printf-posix.sh: Likewise.
19442         * tests/test-vfprintf-posix.sh: Likewise.
19443         * tests/test-vprintf-posix.sh: Likewise.
19444         * tests/test-xprintf-posix.sh: Likewise.
19445
19446 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19447
19448         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
19449         hide error from 'ls', needed on OS/2.
19450         Report by Elbert Pol <elbert.pol@gmail.com>.
19451
19452 2008-04-04  Eric Blake  <ebb9@byu.net>
19453
19454         Make test-fseeko.c failures meaningful.
19455         * tests/test-fseeko.c: Print line number on failure.
19456         * tests/test-fseek.c: Likewise.
19457         Reported by Nelson H. F. Beebe.
19458
19459         Improve strtod bug detection check.
19460         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
19461         required for Solaris 10.
19462         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
19463
19464 2008-04-04  Bruno Haible  <bruno@clisp.org>
19465
19466         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
19467         by m4/setenv.m4.
19468
19469 2008-04-03  Eric Blake  <ebb9@byu.net>
19470
19471         Ensure sane .version contents.
19472         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
19473         version string.
19474         * build-aux/git-version-gen: Improve documentation.
19475
19476         Make GNU make output nicer.
19477         * top/GNUmakefile [!_have-Makefile]: Add dependency on
19478         MAKECMDGOALS to enforce message for all command line targets.  Set
19479         srcdir for use in maint.mk.
19480
19481         Another maintainer tweak.
19482         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
19483         a target that regenerates version.
19484
19485 2008-04-03  Jim Meyering  <meyering@redhat.com>
19486
19487         vc-list-files: don't cause coreutils "make po-check" failure
19488         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
19489
19490 2008-04-03  Eric Blake  <ebb9@byu.net>
19491
19492         Allow VPATH usage of vc-list-files.
19493         * build-aux/vc-list-files (scriptversion): Add timestamp.
19494         (options): Add --help, --version, -C.
19495         (CVS): Support installed cvsu.
19496
19497 2008-04-02  Bruno Haible  <bruno@clisp.org>
19498
19499         Avoid some "statement with no effect" warnings from gcc.
19500         * tests/test-wctype.c (main): Explicitly ignore unused values.
19501         Reported by Jim Meyering.
19502
19503 2008-04-02  Jim Meyering  <meyering@redhat.com>
19504
19505         Avoid some warnings from "gcc -Wshadow".
19506         * tests/test-frexp.c (exp): Define to a different identifier.
19507         * tests/test-frexpl.c (exp): Likewise.
19508
19509 2008-04-03  Jim Meyering  <meyering@redhat.com>
19510
19511         bootstrap: remove dangling *.[ch] symlinks from lib
19512         * build-aux/bootstrap [dangling symlink removal]: Move find's
19513         -depth option to precede all others, to avoid a warning.
19514         Remove *.[ch] files too, and from "$source_base" (usually lib/).
19515
19516 2008-04-02  Bruno Haible  <bruno@clisp.org>
19517
19518         Avoid some warnings from "gcc -Wshadow".
19519         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
19520         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
19521         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
19522         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
19523         Reported by Jim Meyering.
19524
19525 2008-04-01  Bruno Haible  <bruno@clisp.org>
19526
19527         Fix test to work on IRIX 6.5 with cc.
19528         * tests/test-math.c (numeric_equal): New function.
19529         (main): Use it.
19530
19531 2008-04-01  Bruno Haible  <bruno@clisp.org>
19532
19533         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
19534
19535 2008-04-01  Bruno Haible  <bruno@clisp.org>
19536
19537         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
19538         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19539         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
19540         (Depends-on): Remove math.
19541
19542         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
19543         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19544         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
19545         (Depends-on): Remove math.
19546
19547         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
19548         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19549         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
19550         (Depends-on): Remove math.
19551         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
19552         (Depends-on): Remove math.
19553
19554         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
19555         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19556         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
19557         (Depends-on): Remove math.
19558         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
19559         (Depends-on): Remove math.
19560
19561         * tests/test-round1.c: Include nan.h.
19562         (main): Use NaNd instead of NAN.
19563         * modules/round-tests (Files): Add tests/nan.h.
19564
19565         * tests/test-trunc1.c: Include nan.h.
19566         (main): Use NaNd instead of NAN.
19567         * modules/trunc-tests (Files): Add tests/nan.h.
19568
19569         * tests/test-roundf1.c: Include nan.h.
19570         (main): Use NaNf instead of NAN.
19571         * modules/roundf-tests (Files): Add tests/nan.h.
19572
19573         * tests/test-truncf1.c: Include nan.h.
19574         (main): Use NaNf instead of NAN.
19575         * modules/truncf-tests (Files): Add tests/nan.h.
19576
19577         * tests/test-ceilf1.c: Include nan.h.
19578         (main): Use NaNf instead of NAN.
19579         * modules/ceilf-tests (Files): Add tests/nan.h.
19580
19581         * tests/test-floorf1.c: Include nan.h.
19582         (main): Use NaNf instead of NAN.
19583         * modules/floorf-tests (Files): Add tests/nan.h.
19584
19585         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
19586         (main): Use NaNf instead of NAN.
19587         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
19588
19589         * tests/test-isnand.c: Include nan.h instead of <math.h>.
19590         (main): Use NaNd instead of NAN.
19591         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
19592
19593         * tests/test-frexp.c: Include nan.h.
19594         (main): Use NaNd instead of NAN.
19595         * modules/frexp-tests (Files): Add tests/nan.h.
19596
19597         * lib/isnan.c: Don't include <math.h>.
19598         (FUNC): Don't use NAN macro.
19599         * modules/isnand-nolibm (Depends-on): Remove math.
19600         * modules/isnanf-nolibm (Depends-on): Remove math.
19601         * modules/isnanl (Depends-on): Remove math.
19602         * modules/isnanl-nolibm (Depends-on): Remove math.
19603
19604         * tests/nan.h: New file.
19605
19606 2008-04-01  Eric Blake  <ebb9@byu.net>
19607
19608         Fix typos.
19609         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
19610         values to be the right type.
19611
19612         For now, cater to gnulib strtod inaccuracies.
19613         * tests/test-strtod.c (main): Allow 1-ulp error on expected
19614         fractional results.  While not as nice from a QoI perspective, it
19615         is a quicker patch than correctly implementing decimal to binary
19616         rounding.
19617
19618 2008-03-31  Eric Blake  <ebb9@byu.net>
19619
19620         Guarantee a definition of NAN.
19621         * lib/math.in.h (NAN): Define if missing.
19622         * tests/test-math.c (main): Test it.
19623         * doc/posix-headers/math.texi (math.h): Document this.
19624         * lib/isnan.c (rpl_isnand): Use it.
19625         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
19626         * tests/test-floorf1.c (NaN): Likewise.
19627         * tests/test-frexp.c (NaN): Likewise.
19628         * tests/test-isnand.c (NaN): Likewise.
19629         * tests/test-isnanf.c (NaN): Likewise.
19630         * tests/test-round1.c (NaN): Likewise.
19631         * tests/test-roundf1.c (NaN): Likewise.
19632         * tests/test-snprintf-posix.h (NaN): Likewise.
19633         * tests/test-sprintf-posix.h (NaN): Likewise.
19634         * tests/test-trunc1.c (NaN): Likewise.
19635         * tests/test-truncf1.c (NaN): Likewise.
19636         * tests/test-vasnprintf-posix.c (NaN): Likewise.
19637         * tests/test-vasprintf-posix.c (NaN): Likewise.
19638         * modules/isnand-nolibm (Depends-on): Add math.
19639         * modules/isnanf-nolibm (Depends-on): Likewise.
19640         * modules/isnanl (Depends-on): Likewise.
19641         * modules/isnanl-nolibm (Depends-on): Likewise.
19642         * modules/snprintf-posix-tests (Depends-on): Likewise.
19643         * modules/sprintf-posix-tests (Depends-on): Likewise.
19644         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
19645         * modules/vsprintf-posix-tests (Depends-on): Likewise.
19646         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
19647         * modules/vasprintf-posix-tests (Depends-on): Likewise.
19648
19649 2008-03-31  Bruno Haible  <bruno@clisp.org>
19650
19651         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
19652         * doc/posix-functions/strtod.texi: Likewise.
19653
19654 2008-03-31  Bruno Haible  <bruno@clisp.org>
19655
19656         * tests/test-strtod.c (main): Don't use C99 syntax.
19657
19658 2008-03-31  Bruno Haible  <bruno@clisp.org>
19659
19660         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
19661         Reported by Eric Blake.
19662
19663 2008-03-31  Jim Meyering  <meyering@redhat.com>
19664
19665         Don't compare actual signbit return values.
19666         * tests/test-strtod.c (main): Rather, compare only their
19667         zero/non-zero nature.
19668
19669 2008-03-31  Eric Blake  <ebb9@byu.net>
19670
19671         More strtod documentation.
19672         * doc/posix-functions/strtod.texi (strtod): Interpret more test
19673         failures as distinct bugs.
19674
19675 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19676
19677         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
19678         Problem reported by Erik Benada in
19679         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
19680
19681 2008-03-30  Bruno Haible  <bruno@clisp.org>
19682
19683         * tests/test-strtod.c: Add comments about which assertion fails on which
19684         platform.
19685         * doc/posix-functions/strtod.texi: Add info about many more platforms.
19686
19687 2008-03-30  Eric Blake  <ebb9@byu.net>
19688
19689         Test signbit behavior on zeros.
19690         * tests/test-signbit.c (test_signbitf): Add tests for zero.
19691         (test_signbitd, test_signbitl): Likewise.
19692
19693         More strtod touchups.
19694         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
19695         sign of negative underflow, for now.  Use .5, not .1.
19696         * doc/posix-functions/strtod.texi (strtod): Mention these
19697         limitations.
19698         Reported by Jim Meyering.
19699
19700 2008-03-30  Bruno Haible  <bruno@clisp.org>
19701
19702         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
19703         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
19704
19705 2008-03-30  Bruno Haible  <bruno@clisp.org>
19706
19707         Avoid failure when attempting to return empty iconv results on some
19708         platforms.
19709         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
19710         allocation, don't report ENOMEM when the resulting string is empty.
19711
19712 2008-03-30  Bruno Haible  <bruno@clisp.org>
19713
19714         Fix buffer overrun.
19715         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
19716         Don't consider the width for tmp_length. Check count against tmp_length
19717         before doing the padding. Ensure enough allocation during padding.
19718
19719 2008-03-30  Eric Blake  <ebb9@byu.net>
19720
19721         strtod touchups.
19722         * lib/strtod.c (strtod): Avoid compiler warnings.
19723         Reported by Jim Meyering.
19724
19725 2008-03-30  Bruno Haible  <bruno@clisp.org>
19726
19727         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
19728         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
19729         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
19730         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
19731         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
19732         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
19733         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
19734         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
19735
19736         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
19737         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
19738         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
19739         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
19740         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
19741         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
19742         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
19743         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
19744
19745         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
19746         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
19747         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
19748         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
19749         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
19750         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
19751         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
19752         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
19753
19754         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
19755         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
19756
19757         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
19758         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
19759
19760         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
19761         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
19762
19763         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
19764         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
19765         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
19766
19767         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
19768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
19769         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
19770
19771         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
19772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
19773         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
19774
19775         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
19776         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
19777         * modules/vasprintf (Depends-on): Add EOVERFLOW.
19778
19779         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
19780         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
19781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
19782         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
19783         (Depends-on): Add EOVERFLOW.
19784         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
19785         (Depends-on): Add EOVERFLOW.
19786         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
19787         (Depends-on): Add EOVERFLOW.
19788         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
19789         (Depends-on): Add EOVERFLOW.
19790         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
19791         (Depends-on): Add EOVERFLOW.
19792         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
19793         (Depends-on): Add EOVERFLOW.
19794         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
19795         (Depends-on): Add EOVERFLOW.
19796         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
19797         (Depends-on): Add EOVERFLOW.
19798
19799         * lib/sprintf.c (EOVERFLOW): Remove fallback.
19800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
19801         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
19802
19803         * lib/snprintf.c (EOVERFLOW): Remove fallback.
19804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
19805         * modules/snprintf (Depends-on): Add EOVERFLOW.
19806
19807         * lib/poll.c (EOVERFLOW): Remove fallback.
19808         * modules/poll (Depends-on): Add EOVERFLOW.
19809
19810         * lib/getugroups.c (EOVERFLOW): Remove fallback.
19811         * modules/getugroups (Depends-on): Add EOVERFLOW.
19812
19813         * lib/getdelim.c (EOVERFLOW): Remove fallback.
19814         * modules/getdelim (Depends-on): Add EOVERFLOW.
19815
19816         * lib/ftell.c (EOVERFLOW): Remove fallback.
19817         * modules/ftell (Depends-on): Add EOVERFLOW.
19818
19819         * lib/fprintf.c (EOVERFLOW): Remove fallback.
19820         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
19821         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
19822
19823         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
19824
19825         * modules/EOVERFLOW-tests: New file.
19826         * tests/test-EOVERFLOW.c: New file.
19827
19828         * modules/EOVERFLOW: New file.
19829         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
19830
19831 2008-03-30  Bruno Haible  <bruno@clisp.org>
19832
19833         Fix bug introduced on 2007-06-10.
19834         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
19835         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
19836
19837 2008-03-30  Bruno Haible  <bruno@clisp.org>
19838
19839         Improve freadseek's efficiency after ungetc.
19840         * lib/freadseek.c: Include freadahead.h.
19841         (freadptrinc): New function, extracted from freadseek.
19842         (freadseek): Use it in a loop. Use freadahead to determine the number
19843         of loop iterations.
19844         * modules/freadseek (Depends-on): Add freadahead.
19845         (configure.ac): Require AC_C_INLINE.
19846
19847 2008-03-30  Bruno Haible  <bruno@clisp.org>
19848
19849         * lib/freadseek.c (freadseek): Don't ignore the return value of
19850         freadptr.
19851
19852 2008-03-29  Eric Blake  <ebb9@byu.net>
19853
19854         Add hex float support.
19855         * modules/strtod (Depends-on): Add c-ctype.
19856         (Link): Mention POW_LIB.
19857         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
19858         whitespace between 'e' and exponent.
19859         * tests/test-strtod.c (main): Enable hex float tests.
19860         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
19861         now provides.
19862
19863         Document various strtod bugs, with some fixes.
19864         * doc/posix-functions/strtod.texi (strtod): Document bugs with
19865         "-0x", "inf", "nan", and hex constants.
19866         * doc/posix-functions/atof.texi (atof): Likewise.
19867         * modules/stdlib (Makefile.am): Support strtod.
19868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
19869         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
19870         detect additional strtod bugs.
19871         * lib/stdlib.in.h (rpl_strtod): Add declarations.
19872         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
19873         bool where appropriate.  Parse 'inf' and 'nan'.
19874         * tests/test-strtod.c: New file.
19875         * modules/strtod (Depends-on): Add stdbool, stdlib.
19876         (configure.ac): Turn on module indicator.
19877         * modules/strtod-tests: New module.
19878
19879 2008-03-29  Eric Blake  <ebb9@byu.net>
19880
19881         Fix ftell on mingw.
19882         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
19883         * modules/ftell-tests (Depends-on): Add binary-io.
19884         * modules/ftello-tests (Depends-on): Likewise.
19885         * tests/test-ftell.c (main): Enhance test to cover behavior after
19886         ungetc.  Enforce binary mode.
19887         * tests/test-ftello.c (main): Likewise.
19888
19889         Pass test-freadseek on cygwin.
19890         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
19891         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
19892         ungetc buffer.
19893
19894         * tests/test-fflush2.c (main): Fix typo.
19895
19896 2008-03-29  Bruno Haible  <bruno@clisp.org>
19897
19898         * tests/test-fflush2.c (main): Temporarily disable the contents of
19899         this test.
19900         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
19901         Reported by Eric Blake.
19902
19903 2008-03-28  Simon Josefsson  <simon@josefsson.org>
19904
19905         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
19906         (GC_SHA224_DIGEST_SIZE): Add.
19907
19908         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
19909         (gc_hash_digest_length): Likewise.
19910         (gc_hash_buffer): Likewise.
19911
19912 2008-03-25  Bruno Haible  <bruno@clisp.org>
19913
19914         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
19915         detail which gettext release to use.
19916         Reported by Simon Josefsson.
19917
19918 2008-03-26  Jim Meyering  <meyering@redhat.com>
19919
19920         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
19921         * modules/gnumakefile (clean-GNUmakefile): Also, use
19922         test ... && ... || : syntax rather than if-then ... fi.
19923
19924         gnumakefile: Don't double-quote-expand $(VPATH) value.
19925         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
19926
19927 2008-03-24  Eric Blake  <ebb9@byu.net>
19928
19929         Alter GNUmakefile to install into top directory.
19930         * modules/maintainer-makefile: Split, and add dependency...
19931         * modules/gnumakefile: to this new module.
19932         * build-aux/GNUmakefile: Move...
19933         * top/GNUmakefile: ...here.
19934         * build-aux/maint.mk: Move...
19935         * top/maint.mk: ...here.
19936         * MODULES.html.sh (Support for maintaining...): Document new
19937         module.
19938
19939 2008-03-23  Bruno Haible  <bruno@clisp.org>
19940
19941         * gnulib-tool: New options --vc-files, --no-vc-files.
19942         (func_usage): Document them.
19943         (vc_files): New variable.
19944         (func_import): Consider vc_files.
19945         (func_create_testdir): Set vc_files to empty.
19946         Suggested by Jim Meyering and Karl Berry.
19947
19948 2008-03-23  Bruno Haible  <bruno@clisp.org>
19949
19950         Fix regex compilation error on HP-UX 11.
19951         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
19952         * modules/regex (Files): Add m4/mbstate_t.m4.
19953         Reported by Ton Voon <ton.voon@altinity.com>.
19954
19955 2008-03-23  Bruno Haible  <bruno@clisp.org>
19956
19957         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
19958
19959 2008-03-23  Eric Blake  <ebb9@byu.net>
19960             Bruno Haible  <bruno@clisp.org>
19961
19962         Install files from top/ in the destination directory.
19963         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
19964         augmentation also for the files from top/.
19965         (func_import, func_create_testdir): Rewrite file names:
19966         top/filename -> filename.
19967
19968 2008-03-23  Bruno Haible  <bruno@clisp.org>
19969
19970         Tweak "gnulib --version" output.
19971         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
19972
19973 2008-03-23  Bruno Haible  <bruno@clisp.org>
19974
19975         Tweak "gnulib --version" output.
19976         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
19977         rather than contents of ChangeLog, when possible.
19978
19979 2008-03-21  Eric Blake  <ebb9@byu.net>
19980
19981         More --version tweaks.
19982         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
19983         date of last ChangeLog entry.
19984
19985 2008-03-21  Jim Meyering  <meyering@redhat.com>
19986
19987         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
19988
19989 2008-03-20  Eric Blake  <ebb9@byu.net>
19990
19991         VPATH fix.
19992         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
19993
19994 2008-03-20  Simon Josefsson  <simon@josefsson.org>
19995
19996         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
19997         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
19998
19999 2008-03-20  Eric Blake  <ebb9@byu.net>
20000
20001         Sync GNUmakefile with coreutils.
20002         * build-aux/GNUmakefile (have-Makefile): Rename...
20003         (_have-Makefile): ...to this, for namespace consideration.
20004         (GNUmakefile.cfg): Include, if present.
20005         (_autoreconf): Define a default.
20006         (_is-dist-target): New rule for rebuilds to pick up intra-release
20007         version.
20008         (maint-cfg.mk): Rename...
20009         (cfg.mk): ...to this.
20010
20011 2008-03-18  Jim Meyering  <meyering@redhat.com>
20012
20013         New script and module: mktempd
20014         * MODULES.html.sh (maint+release support): Add mktempd.
20015         * build-aux/mktempd: New file.
20016         * modules/mktempd: New file.
20017
20018 2008-03-15  Jim Meyering  <meyering@redhat.com>
20019
20020         Undo last change.
20021         * lib/sha1.c, lib/md5.c: 63 != ~63.
20022         Reported by Andreas Schwab.
20023
20024         sha1.c, md5.c: Hoist a redundant expression.
20025         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
20026         "ctx->buflen" only once, before calling *_process_block.
20027         * lib/md5.c (md5_process_bytes): Likewise.
20028
20029 2008-03-14  Eric Blake  <ebb9@byu.net>
20030
20031         Bump copyright year in files generated by gnulib-tool.
20032         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
20033         gnulib-tool, rather than hard-coding it.
20034
20035         Fix 'gnulib-tool --version' output to work with git.
20036         * gnulib-tool (func_gnulib_dir): New function, extracted from...
20037         (startup): ...here.
20038         (func_version): Use it to invoke git-version-gen, rather than
20039         relying on CVS keyword expansion.  Modernize wording.
20040         (cvsdatestamp, last_checkin_date, version): Kill unused
20041         variables.
20042
20043 2008-03-12  Jim Meyering  <meyering@redhat.com>
20044
20045         Recognize optional cast of the argument to free.
20046         * build-aux/useless-if-before-free: Update regexps.
20047
20048         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
20049
20050 2008-03-11  Bruno Haible  <bruno@clisp.org>
20051
20052         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
20053         by a single package.
20054         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
20055         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
20056         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
20057         Reported by Sam Steingold <sds@gnu.org>.
20058
20059 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20060
20061         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
20062         repositories.
20063
20064 2008-03-11  Bruno Haible  <bruno@clisp.org>
20065
20066         Avoid conflicts between local macro definitions.
20067         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20068         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
20069
20070 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
20071             Bruno Haible  <bruno@clisp.org>
20072
20073         Make va_copy work with some version of xlc on AIX 5.1.
20074         * lib/stdarg.in.h: New file.
20075         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
20076         On AIX, use a <stdarg.h> file substitute.
20077         * modules/stdarg (Files): Add lib/stdarg.in.h.
20078         (Depends-on): Add include_next.
20079         (Makefile.am): Build a stdarg.h substitute if requested.
20080         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
20081
20082 2008-03-10  Bruno Haible  <bruno@clisp.org>
20083
20084         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
20085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20086         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20087
20088 2008-03-10  Bruno Haible  <bruno@clisp.org>
20089
20090         * modules/stdlib (Depends-on): Add include_next, remove
20091         absolute-header.
20092
20093 2008-03-09  Bruno Haible  <bruno@clisp.org>
20094
20095         * lib/freadahead.h (freadahead): Document more precisely.
20096         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
20097         the sum of both buffer sizes.
20098         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
20099         * NEWS: Document the change.
20100
20101 2008-03-09  Bruno Haible  <bruno@clisp.org>
20102
20103         Extend freadptr to return also the buffer size.
20104         * lib/freadptr.h (freadptr): Add sizep argument.
20105         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
20106         (freadptr): Add sizep argument. Determine buffer size like freadahead
20107         does.
20108         * tests/test-freadptr.c: Don't include freadahead.h.
20109         (main): Adapt for new calling convention of freadptr.
20110         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
20111         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
20112         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
20113         tests/test-freadptr2.sh.
20114         (Depends): Remove freadahead.
20115         (TESTS): Add test-freadptr2.sh.
20116         (check_PROGRAMS): Add test-freadptr2.
20117
20118 2008-03-09  Bruno Haible  <bruno@clisp.org>
20119
20120         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
20121         Report and solution by Simon Josefsson.
20122
20123 2008-03-06  Bruno Haible  <bruno@clisp.org>
20124
20125         Make fflush after ungetc work on BSD platforms.
20126         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
20127         * tests/test-fflush2.c: New file.
20128         * tests/test-fflush2.sh: New file.
20129         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
20130         tests/test-fflush2.c.
20131         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
20132         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
20133
20134 2008-03-06  Eric Blake  <ebb9@byu.net>
20135
20136         Likewise for ftello.
20137         * modules/ftello (Dependencies): Add extensions.
20138         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
20139
20140 2008-03-06  Bruno Haible  <bruno@clisp.org>
20141
20142         * modules/fseeko (Dependencies): Add extensions.
20143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
20144         Needed on glibc systems.
20145
20146 2008-03-06  Bruno Haible  <bruno@clisp.org>
20147
20148         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
20149         email address.
20150         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20151
20152 2008-03-06  Bruno Haible  <bruno@clisp.org>
20153
20154         * users.txt: Add libgnupdf.
20155
20156 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20157
20158         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
20159         (Header File Substitutes, Function Substitutes,
20160         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
20161         (Build robot for gnulib): Fix typo.
20162
20163 2008-03-06  Bruno Haible  <bruno@clisp.org>
20164
20165         * doc/gnulib-tool.texi (VCS Issues): Small updates.
20166         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20167
20168 2008-03-06  Bruno Haible  <bruno@clisp.org>
20169
20170         * doc/func.texi: New file, extracted from doc/gnulib.texi.
20171         * doc/gnulib.texi: Include it.
20172
20173 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20174
20175         * modules/func (License): Change license to unlimited; there was
20176         no LGPL parts in the module anyway.
20177
20178 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20179
20180         * modules/__func__: Renamed to modules/func.
20181         * modules/__func__-tests: Renamed to modules/func-tests.
20182         * tests/test-__func__.c: Renamed to tests/test-func.c.
20183         * m4/__func__.m4: Renamed to m4/func.m4.
20184         * doc/gnulib.texi (__func__): Section renamed to func.
20185         Suggested by Eric Blake <ebb9@byu.net>.
20186
20187 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20188
20189         * doc/gnulib.texi (__func__): Use C99 terminology when talking
20190         about __func__.  Make example self-contained.  Suggested by Eric
20191         Blake <ebb9@byu.net>.
20192
20193         * tests/test-__func__.c (main): Avoid extraneous () around __func.
20194         Suggested by Eric Blake <ebb9@byu.net>.
20195
20196 2008-03-06  Simon Josefsson  <simon@josefsson.org>
20197
20198         * modules/__func__: New file.
20199         * modules/__func__-tests: New file.
20200         * tests/test-__func__.c: New file.
20201         * m4/__func__.m4: New file.
20202         * doc/gnulib.texi (__func__): Document __func__ module.
20203
20204 2008-03-05  Simon Josefsson  <simon@josefsson.org>
20205
20206         * modules/byteswap (License): Re-license as LGPLv2+.
20207
20208 2008-03-05  Simon Josefsson  <simon@josefsson.org>
20209
20210         * doc/Makefile: Add pdf target.
20211
20212 2008-03-05  Simon Josefsson  <simon@josefsson.org>
20213
20214         * modules/inline (License): Use 'unlimited', since there are only
20215         *.m4 files in this module.
20216
20217 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
20218             Bruno Haible  <bruno@clisp.org>
20219
20220         Add support for HP C 7.1 on OpenVMS 8.3.
20221         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
20222
20223 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
20224
20225         Update VMS specifics.
20226         * lib/getopt.c [VMS]: Remove include of unixlib.h.
20227
20228 2008-03-02  Jim Meyering  <meyering@redhat.com>
20229
20230         Remove the last dependency on the "free" module.
20231         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
20232         Reported by Bob Proulx.
20233
20234         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
20235
20236         Remove useless "if" tests before free.  Deprecate "free" module.
20237         * doc/posix-functions/free.texi: Mention that this
20238         module is no longer useful.
20239         * modules/free (Notice): Say this module is obsolete.
20240         * modules/readutmp (Depends-on): Remove free.
20241         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
20242         * lib/putenv.c (putenv): Likewise.
20243         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
20244         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
20245         * tests/test-c-strcasestr.c (main): Likewise.
20246         * tests/test-c-strstr.c (main): Likewise.
20247         * tests/test-mbscasestr1.c (main): Likewise.
20248         * tests/test-mbscasestr2.c (main): Likewise.
20249         * tests/test-mbsstr1.c (main): Likewise.
20250         * tests/test-mbsstr2.c (main): Likewise.
20251         * tests/test-memmem.c (main): Likewise.
20252         * tests/test-strcasestr.c (main): Likewise.
20253         * tests/test-striconv.c (main): Likewise.
20254         * tests/test-striconveh.c (main): Likewise.
20255         * tests/test-striconveha.c (main): Likewise.
20256         * tests/test-strstr.c (main): Likewise.
20257
20258         * build-aux/git-version-gen: Adjust a comment and the Usage string.
20259
20260         bootstrap: sync from coreutils again
20261         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
20262
20263 2008-03-01  Jim Meyering  <meyering@redhat.com>
20264
20265         bootstrap: sync from coreutils
20266         * build-aux/bootstrap (update_po_files): Copy a .po file into place
20267         also when the target doesn't exist.
20268
20269 2008-03-01  Eric Blake  <ebb9@byu.net>
20270
20271         Fix bugs in last patch.
20272         * lib/memchr2.c (memchr2): Fix typo.
20273         * tests/test-memchr2.c: Test previous bug, and don't use GNU
20274         extension.
20275         Reported by Bruce Korb.
20276
20277         New module 'memchr2'.
20278         * modules/memchr2: New file.
20279         * modules/memchr2-tests: Likewise.
20280         * lib/memchr2.h: Likewise.
20281         * lib/memchr2.c: Likewise, based on memchr.c.
20282         * tests/test-memchr2.c: New test.
20283         * MODULES.html.sh (String handling): Add memchr2.
20284
20285 2008-02-29  Bruno Haible  <bruno@clisp.org>
20286
20287         * modules/freadseek-tests: New file.
20288         * tests/test-freadseek.sh: New file.
20289         * tests/test-freadseek.c: New file.
20290
20291         New module 'freadseek'.
20292         * modules/freadseek: New file.
20293         * lib/freadseek.h: New file.
20294         * lib/freadseek.c: New file.
20295         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
20296
20297 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20298
20299         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
20300         wydawca.
20301
20302         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
20303         program_invocation_name and program_invocation_short_name are
20304         present.
20305
20306 2008-02-28  Bruno Haible  <bruno@clisp.org>
20307
20308         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
20309         * tests/test-freadptr.sh: Also test non-seekable stdin.
20310
20311 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
20312
20313         * build-aux/bootstrap (source_base, m4_base)
20314         (doc_base, tests_base): New variables.
20315         (gnulib_tool_options): Do not hardcode base directories, use
20316         the above variables instead.
20317
20318 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
20319
20320         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
20321
20322 2008-02-28  Bruno Haible  <bruno@clisp.org>
20323
20324         * modules/freadptr-tests: New file.
20325         * tests/test-freadptr.sh: New file.
20326         * tests/test-freadptr.c: New file.
20327
20328         New module 'freadptr'.
20329         * modules/freadptr: New file.
20330         * lib/freadptr.h: New file.
20331         * lib/freadptr.c: New file.
20332         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
20333
20334 2008-02-26  Karl Berry  <karl@freefriends.org>
20335
20336         Sync from Libtool:
20337         * libltdl/argz.c (argz_add, argz_count): New functions.
20338         * libltdl/argz.in.h: Declare them.
20339         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
20340
20341 2008-02-22  Bruno Haible  <bruno@clisp.org>
20342
20343         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
20344         is a pointer type.  Needed for HP-UX 10.
20345         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
20346         * doc/posix-functions/gmtime_r.texi: Likewise.
20347         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20348
20349 2008-02-24  Bruno Haible  <bruno@clisp.org>
20350
20351         * modules/environ-tests: New file.
20352         * tests/test-environ.c: New file.
20353
20354         New module 'environ'.
20355         * modules/environ: New file.
20356         * lib/unistd.in.h (environ): New declaration.
20357         * m4/environ.m4: New file.
20358         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
20359         after use.
20360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
20361         HAVE_DECL_ENVIRON.
20362         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
20363         HAVE_DECL_ENVIRON.
20364         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
20365         wrong claim that 'environ' is missing on some systems.
20366         * modules/execute (Depends-on): Add environ.
20367         * lib/execute.c (environ): Remove fallback declaration.
20368         * modules/pipe (Depends-on): Add environ.
20369         * lib/pipe.c (environ): Remove fallback declaration.
20370         * modules/setenv (Depends-on): Add environ.
20371         * lib/setenv.c (environ): Remove fallback declaration.
20372         * modules/unsetenv (Depends-on): Add environ.
20373         * lib/unsetenv.c (environ): Remove fallback declaration.
20374         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
20375         m4/environ.m4.
20376         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
20377         (gl_PREREQ_UNSETENV): Likewise.
20378
20379 2008-02-24  Bruno Haible  <bruno@clisp.org>
20380
20381         * doc/posix-functions/environ.texi: Document the MacOS X problem.
20382
20383 2008-02-20  Bob Proulx  <bob@proulx.com>
20384
20385         Enable use of older two part flavor 'git describe'.
20386         * build-aux/git-version-gen: If using the older two part flavor of
20387         git version then recreate the third part now present in the
20388         newer three part flavor of git describe.
20389
20390 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
20391
20392         * lib/fts.c (fts_build): Typo correction to comment.
20393
20394 2008-02-17  Bruno Haible  <bruno@clisp.org>
20395
20396         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
20397         generating no-op conflicts.
20398
20399 2008-02-17  Bruno Haible  <bruno@clisp.org>
20400
20401         Speed up by 10%.
20402         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
20403         result_entries, rather than an index-based loop.
20404
20405 2008-02-17  Bruno Haible  <bruno@clisp.org>
20406
20407         Speed up by 25%.
20408         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
20409         'hashcode_cached'.
20410         (entry_create): New function.
20411         (entry_hashcode): Use the cached hashcode if possible.
20412         (read_changelog_file, try_split_merged_entry): Use entry_create.
20413
20414 2008-02-17  Bruno Haible  <bruno@clisp.org>
20415
20416         Speed up from O(n^2) to O(n) for long ChangeLog files.
20417         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
20418         (read_changelog_file): Change implementation of entries_reversed list
20419         to rbtreehash.
20420         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
20421
20422 2008-02-17  Bruno Haible  <bruno@clisp.org>
20423
20424         New option --split-merged-entry.
20425         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
20426         (find_paragraph_end, try_split_merged_entry): New functions.
20427         (long_options): Add option --split-merged-entry.
20428         (usage): Document option --split-merged-entry.
20429         (main): Implement option --split-merged-entry.
20430         Reported by Eric Blake.
20431
20432 2008-02-17  Bruno Haible  <bruno@clisp.org>
20433
20434         * lib/git-merge-changelog.c: Include c-strstr.h.
20435         (main): Support the "git pull --rebase" situation.
20436         * modules/git-merge-changelog (Depends-on): Add c-strstr.
20437         Reported by Eric Blake.
20438
20439 2008-02-16  Eric Blake  <ebb9@byu.net>
20440
20441         Avoid doubling \ in common case of "c-maybe" quoting style.
20442         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
20443         eliding outer quotes.
20444         * lib/quotearg.h: Document this.
20445         * tests/test-quotearg.c (result_strings, inputs, results_g)
20446         (flag_results, locale_results): Test it by adding a new string to
20447         each test group.
20448         (compare_strings): Test new string.
20449
20450 2008-02-13  Eric Blake  <ebb9@byu.net>
20451
20452         Avoid trigraph quoting in default output.
20453         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
20454         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
20455         unless explicitly requested.
20456         * tests/test-quotearg.c (flag_results, main): Add additional tests.
20457
20458 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
20459
20460         Don't rely on signed integer overflowing to negative value.
20461         * lib/getugroups.c (getugroups): Include <limits.h>.
20462         Instead, compare against INT_MAX, and increment only if the test passes.
20463
20464 2008-02-13  Jim Meyering  <meyering@redhat.com>
20465         and Eric Blake  <ebb9@byu.net>
20466
20467         Avoid shadowing warning and compile errors on Linux.
20468         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
20469         forwarding macros on Linux.
20470         (dcgettext): Define a stub, for Linux.
20471         (results_g, main): Avoid warnings.
20472
20473 2008-02-12  Eric Blake  <ebb9@byu.net>
20474
20475         Silence warning in last patch.
20476         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
20477
20478         Quotearg part 4: add tests, fix c-maybe colon quoting.
20479         * lib/quotearg.h: Improve documentation.
20480         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
20481         escapes when adding outer quotes.  When quoting trigraphs, use
20482         valid C notation.  When quoting NUL, omit extra characters if next
20483         character is not digit.  Alter prototype.
20484         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
20485         callers.
20486         * modules/quotearg-tests: New module.
20487         * tests/test-quotearg.c: New test.
20488
20489 2008-02-07  Eric Blake  <ebb9@byu.net>
20490
20491         Quotearg part 3: add flag to control outer quote elision.
20492         * lib/quotearg.h (c_maybe_quoting_style): New style.
20493         (enum quoting_flags): Better documentation of flags.
20494         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
20495         c-maybe style.
20496         (quotearg_buffer_restyled): Handle new flag to elide outer
20497         quotes.
20498
20499         Quotearg part 2: add flag that can control NUL elision.
20500         * lib/quotearg.h (set_quoting_flags): New prototype.
20501         * lib/quotearg.c (struct quoting_options): Add flag field.
20502         (set_quoting_flags): New function.
20503         (quotearg_buffer_restyled): Add flags parameter.
20504         (quotearg_alloc_mem): Set the flag if length cannot be returned.
20505         (quotearg_n_options): Set the flag, since length cannot be
20506         returned.
20507         (quoting_options_from_style): Default flags correctly.
20508
20509         Quotearg part 1: more wrappers, restore quotearg_char state.
20510         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
20511         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
20512         (quotearg_colon_mem): New wrappers.
20513         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
20514         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
20515         functions.
20516         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
20517         (quotearg_colon_mem): New functions.
20518
20519 2008-02-11  Bruno Haible  <bruno@clisp.org>
20520
20521         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
20522         library in the current directory: it does not work with parallel make.
20523         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20524
20525 2008-02-11  Bruno Haible  <bruno@clisp.org>
20526
20527         * .gitattributes: New file.
20528
20529 2008-02-11  Jim Meyering  <meyering@redhat.com>
20530
20531         useless-if-before-free: Fix reversed exit values.
20532         * build-aux/useless-if-before-free: Use correct values
20533         for EXIT_MATCH and EXIT_NO_MATCH.
20534
20535         * build-aux/useless-if-before-free: Close stdout carefully.
20536
20537 2008-02-10  Bruno Haible  <bruno@clisp.org>
20538
20539         New module 'git-merge-changelog'.
20540         * modules/git-merge-changelog: New file.
20541         * lib/git-merge-changelog.c: New file.
20542
20543 2008-02-10  Jim Meyering  <meyering@redhat.com>
20544
20545         useless-if-before-free: New option: --list (-l).
20546
20547         useless-if-before-free: Don't exit immediately upon open failure.
20548         * build-aux/useless-if-before-free: Exit 2 for errors.
20549         Upon failure to open a file, don't exit immediately.
20550         Rather, just warn and continue with any remaining files.
20551
20552 2008-02-10  Bruno Haible  <bruno@clisp.org>
20553
20554         New abstract list operation 'node_set_value'.
20555         * lib/gl_list.h (gl_list_node_set_value): New function.
20556         (struct gl_list_implementation): New field node_set_value.
20557         * lib/gl_list.c (gl_list_node_set_value): New function.
20558         * lib/gl_array_list.c (gl_array_node_set_value): New function.
20559         (gl_array_list_implementation): Update.
20560         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
20561         (gl_carray_list_implementation): Update.
20562         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
20563         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20564         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20565         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
20566         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20567         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20568         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20569         Update.
20570         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20571         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
20572         (gl_sublist_list_implementation): Update.
20573
20574 2008-02-10  Bruno Haible  <bruno@clisp.org>
20575
20576         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
20577         Needed when ELEMENT is #defined to 'some_type *'.
20578
20579 2008-02-10  Jim Meyering  <meyering@redhat.com>
20580
20581         New script and module: useless-if-before-free
20582         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
20583         * build-aux/useless-if-before-free: New file.
20584         * modules/useless-if-before-free: New file.
20585
20586         * build-aux/gitlog-to-changelog: Use committer date, not author date.
20587
20588         xstrtol_error: Fix typo.
20589         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
20590         s/exit_failure/exit_status/.
20591
20592 2008-02-09  Jim Meyering  <meyering@redhat.com>
20593
20594         New script and module: gitlog-to-changelog
20595         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
20596         * modules/gitlog-to-changelog: New file.
20597         * build-aux/gitlog-to-changelog: New file.
20598
20599 2008-02-08  Jim Meyering  <meyering@redhat.com>
20600
20601         Avoid two "parameter unused" warnings.
20602         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20603         Mark "st" as used.
20604
20605         Use "git COMMAND", not "git-COMMAND".
20606         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
20607         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
20608         * build-aux/git-version-gen: Use "git status", not "git-status".
20609
20610 2008-02-07  Bruno Haible  <bruno@clisp.org>
20611
20612         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
20613         Avoids a crash on Windows Vista.
20614         Reported by Adam Strzelecki <ono@java.pl> via
20615         Simon Josefsson <simon@josefsson.org>.
20616
20617 2008-02-06  Bruno Haible  <bruno@clisp.org>
20618
20619         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
20620         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
20621         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
20622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
20623         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20624         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20625         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
20626         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
20627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20631         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20634         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
20635         left-adjust flag.
20636         * tests/test-snprintf-posix.h (test_function): Likewise.
20637         * tests/test-sprintf-posix.h (test_function): Likewise.
20638         * tests/test-vasprintf-posix.c (test_function): Likewise.
20639         * doc/posix-functions/fprintf.texi: Update.
20640         * doc/posix-functions/printf.texi: Update.
20641         * doc/posix-functions/snprintf.texi: Update.
20642         * doc/posix-functions/sprintf.texi: Update.
20643         * doc/posix-functions/vfprintf.texi: Update.
20644         * doc/posix-functions/vprintf.texi: Update.
20645         * doc/posix-functions/vsnprintf.texi: Update.
20646         * doc/posix-functions/vsprintf.texi: Update.
20647         Reported by Peter Fales <psfales@alcatel-lucent.com>.
20648
20649 2008-02-06  Bruno Haible  <bruno@clisp.org>
20650
20651         Fix bug introduced on 2008-01-26.
20652         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
20653
20654 2008-02-06  Bruno Haible  <bruno@clisp.org>
20655
20656         Fix bug introduced on 2007-06-10.
20657         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
20658         !NEED_PRINTF_FLAG_ZERO.
20659
20660 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
20661
20662         getloadavg: use libperfstat on AIX5
20663         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
20664
20665 2008-02-03  Bruno Haible  <bruno@clisp.org>
20666
20667         * lib/diffseq.h: Add comments about required #includes.
20668         Reported by Michael Biggs <gnulib@doubleplum.net>.
20669
20670 2008-02-01  Bruno Haible  <bruno@clisp.org>
20671
20672         * users.txt: Add gnuit.
20673
20674 2008-01-31  Bruno Haible  <bruno@clisp.org>
20675
20676         * lib/md4.c (set_uint32): Mark as inline.
20677         * lib/md5.c (set_uint32): Likewise.
20678         * lib/sha1.c (set_uint32): Likewise.
20679         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
20680         * m4/md5.m4 (gl_MD5): Likewise.
20681         * m4/sha1.m4 (gl_SHA1): Likewise.
20682
20683 2008-01-31  Jim Meyering  <meyering@redhat.com>
20684
20685         Use "sizeof VAR", rather than a literal "4".
20686         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
20687         * lib/md4.c (md4_read_ctx): Likewise.
20688         * lib/sha1.c (sha1_read_ctx): Likewise.
20689
20690 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20691
20692         * tests/test-sha1.c: New file, based on test-md5.c.
20693
20694         * modules/crypto/sha1-tests: New file.
20695
20696 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20697
20698         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
20699
20700 2008-01-31  Jim Meyering  <meyering@redhat.com>
20701
20702         Prefer "sizeof v" over the equivalent "4".
20703         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
20704         * lib/md5.c (set_uint32): Likewise.
20705         * lib/sha1.c (set_uint32): Likewise.
20706
20707 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20708
20709         * lib/sha1.c (set_uint32): Mark function as static.
20710
20711 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20712
20713         md2: clarify comments to say that alignment is not required.
20714         * lib/md2.h: Remove warning about alignment in comment.
20715         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
20716         never been required.
20717
20718 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20719
20720         md4: adapt alignment constraint fix from sha1.
20721         * lib/md4.c (set_uint32): New function, from sha1.c
20722         (md4_read_ctx): Use it.
20723         (md4_finish_ctx): Doc fix.
20724         * lib/md4.h: Doc fix.
20725
20726 2008-01-31  Simon Josefsson  <simon@josefsson.org>
20727
20728         md5: adapt alignment constraint fix from sha1.
20729         * lib/md5.c (set_uint32): New function, from sha1.c
20730         (md5_read_ctx): Use it.
20731         (md5_finish_ctx): Doc fix.
20732         * lib/md5.h: Doc fix.
20733
20734 2008-01-30  Peter Palfrader  <weasel@debian.org>
20735
20736         sha1: remove the result buffer alignment constraint
20737         * lib/sha1.c (set_uint32): New function.
20738         (sha1_read_ctx): Rewrite to remove the result buffer alignment
20739         constraint.
20740         (sha1_finish_ctx): Remove comment warning about alignment constraint.
20741         * lib/sha1.h: Likewise.
20742
20743 2008-01-30  Andreas Schwab  <schwab@suse.de>
20744             Bruno Haible  <bruno@clisp.org>
20745
20746         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
20747         correct definition of LDBL_MIN_EXP.
20748
20749 2008-01-30  Karl Berry  <karl@gnu.org>
20750
20751         * config/srclist-update: try to preserve x bit on updates.
20752         * config/srclistvars.sh: update for karl.
20753
20754 2008-01-29  Jim Meyering  <meyering@redhat.com>
20755
20756         vasnprintf.c: Avoid warning about unused label
20757         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
20758         "overflow" label definition and associated code with the
20759         same cpp condition that guards the sole use of that label.
20760
20761 2008-01-26  Bruno Haible  <bruno@clisp.org>
20762
20763         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
20764         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
20765         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
20766         * lib/isnanl-nolibm.h (isnanl): Likewise.
20767         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20768
20769 2008-01-26  Bruno Haible  <bruno@clisp.org>
20770
20771         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
20772         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
20773
20774 2008-01-26  Bruno Haible  <bruno@clisp.org>
20775
20776         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
20777         GCC >= 4.0 built-in.
20778         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
20779
20780 2008-01-26  Bruno Haible  <bruno@clisp.org>
20781
20782         Rename isnan, applicable to 'double' only, to isnand.
20783         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
20784         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
20785         (configure.ac): Update.
20786         (Include): Replace "isnan.h" with "isnand.h".
20787         * m4/isnand.m4: Renamed from m4/isnan.m4.
20788         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
20789         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
20790         instead of isnan.c.
20791         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
20792         instead of HAVE_ISNAN_IN_LIBC.
20793         (isnand): Renamed from isnan.
20794         * lib/isnand.c: New file.
20795         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
20796         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
20797         (Makefile.am): Update.
20798         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
20799         Include isnand.h instead of isnan.h.
20800         (main): Test isnand instead of isnan.
20801         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
20802         isnan-nolibm.
20803         * modules/frexp (Depends-on): Likewise.
20804         * modules/frexp-tests (Depends-on): Likewise.
20805         * modules/frexp-nolibm (Depends-on): Likewise.
20806         * modules/frexp-nolibm-tests (Depends-on): Likewise.
20807         * modules/isfinite (Depends-on): Likewise.
20808         * modules/round-tests (Depends-on): Likewise.
20809         * modules/signbit (Depends-on): Likewise.
20810         * modules/signbit-tests (Depends-on): Likewise.
20811         * modules/snprintf-posix (Depends-on): Likewise.
20812         * modules/sprintf-posix (Depends-on): Likewise.
20813         * modules/trunc-tests (Depends-on): Likewise.
20814         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20815         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20816         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20817         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20818         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20819         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20820         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20821         * modules/vasnprintf-posix (Depends-on): Likewise.
20822         * modules/vasprintf-posix (Depends-on): Likewise.
20823         * modules/vfprintf-posix (Depends-on): Likewise.
20824         * modules/vsnprintf-posix (Depends-on): Likewise.
20825         * modules/vsprintf-posix (Depends-on): Likewise.
20826         * lib/frexp.c: Include isnand.h instead of isnan.h.
20827         (ISNAN): Set to isnand instead of isnan.
20828         * lib/isfinite.c: Include isnand.h instead of isnan.h.
20829         (gl_isfinited): Use isnand instead of isnan.
20830         * lib/signbitd.c: Include isnand.h instead of isnan.h.
20831         (gl_signbitd): Use isnand instead of isnan.
20832         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
20833         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
20834         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
20835         (main): Use isnand instead of isnan.
20836         * tests/test-round1.c: Include isnand.h.
20837         (main): Use isnand instead of isnan.
20838         * tests/test-round2.c: Include isnand.h instead of isnan.h.
20839         (ISNAN): Set to isnand instead of isnan.
20840         * tests/test-trunc1.c: Include isnand.h.
20841         (main): Use isnand instead of isnan.
20842         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
20843         (equal): Use isnand instead of isnan.
20844         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
20845         isnand-nolibm.
20846         * NEWS: Mention the change.
20847
20848 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
20849             Bruno Haible  <bruno@clisp.org>
20850
20851         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
20852         the GCC builtins for signbits are present and set
20853         REPLACE_SIGNBIT_USING_GCC if so.
20854         * lib/math.in.h (signbit): Define using GCC builtins if
20855         REPLACE_SIGNBIT_USING_GCC is set.
20856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
20857         REPLACE_SIGNBIT_USING_GCC.
20858         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
20859
20860 2008-01-25  Jim Meyering  <meyering@redhat.com>
20861
20862         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
20863         * lib/poll.c: Include <config.h>, not "config.h".
20864         * tests/test-getaddrinfo.c: Likewise.
20865
20866 2008-01-25  Simon Josefsson  <simon@josefsson.org>
20867
20868         * modules/sockets-tests: New file.
20869
20870 2008-01-24  Simon Josefsson  <simon@josefsson.org>
20871
20872         * modules/sockets: New module, can be used to call WSA_Startup and
20873         WSA_Cleanup when needed.
20874
20875         * lib/sockets.h, lib/sockets.c: New files.
20876
20877         * m4/sockets.m4: New file.
20878
20879         * tests/test-sockets.c: New file.
20880
20881 2008-01-19  Bruno Haible  <bruno@clisp.org>
20882
20883         * doc/posix-headers: Renamed from doc/headers.
20884         * doc/posix-functions: Renamed from doc/functions.
20885         * doc/gnulib.texi: Update.
20886
20887 2008-01-19  Bruno Haible  <bruno@clisp.org>
20888
20889         * doc/glibc-functions/strcasestr.texi: Include contents of
20890         doc/functions/strcasestr.texi, fixing the list of platforms.
20891         * doc/functions/strcasestr.texi: Remove file.
20892
20893 2008-01-19  Bruno Haible  <bruno@clisp.org>
20894
20895         * doc/glibc-functions/memmem.texi: Include contents of
20896         doc/functions/memmem.texi.
20897         * doc/functions/memmem.texi: Remove file.
20898
20899 2008-01-18  Bruno Haible  <bruno@clisp.org>
20900
20901         * doc/glibc-functions/*.texi: New files.
20902         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
20903         to use the new files.
20904
20905 2008-01-17  Bruno Haible  <bruno@clisp.org>
20906
20907         * tests/test-gethostname.c (main): Fix printf statement.
20908
20909 2008-01-17  Simon Josefsson  <simon@josefsson.org>
20910
20911         * modules/gethostname-tests: New file.
20912
20913         * tests/test-gethostname.c: New file.
20914
20915 2008-01-17  Simon Josefsson  <simon@josefsson.org>
20916
20917         * lib/gethostname.c: Include string.h unconditionally, strncpy is
20918         used by the UNAME case.  Reported by Bruno Haible
20919         <bruno@clisp.org>.
20920
20921 2008-01-17  Eric Blake  <ebb9@byu.net>
20922
20923         Convert c-strcasestr to be more efficient.
20924         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
20925         (Depends-on): Add c-strcase, remove malloca, strnlen.
20926         * tests/test-c-strcasestr.c (main): Enhance test.
20927         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
20928
20929 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20930
20931         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
20932         Use it in creating po/Makevars.
20933
20934 2008-01-15  Simon Josefsson  <simon@josefsson.org>
20935
20936         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
20937         Applications that requires it should initialize libgcrypt
20938         manually.
20939
20940 2008-01-16  Simon Josefsson  <simon@josefsson.org>
20941
20942         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
20943
20944 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20945
20946         Fix problem with getdate on mingw32 reported by Simon Josefsson
20947         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
20948         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
20949         tzname", when deciding whether to declare tzname.
20950         * lib/strftime.c (tzname): Likewise.
20951
20952 2008-01-15  Bruno Haible  <bruno@clisp.org>
20953
20954         Work around a MacOS X 10.5 bug in frexpl().
20955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
20956         * doc/functions/frexpl.texi: Document the bug.
20957         Reported by Elias Pipping <pipping@gentoo.org>.
20958
20959 2008-01-14  Eric Blake  <ebb9@byu.net>
20960
20961         Touch up previous patch.
20962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
20963         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
20964
20965         Convert strcasestr module to use Two-Way algorithm.
20966         * modules/strcasestr-simple: New module, based on the old
20967         strcasestr, but with Two-Way rather than KMP.
20968         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
20969         * lib/string.in.h (rpl_strcasestr): Declare.
20970         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
20971         performance.
20972         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
20973         * modules/string (Makefile.am): Support strcasestr.
20974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
20975         * modules/strcasestr-tests (Depends-on): Check for alarm.
20976         * tests/test-strcasestr.c: Augment test.
20977         * lib/str-two-way.h: Clean up stray macro.
20978         * NEWS: Document new module.
20979         * MODULES.html.sh (string handling): Likewise.
20980         * doc/functions/strcasestr.texi: New file.
20981         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
20982         here, since it is not a POSIX function.
20983
20984 2008-01-14  Colin Watson  <cjwatson@debian.org>
20985             Bruno Haible  <bruno@clisp.org>
20986
20987         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
20988         works fine; if not, set REPLACE_STRSIGNAL.
20989         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
20990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20991         REPLACE_STRSIGNAL.
20992         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
20993         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
20994         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
20995
20996 2008-01-14  Bruno Haible  <bruno@clisp.org>
20997
20998         * modules/strsignal (Include): Change to <string.h>.
20999
21000 2008-01-14  Colin Watson  <cjwatson@debian.org>
21001
21002         * modules/argp (Notice): Add a notice recommending to change
21003         XGETTEXT_OPTIONS.
21004         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
21005
21006 2008-01-13  Colin Watson  <cjwatson@debian.org>
21007
21008         * modules/strsignal-tests: New file.
21009         * tests/test-strsignal.c: New file.
21010
21011         * lib/strsignal.c: New file, from glibc with modifications.
21012         * lib/siglist.h: New file, from glibc with modifications.
21013         * lib/string.in.h (strsignal): New declaration.
21014         * m4/strsignal.m4: New file.
21015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21016         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
21017         * modules/strsignal: New file.
21018         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
21019         HAVE_DECL_STRSIGNAL.
21020
21021 2008-01-13  Bruno Haible  <bruno@clisp.org>
21022
21023         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
21024         locale encoding is not ASCII. Needed for OpenBSD 4.0.
21025         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21026         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21027
21028 2008-01-13  Bruno Haible  <bruno@clisp.org>
21029
21030         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
21031         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
21032         * lib/argp.h (__attribute__): Likewise.
21033         * lib/c-stack.c (__attribute__): Likewise.
21034         * lib/error.h (__attribute__): Likewise.
21035         * lib/fts.c (__attribute__): Likewise.
21036         * lib/openat.h (__attribute__): Likewise.
21037         * lib/stdio.in.h (__attribute__): Likewise.
21038         * lib/string.in.h (__attribute__): Likewise.
21039         * lib/utimens.c (__attribute__): Likewise.
21040         * lib/vasnprintf.h (__attribute__): Likewise.
21041         * lib/xalloc.h (__attribute__): Likewise.
21042         * lib/xprintf.h (__attribute__): Likewise.
21043         * lib/xstrtol.h (__attribute__): Likewise.
21044         * lib/xvasprintf.h (__attribute__): Likewise.
21045
21046 2008-01-12  Bruno Haible  <bruno@clisp.org>
21047
21048         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
21049         * doc/glibc-headers/a.out.texi: New file.
21050         * doc/glibc-headers/aliases.texi: New file.
21051         * doc/glibc-headers/alloca.texi: New file.
21052         * doc/glibc-headers/ar.texi: New file.
21053         * doc/glibc-headers/argp.texi: New file.
21054         * doc/glibc-headers/argz.texi: New file.
21055         * doc/glibc-headers/byteswap.texi: New file.
21056         * doc/glibc-headers/crypt.texi: New file.
21057         * doc/glibc-headers/endian.texi: New file.
21058         * doc/glibc-headers/envz.texi: New file.
21059         * doc/glibc-headers/err.texi: New file.
21060         * doc/glibc-headers/error.texi: New file.
21061         * doc/glibc-headers/execinfo.texi: New file.
21062         * doc/glibc-headers/fpu_control.texi: New file.
21063         * doc/glibc-headers/fstab.texi: New file.
21064         * doc/glibc-headers/fts.texi: New file.
21065         * doc/glibc-headers/getopt.texi: New file.
21066         * doc/glibc-headers/ieee754.texi: New file.
21067         * doc/glibc-headers/ifaddrs.texi: New file.
21068         * doc/glibc-headers/libintl.texi: New file.
21069         * doc/glibc-headers/mcheck.texi: New file.
21070         * doc/glibc-headers/mntent.texi: New file.
21071         * doc/glibc-headers/obstack.texi: New file.
21072         * doc/glibc-headers/paths.texi: New file.
21073         * doc/glibc-headers/printf.texi: New file.
21074         * doc/glibc-headers/pty.texi: New file.
21075         * doc/glibc-headers/resolv.texi: New file.
21076         * doc/glibc-headers/shadow.texi: New file.
21077         * doc/glibc-headers/sysexits.texi: New file.
21078         * doc/glibc-headers/ttyent.texi: New file.
21079
21080 2008-01-12  Jim Meyering  <meyering@redhat.com>
21081
21082         announce-gen: emit Gnulib's git-based version string.
21083         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
21084         New option --gnulib-version=V, where V is expected to be
21085         the output of running git describe in the gnulib directory.
21086         (get_tool_versions): Request feedback on xdelta.  I suspect it's
21087         not useful, and plan to stop publishing an xdelta file with each
21088         coreutils release.
21089
21090         * build-aux/announce-gen: Also check for lzma-compressed files.
21091
21092 2008-01-11  Bruno Haible  <bruno@clisp.org>
21093
21094         * tests/test-memmem.c (main): Increase maximum allowed time.
21095         * tests/test-strstr.c (main): Likewise.
21096
21097 2008-01-11  Bruno Haible  <bruno@clisp.org>
21098
21099         * doc/functions/memmem.texi: Add more precisions about platforms.
21100         * doc/functions/strstr.texi: Likewise.
21101
21102 2008-01-10  Eric Blake  <ebb9@byu.net>
21103
21104         * m4/strstr.m4: Delete cruft from copy-n-paste.
21105         Reported by Bruno Haible.
21106
21107 2008-01-10  Bruno Haible  <bruno@clisp.org>
21108
21109         Make c-strstr rely on strstr.
21110         * lib/c-strstr.c: Don't include str-kmp.h.
21111         (c_strstr): Define in terms of strstr.
21112         * modules/c-strstr (Files): Remove lib/str-kmp.h.
21113         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
21114
21115 2008-01-10  Bruno Haible  <bruno@clisp.org>
21116
21117         * doc/gnulib.texi (String Functions in C Locale): New section.
21118         * doc/c-ctype.texi: New file.
21119         * doc/c-strcase.texi: New file.
21120         * doc/c-strcaseeq.texi: New file.
21121         * doc/c-strcasestr.texi: New file.
21122         * doc/c-strstr.texi: New file.
21123         * doc/c-strtod.texi: New file.
21124         * doc/c-strtold.texi: New file.
21125
21126 2008-01-10  Eric Blake  <ebb9@byu.net>
21127
21128         * lib/relocatable.h: Fix a comment.
21129
21130 2008-01-10  Eric Blake  <ebb9@byu.net>
21131
21132         Share two-way algorithm.
21133         * lib/str-two-way.h: New file, merged from...
21134         * lib/memmem.c: ...here...
21135         * lib/strstr.c: ...and here.
21136         * modules/memmem (Files): Use it.
21137         * modules/strstr (Files): Likewise.
21138
21139         Avoid quadratic strstr implementations.
21140         * lib/strstr.c: New file.
21141         * m4/strstr.m4: Likewise.
21142         * modules/strstr: Likewise.
21143         * modules/strstr-tests: Likewise.
21144         * tests/test-strstr.c: Likewise.
21145         * lib/string.in.h (rpl_strstr): Declare.
21146         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
21147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
21148         * modules/string (Makefile.am): Likewise.
21149         * MODULES.html.sh (string handling): Mention new module.
21150         * doc/functions/strstr.texi (strstr): Document the bug.
21151
21152 2008-01-10  Bruno Haible  <bruno@clisp.org>
21153
21154         * lib/relocatable.h (relocate): State whether result is freshly
21155         allocated or not.
21156         * lib/relocatable.c (relocate): Return a freshly allocated string
21157         instead of a pointer to a privately held string.
21158         Reported by Sylvain Beucler <beuc@gnu.org>.
21159
21160 2008-01-10  Colin Watson  <cjwatson@debian.org>
21161
21162         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
21163         s/S_ISNLK/S_ISLNK/.
21164
21165 2008-01-09  Bruno Haible  <bruno@clisp.org>
21166
21167         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
21168         and other files.
21169         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
21170         if it's only a guess.
21171         * modules/memmem: Simplify by depending on memmem-simple.
21172
21173 2008-01-09  Bruno Haible  <bruno@clisp.org>
21174
21175         Work around OpenBSD 4.0 tdelete() bug.
21176         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
21177         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
21178         macros and don't redefine the enum values.
21179         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
21180         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
21181         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
21182
21183 2008-01-09  Bruno Haible  <bruno@clisp.org>
21184
21185         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
21186         (main): Don't perform the tests if setlocale did not install a UTF-8
21187         locale. Needed on OpenBSD 4.0.
21188         * modules/wcwidth-tests (Depends-on): Add localcharset.
21189
21190 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21191
21192         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
21193         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
21194         * NEWS: announce this.
21195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
21196
21197 2008-01-09  Simon Josefsson  <simon@josefsson.org>
21198         and Eric Blake  <ebb9@byu.net>
21199
21200         Add memmem-simple module.
21201         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
21202         (gl_FUNC_MEMMEM): Separate performance from presence checks.
21203         * modules/memmem-simple: New file.
21204         * modules/memmem (Description): Tweak.
21205         * MODULES.html.sh (string handling): Mention new module.
21206         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
21207         addressed by memmem-simple.
21208         * NEWS: Document the difference.
21209
21210 2008-01-09  Eric Blake  <ebb9@byu.net>
21211
21212         Give gcc some memmem optimization hints.
21213         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
21214         (strcasestr): Declare as pure.
21215         * modules/memmem (Maintainer): Claim my implementation.
21216
21217 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21218
21219         Support AIX 6.1 and higher.
21220         * build-aux/config.libpath: Likewise.
21221         * build-aux/config.rpath: Likewise.
21222
21223 2008-01-08  Jim Meyering  <meyering@redhat.com>
21224             Bruno Haible  <bruno@clisp.org>
21225
21226         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
21227         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
21228         Reported by Peter Fales in
21229         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
21230
21231 2008-01-08  Bruno Haible  <bruno@clisp.org>
21232
21233         * modules/unictype/category-of (Depends-on): Add
21234         unictype/category-none.
21235         * modules/unictype/category-and-tests (Depends-on): Add
21236         unictype/category-{L,N,Lu,Nd}.
21237         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
21238         * modules/unictype/category-or-tests (Depends-on): Add
21239         unictype/category-{L,N}.
21240         * modules/unictype/category-name-tests (Depends-on): Add
21241         unictype/category-{Z,Nl}.
21242         Reported by Simon Josefsson.
21243
21244 2008-01-08  Bruno Haible  <bruno@clisp.org>
21245
21246         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
21247         convention better.
21248         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
21249         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
21250         Reported by Peter Miller <millerp@canb.auug.org.au>.
21251
21252 2008-01-08  Eric Blake  <ebb9@byu.net>
21253
21254         Rewrite memmem to guarantee linear complexity without malloc.
21255         * lib/memmem.c (memmem): Use Two-Way rather than
21256         Knuth-Morris-Pratt, to allow O(1) space usage.
21257         (critical_factorization, two_way_short_needle)
21258         (two_way_long_needle): New functions.
21259         (knuth_morris_pratt): Delete.
21260         * modules/memmem (Depends-on): No longer need malloca or stdbool.
21261         Add stdint.
21262         * tests/test-memmem.c (main): Add tests for periodic needle and
21263         sublinear performance.
21264         * doc/functions/memmem.texi (memmem): Document other deficiencies
21265         in cygwin and older glibc.
21266
21267 2008-01-08  Bruno Haible  <bruno@clisp.org>
21268
21269         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
21270         augmentation.
21271
21272 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
21273
21274         Add a configure time option: --disable-acl.
21275         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
21276         AC_ARG_ENABLE(acl).
21277
21278 2008-01-06  Simon Josefsson  <simon@josefsson.org>
21279
21280         * tests/test-localename.c: Don't include obsolete "setenv.h".
21281
21282         * modules/localename-tests (Depends-on): Need unsetenv.
21283
21284 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21285
21286         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
21287
21288 2008-01-06  Colin Watson  <cjwatson@debian.org>
21289
21290         * users.txt: Add man-db.
21291
21292 2008-01-07  Bruno Haible  <bruno@clisp.org>
21293
21294         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
21295         previous section name.
21296
21297 2008-01-07  Bruno Haible  <bruno@clisp.org>
21298
21299         * lib/progname.c (set_program_name): Don't strip off a leading
21300         "lt-" prefix outside a .libs directory.
21301         Suggested by Paul Eggert.
21302
21303 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
21304             Bruno Haible  <bruno@clisp.org>
21305
21306         Improve memory cleanup in 'relocatable' module.
21307         * lib/relocatable.h (compute_curr_prefix): Change return type to
21308         'char *'.
21309         * lib/relocatable.c (compute_curr_prefix): Change return type to
21310         'char *'. Free curr_installdir after use.
21311         (relocate): Free curr_prefix_better after use.
21312         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
21313
21314 2008-01-01  Bruno Haible  <bruno@clisp.org>
21315
21316         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
21317         failure on older glibc systems.
21318         Reported by Peter Fales <psfales@alcatel-lucent.com>.
21319
21320 2008-01-05  Eric Blake  <ebb9@byu.net>
21321
21322         Avoid quadratic system memmem.
21323         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
21324         Reported by Ralf Wildenhues.
21325
21326         Fix memmem test for mingw.
21327         * modules/memmem-tests (configure.ac): Check for alarm.
21328         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
21329         it.
21330         * doc/functions/memmem.texi: New file.
21331         * doc/gnulib.texi (Function Substitutes): Add memmem.
21332         Reported by Bruno Haible.
21333
21334 2008-01-04  Bruno Haible  <bruno@clisp.org>
21335
21336         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
21337         Require gl_HEADER_STRINGS_H_DEFAULTS, not
21338         gl_HEADER_STRING_H_DEFAULTS.
21339
21340 2008-01-04  Eric Blake  <ebb9@byu.net>
21341
21342         Shorten duration of memmem test.
21343         * tests/test-memmem.c (main): Use alarm to declare failure if test
21344         is taking too long.
21345         Reported by Ralf Wildenhues.
21346
21347 2007-12-21  Simon Josefsson  <simon@josefsson.org>
21348
21349         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
21350         string, needed by strerror.
21351
21352 2008-01-03  Colin Watson  <cjwatson@debian.org>
21353             Bruno Haible  <bruno@clisp.org>
21354
21355         * doc/gnulib-tool.texi (Localization): New section.
21356
21357 2008-01-02  Bruno Haible  <bruno@clisp.org>
21358
21359         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
21360         variables to 'unsigned char *' type.
21361         Reported by Paul Eggert.
21362
21363 2008-01-02  Jim Meyering  <jim@meyering.net>
21364
21365         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
21366
21367 2007-12-31  Jim Meyering  <jim@meyering.net>
21368
21369         Avoid use of private FTS type name.
21370         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
21371
21372 2007-12-30  Karl Berry  <karl@gnu.org>
21373
21374         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
21375         work around defect in Texinfo and/or the standalone Info browser.
21376
21377 2007-12-30  Bruno Haible  <bruno@clisp.org>
21378
21379         Unify 5 copies of the KMP code.
21380         * lib/str-kmp.h: New file.
21381         * lib/c-strcasestr.c: Include str-kmp.h.
21382         (knuth_morris_pratt): Remove function.
21383         (c_strcasestr): Update.
21384         * lib/c-strstr.c: Include str-kmp.h.
21385         (knuth_morris_pratt): Remove function.
21386         (c_strcasestr): Update.
21387         * lib/mbscasestr.c: Include str-kmp.h.
21388         (knuth_morris_pratt_unibyte): Remove function.
21389         * lib/mbsstr.c: Include str-kmp.h.
21390         (knuth_morris_pratt_unibyte): Remove function.
21391         * lib/strcasestr.c: Include str-kmp.h.
21392         (knuth_morris_pratt): Remove function.
21393         (strcasestr): Update.
21394         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
21395         * modules/c-strstr (Files): Likewise.
21396         * modules/mbscasestr (Files): Likewise.
21397         * modules/mbsstr (Files): Likewise.
21398         * modules/strcasestr (Files): Likewise.
21399         Suggested by Paul Eggert.
21400
21401 2007-12-30  Bruno Haible  <bruno@clisp.org>
21402
21403         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
21404         defined.
21405
21406 2007-12-30  Bruno Haible  <bruno@clisp.org>
21407
21408         * lib/xmalloca.h: Include xalloc.h.
21409         (xnmalloca): New macro.
21410
21411 2007-12-30  Bruno Haible  <bruno@clisp.org>
21412
21413         * lib/malloca.h (nmalloca): New macro.
21414         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
21415         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
21416         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
21417         knuth_morris_pratt_multibyte): Likewise.
21418         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
21419         knuth_morris_pratt_multibyte): Likewise.
21420         * lib/memmem.c (knuth_morris_pratt): Likewise.
21421         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
21422
21423 2007-12-25  Bruno Haible  <bruno@clisp.org>
21424
21425         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
21426         * lib/glob.c: Don't include openat.h.
21427         (link_exists2_p): Add back the code that deals with the
21428         !GLOB_ALTDIRFUNC case.
21429         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
21430         let it do the filename concatenation.
21431         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
21432         * modules/glob (Depends-on): Remove openat.
21433
21434 2007-12-31  Bruno Haible  <bruno@clisp.org>
21435
21436         * modules/dirfd (License): Change to LGPLv2+.
21437         Approved by Jim Meyering.
21438
21439 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21440
21441         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
21442         when multiplying M by sizeof (size_t).
21443
21444 2007-12-10  Martin Lambers  <marlam@marlam.de>
21445
21446         Override getpagesize on mingw.
21447         * lib/getpagesize.c: New file.
21448         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
21449         * modules/getpagesize (Files): Add lib/getpagesize.c.
21450         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
21451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21452         REPLACE_GETPAGESIZE.
21453         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
21454
21455 2007-12-25  Bruno Haible  <bruno@clisp.org>
21456
21457         * modules/localcharset (Notice): New field.
21458         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
21459         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21460
21461 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21462             Bruno Haible  <bruno@clisp.org>
21463
21464         Avoid using the syntax symbol() in formatted documentation.
21465         * MODULES.html.sh (func_module): When replacing symbol() with a
21466         hyperlink, remove the parentheses. Show an error if some remain.
21467         Recognize and render the '...' syntax.
21468         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
21469         Rework. Add paragraph about GCC's inlining.
21470         * doc/alloca.texi: Likewise.
21471         * doc/error.texi: Remove parentheses from symbol reference.
21472         * doc/gnulib-intro.texi: Likewise.
21473         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
21474         * modules/fnmatch (Description): Reword to say "the ... function".
21475         * modules/full-read (Description): Likewise.
21476         * modules/full-write (Description): Likewise.
21477         * modules/safe-read (Description): Likewise.
21478         * modules/safe-write (Description): Likewise.
21479         * modules/strchrnul (Description): Likewise.
21480         * modules/trim (Description): Likewise.
21481         * modules/error (Description): Remove parentheses from symbol
21482         references.
21483         * modules/verror (Description): Likewise.
21484         Reported by Karl Berry.
21485
21486 2007-12-25  Bruno Haible  <bruno@clisp.org>
21487
21488         Fixup after 2007-10-16 commit.
21489         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
21490
21491 2007-12-24  Bruno Haible  <bruno@clisp.org>
21492
21493         Make --enable-relocatable work with DESTDIR.
21494         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
21495         to compute installdir from destprog.
21496         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
21497         also set the RELOC_DESTDIR variable.
21498         Reported by Левашев Иван <octagram@bluebottle.com>.
21499
21500 2007-12-24  Bruno Haible  <bruno@clisp.org>
21501
21502         Fix link error due to xalloc_die().
21503         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
21504         of xreadlink.
21505         * lib/relocwrapper.c: Update comments.
21506         * build-aux/install-reloc: Remove xreadlink.c from file list.
21507         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
21508         xreadlink.c.
21509         Reported by Левашев Иван <octagram@bluebottle.com>.
21510
21511 2007-12-24  Bruno Haible  <bruno@clisp.org>
21512
21513         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
21514         * lib/setenv.h: Remove file.
21515         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
21516         lib/setenv.h.
21517         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
21518         (Depends-on): Add stdlib.
21519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
21520         gl_FUNC_UNSETENV.
21521         (Include): Replace setenv.h with <stdlib.h>.
21522         * modules/unsetenv: New file.
21523         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
21524         * lib/unsetenv.c: Include <stdlib.h> first.
21525         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
21526         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
21527         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
21528         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
21529         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
21530         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
21531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
21532         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
21533         * doc/functions/unsetenv.texi: Update.
21534         * modules/xsetenv (Depends-on): Add unsetenv.
21535         * modules/getdate (Depends-on): Likewise.
21536         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
21537         * lib/xsetenv.c: Don't include setenv.h.
21538         * lib/getdate.y: Likewise.
21539         * lib/relocwrapper.c: Likewise.
21540         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
21541         (Depends-on): Add stdlib.
21542         * NEWS: Mention the changes.
21543         Reported by Левашев Иван <octagram@bluebottle.com>.
21544
21545 2007-12-23  Bruno Haible  <bruno@clisp.org>
21546
21547         * lib/memmem.c (memmem): Use lowercase variable names. Tab
21548         indentation.
21549
21550 2007-12-23  Bruno Haible  <bruno@clisp.org>
21551
21552         * lib/c-strcasestr.c: Add more comments.
21553         * lib/c-strstr.c: Likewise.
21554         * lib/mbscasestr.c: Likewise.
21555         * lib/mbsstr.c: Likewise.
21556         * lib/strcasestr.c: Likewise.
21557         * lib/memmem.c: Likewise.
21558
21559 2007-12-23  Bruno Haible  <bruno@clisp.org>
21560
21561         * tests/test-memmem.c: Include <string.h> first.
21562
21563 2007-12-22  Bruno Haible  <bruno@clisp.org>
21564
21565         * gnulib-tool (func_create_testdir): Change $auxdir while generating
21566         the contents of $testsbase.
21567         Reported by Ralf Wildenhues.
21568
21569 2007-12-22  Bruno Haible  <bruno@clisp.org>
21570
21571         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
21572         two variables local_ldadd_before, local_ldadd_last.
21573
21574 2007-12-20  Eric Blake  <ebb9@byu.net>
21575
21576         Work around circular library issue when cross-compiling.
21577         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
21578         that progname.o does not need to pull in rpl_memcmp.
21579
21580 2007-12-19  Eric Blake  <ebb9@byu.net>
21581
21582         Fix memmem to avoid O(n^2) worst-case complexity.
21583         * lib/memmem.c (knuth_morris_pratt): New function.
21584         (memmem): Use it if first few naive iterations fail.
21585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
21586         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
21587         * modules/memchr (License): Likewise.
21588         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
21589         malloca.
21590         * tests/test-memmem.c: Rewrite, borrowing ideas from
21591         test-mbsstr1.c; the old version wouldn't even compile!
21592         * modules/memmem-tests: New file.
21593         * lib/string.in.h (rpl_memmem): Add declaration.
21594         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
21595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
21596         REPLACE_MEMMEM.
21597
21598 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21599
21600         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
21601         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
21602         before any system include files, and undef after them all.  This
21603         should fix a problem on VMS reported by John E. Malmberg in
21604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
21605
21606 2007-12-17  Eric Blake  <ebb9@byu.net>
21607
21608         Revert addition of verify, for BSD/OS.
21609         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
21610         can't handle large files, for the sake of obsolete platforms.
21611         * modules/fseeko (Depends-on): Remove verify.
21612         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
21613         * doc/functions/ftello.texi (ftello): Likewise.
21614         * doc/functions/fgetpos.texi (fgetpos): Likewise.
21615         Reported by Larry Jones.
21616
21617 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
21618
21619         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
21620         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
21621
21622 2007-12-17  Jim Meyering  <meyering@redhat.com>
21623
21624         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
21625         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
21626         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
21627         * modules/getcwd (Depends-on): Add openat.
21628         Reported by Petr Salinger.
21629
21630 2007-12-17  Bruno Haible  <bruno@clisp.org>
21631
21632         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
21633         avoid a segmentation fault of the configure test on x86_64 systems.
21634
21635 2007-12-15  Jim Meyering  <meyering@redhat.com>
21636
21637         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
21638
21639 2007-12-13  Eric Blake  <ebb9@byu.net>
21640
21641         Another fseek test.
21642         * tests/test-fseek.c (main): Also test ungetc handling.
21643         * tests/test-fseeko.c (main): Likewise.
21644         * modules/fseeko (Depends-on): Add verify.
21645         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
21646         large.
21647         Reported by Larry Jones.
21648
21649         Fix fseeko on mingw.
21650         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
21651         seek.
21652
21653         Beef up fseek tests.
21654         * tests/test-fseek.c (main): Also test eof handling.
21655         * tests/test-fseeko.c (main): Likewise.
21656         Reported by Larry Jones.
21657
21658 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
21659
21660         Fix fseeko on BSD-based platforms.
21661         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
21662         successful seek.
21663
21664 2007-12-12  Eric Blake  <ebb9@byu.net>
21665
21666         Allow circular dependency of separate libtests.a
21667         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
21668         when use_libtests.
21669
21670 2007-12-11  Eric Blake  <ebb9@byu.net>
21671
21672         Fix bug with -0.0L in previous patch.
21673         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
21674         * tests/test-isnan.c (main): Also test on zeroes.
21675         * tests/test-isnanf.c (main): Likewise.
21676         * tests/test-isnanl.h (main): Likewise.
21677
21678         Detect pseudo-denormals on x86 even when cross-compiling.
21679         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
21680         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
21681         invalid bit patterns that happen to satisfy ==.
21682
21683         Avoid link failures with separate libtests.a.
21684         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
21685         last, to satisfy circular dependencies.
21686
21687 2007-12-11  Eric Blake  <ebb9@byu.net>
21688         and Bruno Haible  <bruno@clisp.org>
21689
21690         Fix OpenBSD 4.0 <float.h> handling of long double.
21691         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
21692         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
21693         * doc/headers/float.texi (float.h): Document OpenBSD bug.
21694
21695 2007-12-11  Jim Meyering  <meyering@redhat.com>
21696
21697         * users.txt: Add libvirt.
21698
21699         Support versions of autoconf prior to 2.59c.
21700         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
21701         if it is not already defined.
21702
21703 2007-12-09  Bruno Haible  <bruno@clisp.org>
21704
21705         Let 'gnulib-tool --import' collect sources needed for the tests in
21706         tests/ rather than in lib/.
21707         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
21708         argument. If true, add rules to generate libtests.a, and put libtests.a
21709         into $(LDADD). Consider source files in subdirectories and set
21710         uses_subdirs.
21711         (func_emit_initmacro_start, func_emit_initmacro_end,
21712         func_emit_initmacro_done): Pass all arguments explicitly.
21713         (func_import): Determine two module lists main_modules,
21714         testsrelated_modules. Determine use_libtests. Determine two variables
21715         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
21716         instead of just sed_transform_lib_file. Determine two variables
21717         main_files and testsrelated_files. Compute 'files' as the union of
21718         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
21719         func_add_or_update. In the generated gnulib-comp.m4, collect the
21720         object files for tests/ in different variables than those for lib/.
21721         Substitute LIBTESTS_LIBDEPS.
21722         (func_create_testdir): Combine the uses_subdirs results from
21723         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
21724
21725 2007-12-09  Bruno Haible  <bruno@clisp.org>
21726
21727         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
21728         the build-aux directory.
21729
21730 2007-12-09  Bruno Haible  <bruno@clisp.org>
21731
21732         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
21733         introduced on 2006-09-09.
21734
21735 2007-12-07  Jim Meyering  <meyering@redhat.com>
21736
21737         Let these macros work also with autoconf-2.59.
21738         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
21739         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
21740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21741
21742 2007-12-06  Jim Meyering  <meyering@redhat.com>
21743
21744         Avoid a configure-time syntax error in gl_FUNC_ACL.
21745         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
21746         function in each branch, before testing the cache variable.
21747
21748 2007-12-04  Eric Blake  <ebb9@byu.net>
21749
21750         Make scripts executable.
21751         * build-aux/config.guess: Add execute permissions.
21752         * build-aux/config.sub: Likewise.
21753         * build-aux/gendocs.sh: Likewise.
21754
21755         Fix frexp on mingw.
21756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
21757         cross-compiling.
21758         * doc/functions/frexp.texi (frexp): Document the bug.
21759
21760         Make cygwin fseeko check more reliable.
21761         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
21762         version numbers, rather than unrelated feature check.
21763         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
21764         * doc/functions/ftello.texi (ftello): Likewise.
21765         Reported by Bruno Haible.
21766
21767         * m4/strerror.m4: Bump version number.
21768
21769 2007-12-03  Bruno Haible  <bruno@clisp.org>
21770
21771         * doc/functions/mprotect.texi: Mention the mingw problem.
21772
21773 2007-12-03  Eric Blake  <ebb9@byu.net>
21774
21775         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
21776         REPLACE_STRERROR is initialized before this macro.
21777
21778 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21779
21780         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
21781         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
21782         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
21783         put -lsec in even for programs other than 'ls'.  This fixes a problem
21784         for gettext reported by Bruno Haible in
21785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
21786         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
21787         Add support for Solaris 10.  This isn't efficient, but should get the
21788         job done for now.
21789
21790 2007-12-03  James Youngman  <jay@gnu.org>
21791
21792         * doc/regexprops-generic.texi: change "an close-group" to "a
21793         close-group" and "illegal" to "not allowed".
21794
21795 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21796
21797         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
21798         pr_byname.h. Needed for the rare case when the maintainer has done
21799         "make maintainer-clean" in the source directory and then attempts a
21800         build outside the source directory.
21801         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
21802         scripts_byname.h.
21803
21804 2007-12-02  Martin Lambers <marlam@marlam.de>
21805             Bruno Haible  <bruno@clisp.org>
21806
21807         * lib/getpagesize.h: Remove file.
21808         * lib/unistd.in.h: Include declaration of getpagesize here.
21809         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
21810         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
21811         HAVE_SYS_PARAM_H.
21812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
21813         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
21814         * modules/getpagesize (Files): Remove lib/getpagesize.h.
21815         (Depends-on): Add unistd.
21816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21817         (Include): Use <unistd.h> instead of getpagesize.h.
21818         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
21819         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
21820         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
21821         gl_GETPAGESIZE invocation, already handled by module dependency.
21822         * lib/pagealign_alloc.c: Don't include getpagesize.h.
21823
21824 2007-12-02  Bruno Haible  <bruno@clisp.org>
21825
21826         * modules/strings-tests: New file.
21827         * tests/test-strings.c: New file.
21828
21829         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
21830         * lib/strings.in.h: New file.
21831         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
21832         * m4/strings_h.m4: New file.
21833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
21834         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
21835         * modules/strings: New file.
21836         * modules/string (Makefile.am): Update.
21837         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
21838         Reported by Karl Berry.
21839
21840 2007-12-01  Eric Blake  <ebb9@byu.net>
21841
21842         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
21843         accomodate fix in cygwin 1.5.25.
21844
21845 2007-12-01  Jim Meyering  <meyering@redhat.com>
21846
21847         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
21848         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
21849         that would inhibit utf8-optimization of a regexp containing line-
21850         or buffer-anchors, e.g., `^', `$'.
21851
21852 2007-11-30  Bruno Haible  <bruno@clisp.org>
21853
21854         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
21855         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
21856         glthread_recursive_lock_init.
21857         * lib/lock.c (glthread_recursive_lock_init)
21858         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
21859         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21860
21861 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21862
21863         New function qset_acl, like set_acl but with syscall semantics.
21864         * lib/acl.h (qset_acl): New decl.
21865         * lib/acl.c (qset_acl): New function.
21866         (set_acl): Use new function.  Use more-consistent diagnostics.
21867
21868 2007-11-28  Jim Meyering  <meyering@redhat.com>
21869
21870         * modules/physmem (License): Change from GPL to LGPLv2+.
21871
21872 2007-11-26  Bruno Haible  <bruno@clisp.org>
21873
21874         * lib/vasnprintf.c (decode_long_double): Don't abort if the
21875         'long double' type has excess precision.
21876         Reported by Jim Meyering in
21877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
21878
21879 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21880
21881         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
21882         Sync from <http://gnu.org/licenses>.
21883         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
21884         with license text from same location.
21885         * doc/maintain.texi, doc/standards.texi:  Sync from
21886         <http://savannah.gnu.org/projects/gnustandards>.
21887
21888 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
21889         and Jim Meyering  <meyering@redhat.com>
21890
21891         Adjust getdate' grammar to accept a slightly more regular language.
21892         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
21893         Before, the former was rejected.
21894         * lib/getdate.y (digits_to_date_time): New function, factored
21895         out of ...
21896         (number): ...here.  Just call digits_to_date_time.
21897         (hybrid): New non-terminal to handle an <unsigned number,
21898         signed relative offset> sequence consistently.
21899
21900 2007-11-18  Jim Meyering  <meyering@redhat.com>
21901
21902         Pull my changes from coreutils:
21903         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
21904         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
21905         use of $gnulib_tool_option_extras, so that it's separated from the
21906         preceding argument.
21907
21908         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
21909         * build-aux/bootstrap (cp_mark_as_generated): Create any required
21910         parent destination directories before copying a file into place.
21911
21912 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
21913
21914         bootstrap: work also with 4-argument variant of AC_INIT
21915         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
21916
21917 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21918
21919         Port test-getaddrinfo to Solaris.
21920         Problem reported by Bruno Haible in
21921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
21922         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
21923         explanation of setting 'hints'.
21924         Don't reject an implementation merely because it returns EAI_SERVICE.
21925         (EAI_SERVICE): Define to 0 if not defined.
21926
21927 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21928
21929         The license of gnu-make and posix-shell is now "GPLed build tool".
21930         * modules/gnu-make (License): Likewise.
21931         * modules/posix-shell (License): Likewise.
21932
21933         New module posix-shell, for determining a POSIX shell
21934         or perhaps something that is close enough to a POSIX shell.
21935         * m4/posix-shell.m4: New file.
21936         * modules/posix-shell: New file.
21937
21938         * MODULES.html.sh: Mention new module.
21939
21940         New module gnu-make, for determining whether we're using GNU Make.
21941         * m4/gnu-make.m4: New file.
21942         * modules/gnu-make: New file.
21943         * MODULES.html.sh: Mention new module.
21944
21945 2007-11-14  Jim Meyering  <meyering@redhat.com>
21946
21947         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
21948         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
21949         use this macro to create a function _definition_.
21950         Remove useless "#undef ARGMATCH_DIE".
21951
21952 2007-11-14  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/config.charset: Update for OpenBSD 4.1.
21955         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
21956
21957 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
21958
21959         Document 64-bit #if problems in stdint.texi.
21960         * doc/headers/stdint.texi (stdint.h): Mention problems with
21961         64-bit-#if, and how to work around them.
21962
21963         Don't insist on 'long long int' support in the preprocessor.  It
21964         breaks too many things.  For example, PRIdMAX still uses a 'long
21965         long int' format with the latest Sun compiler, even though
21966         HAVE_LONG_LONG_INT isn't defined due to that compiler's
21967         preprocessor problem.  This causes the latest coreutils to dump
21968         core on Solaris 10 sparc with the Sun C compiler.
21969         Instead, fix the 2007-10-16 problem in a different way, by evaluating
21970         the troublesome expressions at configure-time, not at #if-time.
21971         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
21972         preprocessor.
21973         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
21974         compile-time C checks, done at 'configure'-time.
21975         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
21976         * modules/inttypes (Makefile): Substitute the new symbols that
21977         gl_INTTYPES_H now generates.
21978         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
21979
21980 2007-11-12  Bruno Haible  <bruno@clisp.org>
21981
21982         Tests for Unicode character classification functions.
21983
21984         * modules/unictype/bidicategory-byname-tests: New file.
21985         * modules/unictype/bidicategory-name-tests: New file.
21986         * modules/unictype/bidicategory-of-tests: New file.
21987         * modules/unictype/bidicategory-test-tests: New file.
21988         * modules/unictype/block-list-tests: New file.
21989         * modules/unictype/block-of-tests: New file.
21990         * modules/unictype/block-test-tests: New file.
21991         * modules/unictype/category-C-tests: New file.
21992         * modules/unictype/category-Cc-tests: New file.
21993         * modules/unictype/category-Cf-tests: New file.
21994         * modules/unictype/category-Cn-tests: New file.
21995         * modules/unictype/category-Co-tests: New file.
21996         * modules/unictype/category-Cs-tests: New file.
21997         * modules/unictype/category-L-tests: New file.
21998         * modules/unictype/category-Ll-tests: New file.
21999         * modules/unictype/category-Lm-tests: New file.
22000         * modules/unictype/category-Lo-tests: New file.
22001         * modules/unictype/category-Lt-tests: New file.
22002         * modules/unictype/category-Lu-tests: New file.
22003         * modules/unictype/category-M-tests: New file.
22004         * modules/unictype/category-Mc-tests: New file.
22005         * modules/unictype/category-Me-tests: New file.
22006         * modules/unictype/category-Mn-tests: New file.
22007         * modules/unictype/category-N-tests: New file.
22008         * modules/unictype/category-Nd-tests: New file.
22009         * modules/unictype/category-Nl-tests: New file.
22010         * modules/unictype/category-No-tests: New file.
22011         * modules/unictype/category-P-tests: New file.
22012         * modules/unictype/category-Pc-tests: New file.
22013         * modules/unictype/category-Pd-tests: New file.
22014         * modules/unictype/category-Pe-tests: New file.
22015         * modules/unictype/category-Pf-tests: New file.
22016         * modules/unictype/category-Pi-tests: New file.
22017         * modules/unictype/category-Po-tests: New file.
22018         * modules/unictype/category-Ps-tests: New file.
22019         * modules/unictype/category-S-tests: New file.
22020         * modules/unictype/category-Sc-tests: New file.
22021         * modules/unictype/category-Sk-tests: New file.
22022         * modules/unictype/category-Sm-tests: New file.
22023         * modules/unictype/category-So-tests: New file.
22024         * modules/unictype/category-Z-tests: New file.
22025         * modules/unictype/category-Zl-tests: New file.
22026         * modules/unictype/category-Zp-tests: New file.
22027         * modules/unictype/category-Zs-tests: New file.
22028         * modules/unictype/category-and-not-tests: New file.
22029         * modules/unictype/category-and-tests: New file.
22030         * modules/unictype/category-byname-tests: New file.
22031         * modules/unictype/category-name-tests: New file.
22032         * modules/unictype/category-none-tests: New file.
22033         * modules/unictype/category-of-tests: New file.
22034         * modules/unictype/category-or-tests: New file.
22035         * modules/unictype/category-test-withtable-tests: New file.
22036         * modules/unictype/combining-class-tests: New file.
22037         * modules/unictype/ctype-alnum-tests: New file.
22038         * modules/unictype/ctype-alpha-tests: New file.
22039         * modules/unictype/ctype-blank-tests: New file.
22040         * modules/unictype/ctype-cntrl-tests: New file.
22041         * modules/unictype/ctype-digit-tests: New file.
22042         * modules/unictype/ctype-graph-tests: New file.
22043         * modules/unictype/ctype-lower-tests: New file.
22044         * modules/unictype/ctype-print-tests: New file.
22045         * modules/unictype/ctype-punct-tests: New file.
22046         * modules/unictype/ctype-space-tests: New file.
22047         * modules/unictype/ctype-upper-tests: New file.
22048         * modules/unictype/ctype-xdigit-tests: New file.
22049         * modules/unictype/decimal-digit-tests: New file.
22050         * modules/unictype/digit-tests: New file.
22051         * modules/unictype/mirror-tests: New file.
22052         * modules/unictype/numeric-tests: New file.
22053         * modules/unictype/property-alphabetic-tests: New file.
22054         * modules/unictype/property-ascii-hex-digit-tests: New file.
22055         * modules/unictype/property-bidi-arabic-digit-tests: New file.
22056         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
22057         * modules/unictype/property-bidi-block-separator-tests: New file.
22058         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
22059         * modules/unictype/property-bidi-common-separator-tests: New file.
22060         * modules/unictype/property-bidi-control-tests: New file.
22061         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
22062         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
22063         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
22064         * modules/unictype/property-bidi-european-digit-tests: New file.
22065         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
22066         * modules/unictype/property-bidi-left-to-right-tests: New file.
22067         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
22068         * modules/unictype/property-bidi-other-neutral-tests: New file.
22069         * modules/unictype/property-bidi-pdf-tests: New file.
22070         * modules/unictype/property-bidi-segment-separator-tests: New file.
22071         * modules/unictype/property-bidi-whitespace-tests: New file.
22072         * modules/unictype/property-byname-tests: New file.
22073         * modules/unictype/property-combining-tests: New file.
22074         * modules/unictype/property-composite-tests: New file.
22075         * modules/unictype/property-currency-symbol-tests: New file.
22076         * modules/unictype/property-dash-tests: New file.
22077         * modules/unictype/property-decimal-digit-tests: New file.
22078         * modules/unictype/property-default-ignorable-code-point-tests: New file.
22079         * modules/unictype/property-deprecated-tests: New file.
22080         * modules/unictype/property-diacritic-tests: New file.
22081         * modules/unictype/property-extender-tests: New file.
22082         * modules/unictype/property-format-control-tests: New file.
22083         * modules/unictype/property-grapheme-base-tests: New file.
22084         * modules/unictype/property-grapheme-extend-tests: New file.
22085         * modules/unictype/property-grapheme-link-tests: New file.
22086         * modules/unictype/property-hex-digit-tests: New file.
22087         * modules/unictype/property-hyphen-tests: New file.
22088         * modules/unictype/property-id-continue-tests: New file.
22089         * modules/unictype/property-id-start-tests: New file.
22090         * modules/unictype/property-ideographic-tests: New file.
22091         * modules/unictype/property-ids-binary-operator-tests: New file.
22092         * modules/unictype/property-ids-trinary-operator-tests: New file.
22093         * modules/unictype/property-ignorable-control-tests: New file.
22094         * modules/unictype/property-iso-control-tests: New file.
22095         * modules/unictype/property-join-control-tests: New file.
22096         * modules/unictype/property-left-of-pair-tests: New file.
22097         * modules/unictype/property-line-separator-tests: New file.
22098         * modules/unictype/property-logical-order-exception-tests: New file.
22099         * modules/unictype/property-lowercase-tests: New file.
22100         * modules/unictype/property-math-tests: New file.
22101         * modules/unictype/property-non-break-tests: New file.
22102         * modules/unictype/property-not-a-character-tests: New file.
22103         * modules/unictype/property-numeric-tests: New file.
22104         * modules/unictype/property-other-alphabetic-tests: New file.
22105         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
22106         * modules/unictype/property-other-grapheme-extend-tests: New file.
22107         * modules/unictype/property-other-id-continue-tests: New file.
22108         * modules/unictype/property-other-id-start-tests: New file.
22109         * modules/unictype/property-other-lowercase-tests: New file.
22110         * modules/unictype/property-other-math-tests: New file.
22111         * modules/unictype/property-other-uppercase-tests: New file.
22112         * modules/unictype/property-paired-punctuation-tests: New file.
22113         * modules/unictype/property-paragraph-separator-tests: New file.
22114         * modules/unictype/property-pattern-syntax-tests: New file.
22115         * modules/unictype/property-pattern-white-space-tests: New file.
22116         * modules/unictype/property-private-use-tests: New file.
22117         * modules/unictype/property-punctuation-tests: New file.
22118         * modules/unictype/property-quotation-mark-tests: New file.
22119         * modules/unictype/property-radical-tests: New file.
22120         * modules/unictype/property-sentence-terminal-tests: New file.
22121         * modules/unictype/property-soft-dotted-tests: New file.
22122         * modules/unictype/property-space-tests: New file.
22123         * modules/unictype/property-terminal-punctuation-tests: New file.
22124         * modules/unictype/property-test-tests: New file.
22125         * modules/unictype/property-titlecase-tests: New file.
22126         * modules/unictype/property-unassigned-code-value-tests: New file.
22127         * modules/unictype/property-unified-ideograph-tests: New file.
22128         * modules/unictype/property-uppercase-tests: New file.
22129         * modules/unictype/property-variation-selector-tests: New file.
22130         * modules/unictype/property-white-space-tests: New file.
22131         * modules/unictype/property-xid-continue-tests: New file.
22132         * modules/unictype/property-xid-start-tests: New file.
22133         * modules/unictype/property-zero-width-tests: New file.
22134         * modules/unictype/scripts-tests: New file.
22135         * modules/unictype/syntax-c-ident-tests: New file.
22136         * modules/unictype/syntax-c-whitespace-tests: New file.
22137         * modules/unictype/syntax-java-ident-tests: New file.
22138         * modules/unictype/syntax-java-whitespace-tests: New file.
22139         * tests/unictype/test-bidi_byname.c: New file.
22140         * tests/unictype/test-bidi_name.c: New file.
22141         * tests/unictype/test-bidi_of.c: New file.
22142         * tests/unictype/test-bidi_test.c: New file.
22143         * tests/unictype/test-block_list.c: New file.
22144         * tests/unictype/test-block_of.c: New file.
22145         * tests/unictype/test-block_test.c: New file.
22146         * tests/unictype/test-categ_and.c: New file.
22147         * tests/unictype/test-categ_and_not.c: New file.
22148         * tests/unictype/test-categ_byname.c: New file.
22149         * tests/unictype/test-categ_name.c: New file.
22150         * tests/unictype/test-categ_none.c: New file.
22151         * tests/unictype/test-categ_of.c: New file.
22152         * tests/unictype/test-categ_or.c: New file.
22153         * tests/unictype/test-categ_test_withtable.c: New file.
22154         * tests/unictype/test-combining.c: New file.
22155         * tests/unictype/test-decdigit.c: New file.
22156         * tests/unictype/test-digit.c: New file.
22157         * tests/unictype/test-mirror.c: New file.
22158         * tests/unictype/test-numeric.c: New file.
22159         * tests/unictype/test-pr_byname.c: New file.
22160         * tests/unictype/test-pr_test.c: New file.
22161         * tests/unictype/test-predicate-part1.h: New file.
22162         * tests/unictype/test-predicate-part2.h: New file.
22163         * tests/unictype/test-scripts.c: New file.
22164         * tests/unictype/test-sy_c_ident.c: New file.
22165         * tests/unictype/test-sy_java_ident.c: New file.
22166
22167         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
22168         for Unicode 5.0.0.
22169         * tests/unictype/test-categ_Cc.c: Likewise.
22170         * tests/unictype/test-categ_Cf.c: Likewise.
22171         * tests/unictype/test-categ_Cn.c: Likewise.
22172         * tests/unictype/test-categ_Co.c: Likewise.
22173         * tests/unictype/test-categ_Cs.c: Likewise.
22174         * tests/unictype/test-categ_L.c: Likewise.
22175         * tests/unictype/test-categ_Ll.c: Likewise.
22176         * tests/unictype/test-categ_Lm.c: Likewise.
22177         * tests/unictype/test-categ_Lo.c: Likewise.
22178         * tests/unictype/test-categ_Lt.c: Likewise.
22179         * tests/unictype/test-categ_Lu.c: Likewise.
22180         * tests/unictype/test-categ_M.c: Likewise.
22181         * tests/unictype/test-categ_Mc.c: Likewise.
22182         * tests/unictype/test-categ_Me.c: Likewise.
22183         * tests/unictype/test-categ_Mn.c: Likewise.
22184         * tests/unictype/test-categ_N.c: Likewise.
22185         * tests/unictype/test-categ_Nd.c: Likewise.
22186         * tests/unictype/test-categ_Nl.c: Likewise.
22187         * tests/unictype/test-categ_No.c: Likewise.
22188         * tests/unictype/test-categ_P.c: Likewise.
22189         * tests/unictype/test-categ_Pc.c: Likewise.
22190         * tests/unictype/test-categ_Pd.c: Likewise.
22191         * tests/unictype/test-categ_Pe.c: Likewise.
22192         * tests/unictype/test-categ_Pf.c: Likewise.
22193         * tests/unictype/test-categ_Pi.c: Likewise.
22194         * tests/unictype/test-categ_Po.c: Likewise.
22195         * tests/unictype/test-categ_Ps.c: Likewise.
22196         * tests/unictype/test-categ_S.c: Likewise.
22197         * tests/unictype/test-categ_Sc.c: Likewise.
22198         * tests/unictype/test-categ_Sk.c: Likewise.
22199         * tests/unictype/test-categ_Sm.c: Likewise.
22200         * tests/unictype/test-categ_So.c: Likewise.
22201         * tests/unictype/test-categ_Z.c: Likewise.
22202         * tests/unictype/test-categ_Zl.c: Likewise.
22203         * tests/unictype/test-categ_Zp.c: Likewise.
22204         * tests/unictype/test-categ_Zs.c: Likewise.
22205         * tests/unictype/test-ctype_alnum.c: Likewise.
22206         * tests/unictype/test-ctype_alpha.c: Likewise.
22207         * tests/unictype/test-ctype_blank.c: Likewise.
22208         * tests/unictype/test-ctype_cntrl.c: Likewise.
22209         * tests/unictype/test-ctype_digit.c: Likewise.
22210         * tests/unictype/test-ctype_graph.c: Likewise.
22211         * tests/unictype/test-ctype_lower.c: Likewise.
22212         * tests/unictype/test-ctype_print.c: Likewise.
22213         * tests/unictype/test-ctype_punct.c: Likewise.
22214         * tests/unictype/test-ctype_space.c: Likewise.
22215         * tests/unictype/test-ctype_upper.c: Likewise.
22216         * tests/unictype/test-ctype_xdigit.c: Likewise.
22217         * tests/unictype/test-decdigit.h: Likewise.
22218         * tests/unictype/test-digit.h: Likewise.
22219         * tests/unictype/test-numeric.h: Likewise.
22220         * tests/unictype/test-pr_alphabetic.c: Likewise.
22221         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
22222         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22223         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22224         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
22225         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22226         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
22227         * tests/unictype/test-pr_bidi_control.c: Likewise.
22228         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
22229         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
22230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22231         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22232         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22233         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22234         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22235         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22236         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
22237         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
22238         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
22239         * tests/unictype/test-pr_combining.c: Likewise.
22240         * tests/unictype/test-pr_composite.c: Likewise.
22241         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22242         * tests/unictype/test-pr_dash.c: Likewise.
22243         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22244         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
22245         * tests/unictype/test-pr_deprecated.c: Likewise.
22246         * tests/unictype/test-pr_diacritic.c: Likewise.
22247         * tests/unictype/test-pr_extender.c: Likewise.
22248         * tests/unictype/test-pr_format_control.c: Likewise.
22249         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22250         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22251         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22252         * tests/unictype/test-pr_hex_digit.c: Likewise.
22253         * tests/unictype/test-pr_hyphen.c: Likewise.
22254         * tests/unictype/test-pr_id_continue.c: Likewise.
22255         * tests/unictype/test-pr_id_start.c: Likewise.
22256         * tests/unictype/test-pr_ideographic.c: Likewise.
22257         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
22258         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
22259         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22260         * tests/unictype/test-pr_iso_control.c: Likewise.
22261         * tests/unictype/test-pr_join_control.c: Likewise.
22262         * tests/unictype/test-pr_left_of_pair.c: Likewise.
22263         * tests/unictype/test-pr_line_separator.c: Likewise.
22264         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22265         * tests/unictype/test-pr_lowercase.c: Likewise.
22266         * tests/unictype/test-pr_math.c: Likewise.
22267         * tests/unictype/test-pr_non_break.c: Likewise.
22268         * tests/unictype/test-pr_not_a_character.c: Likewise.
22269         * tests/unictype/test-pr_numeric.c: Likewise.
22270         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22271         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
22272         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
22273         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22274         * tests/unictype/test-pr_other_id_start.c: Likewise.
22275         * tests/unictype/test-pr_other_lowercase.c: Likewise.
22276         * tests/unictype/test-pr_other_math.c: Likewise.
22277         * tests/unictype/test-pr_other_uppercase.c: Likewise.
22278         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
22279         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
22280         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
22281         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
22282         * tests/unictype/test-pr_private_use.c: Likewise.
22283         * tests/unictype/test-pr_punctuation.c: Likewise.
22284         * tests/unictype/test-pr_quotation_mark.c: Likewise.
22285         * tests/unictype/test-pr_radical.c: Likewise.
22286         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22287         * tests/unictype/test-pr_soft_dotted.c: Likewise.
22288         * tests/unictype/test-pr_space.c: Likewise.
22289         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22290         * tests/unictype/test-pr_titlecase.c: Likewise.
22291         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22292         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22293         * tests/unictype/test-pr_uppercase.c: Likewise.
22294         * tests/unictype/test-pr_variation_selector.c: Likewise.
22295         * tests/unictype/test-pr_white_space.c: Likewise.
22296         * tests/unictype/test-pr_xid_continue.c: Likewise.
22297         * tests/unictype/test-pr_xid_start.c: Likewise.
22298         * tests/unictype/test-pr_zero_width.c: Likewise.
22299         * tests/unictype/test-sy_c_whitespace.c: Likewise.
22300         * tests/unictype/test-sy_java_whitespace.c: Likewise.
22301
22302 2007-11-12  Bruno Haible  <bruno@clisp.org>
22303
22304         Unicode character classification functions.
22305         * lib/unictype.h: New file.
22306         * modules/unictype/base: New file.
22307         * modules/unictype/category-L: New file.
22308         * modules/unictype/category-Lu: New file.
22309         * modules/unictype/category-Ll: New file.
22310         * modules/unictype/category-Lt: New file.
22311         * modules/unictype/category-Lm: New file.
22312         * modules/unictype/category-Lo: New file.
22313         * modules/unictype/category-M: New file.
22314         * modules/unictype/category-Mn: New file.
22315         * modules/unictype/category-Mc: New file.
22316         * modules/unictype/category-Me: New file.
22317         * modules/unictype/category-N: New file.
22318         * modules/unictype/category-Nd: New file.
22319         * modules/unictype/category-Nl: New file.
22320         * modules/unictype/category-No: New file.
22321         * modules/unictype/category-P: New file.
22322         * modules/unictype/category-Pc: New file.
22323         * modules/unictype/category-Pd: New file.
22324         * modules/unictype/category-Ps: New file.
22325         * modules/unictype/category-Pe: New file.
22326         * modules/unictype/category-Pi: New file.
22327         * modules/unictype/category-Pf: New file.
22328         * modules/unictype/category-Po: New file.
22329         * modules/unictype/category-S: New file.
22330         * modules/unictype/category-Sm: New file.
22331         * modules/unictype/category-Sc: New file.
22332         * modules/unictype/category-Sk: New file.
22333         * modules/unictype/category-So: New file.
22334         * modules/unictype/category-Z: New file.
22335         * modules/unictype/category-Zs: New file.
22336         * modules/unictype/category-Zl: New file.
22337         * modules/unictype/category-Zp: New file.
22338         * modules/unictype/category-C: New file.
22339         * modules/unictype/category-Cc: New file.
22340         * modules/unictype/category-Cf: New file.
22341         * modules/unictype/category-Cs: New file.
22342         * modules/unictype/category-Co: New file.
22343         * modules/unictype/category-Cn: New file.
22344         * modules/unictype/category-or: New file.
22345         * modules/unictype/category-of: New file.
22346         * modules/unictype/category-test: New file.
22347         * modules/unictype/category-test-withtable: New file.
22348         * modules/unictype/category-byname: New file.
22349         * modules/unictype/category-none: New file.
22350         * modules/unictype/category-and: New file.
22351         * modules/unictype/category-and-not: New file.
22352         * modules/unictype/category-name: New file.
22353         * modules/unictype/combining-class: New file.
22354         * modules/unictype/category-all: New file.
22355         * modules/unictype/bidicategory-all: New file.
22356         * modules/unictype/bidicategory-byname: New file.
22357         * modules/unictype/bidicategory-name: New file.
22358         * modules/unictype/bidicategory-of: New file.
22359         * modules/unictype/bidicategory-test: New file.
22360         * modules/unictype/decimal-digit: New file.
22361         * modules/unictype/digit: New file.
22362         * modules/unictype/numeric: New file.
22363         * modules/unictype/mirror: New file.
22364         * modules/unictype/property-white-space: New file.
22365         * modules/unictype/property-alphabetic: New file.
22366         * modules/unictype/property-other-alphabetic: New file.
22367         * modules/unictype/property-not-a-character: New file.
22368         * modules/unictype/property-default-ignorable-code-point: New file.
22369         * modules/unictype/property-other-default-ignorable-code-point: New
22370         file.
22371         * modules/unictype/property-deprecated: New file.
22372         * modules/unictype/property-logical-order-exception: New file.
22373         * modules/unictype/property-variation-selector: New file.
22374         * modules/unictype/property-private-use: New file.
22375         * modules/unictype/property-unassigned-code-value: New file.
22376         * modules/unictype/property-uppercase: New file.
22377         * modules/unictype/property-other-uppercase: New file.
22378         * modules/unictype/property-lowercase: New file.
22379         * modules/unictype/property-other-lowercase: New file.
22380         * modules/unictype/property-titlecase: New file.
22381         * modules/unictype/property-soft-dotted: New file.
22382         * modules/unictype/property-id-start: New file.
22383         * modules/unictype/property-other-id-start: New file.
22384         * modules/unictype/property-id-continue: New file.
22385         * modules/unictype/property-other-id-continue: New file.
22386         * modules/unictype/property-xid-start: New file.
22387         * modules/unictype/property-xid-continue: New file.
22388         * modules/unictype/property-pattern-white-space: New file.
22389         * modules/unictype/property-pattern-syntax: New file.
22390         * modules/unictype/property-join-control: New file.
22391         * modules/unictype/property-grapheme-base: New file.
22392         * modules/unictype/property-grapheme-extend: New file.
22393         * modules/unictype/property-other-grapheme-extend: New file.
22394         * modules/unictype/property-grapheme-link: New file.
22395         * modules/unictype/property-bidi-control: New file.
22396         * modules/unictype/property-bidi-left-to-right: New file.
22397         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
22398         * modules/unictype/property-bidi-arabic-right-to-left: New file.
22399         * modules/unictype/property-bidi-european-digit: New file.
22400         * modules/unictype/property-bidi-eur-num-separator: New file.
22401         * modules/unictype/property-bidi-eur-num-terminator: New file.
22402         * modules/unictype/property-bidi-arabic-digit: New file.
22403         * modules/unictype/property-bidi-common-separator: New file.
22404         * modules/unictype/property-bidi-block-separator: New file.
22405         * modules/unictype/property-bidi-segment-separator: New file.
22406         * modules/unictype/property-bidi-whitespace: New file.
22407         * modules/unictype/property-bidi-non-spacing-mark: New file.
22408         * modules/unictype/property-bidi-boundary-neutral: New file.
22409         * modules/unictype/property-bidi-pdf: New file.
22410         * modules/unictype/property-bidi-embedding-or-override: New file.
22411         * modules/unictype/property-bidi-other-neutral: New file.
22412         * modules/unictype/property-hex-digit: New file.
22413         * modules/unictype/property-ascii-hex-digit: New file.
22414         * modules/unictype/property-ideographic: New file.
22415         * modules/unictype/property-unified-ideograph: New file.
22416         * modules/unictype/property-radical: New file.
22417         * modules/unictype/property-ids-binary-operator: New file.
22418         * modules/unictype/property-ids-trinary-operator: New file.
22419         * modules/unictype/property-zero-width: New file.
22420         * modules/unictype/property-space: New file.
22421         * modules/unictype/property-non-break: New file.
22422         * modules/unictype/property-iso-control: New file.
22423         * modules/unictype/property-format-control: New file.
22424         * modules/unictype/property-dash: New file.
22425         * modules/unictype/property-hyphen: New file.
22426         * modules/unictype/property-punctuation: New file.
22427         * modules/unictype/property-line-separator: New file.
22428         * modules/unictype/property-paragraph-separator: New file.
22429         * modules/unictype/property-quotation-mark: New file.
22430         * modules/unictype/property-sentence-terminal: New file.
22431         * modules/unictype/property-terminal-punctuation: New file.
22432         * modules/unictype/property-currency-symbol: New file.
22433         * modules/unictype/property-math: New file.
22434         * modules/unictype/property-other-math: New file.
22435         * modules/unictype/property-paired-punctuation: New file.
22436         * modules/unictype/property-left-of-pair: New file.
22437         * modules/unictype/property-combining: New file.
22438         * modules/unictype/property-composite: New file.
22439         * modules/unictype/property-decimal-digit: New file.
22440         * modules/unictype/property-numeric: New file.
22441         * modules/unictype/property-diacritic: New file.
22442         * modules/unictype/property-extender: New file.
22443         * modules/unictype/property-ignorable-control: New file.
22444         * modules/unictype/property-test: New file.
22445         * modules/unictype/property-byname: New file.
22446         * modules/unictype/property-all: New file.
22447         * modules/unictype/scripts: New file.
22448         * modules/unictype/scripts-all: New file.
22449         * modules/unictype/block-of: New file.
22450         * modules/unictype/block-test: New file.
22451         * modules/unictype/block-list: New file.
22452         * modules/unictype/block-all: New file.
22453         * modules/unictype/syntax-c-whitespace: New file.
22454         * modules/unictype/syntax-java-whitespace: New file.
22455         * modules/unictype/syntax-c-ident: New file.
22456         * modules/unictype/syntax-java-ident: New file.
22457         * modules/unictype/ctype-alnum: New file.
22458         * modules/unictype/ctype-alpha: New file.
22459         * modules/unictype/ctype-cntrl: New file.
22460         * modules/unictype/ctype-digit: New file.
22461         * modules/unictype/ctype-graph: New file.
22462         * modules/unictype/ctype-lower: New file.
22463         * modules/unictype/ctype-print: New file.
22464         * modules/unictype/ctype-punct: New file.
22465         * modules/unictype/ctype-space: New file.
22466         * modules/unictype/ctype-upper: New file.
22467         * modules/unictype/ctype-xdigit: New file.
22468         * modules/unictype/ctype-blank: New file.
22469         * lib/unictype/bidi_byname.c: New file.
22470         * lib/unictype/bidi_name.c: New file.
22471         * lib/unictype/bidi_of.c: New file.
22472         * lib/unictype/bidi_test.c: New file.
22473         * lib/unictype/bitmap.h: New file.
22474         * lib/unictype/block_test.c: New file.
22475         * lib/unictype/blocks.c: New file.
22476         * lib/unictype/categ_C.c: New file.
22477         * lib/unictype/categ_Cc.c: New file.
22478         * lib/unictype/categ_Cf.c: New file.
22479         * lib/unictype/categ_Cn.c: New file.
22480         * lib/unictype/categ_Co.c: New file.
22481         * lib/unictype/categ_Cs.c: New file.
22482         * lib/unictype/categ_L.c: New file.
22483         * lib/unictype/categ_Ll.c: New file.
22484         * lib/unictype/categ_Lm.c: New file.
22485         * lib/unictype/categ_Lo.c: New file.
22486         * lib/unictype/categ_Lt.c: New file.
22487         * lib/unictype/categ_Lu.c: New file.
22488         * lib/unictype/categ_M.c: New file.
22489         * lib/unictype/categ_Mc.c: New file.
22490         * lib/unictype/categ_Me.c: New file.
22491         * lib/unictype/categ_Mn.c: New file.
22492         * lib/unictype/categ_N.c: New file.
22493         * lib/unictype/categ_Nd.c: New file.
22494         * lib/unictype/categ_Nl.c: New file.
22495         * lib/unictype/categ_No.c: New file.
22496         * lib/unictype/categ_P.c: New file.
22497         * lib/unictype/categ_Pc.c: New file.
22498         * lib/unictype/categ_Pd.c: New file.
22499         * lib/unictype/categ_Pe.c: New file.
22500         * lib/unictype/categ_Pf.c: New file.
22501         * lib/unictype/categ_Pi.c: New file.
22502         * lib/unictype/categ_Po.c: New file.
22503         * lib/unictype/categ_Ps.c: New file.
22504         * lib/unictype/categ_S.c: New file.
22505         * lib/unictype/categ_Sc.c: New file.
22506         * lib/unictype/categ_Sk.c: New file.
22507         * lib/unictype/categ_Sm.c: New file.
22508         * lib/unictype/categ_So.c: New file.
22509         * lib/unictype/categ_Z.c: New file.
22510         * lib/unictype/categ_Zl.c: New file.
22511         * lib/unictype/categ_Zp.c: New file.
22512         * lib/unictype/categ_Zs.c: New file.
22513         * lib/unictype/categ_and.c: New file.
22514         * lib/unictype/categ_and_not.c: New file.
22515         * lib/unictype/categ_byname.c: New file.
22516         * lib/unictype/categ_name.c: New file.
22517         * lib/unictype/categ_none.c: New file.
22518         * lib/unictype/categ_of.c: New file.
22519         * lib/unictype/categ_or.c: New file.
22520         * lib/unictype/categ_test.c: New file.
22521         * lib/unictype/combining.c: New file.
22522         * lib/unictype/ctype_alnum.c: New file.
22523         * lib/unictype/ctype_alpha.c: New file.
22524         * lib/unictype/ctype_blank.c: New file.
22525         * lib/unictype/ctype_cntrl.c: New file.
22526         * lib/unictype/ctype_digit.c: New file.
22527         * lib/unictype/ctype_graph.c: New file.
22528         * lib/unictype/ctype_lower.c: New file.
22529         * lib/unictype/ctype_print.c: New file.
22530         * lib/unictype/ctype_punct.c: New file.
22531         * lib/unictype/ctype_space.c: New file.
22532         * lib/unictype/ctype_upper.c: New file.
22533         * lib/unictype/ctype_xdigit.c: New file.
22534         * lib/unictype/decdigit.c: New file.
22535         * lib/unictype/digit.c: New file.
22536         * lib/unictype/identsyntaxmap.h: New file.
22537         * lib/unictype/mirror.c: New file.
22538         * lib/unictype/numeric.c: New file.
22539         * lib/unictype/pr_alphabetic.c: New file.
22540         * lib/unictype/pr_ascii_hex_digit.c: New file.
22541         * lib/unictype/pr_bidi_arabic_digit.c: New file.
22542         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
22543         * lib/unictype/pr_bidi_block_separator.c: New file.
22544         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
22545         * lib/unictype/pr_bidi_common_separator.c: New file.
22546         * lib/unictype/pr_bidi_control.c: New file.
22547         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
22548         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
22549         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
22550         * lib/unictype/pr_bidi_european_digit.c: New file.
22551         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
22552         * lib/unictype/pr_bidi_left_to_right.c: New file.
22553         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
22554         * lib/unictype/pr_bidi_other_neutral.c: New file.
22555         * lib/unictype/pr_bidi_pdf.c: New file.
22556         * lib/unictype/pr_bidi_segment_separator.c: New file.
22557         * lib/unictype/pr_bidi_whitespace.c: New file.
22558         * lib/unictype/pr_byname.c: New file.
22559         * lib/unictype/pr_byname.gperf: New file.
22560         * lib/unictype/pr_combining.c: New file.
22561         * lib/unictype/pr_composite.c: New file.
22562         * lib/unictype/pr_currency_symbol.c: New file.
22563         * lib/unictype/pr_dash.c: New file.
22564         * lib/unictype/pr_decimal_digit.c: New file.
22565         * lib/unictype/pr_default_ignorable_code_point.c: New file.
22566         * lib/unictype/pr_deprecated.c: New file.
22567         * lib/unictype/pr_diacritic.c: New file.
22568         * lib/unictype/pr_extender.c: New file.
22569         * lib/unictype/pr_format_control.c: New file.
22570         * lib/unictype/pr_grapheme_base.c: New file.
22571         * lib/unictype/pr_grapheme_extend.c: New file.
22572         * lib/unictype/pr_grapheme_link.c: New file.
22573         * lib/unictype/pr_hex_digit.c: New file.
22574         * lib/unictype/pr_hyphen.c: New file.
22575         * lib/unictype/pr_id_continue.c: New file.
22576         * lib/unictype/pr_id_start.c: New file.
22577         * lib/unictype/pr_ideographic.c: New file.
22578         * lib/unictype/pr_ids_binary_operator.c: New file.
22579         * lib/unictype/pr_ids_trinary_operator.c: New file.
22580         * lib/unictype/pr_ignorable_control.c: New file.
22581         * lib/unictype/pr_iso_control.c: New file.
22582         * lib/unictype/pr_join_control.c: New file.
22583         * lib/unictype/pr_left_of_pair.c: New file.
22584         * lib/unictype/pr_line_separator.c: New file.
22585         * lib/unictype/pr_logical_order_exception.c: New file.
22586         * lib/unictype/pr_lowercase.c: New file.
22587         * lib/unictype/pr_math.c: New file.
22588         * lib/unictype/pr_non_break.c: New file.
22589         * lib/unictype/pr_not_a_character.c: New file.
22590         * lib/unictype/pr_numeric.c: New file.
22591         * lib/unictype/pr_other_alphabetic.c: New file.
22592         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
22593         * lib/unictype/pr_other_grapheme_extend.c: New file.
22594         * lib/unictype/pr_other_id_continue.c: New file.
22595         * lib/unictype/pr_other_id_start.c: New file.
22596         * lib/unictype/pr_other_lowercase.c: New file.
22597         * lib/unictype/pr_other_math.c: New file.
22598         * lib/unictype/pr_other_uppercase.c: New file.
22599         * lib/unictype/pr_paired_punctuation.c: New file.
22600         * lib/unictype/pr_paragraph_separator.c: New file.
22601         * lib/unictype/pr_pattern_syntax.c: New file.
22602         * lib/unictype/pr_pattern_white_space.c: New file.
22603         * lib/unictype/pr_private_use.c: New file.
22604         * lib/unictype/pr_punctuation.c: New file.
22605         * lib/unictype/pr_quotation_mark.c: New file.
22606         * lib/unictype/pr_radical.c: New file.
22607         * lib/unictype/pr_sentence_terminal.c: New file.
22608         * lib/unictype/pr_soft_dotted.c: New file.
22609         * lib/unictype/pr_space.c: New file.
22610         * lib/unictype/pr_terminal_punctuation.c: New file.
22611         * lib/unictype/pr_test.c: New file.
22612         * lib/unictype/pr_titlecase.c: New file.
22613         * lib/unictype/pr_unassigned_code_value.c: New file.
22614         * lib/unictype/pr_unified_ideograph.c: New file.
22615         * lib/unictype/pr_uppercase.c: New file.
22616         * lib/unictype/pr_variation_selector.c: New file.
22617         * lib/unictype/pr_white_space.c: New file.
22618         * lib/unictype/pr_xid_continue.c: New file.
22619         * lib/unictype/pr_xid_start.c: New file.
22620         * lib/unictype/pr_zero_width.c: New file.
22621         * lib/unictype/scripts.c: New file.
22622         * lib/unictype/sy_c_ident.c: New file.
22623         * lib/unictype/sy_c_whitespace.c: New file.
22624         * lib/unictype/sy_java_ident.c: New file.
22625         * lib/unictype/sy_java_whitespace.c: New file.
22626
22627         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
22628         Unicode 5.0.0.
22629         * lib/unictype/blocks.h: Likewise.
22630         * lib/unictype/categ_C.h: Likewise.
22631         * lib/unictype/categ_Cc.h: Likewise.
22632         * lib/unictype/categ_Cf.h: Likewise.
22633         * lib/unictype/categ_Cn.h: Likewise.
22634         * lib/unictype/categ_Co.h: Likewise.
22635         * lib/unictype/categ_Cs.h: Likewise.
22636         * lib/unictype/categ_L.h: Likewise.
22637         * lib/unictype/categ_Ll.h: Likewise.
22638         * lib/unictype/categ_Lm.h: Likewise.
22639         * lib/unictype/categ_Lo.h: Likewise.
22640         * lib/unictype/categ_Lt.h: Likewise.
22641         * lib/unictype/categ_Lu.h: Likewise.
22642         * lib/unictype/categ_M.h: Likewise.
22643         * lib/unictype/categ_Mc.h: Likewise.
22644         * lib/unictype/categ_Me.h: Likewise.
22645         * lib/unictype/categ_Mn.h: Likewise.
22646         * lib/unictype/categ_N.h: Likewise.
22647         * lib/unictype/categ_Nd.h: Likewise.
22648         * lib/unictype/categ_Nl.h: Likewise.
22649         * lib/unictype/categ_No.h: Likewise.
22650         * lib/unictype/categ_P.h: Likewise.
22651         * lib/unictype/categ_Pc.h: Likewise.
22652         * lib/unictype/categ_Pd.h: Likewise.
22653         * lib/unictype/categ_Pe.h: Likewise.
22654         * lib/unictype/categ_Pf.h: Likewise.
22655         * lib/unictype/categ_Pi.h: Likewise.
22656         * lib/unictype/categ_Po.h: Likewise.
22657         * lib/unictype/categ_Ps.h: Likewise.
22658         * lib/unictype/categ_S.h: Likewise.
22659         * lib/unictype/categ_Sc.h: Likewise.
22660         * lib/unictype/categ_Sk.h: Likewise.
22661         * lib/unictype/categ_Sm.h: Likewise.
22662         * lib/unictype/categ_So.h: Likewise.
22663         * lib/unictype/categ_Z.h: Likewise.
22664         * lib/unictype/categ_Zl.h: Likewise.
22665         * lib/unictype/categ_Zp.h: Likewise.
22666         * lib/unictype/categ_Zs.h: Likewise.
22667         * lib/unictype/categ_of.h: Likewise.
22668         * lib/unictype/combining.h: Likewise.
22669         * lib/unictype/ctype_alnum.h: Likewise.
22670         * lib/unictype/ctype_alpha.h: Likewise.
22671         * lib/unictype/ctype_blank.h: Likewise.
22672         * lib/unictype/ctype_cntrl.h: Likewise.
22673         * lib/unictype/ctype_digit.h: Likewise.
22674         * lib/unictype/ctype_graph.h: Likewise.
22675         * lib/unictype/ctype_lower.h: Likewise.
22676         * lib/unictype/ctype_print.h: Likewise.
22677         * lib/unictype/ctype_punct.h: Likewise.
22678         * lib/unictype/ctype_space.h: Likewise.
22679         * lib/unictype/ctype_upper.h: Likewise.
22680         * lib/unictype/ctype_xdigit.h: Likewise.
22681         * lib/unictype/decdigit.h: Likewise.
22682         * lib/unictype/digit.h: Likewise.
22683         * lib/unictype/mirror.h: Likewise.
22684         * lib/unictype/numeric.h: Likewise.
22685         * lib/unictype/pr_alphabetic.h: Likewise.
22686         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22687         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22688         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22689         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22690         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22691         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22692         * lib/unictype/pr_bidi_control.h: Likewise.
22693         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22694         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22695         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22696         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22697         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22698         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22699         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22700         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22701         * lib/unictype/pr_bidi_pdf.h: Likewise.
22702         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22703         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22704         * lib/unictype/pr_combining.h: Likewise.
22705         * lib/unictype/pr_composite.h: Likewise.
22706         * lib/unictype/pr_currency_symbol.h: Likewise.
22707         * lib/unictype/pr_dash.h: Likewise.
22708         * lib/unictype/pr_decimal_digit.h: Likewise.
22709         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22710         * lib/unictype/pr_deprecated.h: Likewise.
22711         * lib/unictype/pr_diacritic.h: Likewise.
22712         * lib/unictype/pr_extender.h: Likewise.
22713         * lib/unictype/pr_format_control.h: Likewise.
22714         * lib/unictype/pr_grapheme_base.h: Likewise.
22715         * lib/unictype/pr_grapheme_extend.h: Likewise.
22716         * lib/unictype/pr_grapheme_link.h: Likewise.
22717         * lib/unictype/pr_hex_digit.h: Likewise.
22718         * lib/unictype/pr_hyphen.h: Likewise.
22719         * lib/unictype/pr_id_continue.h: Likewise.
22720         * lib/unictype/pr_id_start.h: Likewise.
22721         * lib/unictype/pr_ideographic.h: Likewise.
22722         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22723         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22724         * lib/unictype/pr_ignorable_control.h: Likewise.
22725         * lib/unictype/pr_iso_control.h: Likewise.
22726         * lib/unictype/pr_join_control.h: Likewise.
22727         * lib/unictype/pr_left_of_pair.h: Likewise.
22728         * lib/unictype/pr_line_separator.h: Likewise.
22729         * lib/unictype/pr_logical_order_exception.h: Likewise.
22730         * lib/unictype/pr_lowercase.h: Likewise.
22731         * lib/unictype/pr_math.h: Likewise.
22732         * lib/unictype/pr_non_break.h: Likewise.
22733         * lib/unictype/pr_not_a_character.h: Likewise.
22734         * lib/unictype/pr_numeric.h: Likewise.
22735         * lib/unictype/pr_other_alphabetic.h: Likewise.
22736         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22737         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22738         * lib/unictype/pr_other_id_continue.h: Likewise.
22739         * lib/unictype/pr_other_id_start.h: Likewise.
22740         * lib/unictype/pr_other_lowercase.h: Likewise.
22741         * lib/unictype/pr_other_math.h: Likewise.
22742         * lib/unictype/pr_other_uppercase.h: Likewise.
22743         * lib/unictype/pr_paired_punctuation.h: Likewise.
22744         * lib/unictype/pr_paragraph_separator.h: Likewise.
22745         * lib/unictype/pr_pattern_syntax.h: Likewise.
22746         * lib/unictype/pr_pattern_white_space.h: Likewise.
22747         * lib/unictype/pr_private_use.h: Likewise.
22748         * lib/unictype/pr_punctuation.h: Likewise.
22749         * lib/unictype/pr_quotation_mark.h: Likewise.
22750         * lib/unictype/pr_radical.h: Likewise.
22751         * lib/unictype/pr_sentence_terminal.h: Likewise.
22752         * lib/unictype/pr_soft_dotted.h: Likewise.
22753         * lib/unictype/pr_space.h: Likewise.
22754         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22755         * lib/unictype/pr_titlecase.h: Likewise.
22756         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22757         * lib/unictype/pr_unified_ideograph.h: Likewise.
22758         * lib/unictype/pr_uppercase.h: Likewise.
22759         * lib/unictype/pr_variation_selector.h: Likewise.
22760         * lib/unictype/pr_white_space.h: Likewise.
22761         * lib/unictype/pr_xid_continue.h: Likewise.
22762         * lib/unictype/pr_xid_start.h: Likewise.
22763         * lib/unictype/pr_zero_width.h: Likewise.
22764         * lib/unictype/scripts.h: Likewise.
22765         * lib/unictype/scripts_byname.gperf: Likewise.
22766         * lib/unictype/sy_c_ident.h: Likewise.
22767         * lib/unictype/sy_c_whitespace.h: Likewise.
22768         * lib/unictype/sy_java_ident.h: Likewise.
22769         * lib/unictype/sy_java_whitespace.h: Likewise.
22770
22771         * lib/unictype/Makefile: New file.
22772         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
22773         glibc.
22774         * lib/unictype/3level.h: New file, copied from glibc.
22775         * lib/unictype/3levelbit.h: New file.
22776
22777 2007-11-11  Bruno Haible  <bruno@clisp.org>
22778
22779         * modules/gperf: New file.
22780         * modules/iconv_open (Depends-on): Add it.
22781         (Makefile.am): Remove the GPERF definition.
22782
22783 2007-11-11  Bruno Haible  <bruno@clisp.org>
22784
22785         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
22786         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
22787
22788 2007-11-11  Bruno Haible  <bruno@clisp.org>
22789
22790         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
22791         (usage): Remove function.
22792
22793 2007-11-11  Bruno Haible  <bruno@clisp.org>
22794
22795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
22796         gl_FUNC_CEILF_LIBS.
22797         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
22798         gl_FUNC_CEIL_LIBS.
22799         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
22800         gl_FUNC_CEILL_LIBS.
22801         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
22802         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
22803         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
22804
22805 2007-11-11  Bruno Haible  <bruno@clisp.org>
22806
22807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
22808         roundf were declared but do not exist on functions.
22809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
22810         roundl were declared but do not exist on functions.
22811         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
22812         HAVE_FLOORL_AND_CEILL, respectively.
22813         Needed for Sun C on Solaris 10.
22814
22815 2007-11-11  Bruno Haible  <bruno@clisp.org>
22816
22817         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
22818         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
22819         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
22820         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
22821         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
22822         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
22823         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
22824         HAVE_DECL_ROUNDF.
22825         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
22826         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
22827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
22828         of HAVE_DECL_ROUND*.
22829         * modules/math (Makefile.am): Update.
22830
22831 2007-11-10  Bruno Haible  <bruno@clisp.org>
22832
22833         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
22834         ptrdiff_t as m4/intl.m4.
22835
22836 2007-11-10  Jim Meyering  <meyering@redhat.com>
22837
22838         Avoid link failure for the argmatch test.
22839         * tests/test-argmatch.c (usage): Define function to avoid a link
22840         failure: argmatch_die requires a usage function.
22841
22842 2007-11-09  Bruno Haible  <bruno@clisp.org>
22843
22844         * doc/functions/snprintf.texi: Mention BeOS deficiency.
22845         * doc/functions/vsnprintf.texi: Likewise.
22846         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
22847         with a size argument < 2.
22848
22849 2007-11-09  Bruno Haible  <bruno@clisp.org>
22850
22851         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
22852         buffer. Fixes an inefficiency introduced on 2007-11-03.
22853
22854 2007-11-09  Bruno Haible  <bruno@clisp.org>
22855
22856         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
22857         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
22858
22859 2007-11-08  Jim Meyering  <meyering@redhat.com>
22860
22861         Change cache variable name prefix "jm_" to "gl_" everywhere.
22862         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
22863         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
22864         * m4/uptime.m4: s/gl_/jm_/
22865
22866 2007-11-07  Bruno Haible  <bruno@clisp.org>
22867
22868         Update to GNU gettext 0.17.
22869         * m4/intl.m4: Update to GNU gettext 0.17.
22870         * m4/po.m4: Likewise.
22871         * modules/gettext (Files): Remove m4/ulonglong.m4.
22872         (configure.ac): Require gettext infrastructure from version 0.17.
22873
22874 2007-11-06  Bruno Haible  <bruno@clisp.org>
22875
22876         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
22877         symbolic values are not defined in a public header.
22878         * lib/freadable.c (freadable) [QNX]: Likewise.
22879         * lib/freadahead.c (freadahead) [QNX]: Likewise.
22880         * lib/freading.c (freading) [QNX]: Likewise.
22881         * lib/fseterr.c (fseterr) [QNX]: Likewise.
22882         * lib/fwritable.c (fwritable) [QNX]: Likewise.
22883         * lib/fwriting.c (fwriting) [QNX]: Likewise.
22884         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
22885         Reported by Alain Magloire.
22886
22887         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
22888
22889 2007-11-05  Bruno Haible  <bruno@clisp.org>
22890
22891         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
22892         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
22893         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
22894         Reported by Eric Blake.
22895
22896 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22897             Bruno Haible  <bruno@clisp.org>
22898
22899         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
22900         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
22901         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
22902         (malloc): Undefine also before including <stdlib.h>.
22903         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
22904         Needed on OSF/1 4.0.
22905
22906 2007-11-05  Jim Meyering  <meyering@redhat.com>
22907
22908         git-version-gen: sync from coreutils.
22909         * build-aux/git-version-gen: Add comments.
22910         Change the first '-' to '.' in the snapshot version string,
22911         e.g., 6.9-377-08144 -> 6.9.377-08144
22912         Remove first parameter.
22913         Don't declare a version "-dirty" merely because a time
22914         stamp has changed.
22915
22916 2007-11-04  Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/lock.h: Protect all macro definitions containing an 'if'
22919         statement through a "do { ... } while (0)".
22920         * lib/tls.h: Likewise.
22921
22922 2007-11-04  Bruno Haible  <bruno@clisp.org>
22923
22924         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
22925
22926 2007-11-04  Bruno Haible  <bruno@clisp.org>
22927
22928         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
22929         * modules/fprintf-posix (Depends-on): Add nocrash.
22930         * modules/snprintf-posix (Depends-on): Likewise.
22931         * modules/sprintf-posix (Depends-on): Likewise.
22932         * modules/vasnprintf-posix (Depends-on): Likewise.
22933         * modules/vasprintf-posix (Depends-on): Likewise.
22934         * modules/vfprintf-posix (Depends-on): Likewise.
22935         * modules/vsnprintf-posix (Depends-on): Likewise.
22936         * modules/vsprintf-posix (Depends-on): Likewise.
22937         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22938         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22939         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22940         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22941         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22942         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22943         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22944
22945 2007-11-04  Bruno Haible  <bruno@clisp.org>
22946
22947         * modules/nocrash: New file.
22948         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
22949         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
22950
22951 2007-11-04  Bruno Haible  <bruno@clisp.org>
22952
22953         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
22954         precision handling.
22955         * tests/test-vasprintf-posix.c (test_function): Likewise.
22956         * tests/test-snprintf-posix.h (test_function): Likewise.
22957         * tests/test-sprintf-posix.h (test_function): Likewise.
22958
22959         Fix *printf behaviour for large precisions on mingw and BeOS.
22960         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
22961         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
22962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
22963         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22965         gl_PRINTF_PRECISION and test its result. Invoke
22966         gl_PREREQ_VASNPRINTF_PRECISION.
22967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22974         * doc/functions/fprintf.texi: Update.
22975         * doc/functions/printf.texi: Update.
22976         * doc/functions/snprintf.texi: Update.
22977         * doc/functions/sprintf.texi: Update.
22978         * doc/functions/vfprintf.texi: Update.
22979         * doc/functions/vprintf.texi: Update.
22980         * doc/functions/vsnprintf.texi: Update.
22981         * doc/functions/vsprintf.texi: Update.
22982
22983 2007-11-04  Bruno Haible  <bruno@clisp.org>
22984
22985         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
22986
22987 2007-11-04  Bruno Haible  <bruno@clisp.org>
22988
22989         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
22990         Reported by Sylvain Beucler <beuc@gnu.org>.
22991
22992 2007-11-03  Bruno Haible  <bruno@clisp.org>
22993
22994         * tests/test-fprintf-posix2.sh: New file.
22995         * tests/test-fprintf-posix2.c: New file.
22996         * modules/fprintf-posix-tests (Files): Add them.
22997         (TESTS): Add test-fprintf-posix2.sh.
22998         (configure.ac): Check for getrlimit and setrlimit.
22999         (check_PROGRAMS): Add test-fprintf-posix2.
23000
23001         * tests/test-printf-posix2.sh: New file.
23002         * tests/test-printf-posix2.c: New file.
23003         * modules/printf-posix-tests (Files): Add them.
23004         (TESTS): Add test-printf-posix2.sh.
23005         (configure.ac): Check for getrlimit and setrlimit.
23006         (check_PROGRAMS): Add test-printf-posix2.
23007
23008         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
23009         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
23010         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
23011         (decode_double): New function, copied from decode_long_double.
23012         (scale10_round_decimal_decoded): New function, extracted from
23013         scale10_round_decimal_long_double.
23014         (scale10_round_decimal_long_double): Use it.
23015         (scale10_round_decimal_double): New function.
23016         (floorlog10): New function.
23017         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
23018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
23019         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23021         gl_PRINTF_ENOMEM and test its result. Invoke
23022         gl_PREREQ_VASNPRINTF_ENOMEM.
23023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23027         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23028         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23029         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23030         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
23031         * modules/snprintf-posix (Depends-on): Likewise.
23032         * modules/sprintf-posix (Depends-on): Likewise.
23033         * modules/vasnprintf-posix (Depends-on): Likewise.
23034         * modules/vasprintf-posix (Depends-on): Likewise.
23035         * modules/vfprintf-posix (Depends-on): Likewise.
23036         * modules/vsnprintf-posix (Depends-on): Likewise.
23037         * modules/vsprintf-posix (Depends-on): Likewise.
23038         * doc/functions/fprintf.texi: Update.
23039         * doc/functions/printf.texi: Update.
23040         * doc/functions/snprintf.texi: Update.
23041         * doc/functions/sprintf.texi: Update.
23042         * doc/functions/vfprintf.texi: Update.
23043         * doc/functions/vprintf.texi: Update.
23044         * doc/functions/vsnprintf.texi: Update.
23045         * doc/functions/vsprintf.texi: Update.
23046
23047 2007-11-03  Bruno Haible  <bruno@clisp.org>
23048
23049         * modules/frexp-nolibm-tests: New file.
23050
23051         * modules/frexp-nolibm: New file.
23052         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
23053
23054 2007-11-03  Bruno Haible  <bruno@clisp.org>
23055
23056         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
23057         value is C99 compliant.
23058         Needed for OSF/1 5.1.
23059
23060 2007-11-03  Bruno Haible  <bruno@clisp.org>
23061
23062         Fix out-of-memory handling of vasnprintf.
23063         * lib/printf-parse.c: Include <errno.h>.
23064         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
23065         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
23066         is already set.
23067
23068 2007-11-02  Eric Blake  <ebb9@byu.net>
23069
23070         Fix tests on cygwin.
23071         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
23072
23073 2007-11-01  Bruno Haible  <bruno@clisp.org>
23074
23075         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
23076         warning.
23077         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
23078         needed for POSIX compatibility.
23079
23080 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23081
23082         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
23083         for compatibility with GNU.
23084
23085 2007-11-01  Bruno Haible  <bruno@clisp.org>
23086
23087         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
23088         (putenv): Renamed from rpl_putenv. Change argument type from
23089         'const char *' to 'char *'.
23090         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
23091         of defining putenv in config.h, just set REPLACE_PUTENV.
23092         * modules/putenv (Depends-on): Add stdlib.
23093         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23094         (Include): Use <stdlib.h>.
23095         * lib/stdlib.in.h (putenv): New declaration.
23096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
23097         REPLACE_PUTENV.
23098         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
23099         REPLACE_PUTENV.
23100         Needed for MacOS X 10.5.0.
23101         Reported by Peter O'Gorman <peter@pogma.com>.
23102
23103 2007-11-01  Jim Meyering  <meyering@redhat.com>
23104
23105         Treat an empty date string exactly like "0".
23106         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
23107         if the remaining date string (to be parsed) is empty, use "0".
23108         Reported by Mischa Molhoek and discussed in this thread:
23109         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
23110
23111 2007-10-31  Bruno Haible  <bruno@clisp.org>
23112
23113         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
23114         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
23115         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
23116         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
23117         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
23118         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
23119
23120 2007-10-31  Bruno Haible  <bruno@clisp.org>
23121
23122         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
23123         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
23124         (AC_TYPE_LONG_LONG_INT): Use it.
23125         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
23126         it as well.
23127         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
23128         to m4/longlong.m4.
23129         * modules/stdint (Files): Remove m4/ulonglong.m4.
23130         * modules/strtoull (Files): Use m4/longlong.m4 instead of
23131         m4/ulonglong.m4.
23132         * modules/strtoumax (Files): Likewise.
23133
23134 2007-10-30  Bruno Haible  <bruno@clisp.org>
23135
23136         * modules/xvasprintf-posix: New file.
23137         Suggested by Eric Blake.
23138
23139 2007-10-30  Bruno Haible  <bruno@clisp.org>
23140
23141         * modules/xprintf-posix-tests: New file.
23142         * tests/test-xprintf-posix.sh: New file.
23143         * tests/test-xprintf-posix.c: New file.
23144         * tests/test-xfprintf-posix.c: New file.
23145
23146         * modules/xprintf-posix: New file.
23147
23148 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23149
23150         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
23151         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
23152         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
23153
23154 2007-10-29  Bruno Haible  <bruno@clisp.org>
23155
23156         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
23157         contain the special marker '_cv_'.
23158         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23159         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23160         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23161         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23162         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23163         Reported by Ralf Wildenhues.
23164
23165 2007-10-29  Bruno Haible  <bruno@clisp.org>
23166
23167         * gnulib-tool (func_import): When --lgpl is not specified, set
23168         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
23169         GPLv3.
23170         Reported by Simon Josefsson.
23171
23172 2007-10-28  Bruno Haible  <bruno@clisp.org>
23173
23174         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
23175         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
23176         HAVE_DECL_ISFINITE.
23177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23178         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
23179         HAVE_DECL_ISFINITE.
23180
23181 2007-10-28  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
23184         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
23185
23186 2007-10-28  Bruno Haible  <bruno@clisp.org>
23187
23188         Fix link errors with Sun C 5.0 on Solaris 10.
23189         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
23190         function is declared but not present in the compiler's libm.
23191         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23192         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23193         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
23194         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
23195         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
23196         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
23197         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
23198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23199         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
23200         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
23201         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
23202         HAVE_DECL_FLOORL.
23203
23204 2007-10-28  Bruno Haible  <bruno@clisp.org>
23205
23206         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
23207         gl_FUNC_FLOORL. Cache the result.
23208         (gl_FUNC_FLOORL): Use it.
23209         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
23210         gl_FUNC_CEILL. Cache the result.
23211         (gl_FUNC_CEILL): Use it.
23212
23213         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
23214         gl_FUNC_FLOOR. Cache the result.
23215         (gl_FUNC_FLOOR): Use it.
23216         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
23217         gl_FUNC_CEIL. Cache the result.
23218         (gl_FUNC_CEIL): Use it.
23219
23220         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
23221         gl_FUNC_FLOORF. Cache the result.
23222         (gl_FUNC_FLOORF): Use it.
23223         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
23224         gl_FUNC_CEILF. Cache the result.
23225         (gl_FUNC_CEILF): Use it.
23226
23227 2007-10-28  Bruno Haible  <bruno@clisp.org>
23228
23229         * gnulib-tool: Allow specifying the LGPL version number through
23230         --lgpl=2 or --lgpl=3.
23231         (func_usage): Document --lgpl with argument.
23232         Handle --lgpl=... arguments.
23233         (func_import): Recognize also gl_LGPL calls with an argument. When
23234         --lgpl=2 is used and the module's license is just LGPL, report an
23235         error. Set sed_transform_lib_file according to the lgpl variable. In
23236         the generated files, use --lgpl or gl_LGPL invocations with argument,
23237         if necessary.
23238         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
23239         an LGPv2+ license.
23240         * doc/gnulib-tool.texi (Modified imports): Update explanation of
23241         gl_LGPL macro.
23242
23243 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23244             Bruno Haible  <bruno@clisp.org>
23245
23246         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
23247         (u16_uctomb_aux): Likewise.
23248         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
23249         !HAVE_INLINE.
23250         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
23251
23252 2007-10-28  Bruno Haible  <bruno@clisp.org>
23253
23254         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
23255         Invoke AM_GETTEXT_OPTION if it exists.
23256         * modules/vasprintf: Likewise.
23257         * modules/verror: Likewise.
23258         * modules/xprintf: Likewise.
23259         * modules/xvasprintf: Likewise.
23260
23261 2007-10-27  Ben Pfaff  <blp@gnu.org>
23262
23263         * lib/math.in.h: Define isfinite macro and prototypes for
23264         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
23265         implementations.
23266         * m4/math_h.m4: New substitutions for isfinite module.
23267         * lib/isfinite.c: New file.
23268         * m4/isfinite.m4: New file.
23269         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
23270         * modules/isfinite: New file.
23271         * modules/isfinite-tests: New file.
23272         * tests/tests-isfinite.c: New file.
23273         * doc/functions/isfinite.texi: Mention isfinite module.
23274         * MODULES.html.sh: Mention new module.
23275
23276 2007-10-27  Ben Pfaff  <blp@gnu.org>
23277
23278         Ralf Wildenhues reported that Tru64 4.0D declares the round
23279         functions but does not have definitions.
23280         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
23281         cannot be found in any library, set the output variable to
23282         "missing" instead of "".
23283         * m4/round.m4: Also use our substitute if we cannot find round in
23284         any library, even if it is declared.
23285         * m4/roundf.m4: Likewise for roundf.
23286         * m4/roundl.m4: Likewise for roundl.
23287         * lib/math.in.h: Undefine roundf, round, roundl before defining
23288         their replacements, to allow for hypothetical systems where these
23289         may be defined as macros but not available in libraries.
23290
23291 2007-10-27  Bruno Haible  <bruno@clisp.org>
23292
23293         * doc/gnulib.texi: Invoke @firstparagraphindent.
23294         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
23295         changes in gnulib.
23296         (Source changes): New section.
23297
23298 2007-10-26  Bruno Haible  <bruno@clisp.org>
23299
23300         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
23301         borrowed from autoconf.
23302
23303 2007-10-26  Bruno Haible  <bruno@clisp.org>
23304
23305         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
23306         strerror returned the empty string. Needed on HP-UX 11.00.
23307
23308 2007-10-24  Micah Cowan  <micah@cowan.name>
23309
23310         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
23311         * build-aux/bootstrap: Remove support for now-unnecessary option,
23312         --cvs-user, and envvars CVS_USER, CVS_RSH.
23313
23314 2007-10-24  Jim Meyering  <meyering@redhat.com>
23315
23316         Avoid diagnostics from sha1sum when there is no cached checksum.
23317         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
23318         if the po.s1 file hasn't been created yet.
23319
23320         * build-aux/bootstrap: Sync from coreutils:
23321         2007-10-24  Jim Meyering  <meyering@redhat.com>
23322         Get gnulib from the git repository, not from an obsolete cvs one.
23323         * build-aux/bootstrap: Suggestion from Micah Cowan.
23324         2007-10-04  Jim Meyering  <jim@meyering.net>
23325         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
23326         (update_po_files): Work also when there are no .po files in po/.
23327
23328 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23329
23330         * README: Append ".git" to git and cg examples.
23331         Problem reported by Benoit Sigoure.
23332
23333 2007-10-23  Micah Cowan  <micah@cowan.name>
23334
23335         * users.txt: Add wget.
23336
23337 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23338
23339         Fix linking of some unistdio tests on FreeBSD.
23340         * modules/unistdio/u16-vsnprintf-tests
23341         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
23342         * modules/unistdio/u16-vsprintf-tests
23343         (test_u16_vsnprintf1_LDADD): Likewise.
23344         * modules/unistdio/u32-vsnprintf-tests
23345         (test_u32_vsnprintf1_LDADD): Likewise.
23346         * modules/unistdio/u32-vsprintf-tests
23347         (test_u32_vsprintf1_LDADD): Likewise.
23348         * modules/unistdio/u8-vsnprintf-tests
23349         (test_u8_vsnprintf1_LDADD): Likewise.
23350         * modules/unistdio/u8-vsprintf-tests
23351         (test_u8_vsprintf1_LDADD): Likewise.
23352         * modules/unistdio/ulc-vsnprintf-tests
23353         (test_ulc_vsnprintf1_LDADD): Likewise.
23354         * modules/unistdio/ulc-vsprintf-tests
23355         (test_ulc_vsprintf1_LDADD): Likewise.
23356
23357         Fix linking of some uniconv tests on FreeBSD.
23358         * modules/uniconv/u16-conv-from-enc-tests
23359         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
23360         * modules/uniconv/u16-conv-to-enc-tests
23361         (test_u16_conv_to_enc_LDADD): Likewise.
23362         * modules/uniconv/u16-strconv-from-enc-tests
23363         (test_u16_strconv_from_enc_LDADD): Likewise.
23364         * modules/uniconv/u16-strconv-to-enc-tests
23365         (test_u16_strconv_to_enc_LDADD): Likewise.
23366         * modules/uniconv/u32-conv-from-enc-tests
23367         (test_u32_conv_from_enc_LDADD): Likewise.
23368         * modules/uniconv/u32-conv-to-enc-tests
23369         (test_u32_conv_to_enc_LDADD): Likewise.
23370         * modules/uniconv/u32-strconv-from-enc-tests
23371         (test_u32_strconv_from_enc_LDADD): Likewise.
23372         * modules/uniconv/u32-strconv-to-enc-tests
23373         (test_u32_strconv_to_enc_LDADD): Likewise.
23374         * modules/uniconv/u8-conv-from-enc-tests
23375         (test_u8_conv_from_enc_LDADD): Likewise.
23376         * modules/uniconv/u8-conv-to-enc-tests
23377         (test_u8_conv_to_enc_LDADD): Likewise.
23378         * modules/uniconv/u8-strconv-from-enc-tests
23379         (test_u8_strconv_from_enc_LDADD): Likewise.
23380         * modules/uniconv/u8-strconv-to-enc-tests
23381         (test_u8_strconv_to_enc_LDADD): Likewise.
23382
23383 2007-10-22  Bruno Haible  <bruno@clisp.org>
23384
23385         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
23386         size.
23387
23388 2007-10-22  Eric Blake  <ebb9@byu.net>
23389
23390         Tweak x*printf documentation.
23391         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
23392         variable name and comments.
23393         Suggested by Bruno Haible.
23394
23395 2007-10-22  Bruno Haible  <bruno@clisp.org>
23396
23397         * lib/acl.c (copy_acl): Fix file name in comment.
23398
23399 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23400
23401         Fix Tru64 problem with stdbool.h.
23402         * lib/stdbool.in.h (false, true):
23403         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
23404         Don't declare as an enum in this situation; it runs afoul of Tru64.
23405         Problem reported by Steven M. Schweda in
23406         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
23407
23408 2007-10-22  Eric Blake  <ebb9@byu.net>
23409
23410         Also wrap vf?printf.
23411         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
23412         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
23413         (xvprintf, xvfprintf): New functions.
23414
23415 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23416
23417         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
23418         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
23419
23420         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
23421         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
23422
23423 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23424
23425         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
23426         by Bruno Haible.
23427
23428 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23429
23430         * lib/getloadavg.c
23431         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
23432         Undef `sys' after including sys/table.h, for Tru64 4.0D.
23433
23434         * tests/test-i-ring.c: Work for C89.
23435
23436 2007-10-22  Bruno Haible  <bruno@clisp.org>
23437
23438         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
23439         -1u, in preprocessor expression, so that we don't test for the bug
23440         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
23441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
23442
23443 2007-10-22  Eric Blake  <ebb9@byu.net>
23444
23445         * tests/test-yesno.sh: Silence stderr during test.
23446
23447 2007-10-22  Simon Josefsson  <simon@josefsson.org>
23448
23449         * modules/crypto/gc-camellia: New file.
23450
23451         * m4/gc-camellia.m4: New file.
23452
23453         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
23454
23455         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
23456
23457 2007-10-22  Simon Josefsson  <simon@josefsson.org>
23458
23459         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
23460         --help to stdout.  Reported by sms@antinode.org (Steven
23461         M. Schweda).
23462
23463 2007-10-22  Simon Josefsson  <simon@josefsson.org>
23464
23465         * users.txt: Fix link to libksba.
23466
23467 2007-10-21  Ben Pfaff  <blp@gnu.org>
23468
23469         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
23470         round.c roundf implementation that depends on floorf and ceilf to
23471         be tested unconditionally.
23472
23473 2007-10-21  Ben Pfaff  <blp@gnu.org>
23474
23475         * m4/check-libm-func.m4: Removed.
23476         * m4/check-math-lib.m4: New file.
23477         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
23478         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
23479         definition and lack of AC_LIBOBJ([roundf]).
23480         * m4/roundl.m4: Ditto, and similarly for roundl.
23481         * modules/round: Reference new m4 file.
23482         * modules/roundf: Ditto.
23483         * modules/roundl: Ditto.
23484         * tests/test-round2.c (main): Use ROUND instead of round.
23485         Bug report from Bruno Haible.
23486
23487 2007-10-21  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
23490         context.
23491
23492 2007-10-21  Bruno Haible  <bruno@clisp.org>
23493
23494         * tests/test-wcwidth.c (main): Allow negative result for some control
23495         characters.
23496
23497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
23498         Needed on OSF/1 5.1.
23499
23500 2007-10-21  Bruno Haible  <bruno@clisp.org>
23501
23502         * tests/test-floorf1.c: Include isnanf.h.
23503         (main): Use isnanf() instead of isnan().
23504         * tests/test-ceilf1.c: Include isnanf.h.
23505         (main): Use isnanf() instead of isnan().
23506         * tests/test-truncf1.c: Include isnanf.h.
23507         (main): Use isnanf() instead of isnan().
23508         * tests/test-roundf1.c: Include isnanf.h.
23509         (main): Use isnanf() instead of isnan().
23510
23511 2007-10-21  Eric Blake  <ebb9@byu.net>
23512
23513         * users.txt: Update URL for m4.
23514
23515 2007-10-21  Bruno Haible  <bruno@clisp.org>
23516
23517         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
23518
23519 2007-10-21  Bruno Haible  <bruno@clisp.org>
23520
23521         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
23522         Git's management files if the CVS files are not present.
23523
23524 2007-10-20  Bruno Haible  <bruno@clisp.org>
23525
23526         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
23527         gcc-3.4.x.
23528
23529 2007-10-20  Ben Pfaff  <blp@gnu.org>
23530
23531         * lib/math.in.h: Declare round, roundf, roundl if we are providing
23532         implementations.
23533         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
23534         * lib/round.c: New file.
23535         * lib/roundf.c: New file.
23536         * lib/roundl.c: New file.
23537         * m4/round.m4: New file.
23538         * m4/roundf.m4: New file.
23539         * m4/roundl.m4: New file.
23540         * m4/check-libm-func-m4: New file.
23541         * modules/math: Replace round, roundf, roundl related @VARS@ in
23542         math.in.h.
23543         * modules/round: New file.
23544         * modules/round-tests: New file.
23545         * modules/roundf: New file.
23546         * modules/roundf-tests: New file.
23547         * modules/roundl: New file.
23548         * modules/roundl-tests: New file.
23549         * tests/test-round1.c: New file.
23550         * tests/test-round2.c: New file.
23551         * tests/test-roundf1.c: New file.
23552         * tests/test-roundf2.c: New file.
23553         * tests/test-roundl.c: New file.
23554         * doc/functions/round.texi: Mention round module.
23555         * doc/functions/roundf.texi: Mention roundf module.
23556         * doc/functions/roundl.texi: Mention roundl module.
23557         * MODULES.html.sh: Mention new modules.
23558         Thanks to Bruno Haible for suggestions.
23559
23560 2007-10-20  Jim Meyering  <meyering@redhat.com>
23561
23562         * lib/xprintf.c: Include <config.h> unconditionally.
23563
23564         Change xprintf's license to GPL.
23565         * modules/xprintf (License): s/LGPL/GPL/, since this module
23566         depends on modules (exit and exitfail) which are GPL.
23567         Suggestion from Bruno Haible.
23568
23569         xprintf fixes.
23570         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
23571         Use a clearer diagnostic.
23572         Patch from Bruno Haible.
23573
23574 2007-10-20  Bruno Haible  <bruno@clisp.org>
23575
23576         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
23577         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
23578         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23579
23580 2007-10-20  Bruno Haible  <bruno@clisp.org>
23581
23582         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
23583         precision in the comparison result > x - 1 or similar.
23584         * tests/test-ceilf2.c (correct_result_p): Likewise.
23585         * tests/test-truncf2.c (correct_result_p): Likewise.
23586         * tests/test-trunc2.c (correct_result_p): Likewise.
23587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23588
23589 2007-10-20  Bruno Haible  <bruno@clisp.org>
23590
23591         * modules/ceil: New file.
23592         * m4/ceil.m4: New file.
23593         * doc/functions/ceil.texi: Mention the 'ceil' module.
23594
23595 2007-10-20  Bruno Haible  <bruno@clisp.org>
23596
23597         * modules/floor: New file.
23598         * m4/floor.m4: New file.
23599         * doc/functions/floor.texi: Mention the 'floor' module.
23600
23601 2007-10-20  Bruno Haible  <bruno@clisp.org>
23602
23603         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
23604         of %a.
23605         * modules/floorf-tests (Depends-on): Likewise.
23606         * modules/truncf-tests (Depends-on): Likewise.
23607         * modules/trunc-tests (Depends-on): Likewise.
23608         Reported by Ben Pfaff.
23609
23610 2007-10-19  Jim Meyering  <meyering@redhat.com>
23611
23612         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
23613         Don't bother testing specific errno values.  Just test ferror.
23614
23615         New module: xprintf
23616         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
23617
23618 2007-10-19  Bruno Haible  <bruno@clisp.org>
23619
23620         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
23621         syntax.
23622         * modules/javaexec (Makefile.am): Likewise.
23623         * modules/relocatable-prog (Makefile.am): Likewise.
23624         Suggested by Jim Meyering.
23625
23626 2007-10-18  Bruno Haible  <bruno@clisp.org>
23627
23628         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
23629         Reported by Jim Meyering.
23630
23631 2007-10-18  Eric Blake  <ebb9@byu.net>
23632
23633         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
23634
23635 2007-10-18  Bruno Haible  <bruno@clisp.org>
23636
23637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
23638         the format string into writable memory. Needed in Fortify conditions.
23639
23640 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
23641             Bruno Haible  <bruno@clisp.org>
23642
23643         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
23644         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
23645         * modules/trim (Depends-on): Add mbchar.
23646         (configure.ac): Add gl_FUNC_MBRTOWC.
23647         (Makefile.am): Augment lib_SOURCES.
23648
23649 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
23650
23651         Modify glob.c to use fstatat and dirfd, to simplify it.
23652         Suggested by Eric Blake.
23653         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
23654         Don't include <stdbool.h>; not used.
23655         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
23656         (link_exists_p): Simplify implementation, since we can now assume
23657         dirfd and fstatat.
23658         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
23659
23660 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23661
23662         * gnulib-tool (func_get_dependencies): Fix sed script to
23663         match only tests.
23664
23665 2007-10-17  Bruno Haible  <bruno@clisp.org>
23666
23667         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
23668         allow locale names without encoding suffix.
23669         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23670         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23671
23672 2007-10-16  Bruno Haible  <bruno@clisp.org>
23673
23674         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
23675         * lib/getgroups.c (getgroups): Likewise.
23676         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
23677
23678 2007-10-16  Bruno Haible  <bruno@clisp.org>
23679
23680         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
23681         * modules/malloc-posix (License): Likewise.
23682         * modules/realloc-posix (License): Likewise.
23683         * modules/calloc-posix (License): Likewise.
23684         * modules/intprops (License): Change from GPL to LGPL, with
23685         Paul Eggert's approval.
23686
23687 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23688
23689         Merge glibc changes into lib/glob.c.
23690
23691         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
23692         2007-10-15 04:59:03 UTC.  Here are the changes:
23693
23694         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
23695
23696         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
23697
23698         * lib/glob.c: Add some branch prediction throughout.
23699
23700         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
23701
23702         [BZ #5103]
23703         * lib/glob.c (glob): Recognize patterns starting \/.
23704
23705         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
23706
23707         [BZ #3996]
23708         * lib/glob.c (attribute_hidden): Define if not defined.
23709         (glob): Unescape dirname, filename or username when needed and not
23710         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
23711         is NULL.  Handle unescaped [ in pattern without closing ].
23712         Don't pass GLOB_CHECK down to recursive glob for directories.
23713         (__glob_pattern_type): New function.
23714         (__glob_pattern_p): Implement using __glob_pattern_type.
23715         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
23716         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
23717         Remove unreachable code.
23718
23719         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
23720
23721         * lib/glob.c (glob_in_dir): Add some comments and asserts to
23722         explain why there are no leaks.
23723
23724         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
23725
23726         [BZ #3253]
23727         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
23728         time, rather allocate increasingly bigger arrays of pointers, if
23729         possible with alloca, if too large with malloc.
23730
23731 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23732
23733         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
23734         Problem reported by H.Merijn Brand in
23735         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
23736         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
23737         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
23738
23739 2007-10-15  Bruno Haible  <bruno@clisp.org>
23740
23741         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
23742         with explicit rpl_ prefix.
23743         * lib/fopen.c (fopen): Likewise.
23744         * lib/freopen.c (freopen): Likewise.
23745         * lib/iconv.c (iconv): Likewise.
23746         * lib/iconv_close.c (iconv_close): Likewise.
23747
23748 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23749
23750         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
23751
23752 2007-10-15  Bruno Haible  <bruno@clisp.org>
23753
23754         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
23755         <stddef.h> instead of <stdlib.h> since we only need NULL.
23756         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23757
23758 2007-10-15  Bruno Haible  <bruno@clisp.org>
23759
23760         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
23761         Replace paragraph talking about LIBOBJS.
23762         Reported by Colin Watson <cjwatson@debian.org>.
23763
23764 2007-10-15  Bruno Haible  <bruno@clisp.org>
23765
23766         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
23767         <stdlib.h> before using NULL.
23768
23769 2007-10-15  Simon Josefsson  <simon@josefsson.org>
23770
23771         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
23772         Reported by Albert Chin <china@thewrittenword.com>.
23773
23774 2007-10-14  Bruno Haible  <bruno@clisp.org>
23775
23776         * modules/iconv_open-utf-tests: New file.
23777         * tests/test-iconv-utf.c: New file.
23778
23779         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
23780         * modules/iconv_open-utf: New file.
23781         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
23782         (iconv, iconv_close): New declarations.
23783         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
23784         be defined.
23785         (iconv_open): Add special handling of conversion between UTF-8 and
23786         UTF-{16,32}{BE,LE}.
23787         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
23788         * lib/iconv_close.c: New file.
23789         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
23790         gl_FUNC_ICONV_OPEN.
23791         (gl_FUNC_ICONV_OPEN): Use it.
23792         (gl_FUNC_ICONV_OPEN_UTF): New macro.
23793         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
23794         and REPLACE_ICONV_UTF.
23795         * modules/iconv_open (Depends-on): Add c-strcase.
23796         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
23797         ICONV_CONST.
23798         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
23799
23800 2007-10-13  Albert Chin  <china@thewrittenword.com>
23801             Bruno Haible  <bruno@clisp.org>
23802
23803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
23804         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
23805
23806 2007-10-13  Bruno Haible  <bruno@clisp.org>
23807
23808         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
23809         defined, use the ISO C99 inline semantics.
23810         * lib/argp.h (ARGP_EI): Likewise.
23811
23812 2007-10-13  Bruno Haible  <bruno@clisp.org>
23813
23814         Handle 'inline' change in gcc 4.3.0.
23815         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
23816         argp_fmtstream_write, argp_fmtstream_set_lmargin,
23817         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
23818         argp_fmtstream_point): Disable 'extern' declaration if the function
23819         definition is going to be provided inline.
23820         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
23821         semantics, not the ISO C99 inline semantics.
23822         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
23823         'extern' declaration if the function definition is going to be provided
23824         inline.
23825         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
23826         the GNU C inline semantics, not the ISO C99 inline semantics. With
23827         GCC 4.2, avoid a warning.
23828
23829 2007-10-13  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/freading.h (freading): Enable the use of __freading for
23832         glibc >= 2.7.
23833         * lib/freading.c (freading): Likewise.
23834
23835 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23836
23837         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
23838         "warning: C99 inline functions are not supported; using GNU89".
23839
23840 2007-10-12  Bruno Haible  <bruno@clisp.org>
23841
23842         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
23843         of 2.
23844         * tests/test-ceilf2.c: New file.
23845         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
23846
23847         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
23848         * modules/ceilf-tests: Update.
23849
23850 2007-10-12  Bruno Haible  <bruno@clisp.org>
23851
23852         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
23853         of 2.
23854         * tests/test-floorf2.c: New file.
23855         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
23856
23857         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
23858         * modules/floorf-tests: Update.
23859
23860 2007-10-12  Bruno Haible  <bruno@clisp.org>
23861
23862         * tests/test-trunc2.c: New file.
23863         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
23864
23865         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
23866         * modules/trunc-tests: Update.
23867
23868 2007-10-12  Bruno Haible  <bruno@clisp.org>
23869
23870         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
23871         of 2.
23872         * tests/test-truncf2.c: New file.
23873         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
23874
23875         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
23876         * modules/truncf-tests: Update.
23877
23878 2007-10-11  Eric Blake  <ebb9@byu.net>
23879
23880         Don't claim strerror is broken on Interix.
23881         * doc/functions/strerror.texi (strerror): Known broken systems are
23882         now Solaris 8, and not Interix.
23883         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
23884         Interix on cross-compile.
23885         Reported by Martin Koeppe in
23886         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
23887
23888 2007-10-11  Bruno Haible  <bruno@clisp.org>
23889
23890         * modules/i-ring-tests: New file.
23891         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
23892         instead of assert.
23893
23894 2007-10-11  Bruno Haible  <bruno@clisp.org>
23895
23896         * modules/filenamecat-tests: New file.
23897         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
23898         * lib/filenamecat.c: Remove test code.
23899
23900 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23901
23902         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
23903
23904         * lib/strerror.c: Include <string.h> always, to test interface,
23905         and to remove the need for the dummy.
23906         Include intprops.h to compute width instead of doing it ourselves
23907         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
23908         (strerror): Define it to return NULL if there's no system strerror.
23909         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
23910         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
23911         ancient pre-strerror Unix systems well any more.  Saying "unknown
23912         system error" is enough.
23913         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
23914         simpler strerror.c implementation.
23915         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
23916         Simplify the tests to reflect the simpler strerror implementation.
23917         * modules/strerror (Depends-on): Add intprops.
23918
23919 2007-10-09  Eric Blake  <ebb9@byu.net>
23920
23921         Silence test-fpending.
23922         * modules/fpending-tests (Files): Add wrapper script.
23923         * tests/test-fpending.sh: New file.
23924
23925 2007-10-09  Bruno Haible  <bruno@clisp.org>
23926
23927         * MODULES.html.sh (func_module): Don't create a hyperlink for
23928         function names like 'printf_frexp'.
23929         (Misc): Add crc, memxor.
23930         (Characteristics of floating types): New section.
23931         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
23932         isnanf-nolibm, signbit, trunc, truncf, truncl.
23933         (Enhancements for ISO C 99 functions): New subsection Input/output.
23934         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
23935         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
23936         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
23937         (Compatibility checks for POSIX:2001 functions): Add clock-time.
23938         (Enhancements for POSIX:2001 functions): Add chdir-long.
23939         (File system functions): Add areadlink, chdir-safer, read-file.
23940         Remove cycle-check.
23941         (File system as inode set): New section.
23942         (Date and time): Add gethrxtime.
23943         (Multithreading): Add openmp.
23944         (Internationalization functions): Add localename.
23945         (Unicode string functions): Add unistr/u*-mbsnlen.
23946         (Support for maintaining and releasing projects): Add git-version-gen.
23947         (Lone files): Remove directories.
23948
23949 2007-10-08  Ben Pfaff  <blp@gnu.org>
23950
23951         * lib/xmalloca.h: Fix typo in comment.
23952
23953 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23954
23955         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
23956         when avoiding problems with integer overflow.  Use a portable test
23957         instead.
23958
23959 2007-10-08  Simon Josefsson  <simon@josefsson.org>
23960
23961         * modules/dummy (License): Change to LGPLv2+.
23962         * modules/float (License): Likewise
23963         * modules/realloc (License): Likewise
23964         * modules/stdlib (License): Likewise
23965
23966 2007-10-07  Bruno Haible  <bruno@clisp.org>
23967
23968         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
23969         * floor.c (TWO_MANT_DIG): Likewise.
23970         * ceil.c (TWO_MANT_DIG): Likewise.
23971         Reported by Ben Pfaff.
23972
23973 2007-10-07  Bruno Haible  <bruno@clisp.org>
23974
23975         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
23976         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
23977         * lib/frexp.c (FUNC): Likewise.
23978         * lib/printf-frexp.h (printf_frexp): Likewise.
23979         * lib/printf-frexpl.h (printf_frexpl): Likewise.
23980         * lib/printf-frexp.c (FUNC): Likewise.
23981         Suggested by Jim Meyering.
23982
23983 2007-10-07  Jim Meyering  <meyering@redhat.com>
23984
23985         Make xnanosleep's integer overflow test more robust.
23986         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
23987         so that gcc-4.3.0 doesn't optimize away this test for overflow.
23988
23989 2007-10-07  Bruno Haible  <bruno@clisp.org>
23990
23991         * NEWS: Mention the license change.
23992
23993         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
23994         abbreviations in the modules files.
23995
23996         Change copyright notice from GPLv2+ to GPLv3+.
23997         * README: Change copyright notice.
23998         * MODULES.html.sh: Likewise.
23999         * build-aux/bootstrap.conf: Likewise.
24000         * build-aux/config.libpath: Likewise.
24001         * build-aux/csharpcomp.sh.in: Likewise.
24002         * build-aux/csharpexec.sh.in: Likewise.
24003         * build-aux/install-reloc: Likewise.
24004         * build-aux/javacomp.sh.in: Likewise.
24005         * build-aux/javaexec.sh.in: Likewise.
24006         * build-aux/ldd.sh.in: Likewise.
24007         * build-aux/reloc-ldflags: Likewise.
24008         * build-aux/relocatable.sh.in: Likewise.
24009         * build-aux/x-to-1.in: Likewise.
24010         * check-module: Likewise.
24011         * config/srclistvars.sh: Likewise.
24012         * gnulib-tool: Likewise.
24013         * lib/acl-internal.h: Likewise.
24014         * lib/acl.c: Likewise.
24015         * lib/acl.h: Likewise.
24016         * lib/acl_entries.c: Likewise.
24017         * lib/areadlink-with-size.c: Likewise.
24018         * lib/areadlink.c: Likewise.
24019         * lib/areadlink.h: Likewise.
24020         * lib/argmatch.c: Likewise.
24021         * lib/argmatch.h: Likewise.
24022         * lib/argp-ba.c: Likewise.
24023         * lib/argp-eexst.c: Likewise.
24024         * lib/argp-fmtstream.c: Likewise.
24025         * lib/argp-fmtstream.h: Likewise.
24026         * lib/argp-fs-xinl.c: Likewise.
24027         * lib/argp-help.c: Likewise.
24028         * lib/argp-namefrob.h: Likewise.
24029         * lib/argp-parse.c: Likewise.
24030         * lib/argp-pin.c: Likewise.
24031         * lib/argp-pv.c: Likewise.
24032         * lib/argp-pvh.c: Likewise.
24033         * lib/argp-xinl.c: Likewise.
24034         * lib/argp.h: Likewise.
24035         * lib/at-func.c: Likewise.
24036         * lib/atanl.c: Likewise.
24037         * lib/backupfile.c: Likewise.
24038         * lib/backupfile.h: Likewise.
24039         * lib/basename.c: Likewise.
24040         * lib/binary-io.h: Likewise.
24041         * lib/byteswap.in.h: Likewise.
24042         * lib/c-stack.c: Likewise.
24043         * lib/c-stack.h: Likewise.
24044         * lib/c-strcasestr.c: Likewise.
24045         * lib/c-strcasestr.h: Likewise.
24046         * lib/c-strstr.c: Likewise.
24047         * lib/c-strstr.h: Likewise.
24048         * lib/c-strtod.c: Likewise.
24049         * lib/calloc.c: Likewise.
24050         * lib/canon-host.c: Likewise.
24051         * lib/canon-host.h: Likewise.
24052         * lib/canonicalize-lgpl.c: Likewise.
24053         * lib/canonicalize.c: Likewise.
24054         * lib/canonicalize.h: Likewise.
24055         * lib/ceil.c: Likewise.
24056         * lib/ceilf.c: Likewise.
24057         * lib/ceill.c: Likewise.
24058         * lib/chdir-long.c: Likewise.
24059         * lib/chdir-long.h: Likewise.
24060         * lib/chdir-safer.c: Likewise.
24061         * lib/chdir-safer.h: Likewise.
24062         * lib/chown.c: Likewise.
24063         * lib/classpath.c: Likewise.
24064         * lib/classpath.h: Likewise.
24065         * lib/clean-temp.c: Likewise.
24066         * lib/clean-temp.h: Likewise.
24067         * lib/cloexec.c: Likewise.
24068         * lib/close-stream.c: Likewise.
24069         * lib/closein.c: Likewise.
24070         * lib/closein.h: Likewise.
24071         * lib/closeout.c: Likewise.
24072         * lib/closeout.h: Likewise.
24073         * lib/concat-filename.c: Likewise.
24074         * lib/copy-file.c: Likewise.
24075         * lib/copy-file.h: Likewise.
24076         * lib/count-one-bits.h: Likewise.
24077         * lib/crc.c: Likewise.
24078         * lib/crc.h: Likewise.
24079         * lib/creat-safer.c: Likewise.
24080         * lib/csharpcomp.c: Likewise.
24081         * lib/csharpcomp.h: Likewise.
24082         * lib/csharpexec.c: Likewise.
24083         * lib/csharpexec.h: Likewise.
24084         * lib/cycle-check.c: Likewise.
24085         * lib/cycle-check.h: Likewise.
24086         * lib/diacrit.c: Likewise.
24087         * lib/diacrit.h: Likewise.
24088         * lib/diffseq.h: Likewise.
24089         * lib/dirchownmod.c: Likewise.
24090         * lib/dirent.in.h: Likewise.
24091         * lib/dirfd.c: Likewise.
24092         * lib/dirfd.h: Likewise.
24093         * lib/dirname.c: Likewise.
24094         * lib/dirname.h: Likewise.
24095         * lib/dummy.c: Likewise.
24096         * lib/dup-safer.c: Likewise.
24097         * lib/dup2.c: Likewise.
24098         * lib/eealloc.h: Likewise.
24099         * lib/error.c: Likewise.
24100         * lib/error.h: Likewise.
24101         * lib/euidaccess.c: Likewise.
24102         * lib/exclude.c: Likewise.
24103         * lib/exclude.h: Likewise.
24104         * lib/execute.c: Likewise.
24105         * lib/execute.h: Likewise.
24106         * lib/exitfail.c: Likewise.
24107         * lib/exitfail.h: Likewise.
24108         * lib/expl.c: Likewise.
24109         * lib/fatal-signal.c: Likewise.
24110         * lib/fatal-signal.h: Likewise.
24111         * lib/fbufmode.c: Likewise.
24112         * lib/fbufmode.h: Likewise.
24113         * lib/fchdir.c: Likewise.
24114         * lib/fchmodat.c: Likewise.
24115         * lib/fchownat.c: Likewise.
24116         * lib/fcntl--.h: Likewise.
24117         * lib/fcntl-safer.h: Likewise.
24118         * lib/fcntl.in.h: Likewise.
24119         * lib/fd-safer.c: Likewise.
24120         * lib/fflush.c: Likewise.
24121         * lib/file-has-acl.c: Likewise.
24122         * lib/file-set.c: Likewise.
24123         * lib/file-type.c: Likewise.
24124         * lib/file-type.h: Likewise.
24125         * lib/fileblocks.c: Likewise.
24126         * lib/filemode.c: Likewise.
24127         * lib/filemode.h: Likewise.
24128         * lib/filename.h: Likewise.
24129         * lib/filenamecat.c: Likewise.
24130         * lib/filenamecat.h: Likewise.
24131         * lib/findprog.c: Likewise.
24132         * lib/findprog.h: Likewise.
24133         * lib/float.in.h: Likewise.
24134         * lib/floor.c: Likewise.
24135         * lib/floorf.c: Likewise.
24136         * lib/floorl.c: Likewise.
24137         * lib/fopen-safer.c: Likewise.
24138         * lib/fopen.c: Likewise.
24139         * lib/fpending.c: Likewise.
24140         * lib/fpending.h: Likewise.
24141         * lib/fprintf.c: Likewise.
24142         * lib/fprintftime.h: Likewise.
24143         * lib/fpucw.h: Likewise.
24144         * lib/fpurge.c: Likewise.
24145         * lib/fpurge.h: Likewise.
24146         * lib/freadable.c: Likewise.
24147         * lib/freadable.h: Likewise.
24148         * lib/freadahead.c: Likewise.
24149         * lib/freadahead.h: Likewise.
24150         * lib/freading.c: Likewise.
24151         * lib/freading.h: Likewise.
24152         * lib/free.c: Likewise.
24153         * lib/freopen.c: Likewise.
24154         * lib/frexp.c: Likewise.
24155         * lib/frexpl.c: Likewise.
24156         * lib/fseek.c: Likewise.
24157         * lib/fseterr.c: Likewise.
24158         * lib/fseterr.h: Likewise.
24159         * lib/fstatat.c: Likewise.
24160         * lib/fstrcmp.c: Likewise.
24161         * lib/fstrcmp.h: Likewise.
24162         * lib/fsusage.c: Likewise.
24163         * lib/fsusage.h: Likewise.
24164         * lib/ftell.c: Likewise.
24165         * lib/ftello.c: Likewise.
24166         * lib/fts-cycle.c: Likewise.
24167         * lib/fts.c: Likewise.
24168         * lib/fts_.h: Likewise.
24169         * lib/full-read.c: Likewise.
24170         * lib/full-read.h: Likewise.
24171         * lib/full-write.c: Likewise.
24172         * lib/full-write.h: Likewise.
24173         * lib/fwritable.c: Likewise.
24174         * lib/fwritable.h: Likewise.
24175         * lib/fwriteerror.c: Likewise.
24176         * lib/fwriteerror.h: Likewise.
24177         * lib/fwriting.c: Likewise.
24178         * lib/fwriting.h: Likewise.
24179         * lib/gcd.c: Likewise.
24180         * lib/gcd.h: Likewise.
24181         * lib/getcwd.c: Likewise.
24182         * lib/getdate.h: Likewise.
24183         * lib/getdate.y: Likewise.
24184         * lib/getdomainname.c: Likewise.
24185         * lib/getdomainname.h: Likewise.
24186         * lib/getgroups.c: Likewise.
24187         * lib/gethostname.c: Likewise.
24188         * lib/gethrxtime.c: Likewise.
24189         * lib/gethrxtime.h: Likewise.
24190         * lib/getloadavg.c: Likewise.
24191         * lib/getndelim2.c: Likewise.
24192         * lib/getndelim2.h: Likewise.
24193         * lib/getnline.c: Likewise.
24194         * lib/getnline.h: Likewise.
24195         * lib/getopt.c: Likewise.
24196         * lib/getopt.in.h: Likewise.
24197         * lib/getopt1.c: Likewise.
24198         * lib/getopt_int.h: Likewise.
24199         * lib/getpagesize.h: Likewise.
24200         * lib/getsubopt.c: Likewise.
24201         * lib/gettime.c: Likewise.
24202         * lib/getugroups.c: Likewise.
24203         * lib/getugroups.h: Likewise.
24204         * lib/getusershell.c: Likewise.
24205         * lib/gl_anyavltree_list1.h: Likewise.
24206         * lib/gl_anyavltree_list2.h: Likewise.
24207         * lib/gl_anyhash_list1.h: Likewise.
24208         * lib/gl_anyhash_list2.h: Likewise.
24209         * lib/gl_anylinked_list1.h: Likewise.
24210         * lib/gl_anylinked_list2.h: Likewise.
24211         * lib/gl_anyrbtree_list1.h: Likewise.
24212         * lib/gl_anyrbtree_list2.h: Likewise.
24213         * lib/gl_anytree_list1.h: Likewise.
24214         * lib/gl_anytree_list2.h: Likewise.
24215         * lib/gl_anytree_oset.h: Likewise.
24216         * lib/gl_anytreehash_list1.h: Likewise.
24217         * lib/gl_anytreehash_list2.h: Likewise.
24218         * lib/gl_array_list.c: Likewise.
24219         * lib/gl_array_list.h: Likewise.
24220         * lib/gl_array_oset.c: Likewise.
24221         * lib/gl_array_oset.h: Likewise.
24222         * lib/gl_avltree_list.c: Likewise.
24223         * lib/gl_avltree_list.h: Likewise.
24224         * lib/gl_avltree_oset.c: Likewise.
24225         * lib/gl_avltree_oset.h: Likewise.
24226         * lib/gl_avltreehash_list.c: Likewise.
24227         * lib/gl_avltreehash_list.h: Likewise.
24228         * lib/gl_carray_list.c: Likewise.
24229         * lib/gl_carray_list.h: Likewise.
24230         * lib/gl_linked_list.c: Likewise.
24231         * lib/gl_linked_list.h: Likewise.
24232         * lib/gl_linkedhash_list.c: Likewise.
24233         * lib/gl_linkedhash_list.h: Likewise.
24234         * lib/gl_list.c: Likewise.
24235         * lib/gl_list.h: Likewise.
24236         * lib/gl_oset.c: Likewise.
24237         * lib/gl_oset.h: Likewise.
24238         * lib/gl_rbtree_list.c: Likewise.
24239         * lib/gl_rbtree_list.h: Likewise.
24240         * lib/gl_rbtree_oset.c: Likewise.
24241         * lib/gl_rbtree_oset.h: Likewise.
24242         * lib/gl_rbtreehash_list.c: Likewise.
24243         * lib/gl_rbtreehash_list.h: Likewise.
24244         * lib/gl_sublist.c: Likewise.
24245         * lib/gl_sublist.h: Likewise.
24246         * lib/group-member.c: Likewise.
24247         * lib/group-member.h: Likewise.
24248         * lib/hard-locale.c: Likewise.
24249         * lib/hard-locale.h: Likewise.
24250         * lib/hash-pjw.c: Likewise.
24251         * lib/hash-pjw.h: Likewise.
24252         * lib/hash-triple.c: Likewise.
24253         * lib/hash.c: Likewise.
24254         * lib/hash.h: Likewise.
24255         * lib/human.c: Likewise.
24256         * lib/human.h: Likewise.
24257         * lib/i-ring.c: Likewise.
24258         * lib/i-ring.h: Likewise.
24259         * lib/idcache.c: Likewise.
24260         * lib/imaxabs.c: Likewise.
24261         * lib/imaxdiv.c: Likewise.
24262         * lib/inet_pton.c: Likewise.
24263         * lib/inet_pton.h: Likewise.
24264         * lib/intprops.h: Likewise.
24265         * lib/inttostr.c: Likewise.
24266         * lib/inttostr.h: Likewise.
24267         * lib/inttypes.in.h: Likewise.
24268         * lib/isapipe.c: Likewise.
24269         * lib/isdir.c: Likewise.
24270         * lib/isnan.c: Likewise.
24271         * lib/isnan.h: Likewise.
24272         * lib/isnanf.c: Likewise.
24273         * lib/isnanf.h: Likewise.
24274         * lib/isnanl-nolibm.h: Likewise.
24275         * lib/isnanl.c: Likewise.
24276         * lib/isnanl.h: Likewise.
24277         * lib/javacomp.c: Likewise.
24278         * lib/javacomp.h: Likewise.
24279         * lib/javaexec.c: Likewise.
24280         * lib/javaexec.h: Likewise.
24281         * lib/javaversion.c: Likewise.
24282         * lib/javaversion.h: Likewise.
24283         * lib/javaversion.java: Likewise.
24284         * lib/lbrkprop.h: Likewise.
24285         * lib/lchmod.h: Likewise.
24286         * lib/lchown.c: Likewise.
24287         * lib/ldexpl.c: Likewise.
24288         * lib/linebreak.c: Likewise.
24289         * lib/linebreak.h: Likewise.
24290         * lib/linebuffer.c: Likewise.
24291         * lib/linebuffer.h: Likewise.
24292         * lib/locale.in.h: Likewise.
24293         * lib/logl.c: Likewise.
24294         * lib/long-options.c: Likewise.
24295         * lib/long-options.h: Likewise.
24296         * lib/lstat.c: Likewise.
24297         * lib/lstat.h: Likewise.
24298         * lib/math.in.h: Likewise.
24299         * lib/mbchar.c: Likewise.
24300         * lib/mbchar.h: Likewise.
24301         * lib/mbfile.h: Likewise.
24302         * lib/mbiter.h: Likewise.
24303         * lib/mbscasecmp.c: Likewise.
24304         * lib/mbscasestr.c: Likewise.
24305         * lib/mbschr.c: Likewise.
24306         * lib/mbscspn.c: Likewise.
24307         * lib/mbslen.c: Likewise.
24308         * lib/mbsncasecmp.c: Likewise.
24309         * lib/mbsnlen.c: Likewise.
24310         * lib/mbspbrk.c: Likewise.
24311         * lib/mbspcasecmp.c: Likewise.
24312         * lib/mbsrchr.c: Likewise.
24313         * lib/mbssep.c: Likewise.
24314         * lib/mbsspn.c: Likewise.
24315         * lib/mbsstr.c: Likewise.
24316         * lib/mbstok_r.c: Likewise.
24317         * lib/mbswidth.c: Likewise.
24318         * lib/mbswidth.h: Likewise.
24319         * lib/mbuiter.h: Likewise.
24320         * lib/memcasecmp.c: Likewise.
24321         * lib/memcasecmp.h: Likewise.
24322         * lib/memchr.c: Likewise.
24323         * lib/memcmp.c: Likewise.
24324         * lib/memcoll.c: Likewise.
24325         * lib/memcoll.h: Likewise.
24326         * lib/memcpy.c: Likewise.
24327         * lib/memrchr.c: Likewise.
24328         * lib/mkancesdirs.c: Likewise.
24329         * lib/mkdir-p.c: Likewise.
24330         * lib/mkdir-p.h: Likewise.
24331         * lib/mkdir.c: Likewise.
24332         * lib/mkdirat.c: Likewise.
24333         * lib/mkdtemp.c: Likewise.
24334         * lib/mkstemp-safer.c: Likewise.
24335         * lib/mkstemp.c: Likewise.
24336         * lib/modechange.c: Likewise.
24337         * lib/modechange.h: Likewise.
24338         * lib/mountlist.c: Likewise.
24339         * lib/mountlist.h: Likewise.
24340         * lib/mpsort.c: Likewise.
24341         * lib/nanosleep.c: Likewise.
24342         * lib/obstack.c: Likewise.
24343         * lib/obstack.h: Likewise.
24344         * lib/open-safer.c: Likewise.
24345         * lib/open.c: Likewise.
24346         * lib/openat-die.c: Likewise.
24347         * lib/openat-priv.h: Likewise.
24348         * lib/openat-proc.c: Likewise.
24349         * lib/openat.c: Likewise.
24350         * lib/openat.h: Likewise.
24351         * lib/pagealign_alloc.c: Likewise.
24352         * lib/pagealign_alloc.h: Likewise.
24353         * lib/physmem.c: Likewise.
24354         * lib/physmem.h: Likewise.
24355         * lib/pipe-safer.c: Likewise.
24356         * lib/pipe.c: Likewise.
24357         * lib/pipe.h: Likewise.
24358         * lib/posixtm.c: Likewise.
24359         * lib/posixtm.h: Likewise.
24360         * lib/posixver.c: Likewise.
24361         * lib/printf-frexp.c: Likewise.
24362         * lib/printf-frexp.h: Likewise.
24363         * lib/printf-frexpl.c: Likewise.
24364         * lib/printf-frexpl.h: Likewise.
24365         * lib/printf.c: Likewise.
24366         * lib/progname.c: Likewise.
24367         * lib/progname.h: Likewise.
24368         * lib/progreloc.c: Likewise.
24369         * lib/putenv.c: Likewise.
24370         * lib/quote.c: Likewise.
24371         * lib/quote.h: Likewise.
24372         * lib/quotearg.c: Likewise.
24373         * lib/quotearg.h: Likewise.
24374         * lib/raise.c: Likewise.
24375         * lib/readline.c: Likewise.
24376         * lib/readline.h: Likewise.
24377         * lib/readlink.c: Likewise.
24378         * lib/readtokens.c: Likewise.
24379         * lib/readtokens.h: Likewise.
24380         * lib/readtokens0.c: Likewise.
24381         * lib/readtokens0.h: Likewise.
24382         * lib/readutmp.c: Likewise.
24383         * lib/readutmp.h: Likewise.
24384         * lib/realloc.c: Likewise.
24385         * lib/relocwrapper.c: Likewise.
24386         * lib/rename-dest-slash.c: Likewise.
24387         * lib/rename.c: Likewise.
24388         * lib/rmdir.c: Likewise.
24389         * lib/rpmatch.c: Likewise.
24390         * lib/safe-read.c: Likewise.
24391         * lib/safe-read.h: Likewise.
24392         * lib/safe-write.c: Likewise.
24393         * lib/safe-write.h: Likewise.
24394         * lib/same-inode.h: Likewise.
24395         * lib/same.c: Likewise.
24396         * lib/same.h: Likewise.
24397         * lib/save-cwd.c: Likewise.
24398         * lib/save-cwd.h: Likewise.
24399         * lib/savedir.c: Likewise.
24400         * lib/savedir.h: Likewise.
24401         * lib/savewd.c: Likewise.
24402         * lib/savewd.h: Likewise.
24403         * lib/search.in.h: Likewise.
24404         * lib/setenv.c: Likewise.
24405         * lib/setenv.h: Likewise.
24406         * lib/settime.c: Likewise.
24407         * lib/sh-quote.c: Likewise.
24408         * lib/sh-quote.h: Likewise.
24409         * lib/sig2str.c: Likewise.
24410         * lib/sig2str.h: Likewise.
24411         * lib/signal.in.h: Likewise.
24412         * lib/signbitd.c: Likewise.
24413         * lib/signbitf.c: Likewise.
24414         * lib/signbitl.c: Likewise.
24415         * lib/sigprocmask.c: Likewise.
24416         * lib/sincosl.c: Likewise.
24417         * lib/sleep.c: Likewise.
24418         * lib/sprintf.c: Likewise.
24419         * lib/sqrtl.c: Likewise.
24420         * lib/stat-time.h: Likewise.
24421         * lib/stdio--.h: Likewise.
24422         * lib/stdio-safer.h: Likewise.
24423         * lib/stdlib--.h: Likewise.
24424         * lib/stdlib-safer.h: Likewise.
24425         * lib/stdlib.in.h: Likewise.
24426         * lib/stpcpy.c: Likewise.
24427         * lib/stpncpy.c: Likewise.
24428         * lib/strchrnul.c: Likewise.
24429         * lib/strcspn.c: Likewise.
24430         * lib/strerror.c: Likewise.
24431         * lib/strftime.c: Likewise.
24432         * lib/strftime.h: Likewise.
24433         * lib/striconveh.c: Likewise.
24434         * lib/striconveh.h: Likewise.
24435         * lib/striconveha.c: Likewise.
24436         * lib/striconveha.h: Likewise.
24437         * lib/stripslash.c: Likewise.
24438         * lib/strnlen1.c: Likewise.
24439         * lib/strnlen1.h: Likewise.
24440         * lib/strtod.c: Likewise.
24441         * lib/strtoimax.c: Likewise.
24442         * lib/strtok_r.c: Likewise.
24443         * lib/strtol.c: Likewise.
24444         * lib/strtoll.c: Likewise.
24445         * lib/strtoul.c: Likewise.
24446         * lib/strtoull.c: Likewise.
24447         * lib/sysexits.in.h: Likewise.
24448         * lib/tempname.c: Likewise.
24449         * lib/tempname.h: Likewise.
24450         * lib/timespec.h: Likewise.
24451         * lib/tls.c: Likewise.
24452         * lib/tls.h: Likewise.
24453         * lib/tmpdir.c: Likewise.
24454         * lib/tmpdir.h: Likewise.
24455         * lib/tmpfile-safer.c: Likewise.
24456         * lib/tmpfile.c: Likewise.
24457         * lib/trigl.c: Likewise.
24458         * lib/trigl.h: Likewise.
24459         * lib/trim.c: Likewise.
24460         * lib/trim.h: Likewise.
24461         * lib/trunc.c: Likewise.
24462         * lib/truncf.c: Likewise.
24463         * lib/truncl.c: Likewise.
24464         * lib/tsearch.c: Likewise.
24465         * lib/unicodeio.c: Likewise.
24466         * lib/unicodeio.h: Likewise.
24467         * lib/unistd--.h: Likewise.
24468         * lib/unistd-safer.h: Likewise.
24469         * lib/unistdio/ulc-fprintf.c: Likewise.
24470         * lib/unistdio/ulc-vfprintf.c: Likewise.
24471         * lib/unlinkdir.c: Likewise.
24472         * lib/unlinkdir.h: Likewise.
24473         * lib/unlocked-io.h: Likewise.
24474         * lib/unsetenv.c: Likewise.
24475         * lib/userspec.c: Likewise.
24476         * lib/utime.c: Likewise.
24477         * lib/utimecmp.c: Likewise.
24478         * lib/utimecmp.h: Likewise.
24479         * lib/utimens.c: Likewise.
24480         * lib/verify.h: Likewise.
24481         * lib/verror.c: Likewise.
24482         * lib/verror.h: Likewise.
24483         * lib/version-etc-fsf.c: Likewise.
24484         * lib/version-etc.c: Likewise.
24485         * lib/version-etc.h: Likewise.
24486         * lib/vfprintf.c: Likewise.
24487         * lib/vprintf.c: Likewise.
24488         * lib/vsprintf.c: Likewise.
24489         * lib/w32spawn.h: Likewise.
24490         * lib/wait-process.c: Likewise.
24491         * lib/wait-process.h: Likewise.
24492         * lib/wcwidth.c: Likewise.
24493         * lib/write-any-file.c: Likewise.
24494         * lib/xalloc-die.c: Likewise.
24495         * lib/xalloc.h: Likewise.
24496         * lib/xasprintf.c: Likewise.
24497         * lib/xgetcwd.c: Likewise.
24498         * lib/xgetcwd.h: Likewise.
24499         * lib/xgetdomainname.c: Likewise.
24500         * lib/xgetdomainname.h: Likewise.
24501         * lib/xgethostname.c: Likewise.
24502         * lib/xmalloc.c: Likewise.
24503         * lib/xmalloca.c: Likewise.
24504         * lib/xmalloca.h: Likewise.
24505         * lib/xmemcoll.c: Likewise.
24506         * lib/xnanosleep.c: Likewise.
24507         * lib/xreadlink.c: Likewise.
24508         * lib/xreadlink.h: Likewise.
24509         * lib/xsetenv.c: Likewise.
24510         * lib/xsetenv.h: Likewise.
24511         * lib/xstriconv.c: Likewise.
24512         * lib/xstriconv.h: Likewise.
24513         * lib/xstrndup.c: Likewise.
24514         * lib/xstrndup.h: Likewise.
24515         * lib/xstrtod.c: Likewise.
24516         * lib/xstrtod.h: Likewise.
24517         * lib/xstrtol-error.c: Likewise.
24518         * lib/xstrtol.c: Likewise.
24519         * lib/xstrtol.h: Likewise.
24520         * lib/xtime.h: Likewise.
24521         * lib/xvasprintf.c: Likewise.
24522         * lib/xvasprintf.h: Likewise.
24523         * lib/yesno.c: Likewise.
24524         * lib/yesno.h: Likewise.
24525         * posix-modules: Likewise.
24526         * tests/test-alloca-opt.c: Likewise.
24527         * tests/test-arcfour.c: Likewise.
24528         * tests/test-arctwo.c: Likewise.
24529         * tests/test-argmatch.c: Likewise.
24530         * tests/test-argp-2.sh: Likewise.
24531         * tests/test-argp.c: Likewise.
24532         * tests/test-arpa_inet.c: Likewise.
24533         * tests/test-array_list.c: Likewise.
24534         * tests/test-array_oset.c: Likewise.
24535         * tests/test-atexit.c: Likewise.
24536         * tests/test-avltree_list.c: Likewise.
24537         * tests/test-avltree_oset.c: Likewise.
24538         * tests/test-avltreehash_list.c: Likewise.
24539         * tests/test-base64.c: Likewise.
24540         * tests/test-binary-io.c: Likewise.
24541         * tests/test-byteswap.c: Likewise.
24542         * tests/test-c-ctype.c: Likewise.
24543         * tests/test-c-strcasecmp.c: Likewise.
24544         * tests/test-c-strcasestr.c: Likewise.
24545         * tests/test-c-strncasecmp.c: Likewise.
24546         * tests/test-c-strstr.c: Likewise.
24547         * tests/test-canonicalize-lgpl.c: Likewise.
24548         * tests/test-canonicalize.c: Likewise.
24549         * tests/test-carray_list.c: Likewise.
24550         * tests/test-ceilf.c: Likewise.
24551         * tests/test-ceill.c: Likewise.
24552         * tests/test-count-one-bits.c: Likewise.
24553         * tests/test-crc.c: Likewise.
24554         * tests/test-dirname.c: Likewise.
24555         * tests/test-fbufmode.c: Likewise.
24556         * tests/test-fcntl.c: Likewise.
24557         * tests/test-fflush.c: Likewise.
24558         * tests/test-floorf.c: Likewise.
24559         * tests/test-floorl.c: Likewise.
24560         * tests/test-fopen.c: Likewise.
24561         * tests/test-fprintf-posix.c: Likewise.
24562         * tests/test-fprintf-posix.h: Likewise.
24563         * tests/test-fpurge.c: Likewise.
24564         * tests/test-freadable.c: Likewise.
24565         * tests/test-freadahead.c: Likewise.
24566         * tests/test-freading.c: Likewise.
24567         * tests/test-freopen.c: Likewise.
24568         * tests/test-frexp.c: Likewise.
24569         * tests/test-frexpl.c: Likewise.
24570         * tests/test-fseek.c: Likewise.
24571         * tests/test-fseeko.c: Likewise.
24572         * tests/test-fseterr.c: Likewise.
24573         * tests/test-fstrcmp.c: Likewise.
24574         * tests/test-ftell.c: Likewise.
24575         * tests/test-ftello.c: Likewise.
24576         * tests/test-fwritable.c: Likewise.
24577         * tests/test-fwriting.c: Likewise.
24578         * tests/test-getaddrinfo.c: Likewise.
24579         * tests/test-getpass.c: Likewise.
24580         * tests/test-gettimeofday.c: Likewise.
24581         * tests/test-hmac-md5.c: Likewise.
24582         * tests/test-hmac-sha1.c: Likewise.
24583         * tests/test-iconv.c: Likewise.
24584         * tests/test-iconvme.c: Likewise.
24585         * tests/test-inttypes.c: Likewise.
24586         * tests/test-isnan.c: Likewise.
24587         * tests/test-isnanf.c: Likewise.
24588         * tests/test-isnanl-nolibm.c: Likewise.
24589         * tests/test-isnanl.c: Likewise.
24590         * tests/test-isnanl.h: Likewise.
24591         * tests/test-ldexpl.c: Likewise.
24592         * tests/test-linked_list.c: Likewise.
24593         * tests/test-linkedhash_list.c: Likewise.
24594         * tests/test-locale.c: Likewise.
24595         * tests/test-localename.c: Likewise.
24596         * tests/test-lock.c: Likewise.
24597         * tests/test-lseek.c: Likewise.
24598         * tests/test-malloca.c: Likewise.
24599         * tests/test-math.c: Likewise.
24600         * tests/test-mbscasecmp.c: Likewise.
24601         * tests/test-mbscasestr1.c: Likewise.
24602         * tests/test-mbscasestr2.c: Likewise.
24603         * tests/test-mbscasestr3.c: Likewise.
24604         * tests/test-mbscasestr4.c: Likewise.
24605         * tests/test-mbschr.c: Likewise.
24606         * tests/test-mbscspn.c: Likewise.
24607         * tests/test-mbsncasecmp.c: Likewise.
24608         * tests/test-mbspbrk.c: Likewise.
24609         * tests/test-mbspcasecmp.c: Likewise.
24610         * tests/test-mbsrchr.c: Likewise.
24611         * tests/test-mbsspn.c: Likewise.
24612         * tests/test-mbsstr1.c: Likewise.
24613         * tests/test-mbsstr2.c: Likewise.
24614         * tests/test-mbsstr3.c: Likewise.
24615         * tests/test-md5.c: Likewise.
24616         * tests/test-memmem.c: Likewise.
24617         * tests/test-netinet_in.c: Likewise.
24618         * tests/test-open.c: Likewise.
24619         * tests/test-printf-frexp.c: Likewise.
24620         * tests/test-printf-frexpl.c: Likewise.
24621         * tests/test-printf-posix.c: Likewise.
24622         * tests/test-printf-posix.h: Likewise.
24623         * tests/test-rbtree_list.c: Likewise.
24624         * tests/test-rbtree_oset.c: Likewise.
24625         * tests/test-rbtreehash_list.c: Likewise.
24626         * tests/test-read-file.c: Likewise.
24627         * tests/test-rijndael.c: Likewise.
24628         * tests/test-search.c: Likewise.
24629         * tests/test-signbit.c: Likewise.
24630         * tests/test-sleep.c: Likewise.
24631         * tests/test-snprintf-posix.c: Likewise.
24632         * tests/test-snprintf-posix.h: Likewise.
24633         * tests/test-snprintf.c: Likewise.
24634         * tests/test-sprintf-posix.c: Likewise.
24635         * tests/test-sprintf-posix.h: Likewise.
24636         * tests/test-stat-time.c: Likewise.
24637         * tests/test-stdbool.c: Likewise.
24638         * tests/test-stdint.c: Likewise.
24639         * tests/test-stdio.c: Likewise.
24640         * tests/test-stdlib.c: Likewise.
24641         * tests/test-stpncpy.c: Likewise.
24642         * tests/test-strcasestr.c: Likewise.
24643         * tests/test-striconv.c: Likewise.
24644         * tests/test-striconveh.c: Likewise.
24645         * tests/test-striconveha.c: Likewise.
24646         * tests/test-string.c: Likewise.
24647         * tests/test-sys_select.c: Likewise.
24648         * tests/test-sys_socket.c: Likewise.
24649         * tests/test-sys_stat.c: Likewise.
24650         * tests/test-sys_time.c: Likewise.
24651         * tests/test-sysexits.c: Likewise.
24652         * tests/test-time.c: Likewise.
24653         * tests/test-tls.c: Likewise.
24654         * tests/test-trunc.c: Likewise.
24655         * tests/test-truncf.c: Likewise.
24656         * tests/test-truncl.c: Likewise.
24657         * tests/test-unistd.c: Likewise.
24658         * tests/test-vasnprintf-posix.c: Likewise.
24659         * tests/test-vasnprintf-posix2.c: Likewise.
24660         * tests/test-vasnprintf.c: Likewise.
24661         * tests/test-vasprintf-posix.c: Likewise.
24662         * tests/test-vasprintf.c: Likewise.
24663         * tests/test-verify.c: Likewise.
24664         * tests/test-vfprintf-posix.c: Likewise.
24665         * tests/test-vprintf-posix.c: Likewise.
24666         * tests/test-vsnprintf-posix.c: Likewise.
24667         * tests/test-vsnprintf.c: Likewise.
24668         * tests/test-vsprintf-posix.c: Likewise.
24669         * tests/test-wchar.c: Likewise.
24670         * tests/test-wctype.c: Likewise.
24671         * tests/test-wcwidth.c: Likewise.
24672         * tests/test-xstrtol.c: Likewise.
24673         * tests/test-xvasprintf.c: Likewise.
24674         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24675         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24676         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24677         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24678         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24679         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24680         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24681         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24682         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24683         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24684         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24685         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24686         * tests/uniname/test-uninames.c: Likewise.
24687         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24688         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
24689         * tests/unistdio/test-u16-printf1.h: Likewise.
24690         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24691         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24692         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24693         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24694         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24695         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24696         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24697         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
24698         * tests/unistdio/test-u32-printf1.h: Likewise.
24699         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24700         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24701         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24702         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24703         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24704         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24705         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24706         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
24707         * tests/unistdio/test-u8-printf1.h: Likewise.
24708         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24709         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24710         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24711         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24712         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24713         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24714         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24715         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
24716         * tests/unistdio/test-ulc-printf1.h: Likewise.
24717         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24718         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24719         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24720         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24721         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24722         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24723         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24724         * tests/uniwidth/test-u16-width.c: Likewise.
24725         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24726         * tests/uniwidth/test-u32-width.c: Likewise.
24727         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24728         * tests/uniwidth/test-u8-width.c: Likewise.
24729         * tests/uniwidth/test-uc_width.c: Likewise.
24730         * config/srclist-update: Likewise.
24731         (fixlicense): Update to GPLv3+.
24732
24733         Change copyright notice from LGPLv2.1+ to LGPLv3+.
24734         * tests/test-tsearch.c: Change copyright notice.
24735
24736         Change copyright notice from LGPLv2.0+ to LGPLv3+.
24737         * lib/c-strcaseeq.h: Change copyright notice.
24738         * lib/streq.h: Likewise.
24739         * lib/uniconv.h: Likewise.
24740         * lib/uniconv/u-conv-from-enc.h: Likewise.
24741         * lib/uniconv/u-conv-to-enc.h: Likewise.
24742         * lib/uniconv/u-strconv-from-enc.h: Likewise.
24743         * lib/uniconv/u-strconv-to-enc.h: Likewise.
24744         * lib/uniconv/u16-conv-from-enc.c: Likewise.
24745         * lib/uniconv/u16-conv-to-enc.c: Likewise.
24746         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
24747         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
24748         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
24749         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
24750         * lib/uniconv/u32-conv-from-enc.c: Likewise.
24751         * lib/uniconv/u32-conv-to-enc.c: Likewise.
24752         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
24753         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
24754         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
24755         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
24756         * lib/uniconv/u8-conv-from-enc.c: Likewise.
24757         * lib/uniconv/u8-conv-to-enc.c: Likewise.
24758         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
24759         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
24760         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
24761         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
24762         * lib/uniname.h: Likewise.
24763         * lib/uniname/uniname.c: Likewise.
24764         * lib/unistdio.h: Likewise.
24765         * lib/unistdio/u-asnprintf.h: Likewise.
24766         * lib/unistdio/u-asprintf.h: Likewise.
24767         * lib/unistdio/u-printf-args.c: Likewise.
24768         * lib/unistdio/u-printf-args.h: Likewise.
24769         * lib/unistdio/u-printf-parse.h: Likewise.
24770         * lib/unistdio/u-snprintf.h: Likewise.
24771         * lib/unistdio/u-sprintf.h: Likewise.
24772         * lib/unistdio/u-vasprintf.h: Likewise.
24773         * lib/unistdio/u-vsnprintf.h: Likewise.
24774         * lib/unistdio/u-vsprintf.h: Likewise.
24775         * lib/unistdio/u16-asnprintf.c: Likewise.
24776         * lib/unistdio/u16-asprintf.c: Likewise.
24777         * lib/unistdio/u16-printf-parse.c: Likewise.
24778         * lib/unistdio/u16-snprintf.c: Likewise.
24779         * lib/unistdio/u16-sprintf.c: Likewise.
24780         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
24781         * lib/unistdio/u16-u16-asprintf.c: Likewise.
24782         * lib/unistdio/u16-u16-snprintf.c: Likewise.
24783         * lib/unistdio/u16-u16-sprintf.c: Likewise.
24784         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
24785         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
24786         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
24787         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
24788         * lib/unistdio/u16-vasnprintf.c: Likewise.
24789         * lib/unistdio/u16-vasprintf.c: Likewise.
24790         * lib/unistdio/u16-vsnprintf.c: Likewise.
24791         * lib/unistdio/u16-vsprintf.c: Likewise.
24792         * lib/unistdio/u32-asnprintf.c: Likewise.
24793         * lib/unistdio/u32-asprintf.c: Likewise.
24794         * lib/unistdio/u32-printf-parse.c: Likewise.
24795         * lib/unistdio/u32-snprintf.c: Likewise.
24796         * lib/unistdio/u32-sprintf.c: Likewise.
24797         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
24798         * lib/unistdio/u32-u32-asprintf.c: Likewise.
24799         * lib/unistdio/u32-u32-snprintf.c: Likewise.
24800         * lib/unistdio/u32-u32-sprintf.c: Likewise.
24801         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
24802         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
24803         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
24804         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
24805         * lib/unistdio/u32-vasnprintf.c: Likewise.
24806         * lib/unistdio/u32-vasprintf.c: Likewise.
24807         * lib/unistdio/u32-vsnprintf.c: Likewise.
24808         * lib/unistdio/u32-vsprintf.c: Likewise.
24809         * lib/unistdio/u8-asnprintf.c: Likewise.
24810         * lib/unistdio/u8-asprintf.c: Likewise.
24811         * lib/unistdio/u8-printf-parse.c: Likewise.
24812         * lib/unistdio/u8-snprintf.c: Likewise.
24813         * lib/unistdio/u8-sprintf.c: Likewise.
24814         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
24815         * lib/unistdio/u8-u8-asprintf.c: Likewise.
24816         * lib/unistdio/u8-u8-snprintf.c: Likewise.
24817         * lib/unistdio/u8-u8-sprintf.c: Likewise.
24818         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
24819         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
24820         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
24821         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
24822         * lib/unistdio/u8-vasnprintf.c: Likewise.
24823         * lib/unistdio/u8-vasprintf.c: Likewise.
24824         * lib/unistdio/u8-vsnprintf.c: Likewise.
24825         * lib/unistdio/u8-vsprintf.c: Likewise.
24826         * lib/unistdio/ulc-asnprintf.c: Likewise.
24827         * lib/unistdio/ulc-asprintf.c: Likewise.
24828         * lib/unistdio/ulc-printf-parse.c: Likewise.
24829         * lib/unistdio/ulc-snprintf.c: Likewise.
24830         * lib/unistdio/ulc-sprintf.c: Likewise.
24831         * lib/unistdio/ulc-vasnprintf.c: Likewise.
24832         * lib/unistdio/ulc-vasprintf.c: Likewise.
24833         * lib/unistdio/ulc-vsnprintf.c: Likewise.
24834         * lib/unistdio/ulc-vsprintf.c: Likewise.
24835         * lib/unistr.h: Likewise.
24836         * lib/unistr/u-cpy-alloc.h: Likewise.
24837         * lib/unistr/u-cpy.h: Likewise.
24838         * lib/unistr/u-endswith.h: Likewise.
24839         * lib/unistr/u-move.h: Likewise.
24840         * lib/unistr/u-set.h: Likewise.
24841         * lib/unistr/u-startswith.h: Likewise.
24842         * lib/unistr/u-stpcpy.h: Likewise.
24843         * lib/unistr/u-stpncpy.h: Likewise.
24844         * lib/unistr/u-strcat.h: Likewise.
24845         * lib/unistr/u-strcpy.h: Likewise.
24846         * lib/unistr/u-strcspn.h: Likewise.
24847         * lib/unistr/u-strdup.h: Likewise.
24848         * lib/unistr/u-strlen.h: Likewise.
24849         * lib/unistr/u-strncat.h: Likewise.
24850         * lib/unistr/u-strncpy.h: Likewise.
24851         * lib/unistr/u-strnlen.h: Likewise.
24852         * lib/unistr/u-strpbrk.h: Likewise.
24853         * lib/unistr/u-strspn.h: Likewise.
24854         * lib/unistr/u-strstr.h: Likewise.
24855         * lib/unistr/u-strtok.h: Likewise.
24856         * lib/unistr/u16-check.c: Likewise.
24857         * lib/unistr/u16-chr.c: Likewise.
24858         * lib/unistr/u16-cmp.c: Likewise.
24859         * lib/unistr/u16-cpy-alloc.c: Likewise.
24860         * lib/unistr/u16-cpy.c: Likewise.
24861         * lib/unistr/u16-endswith.c: Likewise.
24862         * lib/unistr/u16-mblen.c: Likewise.
24863         * lib/unistr/u16-mbsnlen.c: Likewise.
24864         * lib/unistr/u16-mbtouc-aux.c: Likewise.
24865         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
24866         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
24867         * lib/unistr/u16-mbtouc.c: Likewise.
24868         * lib/unistr/u16-mbtoucr.c: Likewise.
24869         * lib/unistr/u16-move.c: Likewise.
24870         * lib/unistr/u16-next.c: Likewise.
24871         * lib/unistr/u16-prev.c: Likewise.
24872         * lib/unistr/u16-set.c: Likewise.
24873         * lib/unistr/u16-startswith.c: Likewise.
24874         * lib/unistr/u16-stpcpy.c: Likewise.
24875         * lib/unistr/u16-stpncpy.c: Likewise.
24876         * lib/unistr/u16-strcat.c: Likewise.
24877         * lib/unistr/u16-strchr.c: Likewise.
24878         * lib/unistr/u16-strcmp.c: Likewise.
24879         * lib/unistr/u16-strcpy.c: Likewise.
24880         * lib/unistr/u16-strcspn.c: Likewise.
24881         * lib/unistr/u16-strdup.c: Likewise.
24882         * lib/unistr/u16-strlen.c: Likewise.
24883         * lib/unistr/u16-strmblen.c: Likewise.
24884         * lib/unistr/u16-strmbtouc.c: Likewise.
24885         * lib/unistr/u16-strncat.c: Likewise.
24886         * lib/unistr/u16-strncmp.c: Likewise.
24887         * lib/unistr/u16-strncpy.c: Likewise.
24888         * lib/unistr/u16-strnlen.c: Likewise.
24889         * lib/unistr/u16-strpbrk.c: Likewise.
24890         * lib/unistr/u16-strrchr.c: Likewise.
24891         * lib/unistr/u16-strspn.c: Likewise.
24892         * lib/unistr/u16-strstr.c: Likewise.
24893         * lib/unistr/u16-strtok.c: Likewise.
24894         * lib/unistr/u16-to-u32.c: Likewise.
24895         * lib/unistr/u16-to-u8.c: Likewise.
24896         * lib/unistr/u16-uctomb-aux.c: Likewise.
24897         * lib/unistr/u16-uctomb.c: Likewise.
24898         * lib/unistr/u32-check.c: Likewise.
24899         * lib/unistr/u32-chr.c: Likewise.
24900         * lib/unistr/u32-cmp.c: Likewise.
24901         * lib/unistr/u32-cpy-alloc.c: Likewise.
24902         * lib/unistr/u32-cpy.c: Likewise.
24903         * lib/unistr/u32-endswith.c: Likewise.
24904         * lib/unistr/u32-mblen.c: Likewise.
24905         * lib/unistr/u32-mbsnlen.c: Likewise.
24906         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
24907         * lib/unistr/u32-mbtouc.c: Likewise.
24908         * lib/unistr/u32-mbtoucr.c: Likewise.
24909         * lib/unistr/u32-move.c: Likewise.
24910         * lib/unistr/u32-next.c: Likewise.
24911         * lib/unistr/u32-prev.c: Likewise.
24912         * lib/unistr/u32-set.c: Likewise.
24913         * lib/unistr/u32-startswith.c: Likewise.
24914         * lib/unistr/u32-stpcpy.c: Likewise.
24915         * lib/unistr/u32-stpncpy.c: Likewise.
24916         * lib/unistr/u32-strcat.c: Likewise.
24917         * lib/unistr/u32-strchr.c: Likewise.
24918         * lib/unistr/u32-strcmp.c: Likewise.
24919         * lib/unistr/u32-strcpy.c: Likewise.
24920         * lib/unistr/u32-strcspn.c: Likewise.
24921         * lib/unistr/u32-strdup.c: Likewise.
24922         * lib/unistr/u32-strlen.c: Likewise.
24923         * lib/unistr/u32-strmblen.c: Likewise.
24924         * lib/unistr/u32-strmbtouc.c: Likewise.
24925         * lib/unistr/u32-strncat.c: Likewise.
24926         * lib/unistr/u32-strncmp.c: Likewise.
24927         * lib/unistr/u32-strncpy.c: Likewise.
24928         * lib/unistr/u32-strnlen.c: Likewise.
24929         * lib/unistr/u32-strpbrk.c: Likewise.
24930         * lib/unistr/u32-strrchr.c: Likewise.
24931         * lib/unistr/u32-strspn.c: Likewise.
24932         * lib/unistr/u32-strstr.c: Likewise.
24933         * lib/unistr/u32-strtok.c: Likewise.
24934         * lib/unistr/u32-to-u16.c: Likewise.
24935         * lib/unistr/u32-to-u8.c: Likewise.
24936         * lib/unistr/u32-uctomb.c: Likewise.
24937         * lib/unistr/u8-check.c: Likewise.
24938         * lib/unistr/u8-chr.c: Likewise.
24939         * lib/unistr/u8-cmp.c: Likewise.
24940         * lib/unistr/u8-cpy-alloc.c: Likewise.
24941         * lib/unistr/u8-cpy.c: Likewise.
24942         * lib/unistr/u8-endswith.c: Likewise.
24943         * lib/unistr/u8-mblen.c: Likewise.
24944         * lib/unistr/u8-mbsnlen.c: Likewise.
24945         * lib/unistr/u8-mbtouc-aux.c: Likewise.
24946         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
24947         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
24948         * lib/unistr/u8-mbtouc.c: Likewise.
24949         * lib/unistr/u8-mbtoucr.c: Likewise.
24950         * lib/unistr/u8-move.c: Likewise.
24951         * lib/unistr/u8-next.c: Likewise.
24952         * lib/unistr/u8-prev.c: Likewise.
24953         * lib/unistr/u8-set.c: Likewise.
24954         * lib/unistr/u8-startswith.c: Likewise.
24955         * lib/unistr/u8-stpcpy.c: Likewise.
24956         * lib/unistr/u8-stpncpy.c: Likewise.
24957         * lib/unistr/u8-strcat.c: Likewise.
24958         * lib/unistr/u8-strchr.c: Likewise.
24959         * lib/unistr/u8-strcmp.c: Likewise.
24960         * lib/unistr/u8-strcpy.c: Likewise.
24961         * lib/unistr/u8-strcspn.c: Likewise.
24962         * lib/unistr/u8-strdup.c: Likewise.
24963         * lib/unistr/u8-strlen.c: Likewise.
24964         * lib/unistr/u8-strmblen.c: Likewise.
24965         * lib/unistr/u8-strmbtouc.c: Likewise.
24966         * lib/unistr/u8-strncat.c: Likewise.
24967         * lib/unistr/u8-strncmp.c: Likewise.
24968         * lib/unistr/u8-strncpy.c: Likewise.
24969         * lib/unistr/u8-strnlen.c: Likewise.
24970         * lib/unistr/u8-strpbrk.c: Likewise.
24971         * lib/unistr/u8-strrchr.c: Likewise.
24972         * lib/unistr/u8-strspn.c: Likewise.
24973         * lib/unistr/u8-strstr.c: Likewise.
24974         * lib/unistr/u8-strtok.c: Likewise.
24975         * lib/unistr/u8-to-u16.c: Likewise.
24976         * lib/unistr/u8-to-u32.c: Likewise.
24977         * lib/unistr/u8-uctomb-aux.c: Likewise.
24978         * lib/unistr/u8-uctomb.c: Likewise.
24979         * lib/unitypes.h: Likewise.
24980         * lib/uniwidth.h: Likewise.
24981         * lib/uniwidth/cjk.h: Likewise.
24982         * lib/uniwidth/u16-strwidth.c: Likewise.
24983         * lib/uniwidth/u16-width.c: Likewise.
24984         * lib/uniwidth/u32-strwidth.c: Likewise.
24985         * lib/uniwidth/u32-width.c: Likewise.
24986         * lib/uniwidth/u8-strwidth.c: Likewise.
24987         * lib/uniwidth/u8-width.c: Likewise.
24988         * lib/uniwidth/width.c: Likewise.
24989
24990 2007-10-07  Bruno Haible  <bruno@clisp.org>
24991
24992         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
24993         The file is still under LGPL (see modules/inttypes).
24994
24995 2007-10-06  Bruno Haible  <bruno@clisp.org>
24996
24997         * modules/trunc (Dependencies): Add 'extensions'.
24998         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
24999         Reported by Ben Pfaff <blp@gnu.org>.
25000
25001 2007-10-06  Bruno Haible  <bruno@clisp.org>
25002
25003         * modules/freopen-tests: New file.
25004         * tests/test-freopen.c: New file.
25005
25006         * modules/fopen-tests: New file.
25007         * tests/test-fopen.c: New file.
25008
25009         * modules/fopen: New file.
25010         * lib/fopen.c: New file.
25011         * m4/fopen.m4: New file.
25012         * modules/freopen: New file.
25013         * lib/freopen.c: New file.
25014         * m4/freopen.m4: New file.
25015         * lib/stdio.in.h (fopen, freopen): New declarations.
25016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
25017         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25018         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
25019         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25020         * doc/functions/fopen.texi: Mention the 'fopen' module.
25021         * doc/functions/freopen.texi: Mention the 'freopen' module.
25022
25023 2007-10-06  Bruno Haible  <bruno@clisp.org>
25024
25025         * modules/open-tests: New file.
25026         * tests/test-open.c: New file.
25027
25028         * modules/open: New file.
25029         * lib/open.c: New file.
25030         * m4/open.m4: New file.
25031         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
25032         lib/open.c does.
25033         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
25034         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
25035         macros.
25036         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
25037         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
25038         REPLACE_OPEN.
25039         * doc/functions/open.texi: Mention the 'open' module.
25040
25041 2007-10-04  Bruno Haible  <bruno@clisp.org>
25042
25043         * modules/ceill-tests: New file.
25044         * tests/test-ceill.c: New file.
25045
25046         * modules/ceill: New file.
25047         * lib/ceill.c: Replace entire file.
25048         * m4/ceill.m4: New file.
25049         * lib/math.in.h (ceill): Replace declaration.
25050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
25051         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
25052         * doc/functions/ceill.texi: Mention the 'ceill' module.
25053         * modules/mathl (Files): Remove lib/ceill.c.
25054         (Depends-on): Add ceill.
25055
25056 2007-10-04  Bruno Haible  <bruno@clisp.org>
25057
25058         * modules/ceilf-tests: New file.
25059         * tests/test-ceilf.c: New file.
25060
25061         * modules/ceilf: New file.
25062         * lib/ceil.c: New file.
25063         * lib/ceilf.c: New file.
25064         * m4/ceilf.m4: New file.
25065         * lib/math.in.h (ceilf): New declaration.
25066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
25067         HAVE_DECL_CEILF.
25068         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
25069         HAVE_DECL_CEILF.
25070         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
25071
25072 2007-10-04  Bruno Haible  <bruno@clisp.org>
25073
25074         * modules/floorl-tests: New file.
25075         * tests/test-floorl.c: New file.
25076
25077         * modules/floorl: New file.
25078         * lib/floorl.c: Replace entire file.
25079         * m4/floorl.m4: New file.
25080         * lib/math.in.h (floorl): Replace declaration.
25081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
25082         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
25083         * doc/functions/floorl.texi: Mention the 'floorl' module.
25084         * modules/mathl (Files): Remove lib/floorl.c.
25085         (Depends-on): Add floorl.
25086
25087 2007-10-04  Bruno Haible  <bruno@clisp.org>
25088
25089         * modules/floorf-tests: New file.
25090         * tests/test-floorf.c: New file.
25091
25092         * modules/floorf: New file.
25093         * lib/floor.c: New file.
25094         * lib/floorf.c: New file.
25095         * m4/floorf.m4: New file.
25096         * lib/math.in.h (floorf): New declaration.
25097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
25098         HAVE_DECL_FLOORF.
25099         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
25100         HAVE_DECL_FLOORF.
25101         * doc/functions/floorf.texi: Mention the 'floorf' module.
25102
25103 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
25104             Bruno Haible  <bruno@clisp.org>
25105
25106         Advertise for the Git server instead of the CVS server.
25107         * doc/gnulib-intro.texi (Steady Development): Mention the Git
25108         repository instead of the CVS one.
25109         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
25110         about all VCS systems generically.
25111         * doc/gnulib.texi (Introduction): Capitalize `Git'.
25112
25113 2007-10-04  Bruno Haible  <bruno@clisp.org>
25114
25115         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
25116         means.
25117         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
25118
25119 2007-10-04  Bruno Haible  <bruno@clisp.org>
25120
25121         * modules/truncl-tests: New file.
25122         * tests/test-truncl.c: New file.
25123
25124         * modules/truncl: New file.
25125         * lib/truncl.c: New file.
25126         * m4/truncl.m4: New file.
25127         * lib/math.in.h (truncl): New declaration.
25128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
25129         HAVE_DECL_TRUNCL.
25130         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
25131         HAVE_DECL_TRUNCL.
25132         * doc/functions/truncl.texi: Mention the 'truncl' module.
25133
25134 2007-10-04  Bruno Haible  <bruno@clisp.org>
25135
25136         * modules/truncf-tests: New file.
25137         * tests/test-truncf.c: New file.
25138
25139         * modules/truncf: New file.
25140         * lib/trunc.c: Make paramerizable through USE_* macros.
25141         * lib/truncf.c: New file.
25142         * m4/truncf.m4: New file.
25143         * lib/math.in.h (truncf): New declaration.
25144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
25145         HAVE_DECL_TRUNCF.
25146         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
25147         HAVE_DECL_TRUNCF.
25148         * doc/functions/truncf.texi: Mention the 'truncf' module.
25149
25150 2007-10-03  Bruno Haible  <bruno@clisp.org>
25151
25152         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25153         augmentation also for tests modules.
25154         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
25155         * modules/atexit-tests (Makefile.am): Likewise.
25156         * modules/binary-io-tests (Makefile.am): Likewise.
25157         * modules/c-strcase-tests (Makefile.am): Likewise.
25158         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
25159         * modules/canonicalize-tests (Makefile.am): Likewise.
25160         * modules/closein-tests (Makefile.am): Likewise.
25161         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25162         * modules/freadahead-tests (Makefile.am): Likewise.
25163         * modules/fseek-tests (Makefile.am): Likewise.
25164         * modules/fseeko-tests (Makefile.am): Likewise.
25165         * modules/ftell-tests (Makefile.am): Likewise.
25166         * modules/ftello-tests (Makefile.am): Likewise.
25167         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
25168         * modules/isnanl-tests (Makefile.am): Likewise.
25169         * modules/lseek-tests (Makefile.am): Likewise.
25170         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25171         * modules/mbscasestr-tests (Makefile.am): Likewise.
25172         * modules/mbschr-tests (Makefile.am): Likewise.
25173         * modules/mbscspn-tests (Makefile.am): Likewise.
25174         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25175         * modules/mbspbrk-tests (Makefile.am): Likewise.
25176         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25177         * modules/mbsrchr-tests (Makefile.am): Likewise.
25178         * modules/mbsspn-tests (Makefile.am): Likewise.
25179         * modules/mbsstr-tests (Makefile.am): Likewise.
25180         * modules/printf-posix-tests (Makefile.am): Likewise.
25181         * modules/snprintf-posix-tests (Makefile.am): Likewise.
25182         * modules/sprintf-posix-tests (Makefile.am): Likewise.
25183         * modules/tsearch-tests (Makefile.am): Likewise.
25184         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25185         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25186         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25187         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25188         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25189         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25190         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25191         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25192         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
25193         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
25194         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25195         * modules/xstrtol-tests (Makefile.am): Likewise.
25196         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25197         * modules/yesno-tests (Makefile.am): Likewise.
25198
25199 2007-10-03  Bruno Haible  <bruno@clisp.org>
25200
25201         * modules/trunc-tests: New file.
25202         * tests/test-trunc.c: New file.
25203
25204         * modules/trunc: New file.
25205         * lib/trunc.c: New file.
25206         * m4/trunc.m4: New file.
25207         * lib/math.in.h (trunc): New declaration.
25208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
25209         HAVE_DECL_TRUNC.
25210         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
25211         HAVE_DECL_TRUNC.
25212         * doc/functions/trunc.texi: Mention the 'trunc' module.
25213
25214 2007-10-03  Bruno Haible  <bruno@clisp.org>
25215
25216         * tests/test-fpending.c: New file, mostly copied
25217         from coreutils/lib/t-fpending.c.
25218         * modules/fpending-tests: New file.
25219
25220 2007-10-03  Bruno Haible  <bruno@clisp.org>
25221
25222         Port the stdio extensions to QNX (untested).
25223         * lib/fseterr.c (fseterr): Add support for QNX.
25224         * lib/fbufmode.c (fbufmode): Likewise.
25225         * lib/freadable.c (freadable): Likewise.
25226         * lib/fwritable.c (fwritable): Likewise.
25227         * lib/freading.c (freading): Likewise.
25228         * lib/fwriting.c (fwriting): Likewise.
25229         * lib/freadahead.c (freadahed): Likewise.
25230         * lib/fpurge.c (fpurge): Likewise.
25231         * lib/fseeko.c (rpl_fseeko): Likewise.
25232
25233 2007-10-03  Bruno Haible  <bruno@clisp.org>
25234             Jim Meyering  <jim@meyering.net>
25235             Eric Blake  <ebb9@byu.net>
25236
25237         * doc/relocatable.texi: Use @command instead of @program.
25238
25239 2007-10-02  Jim Meyering  <jim@meyering.net>
25240
25241         Perform one more "_.h" -> ".in.h" substitution.
25242         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
25243         instead of unistd_.h here, too.
25244
25245 2007-10-01  Bruno Haible  <bruno@clisp.org>
25246
25247         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
25248         Needed for the alloca-opt module.
25249
25250 2007-09-30  Bruno Haible  <bruno@clisp.org>
25251
25252         * lib/alloca.in.h: Renamed from lib/alloca_.h.
25253         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
25254         alloca_.h.
25255         * lib/argz.in.h: Renamed from lib/argz_.h.
25256         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
25257         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
25258         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
25259         byteswap_.h.
25260         * lib/dirent.in.h: Renamed from lib/dirent_.h.
25261         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
25262         dirent_.h.
25263         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
25264         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
25265         fcntl_.h.
25266         * lib/float.in.h: Renamed from lib/float_.h.
25267         * modules/float (Files, Makefile.am): Use float.in.h instead of
25268         float_.h.
25269         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
25270         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
25271         fnmatch_.h.
25272         * lib/getopt.in.h: Renamed from lib/getopt_.h.
25273         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
25274         getopt_.h.
25275         * lib/glob.in.h: Renamed from lib/glob_.h.
25276         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
25277         * lib/iconv.in.h: Renamed from lib/iconv_.h.
25278         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
25279         iconv_.h.
25280         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
25281         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
25282         inttypes_.h.
25283         * lib/locale.in.h: Renamed from lib/locale_.h.
25284         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
25285         locale_.h.
25286         * lib/math.in.h: Renamed from lib/math_.h.
25287         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
25288         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
25289         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
25290         of netinet_in_.h. Add dependency.
25291         * lib/poll.in.h: Renamed from lib/poll_.h.
25292         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
25293         * lib/search.in.h: Renamed from lib/search_.h.
25294         * modules/search (Files, Makefile.am): Use search.in.h instead of
25295         search_.h.
25296         * lib/signal.in.h: Renamed from lib/signal_.h.
25297         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
25298         _signal.h.
25299         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
25300         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
25301         stdbool_.h.
25302         * lib/stdint.in.h: Renamed from lib/stdint_.h.
25303         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
25304         stdint_.h.
25305         * lib/stdio.in.h: Renamed from lib/stdio_.h.
25306         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
25307         stdio_.h.
25308         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
25309         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
25310         stdlib_.h.
25311         * lib/string.in.h: Renamed from lib/string_.h.
25312         * modules/string (Files, Makefile.am): Use string.in.h instead of
25313         string_.h.
25314         * doc/gnulib-tool.texi (Initial import): Update.
25315         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
25316         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
25317         of sys_select_.h. Add dependency.
25318         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
25319         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
25320         of sys_socket_.h.
25321         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
25322         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
25323         sys_stat_.h.
25324         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
25325         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
25326         sys_time_.h.
25327         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
25328         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
25329         sysexits_.h.
25330         * lib/time.in.h: Renamed from lib/time_.h.
25331         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
25332         * lib/unistd.in.h: Renamed from lib/unistd_.h.
25333         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
25334         unistd_.h.
25335         * lib/wchar.in.h: Renamed from lib/wchar_.h.
25336         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
25337         wchar_.h.
25338         * lib/wctype.in.h: Renamed from lib/wctype_.h.
25339         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
25340         wctype_.h.
25341         * build-aux/bootstrap (slurp): Update.
25342         * lib/.cppi-disable: Update.
25343
25344 2007-09-30  Bruno Haible  <bruno@clisp.org>
25345
25346         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
25347         Needed on BeOS.
25348
25349 2007-09-30  Bruno Haible  <bruno@clisp.org>
25350
25351         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
25352
25353 2007-09-29  Bruno Haible  <bruno@clisp.org>
25354
25355         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
25356
25357 2007-09-29  Bruno Haible  <bruno@clisp.org>
25358
25359         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
25360         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
25361         * build-aux/install-reloc: Compile also areadlink.c.
25362         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
25363
25364 2007-09-29  Bruno Haible  <bruno@clisp.org>
25365
25366         * gnulib-tool (func_emit_initmacro_done): Indentation.
25367
25368 2007-09-29  Bruno Haible  <bruno@clisp.org>
25369
25370         * README: Add CVS checkout update instructions.
25371         Info from Bob Proulx <bob@proulx.com>.
25372
25373 2007-09-28  Eric Blake  <ebb9@byu.net>
25374
25375         Provide move-if-change.
25376         * build-aux/move-if-change: New file, based on best practice
25377         rather than any canonical upstream location.
25378
25379 2007-09-28  Jim Meyering  <jim@meyering.net>
25380
25381         Fix canonicalize loop-detection corner case.
25382         Do not attempt to stat the symlink values stored via seen_triple.
25383         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
25384         on linux-2.6.18, (but not 2.6.22).
25385         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
25386         triple_compare.  The former compares dev,ino,filename, while the latter
25387         would actually stat dirname(filename) when dev and ino were equal.
25388         * lib/hash-triple.c: Install <string.h>.
25389         (STREQ): Define.
25390         (triple_compare_ino_str): New function.
25391         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
25392
25393 2007-09-28  Eric Blake  <ebb9@byu.net>
25394
25395         Enforce that AC_REPLACE_FUNCS files exist.
25396         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
25397         override check for typos.
25398
25399         Fix test-closein on Solaris 10.
25400         * tests/test-closein.c (main): Don't assume stdin can be inherited
25401         closed on all systems.
25402         * tests/test-closein.sh: Likewise.
25403         Reported by Piotr Tarnowski.
25404
25405 2007-09-28  Jim Meyering  <jim@meyering.net>
25406
25407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
25408
25409 2007-09-27  Jim Meyering  <jim@meyering.net>
25410
25411         canonicalize: Avoid a false-positive cycle failure.
25412         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
25413         Sort.  Remove cycle-check.
25414         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
25415         not cycle-check.h.
25416         (seen_triple): New function.
25417         (canonicalize_filename_mode): Use it instead of cycle-check.
25418         * tests/test-canonicalize.c: Add a test for this bug.
25419         * tests/test-canonicalize.sh: Set up and run the test.
25420
25421         New module, file-set, from coreutils.
25422         * modules/file-set: Define it.
25423         * lib/file-set.c, lib/file-set.h: Implement.
25424
25425         New module, hash-triple, from coreutils.
25426         * modules/hash-triple: Define it.
25427         * lib/hash-triple.c, lib/hash-triple.h: Implement.
25428
25429 2007-09-25  Eric Blake  <ebb9@byu.net>
25430
25431         Fix strerror on Interix.
25432         * lib/string_.h (strerror): Declare replacement.
25433         * doc/functions/strerror.texi (strerror): Document the Interix
25434         shortcoming.
25435         * modules/string (Makefile.am): Support new hooks.
25436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
25437         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
25438         gl_FUNC_STRERROR_SEPARATE.
25439         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
25440         * lib/strerror.c (rpl_strerror): Provide replacement.
25441         * modules/strerror (Depends-on): Add string.
25442         (configure.ac): Detect use of module.
25443         * tests/test-strerror.c: New file.
25444         * modules/strerror-tests: New test module.
25445         * modules/argp (Depends-on): Add strerror.
25446         * modules/error (Depends-on): Likewise.
25447         Reported by Martin Koeppe.
25448
25449 2007-09-24  Bruno Haible  <bruno@clisp.org>
25450
25451         * README: Update git instructions.
25452
25453 2007-09-24  Eric Blake  <ebb9@byu.net>
25454
25455         Revert fpending breakage from 2007-09-08.
25456         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
25457         __fpending.c.
25458
25459 2007-09-24  Jim Meyering  <jim@meyering.net>
25460
25461         filenamecat.c: Add a test.
25462         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
25463         showing how the function works when DIR is the empty string.
25464
25465 2007-09-21  Simon Josefsson  <simon@josefsson.org>
25466
25467         * tests/test-canonicalize.sh: Turn on executable bit.
25468
25469 2007-09-19  Eric Blake  <ebb9@byu.net>
25470
25471         * README: Update CVS instructions.
25472
25473 2007-09-18  Bruno Haible  <bruno@clisp.org>
25474
25475         * modules/areadlink: New file.
25476         * lib/areadlink.h (areadlink): New declaration.
25477         * lib/areadlink.c: New file, based on lib/xreadlink.c.
25478
25479 2007-09-17  Jim Meyering  <jim@meyering.net>
25480
25481         * lib/savewd.c (ESTALE) [!defined]: Define.
25482         Reported to be required on Interix by Martin Koeppe.
25483
25484 2007-09-17  Bruno Haible  <bruno@clisp.org>
25485
25486         * gnulib-tool (func_version): Use $version.
25487
25488 2007-09-16  Bruno Haible  <bruno@clisp.org>
25489
25490         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
25491         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
25492         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
25493         Reported by Greg Schafer <gschafer@zip.com.au>.
25494
25495 2007-09-15  Bruno Haible  <bruno@clisp.org>
25496
25497         * gnulib-tool (sed): Try a little harder to make bash understand the
25498         alias.
25499         Reported by Bruce Korb <bruce.korb@gmail.com>.
25500
25501 2007-09-13  Eric Blake  <ebb9@byu.net>
25502
25503         * ChangeLog: Remove conflict markers.
25504
25505 2007-09-13  Simon Josefsson  <simon@josefsson.org>
25506
25507         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
25508         Reported by Bruno Haible <bruno@clisp.org>.
25509
25510 2007-09-12  Bruno Haible  <bruno@clisp.org>
25511
25512         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
25513         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
25514         is not defined.
25515
25516 2007-09-12  Eric Blake  <ebb9@byu.net>
25517
25518         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
25519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
25520         Autoconf definition.
25521         * modules/euidaccess (Depends-on): Add extensions, for
25522         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
25523         * modules/fnmatch (Depends-on): Likewise.
25524         * modules/getaddrinfo (Depends-on): Likewise.
25525         * modules/getdelim (Depends-on): Likewise.
25526         * modules/getline (Depends-on): Likewise.
25527         * modules/getsubopt (Depends-on): Likewise.
25528         * modules/gettext (Depends-on): Likewise.
25529         * modules/group-member (Depends-on): Likewise.
25530         * modules/mbchar (Depends-on): Likewise.
25531         * modules/memmem (Depends-on): Likewise.
25532         * modules/mempcpy (Depends-on): Likewise.
25533         * modules/memrchr (Depends-on): Likewise.
25534         * modules/pagealign_alloc (Depends-on): Likewise.
25535         * modules/readutmp (Depends-on): Likewise.
25536         * modules/stpcpy (Depends-on): Likewise.
25537         * modules/stpncpy (Depends-on): Likewise.
25538         * modules/strchrnul (Depends-on): Likewise.
25539         * modules/strndup (Depends-on): Likewise.
25540         * modules/strsep (Depends-on): Likewise.
25541         * modules/strverscmp (Depends-on): Likewise.
25542         * modules/vasprintf (Depends-on): Likewise.
25543         * modules/wcwidth (Depends-on): Likewise.
25544         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
25545         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
25546         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
25547         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
25548         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25549         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25550         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
25551         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25552         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
25553         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25555         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
25556         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
25557         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25558         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
25559         * m4/readutmp.m4 (gl_READUTMP): Likewise.
25560         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25561         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
25562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25563         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
25564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25565         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
25566         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
25567         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
25568         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
25569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25570         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
25571         so that lock.m4 can be used in gettext without extensions module.
25572
25573 2007-09-11  Bruno Haible  <bruno@clisp.org>
25574
25575         * m4/isc-posix.m4: Remove file.
25576         Suggested by Eric Blake.
25577
25578 2007-09-11  Eric Blake  <ebb9@byu.net>
25579
25580         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
25581
25582 2007-09-10  Bruno Haible  <bruno@clisp.org>
25583
25584         * posix-modules: Fix typo in error message.
25585         Reported by Matt <mkraai@beckman.com>.
25586
25587 2007-09-09  Bruno Haible  <bruno@clisp.org>
25588
25589         * doc/functions/getdelim.texi: Update list of platforms lacking the
25590         function.
25591         * doc/functions/getline.texi: Likewise.
25592
25593 2007-09-09  Jim Meyering  <jim@meyering.net>
25594
25595         * lib/hash.c (hash_initialize): Detect calloc failure.
25596         Reported by Bruno Haible.
25597
25598 2007-09-09  Bruno Haible  <bruno@clisp.org>
25599
25600         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
25601         malloc or realloc fails.
25602
25603 2007-09-09  Bruno Haible  <bruno@clisp.org>
25604
25605         * modules/getcwd (Depends-on): Add malloc-posix.
25606         * modules/glob (Depends-on): Likewise.
25607         * modules/putenv (Depends-on): Likewise.
25608         * modules/strdup (Depends-on): Likewise.
25609         * modules/getdelim (Depends-on): Add realloc-posix.
25610         * modules/read-file (Depends-on): Likewise.
25611
25612 2007-09-09  Bruno Haible  <bruno@clisp.org>
25613
25614         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
25615         (gl_FUNC_MALLOC_POSIX): Require it.
25616         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
25617         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
25618         * modules/realloc (Files): Add m4/malloc.m4.
25619         * modules/calloc (Files): Likewise.
25620
25621 2007-09-09  Bruno Haible  <bruno@clisp.org>
25622
25623         * modules/malloc-posix: New file.
25624         * modules/malloc (Depends-on): Add malloc-posix.
25625         * lib/malloc.c: Include errno.h.
25626         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
25627         and a POSIX-compatible malloc into a single function. Set ENOMEM
25628         when returning NULL.
25629         * m4/malloc.m4: New file.
25630         * doc/functions/malloc.texi: Mention the malloc-posix module.
25631         * lib/stdlib_.h (malloc): New declaration.
25632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25633         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
25634         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
25635         and HAVE_MALLOC_POSIX.
25636
25637 2007-09-09  Bruno Haible  <bruno@clisp.org>
25638
25639         * modules/realloc-posix: New file.
25640         * modules/realloc (Depends-on): Add realloc-posix.
25641         * lib/realloc.c: Include errno.h.
25642         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
25643         and a POSIX-compatible realloc into a single function. Set ENOMEM
25644         when returning NULL.
25645         * m4/realloc.m4: New file.
25646         * doc/functions/realloc.texi: Mention the realloc-posix module.
25647         * lib/stdlib_.h (realloc): New declaration.
25648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25649         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
25650         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
25651         and HAVE_REALLOC_POSIX.
25652
25653 2007-09-09  Bruno Haible  <bruno@clisp.org>
25654
25655         * modules/calloc-posix: New file.
25656         * modules/calloc (Depends-on): Add calloc-posix.
25657         * lib/calloc.c: Include errno.h.
25658         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
25659         and a POSIX-compatible calloc into a single function. Set ENOMEM
25660         when returning NULL.
25661         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
25662         * doc/functions/calloc.texi: Mention the calloc-posix module.
25663         * lib/stdlib_.h (calloc): New declaration.
25664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25665         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
25666         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
25667         and HAVE_CALLOC_POSIX.
25668
25669 2007-09-09  Bruno Haible  <bruno@clisp.org>
25670
25671         Allow for modules to show an arbitrary notice.
25672         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
25673         * gnulib-tool: New option --extract-notice.
25674         (func_usage): Document it.
25675         (sed_extract_prog): Update.
25676         (func_get_notice): New function.
25677         (func_modules_notice): New function.
25678         (func_import, func_create_testdir): Invoke it.
25679         Suggested by Jim Meyering.
25680
25681 2007-09-09  Bruno Haible  <bruno@clisp.org>
25682
25683         * gnulib-tool: New options --verbose, --quiet.
25684         (func_usage): Document them.
25685         (verbose): New variable.
25686         (func_execute_command): New function.
25687         (func_import): Don't show the module list and the file list if
25688         $verbose < 0.
25689         (func_create_testdir): Likewise. Use func_execute_command.
25690         (func_create_megatestdir): Use func_execute_command.
25691
25692 2007-09-08  Bruno Haible  <bruno@clisp.org>
25693
25694         * gnulib-tool (func_import): Prefer rsync over wget when available,
25695         for fetching the PO files.
25696
25697 2007-09-08  Bruno Haible  <bruno@clisp.org>
25698
25699         * posix-modules: New file. Portions copied from gnulib-tool.
25700         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
25701
25702 2007-09-08  Jim Meyering  <jim@meyering.net>
25703
25704         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
25705         * lib/fpending.h: Rename from __fpending.h.
25706         * lib/fpending.c: Rename from __fpending.c.
25707         Include "fpending.h", not "__fpending.h".
25708         * lib/__fpending.h, lib/__fpending.c: Remove files.
25709         * modules/fpending (Files): Reflect new file names.
25710         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
25711
25712 2007-09-08  Bruno Haible  <bruno@clisp.org>
25713
25714         * m4/inttypes-h.m4: Remove stub file.
25715
25716 2007-09-07  Simon Josefsson  <simon@josefsson.org>
25717
25718         * doc/headers/stdint.texi: Discuss #include_next issue.
25719
25720 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25721
25722         * build-aux/bootstrap: Remove obsolete comment about wget --help.
25723
25724 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25725
25726         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
25727         in variable name.
25728
25729 2007-09-03  Jim Meyering  <jim@meyering.net>
25730
25731         New module: git-version-gen.
25732         * modules/git-version-gen: New file.
25733
25734         Import changes from coreutils for bootstrap script.
25735
25736         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
25737
25738         bootstrap: uses rsync to download the .po files
25739         * build-aux/bootstrap (po_download_command_format): New global.
25740         (download_po_files): Use rsync.
25741         (update_po_files): Don't remove .po files after download,
25742         so future rsync runs can take advantage of the copies.
25743
25744         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
25745
25746         Solve the unnecessary-.po-file-regeneration problem once and for all.
25747         * build-aux/bootstrap (download_po_files): New function, renamed from
25748         get_translations.  Now, downloads, but doesn't update LINGUAS.
25749         (update_po_files): New function.
25750
25751         bootstrap: Ignore more.
25752         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
25753         uniwidth to e.g., lib/.gitignore.
25754         (slurp): Handle the sys_stat_.h -> sys mapping, too.
25755
25756         * build-aux/bootstrap: New setting: vc_ignore.
25757         (insert_sorted_if_absent): Create $file if absent.
25758         Adapt to new, possibly empty, list: $vc_ignore.
25759
25760         bootstrap: generate more ignorable names
25761         * build-aux/bootstrap (slurp): When generating ignorable names,
25762         also map .sin to .sed, .gperf to .c, and .y to .c.
25763
25764 2007-09-03  Jim Meyering  <jim@meyering.net>
25765
25766         * build-aux/git-version-gen: New file, from coreutils.  For details, see
25767         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
25768
25769 2007-09-02  Bruno Haible  <bruno@clisp.org>
25770
25771         Fix mis-recognition of 'mcs' on QNX 6.
25772         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
25773         output contains the string "Mono".
25774         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
25775         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
25776
25777 2007-09-01  Bruno Haible  <bruno@clisp.org>
25778
25779         Fix collision between uniwidth/* and linebreak modules.
25780         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
25781         u32_width): Remove declarations.
25782         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
25783         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
25784         streq3, streq2, streq1, streq0): Remove functions.
25785         (STREQ): Remove macro.
25786         (is_cjk_encoding): Remove function.
25787         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
25788         (uc_width, u8_width, u16_width, u32_width): Remove functions.
25789         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
25790         * NEWS: Document the change.
25791
25792 2007-09-01  Bruno Haible  <bruno@clisp.org>
25793
25794         * lib/streq.h: Add double-inclusion guard.
25795
25796 2007-09-01  Karl Berry  <karl@gnu.org>
25797
25798         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
25799
25800 2007-08-28  Jim Meyering  <jim@meyering.net>
25801
25802         Rename mreadlink_with_size to areadlink_with_size.
25803         * NEWS: Document the change.
25804         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
25805         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
25806         * lib/mreadlink.h: Rename this to...
25807         * lib/areadlink.h: ...this.
25808         * modules/mreadlink-with-size: Rename this to...
25809         * modules/areadlink-with-size: ...this.
25810         * lib/canonicalize.c: Reflect the renaming.
25811         * modules/canonicalize: Likewise.
25812
25813 2007-08-26  Bruno Haible  <bruno@clisp.org>
25814
25815         * gnulib-tool (func_import): When deciding which files to remove,
25816         consider also dangling symbolic links.
25817         Reported by Eric Blake.
25818
25819 2007-08-26  Bruno Haible  <bruno@clisp.org>
25820
25821         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
25822
25823 2007-08-23  Simon Josefsson  <simon@josefsson.org>
25824
25825         * lib/readline.c: Don't include getline.h, the prototype is now
25826         found in stdio.h.
25827
25828 2007-08-23  Jim Meyering  <jim@meyering.net>
25829
25830         Getdelim touchup.
25831         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
25832         around the funlockfile call, since funlockfile never sets errno.
25833         Don't set errno upon failed realloc.
25834
25835 2007-08-22  Eric Blake  <ebb9@byu.net>
25836
25837         Getline touchups.
25838         * lib/getdelim.c (getdelim): Revert regression that required *n to
25839         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
25840         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
25841         getdelim, rather than whether implementation is missing.
25842         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
25843         * lib/stdio_.h (getline): Also declare if replacement is
25844         required.
25845         * doc/functions/getdelim.texi: New file.
25846         * doc/functions/getline.texi: Likewise.
25847         * doc/gnulib.texi (Function Substitutes): Add new files.
25848         Reported by Bruno Haible.
25849
25850 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
25851
25852         * users.txt: Add Guile.
25853
25854 2007-08-22  Eric Blake  <ebb9@byu.net>
25855
25856         * tests/test-getdelim.c (main): Use remove, not unlink.
25857         * tests/test-getline.c (main): Likewise.
25858
25859         Move getline and getdelim into stdio.h, per POSIX 200x.
25860         * modules/getline (Files): Remove getline.h.
25861         (Depends-on): Add stdio.
25862         (configure.ac): Add module indicator.
25863         * modules/getdelim (Files): Remove getdelim.h.
25864         (Depends-on): Add stdio.
25865         (configure.ac): Add module indicator.
25866         * modules/stdio (Makefile.am): Work with new indicators.
25867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
25869         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25870         * lib/getdelim.h: Delete.
25871         * lib/getline.h: Delete.
25872         * lib/stdio_.h (getdelim, getline): Declare.
25873         * modules/getdelim-tests: New module.
25874         * modules/getline-tests: Likewise.
25875         * tests/test-getdelim.c: New file.
25876         * tests/test-getline.c: Likewise.
25877         * NEWS: Document the change.
25878         * lib/getline.c: Update choice of header.
25879         * lib/csharpcomp.c: Likewise.
25880         * lib/getpass.c: Likewise.
25881         * lib/javacomp.c: Likewise.
25882         * lib/javaversion.c: Likewise.
25883         * lib/yesno.c: Likewise.
25884         * lib/getdelim.c: Likewise.
25885         (getdelim): Set errno on failure, and avoid memory leak.
25886
25887 2007-08-19  Bruno Haible  <bruno@clisp.org>
25888
25889         * modules/closein (Depends-on): Add freadahead.
25890         * lib/closein.c: Include freadahead.h.
25891         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
25892         is zero.
25893
25894 2007-08-19  Bruno Haible  <bruno@clisp.org>
25895
25896         * modules/freadahead-tests: New file.
25897         * tests/test-freadahead.sh: New file.
25898         * tests/test-freadahead.c: New file.
25899
25900         * modules/freadahead: New file.
25901         * lib/freadahead.h: New file.
25902         * lib/freadahead.c: New file.
25903         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
25904         fbufmode, fpurge, freadable, fwritable.
25905
25906 2007-08-19  Eric Blake  <ebb9@byu.net>
25907
25908         Test yesno in combination with closein.
25909         * lib/yesno.c (yesno): Document use of stdin.
25910         * modules/yesno-tests (Files): New module.
25911         * tests/test-yesno.c (main): New file.
25912         * tests/test-yesno.sh: Likewise.
25913
25914 2007-08-19  Bruno Haible  <bruno@clisp.org>
25915
25916         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
25917         * lib/fseeko.c (rpl_fseeko): Likewise.
25918         * lib/fseterr.c (fseterr): Likewise.
25919
25920 2007-08-19  Bruno Haible  <bruno@clisp.org>
25921
25922         * tests/test-lseek.c (main): Disable a test for BeOS.
25923         * doc/functions/lseek.texi: Document the BeOS bug.
25924
25925 2007-08-19  Bruno Haible  <bruno@clisp.org>
25926             Eric Blake  <ebb9@byu.net>
25927
25928         * lib/lseek.c: Include <sys/stat.h>.
25929         (rpl_lseek): Add workaround code also for Unix platforms.
25930         Needed for BeOS.
25931         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
25932         * doc/functions/lseek.texi: Document BeOS definiency.
25933
25934 2007-08-18  Bruno Haible  <bruno@clisp.org>
25935
25936         * modules/fstrcmp-tests: New file.
25937         * tests/test-fstrcmp.c: New file.
25938
25939 2007-08-18  Bruno Haible  <bruno@clisp.org>
25940
25941         * modules/fstrcmp: New file, from GNU gettext with modifications.
25942         * lib/fstrcmp.h: New file, from GNU gettext.
25943         * lib/fstrcmp.c: New file, from GNU gettext.
25944         * MODULES.html.sh (String handling): Add fstrcmp.
25945
25946 2007-08-18  Bruno Haible  <bruno@clisp.org>
25947
25948         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
25949         'bool'.
25950         (diag, compareseq): Remove const from the ctxt argument.
25951         (USE_HEURISTIC): Undefine at the end.
25952
25953 2007-08-18  Jim Meyering  <jim@meyering.net>
25954
25955         New file: lib/idcache.h
25956         * NEWS: Mention the addition.
25957         * modules/idcache (Files): Add lib/idcache.h
25958         * lib/idcache.c: Include "idcache.h".
25959         Don't include <sys/types.h>.
25960         Add a FIXME comment.
25961         Move file-scoped "static" declarations to the top.
25962         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
25963
25964 2007-08-17  Bruno Haible  <bruno@clisp.org>
25965         and Paul Eggert  <eggert@cs.ucla.edu>
25966
25967         * MODULES.html.sh: Add diffseq.
25968         * modules/diffseq: New file.
25969         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
25970         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
25971
25972 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25973
25974         Import changes from coreutils for bootstrap script.
25975
25976         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
25977
25978         * build-aux/bootstrap (slurp): Work even in environments where
25979         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
25980         current code does not slurp files whose names start with ".", and
25981         this looks like it might be a troublesome area.
25982
25983         2007-07-11  Jim Meyering  <jim@meyering.net>
25984
25985         If there's a GPL vN copyright comment, require that N == 3.
25986
25987         2007-07-08  Jim Meyering  <jim@meyering.net>
25988
25989         Run the coreutils-specific code only if tests/Makefile.am.in exists.
25990         * build-aux/bootstrap (mam_template): Move definition out of loop.
25991
25992         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
25993
25994         * build-aux/bootstrap (symlink_to_dir): Rename function from
25995         symlink_to_gnulib.  Add a directory parameter.  Update all
25996         callers.
25997         (cp_mark_as_generated): Also check for -- and link to -- files in
25998         gl/.
25999
26000         2007-07-08  Jim Meyering  <jim@meyering.net>
26001
26002         Adapt to deeper hierarchy in gnulib.
26003         * build-aux/bootstrap (symlink_to_dir): If the destination
26004         directory doesn't exist, create it. This is required at least for
26005         "lib/uniwidth/cjk.h".
26006
26007         2007-05-15  Jim Meyering  <jim@meyering.net>
26008
26009         * build-aux/bootstrap: Now that generated Makefile.am files
26010         are no longer under version control, they must be created at
26011         bootstrap time.
26012
26013 2007-08-14  Ben Pfaff  <blp@gnu.org>
26014
26015         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
26016
26017 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
26020         given the changes below.
26021         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
26022         even on hosts that have padding bits beyond the supported 64.
26023
26024 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26025
26026         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
26027         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
26028         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
26029         depends on it.
26030         (xstrtol_error): Remove.
26031         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
26032         but with a different signature.
26033         (ATTRIBUTE_NORETURN, __attribute__): New macros.
26034         * lib/xstrtol-error.c: Include exitfail.h.
26035         (xstrtol_fatal): New function, with a different signature from the
26036         old xstrtol_error, so that the caller need not worry about passing
26037         in an exit status, or about storage management of the option argument.
26038         (xstrtol_error): Now a static function.  Redo signature to
26039         implement xstrtol_fatal.  Output the correct number of hyphens in
26040         front of the option so that the caller need not worry about
26041         storage management.
26042         (N_): New macro.
26043         (_): Remove; not used now.
26044         * modules/xstrtol: Depend on getopt.
26045         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
26046         of old STRTOL_FATAL_ERROR macro.
26047         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
26048         of test program.
26049         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
26050         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
26051
26052 2007-08-08  Eric Blake  <ebb9@byu.net>
26053
26054         * lib/xstrtol-error.c: Add missing include.
26055
26056         Move xstrtol messages into gnulib domain, when --pobase is used.
26057         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
26058         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
26059         * modules/xstrtol (Files): Distribute new file.
26060         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
26061         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
26062         * tests/test-xstrtol.c: ...into new file.
26063         * tests/test-xstrtoul.c: Also test xstrtoul.
26064         * tests/test-xstrtoimax.c: Also test xstrtoimax.
26065         * tests/test-xstrtoumax.c: Also test xstrtoumax.
26066         * tests/test-xstrtol.sh: Drive the tests.
26067         * tests/test-xstrtoimax.sh: Likewise.
26068         * tests/test-xstrtoumax.sh: Likewise.
26069         * modules/xstrtol-tests: New module.
26070         * modules/xstrtoimax-tests: Likewise.
26071         * modules/xstrtoumax-tests: Likewise.
26072
26073 2007-08-08  Jim Meyering  <jim@meyering.net>
26074
26075         New function: mfile_name_concat.
26076         * lib/filenamecat.c (mfile_name_concat): New function, just like
26077         file_name_concat, but return NULL upon failure rather than exiting
26078         with a diagnostic.
26079         * lib/filenamecat.h: Declare it.
26080
26081 2007-08-07  Bruno Haible  <bruno@clisp.org>
26082
26083         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
26084         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
26085         warning from gcc.
26086         Reported by Eric Blake.
26087
26088 2007-08-07  Simon Josefsson  <simon@josefsson.org>
26089
26090         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
26091         * modules/crypto/arcfour (License): Likewise.
26092         * modules/crypto/des-tests (License): Likewise.
26093         * modules/crypto/gc-arctwo-tests (License): Likewise.
26094         * modules/crypto/gc-des-tests (License): Likewise.
26095         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
26096         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
26097         * modules/crypto/gc-md2-tests (License): Likewise.
26098         * modules/crypto/gc-md4-tests (License): Likewise.
26099         * modules/crypto/gc-md5-tests (License): Likewise.
26100         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
26101         * modules/crypto/gc-rijndael-tests (License): Likewise.
26102         * modules/crypto/gc-sha1-tests (License): Likewise.
26103         * modules/crypto/gc-tests (License): Likewise.
26104         * modules/crypto/hmac-md5 (License): Likewise.
26105         * modules/crypto/hmac-sha1 (License): Likewise.
26106         * modules/crypto/md2-tests (License): Likewise.
26107         * modules/crypto/md4-tests (License): Likewise.
26108         * modules/crypto/md5 (License): Likewise.
26109         * modules/crypto/rijndael (License): Likewise.
26110         * modules/crypto/sha1 (License): Likewise.
26111         * modules/memxor (License): Likewise.
26112
26113 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26114         and Bruno Haible  <bruno@clisp.org>
26115
26116         * NEWS: Describe interface changes to human, xstrtol.
26117         * lib/human.h: Include <xstrtol.h>.
26118         (human_options): Return enum strtol_error, not int.  Remove
26119         bool arg; take int * instead.
26120         * lib/human.c: Don't include "gettext.h".
26121         (_): Remove; no longer used.
26122         Don't include <xstrtol.h>, since human.h does it.
26123         (human_options): Adjust to abovementioned interface changes.
26124         Do not report error to stderr; that's now the caller's
26125         responsibility.
26126         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
26127         interface change.
26128         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
26129         Str, Argument_type_string.  All uses changed.  Put " argument"
26130         in diagnostics to make them clearer.  Change wording of suffix
26131         message for clarity.
26132         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
26133         Argument_type_string.
26134         (STRTOL_FATAL_WARN): Remove; no longer used.
26135         * modules/human (Depends-on): Remove gettext-h.
26136
26137 2007-08-06  Simon Josefsson  <simon@josefsson.org>
26138
26139         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
26140
26141 2007-07-31  Bruno Haible  <bruno@clisp.org>
26142
26143         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
26144         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
26145         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
26146
26147 2007-07-31  Bruno Haible  <bruno@clisp.org>
26148
26149         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
26150         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
26151
26152 2007-07-30  Bruno Haible  <bruno@clisp.org>
26153
26154         * modules/base64 (License): Use the synonymous term "LGPLv2+".
26155         * modules/c-ctype (License): Likewise.
26156         * modules/c-strcase (License): Likewise.
26157         * modules/check-version (License): Likewise.
26158         * modules/iconv (License): Likewise.
26159         * modules/iconv_open (License): Likewise.
26160         * modules/read-file (License): Likewise.
26161         * modules/striconv (License): Likewise.
26162         * modules/strverscmp (License): Likewise.
26163         * modules/vasprintf (License): Likewise.
26164         * modules/crypto/des (License): Likewise.
26165         * modules/crypto/gc (License): Likewise.
26166         * modules/crypto/gc-arcfour (License): Likewise.
26167         * modules/crypto/gc-arctwo (License): Likewise.
26168         * modules/crypto/gc-des (License): Likewise.
26169         * modules/crypto/gc-hmac-md5 (License): Likewise.
26170         * modules/crypto/gc-hmac-sha1 (License): Likewise.
26171         * modules/crypto/gc-md2 (License): Likewise.
26172         * modules/crypto/gc-md4 (License): Likewise.
26173         * modules/crypto/gc-md5 (License): Likewise.
26174         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
26175         * modules/crypto/gc-random (License): Likewise.
26176         * modules/crypto/gc-rijndael (License): Likewise.
26177         * modules/crypto/gc-sha1 (License): Likewise.
26178         * modules/crypto/md2 (License): Likewise.
26179         * modules/crypto/md4 (License): Likewise.
26180
26181 2007-07-30  Jim Meyering  <jim@meyering.net>
26182
26183         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
26184         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
26185         it has valid stat data.  This bug would cause du not to count the
26186         sizes of inaccessible directories.
26187         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
26188         in <http://bugzilla.redhat.com/250077>.
26189
26190 2007-07-25  Peter O'Gorman  <peter@pogma.com>
26191             Bruno Haible  <bruno@clisp.org>
26192
26193         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
26194         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
26195         #include_next, gives a diagnostic about it, but reports no error in
26196         the exit code.
26197         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26198
26199 2007-07-24  Ben Pfaff  <blp@gnu.org>
26200
26201         Improve name: "count-one-bits" is better than "popcount".
26202         * MODULES.html.sh: Update name.
26203         * lib/popcount.h: Renamed lib/count-one-bits.h.
26204         (popcount): Renamed count_one_bits.
26205         (popcountl): Renamed count_one_bits_l.
26206         (popcountll): Renamed count_one_bits_ll.
26207         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
26208         * modules/popcount: Renamed module/count-one-bits.
26209         * modules/popcount-tests: Renamed module/count-one-bits-tests.
26210         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
26211
26212 2007-07-23  Ben Pfaff  <blp@gnu.org>
26213
26214         * lib/popcount.h (popcount32): Reduce size of constants, to allow
26215         better code generation, and add U to large constants to avoid
26216         warnings, in non-GCC case.
26217         Suggested by Bruno Haible.
26218
26219 2007-07-23  Ben Pfaff  <blp@gnu.org>
26220
26221         * lib/popcount.h: Use verify_true instead of if...abort.
26222         * modules/popcount: Depend on verify module.
26223         Suggested by Jim Meyering.
26224
26225 2007-07-23  Bruno Haible  <bruno@clisp.org>
26226
26227         * gnulib-tool (func_import): Create a .cvsignore file also when the
26228         directory is not yet in CVS but the toplevel directory is. When
26229         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
26230         Reported by Karl Berry.
26231
26232 2007-07-22  Ben Pfaff  <blp@gnu.org>
26233
26234         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
26235         case.
26236         Suggested by Eric Blake.
26237
26238 2007-07-22  Ben Pfaff  <blp@gnu.org>
26239
26240         New module: popcount.
26241         * MODULES.html.sh: Add popcount.
26242         * modules/popcount: New file.
26243         * modules/popcount-tests: New file.
26244         * tests/test-popcount.c: New file.
26245         * lib/popcount.h: New file.
26246         * m4/popcount.m4: New file.
26247
26248 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26249
26250         * build-aux/announce-gen: Update to GPLv3.
26251
26252         * build-aux/config.guess: Update from config.
26253
26254 2007-07-21  Bruno Haible  <bruno@clisp.org>
26255
26256         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
26257         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
26258
26259 2007-07-20  Jim Meyering  <jim@meyering.net>
26260
26261         * check-module: Diagnose a self-dependency.
26262
26263 2007-07-19  Bruno Haible  <bruno@clisp.org>
26264
26265         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
26266         empty.
26267         Reported by Eric Blake.
26268
26269 2007-07-18  Bruno Haible  <bruno@clisp.org>
26270
26271         * gnulib-tool: New options --po-base, --po-domain.
26272         (func_usage): Document them.
26273         (pobase, po_domain): New variables.
26274         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
26275         DEFAULT_TEXT_DOMAIN.
26276         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
26277         (func_import): Consider pobase and po_domain. Create a po/ directory.
26278         (func_create_testdir): Set pobase and po_domain to empty.
26279         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
26280         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
26281
26282 2007-07-18  Bruno Haible  <bruno@clisp.org>
26283
26284         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26285         EXTRA_DIST augmentation for files in build-aux/.
26286
26287 2007-07-16  Bruno Haible  <bruno@clisp.org>
26288
26289         * modules/lseek (License): Use the synonymous term "LGPLv2+".
26290         * modules/getdelim (License): Likewise.
26291
26292 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26293
26294         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
26295         * modules/d-type (License): Likewise.
26296         * modules/extensions (License): Likewise.
26297         * modules/fnmatch (License): Likewise.
26298         * modules/fseeko (License): Likewise.
26299         * modules/getaddrinfo (License): Likewise.
26300         * modules/getline (License): Likewise.
26301         * modules/getlogin_r (License): Likewise.
26302         * modules/getpass (License): Likewise.
26303         * modules/gettimeofday (License): Likewise.
26304         * modules/glob (License): Likewise.
26305         * modules/inet_ntop (License): Likewise.
26306         * modules/malloc (License): Likewise.
26307         * modules/malloca (License): Likewise.
26308         * modules/memmem (License): Likewise.
26309         * modules/mempcpy (License): Likewise.
26310         * modules/memset (License): Likewise.
26311         * modules/minmax (License): Likewise.
26312         * modules/mktime (License): Likewise.
26313         * modules/netinet_in (License): Likewise.
26314         * modules/pathmax (License): Likewise.
26315         * modules/poll (License): Likewise.
26316         * modules/regex (License): Likewise.
26317         * modules/snprintf (License): Likewise.
26318         * modules/stdbool (License): Likewise.
26319         * modules/stdint (License): Likewise.
26320         * modules/stdio (License): Likewise.
26321         * modules/strcase (License): Likewise.
26322         * modules/strcasestr (License): Likewise.
26323         * modules/strdup (License): Likewise.
26324         * modules/string (License): Likewise.
26325         * modules/strndup (License): Likewise.
26326         * modules/strnlen (License): Likewise.
26327         * modules/strpbrk (License): Likewise.
26328         * modules/strptime (License): Likewise.
26329         * modules/strsep (License): Likewise.
26330         * modules/sys_select (License): Likewise.
26331         * modules/sys_socket (License): Likewise.
26332         * modules/sys_stat (License): Likewise.
26333         * modules/sys_time (License): Likewise.
26334         * modules/time (License): Likewise.
26335         * modules/time_r (License): Likewise.
26336         * modules/timegm (License): Likewise.
26337         * modules/unistd (License): Likewise.
26338         * modules/vsnprintf (License): Likewise.
26339         * modules/wctype (License): Likewise.
26340
26341 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26342
26343         * modules/argz (License): LGPLv2+.
26344
26345 2007-07-15  Karl Berry  <karl@gnu.org>
26346
26347         * doc/gnulib.texi: revise node structure per new fdl.texi.
26348
26349 2007-07-14  Bruno Haible  <bruno@clisp.org>
26350
26351         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
26352         the output file.
26353         * lib/uniname/uninames.h: Regenerated.
26354
26355 2007-07-14  Karl Berry  <karl@gnu.org>
26356
26357         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
26358         omitting sectioning and index commands.
26359
26360 2007-07-13  Bruno Haible  <bruno@clisp.org>
26361
26362         New gnulib-tool option --more-symlinks.
26363         * gnulib-tool (func_usage): Document --more-symlinks.
26364         (do_copyrights): New variable.
26365         Recognize option --more-symlinks.
26366         (func_import): Don't add a copyright notice transform to
26367         sed_transform_lib_file if do_copyrights is empty.
26368
26369 2007-07-13  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/vasnprintf.c (decimal_point_char): Define also if
26372         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
26373         && !NEED_PRINTF_DIRECTIVE_A.
26374         Reported by Clemens Koller <clemens.koller@anagramm.de> via
26375         Gary V. Vaughan <gary@gnu.org>.
26376
26377 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
26378
26379         * lib/inttypes_.h: Undo previous change, since it was fixed
26380         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
26381
26382 2007-07-13  Bruno Haible  <bruno@clisp.org>
26383
26384         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
26385         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
26386
26387 2007-07-13  Jim Meyering  <jim@meyering.net>
26388
26389         df: Don't fail for Tru64's "file-on-file mount".
26390         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
26391         so we fall through and use statfs instead.  Details here:
26392         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
26393         Reported by Albert Chin.
26394
26395 2007-07-13  Bruno Haible  <bruno@clisp.org>
26396
26397         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
26398         * modules/configmake (License): Likewise.
26399         * modules/gettext (License): Likewise.
26400         * modules/gettext-h (License): Likewise.
26401         * modules/include_next (License): Likewise.
26402         * modules/link-warning (License): Likewise.
26403         * modules/localcharset (License): Likewise.
26404         * modules/localename (License): Likewise.
26405         * modules/lock (License): Likewise.
26406         * modules/relocatable-lib-lgpl (License): Likewise.
26407         * modules/size_max (License): Likewise.
26408         * modules/vasnprintf (License): Likewise.
26409         * modules/wchar (License): Likewise.
26410         * modules/xsize (License): Likewise.
26411
26412 2007-07-13  Bruno Haible  <bruno@clisp.org>
26413
26414         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
26415         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
26416
26417 2007-07-12  Bruno Haible  <bruno@clisp.org>
26418
26419         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
26420         in the modules files.
26421
26422 2007-07-11  Karl Berry  <karl@gnu.org>
26423
26424         * MODULES.html.sh (func_module): use
26425          sed -e '\|^'"${includefile}"'$|d'
26426          instead of /.../d, to avoid errors on $includefile's containing /.
26427
26428 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26429
26430         * gnulib-tool (func_import): Avoid duplication of --avoid
26431         statements
26432         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
26433         names to `_' in variable names.
26434
26435 2007-07-10  Eric Blake  <ebb9@byu.net>
26436
26437         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
26438         * NEWS: Document this change.
26439
26440 2007-07-08  Bruno Haible  <bruno@clisp.org>
26441
26442         Update to Unicode 5.0.
26443         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
26444         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
26445         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
26446         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
26447         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
26448         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
26449         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
26450         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
26451         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
26452         U+10A3F, U+1D242..U+1D244.
26453         (nonspacing_table_ind): Update.
26454         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
26455         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
26456
26457 2007-07-08  Bruno Haible  <bruno@clisp.org>
26458
26459         Update to Unicode 5.0.
26460         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
26461         code transform. Extend the name index field of unicode_name_to_code and
26462         unicode_code_to_name from 16 to 24 bits.
26463         * lib/uniname/uniname.c (unicode_character_name,
26464         unicode_name_character): Add the range 0x12xxx to the code transform.
26465         * lib/uniname/uninames.h: Regenerated.
26466         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
26467
26468 2007-07-07  Bruno Haible  <bruno@clisp.org>
26469
26470         * modules/wcwidth-tests: New file.
26471         * tests/test-wcwidth.c: New file.
26472
26473         Work around MacOS X wcwidth() bug.
26474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
26475         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
26476         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
26477         original wcwidth in non-UTF-8 locales.
26478         * modules/wcwidth (Depends-on): Add localcharset, streq,
26479         uniwidth/width.
26480         * doc/functions/wcwidth.texi: Update.
26481
26482 2007-07-07  Bruno Haible  <bruno@clisp.org>
26483
26484         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
26485         (wcwidth): New declaration.
26486         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
26487         macros.
26488         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
26489         here. Prepare for creating <wchar.h> unconditionally.
26490         * modules/wchar (Depends-on): Add link-warning.
26491         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
26492         REPLACE_WCWIDTH, and GL_LINK_WARNING.
26493         * lib/wcwidth.h: Remove file.
26494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
26495         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
26496         * modules/wcwidth (Files): Remove lib/wcwidth.h.
26497         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
26498         (Include): Replace wcwidth.h with <wchar.h>.
26499         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
26500         * lib/mbchar.h: Don't include wcwidth.h.
26501         * lib/mbswidth.c: Likewise.
26502         * NEWS: Mention the change.
26503
26504 2007-07-07  Bruno Haible  <bruno@clisp.org>
26505
26506         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
26507         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
26508         definition with an external declaration.
26509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
26510         defined as a function. Remove AC_C_INLINE requirement.
26511         * modules/wcwidth (Files): Add lib/wcwidth.c.
26512         (Makefile.am): Remove redundant statement.
26513
26514 2007-07-07  Bruno Haible  <bruno@clisp.org>
26515
26516         * MODULES.html.sh (Unicode string functions): Add the new modules.
26517
26518         * tests/uniwidth/test-u32-strwidth.c: New file.
26519         * modules/uniwidth/u32-strwidth-tests: New file.
26520
26521         * lib/uniwidth/u32-strwidth.c: New file.
26522         * modules/uniwidth/u32-strwidth: New file.
26523
26524         * tests/uniwidth/test-u16-strwidth.c: New file.
26525         * modules/uniwidth/u16-strwidth-tests: New file.
26526
26527         * lib/uniwidth/u16-strwidth.c: New file.
26528         * modules/uniwidth/u16-strwidth: New file.
26529
26530         * tests/uniwidth/test-u8-strwidth.c: New file.
26531         * modules/uniwidth/u8-strwidth-tests: New file.
26532
26533         * lib/uniwidth/u8-strwidth.c: New file.
26534         * modules/uniwidth/u8-strwidth: New file.
26535
26536         * tests/uniwidth/test-u32-width.c: New file.
26537         * modules/uniwidth/u32-width-tests: New file.
26538
26539         * lib/uniwidth/u32-width.c: New file.
26540         * modules/uniwidth/u32-width: New file.
26541
26542         * tests/uniwidth/test-u16-width.c: New file.
26543         * modules/uniwidth/u16-width-tests: New file.
26544
26545         * lib/uniwidth/u16-width.c: New file.
26546         * modules/uniwidth/u16-width: New file.
26547
26548         * tests/uniwidth/test-u8-width.c: New file.
26549         * modules/uniwidth/u8-width-tests: New file.
26550
26551         * lib/uniwidth/u8-width.c: New file.
26552         * modules/uniwidth/u8-width: New file.
26553
26554         * tests/uniwidth/test-uc_width.c: New file.
26555         * modules/uniwidth/width-tests: New file.
26556
26557         * lib/uniwidth/width.c: New file, from GNU libiconv.
26558         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
26559         * modules/uniwidth/width: New file.
26560
26561         * lib/uniwidth.h: New file, from GNU libiconv.
26562         * modules/uniwidth/base: New file.
26563
26564 2007-07-07  Bruno Haible  <bruno@clisp.org>
26565
26566         * lib/uniname.h: New file, from GNU gettext.
26567         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
26568         * lib/uniname/uninames.h: New file, from GNU gettext.
26569         * lib/uniname/uniname.c: New file, from GNU gettext.
26570         * tests/uniname/test-uninames.sh: New file.
26571         * tests/uniname/test-uninames.c: New file, from GNU gettext.
26572         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
26573         * modules/uniname/base: New file.
26574         * modules/uniname/uniname: New file.
26575         * modules/uniname/uniname-tests: New file.
26576         * MODULES.html.sh (Unicode string functions): Add the new modules.
26577
26578 2007-07-06  Bruno Haible  <bruno@clisp.org>
26579
26580         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
26581
26582 2007-07-06  Bruno Haible  <bruno@clisp.org>
26583
26584         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
26585         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
26586         includes <cygwin/sys_time.h> which includes <sys/select.h> which
26587         include <sys/time.h>.
26588         Reported by Eric Blake.
26589
26590 2007-07-06  Eric Blake  <ebb9@byu.net>
26591
26592         Fix testing canonicalize on cygwin.
26593         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
26594         Revert patch from 2007-06-19.
26595         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
26596         canonicalize module is also in use.
26597         * tests/test-canonicalize.c: New file.
26598         * tests/test-canonicalize.sh: Likewise.
26599         * modules/canonicalize-tests: Likewise.
26600
26601 2007-07-06  Jim Meyering  <jim@meyering.net>
26602
26603         * lib/getugroups.c (getugroups): Detect getgrent failure.
26604         Adjust comment to reflect reality: this function may return -1.
26605
26606 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26607
26608         * build-aux/bootstrap (TP_URL,get_translations): Update to use
26609         the new TP address.
26610         (usage): Fix typo
26611         (gnulib_mk): New variable.
26612
26613 2007-07-05  Jim Meyering  <jim@meyering.net>
26614
26615         Don't let endgrent clobber errno, no matter how improbable.
26616         * lib/getugroups.c (getugroups): Save and restore errno around
26617         endgrent call.
26618
26619         Close the group DB even when failing with 2^31 or more members.
26620         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
26621
26622 2007-07-04  Jim Meyering  <jim@meyering.net>
26623
26624         * lib/getugroups.h: New file.
26625         * lib/getugroups.c: Include "getugroups.h".
26626         Remove uses of "register" keyword.
26627         Move local variable, "cp", down into scope where used.
26628         Give "username" parameter the "const" attribute.
26629         * modules/getugroups (Files): Add lib/getugroups.h
26630
26631 2007-07-04  Karl Berry  <karl@gnu.org>
26632
26633         * MODULES.html.sh (func_all_modules): Complete rename of
26634         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
26635
26636 2007-07-02  Bruno Haible  <bruno@clisp.org>
26637
26638         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
26639         mode, when inttypes.h comes from gnulib.
26640         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26641
26642 2007-07-02  Simon Josefsson  <simon@josefsson.org>
26643
26644         * NEWS: Mention lgpl module name change.
26645
26646         * modules/lgpl-2.1: Renamed from lgpl.
26647
26648         * NEWS: Mention gpl module name change.
26649
26650         * modules/gpl-3.0: New file, based on gpl-2.0.
26651
26652         * modules/gpl-2.0: Renamed from gpl.
26653
26654         * modules/gpl: Fix filename, doc/gpl.texi is now found at
26655         doc/gpl-2.0.texi.
26656
26657 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
26658
26659         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
26660         #define __STDC_LIMIT_MACROS temporarily while including
26661         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
26662         Problem reported by Joel E. Denny in
26663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
26664
26665 2007-07-01  Bruno Haible  <bruno@clisp.org>
26666
26667         * lib/unistdio.h: New file.
26668         * lib/unistdio/u-asnprintf.h: New file.
26669         * lib/unistdio/u-asprintf.h: New file.
26670         * lib/unistdio/u-printf-args.c: New file.
26671         * lib/unistdio/u-printf-args.h: New file.
26672         * lib/unistdio/u-printf-parse.h: New file.
26673         * lib/unistdio/u-snprintf.h: New file.
26674         * lib/unistdio/u-sprintf.h: New file.
26675         * lib/unistdio/u-vasprintf.h: New file.
26676         * lib/unistdio/u-vsnprintf.h: New file.
26677         * lib/unistdio/u-vsprintf.h: New file.
26678         * lib/unistdio/ulc-asnprintf.c: New file.
26679         * lib/unistdio/ulc-asprintf.c: New file.
26680         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
26681         * lib/unistdio/ulc-printf-parse.c: New file.
26682         * lib/unistdio/ulc-snprintf.c: New file.
26683         * lib/unistdio/ulc-sprintf.c: New file.
26684         * lib/unistdio/ulc-vasnprintf.c: New file.
26685         * lib/unistdio/ulc-vasprintf.c: New file.
26686         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
26687         * lib/unistdio/ulc-vsnprintf.c: New file.
26688         * lib/unistdio/ulc-vsprintf.c: New file.
26689         * lib/unistdio/u8-asnprintf.c: New file.
26690         * lib/unistdio/u8-asprintf.c: New file.
26691         * lib/unistdio/u8-printf-parse.c: New file.
26692         * lib/unistdio/u8-snprintf.c: New file.
26693         * lib/unistdio/u8-sprintf.c: New file.
26694         * lib/unistdio/u8-vasnprintf.c: New file.
26695         * lib/unistdio/u8-vasprintf.c: New file.
26696         * lib/unistdio/u8-vsnprintf.c: New file.
26697         * lib/unistdio/u8-vsprintf.c: New file.
26698         * lib/unistdio/u8-u8-asnprintf.c: New file.
26699         * lib/unistdio/u8-u8-asprintf.c: New file.
26700         * lib/unistdio/u8-u8-snprintf.c: New file.
26701         * lib/unistdio/u8-u8-sprintf.c: New file.
26702         * lib/unistdio/u8-u8-vasnprintf.c: New file.
26703         * lib/unistdio/u8-u8-vasprintf.c: New file.
26704         * lib/unistdio/u8-u8-vsnprintf.c: New file.
26705         * lib/unistdio/u8-u8-vsprintf.c: New file.
26706         * lib/unistdio/u16-asnprintf.c: New file.
26707         * lib/unistdio/u16-asprintf.c: New file.
26708         * lib/unistdio/u16-printf-parse.c: New file.
26709         * lib/unistdio/u16-snprintf.c: New file.
26710         * lib/unistdio/u16-sprintf.c: New file.
26711         * lib/unistdio/u16-vasnprintf.c: New file.
26712         * lib/unistdio/u16-vasprintf.c: New file.
26713         * lib/unistdio/u16-vsnprintf.c: New file.
26714         * lib/unistdio/u16-vsprintf.c: New file.
26715         * lib/unistdio/u16-u16-asnprintf.c: New file.
26716         * lib/unistdio/u16-u16-asprintf.c: New file.
26717         * lib/unistdio/u16-u16-snprintf.c: New file.
26718         * lib/unistdio/u16-u16-sprintf.c: New file.
26719         * lib/unistdio/u16-u16-vasnprintf.c: New file.
26720         * lib/unistdio/u16-u16-vasprintf.c: New file.
26721         * lib/unistdio/u16-u16-vsnprintf.c: New file.
26722         * lib/unistdio/u16-u16-vsprintf.c: New file.
26723         * lib/unistdio/u32-asnprintf.c: New file.
26724         * lib/unistdio/u32-asprintf.c: New file.
26725         * lib/unistdio/u32-printf-parse.c: New file.
26726         * lib/unistdio/u32-snprintf.c: New file.
26727         * lib/unistdio/u32-sprintf.c: New file.
26728         * lib/unistdio/u32-vasnprintf.c: New file.
26729         * lib/unistdio/u32-vasprintf.c: New file.
26730         * lib/unistdio/u32-vsnprintf.c: New file.
26731         * lib/unistdio/u32-vsprintf.c: New file.
26732         * lib/unistdio/u32-u32-asnprintf.c: New file.
26733         * lib/unistdio/u32-u32-asprintf.c: New file.
26734         * lib/unistdio/u32-u32-snprintf.c: New file.
26735         * lib/unistdio/u32-u32-sprintf.c: New file.
26736         * lib/unistdio/u32-u32-vasnprintf.c: New file.
26737         * lib/unistdio/u32-u32-vasprintf.c: New file.
26738         * lib/unistdio/u32-u32-vsnprintf.c: New file.
26739         * lib/unistdio/u32-u32-vsprintf.c: New file.
26740         * tests/unistdio/test-ulc-asnprintf1.c: New file.
26741         * tests/unistdio/test-ulc-asnprintf1.h: New file.
26742         * tests/unistdio/test-ulc-printf1.h: New file.
26743         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
26744         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
26745         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
26746         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
26747         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
26748         * tests/unistdio/test-ulc-vasprintf1.c: New file.
26749         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
26750         * tests/unistdio/test-ulc-vsprintf1.c: New file.
26751         * tests/unistdio/test-u8-asnprintf1.c: New file.
26752         * tests/unistdio/test-u8-asnprintf1.h: New file.
26753         * tests/unistdio/test-u8-printf1.h: New file.
26754         * tests/unistdio/test-u8-vasnprintf1.c: New file.
26755         * tests/unistdio/test-u8-vasnprintf2.c: New file.
26756         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
26757         * tests/unistdio/test-u8-vasnprintf3.c: New file.
26758         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
26759         * tests/unistdio/test-u8-vasprintf1.c: New file.
26760         * tests/unistdio/test-u8-vsnprintf1.c: New file.
26761         * tests/unistdio/test-u8-vsprintf1.c: New file.
26762         * tests/unistdio/test-u16-asnprintf1.c: New file.
26763         * tests/unistdio/test-u16-asnprintf1.h: New file.
26764         * tests/unistdio/test-u16-printf1.h: New file.
26765         * tests/unistdio/test-u16-vasnprintf1.c: New file.
26766         * tests/unistdio/test-u16-vasnprintf2.c: New file.
26767         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
26768         * tests/unistdio/test-u16-vasnprintf3.c: New file.
26769         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
26770         * tests/unistdio/test-u16-vasprintf1.c: New file.
26771         * tests/unistdio/test-u16-vsnprintf1.c: New file.
26772         * tests/unistdio/test-u16-vsprintf1.c: New file.
26773         * tests/unistdio/test-u32-asnprintf1.c: New file.
26774         * tests/unistdio/test-u32-asnprintf1.h: New file.
26775         * tests/unistdio/test-u32-printf1.h: New file.
26776         * tests/unistdio/test-u32-vasnprintf1.c: New file.
26777         * tests/unistdio/test-u32-vasnprintf2.c: New file.
26778         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
26779         * tests/unistdio/test-u32-vasnprintf3.c: New file.
26780         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
26781         * tests/unistdio/test-u32-vasprintf1.c: New file.
26782         * tests/unistdio/test-u32-vsnprintf1.c: New file.
26783         * tests/unistdio/test-u32-vsprintf1.c: New file.
26784         * modules/unistdio/base: New file.
26785         * modules/unistdio/u-printf-args: New file.
26786         * modules/unistdio/ulc-asnprintf: New file.
26787         * modules/unistdio/ulc-asprintf: New file.
26788         * modules/unistdio/ulc-fprintf: New file.
26789         * modules/unistdio/ulc-printf-parse: New file.
26790         * modules/unistdio/ulc-snprintf: New file.
26791         * modules/unistdio/ulc-sprintf: New file.
26792         * modules/unistdio/ulc-vasnprintf: New file.
26793         * modules/unistdio/ulc-vasprintf: New file.
26794         * modules/unistdio/ulc-vfprintf: New file.
26795         * modules/unistdio/ulc-vsnprintf: New file.
26796         * modules/unistdio/ulc-vsprintf: New file.
26797         * modules/unistdio/u8-asnprintf: New file.
26798         * modules/unistdio/u8-asprintf: New file.
26799         * modules/unistdio/u8-printf-parse: New file.
26800         * modules/unistdio/u8-snprintf: New file.
26801         * modules/unistdio/u8-sprintf: New file.
26802         * modules/unistdio/u8-vasnprintf: New file.
26803         * modules/unistdio/u8-vasprintf: New file.
26804         * modules/unistdio/u8-vsnprintf: New file.
26805         * modules/unistdio/u8-vsprintf: New file.
26806         * modules/unistdio/u8-u8-asnprintf: New file.
26807         * modules/unistdio/u8-u8-asprintf: New file.
26808         * modules/unistdio/u8-u8-snprintf: New file.
26809         * modules/unistdio/u8-u8-sprintf: New file.
26810         * modules/unistdio/u8-u8-vasnprintf: New file.
26811         * modules/unistdio/u8-u8-vasprintf: New file.
26812         * modules/unistdio/u8-u8-vsnprintf: New file.
26813         * modules/unistdio/u8-u8-vsprintf: New file.
26814         * modules/unistdio/u16-asnprintf: New file.
26815         * modules/unistdio/u16-asprintf: New file.
26816         * modules/unistdio/u16-printf-parse: New file.
26817         * modules/unistdio/u16-snprintf: New file.
26818         * modules/unistdio/u16-sprintf: New file.
26819         * modules/unistdio/u16-vasnprintf: New file.
26820         * modules/unistdio/u16-vasprintf: New file.
26821         * modules/unistdio/u16-vsnprintf: New file.
26822         * modules/unistdio/u16-vsprintf: New file.
26823         * modules/unistdio/u16-u16-asnprintf: New file.
26824         * modules/unistdio/u16-u16-asprintf: New file.
26825         * modules/unistdio/u16-u16-snprintf: New file.
26826         * modules/unistdio/u16-u16-sprintf: New file.
26827         * modules/unistdio/u16-u16-vasnprintf: New file.
26828         * modules/unistdio/u16-u16-vasprintf: New file.
26829         * modules/unistdio/u16-u16-vsnprintf: New file.
26830         * modules/unistdio/u16-u16-vsprintf: New file.
26831         * modules/unistdio/u32-asnprintf: New file.
26832         * modules/unistdio/u32-asprintf: New file.
26833         * modules/unistdio/u32-printf-parse: New file.
26834         * modules/unistdio/u32-snprintf: New file.
26835         * modules/unistdio/u32-sprintf: New file.
26836         * modules/unistdio/u32-vasnprintf: New file.
26837         * modules/unistdio/u32-vasprintf: New file.
26838         * modules/unistdio/u32-vsnprintf: New file.
26839         * modules/unistdio/u32-vsprintf: New file.
26840         * modules/unistdio/u32-u32-asnprintf: New file.
26841         * modules/unistdio/u32-u32-asprintf: New file.
26842         * modules/unistdio/u32-u32-snprintf: New file.
26843         * modules/unistdio/u32-u32-sprintf: New file.
26844         * modules/unistdio/u32-u32-vasnprintf: New file.
26845         * modules/unistdio/u32-u32-vasprintf: New file.
26846         * modules/unistdio/u32-u32-vsnprintf: New file.
26847         * modules/unistdio/u32-u32-vsprintf: New file.
26848         * modules/unistdio/ulc-asnprintf-tests: New file.
26849         * modules/unistdio/ulc-vasnprintf-tests: New file.
26850         * modules/unistdio/ulc-vasprintf-tests: New file.
26851         * modules/unistdio/ulc-vsnprintf-tests: New file.
26852         * modules/unistdio/ulc-vsprintf-tests: New file.
26853         * modules/unistdio/u8-asnprintf-tests: New file.
26854         * modules/unistdio/u8-vasnprintf-tests: New file.
26855         * modules/unistdio/u8-vasprintf-tests: New file.
26856         * modules/unistdio/u8-vsnprintf-tests: New file.
26857         * modules/unistdio/u8-vsprintf-tests: New file.
26858         * modules/unistdio/u16-asnprintf-tests: New file.
26859         * modules/unistdio/u16-vasnprintf-tests: New file.
26860         * modules/unistdio/u16-vasprintf-tests: New file.
26861         * modules/unistdio/u16-vsnprintf-tests: New file.
26862         * modules/unistdio/u16-vsprintf-tests: New file.
26863         * modules/unistdio/u32-asnprintf-tests: New file.
26864         * modules/unistdio/u32-vasnprintf-tests: New file.
26865         * modules/unistdio/u32-vasprintf-tests: New file.
26866         * modules/unistdio/u32-vsnprintf-tests: New file.
26867         * modules/unistdio/u32-vsprintf-tests: New file.
26868         * MODULES.html.sh (Unicode string functions): Add the new modules.
26869
26870 2007-07-01  Bruno Haible  <bruno@clisp.org>
26871
26872         * lib/sprintf.c (sprintf): Limit the available length estimation,
26873         to avoid address wraparound.
26874         * lib/vsprintf.c (vsprintf): Likewise.
26875         * modules/sprintf-posix (Dependencies): Add stdint.
26876         * modules/vsprintf-posix (Dependencies): Likewise.
26877
26878 2007-07-01  Bruno Haible  <bruno@clisp.org>
26879
26880         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
26881         Windows PATH as well. Conservative double-quoting. Comments.
26882
26883 2007-07-01  Bruno Haible  <bruno@clisp.org>
26884             Eric Blake  <ebb9@byu.net>
26885             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26886
26887         * gnulib-tool (self_abspathname): Fix algorithm to cope with
26888         empty components in $PATH, denoting '.'.
26889
26890 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26891
26892         * gnulib-tool: Fix indentation.
26893         (func_create_megatestdir): Likewise.
26894         Report by Bruno Haible.
26895
26896 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26897
26898         Sync from Automake.
26899         * build-aux/gnupload: Fix shell portability issues with for loops.
26900         Report by Karl Berry.
26901
26902 2007-06-29  Simon Josefsson  <simon@josefsson.org>
26903
26904         * build-aux/maint.mk (POURL): Use translationproject.org.
26905
26906 2007-06-27  Simon Josefsson  <simon@josefsson.org>
26907             Bruno Haible  <bruno@clisp.org>
26908
26909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
26910         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
26911         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
26912         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
26913         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
26914
26915 2007-06-27  Bruno Haible  <bruno@clisp.org>
26916
26917         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
26918         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
26919
26920 2007-06-26  Karl Berry  <karl@gnu.org>
26921
26922         * MODULES.html.sh: remove xreadlink-with-size.
26923
26924 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
26927         method that I hope also handles the double-include problem noted
26928         by Bruno Haible in
26929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
26930
26931 2007-06-23  Bruno Haible  <bruno@clisp.org>
26932
26933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26934         Don't let the 'mostlyclean' target fail if the last subdirectory could
26935         not be removed.
26936         Reported by Karl Berry.
26937
26938 2007-06-23  Bruno Haible  <bruno@clisp.org>
26939
26940         * gnulib-tool (echo): Add a speedier workaround for ksh.
26941         * tests/test-echo.sh: Likewise.
26942
26943 2007-06-23  Bruno Haible  <bruno@clisp.org>
26944
26945         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
26946         * tests/test-echo.sh: Likewise.
26947
26948 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26949
26950         * gnulib-tool (IFS): Initialize early, so we don't set it to
26951         empty later.
26952         (self_abspathname): Rewrite algorithm to set it, reindent.
26953         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
26954         (func_create_megatestdir): Merge some sed scripts.
26955
26956 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26957
26958         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
26959         exposed by Sun Studio 11 cc on Solaris 8.
26960
26961 2007-06-22  Bruno Haible  <bruno@clisp.org>
26962
26963         * gnulib-tool (echo): Ensure the echo primitive does not interpret
26964         backslashes.
26965         * tests/test-echo.sh: New file.
26966
26967 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26968
26969         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
26970         simplify `sed_replace_build_aux' scripts, they are portable but
26971         echoing them with `echo' is not.
26972         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
26973
26974 2007-06-21  Karl Berry  <karl@gnu.org>
26975
26976         * config/srclist.txt: guess we can't handle the licenses via
26977         srclist at the moment.
26978
26979 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
26980
26981         * MODULES.html.sh: Add include_next.
26982         * modules/include_next: New file.
26983
26984 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
26987         INCLUDE_NEXT.
26988         (gl_CHECK_NEXT_HEADERS): New macro.
26989         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
26990         the obsolescent gl_ABSOLUTE_HEADER.
26991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
26992         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
26993         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26994         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26995         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26996         * m4/math_h.m4 (gl_MATH_H): Likewise.
26997         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26998         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26999         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27000         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27001         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27002         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27003         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27006         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27008         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27009         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27010         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27011         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27012         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27013         * m4/inttypes.m4 (gl_INTTYPES_H): Define
27014         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
27015         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
27016         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
27017         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
27018         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
27019         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
27020         * lib/float_.h: Likewise.
27021         * lib/inttypes_.h: Likewise.
27022         * lib/math_.h: Likewise.
27023         * lib/search_.h: Likewise.
27024         * lib/signal_.h: Likewise.
27025         * lib/stdint_.h: Likewise.
27026         * lib/stdio_.h: Likewise.
27027         * lib/stdlib_.h: Likewise.
27028         * lib/string_.h: Likewise.
27029         * lib/sys_stat_.h: Likewise.
27030         * lib/sys_time_.h: Likewise.
27031         * lib/time_.h: Likewise.
27032         * lib/unistd_.h: Likewise.
27033         * lib/wchar_.h: Likewise.
27034         * lib/wctype_.h: Likewise.
27035         * lib/dirent_.h: Likewise.
27036         * lib/iconv_.h: Likewise.
27037         * lib/locale_.h: Likewise.
27038         * lib/netinet_in_.h: Likewise.
27039         * lib/sys_select_.h: Likewise.
27040         * lib/sys_socket_.h: Likewise.
27041         * lib/sysexits_.h: Likewise.
27042         * modules/fcntl (Depends-on): Depend on include_next, not
27043         absolute_header.
27044         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
27045         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
27046         * modules/fchdir: Likewise.
27047         * modules/float: Likewise.
27048         * modules/iconv_open: Likewise.
27049         * modules/inttypes: Likewise.
27050         * modules/locale: Likewise.
27051         * modules/math: Likewise.
27052         * modules/netinet_in: Likewise.
27053         * modules/search: Likewise.
27054         * modules/signal: Likewise.
27055         * modules/stdint: Likewise.
27056         * modules/stdio: Likewise.
27057         * modules/stdlib: Likewise.
27058         * modules/string: Likewise.
27059         * modules/sys_select: Likewise.
27060         * modules/sys_socket: Likewise.
27061         * modules/sys_stat: Likewise.
27062         * modules/sys_time: Likewise.
27063         * modules/sysexits: Likewise.
27064         * modules/time: Likewise.
27065         * modules/unistd: Likewise.
27066         * modules/wchar: Likewise.
27067         * modules/wctype: Likewise.
27068         * modules/sys_stat: Change maintainer to "all".
27069         * modules/unistd: Likewise.
27070
27071 2007-06-20  Karl Berry  <karl@gnu.org>
27072
27073         * config/srclist.txt: track www changes in license files.
27074
27075 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
27076
27077         * build-aux/bootstrap: Remove stray dot.
27078         Make sure build_aux settings are honored when linking
27079         gnulib_extra_files.
27080
27081 2007-06-19  Eric Blake  <ebb9@byu.net>
27082
27083         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27084         Allow compilation on cygwin.
27085
27086 2007-06-19  Jim Meyering  <jim@meyering.net>
27087
27088         xreadlink-with-size: Remove module.  No longer used.
27089         Ex-callers now use xreadlink or mreadlink-with-size.
27090         * modules/xreadlink-with-size: Remove module.
27091         * lib/xreadlink-with-size.c: Remove file.
27092         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
27093         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
27094         just before the function definition *is* accurate.
27095
27096         Eliminate one way canonicalize_filename_mode could exit.
27097         * lib/canonicalize.c (canonicalize_filename_mode):
27098         Use mreadlink_with_size, not xreadlink_with_size.
27099
27100 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
27101
27102         Detect porting problems to FreeBSD/arm, which has time_t wider than
27103         long int.  Original problem reported for GNU diff by Xin Li in
27104         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
27105         * modules/getdate (Depends-on): Add intprops, verify.
27106         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
27107         is an integer type no wider than long int.
27108
27109 2007-06-18  Jim Meyering  <jim@meyering.net>
27110
27111         New module: mreadlink-with-size.
27112         * MODULES.html.sh: Add mreadlink-with-size.
27113         * modules/mreadlink-with-size: New module
27114         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
27115         not xreadlink-with-size.
27116         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
27117
27118 2007-06-16  Bruno Haible  <bruno@clisp.org>
27119
27120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
27121         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
27122         Reported by Gary V. Vaughan <gary@gnu.org>.
27123
27124 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
27125
27126         Revamp lchown so that it lives in unistd.h where it belongs.
27127         * lib/lchown.h: Remove.
27128         * lib/dirchownmod.c: Don't include lib/lchown.h.
27129         * lib/fchownat.c: Likewise.
27130         * lib/openat.c: Likewise.
27131         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
27132         does not follow symlinks.
27133         (EOPNOTSUPP): Define if not defined.
27134         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
27135         is defined to 0.
27136         (lchown): New decl.
27137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
27138         Do not check for lchown decl.
27139         Set REPLACE_LCHOWN.
27140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
27141         REPLACE_LCHOWN.
27142         * modules/chown: Make it clear it follows symlinks.
27143         * modules/lchown: Make it clear it doesn't follow symlinks.
27144         (Files): Remove lib/lchown.h
27145         (Depends-on): Add unistd.
27146         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
27147         (Include): Include <unistd.h>, not "lchown.h".
27148         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
27149         REPLACE_LCHOWN.
27150
27151 2007-06-15  Jim Meyering  <jim@meyering.net>
27152
27153         Change license (GPL to LGPL) of fsusage and dependents.
27154         * modules/fsusage (License): Change to LGPL.
27155         * modules/full-read (License): Likewise.
27156         * modules/full-write (License): Likewise.
27157         * modules/safe-read (License): Likewise.
27158         * modules/safe-write (License): Likewise.
27159
27160 2007-06-14  Ben Pfaff  <blp@gnu.org>
27161
27162         Missing part of allocsa -> malloca transition.
27163         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
27164         gl_MALLOCA.
27165
27166 2007-06-12  Bruno Haible  <bruno@clisp.org>
27167
27168         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
27169         to ia64, x86_64, i386.
27170         Reported by Eric Blake.
27171
27172 2007-06-12  Bruno Haible  <bruno@clisp.org>
27173
27174         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
27175         cross-compiling to x86_64.
27176
27177 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
27178
27179         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
27180         glitch reported by Ralf Wildenhues in
27181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
27182
27183         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
27184         Vin Shelton.
27185
27186 2007-06-11  Bruno Haible  <bruno@clisp.org>
27187
27188         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
27189         replacement string.
27190         Reported by Eric Blake.
27191
27192 2007-06-10  Bruno Haible  <bruno@clisp.org>
27193
27194         Prepare vasnprintf code for use with Unicode strings.
27195         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
27196         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
27197         TYPE_U32_STRING.
27198         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
27199         a_u32_string variants.
27200         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27201         * lib/printf-args.c: Don't include config.h and the specification
27202         header if PRINTF_FETCHARGS is already defined.
27203         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27204         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
27205         TYPE_U16_STRING, TYPE_U32_STRING.
27206         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
27207         u16_directive, u16_directives, u32_directive, u32_directives): New
27208         types.
27209         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
27210         New declarations.
27211         * lib/printf-parse.c: Don't include config.h and the specification
27212         header if PRINTF_PARSE is already defined. Eliminate the set of
27213         parameters for WIDE_CHAR_VERSION; the user of this file must provide
27214         them now. Include c-ctype.h.
27215         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
27216         directive and CHAR_T_ONLY_ASCII.
27217         * lib/vasnprintf.c: Don't include config.h and the specification header
27218         if VASNPRINTF is already defined.
27219         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
27220         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
27221         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
27222         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
27223         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
27224         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
27225         code accordingly.
27226         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
27227         pad_ourselves also in this case, with the 'c' and 's' directives, and
27228         with a different notion of "width".
27229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
27230
27231 2007-06-10  Bruno Haible  <bruno@clisp.org>
27232
27233         * modules/unistr/u32-mbsnlen: New file.
27234         * lib/unistr/u32-mbsnlen.c: New file.
27235
27236         * modules/unistr/u16-mbsnlen: New file.
27237         * lib/unistr/u16-mbsnlen.c: New file.
27238
27239         * modules/unistr/u8-mbsnlen: New file.
27240         * lib/unistr/u8-mbsnlen.c: New file.
27241
27242         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
27243         declarations.
27244
27245 2007-06-10  Bruno Haible  <bruno@clisp.org>
27246
27247         * lib/string_.h (mbsnlen): New declaration.
27248         * lib/mbsnlen.c: New file.
27249         * m4/mbsnlen.m4: New file.
27250         * modules/mbsnlen: New file.
27251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
27252         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
27253         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
27254
27255 2007-06-10  Bruno Haible  <bruno@clisp.org>
27256
27257         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
27258
27259 2007-06-10  Bruno Haible  <bruno@clisp.org>
27260
27261         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
27262         * lib/mbuiter.h: Likewise.
27263
27264 2007-06-10  Bruno Haible  <bruno@clisp.org>
27265
27266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
27267         declaration.
27268
27269 2007-06-10  Karl Berry  <karl@gnu.org>
27270
27271         * config/srclist.txt: remove gettext entries, Bruno prefers
27272         to update individually.
27273
27274 2007-06-10  Bruno Haible  <bruno@clisp.org>
27275
27276         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
27277         'maxlen'. Ensure only length + width bytes are allocated, not
27278         length + 1 + width.
27279
27280 2007-06-09  Bruno Haible  <bruno@clisp.org>
27281
27282         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
27283         (CHAR_T): Remove macro.
27284         (VASNPRINTF): Update.
27285
27286 2007-06-09  Bruno Haible  <bruno@clisp.org>
27287
27288         * MODULES.html.sh (Unicode string functions): Add the new modules.
27289
27290         * modules/uniconv/u32-conv-to-enc: New file.
27291         * lib/uniconv/u32-conv-to-enc.c: New file.
27292         * modules/uniconv/u32-conv-to-enc-tests: New file.
27293         * tests/uniconv/test-u32-conv-to-enc.c: New file.
27294
27295         * modules/uniconv/u16-conv-to-enc: New file.
27296         * lib/uniconv/u16-conv-to-enc.c: New file.
27297         * lib/uniconv/u-conv-to-enc.h: New file.
27298         * modules/uniconv/u16-conv-to-enc-tests: New file.
27299         * tests/uniconv/test-u16-conv-to-enc.c: New file.
27300
27301         * modules/uniconv/u8-conv-to-enc: New file.
27302         * lib/uniconv/u8-conv-to-enc.c: New file.
27303         * modules/uniconv/u8-conv-to-enc-tests: New file.
27304         * tests/uniconv/test-u8-conv-to-enc.c: New file.
27305
27306         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27307         u32_conv_to_encoding): New declarations.
27308
27309 2007-06-09  Bruno Haible  <bruno@clisp.org>
27310
27311         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
27312
27313 2007-06-09  Bruno Haible  <bruno@clisp.org>
27314
27315         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
27316         * modules/malloca: Renamed from modules/allocsa, updated.
27317         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
27318         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
27319         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
27320         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
27321         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
27322         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
27323         * modules/xmalloca: Renamed from modules/xallocsa, updated.
27324         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
27325         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
27326         * modules/c-strcasestr (Depends-on): Update.
27327         * lib/c-strcasestr.c: Update.
27328         * modules/c-strstr (Depends-on): Update.
27329         * lib/c-strstr.c: Update.
27330         * modules/canonicalize-lgpl (Depends-on): Update.
27331         * lib/canonicalize-lgpl.c: Update.
27332         * modules/clean-temp (Depends-on): Update.
27333         * lib/clean-temp.c: Update.
27334         * modules/csharpcomp (Depends-on): Update.
27335         * lib/csharpcomp.c: Update.
27336         * modules/csharpexec (Depends-on): Update.
27337         * lib/csharpexec.c: Update.
27338         * modules/javacomp (Depends-on): Update.
27339         * lib/javacomp.c: Update.
27340         * modules/javaexec (Depends-on): Update.
27341         * lib/javaexec.c: Update.
27342         * modules/mbscasestr (Depends-on): Update.
27343         * lib/mbscasestr.c: Update.
27344         * modules/mbsstr (Depends-on): Update.
27345         * lib/mbsstr.c: Update.
27346         * modules/setenv (Depends-on): Update.
27347         * lib/setenv.c: Update.
27348         * modules/strcasestr (Depends-on): Update.
27349         * lib/strcasestr.c: Update.
27350         * modules/striconveha (Depends-on): Update.
27351         * lib/striconveha.c: Update.
27352         * modules/relocatable-prog-wrapper (Files): Update.
27353         * lib/relocwrapper.c: Update.
27354         * build-aux/install-reloc: Update.
27355         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
27356
27357 2007-06-08  Bruno Haible  <bruno@clisp.org>
27358
27359         Port to uClibc.
27360         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
27361         * lib/fpurge.c (fpurge): Likewise.
27362         * lib/freading.c (freading): Likewise.
27363         * lib/fseeko.c (rpl_fseeko): Likewise.
27364         * lib/fseterr.c (fseterr): Likewise.
27365         * lib/fwriting.c (fwriting): Likewise.
27366         * tests/test-fflush.c (main): Avoid a failure on uClibc.
27367
27368 2007-06-08  Bruno Haible  <bruno@clisp.org>
27369
27370         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
27371         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
27372         * modules/gettext (Files): Add m4/intlmacosx.m4.
27373
27374 2007-06-07  Bruno Haible  <bruno@clisp.org>
27375
27376         * modules/localename-tests: New file.
27377         * tests/test-localename.c: New file.
27378
27379         New module 'localename'.
27380         * lib/localename.h: New file.
27381         * lib/localename.c: New file, from GNU gettext.
27382         * m4/localename.m4: New file.
27383         * modules/localename: New file.
27384
27385 2007-06-07  Bruno Haible  <bruno@clisp.org>
27386
27387         Work around the lack of <wchar.h> on some builds of uClibc.
27388         * doc/headers/wchar.texi: Update.
27389         * lib/wchar_.h: Include <wchar.h> only if it exists.
27390         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
27391         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
27392         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
27393         doesn't exist.
27394         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
27395         * modules/mbfile (Depends-on): Add wchar.
27396         * modules/mbiter (Depends-on): Likewise.
27397         * modules/mbuiter (Depends-on): Likewise.
27398         Reported by Simon Josefsson.
27399
27400 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27401
27402         Work around problem reported by Steven M. Schweda in
27403         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
27404         Tru64 5.1B with the Compaq compiler environment installed declares
27405         an 'isblank' function but does not define it in the C library.
27406         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
27407         * lib/regex_internal.h (isblank): Likewise.
27408         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
27409         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27410
27411 2007-06-05  Bruno Haible  <bruno@clisp.org>
27412
27413         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
27414         ia64.
27415         * modules/printf-safe: New file.
27416         * modules/fprintf-posix (Depends-on): Add printf-safe.
27417         * modules/printf-posix (Depends-on): Likewise.
27418         * modules/snprintf-posix (Depends-on): Likewise.
27419         * modules/sprintf-posix (Depends-on): Likewise.
27420         * modules/vasnprintf-posix (Depends-on): Likewise.
27421         * modules/vasprintf-posix (Depends-on): Likewise.
27422         * modules/vfprintf-posix (Depends-on): Likewise.
27423         * modules/vprintf-posix (Depends-on): Likewise.
27424         * modules/vsnprintf-posix (Depends-on): Likewise.
27425         * modules/vsprintf-posix (Depends-on): Likewise.
27426         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
27427         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
27428         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
27429         "no" on i386, x86_64, ia64.
27430         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
27431         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27432         on i386, x86_64, ia64.
27433         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
27434         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27435         on i386, x86_64, ia64.
27436         * tests/test-vasnprintf-posix.c: Include float.h.
27437         (LDBL80_WORDS): New macro.
27438         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27439         on i386, x86_64, ia64.
27440         * tests/test-vasprintf-posix.c: Include float.h.
27441         (LDBL80_WORDS): New macro.
27442         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27443         on i386, x86_64, ia64.
27444         * tests/test-snprintf-posix.c: Include float.h.
27445         * tests/test-sprintf-posix.c: Likewise.
27446         * tests/test-vsnprintf-posix.c: Likewise.
27447         * tests/test-vsprintf-posix.c: Likewise.
27448
27449 2007-06-05  Bruno Haible  <bruno@clisp.org>
27450
27451         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
27452         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
27453         non-IEEE numbers on i386, x86_64, ia64.
27454         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
27455         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
27456         * tests/test-isnanl.h: Include float.h.
27457         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
27458
27459 2007-06-05  Bruno Haible  <bruno@clisp.org>
27460
27461         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
27462         also the %a / %A. Handle the %a / %A code before this extra handling.
27463
27464 2007-06-05  Bruno Haible  <bruno@clisp.org>
27465
27466         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
27467         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
27468
27469 2007-06-05  Bruno Haible  <bruno@clisp.org>
27470
27471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
27472         typo in variable name.
27473
27474 2007-06-05  Eric Blake  <ebb9@byu.net>
27475
27476         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
27477         Reported by Simon Josefsson.
27478
27479 2007-06-04  Bruno Haible  <bruno@clisp.org>
27480
27481         Avoid test failures on some PowerPC platforms.
27482         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
27483         Define differently for PowerPC.
27484         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
27485         Reported by Gary V. Vaughan <gary@gnu.org>.
27486
27487 2007-06-02  Bruno Haible  <bruno@clisp.org>
27488
27489         Fix test-stdint failure on FreeBSD/ia64.
27490         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
27491         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
27492         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
27493         * doc/headers/stdint.texi: Update.
27494
27495 2007-06-01  Bruno Haible  <bruno@clisp.org>
27496
27497         * tests/test-binary-io.c (main): Pass a third argument to open().
27498         Reported by Gary V. Vaughan <gary@gnu.org>.
27499
27500 2007-06-01  Bruno Haible  <bruno@clisp.org>
27501
27502         * doc/functions/frexpl.texi: Update for mingw.
27503
27504 2007-06-01  Bruno Haible  <bruno@clisp.org>
27505
27506         * tests/test-lseek.c (main): Disable test of errno for invalid third
27507         argument.
27508         * doc/functions/lseek.texi: Update.
27509         Reported by Gary V. Vaughan <gary@gnu.org>.
27510
27511 2007-05-28  Bruno Haible  <bruno@clisp.org>
27512
27513         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
27514
27515 2007-05-31  Eric Blake  <ebb9@byu.net>
27516
27517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
27518         cross compiling.
27519
27520 2007-05-30  Eric Blake  <ebb9@byu.net>
27521         and Bruno Haible  <bruno@clisp.org>
27522
27523         Work around mingw test failures exposed by m4-1.4.9b.
27524         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
27525         * tests/test-unistd.c: Disable uid_t and git_t tests for the
27526         moment.
27527
27528 2007-05-30  Bruno Haible  <bruno@clisp.org>
27529
27530         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
27531         assuming that they are closed. Needed on HP-UX 11.
27532
27533 2007-05-29  Bruno Haible  <bruno@clisp.org>
27534
27535         Fix a problem with #include_next.
27536         * lib/dirent_.h: Split the double-inclusion guard.
27537         * lib/fcntl_.h: Likewise.
27538         * lib/float_.h: Likewise.
27539         * lib/iconv_.h: Likewise.
27540         * lib/inttypes_.h: Likewise.
27541         * lib/locale_.h: Likewise.
27542         * lib/math_.h: Likewise.
27543         * lib/netinet_in_.h: Likewise.
27544         * lib/search_.h: Likewise.
27545         * lib/signal_.h: Likewise.
27546         * lib/stdint_.h: Likewise.
27547         * lib/stdio_.h: Likewise.
27548         * lib/stdlib_.h: Likewise.
27549         * lib/string_.h: Likewise.
27550         * lib/sys_select_.h: Likewise.
27551         * lib/sys_socket_.h: Likewise.
27552         * lib/sys_stat_.h: Likewise.
27553         * lib/sys_time_.h: Likewise.
27554         * lib/sysexits_.h: Likewise.
27555         * lib/time_.h: Likewise.
27556         * lib/unistd_.h: Likewise.
27557         * lib/wchar_.h: Likewise.
27558         * lib/wctype_.h: Likewise.
27559
27560 2007-05-29  Bruno Haible  <bruno@clisp.org>
27561
27562         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
27563         for the moment.
27564
27565 2007-05-29  Bruno Haible  <bruno@clisp.org>
27566
27567         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
27568         invocation.
27569         Reported by Eric Blake.
27570
27571 2007-05-29  Bruno Haible  <bruno@clisp.org>
27572
27573         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
27574         compiling case.
27575
27576 2007-05-29  Eric Blake  <ebb9@byu.net>
27577             Bruno Haible  <bruno@clisp.org>
27578
27579         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
27580         cross compiles.
27581
27582 2007-05-28  Eric Blake  <ebb9@byu.net>
27583
27584         * modules/closein-tests (test_closein_LDADD): Support test on
27585         cygwin with libtool.
27586
27587 2007-05-28  Bruno Haible  <bruno@clisp.org>
27588
27589         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
27590         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27591         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27592         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27593         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27594         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27595         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27596         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27597         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27598
27599 2007-05-28  Eric Blake  <ebb9@byu.net>
27600
27601         Unconditionally include <config.h> in unit tests.
27602         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
27603         * tests/test-allocsa.c, tests/test-arcfour.c,
27604         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
27605         tests/test-array_list.c, tests/test-array_oset.c,
27606         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
27607         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
27608         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
27609         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
27610         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
27611         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
27612         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
27613         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
27614         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
27615         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
27616         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
27617         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
27618         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
27619         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
27620         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
27621         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
27622         test-md5.c, test-memmem.c, test-printf-posix.c,
27623         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
27624         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
27625         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
27626         test-strcasestr.c, test-striconv.c, test-striconveh.c,
27627         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
27628         test-vasnprintf-posix2.c, test-vasnprintf.c,
27629         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
27630         test-vfprintf-posix.c, test-vprintf-posix.c,
27631         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
27632         test-xvasprintf.c: Likewise.
27633
27634 2007-05-28  Bruno Haible  <bruno@clisp.org>
27635
27636         * gnulib-tool (func_import): Remember the --with-tests command-line
27637         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
27638         Reported by Eric Blake.
27639
27640 2007-05-28  Bruno Haible  <bruno@clisp.org>
27641
27642         * modules/ftell-tests: New file.
27643         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
27644         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
27645
27646         * lib/ftell.c: New file.
27647         * modules/ftell: New file.
27648         * m4/ftell.m4: New file.
27649         * doc/functions/ftell.texi: Update.
27650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
27651         REPLACE_FTELL.
27652         * lib/stdio_.h (rpl_ftell): New declaration.
27653         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
27654         REPLACE_FTELL.
27655
27656 2007-05-28  Eric Blake  <ebb9@byu.net>
27657
27658         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
27659
27660 2007-05-28  Bruno Haible  <bruno@clisp.org>
27661
27662         * modules/fseek-tests: New file.
27663         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
27664         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
27665
27666         * lib/fseek.c: New file.
27667         * modules/fseek: New file.
27668         * m4/fseek.m4: New file.
27669         * doc/functions/fseek.texi: Update.
27670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
27671         REPLACE_FSEEK.
27672         * lib/stdio_.h (rpl_fseek): New declaration.
27673         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
27674         REPLACE_FSEEK.
27675
27676 2007-05-28  Bruno Haible  <bruno@clisp.org>
27677
27678         * lib/stdio_.h (fflush): More comments.
27679
27680 2007-05-28  Bruno Haible  <bruno@clisp.org>
27681
27682         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
27683         runtime test.
27684
27685 2007-05-28  Eric Blake  <ebb9@byu.net>
27686
27687         Improve lseek module.
27688         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
27689         * lib/unistd_.h (lseek): Scale back link warning message.
27690         * tests/test-lseek.c: Beef up test.
27691         * tests/test-lseek.sh: Exercise more facets of lseek.
27692         Reported by Bruno Haible.
27693
27694 2007-05-28  Bruno Haible  <bruno@clisp.org>
27695
27696         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
27697         to define.
27698
27699 2007-05-27  Bruno Haible  <bruno@clisp.org>
27700
27701         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
27702
27703 2007-05-27  Bruno Haible  <bruno@clisp.org>
27704
27705         * modules/openmp: New file.
27706         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
27707         Noah Misch.
27708
27709 2007-05-26  Bruno Haible  <bruno@clisp.org>
27710
27711         * modules/chdir-long (Depends-on): Add fchdir.
27712         * modules/chdir-safer (Depends-on): Likewise.
27713         * modules/fts (Depends-on): Likewise.
27714         * modules/fts-lgpl (Depends-on): Likewise.
27715         * modules/openat (Depends-on): Likewise.
27716         * modules/savewd (Depends-on): Likewise.
27717
27718 2007-05-24  Eric Blake  <ebb9@byu.net>
27719
27720         Fix lseek on mingw.
27721         * modules/lseek: New module.
27722         * m4/lseek.m4: New file.
27723         * lib/lseek.c: New file.
27724         * modules/lseek-tests: New file.
27725         * tests/test-lseek.c: New file.
27726         * tests/test-lseek.sh: New file.
27727         * MODULES.html.sh: Document lseek module.
27728         * modules/fflush (Depends-on): Add lseek, fseeko.
27729         * modules/fseeko (Depends-on): Likewise.
27730         * modules/ftello (Depends-on): Likewise.
27731         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
27732         broken.
27733         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
27734         broken.
27735         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
27736         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
27737         * lib/ftello.c (rpl_ftello): Likewise.
27738         * tests/test-fseeko.c (main): Test this.
27739         * tests/test-fseeko.sh: Likewise.
27740         * tests/test-ftello.c (main): Likewise.
27741         * tests/test-ftello.sh: Likewise.
27742         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
27743         implies replacing fseek.
27744         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
27745         HAVE_FTELLO.
27746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
27747         * modules/unistd (Makefile.am): Likewise.
27748         * lib/unistd_.h (lseek): Declare a replacement.
27749         * doc/functions/lseek.texi (lseek): Document this fix.
27750         * doc/functions/fseek.texi (fseek): Likewise.
27751         * doc/functions/ftell.texi (ftell): Likewise.
27752
27753 2007-05-24  Bruno Haible  <bruno@clisp.org>
27754
27755         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
27756         in the printed representation of a NaN.
27757         * tests/test-vasprintf-posix.c (test_function): Likewise.
27758         * tests/test-snprintf-posix.h (test_function): Likewise.
27759         * tests/test-sprintf-posix.h (test_function): Likewise.
27760         Reported by Eric Blake.
27761
27762 2007-05-23  Eric Blake  <ebb9@byu.net>
27763
27764         Fix fseeko/ftello on cygwin 1.5.24.
27765         * doc/functions/fseeko.texi (fseeko): Document the fix.
27766         * doc/functions/ftello.texi (ftello): Document the fix.
27767         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
27768         * doc/functions/stdout.text (stdout): New file.
27769         * doc/functions/stderr.text (stderr): New file.
27770         * doc/gnulib.texi (Function Substitutes): Use new files.
27771         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
27772         prior to 1.7.0.
27773         * tests/test-ftello.c (main): Likewise for ftello.
27774         * tests/test-fseeko.sh: New file.
27775         * tests/test-ftello.sh: New file.
27776         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
27777         with seekable stdin.
27778         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
27779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
27780         (gl_REPLACE_FSEEKO): New macro.
27781         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
27782         * modules/fseeko (Files): Distribute fseeko.c.
27783         * modules/ftello (Files): Distribute ftello.c.
27784         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
27785         mode.
27786         * lib/ftello.c (rpl_ftello): New file.
27787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
27788         fseeko, ftello.
27789         (gl_STDIN_LARGE_OFFSET): New macro.
27790         * modules/stdio (Makefile.am): Perform the replacement.
27791         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
27792
27793 2007-05-23  Bruno Haible  <bruno@clisp.org>
27794
27795         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
27796         GNULIB_POSIXCHECK is defined.
27797
27798 2007-05-21  Bruno Haible  <bruno@clisp.org>
27799
27800         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
27801         Check also the output for NaN arguments. When cross-compiling, guess
27802         no on IRIX.
27803         * lib/vasnprintf.c: Update comments.
27804         * tests/test-vasnprintf-posix.c (strisnan): New function.
27805         (test_function): Use it.
27806         * tests/test-vasprintf-posix.c (strisnan): New function.
27807         (test_function): Use it.
27808         * tests/test-snprintf-posix.h (strisnan): New function.
27809         (test_function): Use it.
27810         * tests/test-sprintf-posix.h (strisnan): New function.
27811         (test_function): Use it.
27812         Reported by Eric Blake.
27813
27814 2007-05-20  Bruno Haible  <bruno@clisp.org>
27815
27816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
27817         numbers that fails on BeOS.
27818         * doc/functions/frexpl.texi: Update.
27819
27820 2007-05-20  Jim Meyering  <jim@meyering.net>
27821
27822         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
27823         forced upon us by glibc-2.6.
27824
27825 2007-05-20  Bruno Haible  <bruno@clisp.org>
27826
27827         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
27828         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
27829         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
27830         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
27831         NEED_PRINTF_INFINITE.
27832         (is_infinitel): New function.
27833         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
27834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
27835         gl_PREREQ_VASNPRINTF_INFINITE.
27836         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
27837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27838         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
27839         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
27840         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
27841         gl_PREREQ_VASNPRINTF_INFINITE.
27842         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27844         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27845         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27846         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27847         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27848         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27849         * doc/functions/fprintf.texi: Update.
27850         * doc/functions/printf.texi: Update.
27851         * doc/functions/snprintf.texi: Update.
27852         * doc/functions/sprintf.texi: Update.
27853         * doc/functions/vfprintf.texi: Update.
27854         * doc/functions/vprintf.texi: Update.
27855         * doc/functions/vsnprintf.texi: Update.
27856         * doc/functions/vsprintf.texi: Update.
27857
27858 2007-05-20  Bruno Haible  <bruno@clisp.org>
27859
27860         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
27861         was not found in libc.
27862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27863
27864 2007-05-20  Bruno Haible  <bruno@clisp.org>
27865
27866         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
27867         printed as "-nan" instead of "nan".
27868         * tests/test-vasprintf-posix.c (test_function): Likewise.
27869         * tests/test-snprintf-posix.h (test_function): Likewise.
27870         * tests/test-sprintf-posix.h (test_function): Likewise.
27871         Needed for HP-UX 11.
27872
27873 2007-05-20  Jim Meyering  <jim@meyering.net>
27874
27875         Fix buggy test for the fchownat-deref bug.
27876         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
27877         symlink required for the run-test.  Without it, this test would
27878         always declare that fchownat doesn't work, and client code would
27879         unnecessarily use the replacement function with fixed libc.
27880         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
27881         Reported by Greg Schafer.
27882
27883 2007-05-19  Bruno Haible  <bruno@clisp.org>
27884
27885         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
27886         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
27887         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
27888         Needed for IRIX 6.5 and Solaris 2.5.1.
27889
27890 2007-05-19  Bruno Haible  <bruno@clisp.org>
27891
27892         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
27893         (test_function): Skip tests involving -0.0 on platforms where
27894         -0.0 = 0.0.
27895         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
27896         (test_function): Skip tests involving -0.0 on platforms where
27897         -0.0 = 0.0.
27898         * tests/test-snprintf-posix.h (have_minus_zero): New function.
27899         (test_function): Skip tests involving -0.0 on platforms where
27900         -0.0 = 0.0.
27901         * tests/test-sprintf-posix.h (have_minus_zero): New function.
27902         (test_function): Skip tests involving -0.0 on platforms where
27903         -0.0 = 0.0.
27904         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
27905         tests.
27906         * tests/test-printf-posix.h (test_function): Likewise.
27907         * tests/test-printf-posix.output: Remove all -0.0 related results.
27908         Needed for IRIX 6.5.
27909
27910 2007-05-19  Bruno Haible  <bruno@clisp.org>
27911
27912         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
27913         printed as "nan0x7fffffff" instead of "nan".
27914         * tests/test-vasprintf-posix.c (test_function): Likewise.
27915         * tests/test-snprintf-posix.h (test_function): Likewise.
27916         * tests/test-sprintf-posix.h (test_function): Likewise.
27917         * tests/test-fprintf-posix.h (NaN): Remove macro.
27918         (test_function): Remove all NaN related tests.
27919         * tests/test-printf-posix.h (NaN): Remove macro.
27920         (test_function): Remove all NaN related tests.
27921         * tests/test-printf-posix.output: Remove all NaN related results.
27922         Needed for IRIX 6.5.
27923
27924 2007-05-19  Bruno Haible  <bruno@clisp.org>
27925
27926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
27927         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27928
27929 2007-05-19  Bruno Haible  <bruno@clisp.org>
27930
27931         * lib/float_.h: New file.
27932         * m4/float_h.m4: New file.
27933         * modules/float: New file.
27934         * modules/isnanl (Dependencies): Add float.
27935         * modules/isnanl-nolibm (Dependencies): Likewise.
27936         * modules/mathl (Dependencies): Likewise.
27937         * modules/printf-frexpl (Dependencies): Likewise.
27938         * modules/signbit (Dependencies): Likewise.
27939         * modules/vasnprintf (Dependencies): Likewise.
27940         * doc/headers/float.texi: Update.
27941
27942 2007-05-19  Jim Meyering  <jim@meyering.net>
27943
27944         * lib/utimens.c (gl_futimens): Rename from futimens,
27945         now that glibc-2.6 declares futimens.
27946         * lib/utimens.h: Likewise.
27947
27948 2007-05-19  Bruno Haible  <bruno@clisp.org>
27949
27950         Avoid test failures on mingw.
27951         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
27952         * tests/test-printf-posix.sh: Likewise.
27953         * tests/test-vfprintf-posix.sh: Likewise.
27954         * tests/test-vprintf-posix.sh: Likewise.
27955
27956 2007-05-19  Bruno Haible  <bruno@clisp.org>
27957
27958         Fix *printf result for NaN, Inf, -0.0 on mingw.
27959         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
27960         * lib/vasnprintf.c: Include math.h and isnan.h.
27961         (is_infinite_or_zero): New function.
27962         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
27963         values in the %f, %F, %e, %E, %g, %G directives.
27964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
27965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27966         gl_PRINTF_INFINITE and test its result. Invoke
27967         gl_PREREQ_VASNPRINTF_INFINITE.
27968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27969         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27972         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27974         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27975         * doc/functions/fprintf.texi: Update.
27976         * doc/functions/printf.texi: Update.
27977         * doc/functions/snprintf.texi: Update.
27978         * doc/functions/sprintf.texi: Update.
27979         * doc/functions/vfprintf.texi: Update.
27980         * doc/functions/vprintf.texi: Update.
27981         * doc/functions/vsnprintf.texi: Update.
27982         * doc/functions/vsprintf.texi: Update.
27983
27984 2007-05-19  Bruno Haible  <bruno@clisp.org>
27985
27986         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
27987         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
27988         Instead of multiplying with 10^k, set extra_zeroes to k.
27989         (scale10_round_long_double): Remove function.
27990
27991 2007-05-18  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
27994         introduced on 2007-05-06.
27995
27996 2007-05-18  Bruno Haible  <bruno@clisp.org>
27997
27998         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
27999         %g directives.
28000         * tests/test-vasprintf-posix.c (test_function): Likewise.
28001         * tests/test-snprintf-posix.h (test_function): Likewise.
28002         * tests/test-sprintf-posix.h (test_function): Likewise.
28003
28004 2007-05-18  Bruno Haible  <bruno@clisp.org>
28005
28006         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
28007         (strmatch): New function.
28008         (test_function): Test the %f directive on numbers of various exponents.
28009         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
28010         (strmatch): New function.
28011         (test_function): Test the %f directive on numbers of various exponents.
28012         * tests/test-snprintf-posix.h (strmatch): New function.
28013         (test_function): Test the %f directive on numbers of various exponents.
28014         * tests/test-sprintf-posix.h (strmatch): New function.
28015         (test_function): Test the %f directive on numbers of various exponents.
28016         * tests/test-snprintf-posix.c (SIZEOF): New macro.
28017         * tests/test-sprintf-posix.c (SIZEOF): New macro.
28018         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
28019         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
28020
28021 2007-05-18  Bruno Haible  <bruno@clisp.org>
28022
28023         Add support for 'long double' number output.
28024         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
28025         * lib/vasnprintf.c: Include math.h and float+.h.
28026         (mp_limb_t): New type.
28027         (GMP_LIMB_BITS): New macro.
28028         (mp_twolimb_t): New type.
28029         (GMP_TWOLIMB_BITS): New macro.
28030         (mpn_t): New type.
28031         (multiply, divide, convert_to_decimal, decode_long_double,
28032         scale10_round_long_double, scale10_round_decimal_long_double,
28033         floorlog10l): New functions.
28034         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
28035         for the %f, %F, %e, %E, %g, %G directives.
28036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
28037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28038         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
28039         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
28040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28047         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
28048         * modules/snprintf-posix (Depends-on): Likewise.
28049         * modules/sprintf-posix (Depends-on): Likewise.
28050         * modules/vasnprintf-posix (Depends-on): Likewise.
28051         * modules/vasprintf-posix (Depends-on): Likewise.
28052         * modules/vfprintf-posix (Depends-on): Likewise.
28053         * modules/vsnprintf-posix (Depends-on): Likewise.
28054         * modules/vsprintf-posix (Depends-on): Likewise.
28055         * modules/vasnprintf (Files): Add lib/float+.h.
28056         * doc/functions/fprintf.texi: Update.
28057         * doc/functions/printf.texi: Update.
28058         * doc/functions/snprintf.texi: Update.
28059         * doc/functions/sprintf.texi: Update.
28060         * doc/functions/vfprintf.texi: Update.
28061         * doc/functions/vprintf.texi: Update.
28062         * doc/functions/vsnprintf.texi: Update.
28063         * doc/functions/vsprintf.texi: Update.
28064
28065 2007-05-18  Bruno Haible  <bruno@clisp.org>
28066
28067         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
28068
28069 2007-05-18  Bruno Haible  <bruno@clisp.org>
28070
28071         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
28072         for printing 64-bit integers. Needed for mingw.
28073
28074 2007-05-18  Bruno Haible  <bruno@clisp.org>
28075
28076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
28077         gl_FUNC_FREXPL_WORKS.
28078         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
28079
28080 2007-05-18  Bruno Haible  <bruno@clisp.org>
28081
28082         * modules/frexpl-nolibm-tests: New file.
28083
28084         * modules/frexpl-nolibm: New file.
28085         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
28086
28087 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28088
28089         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
28090         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
28091         GCC 4.2, which otherwise issues a lot of warnings.
28092         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
28093         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
28094         Likewise.
28095         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
28096         * modules/iconv_open (iconv.h): Likewise.
28097         * modules/locale (locale.h): Likewise.
28098         * modules/netinet_in (netinet/in.h): Likewise.
28099         * modules/sys_select (sys_select.h): Likewise.
28100         * modules/sys_socket (sys/socket.h): Likewise.
28101         * modules/sys_stat (sys/stat.h): Likewise.
28102         * modules/sysexits (sysexits.h): Likewise.
28103         * modules/unistd (unistd.h): Likewise.
28104
28105 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28106
28107         * modules/closein-tests (Makefile.am): Distribute
28108         `test-closein.sh'.
28109
28110 2007-05-17  Bruno Haible  <bruno@clisp.org>
28111
28112         * tests/test-printf-posix.output: Renamed from
28113         tests/test-fprintf-posix.out.
28114         * modules/fprintf-posix-tests: Update.
28115         * modules/printf-posix-tests: Update.
28116         * modules/vfprintf-posix-tests: Update.
28117         * modules/vprintf-posix-tests: Update.
28118         * tests/test-fprintf-posix.sh: Update.
28119         * tests/test-printf-posix.sh: Update.
28120         * tests/test-vfprintf-posix.sh: Update.
28121         * tests/test-vprintf-posix.sh: Update.
28122         Reported by Ralf Wildenhues.
28123
28124 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
28125
28126         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
28127         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
28128         GCC 4.2, which otherwise issues a lot of warnings.
28129         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
28130         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
28131         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
28132         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
28133         it should no longer be needed.
28134         * lib/string_.h: Likewise.
28135         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
28136         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
28137         * modules/inttypes (inttypes.h): Likewise.
28138         * modules/math (math.h): Likewise.
28139         * modules/search (search.h): Likewise.
28140         * modules/signal (signal.h): Likewise.
28141         * modules/stdint (stdint.h): Likewise.
28142         * modules/stdio (stdio.h): Likewise.
28143         * modules/stdlib (stdlib.h): Likewise.
28144         * modules/string (string.h): Likewise.
28145         * modules/sys_time (sys/time.h): Likewise.
28146         * modules/time (time.h): Likewise.
28147         * modules/wchar (wchar.h): Likewise.
28148         * modules/wctype (wtype.h): Likewise.
28149
28150 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28151
28152         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
28153
28154 2007-05-13  Bruno Haible  <bruno@clisp.org>
28155
28156         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
28157         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28158         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
28159         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28160         (gl_PREREQ_STRTOK_R): Don't require it here.
28161
28162 2007-05-13  Bruno Haible  <bruno@clisp.org>
28163
28164         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
28165         when used in C++ mode.
28166
28167 2007-05-12  Bruno Haible  <bruno@clisp.org>
28168
28169         * lib/linebuffer.h: Tweak doc.
28170         * lib/linebuffer.c: Likewise.
28171
28172 2007-05-12  James Youngman  <jay@gnu.org>
28173
28174         * lib/linebuffer.c (readlinebuffer_delim): New function,
28175         like readlinebuffer, but use a caller-specified delimiter.
28176         (readlinebuffer): Just call readlinebuffer_delim with '\n'
28177         as the delimiter.
28178         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
28179
28180 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28181
28182         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
28183         * modules/openat (Files): Remove openat-die.c.
28184         (Depends-on): Add openat-die.
28185         * modules/openat-die: New module.
28186
28187 2007-05-06  Bruno Haible  <bruno@clisp.org>
28188
28189         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
28190         Update with info about Cygwin.
28191         * doc/functions/fprintf.texi: Update.
28192         * doc/functions/printf.texi: Update.
28193         * doc/functions/snprintf.texi: Update.
28194         * doc/functions/sprintf.texi: Update.
28195         * doc/functions/vfprintf.texi: Update.
28196         * doc/functions/vprintf.texi: Update.
28197         * doc/functions/vsnprintf.texi: Update.
28198         * doc/functions/vsprintf.texi: Update.
28199         Reported by Eric Blake.
28200
28201 2007-05-06  Bruno Haible  <bruno@clisp.org>
28202
28203         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
28204         padding ourselves for the floating-point directives.
28205         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
28206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
28207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28208         gl_PRINTF_FLAG_ZERO and test its result. Invoke
28209         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
28210         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28217         * tests/test-snprintf-posix.h (test_function): Also check the width
28218         and some flags in the %f directive.
28219         * tests/test-sprintf-posix.h (test_function): Likewise.
28220         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28221         * tests/test-vasprintf-posix.c (test_function): Likewise.
28222         * doc/functions/fprintf.texi: Update.
28223         * doc/functions/printf.texi: Update.
28224         * doc/functions/snprintf.texi: Update.
28225         * doc/functions/sprintf.texi: Update.
28226         * doc/functions/vfprintf.texi: Update.
28227         * doc/functions/vprintf.texi: Update.
28228         * doc/functions/vsnprintf.texi: Update.
28229         * doc/functions/vsprintf.texi: Update.
28230
28231 2007-05-06  Bruno Haible  <bruno@clisp.org>
28232
28233         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
28234         pass the ' flag character to sprintf or snprintf.
28235         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
28236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
28237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28238         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
28239         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
28240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28247         * tests/test-snprintf-posix.h (test_function): Also check the grouping
28248         flag.
28249         * tests/test-sprintf-posix.h (test_function): Likewise.
28250         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28251         * tests/test-vasprintf-posix.c (test_function): Likewise.
28252         * doc/functions/fprintf.texi: Update.
28253         * doc/functions/printf.texi: Update.
28254         * doc/functions/snprintf.texi: Update.
28255         * doc/functions/sprintf.texi: Update.
28256         * doc/functions/vfprintf.texi: Update.
28257         * doc/functions/vprintf.texi: Update.
28258         * doc/functions/vsnprintf.texi: Update.
28259         * doc/functions/vsprintf.texi: Update.
28260
28261 2007-05-01  Bruno Haible  <bruno@clisp.org>
28262
28263         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
28264
28265 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
28266
28267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
28268         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
28269
28270 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
28271
28272         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
28273         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
28274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
28275
28276 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
28277
28278         * lib/argp-help.c (struct hol_entry): New member `ord'.
28279         (HOL_ENTRY_PTRCMP): Use ord for comparison
28280         (hol_sort): Initialize ord.
28281
28282 2007-05-01  Bruno Haible  <bruno@clisp.org>
28283
28284         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
28285         Reported by Eric Blake.
28286         * doc/gnulib.texi (Function Substitutes): Update.
28287
28288 2007-05-01  Bruno Haible  <bruno@clisp.org>
28289
28290         * doc/functions.texi: Remove file, now redundant through
28291         doc/functions/*.texi.
28292
28293 2007-05-01  Bruno Haible  <bruno@clisp.org>
28294
28295         * modules/argp (Depends-on): Add sleep.
28296
28297 2007-05-01  Bruno Haible  <bruno@clisp.org>
28298
28299         * modules/sleep-tests: New file.
28300         * tests/test-sleep.c: New file.
28301
28302         * modules/sleep: New file.
28303         * lib/sleep.c: New file.
28304         * m4/sleep.m4: New file.
28305         * lib/unistd_.h (sleep): New declaration.
28306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
28307         HAVE_SLEEP.
28308         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
28309         * doc/functions/sleep.texi: Document the sleep module.
28310
28311 2007-05-01  Bruno Haible  <bruno@clisp.org>
28312
28313         * lib/sigprocmask.h: Remove file.
28314         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
28315         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
28316         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
28317         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
28318         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28319         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
28320         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
28321         HAVE_SIGSET_T as a shell variable.
28322         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
28323         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
28324         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
28325         (Depends-on): Add signal. Remove verify.
28326         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
28327         (Include): Mention <signal.h> instead of sigprocmask.h.
28328         * NEWS: Mention the change.
28329         * lib/fatal-signal.c: Don't include sigprocmask.h.
28330
28331 2007-05-01  Bruno Haible  <bruno@clisp.org>
28332
28333         * modules/signal: New file.
28334         * lib/signal_.h: New file.
28335         * m4/signal_h.m4: New file.
28336
28337 2007-05-01  Bruno Haible  <bruno@clisp.org>
28338
28339         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
28340         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
28341         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
28342         HAVE_WCTYPE_CTMP_BUG into wctype.h.
28343
28344 2007-05-01  Bruno Haible  <bruno@clisp.org>
28345
28346         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
28347         configure time.
28348         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
28349         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
28350         * modules/sys_stat (Makefile.am): Substitute their values into
28351         sys/stat.h.
28352
28353 2007-05-01  Bruno Haible  <bruno@clisp.org>
28354
28355         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
28356         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
28357         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
28358
28359 2007-05-01  Bruno Haible  <bruno@clisp.org>
28360
28361         * doc/header/assert.texi: Undo last change: don't mention the gnulib
28362         'assert' module here.
28363
28364 2007-05-01  Bruno Haible  <bruno@clisp.org>
28365
28366         * doc/functions/*.texi: New files.
28367         * doc/functions/google-ranking.txt: New file.
28368         * doc/gnulib.texi (Function Substitutes): New chapter.
28369         (ctime, inet_ntoa): Remove sections.
28370         * doc/ctime.texi: Remove file.
28371         * doc/inet_ntoa.texi: Remove file.
28372         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
28373         dependencies.
28374         (%.info): New rule, specifying a --reference-limit.
28375
28376 2007-05-01  Bruno Haible  <bruno@clisp.org>
28377
28378         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
28379
28380 2007-05-01  Bruno Haible  <bruno@clisp.org>
28381
28382         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
28383         the portability of 'mkdir' to mingw systems.
28384
28385 2007-05-01  Bruno Haible  <bruno@clisp.org>
28386
28387         * doc/headers/google-ranking.txt: New file.
28388
28389 2007-04-30  Eric Blake  <ebb9@byu.net>
28390
28391         Prefer fseeko to fseek.
28392         * modules/getpass (Depends-on): Add fseeko.
28393         * lib/getpass.c (getpass): Use fseeko, not fseek.
28394
28395 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
28396
28397         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
28398         assumes the sorting is stable, while most qsort implementations
28399         are not.  Use argument addresses to ensure they never compare as
28400         equal.
28401
28402         * tests/test-argp-2.sh (usage-indent test): Fix output
28403         (func_compare): Restore diff options
28404         * tests/test-argp.c: Restore #include "progname.h"
28405
28406 2007-04-29  Bruno Haible  <bruno@clisp.org>
28407
28408         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
28409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28410         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
28411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28412         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
28413         (configure.ac): Define CHECK_SNPRINTF_POSIX.
28414         (TESTS, check_PROGRAMS): Add test-snprintf.
28415         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
28416         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
28417         (TESTS, check_PROGRAMS): Add test-vsnprintf.
28418         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
28419         assertions that fail on HP-UX, OSF/1, or IRIX.
28420         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
28421
28422 2007-04-29  Bruno Haible  <bruno@clisp.org>
28423
28424         * MODULES.html.sh (posix_functions): Remove 'contents'.
28425
28426 2007-04-29  Karl Berry  <karl@gnu.org>
28427
28428         * config/srclist.txt (gendocs_template_min): new entry.
28429
28430 2007-04-29  Bruno Haible  <bruno@clisp.org>
28431
28432         Work around fpurge bug on BSD systems.
28433         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
28434         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
28435         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
28436         fpurge to rpl_fpurge if the system already has this function.
28437         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
28438         the case where the system already has this function. Correct invariants
28439         on BSD systems.
28440         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
28441         BSD systems.
28442
28443 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
28444
28445         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
28446         proposed by Sven Verdoolaege.
28447
28448         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
28449         options.
28450         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
28451         (usage and help tests): Update
28452
28453 2007-04-29  Bruno Haible  <bruno@clisp.org>
28454
28455         * tests/test-fflush.c (main): Use a file of size 17, not 10.
28456         Print more information in case of failure. Disable a test on BeOS.
28457
28458 2007-04-29  Bruno Haible  <bruno@clisp.org>
28459
28460         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
28461         This helps debugging on systems on which no gdb is available.
28462
28463 2007-04-29  Bruno Haible  <bruno@clisp.org>
28464
28465         * lib/freading.h: Improve comments.
28466         * lib/fwriting.h: Likewise.
28467         * tests/test-freading.c (main): Don't check freading immediately after
28468         repositioning. Needed for glibc.
28469
28470 2007-04-29  Bruno Haible  <bruno@clisp.org>
28471
28472         * lib/freading.c (freading): Trivial simplification.
28473
28474 2007-04-28  Bruno Haible  <bruno@clisp.org>
28475
28476         * tests/test-fwriting.c (main): Also test the interaction between
28477         fflush and fwriting.
28478         * modules/fwriting-tests (Depends-on): Add fflush.
28479
28480         * tests/test-freading.c (main): Also test the interaction between
28481         fflush and freading.
28482         * modules/freading-tests (Depends-on): Add fflush.
28483
28484 2007-04-28  Bruno Haible  <bruno@clisp.org>
28485
28486         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
28487         fseeko and ftello.
28488         Suggested by Eric Blake.
28489
28490 2007-04-28  Jim Meyering  <jim@meyering.net>
28491
28492         Avoid false-negative in gl_STDINT_H's C99 conformance test.
28493         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
28494         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
28495
28496 2007-04-27  Eric Blake  <ebb9@byu.net>
28497
28498         * doc/headers/assert.texi (assert.h): Document assert module use.
28499
28500 2007-04-27  Bruno Haible  <bruno@clisp.org>
28501
28502         * doc/headers/*.texi: New files.
28503         * doc/gnulib.texi (Header File Substitutes): New chapter.
28504         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
28505         dependencies.
28506         (standards.info ,standards.html, standards.dvi): Update dependencies.
28507         (mostlyclean, clean): New targets.
28508
28509 2007-04-27  Bruno Haible  <bruno@clisp.org>
28510
28511         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
28512         * modules/sysexits (Files, Makefile.am): Update.
28513
28514         * lib/sys_socket_.h: Renamed from lib/socket_.h.
28515         * modules/sys_socket (Files, Makefile.am): Update.
28516
28517         * lib/sys_stat_.h: Renamed from lib/stat_.h.
28518         * modules/sys_stat (Files, Makefile.am): Update.
28519
28520 2007-04-27  Eric Blake  <ebb9@byu.net>
28521
28522         * lib/freading.h: Improve comments.
28523         * lib/fwriting.h: Likewise.
28524         * lib/fflush.c: Likewise.
28525
28526         Fix closein for mingw.
28527         * modules/closein-tests: Add tests for closein.
28528         * tests/test-closein.c: New file.
28529         * tests/test-closein.sh: Likewise.
28530         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
28531         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
28532
28533 2007-04-27  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
28536         version is < 6.
28537         * lib/math_.h [__DECC]: Likewise.
28538         * lib/stdio_.h [__DECC]: Likewise.
28539         * lib/stdlib_.h [__DECC]: Likewise.
28540         * lib/string_.h [__DECC]: Likewise.
28541         * lib/time_.h [__DECC]: Likewise.
28542         * lib/wchar_.h [__DECC]: Likewise.
28543         * lib/wctype_.h [__DECC]: Likewise.
28544
28545 2007-04-27  Bruno Haible  <bruno@clisp.org>
28546
28547         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
28548
28549 2007-04-27  Bruno Haible  <bruno@clisp.org>
28550
28551         * lib/fflush.c: Add comments.
28552         * modules/fpurge-tests (Depends-on): Add fflush.
28553         * modules/freadable-tests (Depends-on): Likewise.
28554         * modules/fwritable-tests (Depends-on): Likewise.
28555
28556 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
28557
28558         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
28559         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
28560         Report by Bruno Haible <bruno@clisp.org>.
28561
28562 2007-04-26  Eric Blake  <ebb9@byu.net>
28563
28564         Fix fflush on mingw.
28565         * modules/fflush (Depends-on): Add freading.
28566         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
28567         but unread data.
28568
28569 2007-04-26  Eric Blake  <ebb9@byu.net>
28570         and Bruno Haible  <bruno@clisp.org>
28571
28572         Implement freading and fwriting.
28573         * lib/freading.c: New file.
28574         * lib/freading.h: Likewise.
28575         * m4/freading.m4: Likewise.
28576         * modules/freading: Likewise.
28577         * modules/freading-tests: Likewise.
28578         * tests/test-freading.c: Likewise.
28579         * lib/fwriting.c: New file.
28580         * lib/fwriting.h: Likewise.
28581         * m4/fwriting.m4: Likewise.
28582         * modules/fwriting: Likewise.
28583         * modules/fwriting-tests: Likewise.
28584         * tests/test-fwriting.c: Likewise.
28585         * MODULES.html.sh (File stream based Input/Output): Mention them.
28586
28587 2007-04-26  Bruno Haible  <bruno@clisp.org>
28588
28589         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
28590         'long' when we assume it.
28591         Suggested by Eric Blake.
28592
28593 2007-04-26  Bruno Haible  <bruno@clisp.org>
28594
28595         Ensure fseeko, ftello are declared on glibc systems.
28596         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
28597         * modules/fseeko (configure.ac-early): Likewise.
28598         * modules/ftello (configure.ac-early): Likewise.
28599         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
28600         AC_FUNC_FSEEKO for this.
28601         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
28602         (gl_CHECK_FSEEKO): Remove macro.
28603
28604 2007-04-26  Bruno Haible  <bruno@clisp.org>
28605
28606         * tests/test-fflush.c (main): Also check the ftell result after
28607         fflush and fseek/fseeko.
28608         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
28609         file descriptor position cache in the stream.
28610         * lib/fseeko.c (rpl_fseeko): Likewise.
28611
28612 2007-04-26  Bruno Haible  <bruno@clisp.org>
28613
28614         * modules/fflush-tests (Depends-on): Add fseeko.
28615
28616 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
28617             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28618
28619         * lib/argz_.h: ensure error_t definition is obtained in same
28620         mechanism system argz.h would have.
28621         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
28622         argz facilities are known bad.  Err on the side of caution if
28623         cross-compiling.
28624
28625 2007-04-25  Eric Blake  <ebb9@byu.net>
28626
28627         * lib/fpurge.c (includes): Use stdlib.h for free.
28628         * tests/test-fflush.c (main): Also test fflush-fseeko.
28629
28630 2007-04-25  Bruno Haible  <bruno@clisp.org>
28631
28632         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
28633         * lib/fseeko.c: New file.
28634         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
28635         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
28636         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
28637         gl_FUNC_FSEEKO.
28638         (gl_FUNC_FSEEKO): Invoke it.
28639         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
28640         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
28641         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
28642
28643 2007-04-25  Bruno Haible  <bruno@clisp.org>
28644
28645         * modules/fflush (Depends-on): Add ftello.
28646
28647 2007-04-25  Bruno Haible  <bruno@clisp.org>
28648
28649         * modules/ftello-tests: New file.
28650         * tests/test-ftello.c: New file.
28651
28652         * modules/ftello: New file.
28653         * m4/ftello.m4: New file.
28654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
28655         HAVE_FTELLO.
28656         * lib/stdio_.h (ftello): New declaration.
28657         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
28658         HAVE_FTELLO.
28659
28660 2007-04-25  Bruno Haible  <bruno@clisp.org>
28661
28662         * modules/fseeko-tests: New file.
28663         * tests/test-fseeko.c: New file.
28664
28665         * modules/fseeko: New file.
28666         * m4/fseeko.m4: New file.
28667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
28668         HAVE_FSEEKO.
28669         * lib/stdio_.h (fseeko): New declaration.
28670         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
28671         HAVE_FSEEKO.
28672
28673 2007-04-25  Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
28676
28677 2007-04-25  Bruno Haible  <bruno@clisp.org>
28678
28679         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
28680         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
28681         * tests/test-unistd.c: Likewise.
28682         * tests/test-fcntl.c: Likewise.
28683
28684 2007-04-23  Eric Blake  <ebb9@byu.net>
28685
28686         * lib/fflush.c: Fix missing include.
28687         Reported by Bruno Haible.
28688
28689 2007-04-23  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
28692         Reported by Eric Blake.
28693
28694 2007-04-23  Bruno Haible  <bruno@clisp.org>
28695
28696         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
28697
28698 2007-04-23  Bruno Haible  <bruno@clisp.org>
28699
28700         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
28701
28702 2007-04-23  Bruno Haible  <bruno@clisp.org>
28703
28704         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
28705         Needed on HP-UX 11.
28706
28707 2007-04-16  Eric Blake  <ebb9@byu.net>
28708
28709         Make fflush rely on fpurge.
28710         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
28711         open coding all variants.
28712         * modules/fflush (Depends-on): Add fpurge and unistd.
28713         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
28714         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
28715
28716         Fix --with-tests compilation on cygwin.
28717         * modules/argmatch-tests (Makefile.am): List gnulib library first
28718         in LDADD.
28719         * modules/argp-tests (Makefile.am): Likewise.
28720         * modules/array-list-tests (Makefile.am): Likewise.
28721         * modules/array-oset-tests (Makefile.am): Likewise.
28722         * modules/avltree-list-tests (Makefile.am): Likewise.
28723         * modules/avltree-oset-tests (Makefile.am): Likewise.
28724         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28725         * modules/carray-list-tests (Makefile.am): Likewise.
28726         * modules/dirname-tests (Makefile.am): Likewise.
28727         * modules/frexp-tests (Makefile.am): Likewise.
28728         * modules/isnanl-tests (Makefile.am): Likewise.
28729         * modules/linked-list-tests (Makefile.am): Likewise.
28730         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28731         * modules/lock-tests (Makefile.am): Likewise.
28732         * modules/rbtree-list-tests (Makefile.am): Likewise.
28733         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28734         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28735         * modules/tls-tests (Makefile.am): Likewise.
28736         * modules/tsearch-tests (Makefile.am): Likewise.
28737         * modules/xvasprintf-tests (Makefile.am): Likewise.
28738
28739         Fix fpurge for cygwin.
28740         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
28741         value.
28742         * modules/fpurge-tests (Depends-on): Clean up trash.
28743
28744 2007-04-16  Simon Josefsson  <simon@josefsson.org>
28745
28746         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
28747
28748         * m4/autobuild.m4: Re-indent.
28749
28750 2007-04-13  Bruno Haible  <bruno@clisp.org>
28751
28752         * modules/fpurge-tests: New file.
28753         * tests/test-fpurge.c: New file.
28754
28755         * modules/fpurge: New file.
28756         * lib/fpurge.h: New file.
28757         * lib/fpurge.c: New file.
28758         * m4/fpurge.m4: New file.
28759
28760 2007-04-13  Bruno Haible  <bruno@clisp.org>
28761
28762         * modules/fbufmode-tests: New file.
28763         * tests/test-fbufmode.c: New file.
28764
28765         * modules/fbufmode: New file.
28766         * lib/fbufmode.h: New file.
28767         * lib/fbufmode.c: New file.
28768         * m4/fbufmode.m4: New file.
28769
28770 2007-04-13  Bruno Haible  <bruno@clisp.org>
28771
28772         * modules/fwritable-tests: New file.
28773         * tests/test-fwritable.c: New file.
28774
28775         * modules/fwritable: New file.
28776         * lib/fwritable.h: New file.
28777         * lib/fwritable.c: New file.
28778         * m4/fwritable.m4: New file.
28779
28780 2007-04-13  Bruno Haible  <bruno@clisp.org>
28781
28782         * modules/freadable-tests: New file.
28783         * tests/test-freadable.c: New file.
28784
28785         * modules/freadable: New file.
28786         * lib/freadable.h: New file.
28787         * lib/freadable.c: New file.
28788         * m4/freadable.m4: New file.
28789
28790 2007-04-13  Bruno Haible  <bruno@clisp.org>
28791
28792         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
28793         MOSTLYCLEANFILES.
28794
28795 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28796
28797         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
28798         gzip bootstrap.conf to avoid dragging in i18n machinery.
28799         (gnulib_tool_option): Use it.
28800
28801 2007-04-13  Bruno Haible  <bruno@clisp.org>
28802
28803         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
28804         %F directives.
28805         * tests/test-vasprintf-posix.c (test_function): Likewise.
28806         * tests/test-snprintf-posix.h (test_function): Likewise.
28807         * tests/test-sprintf-posix.h (test_function): Likewise.
28808         * tests/test-fprintf-posix.h (test_function): Likewise.
28809         * tests/test-printf-posix.h (test_function): Likewise.
28810         * tests/test-fprintf-posix.out: Likewise.
28811
28812 2007-04-13  Bruno Haible  <bruno@clisp.org>
28813
28814         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
28815         * modules/tls-tests (configure.ac): Likewise.
28816         Reported by Arto C. Nirkko <anirkko@insel.ch>.
28817
28818 2007-04-13  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/tls.c (glthread_tls_get): Fix return type.
28821         Patch by Arto C. Nirkko <anirkko@insel.ch>.
28822
28823 2007-04-12  Eric Blake  <ebb9@byu.net>
28824
28825         * modules/gettime (Depends-on): Remove gettime.
28826         Reported by Dmitry V. Levin.
28827
28828 2007-04-12  Bruno Haible  <bruno@clisp.org>
28829
28830         * modules/fflush (Include): Mention <stdio.h>.
28831         * modules/strtoimax (Include): Mention <inttypes.h>.
28832         * modules/strtoumax (Include): Likewise.
28833
28834 2007-04-12  Eric Blake  <ebb9@byu.net>
28835
28836         * .cvsignore: New file.
28837         * .gitignore: Likewise.
28838
28839 2007-04-12  Bruno Haible  <bruno@clisp.org>
28840
28841         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
28842         not before, since $(LDADD) often contains libgnu.a.
28843         * modules/striconv-tests (test_striconv_LDADD): Likewise.
28844         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
28845         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
28846         Needed on Cygwin.
28847
28848 2007-04-12  Eric Blake  <ebb9@byu.net>
28849
28850         Work around glibc's failure to flush stdin on fclose.
28851         * lib/closein.c (close_stdin): Flush stdin before closing.
28852
28853         Work around glibc's failure to reset seekable stdin on exit.
28854         * modules/closein: New module.
28855         * lib/closein.c: New file.
28856         * lib/closein.h: Likewise.
28857         * m4/closein.m4: Likewise.
28858         * MODULES.html.sh (File stream based Input/Output): Document it.
28859
28860 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28861
28862         * gnulib-tool: Rename generated 'autobuild' script to
28863         'do-autobuild' in --create-megatestdir output.
28864
28865         * doc/gnulib.texi (Build robot for gnulib): Fix.
28866
28867 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28868
28869         * modules/sysexits (Depends-on): Add absolute-header.
28870
28871 2007-04-12  Eric Blake  <ebb9@byu.net>
28872
28873         No need to preserve errno on success.
28874         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
28875         Reported by Bruno Haible.
28876
28877 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28878
28879         * MODULES.html.sh (Support for maintaining and releasing
28880         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
28881
28882 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28883
28884         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
28885
28886 2007-04-12  Simon Josefsson  <simon@josefsson.org>
28887
28888         * modules/autobuild: New module.
28889
28890         * m4/autobuild.m4: New file.
28891
28892 2007-04-11  Bruno Haible  <bruno@clisp.org>
28893
28894         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
28895         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
28896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
28897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
28898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28899         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28900         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28902         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28903         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
28905         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28906         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
28908         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28909         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28910         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
28911         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28912         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
28914         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28915         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
28917         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28918         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
28920         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
28921         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
28922         Reported by Eric Blake.
28923
28924 2007-04-11  Bruno Haible  <bruno@clisp.org>
28925
28926         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
28927
28928 2007-04-10  Bruno Haible  <bruno@clisp.org>
28929
28930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
28931         for NaN and Infinity. Needed on FreeBSD 6.1.
28932         * tests/test-vasnprintf-posix.c (test_function): Undo last change
28933         regarding results for "%010a" of Infinity and NaN.
28934         * tests/test-vasprintf-posix.c (test_function): Likewise.
28935         * tests/test-snprintf-posix.h (test_function): Likewise.
28936         * tests/test-sprintf-posix.h (test_function): Likewise.
28937         * tests/test-fprintf-posix.h (test_function): Likewise.
28938         * tests/test-printf-posix.h (test_function): Likewise.
28939         * tests/test-fprintf-posix.out: Likewise.
28940
28941 2007-04-10  Bruno Haible  <bruno@clisp.org>
28942
28943         * modules/locale-tests: New file.
28944         * tests/test-locale.c: New file.
28945
28946         * modules/locale: New file.
28947         * lib/locale_.h: New file.
28948         * m4/locale_h.m4: New file.
28949
28950 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
28951             Bruno Haible  <bruno@clisp.org>
28952
28953         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
28954         be determined, test for availability of the copysignf, copysign,
28955         copysignl functions.
28956         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
28957         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
28958         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
28959
28960 2007-04-09  Eric Blake  <ebb9@byu.net>
28961
28962         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
28963         * modules/stdio (Makefile.am): Support fflush.
28964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28965         * modules/fflush: New file.
28966         * lib/fflush.c: Likewise.
28967         * m4/fflush.m4: Likewise.
28968         * modules/fflush-tests: New test.
28969         * tests/test-fflush.c: Likewise.
28970         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
28971
28972 2007-04-06  Bruno Haible  <bruno@clisp.org>
28973
28974         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
28975         (VASNPRINTF): Use signbit for faster determination whether to print a
28976         minus sign.
28977         * modules/vasnprintf (Files): Remove lib/float+.h.
28978         * modules/fprintf-posix (Depends-on): Add signbit.
28979         * modules/snprintf-posix (Depends-on): Likewise.
28980         * modules/sprintf-posix (Depends-on): Likewise.
28981         * modules/vasnprintf-posix (Depends-on): Likewise.
28982         * modules/vasprintf-posix (Depends-on): Likewise.
28983         * modules/vfprintf-posix (Depends-on): Likewise.
28984         * modules/vsnprintf-posix (Depends-on): Likewise.
28985         * modules/vsprintf-posix (Depends-on): Likewise.
28986
28987 2007-04-06  Bruno Haible  <bruno@clisp.org>
28988
28989         * tests/test-frexp.c (main): Test also the sign bit of zero results.
28990         * tests/test-frexpl.c (main): Likewise.
28991         * tests/test-ldexpl.c (main): Likewise.
28992         * modules/frexp-tests (Depends-on): Add signbit.
28993         * modules/frexpl-tests (Depdends-on): Likewise.
28994         * modules/ldexpl-tests (Depdends-on): Likewise.
28995
28996 2007-04-06  Bruno Haible  <bruno@clisp.org>
28997
28998         * modules/signbit-tests: New file.
28999         * tests/test-signbit.c: New file.
29000
29001         * modules/signbit: New file.
29002         * lib/signbitf.c: New file.
29003         * lib/signbitd.c: New file.
29004         * lib/signbitl.c: New file.
29005         * m4/signbit.m4: New file.
29006         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
29007         (signbit): New macro.
29008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
29009         REPLACE_SIGNBIT.
29010         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
29011         REPLACE_FREXPL into math.h.
29012
29013 2007-04-06  Bruno Haible  <bruno@clisp.org>
29014
29015         * modules/isnanf-nolibm-tests: New file.
29016         * tests/test-isnanf.c: New file.
29017
29018         * modules/isnanf-nolibm: New file.
29019         * lib/isnanf.h: New file.
29020         * lib/isnanf.c: New file.
29021         * lib/isnan.c: Consider the USE_FLOAT macro.
29022         * m4/isnanf.m4: New file.
29023
29024 2007-04-06  Bruno Haible  <bruno@clisp.org>
29025
29026         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
29027         (Link): New section.
29028
29029         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
29030
29031 2007-04-06  Bruno Haible  <bruno@clisp.org>
29032
29033         Assume the 'long double' type.
29034         * m4/longdouble.m4: Remove file.
29035         * config/srclist.txt: Don't mention longdouble.m4.
29036         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
29037         * lib/float+.h: Likewise.
29038         * lib/frexp.c: Likewise.
29039         * lib/printf-args.h: Likewise.
29040         * lib/printf-args.c: Likewise.
29041         * lib/printf-frexp.c: Likewise.
29042         * lib/printf-parse.c: Likewise.
29043         * lib/vasnprintf.c: Likewise.
29044         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
29045         * m4/intl.m4: Likewise.
29046         * m4/isnanl.m4: Likewise.
29047         * m4/printf.m4: Likewise.
29048         * m4/printf-frexpl.m4: Likewise.
29049         * m4/vasnprintf.m4: Likewise.
29050         * modules/allocsa (Files): Remove m4/longdouble.m4.
29051         * modules/gettext (Files): Likewise.
29052         * modules/relocatable-prog-wrapper (Files): Likewise.
29053         * modules/vasnprintf (Files): Likewise.
29054         * modules/isnanl (Files): Likewise.
29055         (Include): Simplify.
29056         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
29057         (Include): Simplify.
29058         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
29059         (Include): Simplify.
29060         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
29061         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29062         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
29063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29064         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29066         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
29067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29068         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29070         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
29071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29072         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
29073         * tests/test-isnanl.c: Likewise.
29074         * tests/test-snprintf-posix.h: Likewise.
29075         * tests/test-sprintf-posix.h: Likewise.
29076         * tests/test-vasnprintf-posix.c: Likewise.
29077         * tests/test-vasnprintf-posix2.c: Likewise.
29078         * tests/test-vasprintf-posix.c: Likewise.
29079
29080 2007-04-06  Bruno Haible  <bruno@clisp.org>
29081
29082         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
29083         * lib/math_.h [__DECC]: Include the overridden include file through
29084         #include_next, outside the double-inclusion guard.
29085         * lib/stdio_.h [__DECC]: Likewise.
29086         * lib/stdlib_.h [__DECC]: Likewise.
29087         * lib/string_.h [__DECC]: Likewise.
29088         * lib/time_.h [__DECC]: Likewise.
29089         * lib/wchar_.h [__DECC]: Likewise.
29090         * lib/wctype_.h [__DECC]: Likewise.
29091         * lib/inttypes_.h [__DECC]: Likewise.
29092         Reported by Albert Chin <china@thewrittenword.com> in
29093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
29094
29095 2007-04-04  Eric Blake  <ebb9@byu.net>
29096
29097         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
29098         1.5.x.
29099
29100 2007-04-04  Bruno Haible  <bruno@clisp.org>
29101
29102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
29103         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
29104
29105 2007-04-04  Bruno Haible  <bruno@clisp.org>
29106
29107         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
29108         results for "%010a" of Infinity and NaN.
29109         * tests/test-vasprintf-posix.c (test_function): Likewise.
29110         * tests/test-snprintf-posix.h (test_function): Likewise.
29111         * tests/test-sprintf-posix.h (test_function): Likewise.
29112         * tests/test-fprintf-posix.h (test_function): Remove these tests.
29113         * tests/test-printf-posix.h (test_function): Likewise.
29114         * tests/test-fprintf-posix.out: Update.
29115         Needed for FreeBSD 6.1.
29116
29117 2007-04-04  Bruno Haible  <bruno@clisp.org>
29118
29119         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
29120         directly used by the gnulib modules nor by gnulib-tool.
29121
29122 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
29123
29124         * DEPENDENCIES: Give overall description of version dependency
29125         desirability.  Use more-typical names for apps.
29126         Add shell, coreutils, diffutils, grep, tar, gzip.
29127
29128 2007-04-04  Simon Josefsson  <simon@josefsson.org>
29129
29130         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
29131
29132 2007-04-04  Karl Berry  <karl@gnu.org>
29133
29134         * MODULES.html.sh (func_module): missing '.
29135
29136 2007-04-03  Bruno Haible  <bruno@clisp.org>
29137
29138         * modules/argmatch-tests (Makefile.am): New variable
29139         test_argmatch_LDADD.
29140         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
29141         * modules/array-list-tests (Makefile.am): New variable
29142         test_array_list_LDADD.
29143         * modules/array-oset-tests (Makefile.am): New variable
29144         test_array_oset_LDADD.
29145         * modules/avltree-list-tests (Makefile.am): New variable
29146         test_avltree_list_LDADD.
29147         * modules/avltree-oset-tests (Makefile.am): New variable
29148         test_avltree_oset_LDADD.
29149         * modules/avltreehash-list-tests (Makefile.am): New variable
29150         test_avltreehash_list_LDADD.
29151         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
29152         test_canonicalize_lgpl_LDADD.
29153         * modules/carray-list-tests (Makefile.am): New variable
29154         test_carray_list_LDADD.
29155         * modules/dirname-tests (Makefile.am): New variable
29156         test_dirname_LDADD.
29157         * modules/linked-list-tests (Makefile.am): New variable
29158         test_linked_list_LDADD.
29159         * modules/linkedhash-list-tests (Makefile.am): New variable
29160         test_linkedhash_list_LDADD.
29161         * modules/rbtree-list-tests (Makefile.am): New variable
29162         test_rbtree_list_LDADD.
29163         * modules/rbtree-oset-tests (Makefile.am): New variable
29164         test_rbtree_oset_LDADD.
29165         * modules/rbtreehash-list-tests (Makefile.am): New variable
29166         test_rbtreehash_list_LDADD.
29167         * modules/xvasprintf-tests (Makefile.am): New variable
29168         test_xvasprintf_LDADD.
29169         Reported by Eric Blake.
29170
29171 2007-04-03  Eric Blake  <ebb9@byu.net>
29172
29173         * DEPENDENCIES: Weaken m4 requirements.
29174
29175 2007-04-03  Bruno Haible  <bruno@clisp.org>
29176
29177         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
29178         * modules/isnanl-tests (configure.ac): Likewise.
29179
29180 2007-04-03  Ben Pfaff  <blp@gnu.org>
29181
29182         * modules/iconv_open: Add $(srcdir)/ to source directory
29183         references in Makefile fragments that call gperf, to fix VPATH
29184         builds.
29185
29186 2007-04-03  Bruno Haible  <bruno@clisp.org>
29187
29188         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
29189         * lib/ldexpl.c: Undo last change.
29190
29191 2007-04-03  Bruno Haible  <bruno@clisp.org>
29192
29193         * modules/printf-frexpl (Depends-on): Undo last change.
29194         (Files): Add m4/ldexpl.m4.
29195
29196 2007-04-03  Bruno Haible  <bruno@clisp.org>
29197
29198         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
29199         * modules/isnanl (Link): New section.
29200
29201         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
29202         * modules/frexp (Link): New section.
29203
29204         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
29205         * modules/frexpl (Link): New section.
29206
29207         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
29208         * modules/ldexpl (Link): New section.
29209
29210 2007-04-03  Bruno Haible  <bruno@clisp.org>
29211
29212         * modules/TEMPLATE-EXTENDED: New file.
29213         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
29214
29215 2007-04-03  Bruno Haible  <bruno@clisp.org>
29216
29217         * DEPENDENCIES: New file.
29218         Suggested by Simon Josefsson.
29219
29220 2007-04-03  Bruno Haible  <bruno@clisp.org>
29221
29222         * doc/gnulib.texi: Escape @.
29223
29224 2007-04-03  James Youngman  <jay@gnu.org>
29225         and Paul Eggert  <eggert@cs.ucla.edu>
29226
29227         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
29228         birthtime on all systems that have birthtime, not just those which
29229         use st_birthtimensec rather than st_birthtim.  Putting zero in
29230         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
29231         that the birth time is not available for files on an NFS mount.
29232
29233 2007-04-03  Simon Josefsson  <simon@josefsson.org>
29234
29235         * modules/memxor: Move back from crypto/, suggested by Bruno.
29236         * modules/crypto/hmac-sha1: Fix memxor dependency.
29237
29238         * modules/crypto/gc: Moved from ../.
29239
29240 2007-04-02  Eric Blake  <ebb9@byu.net>
29241
29242         * lib/ldexpl.c (includes): Avoid libm.
29243
29244         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
29245
29246 2007-04-02  Bruno Haible  <bruno@clisp.org>
29247
29248         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
29249         on IRIX.
29250
29251 2007-04-02  Bruno Haible  <bruno@clisp.org>
29252
29253         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
29254         x86 or x86_64 platforms running MacOS X.
29255         Reported by Ryan Schmidt <@ryandesign.com>.
29256
29257 2007-04-02  Bruno Haible  <bruno@clisp.org>
29258
29259         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
29260         i386.
29261
29262 2007-04-01  Simon Josefsson  <simon@josefsson.org>
29263
29264         * modules/crypto/arcfour: Moved from ../.
29265         * modules/crypto/arcfour-tests: Moved from ../.
29266         * modules/crypto/arctwo: Moved from ../.
29267         * modules/crypto/arctwo-tests: Moved from ../.
29268         * modules/crypto/des: Moved from ../.
29269         * modules/crypto/des-tests: Moved from ../.
29270         * modules/crypto/gc-arcfour: Moved from ../.
29271         * modules/crypto/gc-arcfour-tests: Moved from ../.
29272         * modules/crypto/gc-arctwo: Moved from ../.
29273         * modules/crypto/gc-arctwo-tests: Moved from ../.
29274         * modules/crypto/gc-des: Moved from ../.
29275         * modules/crypto/gc-des-tests: Moved from ../.
29276         * modules/crypto/gc-hmac-md5: Moved from ../.
29277         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
29278         * modules/crypto/gc-hmac-sha1: Moved from ../.
29279         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
29280         * modules/crypto/gc-md2: Moved from ../.
29281         * modules/crypto/gc-md2-tests: Moved from ../.
29282         * modules/crypto/gc-md4: Moved from ../.
29283         * modules/crypto/gc-md4-tests: Moved from ../.
29284         * modules/crypto/gc-md5: Moved from ../.
29285         * modules/crypto/gc-md5-tests: Moved from ../.
29286         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
29287         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
29288         * modules/crypto/gc-random: Moved from ../.
29289         * modules/crypto/gc-rijndael: Moved from ../.
29290         * modules/crypto/gc-rijndael-tests: Moved from ../.
29291         * modules/crypto/gc-sha1: Moved from ../.
29292         * modules/crypto/gc-sha1-tests: Moved from ../.
29293         * modules/crypto/gc-tests: Moved from ../.
29294         * modules/crypto/hmac-md5: Moved from ../.
29295         * modules/crypto/hmac-md5-tests: Moved from ../.
29296         * modules/crypto/hmac-sha1: Moved from ../.
29297         * modules/crypto/hmac-sha1-tests: Moved from ../.
29298         * modules/crypto/md2: Moved from ../.
29299         * modules/crypto/md2-tests: Moved from ../.
29300         * modules/crypto/md4: Moved from ../.
29301         * modules/crypto/md4-tests: Moved from ../.
29302         * modules/crypto/md5: Moved from ../.
29303         * modules/crypto/md5-tests: Moved from ../.
29304         * modules/crypto/memxor: Moved from ../.
29305         * modules/crypto/rijndael: Moved from ../.
29306         * modules/crypto/rijndael-tests: Moved from ../.
29307         * modules/crypto/sha1: Moved from ../.
29308
29309 2007-03-30  James Youngman  <jay@gnu.org>
29310
29311         * tests/test-stat-time.c (prepare_test): use chmod() rather than
29312         rename() to change the ctime of a file (because ctime is unaffected
29313         by rename on jfs2 on AIX 5.1).
29314         (main): Start by doing cleanup, in case a previous run failed leaving
29315         test files behind.
29316
29317 2007-03-31  Bruno Haible  <bruno@clisp.org>
29318
29319         Support old proprietary implementations of iconv.
29320         * modules/iconv_open: New file.
29321         * lib/iconv_.h: New file.
29322         * m4/iconv_h.m4: New file.
29323         * lib/iconv_open.c: New file.
29324         * lib/iconv_open-aix.gperf: New file.
29325         * lib/iconv_open-hpux.gperf: New file.
29326         * lib/iconv_open-irix.gperf: New file.
29327         * lib/iconv_open-osf.gperf: New file.
29328         * m4/iconv_open.m4: New file.
29329         * modules/linebreak (Depends-on): Add iconv_open.
29330         * modules/striconv (Depends-on): Likewise.
29331         * modules/striconveh (Depends-on): Likewise.
29332         * modules/unicodeio (Depends-on): Likewise.
29333         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
29334         (iconv_t)(-1).
29335         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
29336         conversion if cd is (iconv_t)(-1).
29337         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
29338         is not possible.
29339
29340 2007-03-31  Bruno Haible  <bruno@clisp.org>
29341
29342         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29343         work on Solaris either. Protect also second use of "autodetect_jp".
29344
29345 2007-03-31  Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
29348         the function is not present.
29349
29350 2007-03-31  Bruno Haible  <bruno@clisp.org>
29351
29352         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
29353         the function is not present.
29354
29355 2007-03-31  Bruno Haible  <bruno@clisp.org>
29356
29357         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
29358         a bug in HP-UX iconv_open().
29359
29360 2007-03-31  Bruno Haible  <bruno@clisp.org>
29361
29362         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
29363         (Mathematics <math.h>): New section, add fpieee.
29364         (Input/output <stdio.h>): Add fseterr.
29365         (Mathematics <math.h>): New section, add printf-frexp.
29366         (Container data structures): Add sublist.
29367         (Core language properties): Add fpucw, inline.
29368         (Functions for greatest-width integer types <inttypes.h>): Add
29369         imaxabs, imaxdiv, inttypes.
29370         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
29371         isnanl-nolibm, ldexp.
29372         (Mathematics <math.h>): New section, add printf-frexpl.
29373         (Support for systems lacking POSIX:2001): Add fprintf-posix,
29374         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
29375         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
29376         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
29377         (Unicode string functions): Add unistr/u*-mbtoucr.
29378         (Java): Add javacomp-script, javaexec-script.
29379         (C#): Add csharpcomp-script, csharpexec-script.
29380         (Support for building libraries and executables): Add havelib,
29381         relocatable-*.
29382         (Support for maintaining and releasing projects): Renamed from
29383         'Support for maintaining and release projects'. Add announce-gen.
29384
29385 2007-03-31  Bruno Haible  <bruno@clisp.org>
29386
29387         * README: Talk primarily about git.
29388         (git and CVS): Renamed from CVS.
29389         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
29390         gnulib is available through git.
29391         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
29392
29393 2007-03-30  Bruno Haible  <bruno@clisp.org>
29394
29395         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
29396         * lib/poll_.h: Likewise.
29397         * lib/stat_.h: Likewise.
29398         * lib/sys_time_.h: Likewise.
29399         * lib/sysexit_.h: Likewise.
29400         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
29401         * lib/stdbool_.h: Likewise.
29402         * lib/byteswap_.h: Add double-inclusion guard.
29403
29404 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
29405
29406         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
29407
29408 2007-03-30  Karl Berry  <karl@gnu.org>
29409
29410         * config/srclist-update: double space after USA in the license
29411         substitution, since that's how it's usually (?) written.
29412
29413 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29414
29415         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
29416         reported by Bruno Haible.
29417
29418 2007-03-29  Bruno Haible  <bruno@clisp.org>
29419
29420         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
29421         a bug in AIX iconv().
29422
29423 2007-03-29  Bruno Haible  <bruno@clisp.org>
29424
29425         * modules/ldexpl-tests: New file.
29426         * tests/test-ldexpl.c: New file.
29427
29428 2007-03-29  Bruno Haible  <bruno@clisp.org>
29429
29430         * lib/ldexpl.c: Include fpucw.h.
29431         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
29432         multiplication.
29433         * modules/ldexpl (Depends-on): Add fpucw.
29434
29435 2007-03-29  Bruno Haible  <bruno@clisp.org>
29436
29437         * modules/ldexpl: New file.
29438         * m4/ldexpl.m4: New file.
29439         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
29440         set.
29441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
29442         REPLACE_LDEXPL.
29443         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
29444         REPLACE_LDEXPL.
29445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
29446         gl_FUNC_LDEXPL_WORKS.
29447         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
29448         * modules/mathl (Files): Remove lib/ldexpl.c.
29449         (Depends-on): Add ldexpl.
29450
29451 2007-03-29  Bruno Haible  <bruno@clisp.org>
29452
29453         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
29454
29455 2007-03-29  Bruno Haible  <bruno@clisp.org>
29456
29457         * tests/test-striconveh.c (main): Don't assume that a direct conversion
29458         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
29459         and possibly also HP-UX.
29460         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29461         work on AIX, IRIX, HP-UX, OSF/1.
29462         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29463         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29464         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29465         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29466         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
29467         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29468
29469 2007-03-29  Bruno Haible  <bruno@clisp.org>
29470
29471         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
29472
29473 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
29474
29475         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
29476         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
29477
29478 2007-03-29  Eric Blake  <ebb9@byu.net>
29479
29480         * lib/acl-internal.h: Remove redundant include.
29481         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
29482         Cygwin when a file is locked.
29483
29484 2007-03-29  Bruno Haible  <bruno@clisp.org>
29485
29486         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
29487         file.
29488         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
29489
29490 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
29491
29492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
29493         try to remove a parent directory if the child couldn't be removed
29494         (except for the first rmdir, which could fail because the child
29495         doesn't exist).  Problem reported by Jeff Blaine in
29496         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
29497
29498 2007-03-28  Bruno Haible  <bruno@clisp.org>
29499
29500         * lib/striconveh.c (utf8conv_carefully): New function.
29501         (mem_cd_iconveh_internal): Invoke it.
29502
29503 2007-03-28  Bruno Haible  <bruno@clisp.org>
29504
29505         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
29506         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
29507         input.
29508         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
29509         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
29510         unistr/u8-uctomb.
29511
29512 2007-03-28  Bruno Haible  <bruno@clisp.org>
29513
29514         * modules/unistr/u8-mbtoucr: New file.
29515         * lib/unistr/u8-mbtoucr.c: New file.
29516         * modules/unistr/u16-mbtoucr: New file.
29517         * lib/unistr/u16-mbtoucr.c: New file.
29518         * modules/unistr/u16-mbtoucr: New file.
29519         * lib/unistr/u16-mbtoucr.c: New file.
29520         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
29521
29522 2007-03-27  Simon Josefsson  <simon@josefsson.org>
29523             Bruno Haible  <bruno@clisp.org>
29524
29525         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
29526         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
29527         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
29528
29529         * m4/stdio_h.m4: Add stubs for vasprintf too.
29530
29531         * modules/stdio: Support vasprintf in sed command.
29532
29533         * modules/vasprintf: Depend on stdio for prototypes.  Remove
29534         vasprintf.h.  Add stdio module indicator.
29535
29536         * lib/stdio_.h: Declare asprintf and vasprintf, based on
29537         vasprintf.h.
29538
29539         * lib/vasprintf.h: File removed.
29540
29541         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
29542         * lib/vasprintf.c: Ditto.
29543         * lib/xvasprintf.c: Ditto.
29544         * tests/test-vasprintf-posix.c: Ditto.
29545         * tests/test-vasprintf.c: Ditto.
29546
29547 2007-03-27  Bruno Haible  <bruno@clisp.org>
29548
29549         Make vasnprintf multithread-safe.
29550         * lib/vasnprintf.c (decimal_point_char): New function.
29551         (VASNPRINTF): Use it.
29552         Suggested by Simon Josefsson.
29553
29554 2007-03-27  Eric Blake  <ebb9@byu.net>
29555
29556         Support sub-second birthtime on cygwin.
29557         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
29558         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
29559         (get_stat_birthtime): Also work with st_birthtim.
29560
29561 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29562
29563         * lib/stat-time.h (USE_BIRTHTIME): Remove.
29564         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
29565         (get_stat_birthtime_ns): Do not try to use "spare" fields.
29566         (get_stat_birthtime_ns): Simplify compile-time tests.
29567         (get_stat_birthtime): Change the API to look like
29568         get_stat_mtime etc., except return a negative tv_nsec on error.
29569         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
29570         Don't check for "spare" fields.
29571         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
29572         or for struct stat.st_birthtime, as these tests aren't used.
29573         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
29574
29575 2007-03-27  Bruno Haible  <bruno@clisp.org>
29576
29577         * lib/stat-time.h: Include <sys/stat.h>.
29578
29579 2007-03-27  James Youngman  <jay@gnu.org>
29580
29581         * lib/stat-time.h (get_stat_birthtime): New function for
29582           retrieving st_birthtime as provided by UFS2 (hence *BSD).
29583         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
29584           and its variants.
29585         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
29586         * modules/stat-time-test: New file.
29587         * tests/test-stat-time.c: New test, devised by Bruno Haible.
29588
29589 2007-03-26  Bruno Haible  <bruno@clisp.org>
29590
29591         Better support of signalling NaNs.
29592         * lib/atanl.c: Include isnanl.h.
29593         (atanl): Perform test for NaN at the beginning of the function and
29594         through a call to isnanl.
29595         * lib/cosl.c: Include isnanl.h.
29596         (cosl): Perform test for NaN at the beginning of the function and
29597         through a call to isnanl.
29598         * lib/ldexpl.c: Include isnanl.h.
29599         (ldexpl): Perform test for NaN through a call to isnanl.
29600         * lib/logl.c: Include isnanl.h.
29601         (logl): Perform test for NaN at the beginning of the function and
29602         through a call to isnanl.
29603         * lib/sinl.c: Include isnanl.h.
29604         (sinl): Perform test for NaN at the beginning of the function and
29605         through a call to isnanl.
29606         * lib/sqrtl.c: Include isnanl.h.
29607         (sqrtl): Perform test for NaN at the beginning of the function and
29608         through a call to isnanl.
29609         * lib/tanl.c: Include isnanl.h.
29610         (tanl): Perform test for NaN at the beginning of the function and
29611         through a call to isnanl.
29612         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
29613         * modules/mathl (Depends-on): Add isnanl.
29614
29615 2007-03-26  Eric Blake  <ebb9@byu.net>
29616
29617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
29618         regression in logic sense of previous patch.
29619
29620 2007-03-26  Bruno Haible  <bruno@clisp.org>
29621
29622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
29623         unportable shell command "if ! ...".
29624         Reported by Ralf Wildenhues.
29625
29626 2007-03-25  Bruno Haible  <bruno@clisp.org>
29627
29628         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
29629         <sysexits.h> file, and only add EX_CONFIG.
29630         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
29631         absolute file name and whether it is sufficient. Substitute also
29632         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
29633         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
29634         ABSOLUTE_SYSEXITS_H into sysexits.h.
29635
29636 2007-03-25  Bruno Haible  <bruno@clisp.org>
29637
29638         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
29639         hints is NULL.
29640
29641 2007-03-25  Bruno Haible  <bruno@clisp.org>
29642
29643         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
29644         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
29645
29646 2007-03-25  Bruno Haible  <bruno@clisp.org>
29647
29648         * lib/vasnprintf.c: Include langinfo.h.
29649         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
29650         multithread-safe.
29651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
29652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
29653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
29659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29660         Reported by Simon Josefsson.
29661
29662 2007-03-25  Bruno Haible  <bruno@clisp.org>
29663
29664         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
29665         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
29666         * modules/vasnprintf (Depends-on): Add stdint.
29667
29668 2007-03-25  Bruno Haible  <bruno@clisp.org>
29669
29670         * modules/fpieee: New file.
29671         * m4/fpieee.m4: New file.
29672         * modules/isnan-nolibm (Depends-on): Add fpieee.
29673         * modules/isnanl-nolibm (Depends-on): Add fpieee.
29674         * modules/isnanl (Depends-on): Add fpieee.
29675
29676 2007-03-25  Bruno Haible  <bruno@clisp.org>
29677
29678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
29679
29680 2007-03-25  Bruno Haible  <bruno@clisp.org>
29681
29682         Avoid test failures on IRIX 6.5.
29683         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
29684         (main): Use it.
29685         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
29686         macros.
29687         (main): Use them.
29688
29689 2007-03-25  Bruno Haible  <bruno@clisp.org>
29690
29691         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
29692         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
29693         exists but doesn't work.
29694         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
29695         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
29696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
29697         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
29698
29699 2007-03-25  Bruno Haible  <bruno@clisp.org>
29700
29701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
29702         returns inf. Needed on IRIX 6.5.
29703
29704 2007-03-25  Bruno Haible  <bruno@clisp.org>
29705
29706         * tests/test-frexpl.c: Include isnanl-nolibm.h.
29707         (main): Use isnanl instead of x != x idiom.
29708         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
29709
29710         * tests/test-frexp.c: Include isnan.h.
29711         (main): Use isnan instead of x != x idiom.
29712         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
29713
29714 2007-03-25  Bruno Haible  <bruno@clisp.org>
29715
29716         * tests/test-frexp.c (NaN): New function/macro.
29717         (main): Use it instead of 0.0 / 0.0.
29718         * tests/test-isnan.c (NaN): New function/macro.
29719         (main): Use it instead of 0.0 / 0.0.
29720         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
29721         (test_function): Use it instead of 0.0 / 0.0.
29722         * tests/test-vasprintf-posix.c (NaN): New function/macro.
29723         (test_function): Use it instead of 0.0 / 0.0.
29724         * tests/test-snprintf-posix.h (NaN): New function/macro.
29725         (test_function): Use it instead of 0.0 / 0.0.
29726         * tests/test-sprintf-posix.h (NaN): New function/macro.
29727         (test_function): Use it instead of 0.0 / 0.0.
29728         * tests/test-fprintf-posix.h (NaN): New function/macro.
29729         (test_function): Use it instead of 0.0 / 0.0.
29730         * tests/test-printf-posix.h (NaN): New function/macro.
29731         (test_function): Use it instead of 0.0 / 0.0.
29732
29733         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
29734
29735 2007-03-25  Bruno Haible  <bruno@clisp.org>
29736
29737         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
29738
29739 2007-03-25  Bruno Haible  <bruno@clisp.org>
29740
29741         * lib/regexec.c (merge_state_with_log): Make static.
29742
29743 2007-03-25  Bruno Haible  <bruno@clisp.org>
29744
29745         * lib/trigl.c (kernel_rem_pio2): Make static.
29746
29747 2007-03-25  Bruno Haible  <bruno@clisp.org>
29748
29749         * lib/sincosl.c (sincosl_table): Make static.
29750
29751 2007-03-25  Bruno Haible  <bruno@clisp.org>
29752
29753         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
29754         if the compiler does not support C99.
29755
29756 2007-03-25  Bruno Haible  <bruno@clisp.org>
29757
29758         * modules/time (Makefile.am): Ensure all rule action lines start with a
29759         tab.
29760
29761 2007-03-24  Bruno Haible  <bruno@clisp.org>
29762
29763         * modules/tsearch-tests: New file.
29764         * tests/test-tsearch.sh: New file.
29765         * tests/test-tsearch.c: New file, mostly copied from glibc.
29766
29767         * modules/search-tests: New file.
29768         * tests/test-search.c: New file.
29769
29770         * modules/search: New file.
29771         * lib/search_.h: New file, incorporating lib/tsearch.h.
29772         * m4/search_h.m4: New file.
29773         * lib/tsearch.h: Remove file.
29774         * lib/tsearch.c: Include search.h instead of tsearch.h.
29775         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
29776         HAVE_TSEARCH.
29777         * modules/tsearch (Files): Remove lib/tsearch.h.
29778         (Depends-on): Add search.
29779         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
29780         (Include): Change tsearch.h into search.h.
29781
29782 2007-03-24  Bruno Haible  <bruno@clisp.org>
29783
29784         * modules/fpucw: New file.
29785         * lib/fpucw.h: New file.
29786         * lib/frexp.c: Include fpucw.h.
29787         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
29788         (FUNC): Use them.
29789         * lib/printf-frexp.c: Include fpucw.h.
29790         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
29791         (FUNC): Use them.
29792         * lib/vasnprintf.c: Include fpucw.h.
29793         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
29794         'long double' calculations.
29795         * tests/test-frexpl.c: Include fpucw.h.
29796         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
29797         * tests/test-printf-frexpl.c: Include fpucw.h.
29798         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
29799         * modules/frexpl (Depends-on): Add fpucw.
29800         * modules/printf-frexpl (Depends-on): Likewise.
29801         * modules/fprintf-posix (Depends-on): Likewise.
29802         * modules/snprintf-posix (Depends-on): Likewise.
29803         * modules/sprintf-posix (Depends-on): Likewise.
29804         * modules/vasnprintf-posix (Depends-on): Likewise.
29805         * modules/vasprintf-posix (Depends-on): Likewise.
29806         * modules/vfprintf-posix (Depends-on): Likewise.
29807         * modules/vsnprintf-posix (Depends-on): Likewise.
29808         * modules/vsprintf-posix (Depends-on): Likewise.
29809         * modules/frexpl-tests (Depends-on): Likewise.
29810         * modules/printf-frexpl-tests (Depends-on): Likewise.
29811
29812 2007-03-24  Bruno Haible  <bruno@clisp.org>
29813
29814         * lib/float+.h: New file.
29815         * lib/isnan.c: Include float+.h.
29816         (SIZE): New macro.
29817         (FUNC): Compare only SIZE bytes of the value.
29818         * lib/vasnprintf.c: Include float+.h.
29819         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
29820         SIZEOF_LDBL or SIZEOF_DBL bytes.
29821         * modules/isnan-nolibm (Files): Add lib/float+.h.
29822         * modules/isnanl-nolibm (Files): Add lib/float+.h.
29823         * modules/isnanl (Files): Add lib/float+.h.
29824         * modules/vasnprintf (Files): Add lib/float+.h.
29825
29826 2007-03-24  Bruno Haible  <bruno@clisp.org>
29827
29828         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
29829         include isnanl-nolibm.h.
29830
29831 2007-03-24  Bruno Haible  <bruno@clisp.org>
29832
29833         * tests/test-read-file.c (main): Don't produce spurious output for
29834         expected situations. Make the test fail if it encountered unexpected
29835         results.
29836
29837 2007-03-24  Bruno Haible  <bruno@clisp.org>
29838
29839         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
29840         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
29841
29842 2007-03-24  Bruno Haible  <bruno@clisp.org>
29843
29844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
29845
29846 2007-03-24  Bruno Haible  <bruno@clisp.org>
29847
29848         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
29849         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
29850
29851         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
29852         * modules/utf8-ucs4: Turn into a symbolic link to module
29853         unistr/u8-mbtouc.
29854
29855         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
29856         utf8-ucs4-unsafe.
29857         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
29858         unistr/u8-mbtouc-unsafe.
29859
29860         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
29861         * modules/utf16-ucs4: Turn into a symbolic link to module
29862         unistr/u16-mbtouc.
29863
29864         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
29865         utf16-ucs4-unsafe.
29866         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
29867         unistr/u16-mbtouc-unsafe.
29868
29869         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
29870         * modules/ucs4-utf8: Turn into a symbolic link to module
29871         unistr/u8-ubtomb.
29872
29873         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
29874         * modules/ucs4-utf16: Turn into a symbolic link to module
29875         unistr/u16-ubtomb.
29876
29877 2007-03-24  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
29880         Enable the function only if HAVE_INLINE.
29881         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
29882         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
29883         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
29884         Enable the function only if HAVE_INLINE.
29885         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
29886         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
29887         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
29888         Enable the function only if HAVE_INLINE.
29889         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
29890         Enable the function only if HAVE_INLINE.
29891         * modules/utf8-ucs4: Update.
29892         * modules/utf8-ucs4-unsafe: Update.
29893         * modules/utf16-ucs4: Update.
29894         * modules/utf16-ucs4-unsafe: Update.
29895         * modules/ucs4-utf8: Update.
29896         * modules/ucs4-utf16: Update.
29897
29898 2007-03-24  Bruno Haible  <bruno@clisp.org>
29899
29900         * lib/utf8-ucs4.h: Remove file.
29901         * lib/utf8-ucs4-unsafe.h: Remove file.
29902         * lib/utf16-ucs4.h: Remove file.
29903         * lib/utf16-ucs4-unsafe.h: Remove file.
29904         * lib/ucs4-utf8.h: Remove file.
29905         * lib/ucs4-utf16.h: Remove file.
29906         * lib/unistr.h: Include their previous contents.
29907         * m4/utf-ucs4.m4: Remove file.
29908         * m4/ucs4-utf.m4: Remove file.
29909         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
29910         (Depends-on): Add unistr/base.
29911         (configure.ac): Remove gl_UTF_UCS4.
29912         (Makefile.am): Update.
29913         (Include): Change to unistr.h.
29914         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
29915         (Depends-on): Add unistr/base.
29916         (configure.ac): Remove gl_UTF_UCS4.
29917         (Makefile.am): Update.
29918         (Include): Change to unistr.h.
29919         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
29920         (Depends-on): Add unistr/base.
29921         (configure.ac): Remove gl_UTF_UCS4.
29922         (Makefile.am): Update.
29923         (Include): Change to unistr.h.
29924         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
29925         (Depends-on): Add unistr/base.
29926         (configure.ac): Remove gl_UTF_UCS4.
29927         (Makefile.am): Update.
29928         (Include): Change to unistr.h.
29929         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
29930         (Depends-on): Add unistr/base.
29931         (configure.ac): Remove gl_UCS4_UTF.
29932         (Makefile.am): Update.
29933         (Include): Change to unistr.h.
29934         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
29935         (Depends-on): Add unistr/base.
29936         (configure.ac): Remove gl_UCS4_UTF.
29937         (Makefile.am): Update.
29938         (Include): Change to unistr.h.
29939         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
29940         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
29941         utf8-ucs4-unsafe.h.
29942         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
29943         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
29944         utf16-ucs4-unsafe.h.
29945         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
29946         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
29947         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
29948         * lib/unistr/u8-strchr.c: Likewise.
29949         * lib/unistr/u8-strrchr.c: Likewise.
29950         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
29951         * lib/unistr/u16-strchr.c: Likewise.
29952         * lib/unistr/u16-strrchr.c: Likewise.
29953         * lib/striconveh.c: Update.
29954         * lib/linebreak.c: Update.
29955
29956 2007-03-24  Bruno Haible  <bruno@clisp.org>
29957
29958         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
29959         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
29960
29961 2007-03-22  Bruno Haible  <bruno@clisp.org>
29962
29963         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
29964
29965 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
29966
29967         * MODULES.html.sh (File system functions): New module write-any-file.
29968         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
29969         * m4/write-any-file.m4: New files.
29970
29971 2007-03-23  Eric Blake  <ebb9@byu.net>
29972
29973         * gnulib-tool: Rearrange space-tab sequences, since some editors
29974         like to eat them.
29975
29976 2007-03-23  Eric Blake  <ebb9@byu.net>
29977
29978         * lib/version-etc.c (version_etc_va): Update license wording to
29979         be more concise.  Recommended by Richard Stallman.
29980
29981 2007-03-22  Bruno Haible  <bruno@clisp.org>
29982
29983         * lib/poll.c (MSG_PEEK): New fallback definition.
29984
29985 2007-03-22  Bruno Haible  <bruno@clisp.org>
29986
29987         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
29988         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
29989         (main): Update.
29990         Fixes a compilation error on BeOS.
29991
29992 2007-03-22  Bruno Haible  <bruno@clisp.org>
29993
29994         * modules/frexpl-tests: New file.
29995         * tests/test-frexpl.c: New file.
29996
29997         * modules/frexpl: New file.
29998         * m4/frexpl.m4: New file.
29999         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
30000         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
30001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
30002         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
30003         (Depends-on): Add frexpl. Remove isnanl-nolibm.
30004         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
30005
30006 2007-03-22  Bruno Haible  <bruno@clisp.org>
30007
30008         * lib/frexpl.c: Share code with lib/frexp.c.
30009         * modules/mathl (Files): Add lib/frexp.c.
30010         (Depends-on): Add isnanl-nolibm.
30011
30012 2007-03-22  Bruno Haible  <bruno@clisp.org>
30013
30014         * modules/printf-frexp (Files): Add m4/frexp.m4.
30015         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
30016         only if the found frexp function actually works.
30017
30018 2007-03-22  Bruno Haible  <bruno@clisp.org>
30019
30020         * lib/frexp.c: Remove older implementation that uses divisions.
30021
30022 2007-03-21  Bruno Haible  <bruno@clisp.org>
30023
30024         * modules/frexp-tests: New file.
30025         * tests/test-frexp.c: New file.
30026
30027         * modules/frexp: New file.
30028         * lib/frexp.c: New file.
30029         * m4/frexp.m4: New file.
30030         * lib/math_.h (frexp): New declaration.
30031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
30032         REPLACE_FREXP.
30033         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
30034
30035 2007-03-21  Bruno Haible  <bruno@clisp.org>
30036
30037         * modules/isnanl-tests: New file.
30038         * tests/test-isnanl.c: New file.
30039
30040         * modules/isnanl: New file.
30041         * lib/isnanl.h: New file.
30042         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
30043         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
30044         gl_FUNC_ISNANL_WORKS.
30045         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
30046         New macros.
30047
30048 2007-03-21  Bruno Haible  <bruno@clisp.org>
30049
30050         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
30051         lib/isnanl.h.
30052         (Include): Update.
30053         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
30054         * lib/vasnprintf.c: Update.
30055         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
30056         tests/test-isnanl.h, remove tests/test-isnanl.c.
30057         (Makefile.am): Update.
30058         * tests/test-isnanl-nolibm.c: New file.
30059         * tests/test-isnanl.h: New file.
30060         * tests/test-isnanl.c: Remove file.
30061
30062 2007-03-21  Jim Meyering  <jim@meyering.net>
30063
30064         When trying to open ".", treat ESTALE like EACCES.
30065         * lib/savewd.c (savewd_save): Resort to forking not just upon
30066         failure with EACCES, but also when errno is ESTALE.
30067
30068 2007-03-20  Bruno Haible  <bruno@clisp.org>
30069
30070         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
30071         Needed on AIX 5.1. Reported by Matthew Woehlke.
30072
30073 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30074
30075         Suggestions by Bruno Haible:
30076         * lib/acl-internal.h: Include "gettext.h" rather than rolling
30077         our own.
30078         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
30079         * modules/acl (Depends-on): Add gettext.
30080
30081 2007-03-19  Bruno Haible  <bruno@clisp.org>
30082
30083         * modules/iconvme: Remove file.
30084         * lib/iconvme.h: Remove file.
30085         * lib/iconvme.c: Remove file.
30086         * m4/iconvme.m4: Remove file.
30087
30088 2007-03-19  Bruno Haible  <bruno@clisp.org>
30089
30090         * doc/relocatable-maint.texi: Break long shell script line.
30091         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30092
30093 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30094
30095         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
30096         handle file_has_acl.
30097         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
30098         * lib/acl.c: Move header inclusions and related macro defns into
30099         lib/acl-internal.h.
30100         (S_ISLNK): Remove defn, since that's now done for us.
30101         (file_has_acl): Move to lib/file-has-acl.c.
30102         Call acl_trivial if available.  This is the crucial part of the fix.
30103         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
30104         shared within the library.  Rewrite a bit, partly to make it compatible
30105         with the GNU coding style.
30106         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
30107         Remove unnecessary double-quotes.
30108         Don't test for acl_to_text; the build will catch that.
30109         Replace acl_entries if it doesn't exist and it is needed.
30110         Check for -lsec and acl_trivial (as used on Solaris 10).
30111         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
30112         lib/file-has-acl.c.
30113         (Depends-on): Add sys_stat, for S_ISLNK.
30114
30115 2007-03-19  Ben Pfaff  <blp@gnu.org>
30116
30117         * doc/gnulib.texi: Fix typos.
30118         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30119
30120 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30121
30122         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
30123         If size is zero here, buf must be zero.
30124
30125 2007-03-19  Simon Josefsson  <simon@josefsson.org>
30126
30127         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
30128         <bruno@clisp.org>.
30129
30130 2007-03-18  Bruno Haible  <bruno@clisp.org>
30131
30132         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
30133         Suggested by Eric Blake.
30134
30135 2007-03-18  Ben Pfaff  <blp@gnu.org>
30136
30137         * doc/relocatable.texi: Recommend using as prefix a directory
30138         that does not exist and will never be created.  Based on
30139         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
30140         and others.
30141
30142 2007-03-17  Bruno Haible  <bruno@clisp.org>
30143
30144         * lib/fchownat.c: Include lchown.h.
30145
30146 2007-03-17  Bruno Haible  <bruno@clisp.org>
30147
30148         Fix endless loop when the given allocated size was > INT_MAX.
30149         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
30150         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
30151         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
30152         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
30153         * lib/sprintf.c (sprintf): Likewise.
30154
30155 2007-03-17  Bruno Haible  <bruno@clisp.org>
30156
30157         * tests/test-argp-2.sh (func_compare): Output a context diff.
30158
30159 2007-03-17  Bruno Haible  <bruno@clisp.org>
30160
30161         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
30162         locale's decimal-point character.
30163
30164 2007-03-17  Bruno Haible  <bruno@clisp.org>
30165
30166         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
30167         before comparing it. Needed because on some platforms (e.g. x86) a
30168         'long double' occupies less bytes than sizeof (long double).
30169
30170 2007-03-17  Bruno Haible  <bruno@clisp.org>
30171
30172         * tests/test-crc.c (main): Make printf statements 64-bit clean.
30173         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
30174         * tests/test-getaddrinfo.c (simple): Likewise.
30175         * tests/test-read-file.c (main): Likewise.
30176
30177 2007-03-17  Bruno Haible  <bruno@clisp.org>
30178
30179         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
30180
30181 2007-03-17  Bruno Haible  <bruno@clisp.org>
30182
30183         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
30184         unused variable.
30185
30186 2007-03-17  Bruno Haible  <bruno@clisp.org>
30187
30188         * tests/test-c-strcasecmp.c: Include c-strcase.h.
30189         * tests/test-c-strncasecmp.c: Likewise.
30190
30191 2007-03-17  Bruno Haible  <bruno@clisp.org>
30192
30193         * modules/stdlib (Depends-on): Add unistd.
30194         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
30195         Needed for MacOS X 10.3.
30196
30197 2007-03-17  Bruno Haible  <bruno@clisp.org>
30198
30199         * lib/unistr/u-strdup.h: Include <stdlib.h>.
30200
30201 2007-03-17  Bruno Haible  <bruno@clisp.org>
30202
30203         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
30204
30205 2007-03-17  Bruno Haible  <bruno@clisp.org>
30206
30207         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
30208         to reflect files copied from gnulib (with or without modifications).
30209         Suggested by Jim Meyering.
30210
30211 2007-03-17  Eric Blake  <ebb9@byu.net>
30212
30213         * NEWS: Document stdlib change from 2007-02-18.
30214
30215 2007-03-17  Jim Meyering  <jim@meyering.net>
30216
30217         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
30218         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
30219         someone uses a name containing shell meta-characters.
30220         Reported by Alfred M. Szmidt.
30221
30222         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
30223
30224 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
30225
30226         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
30227         and copy gettext configuration files only if configure.ac contains
30228         a use of AM_GNU_GETTEXT_VERSION.
30229
30230 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
30231
30232         * build-aux/bootstrap (gnulib_name): New variable.
30233         (gnulib_tool_options): Use it.
30234
30235 2007-03-13  Simon Josefsson  <simon@josefsson.org>
30236
30237         * tests/test-des.c: Use new namespace.
30238
30239 2007-03-15  Bruno Haible  <bruno@clisp.org>
30240
30241         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
30242         Reported by James Youngman <jay@gnu.org>.
30243
30244 2007-03-15  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
30247         declared prototype. Needed with cc on OSF/1 5.1.
30248
30249 2007-03-15  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
30252         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
30253         (struct gl_list_implementation): Add dispose_fn argument to the
30254         'create_empty', 'create' methods.
30255         (struct gl_list_impl_base): Add field 'dispose_fn'.
30256         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
30257         argument.
30258         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
30259         dispose_fn argument.
30260         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
30261         dispose_fn on the dropped values.
30262         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
30263         dispose_fn argument.
30264         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
30265         dropped values.
30266         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
30267         (gl_tree_remove_node): Call dispose_fn on the dropped value.
30268         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
30269         (gl_tree_remove_node): Call dispose_fn on the dropped value.
30270         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
30271         argument.
30272         (gl_tree_list_free): Call dispose_fn on the dropped values.
30273         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
30274         the dropped values.
30275         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30276         Add dispose_fn argument.
30277         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
30278         Call dispose_fn on the dropped values.
30279         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
30280         Add dispose_fn argument.
30281         (gl_sublist_create): Initialize the 'dispose_fn' field.
30282         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
30283         * tests/test-array_list.c (main): Update.
30284         * tests/test-carray_list.c (main): Update.
30285         * tests/test-avltree_list.c (main): Update.
30286         * tests/test-rbtree_list.c (main): Update.
30287         * tests/test-avltreehash_list.c (main): Update.
30288         * tests/test-rbtreehash_list.c (main): Update.
30289         * tests/test-linked_list.c (main): Update.
30290         * tests/test-linkedhash_list.c (main): Update.
30291         * tests/test-array_oset.c (main): Update.
30292
30293 2007-03-15  Bruno Haible  <bruno@clisp.org>
30294
30295         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
30296         (gl_oset_create_empty): Add dispose_fn argument.
30297         (struct gl_oset_implementation): Add dispose_fn argument to
30298         'create_empty' method.
30299         (struct gl_oset_impl_base): Add dispose_fn field.
30300         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
30301         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
30302         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
30303         values.
30304         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
30305         (gl_tree_oset_free): Call dispose_fn on the dropped values.
30306         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30307         dropped value.
30308         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30309         dropped value.
30310         * tests/test-array_oset.c (main): Update.
30311         * tests/test-avltree_oset.c (main): Update.
30312         * tests/test-rbtree_oset.c (main): Update.
30313         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
30314
30315 2007-03-13  Bruno Haible  <bruno@clisp.org>
30316
30317         * tests/test-stdbool.c (i): Update after last patch.
30318
30319 2007-03-12  Bruno Haible  <bruno@clisp.org>
30320
30321         * lib/quotearg.c: Include <wctype.h> early, before the definition of
30322         the iswprint macro. Needed on Solaris 2.5.1.
30323
30324 2007-03-12  Bruno Haible  <bruno@clisp.org>
30325
30326         * tests/test-printf-frexp.c (main): Declare x as volatile.
30327
30328 2007-03-12  Simon Josefsson  <simon@josefsson.org>
30329
30330         * doc/gnulib.texi (Build robot for gnulib): New section.
30331
30332 2007-03-12  Jim Meyering  <jim@meyering.net>
30333
30334         * build-aux/bootstrap: New file.
30335         * build-aux/bootstrap.conf: New file, from coreutils.
30336
30337 2007-03-11  Bruno Haible  <bruno@clisp.org>
30338
30339         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
30340
30341 2007-03-12  Simon Josefsson  <simon@josefsson.org>
30342
30343         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
30344         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
30345         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
30346
30347 2007-03-11  Bruno Haible  <bruno@clisp.org>
30348
30349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
30350         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
30351
30352 2007-03-11  Bruno Haible  <bruno@clisp.org>
30353
30354         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
30355         formula. Needed for SunPRO C 5.0.
30356
30357 2007-03-11  Bruno Haible  <bruno@clisp.org>
30358
30359         * modules/long-options (Depends-on): Add getopt.
30360
30361 2007-03-11  Bruno Haible  <bruno@clisp.org>
30362
30363         * modules/modechange (Depends-on): Add stdbool.
30364
30365 2007-03-11  Bruno Haible  <bruno@clisp.org>
30366
30367         * modules/i-ring (Depends-on): Add stdbool.
30368
30369 2007-03-11  Bruno Haible  <bruno@clisp.org>
30370
30371         * modules/gc-des (Depends-on): Add stdbool.
30372
30373 2007-03-11  Bruno Haible  <bruno@clisp.org>
30374
30375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
30376
30377 2007-03-11  Bruno Haible  <bruno@clisp.org>
30378
30379         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
30380
30381 2007-03-11  Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
30384
30385 2007-03-11  Bruno Haible  <bruno@clisp.org>
30386
30387         * lib/vasnprintf.c (sprintf): Undefine.
30388
30389 2007-03-11  Bruno Haible  <bruno@clisp.org>
30390
30391         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
30392         initializers in SunPRO C and Compaq C compilers.
30393
30394 2007-03-11  Bruno Haible  <bruno@clisp.org>
30395
30396         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
30397         decrementing code ANSI C compliant.
30398
30399 2007-03-11  Bruno Haible  <bruno@clisp.org>
30400
30401         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
30402         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
30403
30404 2007-03-11  Bruno Haible  <bruno@clisp.org>
30405
30406         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
30407         <stdbool.h> substitute doesn't pass.
30408
30409 2007-03-11  Bruno Haible  <bruno@clisp.org>
30410
30411         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
30412
30413 2007-03-11  Bruno Haible  <bruno@clisp.org>
30414
30415         * gnulib-tool (func_create_megatestdir): Create also an autobuild
30416         script, for submission to autobuild.josefsson.org.
30417
30418 2007-03-10  Bruno Haible  <bruno@clisp.org>
30419
30420         * modules/canonicalize-lgpl-tests: New file.
30421         * tests/test-canonicalize-lgpl.sh: New file.
30422         * tests/test-canonicalize-lgpl.c: New file.
30423
30424         * modules/c-strcase-tests: New file.
30425         * tests/test-c-strcase.sh: New file.
30426         * tests/test-c-strcasecmp.c: New file.
30427         * tests/test-c-strncasecmp.c: New file.
30428
30429         * modules/atexit-tests: New file.
30430         * tests/test-atexit.sh: New file.
30431         * tests/test-atexit.c: New file.
30432
30433 2007-03-10  Bruno Haible  <bruno@clisp.org>
30434
30435         * tests/test-binary-io.sh: Use temporary filenames that are not so
30436         likely to clash with those of other tests (in a parallel make).
30437         * tests/test-binary-io.c: Likewise.
30438
30439 2007-03-10  Bruno Haible  <bruno@clisp.org>
30440
30441         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
30442         fallback; use #error instead.
30443         Suggested by Simon Josefsson.
30444
30445 2007-03-10  Bruno Haible  <bruno@clisp.org>
30446
30447         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
30448         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
30449         first and the last.
30450
30451 2007-03-10  Bruno Haible  <bruno@clisp.org>
30452
30453         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
30454
30455 2007-03-10  Bruno Haible  <bruno@clisp.org>
30456
30457         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
30458         "make distcheck".
30459         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
30460         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
30461         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
30462
30463 2007-03-10  Bruno Haible  <bruno@clisp.org>
30464
30465         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
30466         variable.
30467         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
30468         variable.
30469
30470 2007-03-09  Eric Blake  <ebb9@byu.net>
30471         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
30472
30473         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
30474         types are not being provided by gnulib.
30475         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
30476         types are supported.
30477
30478 2007-03-10  Bruno Haible  <bruno@clisp.org>
30479
30480         * lib/stdio_.h (__attribute__): New macro.
30481         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
30482         vsprintf): Specify __attribute__ __format__ for GCC.
30483         Suggested by Eric Blake.
30484
30485 2007-03-09  Bruno Haible  <bruno@clisp.org>
30486
30487         * modules/printf-posix-tests: New file.
30488         * tests/test-printf-posix.sh: New file.
30489         * tests/test-printf-posix.c: New file.
30490
30491         * modules/printf-posix: New file.
30492         * lib/printf.c: New file.
30493         * m4/printf-posix-rpl.m4: New file.
30494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
30495         REPLACE_PRINTF.
30496         * lib/stdio_.h (printf): New declaration.
30497         (format, __format__, ____printf____, ____scanf____, ____strftime____,
30498         ____strfmon____): New macros.
30499         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
30500         REPLACE_PRINTF.
30501
30502 2007-03-09  Bruno Haible  <bruno@clisp.org>
30503
30504         * tests/test-vasnprintf-posix2.sh: New file.
30505         * tests/test-vasnprintf-posix2.c: New file.
30506         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
30507         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30508         (Makefile.am): Activate test-vasnprintf-posix2.sh.
30509
30510         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
30511         a locale dependent decimal point, rather than always '.'.
30512
30513 2007-03-09  Eric Blake  <ebb9@byu.net>
30514
30515         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
30516         spite of platforms like Tandem/NSK that define it to -1.
30517
30518 2007-03-08  Bruno Haible  <bruno@clisp.org>
30519
30520         * modules/vprintf-posix-tests: New file.
30521         * tests/test-vprintf-posix.sh: New file.
30522         * tests/test-vprintf-posix.c: New file.
30523         * tests/test-printf-posix.h: New file.
30524
30525         * modules/vprintf-posix: New file.
30526         * lib/vprintf.c: New file.
30527         * m4/vprintf-posix.m4: New file.
30528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
30529         REPLACE_VPRINTF.
30530         * lib/stdio_.h (vprintf): New declaration.
30531         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
30532         REPLACE_VPRINTF.
30533
30534 2007-03-08  Bruno Haible  <bruno@clisp.org>
30535
30536         * modules/fprintf-posix-tests: New file.
30537         * tests/test-fprintf-posix.sh: New file.
30538         * tests/test-fprintf-posix.c: New file.
30539
30540         * modules/fprintf-posix: New file.
30541         * lib/fprintf.c: New file.
30542         * m4/fprintf-posix.m4: New file.
30543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
30544         REPLACE_FPRINTF.
30545         * lib/stdio_.h (fprintf): New declaration.
30546         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
30547         REPLACE_FPRINTF.
30548
30549 2007-03-08  Bruno Haible  <bruno@clisp.org>
30550
30551         * modules/vfprintf-posix-tests: New file.
30552         * tests/test-vfprintf-posix.sh: New file.
30553         * tests/test-vfprintf-posix.c: New file.
30554         * tests/test-fprintf-posix.h: New file.
30555         * tests/test-fprintf-posix.out: New file.
30556
30557         * modules/vfprintf-posix: New file.
30558         * lib/vfprintf.c: New file.
30559         * m4/vfprintf-posix.m4: New file.
30560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
30561         REPLACE_VFPRINTF.
30562         * lib/stdio_.h (vfprintf): New declaration.
30563         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
30564         REPLACE_VFPRINTF.
30565
30566 2007-03-08  Bruno Haible  <bruno@clisp.org>
30567
30568         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
30569
30570 2007-03-08  Bruno Haible  <bruno@clisp.org>
30571
30572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
30573         instead of 'expr' invocations.
30574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30579         Suggested by Paul Eggert.
30580
30581 2007-03-08  Bruno Haible  <bruno@clisp.org>
30582
30583         * modules/fseterr-tests: New file.
30584         * tests/test-fseterr.c: New file.
30585
30586         * modules/fseterr: New file.
30587         * lib/fseterr.h: New file.
30588         * lib/fseterr.c: New file.
30589
30590 2007-03-08  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
30593         * lib/getopt_.h: Likewise.
30594         * lib/mbswidth.h: Likewise.
30595         * lib/setenv.h: Likewise.
30596         * lib/vasnprintf.h: Likewise.
30597         * lib/vasprintf.h: Likewise.
30598         * lib/verror.h: Likewise.
30599         * lib/xsetenv.h: Likewise.
30600         * lib/xvasprintf.h: Likewise.
30601
30602 2007-03-08  Jim Meyering  <jim@meyering.net>
30603
30604         * users.txt: Add parted.
30605
30606         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
30607
30608 2007-03-07  Bruno Haible  <bruno@clisp.org>
30609
30610         * m4/printf.m4: Make the shell script snippets copy&pastable.
30611
30612 2007-03-02  Bruno Haible  <bruno@clisp.org>
30613
30614         * lib/netinet_in_.h: New file.
30615         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
30616         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
30617         * modules/netinet_in (Files): Add lib/netinet_in_.h.
30618         (Depends-on): Add absolute-header.
30619         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
30620         into netinet/in.h.
30621
30622 2007-03-03  Bruno Haible  <bruno@clisp.org>
30623
30624         * lib/sys_select_.h: New file.
30625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
30626         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
30627         * modules/sys_select (Files): Add lib/sys_select_.h.
30628         (Depends-on): Add absolute-header.
30629         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
30630         into sys/select.h.
30631
30632 2007-03-02  Bruno Haible  <bruno@clisp.org>
30633
30634         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
30635         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
30636         values.
30637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
30638         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
30639         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
30640         * modules/sys_socket (Depends-on): Add absolute-header.
30641         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
30642         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
30643         (Include): Remove requirement of inclusion of <sys/types.h>.
30644
30645 2007-03-02  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/byteswap_.h (bswap_32): Fix formula.
30648
30649 2007-03-06  Bruno Haible  <bruno@clisp.org>
30650
30651         * modules/sprintf-posix-tests: New file.
30652         * tests/test-sprintf-posix.c: New file.
30653
30654         * modules/sprintf-posix: New file.
30655         * lib/sprintf.c: New file.
30656         * m4/sprintf-posix.m4: New file.
30657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
30658         REPLACE_SPRINTF.
30659         * lib/stdio_.h (sprintf): New declaration.
30660         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
30661         REPLACE_SPRINTF.
30662
30663 2007-03-06  Bruno Haible  <bruno@clisp.org>
30664
30665         * modules/vsprintf-posix-tests: New file.
30666         * tests/test-vsprintf-posix.c: New file.
30667         * tests/test-sprintf-posix.h: New file.
30668
30669         * modules/vsprintf-posix: New file.
30670         * lib/vsprintf.c: New file.
30671         * m4/vsprintf-posix.m4: New file.
30672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
30673         REPLACE_VSPRINTF.
30674         * lib/stdio_.h (vsprintf): New declaration.
30675         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
30676         REPLACE_VSPRINTF.
30677
30678 2007-03-06  Bruno Haible  <bruno@clisp.org>
30679
30680         * modules/vsnprintf (Depend-on): Remove minmax.
30681
30682 2007-03-06  Bruno Haible  <bruno@clisp.org>
30683
30684         * modules/snprintf-posix-tests: New file.
30685         * tests/test-snprintf-posix.c: New file.
30686
30687         * modules/snprintf-posix: New file.
30688         * m4/snprintf-posix.m4: New file.
30689         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
30690         gl_FUNC_SNPRINTF.
30691         (gl_FUNC_SNPRINTF): Invoke it.
30692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
30693         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
30694         is set.
30695         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
30696
30697 2007-03-06  Bruno Haible  <bruno@clisp.org>
30698
30699         * modules/vsnprintf-posix-tests: New file.
30700         * tests/test-vsnprintf-posix.c: New file.
30701         * tests/test-snprintf-posix.h: New file.
30702
30703         * modules/vsnprintf-posix: New file.
30704         * m4/vsnprintf-posix.m4: New file.
30705         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
30706         gl_FUNC_VSNPRINTF.
30707         (gl_FUNC_VSNPRINTF): Invoke it.
30708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
30709         * lib/stdio_.h (vsnprintf): Define as a replacement if
30710         REPLACE_VSNPRINTF is set.
30711         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
30712
30713 2007-03-06  Bruno Haible  <bruno@clisp.org>
30714
30715         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
30716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
30717
30718 2007-03-06  Bruno Haible  <bruno@clisp.org>
30719
30720         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
30721         (asinl): Declare also if HAVE_DECL_ASINL is set.
30722         (atanl): Declare also if HAVE_DECL_ATANL is set.
30723         (ceill): Declare also if HAVE_DECL_CEILL is set.
30724         (cosl): Declare also if HAVE_DECL_COSL is set.
30725         (expl): Declare also if HAVE_DECL_EXPL is set.
30726         (floorl): Declare also if HAVE_DECL_FLOORL is set.
30727         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
30728         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
30729         (logl): Declare also if HAVE_DECL_LOGL is set.
30730         (sinl): Declare also if HAVE_DECL_SINL is set.
30731         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
30732         (tanl): Declare also if HAVE_DECL_TANL is set.
30733         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
30734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
30735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
30736         declaration of frexpl, ldexpl.
30737         * modules/printf-frexpl (Depends-on): Add math.
30738         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
30739
30740 2007-03-05  Bruno Haible  <bruno@clisp.org>
30741
30742         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
30743         frexpl and ldexpl are declared.
30744         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
30745
30746 2007-03-05  Bruno Haible  <bruno@clisp.org>
30747
30748         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
30749         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
30750
30751 2007-03-05  Bruno Haible  <bruno@clisp.org>
30752
30753         * lib/stdio_.h: Include <stddef.h>.
30754
30755 2007-03-05  Bruno Haible  <bruno@clisp.org>
30756
30757         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
30758
30759 2007-03-05  Bruno Haible  <bruno@clisp.org>
30760
30761         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
30762         NetBSD 4, from Ralf Wildenhues.
30763
30764 2007-03-04  Bruno Haible  <bruno@clisp.org>
30765
30766         * lib/vasprintf.h: Update #if logic for the case when the functions
30767         exist but are overridden.
30768
30769 2007-03-04  Bruno Haible  <bruno@clisp.org>
30770
30771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
30772         implementations: glibc-2.4 and MacOS X 10.3.
30773         * tests/test-vasnprintf-posix.c (test_function): Test also the case
30774         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
30775         * tests/test-vasprintf-posix.c (test_function): Likewise.
30776
30777 2007-03-04  Bruno Haible  <bruno@clisp.org>
30778
30779         * modules/vasprintf-posix-tests: New file.
30780         * tests/test-vasprintf-posix.c: New file.
30781
30782         * modules/vasprintf-posix: New file.
30783         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
30784         defined.
30785         * m4/vasprintf-posix.m4: New file.
30786         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
30787         gl_FUNC_VASPRINTF.
30788         (gl_FUNC_VASPRINTF): Invoke it.
30789         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
30790         here.
30791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
30792
30793 2007-03-04  Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
30796         REPLACE_GETTIMEOFDAY.
30797         * modules/sys_time (Makefile.am): Likewise.
30798         * m4/sys_time_h.m4: Likewise.
30799         * m4/gettimeofday.m4: Likewise.
30800
30801 2007-03-04  Bruno Haible  <bruno@clisp.org>
30802
30803         * modules/vasnprintf-posix-tests: New file.
30804         * tests/test-vasnprintf-posix.c: New file.
30805
30806         * modules/vasnprintf-posix: New file.
30807         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
30808         printf-frexpl.h.
30809         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
30810         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
30811         REPLACE_VASNPRINTF is defined.
30812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
30813         gl_FUNC_VASNPRINTF.
30814         (gl_FUNC_VASNPRINTF): Invoke it.
30815         * m4/vasnprintf-posix.m4: New file.
30816         * m4/printf.m4: New file.
30817
30818 2007-03-04  Bruno Haible  <bruno@clisp.org>
30819
30820         Compile progreloc.c only if --enable-relocatable is specified.
30821         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
30822         if --enable-relocatable was specified.
30823         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
30824         lib_SOURCES.
30825
30826 2007-03-04  Jim Meyering  <jim@meyering.net>
30827
30828         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
30829         Use it consistently, rather than enumerating errno constants.
30830
30831 2007-03-04  Bruno Haible  <bruno@clisp.org>
30832
30833         * modules/xvasprintf-tests: New file.
30834         * tests/test-xvasprintf.c: New file.
30835
30836         * modules/vasprintf-tests: New file.
30837         * tests/test-vasprintf.c: New file.
30838
30839         * modules/vasnprintf-tests: New file.
30840         * tests/test-vasnprintf.c: New file.
30841
30842         * modules/vsnprintf-tests: New file.
30843         * tests/test-vsnprintf.c: New file.
30844
30845         * modules/snprintf-tests: New file.
30846         * tests/test-snprintf.c: New file.
30847
30848 2007-03-04  Bruno Haible  <bruno@clisp.org>
30849
30850         Compile relocatable.c only if --enable-relocatable is specified.
30851         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
30852         gl_RELOCATABLE_LIBRARY.
30853         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
30854         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
30855         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
30856         gl_RELOCATABLE_LIBRARY.
30857         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
30858         (Makefile.am): Remove lib_SOURCES.
30859         * modules/relocatable-lib-lgpl (configure.ac): Invoke
30860         gl_RELOCATABLE_LIBRARY.
30861         (Makefile.am): Remove lib_SOURCES.
30862         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
30863         always.
30864         * modules/relocatable-prog-wrapper (configure.ac): Invoke
30865         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
30866
30867 2007-03-04  Bruno Haible  <bruno@clisp.org>
30868
30869         * modules/argmatch-tests: New file.
30870         * tests/test-argmatch.c: New file.
30871
30872         * tests/test-allocsa.c (main): Halve the number of loop runs.
30873
30874         * modules/alloca-opt-tests: New file.
30875         * tests/test-alloca-opt.c: New file.
30876
30877 2007-03-04  Jim Meyering  <jim@meyering.net>
30878
30879         Work around difference between Linux ACLs and Solaris 10 ZFS.
30880         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
30881         for EINVAL.
30882
30883 2007-03-03  Bruno Haible  <bruno@clisp.org>
30884
30885         * modules/relocatable-prog (Depends-on): Add back progreloc's
30886         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
30887
30888 2007-03-03  Bruno Haible  <bruno@clisp.org>
30889
30890         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
30891         * modules/relocatable-lib: New file.
30892
30893 2007-03-03  Bruno Haible  <bruno@clisp.org>
30894
30895         * modules/relocatable-prog: Renamed from modules/relocatable.
30896         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
30897
30898 2007-03-03  Bruno Haible  <bruno@clisp.org>
30899
30900         * modules/relocatable-script (Files): Add doc/relocatable.texi,
30901         m4/relocatable-lib.m4.
30902         (Depends-on): Remove 'relocatable'.
30903         (configure.ac): Add gl_RELOCATABLE_NOP.
30904
30905 2007-03-03  Bruno Haible  <bruno@clisp.org>
30906
30907         * modules/relocatable-prog-wrapper: New file.
30908         * modules/relocatable (Depends-on): Add it. Remove all other
30909         dependencies except progname.
30910         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
30911
30912         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
30913         (gl_FUNC_STRERROR): Nop.
30914         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
30915
30916         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
30917         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
30918
30919         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
30920         (gl_FUNC_READLINK): Update.
30921
30922         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
30923
30924 2007-03-03  Bruno Haible  <bruno@clisp.org>
30925
30926         * lib/xreadlink.c: Include <unistd.h> unconditionally.
30927         * modules/xreadlink (Depends-on): Add unistd.
30928         * modules/xreadlink-with-size (Depends-on): Likewise.
30929
30930 2007-03-03  Bruno Haible  <bruno@clisp.org>
30931
30932         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
30933         extracted from gt_FUNC_SETENV.
30934         (gt_FUNC_SETENV): Remove macro.
30935         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
30936         remove gt_FUNC_SETENV.
30937
30938 2007-03-03  Bruno Haible  <bruno@clisp.org>
30939
30940         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
30941         ENABLE_RELOCATABLE here.
30942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
30943
30944 2007-03-03  Bruno Haible  <bruno@clisp.org>
30945
30946         * modules/rbtreehash-list-tests (Depends-on): Add progname.
30947         * tests/test-rbtreehash_list.c: Include progname.h.
30948         (main): Call set_program_name.
30949
30950         * modules/rbtree-oset-tests (Depends-on): Add progname.
30951         * tests/test-rbtree_oset.c: Include progname.h.
30952         (main): Call set_program_name.
30953
30954         * modules/rbtree-list-tests (Depends-on): Add progname.
30955         * tests/test-rbtree_list.c: Include progname.h.
30956         (main): Call set_program_name.
30957
30958         * modules/linked-list-tests (Depends-on): Add progname.
30959         * tests/test-linked_list.c: Include progname.h.
30960         (main): Call set_program_name.
30961
30962 2007-03-03  Bruno Haible  <bruno@clisp.org>
30963
30964         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
30965         All uses of __restrict changed to _Restrict_.
30966         * lib/glob_.h (__restrict): Remove macro.
30967
30968 2007-03-02  Bruno Haible  <bruno@clisp.org>
30969
30970         * modules/gettext (configure.ac): Require gettext infrastructure
30971         from version 0.16.1.
30972
30973 2007-03-02  Bruno Haible  <bruno@clisp.org>
30974
30975         * modules/linkedhash-list-tests (Depends-on): Add progname.
30976         * tests/test-linkedhash_list.c: Include progname.h.
30977         (main): Call set_program_name.
30978
30979         * modules/carray-list-tests (Depends-on): Add progname.
30980         * tests/test-carray_list.c: Include progname.h.
30981         (main): Call set_program_name.
30982
30983         * modules/avltreehash-list-tests (Depends-on): Add progname.
30984         * tests/test-avltreehash_list.c: Include progname.h.
30985         (main): Call set_program_name.
30986
30987         * modules/avltree-oset-tests (Depends-on): Add progname.
30988         * tests/test-avltree_oset.c: Include progname.h.
30989         (main): Call set_program_name.
30990
30991         * modules/avltree-list-tests (Depends-on): Add progname.
30992         * tests/test-avltree_list.c: Include progname.h.
30993         (main): Call set_program_name.
30994
30995         * modules/array-oset-tests (Depends-on): Add progname.
30996         * tests/test-array_oset.c: Include progname.h.
30997         (main): Call set_program_name.
30998
30999         * modules/array-list-tests (Depends-on): Add progname.
31000         * tests/test-array_list.c: Include progname.h.
31001         (main): Call set_program_name.
31002
31003         * modules/argp-tests (Depends-on): Add progname.
31004         * tests/test-argp.c: Include argp.h first. Include progname.h.
31005         (main): Call set_program_name.
31006
31007 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
31008
31009         * doc/gnulib-tool.texi (Initial import): Reword description of
31010         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
31011         limited effect even if defined after the first system include.
31012
31013 2007-03-01  Bruno Haible  <bruno@clisp.org>
31014
31015         * build-aux/config.libpath: Update to libtool-1.5.22.
31016         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31017
31018 2007-03-01  Bruno Haible  <bruno@clisp.org>
31019
31020         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
31021         foo_CFLAGS.
31022         Reported by Ralf Wildenhues.
31023
31024 2007-03-01  Bruno Haible  <bruno@clisp.org>
31025
31026         * build-aux/install-reloc: Remove object files left over by some
31027         compilers.
31028         Reported by Ralf Wildenhues.
31029
31030 2007-03-01  Bruno Haible  <bruno@clisp.org>
31031
31032         * build-aux/install-reloc: Break long lines.
31033
31034 2007-03-01  Bruno Haible  <bruno@clisp.org>
31035
31036         * doc/relocatable.texi: Document that it may not work on OpenBSD.
31037         Reported by Ralf Wildenhues.
31038
31039 2007-03-01  Bruno Haible  <bruno@clisp.org>
31040
31041         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
31042         include ordering constraints.
31043
31044 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
31045
31046         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
31047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
31048         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
31049         as another example.
31050         * lib/time_.h: Fix misspelling.
31051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
31052         Require gl_HEADER_TIME_H_DEFAULTS.
31053         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
31054         * m4/time_r.m4 (gl_TIME_R): Likewise.
31055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
31056
31057 2007-03-01  Bruno Haible  <bruno@clisp.org>
31058
31059         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
31060         * m4/utimens.m4 (gl_UTIMENS): Likewise.
31061
31062 2007-03-01  Jim Meyering  <jim@meyering.net>
31063
31064         * modules/xreadlink (Maintainer): Add my name.
31065         * modules/xreadlink-with-size (Depends-on): Alphabetize.
31066
31067 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
31068             Bruno Haible  <bruno@clisp.org>
31069
31070         * build-aux/install-reloc: Compile also c-ctype.c.
31071         * build-aux/relocatable.sh.in: New file.
31072         * doc/relocatable.texi: New file.
31073         * doc/relocatable-maint.texi: New file.
31074         * doc/gnulib.texi: Include relocatable-maint.texi.
31075         * lib/progreloc.c: Include unistd.h unconditionally.
31076         * lib/relocwrapper.c: Include unistd.h unconditionally.
31077         Include c-ctype.h.
31078         (add_dotbin): Use c_tolower.
31079         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
31080         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
31081         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
31082         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
31083         to m4/relocatable-lib.m4.
31084         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
31085         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
31086         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
31087         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
31088         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
31089         * modules/relocatable: New file.
31090         * modules/relocatable-lib: New file.
31091         * modules/relocatable-script: New file.
31092
31093 2007-02-28  Bruno Haible  <bruno@clisp.org>
31094
31095         Import --enable-relocatable infrastructure.
31096         * build-aux/config.libpath: New file, from GNU gettext.
31097         * build-aux/install-reloc: New file, from GNU gettext.
31098         * build-aux/reloc-ldflags: New file, from GNU gettext.
31099         * lib/relocatable.h: New file, from GNU gettext.
31100         * lib/relocatable.c: New file, from GNU gettext.
31101         * lib/relocwrapper.c: New file, from GNU gettext.
31102         * m4/relocatable.m4: New file, from GNU gettext.
31103
31104 2007-02-28  Bruno Haible  <bruno@clisp.org>
31105
31106         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
31107
31108         * modules/xreadlink: New file, from GNU gettext with modifications.
31109         * lib/xreadlink.c: New file, from GNU gettext.
31110         * lib/xreadlink.h: Add comments.
31111         (xreadlink): New declaration.
31112
31113         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
31114         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
31115         lib/xreadlink-with-size.c.
31116         (configure.ac): Remove gl_XREADLINK invocation.
31117         (Makefile.am): Augment lib_SOURCES.
31118         * m4/xreadlink.m4: Remove file.
31119         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
31120         (xreadlink_with_size): Renamed from xreadink.
31121         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
31122         * modules/canonicalize (Depends-on): Replace xreadlink with
31123         xreadlink-with-size.
31124         * lib/canonicalize.c (canonicalize_filename_mode): Update.
31125
31126 2007-02-25  Jim Meyering  <jim@meyering.net>
31127
31128         * build-aux/announce-gen: When complaining about excess arguments,
31129         list them.
31130
31131 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         * README: Document signed integer overflow situation more
31134         accurately.
31135
31136 2007-02-25  Bruno Haible  <bruno@clisp.org>
31137
31138         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
31139         'a' or 'A' conversion.
31140
31141 2007-02-25  Bruno Haible  <bruno@clisp.org>
31142
31143         * modules/filename: Renamed from modules/pathname.
31144         (Files): Replace lib/pathname.h with lib/filename.h. Replace
31145         lib/concatpath.c with lib/concat-filename.c.
31146         (Makefile.am): Update.
31147         (Include): Replace pathname.h with filename.h.
31148         * lib/filename.h: Renamed from lib/pathname.h.
31149         (concatenated_filename): Renamed from concatenated_pathname.
31150         * lib/concat-filename.c: Renamed from lib/concatpath.c.
31151         (concatenated_filename): Renamed from concatenated_pathname.
31152         * lib/findprog.c: Include filename.h instead of pathname.h.
31153         (find_in_path): Update.
31154         * lib/javacomp.c: Include filename.h instead of pathname.h.
31155         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31156         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31157         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31158         is_oldgcj_14_13_usable, is_javac_usable): Update.
31159         * lib/javaexec.c: Include filename.h instead of pathname.h.
31160         (execute_java_class): Update.
31161         * modules/findprog: Update.
31162         * modules/javacomp: Update.
31163         * modules/javaexec: Update.
31164         * MODULES.html.sh (File system functions): Add 'filename', remove
31165         'pathname'.
31166
31167 2007-02-25  Bruno Haible  <bruno@clisp.org>
31168
31169         * modules/printf-frexpl-tests: New file.
31170         * tests/test-printf-frexpl.c: New file.
31171
31172         * modules/printf-frexpl: New file.
31173         * lib/printf-frexpl.h: New file.
31174         * lib/printf-frexpl.c: New file.
31175         * m4/printf-frexpl.m4: New file.
31176
31177 2007-02-25  Bruno Haible  <bruno@clisp.org>
31178
31179         * modules/printf-frexp-tests: New file.
31180         * tests/test-printf-frexp.c: New file.
31181
31182         * modules/printf-frexp: New file.
31183         * lib/printf-frexp.h: New file.
31184         * lib/printf-frexp.c: New file.
31185         * m4/printf-frexp.m4: New file.
31186
31187 2007-02-25  Bruno Haible  <bruno@clisp.org>
31188
31189         Assume automake >= 1.10 for the tests.
31190         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
31191         * modules/arctwo-tests: Likewise.
31192         * modules/argp-tests: Likewise.
31193         * modules/avltree-list-tests: Likewise.
31194         * modules/avltree-oset-tests: Likewise.
31195         * modules/avltreehash-list-tests: Likewise.
31196         * modules/carray-list-tests: Likewise.
31197         * modules/crc-tests: Likewise.
31198         * modules/des-tests: Likewise.
31199         * modules/gc-arcfour-tests: Likewise.
31200         * modules/gc-arctwo-tests: Likewise.
31201         * modules/gc-des-tests: Likewise.
31202         * modules/gc-hmac-md5-tests: Likewise.
31203         * modules/gc-hmac-sha1-tests: Likewise.
31204         * modules/gc-md2-tests: Likewise.
31205         * modules/gc-md4-tests: Likewise.
31206         * modules/gc-md5-tests: Likewise.
31207         * modules/gc-pbkdf2-sha1-tests: Likewise.
31208         * modules/gc-rijndael-tests: Likewise.
31209         * modules/gc-sha1-tests: Likewise.
31210         * modules/gc-tests: Likewise.
31211         * modules/getaddrinfo-tests: Likewise.
31212         * modules/hmac-md5-tests: Likewise.
31213         * modules/hmac-sha1-tests: Likewise.
31214         * modules/linked-list-tests: Likewise.
31215         * modules/linkedhash-list-tests: Likewise.
31216         * modules/lock-tests: Likewise.
31217         * modules/md2-tests: Likewise.
31218         * modules/md4-tests: Likewise.
31219         * modules/md5-tests: Likewise.
31220         * modules/rbtree-list-tests: Likewise.
31221         * modules/rbtree-oset-tests: Likewise.
31222         * modules/rbtreehash-list-tests: Likewise.
31223         * modules/read-file-tests: Likewise.
31224         * modules/rijndael-tests: Likewise.
31225         * modules/stdint-tests: Likewise.
31226         * modules/tls-tests: Likewise.
31227
31228 2007-02-24  Bruno Haible  <bruno@clisp.org>
31229
31230         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
31231         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
31232         function; instead check whether isnan with a double argument links.
31233         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
31234         function; instead check whether isnan with a 'long double' argument
31235         links.
31236         Reported by Eric Blake <ebb9@byu.net>.
31237
31238 2007-02-24  Bruno Haible  <bruno@clisp.org>
31239
31240         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
31241         defined.
31242         * lib/isnanl.c: Remove all code. Just include isnan.c.
31243         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
31244
31245 2007-02-25  Jim Meyering  <jim@meyering.net>
31246
31247         Avoid conflicting types for 'unsetenv' on FreeBSD.
31248         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
31249         conflicting with FreeBSD's (5.0 and 6.1) function declaration
31250         in stdlib.h.
31251
31252 2007-02-24  Bruno Haible  <bruno@clisp.org>
31253
31254         * modules/isnanl-nolibm-tests: New file.
31255         * tests/test-isnanl.c: New file.
31256
31257         * modules/isnanl-nolibm: New file.
31258         * lib/isnanl.h: New file.
31259         * lib/isnanl.c: New file.
31260         * m4/isnanl.m4: New file.
31261
31262 2007-02-24  Bruno Haible  <bruno@clisp.org>
31263
31264         * modules/isnan-nolibm-tests: New file.
31265         * tests/test-isnan.c: New file.
31266
31267         * modules/isnan-nolibm: New file.
31268         * lib/isnan.h: New file.
31269         * lib/isnan.c: New file.
31270         * m4/isnan.m4: New file.
31271
31272 2007-02-24  Bruno Haible  <bruno@clisp.org>
31273
31274         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
31275         assume that an exponent fits in 20 bits.
31276
31277 2007-02-24  Jim Meyering  <jim@meyering.net>
31278
31279         * m4/regex.m4: Update the description of the configure-time option,
31280         --without-included-regex, to state accurately what the defaults are,
31281         and perhaps to give people an idea why using this option is risky.
31282
31283 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31284
31285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
31286         loops on small arguments.  This attempts to avoid the problem
31287         Bruno Haible reported for AIX 4.3.2 in
31288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
31289
31290 2007-02-23  Bruno Haible  <bruno@clisp.org>
31291
31292         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
31293         Needed for help2man.
31294
31295 2007-02-23  Karl Berry  <karl@gnu.org>
31296
31297         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
31298         exists, foo.h should be cvs-ignored, not committed.
31299
31300 2007-02-23  Eric Blake  <ebb9@byu.net>
31301
31302         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
31303         * lib/stat-time.h (includes): Likewise.
31304         * lib/utimecmp.c (includes): Likewise.
31305         * lib/utimens.h (includes): Likewise.
31306         * lib/getdate.y (includes): Also include "timespec.h" for use
31307         internal to the module.
31308         * modules/utimens (Depends-on): Revert yesterday's patch.
31309         * modules/nanosleep (Depends-on): Add missing dependency.
31310
31311 2007-02-22  Bruno Haible  <bruno@clisp.org>
31312
31313         * lib/glob.c: Don't include getlogin_r.h.
31314
31315 2007-02-22  Jim Meyering  <jim@meyering.net>
31316
31317         * modules/utimens (Depends-on): Add timespec, required for
31318         utimens.h's inclusion of timespec.h.
31319
31320 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31321
31322         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
31323         long unreadable paths in GNU/Linux.  Problem reported by Andreas
31324         Schwab in
31325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
31326         I'll try to think of a better way to fix the Solaris problem.
31327
31328         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
31329         like glibc; on Solaris 10, it fails with errno == EINVAL.
31330         POSIX says the behavior is unspecified if the first argument is NULL,
31331         so play it safe and never pass NULL to the system getcwd.
31332
31333 2007-02-21  Jim Meyering  <jim@meyering.net>
31334
31335         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
31336         of gettimeofday.  It would conflict with the one now always
31337         provided via sys_time_.h.  Reported by Matthew Woehlke, as
31338         an IRIX 6.5 build failure.
31339
31340 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31341
31342         Minor fixups to port to Solaris 10 with Sun C 5.8.
31343         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
31344         * modules/getcwd (Depends-on): Add dirfd.
31345         * lib/putenv.c (putenv): #undef it.
31346         (rpl_putenv): New decl.
31347         (malloc, free): Include <stdlib.h> rather than prototyping separately.
31348
31349 2007-02-20  Bruno Haible  <bruno@clisp.org>
31350
31351         * modules/stdio-tests: New file.
31352         * tests/test-stdio.c: New file.
31353
31354         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
31355         (Depends-on): Add stdio.
31356         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31357         (Include): Use <stdio.h> instead of vsnprintf.h.
31358         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31359         HAVE_DECL_VSNPRINTF.
31360         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
31361
31362         * modules/snprintf (Files): Remove lib/snprintf.h.
31363         (Depends-on): Add stdio.
31364         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31365         (Include): Use <stdio.h> instead of snprintf.h.
31366         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31367         HAVE_DECL_SNPRINTF.
31368         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
31369         * lib/getaddrinfo.c: Likewise.
31370
31371         * modules/stdio: New file.
31372         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
31373         * lib/snprintf.h: Remove file.
31374         * lib/vsnprintf.h: Remove file.
31375         * lib/.cppi-disable: Remove snprintf.h.
31376         * m4/stdio_h.m4: New file.
31377         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
31378
31379 2007-02-20  Jim Meyering  <jim@meyering.net>
31380
31381         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
31382         used by e.g., mingw.  From Bruno Haible.
31383
31384 2007-02-19  Bruno Haible  <bruno@clisp.org>
31385
31386         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
31387         warnings.
31388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31389
31390 2007-02-19  Bruno Haible  <bruno@clisp.org>
31391
31392         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
31393         from mingw users.
31394
31395 2007-02-19  Bruno Haible  <bruno@clisp.org>
31396
31397         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
31398         warnings.
31399         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
31400
31401 2007-02-19  Jim Meyering  <jim@meyering.net>
31402
31403         Don't use FD after a successful "fdopendir (fd)".
31404         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
31405         Reset it by calling dirfd on the just-obtained DIR*.
31406
31407         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
31408         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
31409
31410 2007-02-18  Bruno Haible  <bruno@clisp.org>
31411
31412         * lib/readlink.c: Include <unistd.h>.
31413         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
31414         HAVE_READLINK.
31415         * modules/readlink (Depends-on): Add unistd.
31416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31417         (Include): Add <unistd.h>.
31418
31419         * lib/getlogin_r.h: Remove file.
31420         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
31421         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
31422         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
31423         HAVE_DECL_GETLOGIN_R.
31424         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
31425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31426         (Include): Use <unistd.h> instead of getlogin_r.h.
31427
31428         * lib/getcwd.h: Remove file.
31429         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
31430         * lib/xgetcwd.c: Likewise.
31431         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
31432         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
31433         * modules/getcwd (Files): Remove lib/getcwd.h.
31434         (Depends-on): Add unistd.
31435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31436         (Include): Use <unistd.h> instad of getcwd.h.
31437
31438         * lib/ftruncate.c: Include <unistd.h> first.
31439         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
31440         Set HAVE_FTRUNCATE.
31441         * modules/ftruncate (Depends-on): Add unistd.
31442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31443
31444         * lib/fchdir.c: Include <unistd.h> first.
31445         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
31446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
31447         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
31448         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31449         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
31450
31451         * lib/dup2.c: Include <unistd.h> first.
31452         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
31453         HAVE_DUP2.
31454         * modules/dup2 (Depends-on): Add unistd.
31455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31456
31457         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
31458         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
31459         REPLACE_CHOWN. Don't define chown as a macro here.
31460         * modules/chown (Depends-on): Add unistd.
31461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31462
31463         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
31464         Add definition for GL_LINK_WARNING.
31465         (chown, dup2): New declarations.
31466         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
31467         link warning.
31468         (ftruncate): New declaration.
31469         (getcwd): New declaration, taken from old getcwd.h.
31470         (getlogin_r): New declaration, taken from old getlogin_r.h.
31471         (readlink): New declaration.
31472         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
31473         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
31474         (gl_PREREQ_UNISTD): Remove macro.
31475         (gl_UNISTD_MODULE_INDICATOR): New macro.
31476         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
31477         many new variables. Don't set UNISTD_H.
31478         * modules/unistd (Description): Change.
31479         (Depends-on): Add link-warning.
31480         (configure.ac): Update.
31481         (Makefile.am): Create unistd.h always. Substitute many new variables
31482         into it.
31483
31484 2007-02-18  Bruno Haible  <bruno@clisp.org>
31485
31486         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
31487         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
31488         HAVE_GETSUBOPT.
31489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
31490         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
31491         * lib/getsubopt.h: Remove file.
31492         * modules/getsubopt (Files): Remove lib/getsubopt.h.
31493         (Depends-on): Add stdlib.
31494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31495         (Includes): Use <stdlib.h> instead of getsubopt.h.
31496         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
31497         Set HAVE_GETSUBOPT.
31498         * lib/getsubopt.c: Don't include getsubopt.h.
31499
31500 2007-02-18  Bruno Haible  <bruno@clisp.org>
31501
31502         * modules/fchdir (Depends-on): Add dup2.
31503
31504 2007-02-18  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/stdlib_.h: Handle glibc's special invocation convention
31507         specially.
31508
31509 2007-02-18  Bruno Haible  <bruno@clisp.org>
31510
31511         * modules/stdlib-tests: New file.
31512         * tests/test-stdlib.c: New file.
31513
31514         * modules/mkstemp (Files): Remove lib/mkstemp.h.
31515         (Depends-on): Add stdlib.
31516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31517         (Includes): Use <stdlib.h> instead of mkstemp.h.
31518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
31519         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
31520         * lib/mkstemp.c: Don't include mkstemp.h.
31521         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
31522         * lib/stdlib--.h: Don't include mkstemp.h.
31523
31524         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
31525         (Depends-on): Add stdlib.
31526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31527         (Includes): Use <stdlib.h> instead of mkdtemp.h.
31528         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
31529         HAVE_MKDTEMP.
31530         * lib/mkdtemp.c: Don't include mkdtemp.h.
31531         * lib/clean-temp.c: Don't include mkdtemp.h.
31532
31533         * modules/exit (Files): Remove lib/exit.h.
31534         (Depends-on): Add stdlib.
31535         (Makefile.am): Remove lib_SOURCES.
31536         (Include): Use <stdlib.h> instead of exit.h.
31537         * lib/argmatch.c: Don't include exit.h.
31538         * lib/execute.c: Likewise.
31539         * lib/pagealign_alloc.c: Likewise.
31540         * lib/pipe.c: Likewise.
31541         * lib/wait-process.c: Likewise.
31542         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
31543         * lib/exitfail.c: Likewise.
31544         * lib/savewd.c: Likewise.
31545         * lib/xsetenv.c: Likewise.
31546
31547         * modules/stdlib: New file.
31548         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
31549         and extra comments about mkstemp().
31550         * lib/exit.h: Remove file.
31551         * lib/mkdtemp.h: Remove file.
31552         * lib/mkstemp.h: Remove file.
31553         * m4/stdlib_h.m4: New file.
31554         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
31555
31556 2007-02-18  Bruno Haible  <bruno@clisp.org>
31557
31558         * modules/math-tests: New file.
31559         * tests/test-math.c: New file.
31560
31561         * modules/math: New file.
31562         * modules/mathl (Files): Remove lib/mathl.h.
31563         (Depends-on): Add math.
31564         (Makefile.am): Don't mention mathl.h.
31565         (Include): Use <math.h> instead of mathl.h.
31566         * lib/math_.h: New file.
31567         * lib/mathl.h: Remove file.
31568         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
31569         mathl.h.
31570         * lib/asinl.c: Likewise.
31571         * lib/atanl.c: Likewise.
31572         * lib/ceill.c: Likewise.
31573         * lib/cosl.c: Likewise.
31574         * lib/expl.c: Likewise.
31575         * lib/floorl.c: Likewise.
31576         * lib/frexpl.c: Likewise.
31577         * lib/ldexpl.c: Likewise.
31578         * lib/logl.c: Likewise.
31579         * lib/sincosl.c: Likewise.
31580         * lib/sinl.c: Likewise.
31581         * lib/sqrtl.c: Likewise.
31582         * lib/tanl.c: Likewise.
31583         * lib/trigl.c: Likewise.
31584         * m4/math_h.m4: New file.
31585         * MODULES.html.sh (Mathematics): Add math.
31586
31587 2007-02-17  Bruno Haible  <bruno@clisp.org>
31588
31589         * modules/wctype-tests: New file.
31590         * tests/test-wctype.c: New file.
31591
31592         * modules/wchar-tests: New file.
31593         * tests/test-wchar.c: New file.
31594
31595         * modules/unistd-tests: New file.
31596         * tests/test-unistd.c: New file.
31597
31598         * modules/time-tests: New file.
31599         * tests/test-time.c: New file.
31600
31601         * modules/sysexits-tests: New file.
31602         * tests/test-sysexits.c: New file.
31603
31604         * modules/sys_time-tests: New file.
31605         * tests/test-sys_time.c: New file.
31606
31607         * modules/sys_stat-tests: New file.
31608         * tests/test-sys_stat.c: New file.
31609
31610         * modules/sys_socket-tests: New file.
31611         * tests/test-sys_socket.c: New file.
31612
31613         * modules/sys_select-tests: New file.
31614         * tests/test-sys_select.c: New file.
31615
31616         * modules/string-tests: New file.
31617         * tests/test-string.c: New file.
31618
31619         * modules/stdbool-tests: New file.
31620         * tests/test-stdbool.c: New file.
31621
31622         * modules/netinet_in-tests: New file.
31623         * tests/test-netinet_in.c: New file.
31624
31625         * modules/inttypes-tests: New file.
31626         * tests/test-inttypes.c: New file.
31627
31628         * modules/fcntl-tests: New file.
31629         * tests/test-fcntl.c: New file.
31630
31631         * modules/byteswap-tests: New file.
31632         * tests/test-byteswap.c: New file.
31633
31634         * modules/arpa_inet-tests: New file.
31635         * tests/test-arpa_inet.c: New file.
31636
31637 2007-02-17  Bruno Haible  <bruno@clisp.org>
31638
31639         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
31640         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
31641         if the corresponding module is not enabled. Emit link warnings if
31642         the function is used nevertheless.
31643         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
31644         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
31645         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
31646         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
31647         * modules/inttypes (Depends-on): Add link-warning.
31648         (Makefile.am): Copy the contents of build-aux/link-warning.h into
31649         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
31650         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
31651         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
31652         * modules/imaxdiv (configure.ac): Likewise.
31653         * modules/strtoimax (configure.ac): Likewise.
31654         * modules/strtoumax (configure.ac): Likewise.
31655
31656 2007-02-17  Bruno Haible  <bruno@clisp.org>
31657
31658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
31659         gl_STRING_MODULE_INDICATOR_DEFAULTS.
31660         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
31661         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
31662
31663 2007-02-17  Bruno Haible  <bruno@clisp.org>
31664
31665         * modules/link-warning: New file.
31666         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
31667         * lib/string_.h (GL_LINK_WARNING): Remove definition.
31668         * modules/string (Depends-on): Add link-warning.
31669         (Makefile.am): Copy the contents of build-aux/link-warning.h into
31670         string.h.
31671         * MODULES.html.sh (Support for building libraries and executables): Add
31672         link-warning.
31673
31674 2007-02-17  Bruno Haible  <bruno@clisp.org>
31675
31676         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
31677         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
31678         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
31679         long lines.
31680
31681 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
31682             Bruno Haible  <bruno@clisp.org>
31683
31684         * modules/tmpfile: New file.
31685         * lib/tmpfile.c: New file.
31686         * m4/tmpfile.m4: New file.
31687         * MODULES.html.sh (func_all_modules): New section "Input/output".
31688
31689 2007-02-15  Bruno Haible  <bruno@clisp.org>
31690
31691         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
31692         (supports_delete_on_close): New function.
31693         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
31694
31695 2007-02-14  Bruno Haible  <bruno@clisp.org>
31696
31697         * modules/mbspcasecmp-tests: New file.
31698         * tests/test-mbspcasecmp.sh: New file.
31699         * tests/test-mbspcasecmp.c: New file.
31700
31701         New module mbspcasecmp.
31702         * modules/mbspcasecmp: New file.
31703         * lib/mbspcasecmp.c: New file.
31704         * lib/string_.h (strncasecmp): Change warning message.
31705         (mbspcasecmp): New declaration.
31706         * m4/mbspcasecmp.m4: New file.
31707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31708         GNULIB_MBSPCASECMP.
31709         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
31710         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
31711
31712 2007-02-14  Bruno Haible  <bruno@clisp.org>
31713
31714         * modules/mbsncasecmp-tests: New file.
31715         * tests/test-mbsncasecmp.sh: New file.
31716         * tests/test-mbsncasecmp.c: New file.
31717
31718         New module mbsncasecmp.
31719         * modules/mbsncasecmp: New file.
31720         * lib/mbsncasecmp.c: New file.
31721         * lib/string_.h (mbsncasecmp): New declaration.
31722         * m4/mbsncasecmp.m4: New file.
31723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31724         GNULIB_MBSNCASECMP.
31725         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
31726         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
31727
31728 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31729
31730         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
31731         Verify that it doesn't overlap with our flags.
31732         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
31733         do not have the desired effect in multibyte locales; instead, use
31734         mbscasecmp.
31735         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
31736         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
31737         we don't require GNU fnmatch ourselves (if our users require it, they
31738         should do so explicitly).
31739
31740         Fix regex code so it doesn't rely on strcasecmp.
31741         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
31742         Otherwise, include gnulib's langinfo.h.
31743         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
31744         undesirable behavior in non-C locales.  Instead, rely on localecharset.
31745         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
31746         * modules/regex (FILES): Remove m4/codeset.m4.
31747         (Depends-on): Add localcharset.  Remove strcase.
31748
31749 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31750
31751         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
31752         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
31753
31754 2007-02-13  Bruno Haible  <bruno@clisp.org>
31755
31756         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
31757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31758
31759 2007-02-12  Bruno Haible  <bruno@clisp.org>
31760
31761         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
31762         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
31763         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
31764         time warning rather than a link error.
31765
31766 2007-02-12  Bruno Haible  <bruno@clisp.org>
31767
31768         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
31769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31771
31772 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
31773
31774         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
31775         args, not 2.
31776
31777 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
31778
31779         New module 'time', so that apps can include <time.h> as per
31780         POSIX and GNU instead of separate include files like time_r.h
31781         and timegm.h.  This implementation tries out a simpler approach
31782         for replacing decls in standard include files (as compared to
31783         the string module), somewhat as an experiment.
31784
31785         * config/srclist.txt: Comment out mktime.c for now.
31786         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
31787         since it doesn't apply any more.  Use generic wording instead.
31788         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
31789         'time'.
31790         * lib/time_.h, m4/time_h.m4, modules/time: New files.
31791         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
31792         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
31793         Don't include <sys/types.h>; no longer needed since we assume C89.
31794         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
31795         * lib/strftime.c: Likewise.
31796         * lib/time_r.c: Likewise.
31797         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
31798         * lib/nanosleep.c: Include <time.h> first, to check interface.
31799         * lib/strptime.c: Likewise.
31800         * lib/time_r.c: Likewise.
31801         * lib/timegm.c: Likewise.
31802         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
31803         needed.
31804         * lib/timegm.c: Don't include timegm.h; no longer needed.
31805         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
31806         time.h now handles any problems in that area.
31807         (struct timespec, nanosleep): Remove; time.h now arranges for these.
31808         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
31809         that time.h defines struct timespec.
31810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
31811         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
31812         handles that.
31813         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
31814         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
31815         needed.  Set REPLACE_LOCALTIME.
31816         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
31817         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
31818         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
31819         nanosleep; time_h.m4 now does that.  Don't require
31820         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
31821         module handles this now.
31822         * modules/getdate (Depends-on): Remove timespec.  Add time.
31823         * modules/nanosleep (Depends-on): Likewise.
31824         * modules/stat-time (Depends-on): Likewise.
31825         * modules/nanosleep (Include): Include time.h, not timespec.h.
31826         * modules/strptime (Files): Remove lib/strptime.h.
31827         (Depends-on): Add extensions, time.
31828         (Include): Include time.h, not strptime.h.
31829         * modules/time_r (Files): Remove lib/time_r.h.
31830         (Depends-on): Add time.
31831         (Include): Include time.h, not time_r.h.
31832         * modules/timegm: Likewise.
31833         * modules/timespec (Description): Now does timespec-related decls
31834         of our own, instead of struct timespec itself.
31835         (Depends-on): Add time; remove extensions.
31836         (Maintainer): Add self.
31837         * modules/utimecmp (Depends-on): Add time; remove timespec.
31838         * modules/utimens (Depends-on): Likewise.
31839         * modules/xnanosleep (Depends-on): Likewise.
31840
31841 2007-02-11  Bruno Haible  <bruno@clisp.org>
31842
31843         * lib/c-strstr.c: Include allocsa.h.
31844         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
31845         * lib/c-strcasestr.c: Include allocsa.h.
31846         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
31847         * lib/strcasestr.c: Include allocsa.h.
31848         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
31849         * lib/mbsstr.c: Include allocsa.h.
31850         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
31851         allocsa/freesa instead of malloc/free.
31852         * lib/mbscasestr.c: Include allocsa.h.
31853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
31854         allocsa/freesa instead of malloc/free.
31855         * modules/c-strstr (Depends-on): Add allocsa.
31856         * modules/c-strcasestr (Depends-on): Likewise.
31857         * modules/strcasestr (Depends-on): Likewise.
31858         * modules/mbsstr (Depends-on): Likewise.
31859         * modules/mbscasestr (Depends-on): Likewise.
31860
31861 2007-02-11  Bruno Haible  <bruno@clisp.org>
31862
31863         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
31864
31865         * modules/mbsspn-tests: New file.
31866         * tests/test-mbsspn.sh: New file.
31867         * tests/test-mbsspn.c: New file.
31868
31869 2007-02-11  Bruno Haible  <bruno@clisp.org>
31870
31871         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
31872
31873         * modules/mbspbrk-tests: New file.
31874         * tests/test-mbspbrk.sh: New file.
31875         * tests/test-mbspbrk.c: New file.
31876
31877 2007-02-11  Bruno Haible  <bruno@clisp.org>
31878
31879         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
31880         unneeded cast.
31881
31882         * modules/mbscspn-tests: New file.
31883         * tests/test-mbscspn.sh: New file.
31884         * tests/test-mbscspn.c: New file.
31885
31886 2007-02-11  Bruno Haible  <bruno@clisp.org>
31887
31888         * modules/mbscasecmp-tests: New file.
31889         * tests/test-mbscasecmp.sh: New file.
31890         * tests/test-mbscasecmp.c: New file.
31891
31892 2007-02-11  Bruno Haible  <bruno@clisp.org>
31893
31894         Ensure O(n) worst-case complexity of mbscasestr.
31895         * lib/mbscasestr.c: Include stdbool.h.
31896         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
31897         functions.
31898         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
31899         the bookkeeping indicates that it's worth it.
31900         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
31901
31902         * modules/mbscasestr-tests: New file.
31903         * tests/test-mbscasestr1.c: New file.
31904         * tests/test-mbscasestr2.sh: New file.
31905         * tests/test-mbscasestr2.c: New file.
31906         * tests/test-mbscasestr3.sh: New file.
31907         * tests/test-mbscasestr3.c: New file.
31908         * tests/test-mbscasestr4.sh: New file.
31909         * tests/test-mbscasestr4.c: New file.
31910         * m4/locale-tr.m4: New file.
31911
31912 2007-02-11  Bruno Haible  <bruno@clisp.org>
31913
31914         Ensure O(n) worst-case complexity of mbsstr.
31915         * lib/mbsstr.c: Include stdbool.h.
31916         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
31917         functions.
31918         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
31919         bookkeeping indicates that it's worth it.
31920         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
31921
31922         * modules/mbsstr-tests: New file.
31923         * tests/test-mbsstr1.c: New file.
31924         * tests/test-mbsstr2.sh: New file.
31925         * tests/test-mbsstr2.c: New file.
31926         * tests/test-mbsstr3.sh: New file.
31927         * tests/test-mbsstr3.c: New file.
31928         * m4/locale-fr.m4: New file.
31929
31930 2007-02-11  Bruno Haible  <bruno@clisp.org>
31931
31932         * lib/mbsrchr.c (mbsrchr): Fix bug.
31933
31934         * modules/mbsrchr-tests: New file.
31935         * tests/test-mbsrchr.sh: New file.
31936         * tests/test-mbsrchr.c: New file.
31937
31938 2007-02-11  Bruno Haible  <bruno@clisp.org>
31939
31940         * lib/mbschr.c (mbschr): Fix bug.
31941
31942         * modules/mbschr-tests: New file.
31943         * tests/test-mbschr.sh: New file.
31944         * tests/test-mbschr.c: New file.
31945         * m4/locale-zh.m4: New file.
31946
31947 2007-02-11  Bruno Haible  <bruno@clisp.org>
31948
31949         Support for copying multibyte string iterators.
31950         * lib/mbiter.h: Include <string.h>.
31951         (mbiter_multi_copy): New function.
31952         (mbi_copy): New macro.
31953         * lib/mbuiter.h: Include <string.h>.
31954         (mbuiter_multi_copy): New function.
31955         (mbui_copy): New macro.
31956
31957 2007-02-11  Bruno Haible  <bruno@clisp.org>
31958
31959         New module mbslen.
31960         * modules/mbslen: New file.
31961         * lib/mbslen.c: New file.
31962         * lib/string_.h (mbslen): New declaration.
31963         * m4/mbslen.m4: New file.
31964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
31965         GNULIB_MBSLEN.
31966         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
31967         * MODULES.html.sh (Internationalization functions): Add mbslen.
31968
31969 2007-02-11  Bruno Haible  <bruno@clisp.org>
31970
31971         Ensure O(n) worst-case complexity of strcasestr substitute.
31972         * lib/strcasestr.c: Include stdbool.h.
31973         (knuth_morris_pratt): New function.
31974         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
31975         bookkeeping indicates that it's worth it.
31976         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
31977
31978         * modules/strcasestr-tests: New file.
31979         * tests/test-strcasestr.c: New file.
31980
31981 2007-02-11  Bruno Haible  <bruno@clisp.org>
31982
31983         Ensure O(n) worst-case complexity of c_strcasestr.
31984         * lib/c-strcasestr.c: Include stdbool.h, string.h.
31985         (knuth_morris_pratt): New function.
31986         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
31987         the bookkeeping indicates that it's worth it.
31988         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
31989
31990         * modules/c-strcasestr-tests: New file.
31991         * tests/test-c-strcasestr.c: New file.
31992
31993 2007-02-11  Bruno Haible  <bruno@clisp.org>
31994
31995         Ensure O(n) worst-case complexity of c_strstr.
31996         * lib/c-strstr.c: Include stdbool.h, string.h.
31997         (knuth_morris_pratt): New function.
31998         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
31999         bookkeeping indicates that it's worth it.
32000         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
32001
32002         * lib/c-strstr.c: Complete rewrite for maintainability.
32003
32004         * modules/c-strstr-tests: New file.
32005         * tests/test-c-strstr.c: New file.
32006
32007 2007-02-11  Bruno Haible  <bruno@clisp.org>
32008
32009         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
32010         5.2.1 and earlier, whereby \055 was treated just like the range
32011         delimiter '-'.
32012         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32013
32014 2007-02-08  Bruno Haible  <bruno@clisp.org>
32015
32016         * modules/regex (Depends-on): Add stdbool.
32017         Reported by Dalibor Topic <robilad@kaffe.org>.
32018
32019 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32020
32021         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
32022         Prefer returning from main to exiting from it.
32023         Remove unnecessary parens after sizeof.
32024
32025 2007-02-05  Bruno Haible  <bruno@clisp.org>
32026
32027         New module mbssep.
32028         * modules/mbssep: New file.
32029         * lib/mbssep.c: New file.
32030         * lib/string_.h (strsep): Add a conditional link warning.
32031         (mbssep): New declaration.
32032         * m4/mbssep.m4: New file.
32033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32034         GNULIB_MBSSEP.
32035         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
32036         * MODULES.html.sh (Internationalization functions): Add mbssep.
32037
32038 2007-02-05  Bruno Haible  <bruno@clisp.org>
32039
32040         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
32041         Optimize search in case of 1 delimiter.
32042
32043 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
32044
32045         * lib/acl.h: Include sys/types.h before sys/acl.h.
32046
32047 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
32048
32049         Merge upstream fix for glibc bugzilla #3957:
32050
32051         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
32052
32053         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
32054         bit for RE_HAT_LISTS_NOT_NEWLINE.
32055         (build_charclass_op): Remove bogus comment.
32056
32057 2007-02-05  Simon Josefsson  <simon@josefsson.org>
32058
32059         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
32060
32061 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32062
32063         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
32064         * lib/memmem.c [!defined _LIBC]: Include config.h.
32065
32066 2007-02-04  Bruno Haible  <bruno@clisp.org>
32067
32068         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
32069         warning message.
32070
32071 2007-02-04  Bruno Haible  <bruno@clisp.org>
32072
32073         New module mbstok_r.
32074         * modules/mbstok_r: New file.
32075         * lib/mbstok_r.c: New file.
32076         * lib/string_.h (strtok_r): Change argument names to match the
32077         comments. Add a conditional link warning.
32078         (mbstok_r): New declaration.
32079         * m4/mbstok_r.m4: New file.
32080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32081         GNULIB_MBSTOK_R.
32082         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
32083         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
32084
32085 2007-02-04  Bruno Haible  <bruno@clisp.org>
32086
32087         New module mbsspn.
32088         * modules/mbsspn: New file.
32089         * lib/mbsspn.c: New file.
32090         * lib/string_.h (strspn): Add a conditional link warning.
32091         (mbsspn): New declaration.
32092         * m4/mbsspn.m4: New file.
32093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32094         GNULIB_MBSSPN.
32095         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
32096         * MODULES.html.sh (Internationalization functions): Add mbsspn.
32097
32098 2007-02-04  Bruno Haible  <bruno@clisp.org>
32099
32100         New module mbspbrk.
32101         * modules/mbspbrk: New file.
32102         * lib/mbspbrk.c: New file.
32103         * lib/string_.h (strpbrk): Add a conditional link warning.
32104         (mbspbrk): New declaration.
32105         * m4/mbspbrk.m4: New file.
32106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32107         GNULIB_MBSPBRK.
32108         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
32109         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
32110
32111 2007-02-04  Bruno Haible  <bruno@clisp.org>
32112
32113         New module mbscspn.
32114         * modules/mbscspn: New file.
32115         * lib/mbscspn.c: New file.
32116         * lib/string_.h (strcspn): Add a conditional link warning.
32117         (mbscspn): New declaration.
32118         * m4/mbscspn.m4: New file.
32119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32120         GNULIB_MBSCSPN.
32121         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
32122         * MODULES.html.sh (Internationalization functions): Add mbscspn.
32123
32124 2007-02-04  Bruno Haible  <bruno@clisp.org>
32125
32126         New module mbscasestr, reduced goal of strcasestr.
32127         * modules/mbscasestr: New file.
32128         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
32129         (mbscasestr): Renamed from strcasestr.
32130         * lib/strcasestr.c: Don't include mbuiter.h.
32131         (strcasestr): Remove support for multibyte locales.
32132         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
32133         Change the conditional link warning.
32134         (mbscasestr): New declaration.
32135         * m4/mbscasestr.m4: New file.
32136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
32137         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
32138         REPLACE_STRCASESTR.
32139         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
32140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32141         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32142         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
32143         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
32144         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32145         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
32146         (Depends-on): Remove mbuiter.
32147         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
32148
32149 2007-02-04  Bruno Haible  <bruno@clisp.org>
32150
32151         Simplify handling of strncasecmp.
32152         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
32153         the conditional link warning.
32154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32155         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
32156         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
32157         * modules/strcase (configure.ac): Don't invoke
32158         gl_STRING_MODULE_INDICATOR.
32159         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
32160
32161 2007-02-04  Bruno Haible  <bruno@clisp.org>
32162
32163         New module mbscasecmp, reduced goal of strcasecmp.
32164         * modules/mbscasecmp: New file.
32165         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
32166         (mbscasecmp): Renamed from strcasecmp.
32167         * lib/strcasecmp.c: Don't include mbuiter.h.
32168         (strcasecmp): Remove support for multibyte locales.
32169         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
32170         Change the conditional link warning.
32171         (mbscasecmp): New declaration.
32172         * m4/mbscasecmp.m4: New file.
32173         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
32174         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
32175         REPLACE_STRCASECMP.
32176         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
32177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32178         GNULIB_MBSCASECMP.
32179         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
32180         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
32181         * modules/strcase (Files): Remove m4/mbrtowc.m4.
32182         (Depends-on): Remove mbuiter.
32183         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
32184
32185 2007-02-04  Bruno Haible  <bruno@clisp.org>
32186
32187         New module mbsstr. Remove module strstr.
32188         * modules/mbsstr: New file.
32189         * modules/strstr: Remove file.
32190         * lib/mbsstr.c: Renamed from lib/strstr.c.
32191         (mbsstr): Renamed from strstr.
32192         * lib/string_.h (strstr): Remove declaration. Change the conditional
32193         link warning.
32194         (mbsstr): New declaration.
32195         * m4/mbsstr.m4: New file.
32196         * m4/strstr.m4: Remove file.
32197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32198         REPLACE_STRSTR.
32199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
32200         Don't initialize GNULIB_STRSTR.
32201         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
32202         substitute GNULIB_STRSTR and REPLACE_STRSTR.
32203         * MODULES.html.sh (Internationalization functions): Add mbsstr.
32204         (Support for systems lacking ANSI C 89): Remove strstr.
32205
32206 2007-02-04  Bruno Haible  <bruno@clisp.org>
32207
32208         New module mbsrchr.
32209         * modules/mbsrchr: New file.
32210         * lib/mbsrchr.c: New file.
32211         * lib/string_.h (strrchr): Add a conditional link warning.
32212         (mbsrchr): New declaration.
32213         * m4/mbsrchr.m4: New file.
32214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32215         GNULIB_MBSRCHR.
32216         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
32217         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
32218
32219 2007-02-04  Bruno Haible  <bruno@clisp.org>
32220
32221         New module mbschr.
32222         * modules/mbschr: New file.
32223         * lib/mbschr.c: New file.
32224         * lib/string_.h (strchr): Add a conditional link warning.
32225         (mbschr): New declaration.
32226         * m4/mbschr.m4: New file.
32227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32228         GNULIB_MBSCHR.
32229         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
32230         * MODULES.html.sh (Internationalization functions): Add mbschr.
32231
32232 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32233
32234         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
32235
32236         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
32237
32238 2007-02-04  Bruno Haible  <bruno@clisp.org>
32239
32240         New module description section 'configure.ac-early'.
32241         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
32242         (func_get_autoconf_early_snippet): New function.
32243         (func_import, func_create_testdir): Use it. Remove special cases for
32244         modules 'extensions' and 'lock'.
32245         * modules/extensions (configure.ac-early): Require
32246         gl_USE_SYSTEM_EXTENSIONS.
32247         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
32248
32249 2007-02-04  Bruno Haible  <bruno@clisp.org>
32250
32251         Make use of gcj-4.3's -fsource and -ftarget option.
32252         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
32253         and if so try the options -fsource and -ftarget.
32254         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
32255         source_version, ftarget_option, target_version arguments.
32256         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
32257         (is_envjavac_oldgcj_14_14_usable): Renamed from
32258         is_envjavac_gcj_14_14_usable.
32259         (is_envjavac_oldgcj_14_13_usable): Renamed from
32260         is_envjavac_gcj_14_13_usable.
32261         (is_gcj_present): Update.
32262         (is_gcj_43, is_gcj43_usable): New functions.
32263         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
32264         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
32265         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
32266         try the options -fsource and -ftarget.
32267
32268 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32269
32270         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
32271         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
32272         larger value.
32273
32274 2007-02-03  Jim Meyering  <jim@meyering.net>
32275
32276         Give tools a better chance to allocate space for very large buffers.
32277         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
32278
32279         Make pwd and readlink work also when run with an unreadable parent dir
32280         on systems with openat support.
32281         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
32282         provided getcwd function, even when we have openat support.
32283         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
32284
32285 2007-02-02  Bruno Haible  <bruno@clisp.org>
32286
32287         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32288         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
32289         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
32290         portability problems if one of these functions is only used on specific
32291         platforms.
32292         Reported by Paul Eggert.
32293
32294 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
32295
32296         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
32297         is causing more trouble than it's curing.
32298         * lib/regex_internal.h (__mempcpy): Remove.
32299         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
32300         (and make the code a tad smaller to boot).
32301         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
32302
32303 2007-02-02  Jim Meyering  <jim@meyering.net>
32304
32305         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
32306         section, not in the Makefile.am: one.
32307
32308 2007-02-02  Eric Blake  <ebb9@byu.net>
32309
32310         * lib/strchrnul.c: Always include config.h first.
32311
32312         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
32313         gnulib strstr is not necessary here.
32314
32315 2007-02-02  Simon Josefsson  <simon@josefsson.org>
32316
32317         * m4/socklen.m4: Fix typo.
32318
32319 2007-02-02  Eric Blake  <ebb9@byu.net>
32320
32321         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
32322         * modules/netinet_in (Makefile.am): Likewise.
32323
32324 2007-02-01  Bruno Haible  <bruno@clisp.org>
32325
32326         * lib/string_.h (GL_LINK_WARNING): New macro.
32327         (strcasecmp, strstr, strcasestr): If provided by the system,
32328         conditionally define as a macro that leads to a warning instead of to
32329         an error.
32330         (strncasecmp): Conditionally define as a macro that leads to a warning.
32331
32332 2007-02-01  Karl Berry  <karl@gnu.org>
32333
32334         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
32335
32336 2007-02-01  Bruno Haible  <bruno@clisp.org>
32337
32338         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
32339         renamings.
32340
32341 2007-02-01  Eric Blake  <ebb9@byu.net>
32342
32343         * modules/regex (Depends-on): Revert dependence on mempcpy.
32344         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
32345         module's definition of mempcpy.
32346         Reported by Paul Eggert.
32347
32348 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
32349
32350         * lib/string_.h: If the gnulib module XYZ is not present, undefine
32351         the symbol XYZ before redefining it.  This fixes a problem with
32352         programs that don't use XYZ, when compiled on systems that define
32353         XYZ to something else.
32354
32355 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32356
32357         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
32358         occurs when "mkdir -m foo" creates a setgid directory that is (1)
32359         writeable to group or other and (2) is intended to have a special
32360         mode bit that is set or cleared.  In such a case, the directory
32361         should be neither group- nor other-writeable until the special
32362         mode bits are right.
32363
32364 2007-01-31  Eric Blake  <ebb9@byu.net>
32365
32366         * modules/mountlist (Depends-on): Add strstr.
32367
32368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
32369         bug.
32370         * modules/string (Makefile.am): Remove redundant replacement.
32371         * modules/regex (Depends-on): Add mempcpy.
32372
32373 2007-01-31  Bruno Haible  <bruno@clisp.org>
32374
32375         New module description field 'Link'.
32376         * gnulib-tool (func_usage): Document --extract-link-directive.
32377         (sed_extract_prog): Recognize 'Link' directive.
32378         (func_get_link_directive): New function.
32379         (func_import): Show summary of link directives.
32380         Handle --extract-link-directive option.
32381         * modules/acl (Link): New section.
32382         * modules/clock-time (Link): New section.
32383         * modules/euidaccess (Link): New section.
32384         * modules/gettext (Link): New section.
32385         * modules/iconv (Link): New section.
32386         * modules/lock (Link): New section.
32387         * modules/nanosleep (Link): New section.
32388         * modules/readline (Link): New section.
32389
32390 2007-01-27  Bruno Haible  <bruno@clisp.org>
32391
32392         Enforce the use of gnulib modules for unportable <string.h> functions.
32393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
32394         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
32395         (gl_HEADER_STRING_H_BODY): Require it.
32396         * lib/string_.h: If the gnulib module XYZ is not present, redefine
32397         the symbol XYZ to one that gives a link error.
32398         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
32399         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
32400         * modules/mempcpy (configure.ac): Likewise.
32401         * modules/memrchr (configure.ac): Likewise.
32402         * modules/stpcpy (configure.ac): Likewise.
32403         * modules/stpncpy (configure.ac): Likewise.
32404         * modules/strcase (configure.ac): Likewise.
32405         * modules/strcasestr (configure.ac): Likewise.
32406         * modules/strchrnul (configure.ac): Likewise.
32407         * modules/strdup (configure.ac): Likewise.
32408         * modules/strndup (configure.ac): Likewise.
32409         * modules/strnlen (configure.ac): Likewise.
32410         * modules/strpbrk (configure.ac): Likewise.
32411         * modules/strsep (configure.ac): Likewise.
32412         * modules/strstr (configure.ac): Likewise.
32413         * modules/strtok_r (configure.ac): Likewise.
32414
32415 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
32416
32417         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
32418
32419 2007-01-30  Jim Meyering  <jim@meyering.net>
32420
32421         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
32422
32423 2007-01-29  Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
32426         * lib/execute.c: Likewise.
32427         * lib/pipe.c: Likewise.
32428         * lib/printf-args.h: Likewise.
32429         * lib/printf-args.c: Likewise.
32430         * lib/printf-parse.c: Likewise.
32431         * lib/vasnprintf.c: Likewise.
32432
32433 2007-01-29  Eric Blake  <ebb9@byu.net>
32434
32435         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
32436         declaration.
32437
32438 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32439
32440         * lib/strptime.h (strptime): Use 'restrict' for args where
32441         POSIX requires this.
32442         * lib/strptime.c (strptime): Likewise.
32443         Change license notice from LGPL to GPL, since gnulib-tool will
32444         change this as needed.
32445         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
32446         defined.
32447         Include "strptime.h" first, to check interface.
32448         Do not #undef _LIBC and _NL_CURRENT.
32449         Do not include <stdlib.h>; no longer needed.
32450         Include "time_r.h" and declare ptime_locale_status
32451         only if _LIBC is not defined.
32452         (__P): Remove unused macro.
32453         (match_string): Bring back glibc version, but use it only if _LIBC
32454         is defined.
32455         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
32456         Remove unnecessary assertion and abort() call.
32457         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
32458         * m4/strptime.m4: Fix serial number comment.
32459         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
32460         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
32461         (Depends-on): Add time_r.
32462
32463 2007-01-29  Bruno Haible  <bruno@clisp.org>
32464
32465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32466         strptime.
32467         * modules/strptime (Depends-on): Add stdbool.
32468         * lib/strptime.h: Include <time.h> always. Add comments.
32469
32470 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32471
32472         * modules/strptime: New file.
32473         * lib/strptime.h: New file.
32474         * lib/strptime.c: New file.
32475         * m4/strptime.m4: New file.
32476
32477 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
32478
32479         * MODULES.html.sh: New module mpsort.
32480         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
32481
32482         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
32483         a circularity problem with HP-UX ia64 reported by Bob Proulx in
32484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
32485         All uses changed.
32486         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
32487         All uses changed.
32488         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
32489         to _Restrict_.
32490         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
32491         the parameter matches the prototype.
32492
32493 2007-01-28  Jim Meyering  <jim@meyering.net>
32494
32495         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
32496         sys/time.h here, reverting that part of the previous patch:
32497         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
32498
32499 2007-01-28  Bruno Haible  <bruno@clisp.org>
32500
32501         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
32502         value of $(SYS_TIME_H).
32503         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
32504         remove it conditionally, too. [added by Jim Meyering]
32505         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
32506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
32507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
32508         GETTIMEOFDAY_REPLACEMENT to 1.
32509
32510 2007-01-28  Bruno Haible  <bruno@clisp.org>
32511
32512         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
32513         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
32514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
32515         Set UNISTD_H instead of UNISTD_H2.
32516         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
32517
32518 2007-01-28  Bruno Haible  <bruno@clisp.org>
32519
32520         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
32521         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
32522
32523 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32524
32525         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
32526         (func_create_testdir): Ensure C locale for `grep' and `tr'
32527         character ranges.
32528         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
32529         ACLOCAL_AMFLAGS parsing state machine.
32530
32531 2007-01-27  Bruno Haible  <bruno@clisp.org>
32532
32533         * modules/unistr/base: Update.
32534
32535 2007-01-27  Bruno Haible  <bruno@clisp.org>
32536
32537         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
32538         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
32539         * modules/unistr/u32-mbtouc-unsafe: Renamed from
32540         modules/unistr/u32-mbtouc.
32541         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
32542         * lib/unistr.h: Update.
32543         * lib/linebreak.c: Update.
32544         * modules/unistr/u32-mbtouc: Renamed from
32545         modules/unistr/u32-mbtouc-safe.
32546         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
32547         * lib/unistr.h: Update.
32548         * lib/unistr/u32-to-u8.c: Update.
32549         * lib/unistr/u32-to-u16.c: Update.
32550
32551 2007-01-27  Bruno Haible  <bruno@clisp.org>
32552
32553         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
32554         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
32555         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
32556         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
32557         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
32558         * modules/unistr/u16-mbtouc-unsafe: Renamed from
32559         modules/unistr/u16-mbtouc.
32560         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
32561         * lib/unistr.h: Update.
32562         * lib/linebreak.c: Update.
32563         * modules/linebreak: Update.
32564         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
32565         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
32566         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
32567         * modules/unistr/u16-mbtouc: Renamed from
32568         modules/unistr/u16-mbtouc-safe.
32569         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
32570         * lib/unistr.h: Update.
32571         * lib/unistr/u16-to-u8.c: Update.
32572         * modules/unistr/u16-to-u8: Update.
32573         * lib/unistr/u16-to-u32.c: Update.
32574         * modules/unistr/u16-to-u32: Update.
32575
32576 2007-01-27  Bruno Haible  <bruno@clisp.org>
32577
32578         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
32579         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
32580         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
32581         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
32582         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
32583         * modules/unistr/u8-mbtouc-unsafe: Renamed from
32584         modules/unistr/u8-mbtouc.
32585         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
32586         * lib/unistr.h: Update.
32587         * lib/striconveh.c: Update.
32588         * modules/striconveh: Update.
32589         * lib/linebreak.c: Update.
32590         * modules/linebreak: Update.
32591         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
32592         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
32593         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
32594         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
32595         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
32596         * lib/unistr.h: Update.
32597         * lib/striconveh.c: Update.
32598         * modules/striconveh: Update.
32599         * lib/unistr/u8-to-u16.c: Update.
32600         * modules/unistr/u8-to-u16: Update.
32601         * lib/unistr/u8-to-u32.c: Update.
32602         * modules/unistr/u8-to-u32: Update.
32603
32604 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32605
32606         Sync from Libtool.
32607         * lib/argz.c: Do not include strings.h nor memory.h, include
32608         string.h unconditionally.  Patch by Simon Josefsson.
32609
32610 2007-01-27  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
32613         from gl_HEADER_STRING_H_BODY.
32614         (gl_HEADER_STRING_H_BODY): Require it.
32615         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
32616         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32618         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32620         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
32621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32622         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32623         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
32624         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32625         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32626         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
32627         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32629         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32630
32631 2007-01-27  Bruno Haible  <bruno@clisp.org>
32632
32633         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
32634         check_PROGRAMS into noinst_PROGRAMS.
32635         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
32636         check_PROGRAMS in this case.
32637         (func_import): Set for_test to false.
32638         (func_create_testdir): Set for_test to true.
32639
32640 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32641             Bruno Haible  <bruno@clisp.org>
32642
32643         * modules/strcasestr (Files): Remove lib/strcasestr.h.
32644         (Depends-on): Add string.
32645         (Includes): Use <string.h> instead of strcasestr.h.
32646         * modules/string (Makefile.am): Also substitute the value of
32647         REPLACE_STRCASESTR.
32648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
32649         assume strcasestr is declared in <string.h> not <strings.h>. Also
32650         set REPLACE_STRCASESTR.
32651         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
32652         REPLACE_STRCASESTR.
32653         * lib/strcasestr.h: Remove file.
32654         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
32655         * lib/string_.h (strcasestr): New declaration.
32656
32657 2007-01-27  Bruno Haible  <bruno@clisp.org>
32658
32659         * lib/string_.h: Use 'extern'.
32660
32661 2007-01-27  Jim Meyering  <jim@meyering.net>
32662
32663         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
32664         of set-but-not-used local, "q".
32665
32666         * lib/mempcpy.c: Include <config.h> before <string.h>.
32667         This fixes a compilation error on HP-UX, due to the system's
32668         "restrict"-using mempcpy prototype.
32669
32670 2007-01-26  Bruno Haible  <bruno@clisp.org>
32671
32672         Small optimization.
32673         * lib/javacomp.c: Include c-strstr.h.
32674          (is_envjavac_gcj): Use c_strstr instead of strstr.
32675         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
32676
32677 2007-01-26  Bruno Haible  <bruno@clisp.org>
32678
32679         * MODULES.html.sh (Unicode string functions): Add the new modules.
32680
32681         * modules/uniconv/u32-strconv-to-locale: New file.
32682         * lib/uniconv/u32-strconv-to-locale.c: New file.
32683
32684         * modules/uniconv/u16-strconv-to-locale: New file.
32685         * lib/uniconv/u16-strconv-to-locale.c: New file.
32686
32687         * modules/uniconv/u8-strconv-to-locale: New file.
32688         * lib/uniconv/u8-strconv-to-locale.c: New file.
32689
32690         * modules/uniconv/u32-strconv-from-locale: New file.
32691         * lib/uniconv/u32-strconv-from-locale.c: New file.
32692
32693         * modules/uniconv/u16-strconv-from-locale: New file.
32694         * lib/uniconv/u16-strconv-from-locale.c: New file.
32695
32696         * modules/uniconv/u8-strconv-from-locale: New file.
32697         * lib/uniconv/u8-strconv-from-locale.c: New file.
32698
32699         * modules/uniconv/u32-strconv-to-enc: New file.
32700         * lib/uniconv/u32-strconv-to-enc.c: New file.
32701         * modules/uniconv/u32-strconv-to-enc-tests: New file.
32702         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
32703
32704         * modules/uniconv/u16-strconv-to-enc: New file.
32705         * lib/uniconv/u16-strconv-to-enc.c: New file.
32706         * lib/uniconv/u-strconv-to-enc.h: New file.
32707         * modules/uniconv/u16-strconv-to-enc-tests: New file.
32708         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
32709
32710         * modules/uniconv/u8-strconv-to-enc: New file.
32711         * lib/uniconv/u8-strconv-to-enc.c: New file.
32712         * modules/uniconv/u8-strconv-to-enc-tests: New file.
32713         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
32714
32715         * modules/uniconv/u32-strconv-from-enc: New file.
32716         * lib/uniconv/u32-strconv-from-enc.c: New file.
32717         * modules/uniconv/u32-strconv-from-enc-tests: New file.
32718         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
32719
32720         * modules/uniconv/u16-strconv-from-enc: New file.
32721         * lib/uniconv/u16-strconv-from-enc.c: New file.
32722         * modules/uniconv/u16-strconv-from-enc-tests: New file.
32723         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
32724
32725         * modules/uniconv/u8-strconv-from-enc: New file.
32726         * lib/uniconv/u8-strconv-from-enc.c: New file.
32727         * lib/uniconv/u-strconv-from-enc.h: New file.
32728         * modules/uniconv/u8-strconv-from-enc-tests: New file.
32729         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
32730
32731         * modules/uniconv/u32-conv-from-enc: New file.
32732         * lib/uniconv/u32-conv-from-enc.c: New file.
32733         * modules/uniconv/u32-conv-from-enc-tests: New file.
32734         * tests/uniconv/test-u32-conv-from-enc.c: New file.
32735
32736         * modules/uniconv/u16-conv-from-enc: New file.
32737         * lib/uniconv/u16-conv-from-enc.c: New file.
32738         * lib/uniconv/u-conv-from-enc.h: New file.
32739         * modules/uniconv/u16-conv-from-enc-tests: New file.
32740         * tests/uniconv/test-u16-conv-from-enc.c: New file.
32741
32742         * modules/uniconv/u8-conv-from-enc: New file.
32743         * lib/uniconv/u8-conv-from-enc.c: New file.
32744         * modules/uniconv/u8-conv-from-enc-tests: New file.
32745         * tests/uniconv/test-u8-conv-from-enc.c: New file.
32746
32747         * modules/uniconv/base: New file.
32748         * lib/uniconv.h: New file.
32749
32750 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
32751
32752         * doc/gnulib-tool.texi (Initial import): Update to match current
32753         behavior with strdup module.
32754         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
32755         * lib/memmem.h: Remove; all uses removed.  This is now done
32756         by <string.h>.
32757         * lib/mempcpy.h: Likewise.
32758         * lib/memrchr.h: Likewise.
32759         * lib/stpcpy.h: Likewise.
32760         * lib/stpncpy.h: Likewise.
32761         * lib/strcase.h: Likewise.
32762         * lib/strchrnul.h: Likewise.
32763         * lib/strdup.h: Likewise.
32764         * lib/strndup.h: Likewise.
32765         * lib/strnlen.h: Likewise.
32766         * lib/strpbrk.h: Likewise.
32767         * lib/strsep.h: Likewise.
32768         * lib/strstr.h: Likewise.
32769         * lib/strtok_r.h: Likewise.
32770         * lib/string_.h: New file.
32771         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
32772         Rely on <string.h> instead.
32773         * lib/canon-host.c: Likewise.
32774         * lib/chdir-long.c: Likewise.
32775         * lib/concatpath.c: Likewise.
32776         * lib/exclude.c: Likewise.
32777         * lib/fchdir.c: Likewise.
32778         * lib/getaddrinfo.c: Likewise.
32779         * lib/getcwd.c: Likewise.
32780         * lib/getsubopt.c: Likewise.
32781         * lib/glob.c: Likewise.
32782         * lib/hard-locale.c: Likewise.
32783         * lib/iconvme.c: Likewise.
32784         * lib/javacomp.c: Likewise.
32785         * lib/mempcpy.c: Likewise.
32786         * lib/memrchr.c: Likewise.
32787         * lib/regex_internal.h: Likewise.
32788         * lib/stpncpy.c: Likewise.
32789         * lib/strcasecmp.c: Likewise.
32790         * lib/strchrnul.c: Likewise.
32791         * lib/strdup.c: Likewise.
32792         * lib/striconv.c: Likewise.
32793         * lib/striconveh.c: Likewise.
32794         * lib/striconveha.c: Likewise.
32795         * lib/strncasecmp.c: Likewise.
32796         * lib/strndup.c: Likewise.
32797         * lib/strnlen.c: Likewise.
32798         * lib/strsep.c: Likewise.
32799         * lib/strstr.c: Likewise.
32800         * lib/strtok_r.c: Likewise.
32801         * lib/userspec.c: Likewise.
32802         * lib/w32spawn.h: Likewise.
32803         * lib/xstrndup.c: Likewise.
32804         * lib/mountlist.c (strstr): Remove decl.
32805         * m4/string_h.m4: New file.
32806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
32807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
32808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
32809         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
32810         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
32811         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
32812         Set REPLACE_STRCASECMP if necessary.
32813         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
32814         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
32815         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
32816         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
32817         HAVE_DECL_STRDUP if necessary.
32818         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
32819         since gl_FUNC_STRNDUP does that now.
32820         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
32821         Check for decl here...
32822         (gl_PREREQ_STRNLEN): ... not here.
32823         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
32824         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
32825         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
32826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
32827         necessary.
32828         * modules/string: New file.
32829         * modules/memmem (Files): Remove special-purpose include file.
32830         (Depends-on): Add string.
32831         (Include): Include <string.h>, not the removed file.
32832         * modules/mempcpy: Likewise.
32833         * modules/memrchr: Likewise.
32834         * modules/stpcpy: Likewise.
32835         * modules/stpncpy: Likewise.
32836         * modules/strcase: Likewise.
32837         * modules/strchrnul: Likewise.
32838         * modules/strdup: Likewise.
32839         * modules/strndup: Likewise.
32840         * modules/strnlen: Likewise.
32841         * modules/strpbrk: Likewise.
32842         * modules/strsep: Likewise.
32843         * modules/strstr: Likewise.
32844         * modules/strtok_r: Likewise.
32845         * tests/test-dirname.c: Don't include "strdup.h", since
32846         <string.h> now suffices.
32847         * tests/test-memmem.c: Don't include "memmem.h", since
32848         <string.h> now suffices.
32849
32850 2007-01-25  Bruno Haible  <bruno@clisp.org>
32851
32852         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
32853         *resultp is 0.
32854
32855         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
32856         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
32857         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
32858         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
32859
32860         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
32861         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
32862         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
32863         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
32864         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
32865         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
32866
32867 2007-01-24  Bruno Haible  <bruno@clisp.org>
32868
32869         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
32870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
32871         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
32872         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
32873         gl_FUNC_FTS_CORE.
32874         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
32875         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
32876         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32877         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
32878         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
32879         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
32880         gl_FUNC_FCHOWNAT.
32881         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
32882         gl_FUNC_STRFTIME.
32883         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
32884         Reported by Ralf Wildenhues.
32885
32886 2007-01-24  Bruno Haible  <bruno@clisp.org>
32887
32888         Drop AC_REQUIRE calls that are redundant with the module dependencies.
32889         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
32890         gl_GETADDRINFO.
32891         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
32892         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
32893         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
32894
32895 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
32896
32897         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
32898         Don't use 'exit'; just return from 'main'.
32899         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
32900
32901         * lib/fnmatch_.h: Readjust white space and comments to match
32902         glibc, to avoid spurious diffs.
32903
32904 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32905
32906         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
32907         2004-12-01 change by Jakub Jelinek, since this code won't compile
32908         if !LIBC.  Problem reported by Bob Proulx.
32909
32910 2007-01-23  Bruno Haible  <bruno@clisp.org>
32911
32912         * lib/striconveh.c: Include c-strcaseeq.h.
32913         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
32914         * modules/striconveh (Depends-on): Add c-strcaseeq.
32915
32916 2007-01-23  Bruno Haible  <bruno@clisp.org>
32917
32918         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
32919
32920         * modules/c-strcaseeq: New file.
32921         * lib/c-strcaseeq.h: New file.
32922
32923         * modules/streq: New file.
32924         * lib/streq.h: New file.
32925
32926 2007-01-23  Bruno Haible  <bruno@clisp.org>
32927
32928         * modules/striconveha-tests: New file.
32929         * tests/test-striconveha.c: New file.
32930
32931         * lib/striconveha.h: Include <stdbool.h>.
32932         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
32933         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
32934         (mem_iconveha_notranslit): Renamed from mem_iconveha.
32935         (mem_iconveha): New function.
32936         (str_iconveha_notranslit): Renamed from str_iconveha.
32937         (str_iconveha): New function.
32938         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
32939         c-strcase.
32940
32941 2007-01-23  Bruno Haible  <bruno@clisp.org>
32942
32943         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
32944         encodings without forgiving before trying any encoding with handler.
32945         (str_iconveha): Try all encodings without forgiving before trying any
32946         encoding with handler.
32947
32948 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32949
32950         Import the following changes from libc.
32951
32952         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32953
32954         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
32955
32956         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
32957
32958         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
32959         normal_bracket label.
32960
32961         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
32962
32963         [BZ #361]
32964         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
32965         to normal_bracket after fetching the next character.
32966
32967 2007-01-22  Bruno Haible  <bruno@clisp.org>
32968
32969         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
32970         argument.
32971         * lib/striconveh.c (iconv_carefully_1): New function.
32972         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
32973         argument.
32974         (str_cd_iconveh): Update.
32975         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
32976         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
32977         * tests/test-striconveh.c (MAGIC): New macro.
32978         (new_offsets): New function.
32979         (main): Test call with and without offsets.
32980
32981 2007-01-22  Bruno Haible  <bruno@clisp.org>
32982
32983         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
32984         * modules/sys_select (Makefile.am): Likewise.
32985         * modules/sys_socket (Makefile.am): Likewise.
32986         * modules/sys_time (Makefile.am): Likewise.
32987
32988 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32989
32990         * modules/gettimeofday (License): Change from GPL to LGPL, since
32991         gettimeofday is a library function.
32992
32993 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32994
32995         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
32996
32997 2007-01-21  Bruno Haible  <bruno@clisp.org>
32998
32999         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
33000
33001 2007-01-21  Bruno Haible  <bruno@clisp.org>
33002
33003         * modules/striconveha: New file.
33004         * lib/striconveha.h: New file.
33005         * lib/striconveha.c: New file.
33006         * MODULES.html.sh (Internationalization functions): Add striconveha.
33007         * lib/striconv.c (str_iconv): Optimize the case of an empty input
33008         string.
33009         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
33010
33011 2007-01-21  Bruno Haible  <bruno@clisp.org>
33012
33013         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
33014         * lib/striconveh.c (str_iconveh): Likewise.
33015
33016 2007-01-21  Bruno Haible  <bruno@clisp.org>
33017
33018         * lib/striconveh.h (mem_iconveh): New declaration.
33019         * lib/striconveh.c (mem_iconveh): New function.
33020         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
33021
33022 2007-01-21  Bruno Haible  <bruno@clisp.org>
33023
33024         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
33025
33026         * lib/striconveh.h (mem_cd_iconveh): Change specification.
33027         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
33028         original result buffer.
33029         (str_cd_iconveh): Update.
33030         * tests/test-striconveh.c (main): Update.
33031
33032         * lib/striconv.h (mem_cd_iconv): Change specification.
33033         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
33034         result buffer.
33035         (str_cd_iconv): Update.
33036         * tests/test-striconv.c (main): Update.
33037
33038 2007-01-21  Bruno Haible  <bruno@clisp.org>
33039
33040         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
33041
33042 2007-01-20  Jim Meyering  <jim@meyering.net>
33043
33044         * lib/userspec.c (parse_with_separator): If a user or group string
33045         starts with "+", skip the corresponding name-to-ID look-up, since
33046         such a look-up must fail: user and group names may not include "+".
33047
33048 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
33049
33050         * lib/poll.c: Include sys/time.h and time.h unconditionally,
33051         since we now assume the sys_time module.
33052         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
33053         check for sys/time.h; no longer needed.
33054         * modules/poll (Depends-on): Depend on sys_time.
33055
33056 2007-01-18  Bruno Haible  <bruno@clisp.org>
33057
33058         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
33059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33060
33061         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
33062         gettimeofday.
33063
33064         * tests/test-gettimeofday.c: Include <time.h>.
33065         (dummy): Remove variable.
33066
33067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
33068         gl_HEADER_SYS_TIME_H.
33069         (gl_HEADER_SYS_TIME_H): New macro.
33070
33071         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
33072         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33074         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
33075         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
33077         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
33078         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33079         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
33080         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
33081         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33082
33083         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
33084         last change; it caused a compilation error when cross-compiling to
33085         Cygwin.
33086
33087 2007-01-18  Jim Meyering  <jim@meyering.net>
33088
33089         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
33090         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
33091         than the race-prone "test -d sys || mkdir sys".
33092         (configure.ac): Use AC_PROG_MKDIR_P.
33093         * modules/sys_select: Likewise.
33094         * modules/sys_socket: Likewise.
33095         * modules/sys_time: Likewise.
33096
33097 2007-01-18  Eric Blake  <ebb9@byu.net>
33098
33099         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
33100         replace gettimeofday.
33101         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
33102         name, to avoid infinite recursion.
33103
33104 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
33105
33106         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
33107         module sys_time.
33108         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
33109         assume timespec.h defines struct timeval.
33110         * lib/settime.c: Likewise.
33111         * lib/utimens.c: Likewise.
33112         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
33113         since we now assume the gettimeofday module.
33114         * lib/tempname.c (__gen_tempname): Likewise.
33115         * lib/gettimeofday.h: Remove.
33116         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
33117         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
33118         Include <time.h>, for 'time()'.
33119         (localtime_buffer_addr): Also use this workaround if
33120         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
33121         to simplify the uses.  All uses changed.
33122         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
33123         that #undef is inside {}, and 'const' follows type name consistently.
33124         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
33125         (gettimeofday): Do not use the maximum possible value for
33126         tv->tv_usec, since that might break usages other than ls.c.
33127         Instead, we'll leave ls.c alone.  This undoes today's patch
33128         by Bruno.  Add a compile-time warning for 1s-clock resolution;
33129         we've never observed the problem but might as well keep the
33130         canary.
33131         * lib/nanosleep.c: Include timespec.h first, for interface check.
33132         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
33133         now assume the sys_time module.
33134         * lib/tempname.c: Likewise.
33135         * lib/timespec.h: Likewise.
33136         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
33137         needed.
33138         * lib/strftime.c: Likewise.
33139         * lib/timespec.h: Likewise.
33140         * lib/posixtm.c: Include posixtm.h first, for interface check.
33141         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
33142         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
33143         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
33144         * lib/sys_time_.h: New file.
33145         * lib/timespec.h (struct timespec): Use long int, not long.
33146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33147         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
33148         Remove obsolescent call to AC_HEADER_TIME.
33149         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
33150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33151         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33152         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
33153         Likewise.
33154         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
33155         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
33156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
33157         into the sys_time module.  Check for gettimeofday just once.
33158         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
33159         for gettimeofday signature to just check the signature.  Merely
33160         compile it, since linking doesn't test signature.  Improve test for
33161         whether gettimeofday.o is actually needed.
33162         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
33163         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
33164         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
33165         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33166         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
33167         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
33168         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
33169         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
33170         than worrying about sys/time.h.
33171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33172         Don't bother worrying about TIME_WITH_SYS_TIME.
33173         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33174         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
33175         * m4/sys_time_h.m4: New file.
33176         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
33177         Don't include sys/time.h.  Return from main rather than exiting.
33178         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
33179         all uses changed.
33180         * modules/gethrxtime (Depends-on): Add sys_time.
33181         * modules/gettime (Depends-on): Likewise.
33182         * modules/gettimeofday (Depends-on): Likewise.
33183         * modules/nanosleep (Depends-on): Likewise.
33184         * modules/settime (Depends-on): Likewise.
33185         * modules/tempname (Depends-on): Likewise.
33186         * modules/utimens (Depends-on): Likewise.
33187         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
33188         (Include:) Change back to <sys/time.h>.
33189         (Maintainer:) Add self.
33190         * modules/sys_time: New file.
33191         * modules/tempname (Depends-on): Add gettimeofday.
33192         * tests/test-gettimeofday.c: Include <sys/time.h>
33193         rather than gettimeofday.h.
33194
33195 2007-01-17  Bruno Haible  <bruno@clisp.org>
33196
33197         * gnulib-tool (func_get_license): Revert last patch. Instead, let
33198         the license default to GPL.
33199         (func_create_testdir): Don't complain if a module is LGPL and its
33200         tests module depends on GPLed modules.
33201
33202 2007-01-17  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/gettimeofday.c (gettimeofday): Add code for the case
33205         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
33206         maximum possible value for tv->tv_usec, rather than the minimum one.
33207
33208 2005-10-08  Martin Lambers  <marlam@marlam.de>
33209 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33210 2007-01-16  Bruno Haible  <bruno@clisp.org>
33211
33212         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
33213         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
33214         gl_FUNC_GETTIMEOFDAY.
33215         (Include): Add gettimeofday.h.
33216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
33217         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
33218         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
33219         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
33220         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
33221         * lib/gettimeofday.h: New file.
33222         * lib/gettimeofday.c: Include <sys/timeb.h>.
33223         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
33224         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33225         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
33226         fall back on time().
33227
33228         * tests/test-gettimeofday.c: New file.
33229         * modules/gettimeofday-tests: New file.
33230
33231 2007-01-16  Eric Blake  <ebb9@byu.net>
33232
33233         * modules/fnmatch (Depends-on): Depend on wchar.
33234         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
33235         * m4/fnmatch.m4: Likewise.
33236         * modules/mbchar (Makefile.am): Assume <wchar.h>.
33237         * m4/mbchar.m4: Likewise.
33238         * modules/mbswidth (Depends-on): Depend on wchar.
33239         * lib/mbswidth.c: Assume <wchar.h>.
33240         * m4/mbswidth.m4: Likewise.
33241         * modules/quotearg (Depends-on): Depend on wchar.
33242         * lib/quotearg.c: Assume <wchar.h>.
33243         * m4/quotearg.m4: Likewise.
33244         * modules/regex (Depends-on): Depend on wchar.
33245         * lib/regex_internal.h: Assume <wchar.h>.
33246         * m4/regex.m4: Likewise.
33247         * modules/stdint (Depends-on): Depend on wchar.
33248         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
33249         * m4/stdint.m4: Likewise.
33250         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
33251         * modules/strftime (Depends-on): Depend on wchar.
33252         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
33253         * modules/strtol (Depends-on): Depend on wchar.
33254         * lib/strtol.c: Assume <wchar.h>.
33255         * modules/wcwidth (Depends-on): Depend on wchar.
33256         * lib/wcwidth.h: Assume <wchar.h>.
33257         * m4/wcwidth.m4: Likewise.
33258
33259 2007-01-16  Bruno Haible  <bruno@clisp.org>
33260
33261         * modules/csharpexec-script: New, created from...
33262         * modules/csharpexec: ... this.
33263
33264 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33265
33266         * modules/javaexec-script: New, created from...
33267         * modules/javaexec: ... this.
33268
33269 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33270
33271         * modules/poll (Dependencies): Add sys_select.
33272
33273 2007-01-15  Jim Meyering  <jim@meyering.net>
33274
33275         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
33276         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
33277         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
33278         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
33279
33280 2007-01-15  Bruno Haible  <bruno@clisp.org>
33281
33282         * modules/striconveh: New file.
33283         * lib/striconveh.h: New file.
33284         * lib/striconveh.c: New file.
33285         * MODULES.html.sh (Internationalization functions): Add striconveh.
33286
33287         * modules/striconveh-tests: New file.
33288         * tests/test-striconveh.c: New file.
33289
33290 2007-01-15  Bruno Haible  <bruno@clisp.org>
33291
33292         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
33293         not from GNU libiconv or GNU libc.
33294
33295 2007-01-15  Bruno Haible  <bruno@clisp.org>
33296
33297         * doc/gnulib-intro.texi (Copyright): Explain the different license
33298         terms for module descriptions, autoconf macros, tests, documentation.
33299
33300 2007-01-14  Bruno Haible  <bruno@clisp.org>
33301
33302         * modules/striconv-tests: New file.
33303         * tests/test-striconv.c: New file.
33304
33305 2007-01-14  Bruno Haible  <bruno@clisp.org>
33306
33307         * modules/iconv-tests: New file.
33308         * tests/test-iconv.c: New file.
33309
33310 2007-01-14  Bruno Haible  <bruno@clisp.org>
33311
33312         * gnulib-tool (func_get_license): For test modules, use the license of
33313         the main module.
33314
33315 2007-01-14  Bruno Haible  <bruno@clisp.org>
33316
33317         * modules/iconv (Include): Clarify that <iconv.h> can only be included
33318         if iconv is found to exist.
33319
33320 2007-01-14  Bruno Haible  <bruno@clisp.org>
33321
33322         * modules/c-ctype-tests: New file.
33323         * tests/test-c-ctype.c: New file.
33324
33325 2007-01-14  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/binary-io-tests: New file.
33328         * tests/test-binary-io.sh: New file.
33329         * tests/test-binary-io.c: New file.
33330
33331 2007-01-14  Bruno Haible  <bruno@clisp.org>
33332
33333         * modules/array-oset-tests: New file.
33334         * tests/test-array_oset.c: New file.
33335
33336 2007-01-14  Bruno Haible  <bruno@clisp.org>
33337
33338         * modules/array-list-tests: New file.
33339         * tests/test-array_list.c: New file.
33340
33341 2007-01-14  Bruno Haible  <bruno@clisp.org>
33342
33343         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
33344         and make.
33345         Reported by Simon Josefsson in
33346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
33347
33348 2007-01-14  Bruno Haible  <bruno@clisp.org>
33349
33350         * modules/allocsa-tests: New file.
33351         * tests/test-allocsa.c: New file.
33352
33353 2007-01-14  Bruno Haible  <bruno@clisp.org>
33354
33355         * modules/fchdir (Depends-on): Add absolute-header.
33356         * modules/unistd (Depends-on): Likewise.
33357
33358 2006-12-30  Bruno Haible  <bruno@clisp.org>
33359
33360         * modules/fchdir: New file.
33361         * modules/unistd (Files): Add lib/unistd_.h.
33362         (Makefile.am): Generate unistd.h from unistd_.h.
33363         * lib/fchdir.c: New file.
33364         * lib/dirent_.h: New file.
33365         * lib/unistd_.h: New file.
33366         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
33367         * m4/fchdir.m4: New file.
33368         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
33369         (gl_HEADER_UNISTD): Invoke it.
33370         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
33371         function.
33372         * lib/backupfile.c (opendir, closedir): Undefine.
33373         * lib/chown.c (open, close): Undefine.
33374         * lib/clean-temp.c (open, close): Undefine.
33375         * lib/copy-file.c (open, close): Undefine.
33376         * lib/execute.c (open, close): Undefine.
33377         * lib/fsusage.c (open, close): Undefine.
33378         * lib/gc-gnulib.c (open, close): Undefine.
33379         * lib/getcwd.c (opendir, closedir): Undefine.
33380         * lib/glob.c (opendir, closedir): Undefine.
33381         * lib/javacomp.c (open, close): Undefine.
33382         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
33383         * lib/openat-proc.c (open, close): Undefine.
33384         * lib/pagealign_alloc.c (open, close): Undefine.
33385         * lib/pipe.c (open, close): Undefine.
33386         * lib/progreloc.c (open, close): Undefine.
33387         * lib/savedir.c (opendir, closedir): Undefine.
33388         * lib/utime.c (open, close): Undefine.
33389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
33390
33391 2007-01-10  Bruno Haible  <bruno@clisp.org>
33392
33393         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
33394
33395 2007-01-12  Eric Blake  <ebb9@byu.net>
33396
33397         Provide a robust <wchar.h>.  Further simplifications are now
33398         possible in other modules, but not included here.
33399         * modules/wchar: New module.
33400         * m4/wchar.m4: New file.
33401         * lib/wchar_.h: Likewise.
33402         * modules/mbchar (Depends-on): Depend on wchar, as the first use
33403         of the new module.
33404         * MODULES.html.sh (Extended multibyte and wide character utilities):
33405         New section.
33406
33407 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
33408
33409         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
33410         to a reasonable default for memory allocation.
33411         (xreadlink): Don't allocate a huge buffer, to work around a buggy
33412         file system that reports garbage st_size values for symlinks.
33413         Problem reported by Liyang Hu.
33414
33415 2007-01-11  Simon Josefsson  <simon@josefsson.org>
33416
33417         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
33418         Emacs .#* auto-save files).
33419
33420 2007-01-11  Bruno Haible  <bruno@clisp.org>
33421
33422         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
33423         directory.
33424
33425 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33426
33427         Use @...@ consistently in lib/wctype_.h.
33428         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
33429         on it being set to 1 or 0.
33430         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
33431         go back to AC_SUBSTing it.
33432         * modules/wctype (Makefile.am): Undo previous change.
33433
33434 2007-01-10  Eric Blake  <ebb9@byu.net>
33435
33436         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
33437         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
33438         * modules/wctype (Makefile.am): Likewise.
33439         Reported by Chris McGuire.
33440
33441 2007-01-10  Jim Meyering  <jim@meyering.net>
33442
33443         fts.c: a small readability/maintainability improvement
33444         * lib/fts.c (fts_read): Make this code slightly more readable and
33445         maintainable by hoisting the "sp->fts_cur = p" assignments to
33446         immediately follow the statements that set P.  Derived from
33447         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
33448
33449 2007-01-10  Eric Blake  <ebb9@byu.net>
33450
33451         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
33452         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
33453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33454         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33455         Reported by Chris McGuire.
33456
33457 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33458
33459         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
33460         in sed script.
33461
33462 2007-01-09  Bruno Haible  <bruno@clisp.org>
33463
33464         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
33465         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
33466         variables.
33467         (func_module): Use them.
33468
33469 2007-01-09  Bruno Haible  <bruno@clisp.org>
33470
33471         * modules/unistr/base: New file.
33472         * lib/unistr.h: New file.
33473
33474         * modules/unistr/u8-to-u16: New file.
33475         * lib/unistr/u8-to-u16.c: New file.
33476
33477         * modules/unistr/u8-to-u32: New file.
33478         * lib/unistr/u8-to-u32.c: New file.
33479
33480         * modules/unistr/u16-to-u8: New file.
33481         * lib/unistr/u16-to-u8.c: New file.
33482
33483         * modules/unistr/u16-to-u32: New file.
33484         * lib/unistr/u16-to-u32.c: New file.
33485
33486         * modules/unistr/u32-to-u8: New file.
33487         * lib/unistr/u32-to-u8.c: New file.
33488
33489         * modules/unistr/u32-to-u16: New file.
33490         * lib/unistr/u32-to-u16.c: New file.
33491
33492         * modules/unistr/u8-check: New file.
33493         * modules/unistr/u16-check: New file.
33494         * modules/unistr/u32-check: New file.
33495         * lib/unistr/u8-check.c: New file.
33496         * lib/unistr/u16-check.c: New file.
33497         * lib/unistr/u32-check.c: New file.
33498
33499         * modules/unistr/u8-chr: New file.
33500         * modules/unistr/u16-chr: New file.
33501         * modules/unistr/u32-chr: New file.
33502         * lib/unistr/u8-chr.c: New file.
33503         * lib/unistr/u16-chr.c: New file.
33504         * lib/unistr/u32-chr.c: New file.
33505
33506         * modules/unistr/u8-cmp: New file.
33507         * modules/unistr/u16-cmp: New file.
33508         * modules/unistr/u32-cmp: New file.
33509         * lib/unistr/u8-cmp.c: New file.
33510         * lib/unistr/u16-cmp.c: New file.
33511         * lib/unistr/u32-cmp.c: New file.
33512
33513         * modules/unistr/u8-cpy: New file.
33514         * modules/unistr/u16-cpy: New file.
33515         * modules/unistr/u32-cpy: New file.
33516         * lib/unistr/u8-cpy.c: New file.
33517         * lib/unistr/u16-cpy.c: New file.
33518         * lib/unistr/u32-cpy.c: New file.
33519         * lib/unistr/u-cpy.h: New file.
33520
33521         * modules/unistr/u8-cpy-alloc: New file.
33522         * modules/unistr/u16-cpy-alloc: New file.
33523         * modules/unistr/u32-cpy-alloc: New file.
33524         * lib/unistr/u8-cpy-alloc.c: New file.
33525         * lib/unistr/u16-cpy-alloc.c: New file.
33526         * lib/unistr/u32-cpy-alloc.c: New file.
33527         * lib/unistr/u-cpy-alloc.h: New file.
33528
33529         * modules/unistr/u8-endswith: New file.
33530         * modules/unistr/u16-endswith: New file.
33531         * modules/unistr/u32-endswith: New file.
33532         * lib/unistr/u8-endswith.c: New file.
33533         * lib/unistr/u16-endswith.c: New file.
33534         * lib/unistr/u32-endswith.c: New file.
33535         * lib/unistr/u-endswith.h: New file.
33536
33537         * modules/unistr/u8-mblen: New file.
33538         * modules/unistr/u16-mblen: New file.
33539         * modules/unistr/u32-mblen: New file.
33540         * lib/unistr/u8-mblen.c: New file.
33541         * lib/unistr/u16-mblen.c: New file.
33542         * lib/unistr/u32-mblen.c: New file.
33543
33544         * modules/unistr/u8-mbtouc: New file.
33545         * modules/unistr/u16-mbtouc: New file.
33546         * modules/unistr/u32-mbtouc: New file.
33547         * lib/unistr/u8-mbtouc.c: New file.
33548         * lib/unistr/u16-mbtouc.c: New file.
33549         * lib/unistr/u32-mbtouc.c: New file.
33550
33551         * modules/unistr/u8-mbtouc-safe: New file.
33552         * modules/unistr/u16-mbtouc-safe: New file.
33553         * modules/unistr/u32-mbtouc-safe: New file.
33554         * lib/unistr/u8-mbtouc-safe.c: New file.
33555         * lib/unistr/u16-mbtouc-safe.c: New file.
33556         * lib/unistr/u32-mbtouc-safe.c: New file.
33557
33558         * modules/unistr/u8-move: New file.
33559         * modules/unistr/u16-move: New file.
33560         * modules/unistr/u32-move: New file.
33561         * lib/unistr/u8-move.c: New file.
33562         * lib/unistr/u16-move.c: New file.
33563         * lib/unistr/u32-move.c: New file.
33564         * lib/unistr/u-move.h: New file.
33565
33566         * modules/unistr/u8-next: New file.
33567         * modules/unistr/u16-next: New file.
33568         * modules/unistr/u32-next: New file.
33569         * lib/unistr/u8-next.c: New file.
33570         * lib/unistr/u16-next.c: New file.
33571         * lib/unistr/u32-next.c: New file.
33572
33573         * modules/unistr/u8-prev: New file.
33574         * modules/unistr/u16-prev: New file.
33575         * modules/unistr/u32-prev: New file.
33576         * lib/unistr/u8-prev.c: New file.
33577         * lib/unistr/u16-prev.c: New file.
33578         * lib/unistr/u32-prev.c: New file.
33579
33580         * modules/unistr/u8-set: New file.
33581         * modules/unistr/u16-set: New file.
33582         * modules/unistr/u32-set: New file.
33583         * lib/unistr/u8-set.c: New file.
33584         * lib/unistr/u16-set.c: New file.
33585         * lib/unistr/u32-set.c: New file.
33586         * lib/unistr/u-set.h: New file.
33587
33588         * modules/unistr/u8-startswith: New file.
33589         * modules/unistr/u16-startswith: New file.
33590         * modules/unistr/u32-startswith: New file.
33591         * lib/unistr/u8-startswith.c: New file.
33592         * lib/unistr/u16-startswith.c: New file.
33593         * lib/unistr/u32-startswith.c: New file.
33594         * lib/unistr/u-startswith.h: New file.
33595
33596         * modules/unistr/u8-stpcpy: New file.
33597         * modules/unistr/u16-stpcpy: New file.
33598         * modules/unistr/u32-stpcpy: New file.
33599         * lib/unistr/u8-stpcpy.c: New file.
33600         * lib/unistr/u16-stpcpy.c: New file.
33601         * lib/unistr/u32-stpcpy.c: New file.
33602         * lib/unistr/u-stpcpy.h: New file.
33603
33604         * modules/unistr/u8-stpncpy: New file.
33605         * modules/unistr/u16-stpncpy: New file.
33606         * modules/unistr/u32-stpncpy: New file.
33607         * lib/unistr/u8-stpncpy.c: New file.
33608         * lib/unistr/u16-stpncpy.c: New file.
33609         * lib/unistr/u32-stpncpy.c: New file.
33610         * lib/unistr/u-stpncpy.h: New file.
33611
33612         * modules/unistr/u8-strcat: New file.
33613         * modules/unistr/u16-strcat: New file.
33614         * modules/unistr/u32-strcat: New file.
33615         * lib/unistr/u8-strcat.c: New file.
33616         * lib/unistr/u16-strcat.c: New file.
33617         * lib/unistr/u32-strcat.c: New file.
33618         * lib/unistr/u-strcat.h: New file.
33619
33620         * modules/unistr/u8-strchr: New file.
33621         * modules/unistr/u16-strchr: New file.
33622         * modules/unistr/u32-strchr: New file.
33623         * lib/unistr/u8-strchr.c: New file.
33624         * lib/unistr/u16-strchr.c: New file.
33625         * lib/unistr/u32-strchr.c: New file.
33626
33627         * modules/unistr/u8-strcmp: New file.
33628         * modules/unistr/u16-strcmp: New file.
33629         * modules/unistr/u32-strcmp: New file.
33630         * lib/unistr/u8-strcmp.c: New file.
33631         * lib/unistr/u16-strcmp.c: New file.
33632         * lib/unistr/u32-strcmp.c: New file.
33633
33634         * modules/unistr/u8-strcpy: New file.
33635         * modules/unistr/u16-strcpy: New file.
33636         * modules/unistr/u32-strcpy: New file.
33637         * lib/unistr/u8-strcpy.c: New file.
33638         * lib/unistr/u16-strcpy.c: New file.
33639         * lib/unistr/u32-strcpy.c: New file.
33640         * lib/unistr/u-strcpy.h: New file.
33641
33642         * modules/unistr/u8-strcspn: New file.
33643         * modules/unistr/u16-strcspn: New file.
33644         * modules/unistr/u32-strcspn: New file.
33645         * lib/unistr/u8-strcspn.c: New file.
33646         * lib/unistr/u16-strcspn.c: New file.
33647         * lib/unistr/u32-strcspn.c: New file.
33648         * lib/unistr/u-strcspn.h: New file.
33649
33650         * modules/unistr/u8-strdup: New file.
33651         * modules/unistr/u16-strdup: New file.
33652         * modules/unistr/u32-strdup: New file.
33653         * lib/unistr/u8-strdup.c: New file.
33654         * lib/unistr/u16-strdup.c: New file.
33655         * lib/unistr/u32-strdup.c: New file.
33656         * lib/unistr/u-strdup.h: New file.
33657
33658         * modules/unistr/u8-strlen: New file.
33659         * modules/unistr/u16-strlen: New file.
33660         * modules/unistr/u32-strlen: New file.
33661         * lib/unistr/u8-strlen.c: New file.
33662         * lib/unistr/u16-strlen.c: New file.
33663         * lib/unistr/u32-strlen.c: New file.
33664         * lib/unistr/u-strlen.h: New file.
33665
33666         * modules/unistr/u8-strmblen: New file.
33667         * modules/unistr/u16-strmblen: New file.
33668         * modules/unistr/u32-strmblen: New file.
33669         * lib/unistr/u8-strmblen.c: New file.
33670         * lib/unistr/u16-strmblen.c: New file.
33671         * lib/unistr/u32-strmblen.c: New file.
33672
33673         * modules/unistr/u8-strmbtouc: New file.
33674         * modules/unistr/u16-strmbtouc: New file.
33675         * modules/unistr/u32-strmbtouc: New file.
33676         * lib/unistr/u8-strmbtouc.c: New file.
33677         * lib/unistr/u16-strmbtouc.c: New file.
33678         * lib/unistr/u32-strmbtouc.c: New file.
33679
33680         * modules/unistr/u8-strncat: New file.
33681         * modules/unistr/u16-strncat: New file.
33682         * modules/unistr/u32-strncat: New file.
33683         * lib/unistr/u8-strncat.c: New file.
33684         * lib/unistr/u16-strncat.c: New file.
33685         * lib/unistr/u32-strncat.c: New file.
33686         * lib/unistr/u-strncat.h: New file.
33687
33688         * modules/unistr/u8-strncmp: New file.
33689         * modules/unistr/u16-strncmp: New file.
33690         * modules/unistr/u32-strncmp: New file.
33691         * lib/unistr/u8-strncmp.c: New file.
33692         * lib/unistr/u16-strncmp.c: New file.
33693         * lib/unistr/u32-strncmp.c: New file.
33694
33695         * modules/unistr/u8-strncpy: New file.
33696         * modules/unistr/u16-strncpy: New file.
33697         * modules/unistr/u32-strncpy: New file.
33698         * lib/unistr/u8-strncpy.c: New file.
33699         * lib/unistr/u16-strncpy.c: New file.
33700         * lib/unistr/u32-strncpy.c: New file.
33701         * lib/unistr/u-strncpy.h: New file.
33702
33703         * modules/unistr/u8-strnlen: New file.
33704         * modules/unistr/u16-strnlen: New file.
33705         * modules/unistr/u32-strnlen: New file.
33706         * lib/unistr/u8-strnlen.c: New file.
33707         * lib/unistr/u16-strnlen.c: New file.
33708         * lib/unistr/u32-strnlen.c: New file.
33709         * lib/unistr/u-strnlen.h: New file.
33710
33711         * modules/unistr/u8-strpbrk: New file.
33712         * modules/unistr/u16-strpbrk: New file.
33713         * modules/unistr/u32-strpbrk: New file.
33714         * lib/unistr/u8-strpbrk.c: New file.
33715         * lib/unistr/u16-strpbrk.c: New file.
33716         * lib/unistr/u32-strpbrk.c: New file.
33717         * lib/unistr/u-strpbrk.h: New file.
33718
33719         * modules/unistr/u8-strrchr: New file.
33720         * modules/unistr/u16-strrchr: New file.
33721         * modules/unistr/u32-strrchr: New file.
33722         * lib/unistr/u8-strrchr.c: New file.
33723         * lib/unistr/u16-strrchr.c: New file.
33724         * lib/unistr/u32-strrchr.c: New file.
33725
33726         * modules/unistr/u8-strspn: New file.
33727         * modules/unistr/u16-strspn: New file.
33728         * modules/unistr/u32-strspn: New file.
33729         * lib/unistr/u8-strspn.c: New file.
33730         * lib/unistr/u16-strspn.c: New file.
33731         * lib/unistr/u32-strspn.c: New file.
33732         * lib/unistr/u-strspn.h: New file.
33733
33734         * modules/unistr/u8-strstr: New file.
33735         * modules/unistr/u16-strstr: New file.
33736         * modules/unistr/u32-strstr: New file.
33737         * lib/unistr/u8-strstr.c: New file.
33738         * lib/unistr/u16-strstr.c: New file.
33739         * lib/unistr/u32-strstr.c: New file.
33740         * lib/unistr/u-strstr.h: New file.
33741
33742         * modules/unistr/u8-strtok: New file.
33743         * modules/unistr/u16-strtok: New file.
33744         * modules/unistr/u32-strtok: New file.
33745         * lib/unistr/u8-strtok.c: New file.
33746         * lib/unistr/u16-strtok.c: New file.
33747         * lib/unistr/u32-strtok.c: New file.
33748         * lib/unistr/u-strtok.h: New file.
33749
33750         * modules/unistr/u8-uctomb: New file.
33751         * modules/unistr/u16-uctomb: New file.
33752         * modules/unistr/u32-uctomb: New file.
33753         * lib/unistr/u8-uctomb.c: New file.
33754         * lib/unistr/u16-uctomb.c: New file.
33755         * lib/unistr/u32-uctomb.c: New file.
33756
33757         * MODULES.html.sh (Unicode string functions): Add the new modules.
33758
33759 2007-01-08  Bruno Haible  <bruno@clisp.org>
33760
33761         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
33762         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
33763         subdirectories.
33764
33765 2007-01-08  Karl Berry  <karl@gnu.org>
33766
33767         * doc/error.texi: mention that main() fns must set program_name
33768         when progname is used.
33769
33770 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
33771
33772         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
33773         WCTYPE_H is empty, for the benefit of builds from non-distclean
33774         directories.  Problem reported by Eric Blake in
33775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
33776
33777 2007-01-08  Bruno Haible  <bruno@clisp.org>
33778
33779         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
33780         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
33781         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
33782         PROVIDE_CANONICALIZE_FILENAME_MODE.
33783         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
33784
33785 2007-01-08  Bruno Haible  <bruno@clisp.org>
33786
33787         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
33788         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
33789         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
33790         * lib/fts.c: Likewise.
33791         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
33792
33793 2006-12-25  Bruno Haible  <bruno@clisp.org>
33794
33795         * modules/utf8-ucs4-safe: New file.
33796         * lib/utf8-ucs4-safe.h: New file.
33797         * lib/unistr/utf8-ucs4-safe.c: New file.
33798
33799         * modules/utf16-ucs4-safe: New file.
33800         * lib/utf16-ucs4-safe.h: New file.
33801         * lib/unistr/utf16-ucs4-safe.c: New file.
33802
33803         * MODULES.html.sh (Unicode string functions): Add the new modules.
33804
33805 2007-01-08  Bruno Haible  <bruno@clisp.org>
33806
33807         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
33808         (Depends-on): Add unitypes.
33809         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
33810         (u8_mbtouc_aux): Move out to separate file.
33811         (u8_mbtouc): Use ucs4_t, uint8_t types.
33812         * lib/unistr/utf8-ucs4.c: New file.
33813
33814         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
33815         (Depends-on): Add unitypes.
33816         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
33817         (u16_mbtouc_aux): Move out to separate file.
33818         (u16_mbtouc): Use ucs4_t, uint16_t types.
33819         * lib/unistr/utf16-ucs4.c: New file.
33820
33821         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
33822         (Depends-on): Add unitypes.
33823         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
33824         (u8_uctomb_aux): Move out to separate file.
33825         (u8_uctomb): Use ucs4_t, uint8_t types.
33826         * lib/unistr/ucs4-utf8.c: New file.
33827
33828         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
33829         (Depends-on): Add unitypes.
33830         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
33831         (u16_uctomb_aux): Move out to separate file.
33832         (u16_uctomb): Use ucs4_t, uint16_t types.
33833         * lib/unistr/ucs4-utf16.c: New file.
33834
33835 2006-12-25  Bruno Haible  <bruno@clisp.org>
33836
33837         * modules/unitypes: New file.
33838         * lib/unitypes.h: New file.
33839         * MODULES.html.sh (func_all_modules): New section "Unicode string
33840         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
33841         this section. Add unitypes.
33842
33843 2007-01-08  Bruno Haible  <bruno@clisp.org>
33844
33845         Avoid variable names that conflict with those from libtool.
33846         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
33847         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
33848         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
33849         library_names_spec to acl_library_names_spec, hardcode_* to
33850         acl_hardcode_*.
33851         Reported by Ralf Wildenhues.
33852
33853 2007-01-08  Bruno Haible  <bruno@clisp.org>
33854
33855         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
33856         definition.
33857         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
33858         definition.
33859         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
33860         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
33861         definition.
33862         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
33863         definition.
33864         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
33865         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
33866         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
33867         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
33868         definition.
33869         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
33870         definition.
33871         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
33872         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
33873         GC_USE_<algorithm>.
33874         * lib/gc-libgcrypt.c: Likewise.
33875         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
33876         * modules/gc-arctwo (configure.ac): Likewise.
33877         * modules/gc-des (configure.ac): Likewise.
33878         * modules/gc-hmac-md5 (configure.ac): Likewise.
33879         * modules/gc-hmac-sha1 (configure.ac): Likewise.
33880         * modules/gc-md2 (configure.ac): Likewise.
33881         * modules/gc-md4 (configure.ac): Likewise.
33882         * modules/gc-md5 (configure.ac): Likewise.
33883         * modules/gc-random (configure.ac): Likewise.
33884         * modules/gc-rijndael (configure.ac): Likewise.
33885         * modules/gc-sha1 (configure.ac): Likewise.
33886
33887 2007-01-08  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
33890         macro definition.
33891         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
33892         definition.
33893         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
33894         definition.
33895         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
33896         * modules/fcntl-safer (configure.ac): Likewise.
33897         * modules/fopen-safer (configure.ac): Likewise.
33898         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
33899         GNULIB_FWRITEERROR macro definition.
33900
33901 2007-01-08  Bruno Haible  <bruno@clisp.org>
33902
33903         * m4/gnulib-common.m4: New file.
33904         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
33905         (func_get_filelist): Add m4/gnulib-common.m4.
33906
33907 2007-01-08  Bruno Haible  <bruno@clisp.org>
33908
33909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
33910         command.
33911
33912 2007-01-08  Jim Meyering  <jim@meyering.net>
33913
33914         Use a more robust test for a "can't happen" condition.
33915         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
33916         narrowed the st_size value.  Presuming the "can't happen" condition
33917         is true, that narrowing could conceivably convert an invalid st_size
33918         value into a valid one.  Instead, use a change based on Matthew
33919         Woehlke's original patch.
33920
33921         Slight readability improvement: use an assert-like macro
33922         in place of literal "abort ()" uses.
33923         * lib/fts.c (fts_assert): Define.
33924         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
33925         Use this macro instead of a bare 'abort'.
33926
33927 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
33928
33929         Don't worry about using IRIX 5.3's wctype.h broken definitions;
33930         simply work around them.
33931         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
33932         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
33933         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
33934         declaring.
33935         Don't bother to define as macros, since the standard doesn't require it.
33936         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
33937         longer worry about IRIX 5.3.
33938         (HAVE_WCTYPE_CTMP_BUG): Remove.
33939
33940 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33941
33942         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
33943         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
33944         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33945         Problems reported by Georg Schwarz for IRIX 5.3.
33946
33947         * gnulib-tool (autoconf_minversion): Take the maximum version number
33948         found, not the minimum.  Problem reported by James Youngman.
33949
33950 2007-01-03  Karl Berry  <karl@gnu.org>
33951
33952         * doc/error.texi: new file, explaining interaction with progname.
33953         * doc/gnulib.texi: include it.  Update copyright.
33954
33955 2007-01-03  Simon Josefsson  <simon@josefsson.org>
33956
33957         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
33958         AC_CANONICAL_HOST, to improve autobuild outputs.
33959
33960 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
33961             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33962
33963         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
33964         sockets, server sockets, and other file descriptors.  Count errors
33965         to compute the return value.  Reorder the code a bit to be easier
33966         to follow.  Don't set event bits that were not requested (except
33967         POLLERR and POLLHUP).
33968
33969 2007-01-01  Bruno Haible  <bruno@clisp.org>
33970
33971         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
33972
33973 2007-01-03  Jim Meyering  <jim@meyering.net>
33974
33975         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
33976
33977 2007-01-02  Bruno Haible  <bruno@clisp.org>
33978
33979         * modules/settime (Include): Require timespec.h.
33980         * modules/nanosleep (Include): Likewise.
33981
33982 2007-01-01  Bruno Haible  <bruno@clisp.org>
33983
33984         * gnulib-tool (func_emit_copyright_notice): Bump year.
33985         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
33986
33987 2007-01-01  Bruno Haible  <bruno@clisp.org>
33988
33989         Improve support for OpenBSD.
33990         * build-aux/config.rpath (libname_spec): Export.
33991         (library_names_spec): New variable. Export.
33992         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
33993         library_names_spec from the config.rpath output. Locate shared library
33994         through the name pattern in library_names_spec.
33995
33996 2007-01-01  Eric Blake  <ebb9@byu.net>
33997
33998         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
33999
34000 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
34001
34002         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
34003         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
34004         assume the C locale, and avoid an "eval" that could cause trouble.
34005         Problem with SORT reported by Bob Proulx.
34006
34007         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
34008         Define.  Trivial patch from Henning Nielsen Lund, originally
34009         sent to bug-grep@gnu.org today.
34010
34011 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34012
34013         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
34014         struct stat.  Problem reported by Henning Nielsen Lund.
34015         * lib/acl.c: Include acl.h first, to check interface.  Don't
34016         bother to include sys/types.h and sys/stat.h again.
34017
34018 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34019
34020         Import the following change from libc; problem reported by
34021         Sven Verdoolaege.
34022
34023         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
34024
34025         [BZ #1373]
34026         * lib/argp.h: Remove __NTH for __argp_usage inline function.
34027
34028 2006-12-28  Jim Meyering  <jim@meyering.net>
34029
34030         * build-aux/announce-gen: Do not assume that the package
34031         builds any of tar.gz, tar.bz2, and .xdelta files.
34032         Suggestion from Simon Josefsson.
34033
34034 2006-12-28  Simon Josefsson  <simon@josefsson.org>
34035
34036         * modules/announce-gen: New file.
34037
34038 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
34039
34040         * lib/mbchar.h: Just include <wctype.h>; the wctype module
34041         handles its gotchas now.
34042         * lib/mbswidth.c: Likewise.
34043         * lib/wcwidth.h: Likewise.
34044         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
34045         and iswcntrl; the wctype module does this stuff now.
34046         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34048         * modules/mbchar (Depends-on): Add wctype.
34049         * modules/mbswidth (Depends-on): Likewise.
34050         * modules/wcwidth (Depends-on): Likewise.
34051
34052 2006-12-27  Eric Blake  <ebb9@byu.net>
34053
34054         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
34055         module uses more than what <wctype.h> is required to provide.
34056
34057 2006-12-26  Eric Blake  <ebb9@byu.net>
34058
34059         * gnulib-tool (sed_extract_prog): Avoid space-tab.
34060
34061 2006-12-26  Eric Blake  <ebb9@byu.net>
34062
34063         * modules/absolute-header: New module.
34064         * modules/fcntl (Depends-on): Depend on it.
34065         * modules/inttypes (Depends-on): Likewise.
34066         * modules/stdint (Depends-on): Likewise.
34067         * modules/sys_stat (Depends-on): Likewise.
34068         * modules/wctype (Depends-on): Likewise.
34069         * MODULES.html.sh (Support for building libraries and
34070         executables): Document it.
34071
34072 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34073
34074         * gnulib-tool (SED): Remove, undoing previous change.
34075         The problem was that it broke coreutils on Solaris, because
34076         "sed --posix" leaked into a makefile.
34077         (sed): New alias, if 'alias' and GNU sed.
34078
34079 2006-12-24  Jim Meyering  <jim@meyering.net>
34080
34081         Work around an fchownat bug in glibc-2.4:
34082         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
34083         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
34084         in spite of the -P option.
34085         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
34086         New macros.
34087         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
34088         * modules/openat (Files): Add lib/fchownat.c.
34089         * lib/openat.c (fchownat): Don't define here.  Move to...
34090         * lib/fchownat.c: ...this new file.
34091
34092 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34093
34094         Fix bug reported by Bruno Haible in
34095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
34096         where quotearg.c didn't compile on Mac OS X 10.2 because it
34097         lacks <wchar.h> and wint_t.
34098         * lib/wctype_.h (__wctype_wint_t): New type.
34099         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
34100         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
34101         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
34102         Arg is now of type __wctype_wint_t, not wint_t.
34103         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
34104         substitute HAVE_WINT_T.
34105         * modules/wctype (Files): Add m4/wint_t.m4.
34106         (wctype.h): Substitute HAVE_WINT_T.
34107
34108 2006-12-23  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
34111
34112 2006-12-23  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
34115         S_ISLNK.
34116         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
34117         mingw.
34118
34119 2006-12-22  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/copy-file.c: Include acl.h.
34122         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
34123         Close the file descriptors only after being done with copy_acl.
34124         * modules/copy-file (Depends-on): Add acl.
34125
34126 2006-12-22  Bruno Haible  <bruno@clisp.org>
34127
34128         * gnulib-tool (SED): New variable.
34129         Use $SED instead of sed everywhere.
34130
34131 2006-12-22  Bruno Haible  <bruno@clisp.org>
34132
34133         * modules/no-c++: New file.
34134         * m4/no-c++.m4: New file.
34135         * MODULES.html.sh (Support for building libraries and executables):
34136         Add no-c++.
34137
34138 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
34139
34140         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34141         Include <limits.h>, and use its INT_MAX to rewrite the
34142         j loop so that it does not overflow 'int'.  Problem reported by
34143         Ralf Wildenhues in
34144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
34145         Play it safe by shifting left by 1 rather than multiplying by 2,
34146         as GCC is less likely to optimize this away when the value
34147         is signed (when it assumes overflow leads to undefined behavior).
34148         Also, don't assume time_t uses two's complement.
34149
34150 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
34151
34152         * MODULES.html.sh: New module wctype.
34153         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
34154         * lib/fnmatch.c: Don't bother to include <wchar.h> before
34155         <wctype.h>, since the new wctype module should fix this.
34156         * lib/quotearg.c: Include <wctype.h> unconditionally, since
34157         the wctype module should arrange for it.
34158         * lib/regex_internal.h: Likewise.
34159         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
34160         since the wctype module should handle this now.
34161         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
34162         * modules/fnmatch (Depends-on): Add wctype.
34163         * modules/quotearg (Depends-on): Likewise.
34164         * modules/regex (Depends-on): Likewise.
34165
34166 2006-12-19  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/strdup.h [C++]: Wrap definitions in extern "C".
34169         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
34170
34171 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34172
34173         * modules/savewd (Depends-on): Fix dependency on fcntl.
34174
34175 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34176
34177         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
34178         conforms to C99, rather than relying on the user's environment
34179         setting of STDINT_H.
34180
34181 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34182         and Eric Blake  <ebb9@byu.net>
34183
34184         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
34185         This is more consistent with the other defines here.
34186         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
34187         Port to z/OS.  Problem reported by Paul Gilmartin.
34188         Change local vars to use gl_ prefix rather than ac_.
34189         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
34190         with other defines.
34191         * modules/double-slash-root: New module.
34192         * modules/dirname (Files): Remove m4/double-slash-root.m4.
34193         (Depends-on): Add double-slash-root.
34194         * MODULES.html.sh (File system functions): Mention new module.
34195
34196 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
34197
34198         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
34199         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
34200         This is for the benefit of gzip, which doesn't do i18n.
34201
34202 2006-12-12  Jim Meyering  <jim@meyering.net>
34203
34204         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
34205         Reported by Andreas Schwab <schwab@suse.de>.
34206
34207 2006-12-12  Bruno Haible  <bruno@clisp.org>
34208
34209         Merge these changes.
34210         2006-09-05  Bruno Haible  <bruno@clisp.org>
34211         * lib/iconvme.c (iconv_string): No need to save and restore errno when
34212         iconv_alloc succeeded.
34213         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
34214         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
34215         test for " && dest " at the end - dest is always != NULL there. Call
34216         iconv with 4xNULL arguments initially, to reset the state. Call iconv
34217         with 2xNULL arguments, also to flush the state storage. Handle the
34218         IRIX iconv behaviour. Realloc the final result, to throw away unused
34219         memory.
34220
34221 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
34222
34223         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
34224         and fchmodat unconditionally, since glibc 2.4 has them.
34225         Problem reported by Arkadiusz Miskiewicz.
34226
34227 2006-12-10  Bruno Haible  <bruno@clisp.org>
34228
34229         * gnulib-tool (func_import): Show the include files only for those
34230         modules that are copied and specified.
34231         Reported by Karl Berry.
34232
34233 2006-12-08  Jim Meyering  <jim@meyering.net>
34234
34235         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
34236         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
34237
34238         * build-aux/announce-gen: Add two new options, both optional:
34239         --bootstrap-tools=TOOL_LIST
34240               a comma-separated list of tools, e.g.,
34241               autoconf,automake,bison,gnulib
34242         --gnulib-snapshot-date=DATE
34243               if gnulib is in the bootstrap tool list,
34244               then report this as the snapshot date.
34245               If not specified, use the current date/time.
34246               If you specify a date here, be sure it's UTC.
34247
34248 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34249
34250         * tests/test-argp-2.sh: Fix test to match actual output.
34251         (func_compare): Fix sed script to be portable.
34252
34253 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34254
34255         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
34256         workaround for this case.  It is not autoconfigured now; offhand
34257         it's hard to see how to autoconfigure it.
34258
34259 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34260
34261         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
34262         a directory that is about to be chowned.  Such a directory's
34263         initial file permissions should permit the owner only and this
34264         should not be changed until after the chown, since the group and
34265         other bits would be incorrect if they granted permission before
34266         the chown.
34267
34268         Fix porting problem for iswctype reported by Georg Schwarz in:
34269         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
34270         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
34271         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
34272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
34273         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34274
34275 2006-12-03  Jim Meyering  <jim@meyering.net>
34276
34277         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
34278         p->fts_statp may not yet be defined.
34279         (fts_read): Instead, set it in the caller, once p->fts_statp is
34280         sure to be defined, and corresponds to a top-level directory.
34281         This bug made du -x fail.  Here's the coreutils test case:
34282         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
34283         Reported by Mike Frysinger.
34284
34285 2006-12-01  Jim Meyering  <jim@meyering.net>
34286
34287         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
34288         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
34289         Reported by Simon Josefsson.
34290
34291 2006-11-30  Jim Meyering  <jim@meyering.net>
34292
34293         * m4/warning.m4: Use the all-permissive copyright notice
34294         recommended by RMS (rather than LGPL).
34295         * m4/vararrays.m4: Likewise.
34296         * m4/flexmember.m4: Likewise.
34297
34298 2006-11-29  Bruno Haible  <bruno@clisp.org>
34299
34300         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34301         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
34302         using +=.
34303         Reported by Simon Josefsson <simon@josefsson.org>.
34304
34305 2006-11-28  James Youngman <jay@gnu.org>
34306
34307         * README: Advise users that they might find the bug-gnulib@gnu.org
34308         and autotools-announce@gnu.org mailing lists useful.
34309
34310 2006-11-28  Bruno Haible  <bruno@clisp.org>
34311
34312         * m4/ptrdiff_max.m4: Remove file.
34313
34314 2006-11-21  Bruno Haible  <bruno@clisp.org>
34315
34316         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
34317         _AC_COMPUTE_INT.
34318         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34319         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
34320         _AC_COMPUTE_INT.
34321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34322         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
34323         _AC_COMPUTE_INT.
34324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34325
34326 2006-11-28  Jim Meyering  <jim@meyering.net>
34327
34328         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
34329         warning from "gcc -Wshadow" about shadowing the builtin.
34330
34331 2006-11-27  Bruno Haible  <bruno@clisp.org>
34332
34333         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
34334         _AC_COMPUTE_INT.
34335         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34336
34337 2006-11-27  Bruno Haible  <bruno@clisp.org>
34338             Paul Eggert  <eggert@cs.ucla.edu>
34339
34340         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
34341
34342 2006-11-26  Bruno Haible  <bruno@clisp.org>
34343
34344         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34345         noinst_LTLIBRARIES.
34346
34347 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34348             Bruno Haible  <bruno@clisp.org>
34349
34350         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
34351         if compiling with "gcc -ansi".
34352
34353 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34354
34355         Fix some incompatibilities with gcc -ansi -pedantic.
34356         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
34357         if compiling pedantically with GCC, unless it's C99 or later.
34358         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
34359         it mishandles gcc -ansi -pedantic as well.
34360         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
34361         if gcc -pedantic.
34362         * lib/regexec.c (check_node_accept_bytes): Don't use auto
34363         initializers for struct if -pedantic, unless it's C99 or later.
34364
34365 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
34366
34367         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
34368         Don't close an fd more than once. Identical atimes indicate
34369         success, not failure.
34370
34371 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
34372
34373         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
34374
34375 2006-11-23  Jim Meyering  <jim@meyering.net>
34376
34377         * build-aux/announce-gen: New file.  From coreutils.
34378
34379 2006-11-22  Jim Meyering  <jim@meyering.net>
34380
34381         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
34382         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
34383         (fts_read): Use a temporary to narrow the overused st_size member
34384         before using it in a switch statement.  Reported by Matthew Woehlke.
34385
34386         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
34387         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34388
34389 2006-11-20  Bruno Haible  <bruno@clisp.org>
34390
34391         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
34392         changequote instead of pairs of brackets.
34393         Reported by Andreas Schwab <schwab@suse.de>.
34394
34395 2006-11-21  Jim Meyering  <jim@meyering.net>
34396
34397         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
34398         so as to remain compatible with older compilers.
34399         Patch from Michael Deutschmann.
34400
34401 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34402
34403         * MODULES.html.sh (File system functions): Add openat.
34404
34405         * lib/openat.h (rpl_fstatat): New macro, if
34406         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
34407         (fstatat): Define to rpl_fstatat under the same conditions,
34408         unless COMPILING_FSTATAT.
34409         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
34410         seems to have the bug.
34411         * lib/fstatat.c: New file.
34412         * modules/openat (Files): Add it.
34413
34414 2006-11-20  Bruno Haible  <bruno@clisp.org>
34415
34416         * Makefile: New file.
34417
34418 2006-11-20  Jim Meyering  <jim@meyering.net>
34419
34420         The beginnings of syntax-related checks for gnulib.
34421         * lib/Makefile: New file.
34422         * lib/t-idcache: New script.  Ensure that the two halves of
34423         idcache.c stay in sync.
34424
34425         * lib/idcache.c: Adjust comments in user- and group- portions to
34426         be more accurate, and to be consistent with one another.
34427
34428 2006-11-20  Jim Meyering  <jim@meyering.net>
34429
34430         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
34431         continue using the flexible array member (thus, this module performs
34432         half as many malloc calls), with the addition that...
34433         (getgroup, getuser): Consistently record a non-match via an empty
34434         "name" string, and map an empty string match to a NULL return value.
34435         * modules/idcache (Depends-on): Re-add flexmember.
34436
34437         * lib/idcache.c (getuser): Remove all uses of the register keyword.
34438         (getuidbyname, getgroup, getgidbyname): Likewise.
34439
34440         Use cleaner syntax: NULL rather than 0.
34441         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
34442
34443 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34444
34445         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
34446         It mishandled the case where the group was missing.
34447         Problem reported by Greg Schafer.
34448         * modules/idcache: Likewise.
34449
34450 2006-11-18  Jim Meyering  <jim@meyering.net>
34451
34452         * check-module (%exempt_header): Add exception for some
34453         conditionally-included headers.
34454
34455         * modules/i-ring (Depends-on): Add verify.
34456         (License): Change to LGPL.
34457
34458 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34459
34460         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
34461         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
34462         and inttostr.h.  Use snprintf rather than uinttostr, so that
34463         LGPLed code doesn't depend on GPLed.
34464
34465 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34466
34467         * modules/inline (License): Change from GPL to LGPL.
34468
34469 2006-11-17  Jim Meyering  <jim@meyering.net>
34470
34471         * modules/d-type (License): Switch to LGPL.
34472
34473 2006-11-15  Bruno Haible  <bruno@clisp.org>
34474
34475         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
34476
34477 2006-11-15  Eric Blake  <ebb9@byu.net>
34478
34479         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
34480         the module dependency.
34481
34482 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34483             Bruno Haible  <bruno@clisp.org>
34484
34485         * gnulib-tool (func_create_testdir): Add license consistency check.
34486
34487 2006-11-15  Eric Blake  <ebb9@byu.net>
34488
34489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
34490         random "(cached)" in configure output.
34491
34492 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34493
34494         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
34495         test for conforming inttypes.h is both announced and cached.
34496
34497         * MODULES.html.sh (seen_modules, seen_files): New variables.
34498         (func_module): Rewrite to use a few less gnulib-tool and sed
34499         invocations.  Avoid a couple of quadratic algorithms for ...
34500         (missed_modules, missed_files): ... these, with ...
34501         (func_append, func_tmpdir): ... these new functions, from
34502         gnulib-tool.  Analogously, install traps for cleanup.
34503
34504         * tests/test-gc.c (main): Remove unused variables.
34505         * tests/test-read-file.c: Include stdlib.h, for 'free'.
34506
34507 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
34508
34509         * modules/inttostr (License): Change to LGPL.
34510
34511 2006-11-14  Eric Blake  <ebb9@byu.net>
34512
34513         * modules/tempname (License): Change to LGPL.
34514
34515 2006-11-14  Eric Blake  <ebb9@byu.net>
34516
34517         * doc/functions.texi (Function Portability): *printf functions on
34518         Cygwin now understand all POSIX size specifiers.
34519
34520 2006-11-14  Bruno Haible  <bruno@clisp.org>
34521
34522         * modules/c-ctype (License): Change to LGPL.
34523
34524 2006-11-12  Bruno Haible  <bruno@clisp.org>
34525
34526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34527         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
34528         for GNOME libraries, for which the include files are installed in
34529         subdirectories of $prefix/include.
34530
34531 2006-11-12  Bruno Haible  <bruno@clisp.org>
34532
34533         * m4/lib-link.m4: Require at least autoconf-2.54.
34534         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
34535         name to underscores for the --with option.
34536
34537 2006-11-13  Bruno Haible  <bruno@clisp.org>
34538
34539         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
34540         the tests directory.
34541         Reported by Ralf Wildenhues.
34542
34543 2006-11-13  Bruno Haible  <bruno@clisp.org>
34544
34545         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
34546         (func_emit_initmacro_end): Undo the override here.
34547         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
34548         Works around the famous automake error in coreutils.
34549
34550 2006-11-13  Eric Blake  <ebb9@byu.net>
34551
34552         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
34553         element, not its node.
34554
34555 2006-11-12  Bruno Haible  <bruno@clisp.org>
34556
34557         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
34558         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
34559
34560 2006-11-12  Bruno Haible  <bruno@clisp.org>
34561
34562         * gnulib-tool: New option --local-symlink.
34563         (func_usage): Document it.
34564         (lsymbolic): New variable.
34565         (func_import, func_create_testdir): If --symlink was not specified,
34566         test whether --local-symlink was specified and the file comes from
34567         the local_gnulib_dir.
34568
34569 2006-11-12  Bruno Haible  <bruno@clisp.org>
34570
34571         * gnulib-tool (func_ln): New function.
34572         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
34573
34574 2006-11-12  Bruno Haible  <bruno@clisp.org>
34575
34576         Finish support for source files in subdirectories.
34577         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
34578         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
34579         AUTOMAKE_OPTIONS.
34580         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
34581
34582 2006-11-12  Bruno Haible  <bruno@clisp.org>
34583
34584         * gnulib-tool (func_get_automake_snippet): Synthesize also an
34585         EXTRA_lib_SOURCES augmentation.
34586         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
34587
34588 2006-11-12  Jim Meyering  <jim@meyering.net>
34589
34590         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
34591         file descriptors.  This also averts a failure on systems with
34592         native openat support when a traversed directory lacks "x" access.
34593         * lib/fts_.h: Include "i-ring.h"
34594         (struct FTS) [fts_fd_ring]: New member.
34595         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
34596         (FCHDIR): Add parentheses.
34597         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
34598         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
34599         When descending, rather than simply closing the previous
34600         fts_cwd_fd value, push that file descriptor onto the ring.
34601         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
34602         (fts_open): Initialize the new fd_ring member.
34603         (fts_close): Clear the ring.
34604         (fts_safe_changedir): When possible, use our new fd_ring to skip
34605         the diropen and fstat and dev/ino comparison that would normally
34606         accompany a virtual `chdir ("..")'.
34607
34608         * modules/fts (Depends-on): Add i-ring.
34609         * modules/i-ring: New module.
34610         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
34611         * m4/i-ring.m4: New file.
34612
34613 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34614
34615         * gnulib-tool (func_create_testdir): Fix replacement of
34616         `build-aux' in configure.ac.  Run autotools in gltests
34617         subdirectory.
34618         (func_create_testdir, func_create_megatestdir, test): There is
34619         no need for '--force' in most autotool invocations in a new
34620         tree.  Actually fail the whole test if any of the tools, or the
34621         configure or make stages fail.
34622
34623         Sync from Automake.
34624         * build-aux/gnupload: Revert last change.  Add pointer to upload
34625         instructions of the GNU Maintenance Instructions.
34626         Suggestion by Karl Berry.
34627
34628 2006-11-10  Jim Meyering  <jim@meyering.net>
34629
34630         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
34631
34632 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34633
34634         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
34635         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
34636         (bind_textdomain_codeset) [! ENABLE_NLS]:
34637         Evaluate all the arguments.  That way, callers get compatible behavior
34638         if the arguments have side effects.  Also, it avoids some GCC
34639         diagnostics in some cases; Joel E. Denny reported problems when Bison
34640         was configured with --enable-gcc-warnigs.
34641
34642 2006-11-10  Jim Meyering  <jim@meyering.net>
34643
34644         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
34645         relevant options in CFLAGS (like -O, -fno-inline) are taken into
34646         account.
34647
34648 2006-11-10  Jim Meyering  <jim@meyering.net>
34649
34650         * modules/inline: New file/module.
34651         * modules/xalloc (Files): Remove m4/inline.m4.
34652         (Depends-on): Add inline, instead.
34653         * modules/oset: Likewise.
34654         * modules/list: Likewise.
34655
34656 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34657
34658         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
34659         Problem reported by Matthew Woehlke.
34660
34661 2006-11-09  Bruno Haible  <bruno@clisp.org>
34662
34663         * lib/tempname.c (gen_tempname): Remove variant that invokes
34664         __gen_tempname.
34665         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
34666         __gen_tempname.
34667
34668 2006-11-08  Bruno Haible  <bruno@clisp.org>
34669
34670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
34671         to 'yes' instead of 'cross-compiling'.
34672
34673 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34674
34675         * lib/quotearg.h (quotearg_free): New decl.
34676         * lib/quotearg.c (quotearg_free): New function.
34677         (slot0, nslots, slotvec0, slotvec):
34678         Now file-scope so that quotearg_free can get at them.
34679
34680 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34681
34682         Sync from Automake.
34683         * build-aux/gnupload: Add missing 'gnu' to example URL.
34684         Report by Karl Berry.
34685
34686 2006-11-08  Bruno Haible  <bruno@clisp.org>
34687
34688         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
34689         Suggested by Paul Eggert.
34690
34691 2006-11-08  Jim Meyering  <jim@meyering.net>
34692
34693         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
34694         It's already included if !_LIBC.
34695         (fts_safe_changedir): Add a comment.
34696
34697 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
34698
34699         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
34700         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
34701         Matthew Woehlke.
34702
34703         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
34704         definitions up, to avoid colliding with change below.
34705         (static_inline) [HAVE_INLINE]: New macro.
34706         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
34707         Provide extern decls when !HAVE_INLINE.  Do not define unless
34708         static_inline is defined, either by us or by xmalloc.c.  Use
34709         static_inline rather than static inline.
34710         (XCALLOC): Optimize sizeof(T) = 1 case.
34711         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
34712
34713 2006-11-07  Bruno Haible  <bruno@clisp.org>
34714
34715         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
34716         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
34717         AC_C_INLINE.
34718         * modules/xalloc (Files): Add m4/inline.m4.
34719
34720 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34721
34722         * README: Fix typo.
34723         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
34724         (Miscellanous Notes): ...from this.
34725
34726 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
34727
34728         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
34729         Mention that offsetof should be used instead of sizeof.
34730         From Bruno Haible.
34731
34732 2006-11-07  Bruno Haible  <bruno@clisp.org>
34733
34734         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
34735
34736 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
34737
34738         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
34739         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
34740         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
34741         (gl_tree_add_before, gl_tree_add_after):
34742         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
34743         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
34744         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34745         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
34746         (gl_linked_add_after, gl_linked_add_at): Likewise.
34747         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
34748         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
34749         (gl_tree_add_before, gl_tree_add_after): Likewise.
34750         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
34751         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
34752         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34753
34754 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34755
34756         * lib/gl_oset.h: Use C comment style, not C++ comment style.
34757
34758 2006-11-06  Bruno Haible  <bruno@clisp.org>
34759
34760         * m4/inline.m4: New file.
34761         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
34762         * modules/list (Files): Add m4/inline.m4.
34763         * modules/oset (Files): Likewise.
34764
34765 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
34766
34767         * lib/idcache.c: Include <stddef.h>, for offsetof.
34768         (struct userid.name): Change from char * to a flexible array member.
34769         All uses changed.
34770         * modules/idcache (Depends-on): Add flexmember.
34771
34772         * MODULES.html.sh (Core language properties): New module flexmember.
34773         * modules/flexmember, m4/flexmember.m4: New files.
34774
34775         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
34776         inline functions that are identical with the old xnmalloc_inline,
34777         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
34778         that we can avoid some unnecessary integer multiplications and
34779         divisions in the common case where the element size is known at
34780         compile time.
34781         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
34782         needed.
34783         (xnboundedmalloc): Remove.
34784         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
34785         arguments, for consistency with rest of this header.
34786         (xcharalloc): Rewrite using XNMALLOC.
34787         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
34788         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
34789         versions have been moved to lib/xalloc.h and renamed to be the
34790         non-*_inline versions.
34791         (xmalloc, xrealloc): Implement without reference to the xnmalloc
34792         and xnrealloc functions, since those functions are now inline and
34793         now call us.
34794         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
34795         renaming described above.
34796         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
34797         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
34798         captures the dependency in AC_C_INLINE.
34799
34800         New module canonicalize-lgpl, proposed by Charles Wilson in
34801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
34802         with a few small changes afterwards.
34803         * MODULES.html.sh (File system functions): New module
34804         canonicalize-lgpl.
34805         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
34806         and canonicalize_file_name.
34807         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
34808         * modules/canonicalize-lgpl: New files.
34809
34810 2006-11-05  Bruno Haible  <bruno@clisp.org>
34811
34812         * gnulib-tool (func_import, func_create_testdir): Create directories
34813         also for files in subdirectories of lib/.
34814
34815 2006-11-05  Bruno Haible  <bruno@clisp.org>
34816
34817         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
34818         ANSI C compliant.
34819
34820 2006-11-03  Bruno Haible  <bruno@clisp.org>
34821
34822         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
34823         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
34824         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
34825         (xnboundedmalloc): New inline function.
34826         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
34827         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
34828         xmalloc.
34829         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
34830         xmalloc.
34831         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
34832         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
34833         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
34834         xmalloc.
34835         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
34836         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
34837         xmalloc.
34838         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
34839         gl_tree_add_after): Use XMALLOC instead of xmalloc.
34840         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
34841         xmalloc.
34842         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
34843         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
34844         gl_tree_add_after): Use XMALLOC instead of xmalloc.
34845         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
34846         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
34847         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
34848         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
34849
34850 2006-11-03  Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/c-ctype.h [C++]: Define functions without name mangling.
34853         * lib/fwriteerror.h [C++]: Likewise.
34854         * lib/gcd.h [C++]: Likewise.
34855         * lib/linebreak.h [C++]: Likewise.
34856
34857 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34858
34859         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
34860         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
34861         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
34862         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
34863         Check for functions and headers just once.
34864         Check for declaration of canonicalize_file_name.
34865         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
34866
34867 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34868
34869         * gnulib-tool (func_import): Fix typo in actioncmd.
34870
34871 2006-11-02  Bruno Haible  <bruno@clisp.org>
34872
34873         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
34874         newline sequence in the Makefile.am snippet as a space, like "make"
34875         does.
34876         Reported by Roger Persson <perrog@gmail.com>.
34877
34878 2006-11-01  Bruno Haible  <bruno@clisp.org>
34879
34880         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
34881         already declared in <string.h>.
34882         * lib/strcase.h (strncasecmp): Don't declare it if yes.
34883
34884 2006-11-01  Bruno Haible  <bruno@clisp.org>
34885
34886         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
34887         * lib/strcase.h: Include <string.h>.
34888         (strcasecmp): Define to rpl_strcasecmp here.
34889
34890 2006-11-01  Bruno Haible  <bruno@clisp.org>
34891
34892         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
34893
34894 2006-11-01  Eric Blake  <ebb9@byu.net>
34895
34896         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
34897
34898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
34899
34900 2006-10-29  Bruno Haible  <bruno@clisp.org>
34901
34902         Make it compile in C++ mode.
34903         * lib/full-write.c (full_rw): Add a cast.
34904
34905 2006-11-01  Bruno Haible  <bruno@clisp.org>
34906
34907         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
34908         be POSIX compliant.
34909         Reported by Roger Persson <perrog@gmail.com>.
34910
34911 2006-11-01  Eric Blake  <ebb9@byu.net>
34912
34913         * lib/getopt_.h: Fix comments.
34914
34915 2006-10-31  Eric Blake  <ebb9@byu.net>
34916
34917         * modules/tmpdir (Depends-on): Add sys_stat.
34918         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
34919         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
34920         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
34921         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
34922         tempname.
34923
34924 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34925
34926         Avoid some C++ diagnostics reported by Bruno Haible.
34927         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
34928         xmalloc.
34929         (quotearg_alloc): Use xcharalloc rather than xmalloc.
34930         (struct slotvec): Move to top level.
34931         (quotearg_n_options): Rewrite to avoid xmalloc.
34932         * lib/xalloc.h (xcharalloc): New function.
34933         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
34934         [defined __cplusplus]: Add function template that provides result
34935         type propagation.  This part of the change is from Bruno Haible.
34936
34937 2006-10-29  Bruno Haible  <bruno@clisp.org>
34938
34939         Make it compile in C++ mode.
34940         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
34941         * lib/strnlen1.c (strnlen1): Cast memchr result.
34942         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
34943         * lib/clean-temp.c (string_equals, string_hash): Add casts.
34944         (create_temp_dir): Rename local variable 'template'.
34945         (compile_csharp_using_sscli): Add cast.
34946         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
34947         * lib/findprog.c (find_in_path): Likewise.
34948         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
34949         * lib/wait-process.c (register_slave_subprocess): Likewise.
34950
34951 2006-10-22  Bruno Haible  <bruno@clisp.org>
34952
34953         * modules/tsearch: New file.
34954         * lib/tsearch.h: New file.
34955         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
34956         * m4/tsearch.m4: New file.
34957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
34958
34959 2006-10-29  Eric Blake  <ebb9@byu.net>
34960
34961         * lib/arcfour.c: Assume config.h.
34962         * lib/arctwo.c: Likewise.
34963         * lib/base64.c: Likewise.
34964         * lib/check-version.c: Likewise.
34965         * lib/crc.c: Likewise.
34966         * lib/des.c: Likewise.
34967         * lib/gc-gnulib.c: Likewise.
34968         * lib/gc-libgcrypt.c: Likewise.
34969         * lib/gc-pbkdf2-sha1.c: Likewise.
34970         * lib/getaddrinfo.c: Likewise.
34971         * lib/getdelim.c: Likewise.
34972         * lib/getline.c: Likewise.
34973         * lib/hmac-md5.c: Likewise.
34974         * lib/hmac-sha1.c: Likewise.
34975         * lib/iconvme.c: Likewise.
34976         * lib/md2.c: Likewise.
34977         * lib/md4.c: Likewise.
34978         * lib/memxor.c: Likewise.
34979         * lib/read-file.c: Likewise.
34980         * lib/readline.c: Likewise.
34981         * lib/rijndael-alg-fst.c: Likewise.
34982         * lib/rijndael-api-fst.c: Likewise.
34983         * lib/xgetdomainname.c: Likewise.
34984
34985 2006-10-28  Eric Blake  <ebb9@byu.net>
34986
34987         * lib/xstrndup.c: Assume config.h.
34988
34989 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34990
34991         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
34992         stat-macros.h is now for our own macros, whereas stat_h is for
34993         macros in the <sys/stat.h> name space.
34994         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
34995         (STAT_MACROS_H): Remove.
34996         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
34997         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
34998         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
34999         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
35000         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
35001         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
35002         Move these macros to ...
35003         * lib/stat_.h: here.  Don't include stat-macros.h.
35004         * lib/canonicalize.c: Don't include stat-macros.h.
35005         * lib/chown.c: Likewise.
35006         * lib/euidaccess.c: Likewise.
35007         * lib/file-type.c: Likewise.
35008         * lib/filemode.c: Likewise.
35009         * lib/glob.c: Likewise.
35010         * lib/isapipe.c: Likewise.
35011         * lib/lchown.c: Likewise.
35012         * lib/lstat.c: Likewise.
35013         * lib/mkdir-p.c: Likewise.
35014         * lib/rmdir.c: Likewise.
35015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
35016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
35017         unless mkdir isn't declared, to speed up 'configure'.
35018         Always create sys/stat.h, since it's unlikely any real sys/stat.h
35019         would define all the S_* symbols.
35020         * modules/canonicalize (Depends-on):
35021         Depend on sys_stat, not stat-macros.
35022         * modules/chown: Likewise.
35023         * modules/euidaccess: Likewise.
35024         * modules/filemode: Likewise.
35025         * modules/file-type: Likewise.
35026         * modules/glob: Likewise.
35027         * modules/isapipe: Likewise.
35028         * modules/lchown: Likewise.
35029         * modules/lstat: Likewise.
35030         * modules/mkancesdirs: Likewise.
35031         * modules/rmdir: Likewise.
35032         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
35033         * modules/modechange: Likewise.
35034         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
35035         (configure.ac): Remove gl_STAT_MACROS.
35036         * modules/sys_stat (Depends-on): Remove stat-macros.
35037
35038 2006-10-27  Bruno Haible  <bruno@clisp.org>
35039
35040         * m4/signed.m4: Remove file.
35041         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
35042         invocation.
35043         * modules/vasnprintf (Files): Remove m4/signed.m4.
35044
35045 2006-10-27  Bruno Haible  <bruno@clisp.org>
35046
35047         Update to GNU gettext 0.16.
35048         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
35049         m4/inttypes-h.m4, m4/signed.m4.
35050         * m4/gettext.m4: Update to GNU gettext 0.16.
35051         * m4/intl.m4: New file, from GNU gettext.
35052         * m4/intldir.m4: New file, from GNU gettext.
35053         * config/srclist.txt: Update
35054
35055 2006-10-27  Eric Blake  <ebb9@byu.net>
35056
35057         * MODULES.html.sh: Document tempname.
35058         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
35059         dependencies.
35060         (Files): Move lib/tempname.c...
35061         * modules/tempname: ...to this new module.
35062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
35063         (gl_PREREQ_TEMPNAME): Move...
35064         * m4/tempname.m4: ...to this new file.
35065         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
35066         * modules/sys_stat (Depends-on): Add stat-macros.
35067         * lib/stat_.h (includes): Pick up stat macros.
35068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
35069         if stat macros are broken.
35070         * lib/tempname.c (includes): No need to include "stat-macros.h".
35071         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
35072         (direxists, __path_search) [!_LIBC]: Don't compile these in
35073         gnulib; the tmpdir module covers that.
35074         * lib/tempname.h: New file.
35075
35076 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
35077
35078         * COPYING: Explain how gnulib-tool converts licence headers.
35079         Almost all wording by Eric Blake.
35080
35081 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
35082
35083         * lib/mbchar.h (is_basic_table): Make read-only.
35084         * lib/mbchar.c (is_basic_table): Likewise.
35085         Reported by John Darrington.
35086
35087 2006-10-25  Bruno Haible  <bruno@clisp.org>
35088
35089         * lib/progname.h (set_program_name): Undefine before defining.
35090
35091 2006-10-25  Bruno Haible  <bruno@clisp.org>
35092
35093         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
35094         false for non-gcc C++ compilers.
35095         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35096
35097 2006-10-24  Bruno Haible  <bruno@clisp.org>
35098
35099         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
35100         iconv implementations like Irix iconv.
35101
35102 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35103
35104         * modules/vararrays: New file.
35105         * m4/vararrays.m4: New file, taken from diffutils.
35106         * MODULES.html.sh: New module vararrays.
35107
35108 2006-10-24  Karl Berry  <karl@gnu.org>
35109
35110         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
35111         Don't call GNU Unix.
35112
35113 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35114
35115         * users.txt: Add Libtool.
35116
35117         Sync from Libtool:
35118
35119         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35120
35121         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
35122         to gnulib's policy of including config.h unconditionally.
35123
35124 2006-10-24  Bruno Haible  <bruno@clisp.org>
35125
35126         * modules/wcwidth (Files): Add m4/wint_t.m4.
35127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
35128         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
35129
35130 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35131
35132         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
35133         to pacify GCC with some -W flags enabled.  Problem reported by
35134         Bruno Haible.
35135
35136 2006-10-24  Jim Meyering  <jim@meyering.net>
35137
35138         * MODULES.html.sh: Remove uinttostr.  It's not a module.
35139         Reported by Karl Berry.
35140
35141 2006-10-23  Bruno Haible  <bruno@clisp.org>
35142
35143         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
35144
35145 2006-10-24  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/gl_list.h: Use C comment style, not C++ comment style.
35148
35149 2006-10-23  Eric Blake  <ebb9@byu.net>
35150
35151         * lib/getaddrinfo.c (includes): Add missing include.
35152
35153 2006-10-23  Bruno Haible  <bruno@clisp.org>
35154             Paul Eggert  <eggert@cs.ucla.edu>
35155
35156         Ability to rename obstack_free.
35157         * lib/obstack.h (__obstack_free): New macro. Declare instead of
35158         obstack_free.
35159         (obstack_free): Invoke the __obstack_free macro.
35160         * lib/obstack.c (obstack_free): Use __obstack_free macro.
35161
35162 2006-10-23  Bruno Haible  <bruno@clisp.org>
35163             Paul Eggert  <eggert@cs.ucla.edu>
35164
35165         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
35166         __argc, __argv from the declaration. (They are defined as macros on
35167         mingw.)
35168
35169 2006-10-22  Bruno Haible  <bruno@clisp.org>
35170
35171         * doc/gnulib-intro.texi: New file.
35172         * doc/gnulib.texi: Include it.
35173
35174 2006-10-21  Bruno Haible  <bruno@clisp.org>
35175
35176         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
35177         "Introduction", "Miscellanous Notes", "Particular Modules".
35178
35179 2006-10-21  Bruno Haible  <bruno@clisp.org>
35180
35181         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35182         Change mostlyclean-local rule to avoid sh syntax error from bash
35183         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
35184
35185 2006-10-23  Jim Meyering  <jim@meyering.net>
35186
35187         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
35188         in place of snprintf.
35189
35190         * modules/inttostr (Files): Add lib/uinttostr.c.
35191         * lib/uinttostr.c (inttostr): New file/function.
35192         * lib/inttostr.h (uinttostr): Declare.
35193         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
35194         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35195         Add uinttostr.
35196         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
35197
35198 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
35199
35200         * lib/canonicalize.c (ELOOP): Define if not already defined.
35201         Problem reported by Bruno Haible in
35202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
35203
35204 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
35205
35206         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
35207         Problem reported by Perry Smith and Ville Laurikari.
35208
35209         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
35210         uses.
35211
35212 2006-10-19  Bruno Haible  <bruno@clisp.org>
35213
35214         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
35215         for mingw.
35216
35217 2006-10-19  Bruno Haible  <bruno@clisp.org>
35218
35219         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
35220         Needed for mingw.
35221
35222 2006-10-19  Bruno Haible  <bruno@clisp.org>
35223
35224         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
35225
35226 2006-10-19  Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
35229         it.
35230
35231 2006-10-19  Bruno Haible  <bruno@clisp.org>
35232
35233         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
35234         invocation.
35235
35236 2006-10-19  Bruno Haible  <bruno@clisp.org>
35237
35238         * gnulib-tool (func_create_testdir): Don't include ftruncate and
35239         mountlist by default.
35240
35241 2006-10-16  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/c-strstr.c: Include c-strstr.h.
35244
35245 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
35246
35247         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
35248         in a slash.
35249
35250 2006-10-18  Bruno Haible  <bruno@clisp.org>
35251
35252         * lib/lock.h [C++]: Wrap definitions in extern "C".
35253
35254 2006-10-18  Bruno Haible  <bruno@clisp.org>
35255
35256         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
35257         gl_LIBOBJS list.
35258
35259 2006-10-18  Bruno Haible  <bruno@clisp.org>
35260
35261         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
35262
35263 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
35264
35265         * lib/xstrtol.h: Include gettext.h.
35266         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
35267         Problem reported by Eric Blake.
35268         * modules/xstrtol (Depends-on): Add gettext-h.
35269
35270 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
35271
35272         * lib/strftime.c (advance): New macro.
35273         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
35274         incomplete type, so you can't add 0 to it.  Problem and patch
35275         reported by Eelco Dolstra for dietlibc.
35276
35277 2006-10-18  Jim Meyering  <jim@meyering.net>
35278
35279         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
35280         type for a local, and rename it: s/up/user_proc/.
35281
35282 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
35283
35284         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
35285         READ_UTMP_USER_PROCESS.
35286         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
35287
35288 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35289
35290         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
35291         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
35292
35293 2006-10-17  Eric Blake  <ebb9@byu.net>
35294
35295         * lib/sigprocmask.c (sigprocmask): Fix typo.
35296
35297         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
35298
35299         * modules/clean-temp (Makefile.am): Don't add to make output...
35300         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
35301         config.h.
35302
35303 2006-10-17  Bruno Haible  <bruno@clisp.org>
35304
35305         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
35306         differently if DEFAULT_TEXT_DOMAIN is set.
35307
35308 2006-10-16  Bruno Haible  <bruno@clisp.org>
35309
35310         * lib/clean-temp.c: Include fwriteerror.h.
35311
35312 2006-10-16  Bruno Haible  <bruno@clisp.org>
35313
35314         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
35315
35316 2006-10-16  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
35319         * lib/sigprocmask.h: Include <sys/types.h>.
35320         (sigset_t): Use the system's definition if present.
35321
35322 2006-10-17  Eric Blake  <ebb9@byu.net>
35323
35324         * lib/xvasprintf.c (includes): Assume config.h.
35325         * lib/xasprintf.c (includes): Likewise.
35326
35327 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35328
35329         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
35330         at least as wide as intmax_t.
35331
35332 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
35333
35334         (Imported from Automake.)
35335         * build-aux/gnupload: Update to version 1.1 of directive file.
35336
35337 2006-10-16  Eric Blake  <ebb9@byu.net>
35338
35339         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
35340         match Automake 1.10a.
35341
35342 2006-10-14  Bruno Haible  <bruno@clisp.org>
35343
35344         * modules/sigprocmask: New file.
35345         * lib/sigprocmask.h: New file.
35346         * lib/sigprocmask.c: New file.
35347         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
35348         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
35349         request sigprocmask.o.
35350         (gl_PREREQ_SIGPROCMASK): New macro.
35351         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
35352         (Depends-on): Add sigprocmask.
35353         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
35354         gt_SIGNALBLOCKING. Test for 'raise' only once.
35355         * lib/fatal-signal.c: Include sigprocmask.h.
35356         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
35357         unblock_fatal_signals): Define always.
35358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35359         sigprocmask.
35360
35361 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35362
35363         Sync from Automake.
35364         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
35365         which incorrectly sets the mode of an existing destination
35366         directory.  In some cases the unpatched install-sh could do the
35367         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
35368         system.  We hope this is rare in practice, but it's clearly worth
35369         fixing.  Problem reported by Alex Unleashed in
35370         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
35371         Also, don't bother to check for -m bugs unless we're using -m;
35372         suggested by Stepan Kasal.
35373
35374 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35375
35376         Sync from Automake.
35377         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
35378         `-c' flag, so they appear at the same position as in %FASTDEP%
35379         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
35380         which ignores unknown options only after the first non-option.
35381         Bug report against M4 by Nelson H. F. Beebe.
35382
35383 2006-10-13  Jim Meyering  <jim@meyering.net>
35384
35385         Fix a bug in yesterday's change.
35386         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
35387         p->fts_statp->st_dev would be used uninitialized.
35388         Ensures that we always call fts_stat on the very first entry.
35389         Miklos Szeredi reported that find -xdev stopped working.
35390
35391 2006-10-12  Bruno Haible  <bruno@clisp.org>
35392
35393         * gnulib-tool (func_get_automake_snippet): Append an automatically
35394         computed EXTRA_DIST augmentation.
35395         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
35396         * modules/alloca-opt (Makefile.am): Likewise.
35397         * modules/allocsa (Makefile.am): Likewise.
35398         * modules/arcfour (Makefile.am): Likewise.
35399         * modules/arctwo (Makefile.am): Likewise.
35400         * modules/argmatch (Makefile.am): Likewise.
35401         * modules/argz (Makefile.am): Likewise.
35402         * modules/atexit (Makefile.am): Likewise.
35403         * modules/backupfile (Makefile.am): Likewise.
35404         * modules/byteswap (Makefile.am): Likewise.
35405         * modules/c-strtod (Makefile.am): Likewise.
35406         * modules/c-strtold (Makefile.am): Likewise.
35407         * modules/calloc (Makefile.am): Likewise.
35408         * modules/canon-host (Makefile.am): Likewise.
35409         * modules/canonicalize (Makefile.am): Likewise.
35410         * modules/chdir-long (Makefile.am): Likewise.
35411         * modules/chdir-safer (Makefile.am): Likewise.
35412         * modules/check-version (Makefile.am): Likewise.
35413         * modules/chown (Makefile.am): Likewise.
35414         * modules/cloexec (Makefile.am): Likewise.
35415         * modules/close-stream (Makefile.am): Likewise.
35416         * modules/closeout (Makefile.am): Likewise.
35417         * modules/crc (Makefile.am): Likewise.
35418         * modules/csharpexec (Makefile.am): Likewise.
35419         * modules/cycle-check (Makefile.am): Likewise.
35420         * modules/des (Makefile.am): Likewise.
35421         * modules/dev-ino (Makefile.am): Likewise.
35422         * modules/dirfd (Makefile.am): Likewise.
35423         * modules/dirname (Makefile.am): Likewise.
35424         * modules/dup2 (Makefile.am): Likewise.
35425         * modules/eealloc (Makefile.am): Likewise.
35426         * modules/error (Makefile.am): Likewise.
35427         * modules/euidaccess (Makefile.am): Likewise.
35428         * modules/exclude (Makefile.am): Likewise.
35429         * modules/exitfail (Makefile.am): Likewise.
35430         * modules/fcntl-safer (Makefile.am): Likewise.
35431         * modules/fcntl (Makefile.am): Likewise.
35432         * modules/file-type (Makefile.am): Likewise.
35433         * modules/fileblocks (Makefile.am): Likewise.
35434         * modules/filemode (Makefile.am): Likewise.
35435         * modules/filenamecat (Makefile.am): Likewise.
35436         * modules/fnmatch (Makefile.am): Likewise.
35437         * modules/fopen-safer (Makefile.am): Likewise.
35438         * modules/fpending (Makefile.am): Likewise.
35439         * modules/fprintftime (Makefile.am): Likewise.
35440         * modules/free (Makefile.am): Likewise.
35441         * modules/fsusage (Makefile.am): Likewise.
35442         * modules/ftruncate (Makefile.am): Likewise.
35443         * modules/fts (Makefile.am): Likewise.
35444         * modules/gc-arcfour (Makefile.am): Likewise.
35445         * modules/gc-des (Makefile.am): Likewise.
35446         * modules/gc-hmac-md5 (Makefile.am): Likewise.
35447         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
35448         * modules/gc-md4 (Makefile.am): Likewise.
35449         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
35450         * modules/gc-sha1 (Makefile.am): Likewise.
35451         * modules/gc (Makefile.am): Likewise.
35452         * modules/getaddrinfo (Makefile.am): Likewise.
35453         * modules/getcwd (Makefile.am): Likewise.
35454         * modules/getdelim (Makefile.am): Likewise.
35455         * modules/getdomainname (Makefile.am): Likewise.
35456         * modules/getgroups (Makefile.am): Likewise.
35457         * modules/gethostname (Makefile.am): Likewise.
35458         * modules/gethrxtime (Makefile.am): Likewise.
35459         * modules/getline (Makefile.am): Likewise.
35460         * modules/getloadavg (Makefile.am): Likewise.
35461         * modules/getlogin_r (Makefile.am): Likewise.
35462         * modules/getndelim2 (Makefile.am): Likewise.
35463         * modules/getopt (Makefile.am): Likewise.
35464         * modules/getpagesize (Makefile.am): Likewise.
35465         * modules/getpass-gnu (Makefile.am): Likewise.
35466         * modules/getpass (Makefile.am): Likewise.
35467         * modules/getsubopt (Makefile.am): Likewise.
35468         * modules/gettime (Makefile.am): Likewise.
35469         * modules/gettimeofday (Makefile.am): Likewise.
35470         * modules/getugroups (Makefile.am): Likewise.
35471         * modules/getusershell (Makefile.am): Likewise.
35472         * modules/glob (Makefile.am): Likewise.
35473         * modules/group-member (Makefile.am): Likewise.
35474         * modules/hard-locale (Makefile.am): Likewise.
35475         * modules/hash (Makefile.am): Likewise.
35476         * modules/hmac-md5 (Makefile.am): Likewise.
35477         * modules/hmac-sha1 (Makefile.am): Likewise.
35478         * modules/human (Makefile.am): Likewise.
35479         * modules/idcache (Makefile.am): Likewise.
35480         * modules/imaxabs (Makefile.am): Likewise.
35481         * modules/imaxdiv (Makefile.am): Likewise.
35482         * modules/inet_ntop (Makefile.am): Likewise.
35483         * modules/inet_pton (Makefile.am): Likewise.
35484         * modules/intprops (Makefile.am): Likewise.
35485         * modules/inttostr (Makefile.am): Likewise.
35486         * modules/inttypes (Makefile.am): Likewise.
35487         * modules/isapipe (Makefile.am): Likewise.
35488         * modules/javaversion (Makefile.am): Likewise.
35489         * modules/lchmod (Makefile.am): Likewise.
35490         * modules/lchown (Makefile.am): Likewise.
35491         * modules/localcharset (Makefile.am): Likewise.
35492         * modules/long-options (Makefile.am): Likewise.
35493         * modules/lstat (Makefile.am): Likewise.
35494         * modules/malloc (Makefile.am): Likewise.
35495         * modules/mathl (Makefile.am): Likewise.
35496         * modules/mbchar (Makefile.am): Likewise.
35497         * modules/md2 (Makefile.am): Likewise.
35498         * modules/md4 (Makefile.am): Likewise.
35499         * modules/md5 (Makefile.am): Likewise.
35500         * modules/memcasecmp (Makefile.am): Likewise.
35501         * modules/memchr (Makefile.am): Likewise.
35502         * modules/memcmp (Makefile.am): Likewise.
35503         * modules/memcoll (Makefile.am): Likewise.
35504         * modules/memcpy (Makefile.am): Likewise.
35505         * modules/memmem (Makefile.am): Likewise.
35506         * modules/memmove (Makefile.am): Likewise.
35507         * modules/mempcpy (Makefile.am): Likewise.
35508         * modules/memrchr (Makefile.am): Likewise.
35509         * modules/memset (Makefile.am): Likewise.
35510         * modules/memxor (Makefile.am): Likewise.
35511         * modules/mkancesdirs (Makefile.am): Likewise.
35512         * modules/mkdir-p (Makefile.am): Likewise.
35513         * modules/mkdir (Makefile.am): Likewise.
35514         * modules/mkdtemp (Makefile.am): Likewise.
35515         * modules/mkstemp (Makefile.am): Likewise.
35516         * modules/mktime (Makefile.am): Likewise.
35517         * modules/modechange (Makefile.am): Likewise.
35518         * modules/mountlist (Makefile.am): Likewise.
35519         * modules/nanosleep (Makefile.am): Likewise.
35520         * modules/obstack (Makefile.am): Likewise.
35521         * modules/openat (Makefile.am): Likewise.
35522         * modules/pagealign_alloc (Makefile.am): Likewise.
35523         * modules/pathmax (Makefile.am): Likewise.
35524         * modules/physmem (Makefile.am): Likewise.
35525         * modules/poll (Makefile.am): Likewise.
35526         * modules/posixtm (Makefile.am): Likewise.
35527         * modules/posixver (Makefile.am): Likewise.
35528         * modules/putenv (Makefile.am): Likewise.
35529         * modules/quote (Makefile.am): Likewise.
35530         * modules/quotearg (Makefile.am): Likewise.
35531         * modules/raise (Makefile.am): Likewise.
35532         * modules/read-file (Makefile.am): Likewise.
35533         * modules/readline (Makefile.am): Likewise.
35534         * modules/readlink (Makefile.am): Likewise.
35535         * modules/readtokens (Makefile.am): Likewise.
35536         * modules/readutmp (Makefile.am): Likewise.
35537         * modules/realloc (Makefile.am): Likewise.
35538         * modules/regex (Makefile.am): Likewise.
35539         * modules/rename-dest-slash (Makefile.am): Likewise.
35540         * modules/rename (Makefile.am): Likewise.
35541         * modules/rijndael (Makefile.am): Likewise.
35542         * modules/rmdir (Makefile.am): Likewise.
35543         * modules/rpmatch (Makefile.am): Likewise.
35544         * modules/safe-read (Makefile.am): Likewise.
35545         * modules/safe-write (Makefile.am): Likewise.
35546         * modules/same-inode (Makefile.am): Likewise.
35547         * modules/same (Makefile.am): Likewise.
35548         * modules/save-cwd (Makefile.am): Likewise.
35549         * modules/savedir (Makefile.am): Likewise.
35550         * modules/setenv (Makefile.am): Likewise.
35551         * modules/settime (Makefile.am): Likewise.
35552         * modules/sha1 (Makefile.am): Likewise.
35553         * modules/sig2str (Makefile.am): Likewise.
35554         * modules/snprintf (Makefile.am): Likewise.
35555         * modules/stat-macros (Makefile.am): Likewise.
35556         * modules/stat-time (Makefile.am): Likewise.
35557         * modules/stdbool (Makefile.am): Likewise.
35558         * modules/stdint (Makefile.am): Likewise.
35559         * modules/stdlib-safer (Makefile.am): Likewise.
35560         * modules/stpcpy (Makefile.am): Likewise.
35561         * modules/stpncpy (Makefile.am): Likewise.
35562         * modules/strcase (Makefile.am): Likewise.
35563         * modules/strcasestr (Makefile.am): Likewise.
35564         * modules/strchrnul (Makefile.am): Likewise.
35565         * modules/strcspn (Makefile.am): Likewise.
35566         * modules/strdup (Makefile.am): Likewise.
35567         * modules/strerror (Makefile.am): Likewise.
35568         * modules/strftime (Makefile.am): Likewise.
35569         * modules/strndup (Makefile.am): Likewise.
35570         * modules/strnlen (Makefile.am): Likewise.
35571         * modules/strpbrk (Makefile.am): Likewise.
35572         * modules/strsep (Makefile.am): Likewise.
35573         * modules/strstr (Makefile.am): Likewise.
35574         * modules/strtod (Makefile.am): Likewise.
35575         * modules/strtoimax (Makefile.am): Likewise.
35576         * modules/strtok_r (Makefile.am): Likewise.
35577         * modules/strtol (Makefile.am): Likewise.
35578         * modules/strtoll (Makefile.am): Likewise.
35579         * modules/strtoul (Makefile.am): Likewise.
35580         * modules/strtoull (Makefile.am): Likewise.
35581         * modules/strtoumax (Makefile.am): Likewise.
35582         * modules/strverscmp (Makefile.am): Likewise.
35583         * modules/sys_socket (Makefile.am): Likewise.
35584         * modules/sys_stat (Makefile.am): Likewise.
35585         * modules/sysexits (Makefile.am): Likewise.
35586         * modules/time_r (Makefile.am): Likewise.
35587         * modules/timegm (Makefile.am): Likewise.
35588         * modules/timespec (Makefile.am): Likewise.
35589         * modules/tmpfile-safer (Makefile.am): Likewise.
35590         * modules/trim (Makefile.am): Likewise.
35591         * modules/unistd-safer (Makefile.am): Likewise.
35592         * modules/unlinkdir (Makefile.am): Likewise.
35593         * modules/unlocked-io (Makefile.am): Likewise.
35594         * modules/userspec (Makefile.am): Likewise.
35595         * modules/utime (Makefile.am): Likewise.
35596         * modules/utimecmp (Makefile.am): Likewise.
35597         * modules/utimens (Makefile.am): Likewise.
35598         * modules/vasnprintf (Makefile.am): Likewise.
35599         * modules/vasprintf (Makefile.am): Likewise.
35600         * modules/vsnprintf (Makefile.am): Likewise.
35601         * modules/xalloc (Makefile.am): Likewise.
35602         * modules/xgetcwd (Makefile.am): Likewise.
35603         * modules/xnanosleep (Makefile.am): Likewise.
35604         * modules/xreadlink (Makefile.am): Likewise.
35605         * modules/xstrtod (Makefile.am): Likewise.
35606         * modules/xstrtol (Makefile.am): Likewise.
35607         * modules/xstrtold (Makefile.am): Likewise.
35608         * modules/yesno (Makefile.am): Likewise.
35609         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
35610
35611 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35612
35613         * modules/error (Makefile.am): Distribute files through
35614         EXTRA_DIST, not lib_SOURCES.
35615
35616 2006-10-12  Eric Blake  <ebb9@byu.net>
35617
35618         * modules/error (Makefile.am): Distribute files in /lib.
35619         * modules/obstack (Makefile.am): Likewise.
35620
35621 2006-10-12  Bruno Haible  <bruno@clisp.org>
35622
35623         * modules/acl (Makefile.am): Distribute all files in lib/ through
35624         EXTRA_DIST.
35625         * modules/arcfour (Makefile.am): Likewise.
35626         * modules/arctwo (Makefile.am): Likewise.
35627         * modules/argmatch (Makefile.am): Likewise.
35628         * modules/argz (Makefile.am): Likewise.
35629         * modules/atexit (Makefile.am): Likewise.
35630         * modules/backupfile (Makefile.am): Likewise.
35631         * modules/c-strtod (Makefile.am): Likewise.
35632         * modules/c-strtold (Makefile.am): Likewise.
35633         * modules/calloc (Makefile.am): Likewise.
35634         * modules/canon-host (Makefile.am): Likewise.
35635         * modules/canonicalize (Makefile.am): Likewise.
35636         * modules/chdir-long (Makefile.am): Likewise.
35637         * modules/chdir-safer (Makefile.am): Likewise.
35638         * modules/check-version (Makefile.am): Likewise.
35639         * modules/chown (Makefile.am): Likewise.
35640         * modules/cloexec (Makefile.am): Likewise.
35641         * modules/close-stream (Makefile.am): Likewise.
35642         * modules/closeout (Makefile.am): Likewise.
35643         * modules/crc (Makefile.am): Likewise.
35644         * modules/cycle-check (Makefile.am): Likewise.
35645         * modules/des (Makefile.am): Likewise.
35646         * modules/dirfd (Makefile.am): Likewise.
35647         * modules/dirname (Makefile.am): Likewise.
35648         * modules/dup2 (Makefile.am): Likewise.
35649         * modules/euidaccess (Makefile.am): Likewise.
35650         * modules/exclude (Makefile.am): Likewise.
35651         * modules/exitfail (Makefile.am): Likewise.
35652         * modules/fcntl-safer (Makefile.am): Likewise.
35653         * modules/file-type (Makefile.am): Likewise.
35654         * modules/fileblocks (Makefile.am): Likewise.
35655         * modules/filemode (Makefile.am): Likewise.
35656         * modules/filenamecat (Makefile.am): Likewise.
35657         * modules/fnmatch (Makefile.am): Likewise.
35658         * modules/fopen-safer (Makefile.am): Likewise.
35659         * modules/fpending (Makefile.am): Likewise.
35660         * modules/fprintftime (Makefile.am): Likewise.
35661         * modules/free (Makefile.am): Likewise.
35662         * modules/fsusage (Makefile.am): Likewise.
35663         * modules/ftruncate (Makefile.am): Likewise.
35664         * modules/fts (Makefile.am): Likewise.
35665         * modules/gc (Makefile.am): Likewise.
35666         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
35667         * modules/getaddrinfo (Makefile.am): Likewise.
35668         * modules/getcwd (Makefile.am): Likewise.
35669         * modules/getdelim (Makefile.am): Likewise.
35670         * modules/getdomainname (Makefile.am): Likewise.
35671         * modules/getgroups (Makefile.am): Likewise.
35672         * modules/gethostname (Makefile.am): Likewise.
35673         * modules/gethrxtime (Makefile.am): Likewise.
35674         * modules/getline (Makefile.am): Likewise.
35675         * modules/getloadavg (Makefile.am): Likewise.
35676         * modules/getlogin_r (Makefile.am): Likewise.
35677         * modules/getopt (Makefile.am): Likewise.
35678         * modules/getpass (Makefile.am): Likewise.
35679         * modules/getpass-gnu (Makefile.am): Likewise.
35680         * modules/getsubopt (Makefile.am): Likewise.
35681         * modules/gettime (Makefile.am): Likewise.
35682         * modules/gettimeofday (Makefile.am): Likewise.
35683         * modules/getugroups (Makefile.am): Likewise.
35684         * modules/getusershell (Makefile.am): Likewise.
35685         * modules/glob (Makefile.am): Likewise.
35686         * modules/group-member (Makefile.am): Likewise.
35687         * modules/hard-locale (Makefile.am): Likewise.
35688         * modules/hash (Makefile.am): Likewise.
35689         * modules/hmac-md5 (Makefile.am): Likewise.
35690         * modules/hmac-sha1 (Makefile.am): Likewise.
35691         * modules/human (Makefile.am): Likewise.
35692         * modules/idcache (Makefile.am): Likewise.
35693         * modules/imaxabs (Makefile.am): Likewise.
35694         * modules/imaxdiv (Makefile.am): Likewise.
35695         * modules/inet_ntop (Makefile.am): Likewise.
35696         * modules/inet_pton (Makefile.am): Likewise.
35697         * modules/inttostr (Makefile.am): Likewise.
35698         * modules/isapipe (Makefile.am): Likewise.
35699         * modules/lchown (Makefile.am): Likewise.
35700         * modules/long-options (Makefile.am): Likewise.
35701         * modules/lstat (Makefile.am): Likewise.
35702         * modules/malloc (Makefile.am): Likewise.
35703         * modules/mathl (Makefile.am): Likewise.
35704         * modules/mbchar (Makefile.am): Likewise.
35705         * modules/md2 (Makefile.am): Likewise.
35706         * modules/md4 (Makefile.am): Likewise.
35707         * modules/md5 (Makefile.am): Likewise.
35708         * modules/memcasecmp (Makefile.am): Likewise.
35709         * modules/memchr (Makefile.am): Likewise.
35710         * modules/memcmp (Makefile.am): Likewise.
35711         * modules/memcoll (Makefile.am): Likewise.
35712         * modules/memcpy (Makefile.am): Likewise.
35713         * modules/memmem (Makefile.am): Likewise.
35714         * modules/memmove (Makefile.am): Likewise.
35715         * modules/mempcpy (Makefile.am): Likewise.
35716         * modules/memrchr (Makefile.am): Likewise.
35717         * modules/memset (Makefile.am): Likewise.
35718         * modules/memxor (Makefile.am): Likewise.
35719         * modules/mkancesdirs (Makefile.am): Likewise.
35720         * modules/mkdir (Makefile.am): Likewise.
35721         * modules/mkdir-p (Makefile.am): Likewise.
35722         * modules/mkdtemp (Makefile.am): Likewise.
35723         * modules/mkstemp (Makefile.am): Likewise.
35724         * modules/mktime (Makefile.am): Likewise.
35725         * modules/modechange (Makefile.am): Likewise.
35726         * modules/mountlist (Makefile.am): Likewise.
35727         * modules/nanosleep (Makefile.am): Likewise.
35728         * modules/openat (Makefile.am): Likewise.
35729         * modules/pagealign_alloc (Makefile.am): Likewise.
35730         * modules/physmem (Makefile.am): Likewise.
35731         * modules/poll (Makefile.am): Likewise.
35732         * modules/posixtm (Makefile.am): Likewise.
35733         * modules/posixver (Makefile.am): Likewise.
35734         * modules/putenv (Makefile.am): Likewise.
35735         * modules/quote (Makefile.am): Likewise.
35736         * modules/quotearg (Makefile.am): Likewise.
35737         * modules/raise (Makefile.am): Likewise.
35738         * modules/read-file (Makefile.am): Likewise.
35739         * modules/readline (Makefile.am): Likewise.
35740         * modules/readlink (Makefile.am): Likewise.
35741         * modules/readtokens (Makefile.am): Likewise.
35742         * modules/readutmp (Makefile.am): Likewise.
35743         * modules/realloc (Makefile.am): Likewise.
35744         * modules/regex (Makefile.am): Likewise.
35745         * modules/rename (Makefile.am): Likewise.
35746         * modules/rename-dest-slash (Makefile.am): Likewise.
35747         * modules/rijndael (Makefile.am): Likewise.
35748         * modules/rmdir (Makefile.am): Likewise.
35749         * modules/rpmatch (Makefile.am): Likewise.
35750         * modules/safe-read (Makefile.am): Likewise.
35751         * modules/safe-write (Makefile.am): Likewise.
35752         * modules/same (Makefile.am): Likewise.
35753         * modules/save-cwd (Makefile.am): Likewise.
35754         * modules/savedir (Makefile.am): Likewise.
35755         * modules/setenv (Makefile.am): Likewise.
35756         * modules/settime (Makefile.am): Likewise.
35757         * modules/sha1 (Makefile.am): Likewise.
35758         * modules/sig2str (Makefile.am): Likewise.
35759         * modules/snprintf (Makefile.am): Likewise.
35760         * modules/stdlib-safer (Makefile.am): Likewise.
35761         * modules/stpcpy (Makefile.am): Likewise.
35762         * modules/stpncpy (Makefile.am): Likewise.
35763         * modules/strcase (Makefile.am): Likewise.
35764         * modules/strcasestr (Makefile.am): Likewise.
35765         * modules/strchrnul (Makefile.am): Likewise.
35766         * modules/strcspn (Makefile.am): Likewise.
35767         * modules/strdup (Makefile.am): Likewise.
35768         * modules/strerror (Makefile.am): Likewise.
35769         * modules/strftime (Makefile.am): Likewise.
35770         * modules/strndup (Makefile.am): Likewise.
35771         * modules/strnlen (Makefile.am): Likewise.
35772         * modules/strpbrk (Makefile.am): Likewise.
35773         * modules/strsep (Makefile.am): Likewise.
35774         * modules/strstr (Makefile.am): Likewise.
35775         * modules/strtod (Makefile.am): Likewise.
35776         * modules/strtoimax (Makefile.am): Likewise.
35777         * modules/strtok_r (Makefile.am): Likewise.
35778         * modules/strtol (Makefile.am): Likewise.
35779         * modules/strtoll (Makefile.am): Likewise.
35780         * modules/strtoul (Makefile.am): Likewise.
35781         * modules/strtoull (Makefile.am): Likewise.
35782         * modules/strtoumax (Makefile.am): Likewise.
35783         * modules/strverscmp (Makefile.am): Likewise.
35784         * modules/time_r (Makefile.am): Likewise.
35785         * modules/timegm (Makefile.am): Likewise.
35786         * modules/tmpfile-safer (Makefile.am): Likewise.
35787         * modules/unistd-safer (Makefile.am): Likewise.
35788         * modules/unlinkdir (Makefile.am): Likewise.
35789         * modules/userspec (Makefile.am): Likewise.
35790         * modules/utime (Makefile.am): Likewise.
35791         * modules/utimecmp (Makefile.am): Likewise.
35792         * modules/utimens (Makefile.am): Likewise.
35793         * modules/vasnprintf (Makefile.am): Likewise.
35794         * modules/vasprintf (Makefile.am): Likewise.
35795         * modules/vsnprintf (Makefile.am): Likewise.
35796         * modules/xalloc (Makefile.am): Likewise.
35797         * modules/xgetcwd (Makefile.am): Likewise.
35798         * modules/xnanosleep (Makefile.am): Likewise.
35799         * modules/xreadlink (Makefile.am): Likewise.
35800         * modules/xstrtod (Makefile.am): Likewise.
35801         * modules/xstrtol (Makefile.am): Likewise.
35802         * modules/xstrtold (Makefile.am): Likewise.
35803         * modules/yesno (Makefile.am): Likewise.
35804
35805 2006-10-12  Jim Meyering  <jim@meyering.net>
35806
35807         * m4/getloadavg.m4: Revert the change below.
35808
35809         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
35810         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
35811         fail with a symlink, which is what coreutils' ./bootstrap now
35812         creates by default.
35813
35814 2006-10-12  Bruno Haible  <bruno@clisp.org>
35815
35816         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
35817         mingw.
35818         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
35819         MSVC and mingw explicitly.
35820
35821 2006-10-11  Simon Josefsson  <jas@extundo.com>
35822             Bruno Haible  <bruno@clisp.org>
35823
35824         Add support for multiple gnulib-tool invocations in the scope of a
35825         single configure.ac file.
35826         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
35827         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
35828         with the same contents as the _LIBADD variable.
35829         (func_emit_initmacro_start, func_emit_initmacro_end,
35830         func_emit_initmacro_done): New functions.
35831         (func_import, func_create_testdir): Invoke them. Allow the identifiers
35832         gl_LIBOBJS and gl_LTLIBOBJS.
35833
35834 2006-10-11  Bruno Haible  <bruno@clisp.org>
35835
35836         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
35837         (func_create_testdir): Don't create po/Makefile.am, don't invoke
35838         autoreconf. Instead, invoke autopoint explicitly but move back the
35839         *.m4 files from gnulib.
35840
35841 2006-10-11  Bruno Haible  <bruno@clisp.org>
35842
35843         * gnulib-tool (func_usage): Make module names after --create-testdir
35844         optional.
35845         (func_create_testdir): If no module was specified, use nearly all
35846         modules.
35847
35848 2006-10-12  Jim Meyering  <jim@meyering.net>
35849
35850         Big performance improvement for fts-based tools that use FTS_NOSTAT.
35851         Avoid spurious inode-mismatch problems on non-POSIX file systems.
35852         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
35853         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
35854         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
35855         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
35856         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
35857         (fts_set_stat_required): New function.
35858         (fts_open): Defer the calls to fts_stat, if possible or requested.
35859         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
35860         into fts_stat itself.
35861         (fts_read): Perform any required (deferred) fts_stat call.
35862         (fts_build): Likewise, for the directory we're about to open and read.
35863         In the readdir loop, carefully decide whether each entry will require
35864         an eventual call to fts_stat, using dirent.d_type info if available.
35865         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
35866         a command line argument into this function.  Update all callers.
35867         Map a return value of FTS_DOT to FTS_D for a command line argument.
35868         * modules/fts (Depends-on): Add d-type.  Alphabetize.
35869         Thanks to Miklos Szeredi for his tenacity and for the initial
35870         bug report about "find" failing on a FUSE-based file system.
35871
35872         * lib/fts.c (fts_open): Use consistent indentation.
35873
35874 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35875
35876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
35877         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
35878         reported by Jim Meyering.  All uses of cache variables renamed
35879         to match Autoconf's.
35880         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
35881         the other one.
35882
35883         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35884         Fix misspelling in diagnostic.
35885
35886 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35887
35888         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
35889         defined.  Problem reported by Matthew Woehlke.
35890
35891         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
35892         Add support for Tandem NonStop R series.
35893         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
35894         Use new macro.
35895
35896         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
35897         (has_trailing_slash): Omit size arg; all callers changed.
35898         Omit 'inline', since it doesn't help performance and we'd
35899         need to configure it.
35900         Don't count //, ///, etc. as having a trailing slash.
35901         As a side effect, this removes a C99ism reported by Matthew Woehlke.
35902         (rpl_rename_dest_slash): On failure, use rename's errno rather
35903         than (in some cases) an incorrect or junk errno.
35904         Simplify code by removing need to compute length; this does
35905         cause it to make two passes instead of one over the file name,
35906         but it's worth it.
35907
35908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
35909         change, since Autoconf's version may no longer be appropriate now
35910         that we are using CVS Autoconf's version.  Add support for Tandem.
35911
35912 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35913             Bruno Haible  <bruno@clisp.org>
35914
35915         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
35916         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
35917         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
35918         gl_AC_TYPE_LONG_LONG.
35919
35920         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
35921         instead of HAVE_LONG_LONG.
35922         * lib/printf-args.c (printf_fetchargs): Likewise.
35923         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
35924         * lib/vasnprintf.c (VASNPRINTF): Likewise.
35925         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
35926         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
35927         gl_AC_TYPE_LONG_LONG.
35928
35929 2006-10-11  Bruno Haible  <bruno@clisp.org>
35930
35931         * m4/longlong.m4: Add comments.
35932         * m4/ulonglong.m4: Likewise.
35933
35934 2006-10-10  Bruno Haible  <bruno@clisp.org>
35935
35936         Make it possible to #define stpcpy, strdup to aliases.
35937         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
35938         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
35939
35940 2006-10-10  Bruno Haible  <bruno@clisp.org>
35941
35942         Make it possible to #define gcd to an alias.
35943         * lib/gcd.c: Include config.h.
35944
35945 2006-10-10  Bruno Haible  <bruno@clisp.org>
35946
35947         Make it possible to #define c_isascii to an alias.
35948         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
35949         defined. Undefine the macros before defining them, to avoid gcc
35950         warnings.
35951         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
35952         define NO_C_CTYPE_MACROS early.
35953
35954 2006-10-10  Bruno Haible  <bruno@clisp.org>
35955
35956         Make it possible to #define set_program_name to an alias.
35957         * lib/progname.c: Don't undefine set_program_name; instead, undefine
35958         ENABLE_RELOCATABLE early.
35959
35960 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35961
35962         Port to Tandem NSK OSS, which has 64-bit signed int but at most
35963         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
35964         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
35965         More generally, don't assume that 64-bit signed int is available
35966         if unsigned int is, and vice versa.
35967         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
35968         unsigned symbols, not on their signed counterparts.
35969         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
35970         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
35971         (UINT64_C, UINTMAX_C):
35972         Likewise.
35973         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
35974         unsigned counterparts.
35975         (Have_long_long, Unsigned): New macros.
35976         (Int): Renamed from INT.
35977         (strtoimax): Use the new macros.
35978         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
35979         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
35980         * modules/inttypes (inttypes.h): Substitute
35981         HAVE_UNSIGNED_LONG_LONG_INT.
35982         * modules/stdint (stdint.h): Likewise.
35983         (Files): Add m4/ulonglong.m4.
35984
35985 2006-10-10  Bruno Haible  <bruno@clisp.org>
35986
35987         Fix a gcc -Wshadow warning.
35988         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
35989         to 'bucket'.
35990         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
35991         gl_linked_indexof_from_to): Likewise.
35992         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
35993         Likewise.
35994         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
35995         Likewise.
35996         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
35997         Reported by Eric Blake.
35998
35999 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
36000
36001         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
36002         for NetBSD.  Problem reported by Bruno Haible.
36003
36004 2006-10-09  Jim Meyering  <jim@meyering.net>
36005
36006         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
36007         Patch from Bruno Haible.
36008
36009 2006-10-09  Jim Meyering  <jim@meyering.net>
36010
36011         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
36012         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
36013         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
36014
36015 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36016
36017         Don't include <config.h> twice; this doesn't work in some cases,
36018         e.g., when config.h has "#define intmax_t long long int" and
36019         we include <config.h>, <inttypes.h>, <config.h> in that order.
36020         Problem reported by Matthew Woehlke in:
36021         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
36022         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
36023         * lib/fts-cycle.c: Don't include config.h.
36024         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
36025         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
36026         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
36027         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
36028         inttypes.h.
36029         * lib/xstrtoumax.c: Likewise.
36030         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
36031         __strtol and the like, so that this module is more like its siblings.
36032         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
36033         Remove; no longer needed now that we assume gnulib inttypes.h.
36034
36035 2006-10-08  Bruno Haible  <bruno@clisp.org>
36036
36037         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
36038         option.
36039
36040 2006-10-07  Jim Meyering  <jim@meyering.net>
36041
36042         * modules/inttypes (inttypes.h): Revert what seems to have been
36043         an inadvertent part of today's change: use "|", not "/" in the
36044         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
36045
36046 2006-10-07  Bruno Haible  <bruno@clisp.org>
36047
36048         * modules/sublist: New file.
36049
36050 2006-10-07  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
36053         * modules/argz (argz.h): Likewise.
36054         * modules/arpa_inet (arpa/inet.h): Likewise.
36055         * modules/byteswap (byteswap.h): Likewise.
36056         * modules/configmake (configmake.h): Likewise.
36057         * modules/fcntl (fcntl.h): Likewise.
36058         * modules/fnmatch (fnmatch.h): Likewise.
36059         * modules/getopt (getopt.h): Likewise.
36060         * modules/glob (glob.h): Likewise.
36061         * modules/inttypes (inttypes.h): Likewise.
36062         * modules/netinet_in (netinet/in.h): Likewise.
36063         * modules/poll (poll.h): Likewise.
36064         * modules/stdbool (stdbool.h): Likewise.
36065         * modules/stdint (stdint.h): Likewise.
36066         * modules/sys_select (sys/select.h): Likewise.
36067         * modules/sys_socket (sys/socket.h): Likewise.
36068         * modules/sys_stat (sys/stat.h): Likewise.
36069         * modules/sysexits (sysexits.h): Likewise.
36070         * modules/unistd (unistd.h): Likewise.
36071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36072         Add a "DO NOT EDIT" comment to the generated file.
36073         (func_import): Likewise for gnulib-comp.m4.
36074
36075 2006-10-07  Bruno Haible  <bruno@clisp.org>
36076
36077         * lib/gl_sublist.h: New file.
36078         * lib/gl_sublist.c: New file.
36079
36080 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
36081
36082         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
36083         name (relative to the original working directory) and the file
36084         name component (relative to the temporary working directory).  All
36085         callers changed.
36086         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
36087         * lib/mkdir-p.c (make_dir_parents): Likewise.
36088         * lib/mkdir-p.h (make_dir_parents): Likewise.
36089
36090 2006-10-06  Eric Blake  <ebb9@byu.net>
36091
36092         Define several macros for use by the clean-temp module.
36093         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
36094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
36095         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
36096
36097         * lib/clean-temp.h (close_stream_temp): New declaration.
36098         * lib/clean-temp.c (includes): Pull in headers according to what
36099         other modules are in use.
36100         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
36101
36102 2006-10-06  Bruno Haible  <bruno@clisp.org>
36103
36104         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
36105         instead of fopen, fwriteerror.
36106
36107 2006-10-06  Bruno Haible  <bruno@clisp.org>
36108
36109         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
36110         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
36111         int.
36112         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
36113         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
36114         Return an error indicator.
36115         Suggested by Eric Blake.
36116
36117 2006-10-06  Bruno Haible  <bruno@clisp.org>
36118
36119         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
36120         Reported by Eric Blake.
36121
36122 2006-10-06  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/closeout (Description): Mention stderr too.
36125
36126 2006-10-06  Bruno Haible  <bruno@clisp.org>
36127         and Paul Eggert  <eggert@cs.ucla.edu>
36128
36129         * lib/closeout.c (close_stdout): Also close stderr.
36130         * lib/closeout.h: Update comment.
36131
36132 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
36133
36134         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
36135         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
36136         * lib/dirchownmod.c: Include lchown.h.
36137         * lib/lchown.c: Don't include files that lchown.h now includes.
36138         Don't declare chown, since lchown.h now does that.
36139         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
36140         (lchown): Define to rpl_chown if lchown is declared but
36141         does not exist.  Declare using a prototype if lchown is not
36142         declared.  Add a copyright notice.
36143         * lib/mkstemp.h: Include <unistd.h>.
36144         * lib/openat.c: Include lchown.h.
36145
36146         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
36147         we now test for that separately.
36148         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
36149         rather than O_NOFOLLOW, when testing whether it's possible to
36150         avoid a race condition reliably.
36151         * lib/savewd.c (savewd_chdir): Likewise.
36152
36153         Remove macros that are no longer needed now that stdint.h is
36154         reliable.
36155         * lib/fsusage.c (UINTMAX_MAX): Remove.
36156         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
36157         * lib/utimecmp.c (SIZE_MAX): Remove.
36158
36159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
36160
36161         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
36162         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
36163         O_NOATIME works.
36164
36165 2006-10-05  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/gl_list.h (gl_sortedlist_search_from_to,
36168         gl_sortedlist_indexof_from_to): New declarations.
36169         (gl_list_implementation): New fields sortedlist_search_from_to,
36170         sortedlist_indexof_from_to.
36171         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
36172         inline functions.
36173         * lib/gl_list.c (gl_sortedlist_search_from_to,
36174         gl_sortedlist_indexof_from_to): New functions.
36175         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
36176         function.
36177         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
36178         (gl_array_sortedlist_search_from_to): New function.
36179         (gl_array_list_implementation): Update.
36180         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
36181         function.
36182         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
36183         (gl_carray_sortedlist_search_from_to): New function.
36184         (gl_carray_list_implementation): Update.
36185         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
36186         gl_linked_sortedlist_indexof_from_to): New functions.
36187         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36188         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36189         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
36190         gl_tree_sortedlist_indexof_from_to): New functions.
36191         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36192         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36193         Update.
36194         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36195         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
36196         Update.
36197
36198 2006-10-05  Bruno Haible  <bruno@clisp.org>
36199
36200         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
36201         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
36202         (struct gl_list_implementation): Add fields search_from_to,
36203         indexof_from_to. Remove fields search, indexof.
36204         (gl_list_search): Use the search_from_to method.
36205         (gl_list_search_from, gl_list_search_from_to): New functions.
36206         (gl_list_indexof): Use the indexof_from_to method.
36207         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36208         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
36209         (gl_list_search_from, gl_list_search_from_to): New functions.
36210         (gl_list_indexof): Use the indexof_from_to method.
36211         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36212         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
36213         gl_array_indexof. Add start_index, end_index arguments.
36214         (gl_array_search_from_to): Renamed from gl_array_search. Add
36215         start_index, end_index arguments.
36216         (gl_array_remove, gl_array_list_implementation): Update.
36217         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
36218         gl_carray_indexof. Add start_index, end_index arguments.
36219         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
36220         start_index, end_index arguments.
36221         (gl_carray_remove, gl_carray_list_implementation): Update.
36222         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
36223         gl_linked_search. Add start_index, end_index arguments.
36224         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
36225         start_index, end_index arguments.
36226         (gl_linked_remove): Update.
36227         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36228         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36229         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
36230         field to 'size_t'.
36231         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
36232         gl_tree_search. Add start_index, end_index arguments.
36233         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36234         start_index, end_index arguments.
36235         (gl_tree_remove): Update.
36236         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36237         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36238         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
36239         function.
36240         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
36241         gl_tree_search. Add start_index, end_index arguments.
36242         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36243         start_index, end_index arguments.
36244         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36245         Update.
36246         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36247
36248 2006-10-05  Bruno Haible  <bruno@clisp.org>
36249
36250         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
36251
36252         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
36253         fwriteerror_temp): New declarations.
36254         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
36255         (descriptors): New variable.
36256         (cleanup): First, close the descriptors.
36257         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
36258         fclose_temp, fwriteerror_temp): New functions.
36259
36260 2006-10-04  Jim Meyering  <jim@meyering.net>
36261
36262         * lib/fts.c (fts_open): Tiny comment change.
36263
36264 2006-10-04  Bruno Haible  <bruno@clisp.org>
36265
36266         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
36267         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
36268         gl_LOCK_BODY.
36269         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
36270         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
36271         gl_LOCK_EARLY_BODY.
36272         (gl_LOCK): Require gl_LOCK_BODY.
36273
36274 2006-10-04  Bruno Haible  <bruno@clisp.org>
36275
36276         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
36277         (gl_oset_search_atleast): New declaration.
36278         (struct gl_oset_implementation): Add field 'search_atleast'.
36279         (gl_oset_search_atleast): New inline function.
36280         * lib/gl_oset.c (gl_oset_search_atleast): New function.
36281         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
36282         (gl_array_oset_implementation): Update.
36283         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
36284         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
36285         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
36286
36287 2006-10-04  Bruno Haible  <bruno@clisp.org>
36288
36289         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
36290
36291 2006-10-03  Bruno Haible  <bruno@clisp.org>
36292
36293         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
36294         from gl_avltreehash_list_implementation.
36295
36296 2006-10-03  Bruno Haible  <bruno@clisp.org>
36297
36298         * lib/gl_oset.c (gl_oset_add): Fix return type.
36299
36300 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
36301
36302         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
36303
36304 2006-10-02  Eric Blake  <ebb9@byu.net>
36305
36306         * modules/strnlen (Depends-on): Add extensions.
36307
36308 2006-10-02  Eric Blake  <ebb9@byu.net>
36309
36310         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
36311         definition in 2.60+.
36312
36313 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
36314
36315         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
36316         checks.
36317
36318 2006-10-02  Bruno Haible  <bruno@clisp.org>
36319
36320         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
36321         to the AUTOMAKE_OPTIONS.
36322         Reported by Jim Meyering.
36323
36324 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
36325
36326         Work around bug in Solaris 10 /proc file system:
36327         /proc/self/fd/NNN/.. isn't the parent directory of
36328         the directory whose file descriptor is NNN.  This needs to
36329         be worked around at run time, not compile time, since a
36330         program might be built on Solaris 8, where things work, and
36331         run on Solaris 10.
36332         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
36333         to use the following interface instead:
36334         (OPENAT_BUFFER_SIZE): New macro.
36335         (openat_proc_name): New function.
36336         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
36337         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
36338         Likewise.
36339         * lib/openat-proc.c: New file.
36340         * modules/openat (Files): Add lib/openat-proc.c.
36341         (Depends-on): Add same-inode, stdbool.
36342         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
36343
36344 2006-09-29  Bruno Haible  <bruno@clisp.org>
36345
36346         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
36347         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
36348         argument. Set stdout_closed before testing for ferror, not after.
36349         (fwriteerror, fwriteerror_no_ebadf): New functions.
36350
36351 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36352
36353         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
36354
36355 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
36356
36357         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
36358         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
36359
36360 2006-09-28  Jim Meyering  <jim@meyering.net>
36361
36362         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
36363         Include <unistd.h>.
36364
36365 2006-09-28  Bruno Haible  <bruno@clisp.org>
36366
36367         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
36368         * modules/linkedhash-list (Depends-on): Likewise.
36369         * modules/rbtreehash-list (Depends-on): Likewise.
36370
36371 2006-09-28  Bruno Haible  <bruno@clisp.org>
36372
36373         * lib/strndup.h: Simplify the redefinition of strndup.
36374         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
36375         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
36376
36377 2006-09-28  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
36380         * lib/gl_linkedhash_list.c: Likewise.
36381         * lib/gl_rbtreehash_list.c: Likewise.
36382
36383 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
36384
36385         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
36386         getaddrinfo.
36387
36388         * lib/__fpending.h: Don't include <stdio_ext.h> unless
36389         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
36390         it causes <stdio_ext.h> to cause a compile-time error.
36391         Problem reported by Nelson H. F. Beebe.
36392         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
36393         of HAVE_DECL___PENDING.
36394
36395         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
36396         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
36397         declaration.
36398
36399 2006-09-27  Jim Meyering  <jim@meyering.net>
36400
36401         This file could end up with a definition for a function
36402         named __strndup, rather than rpl_strndup on a system with
36403         incomplete weak_alias support.
36404         * lib/strndup.c (strndup): Rename from __strndup.
36405         Remove #defines that used to map __strndup to strndup.
36406         Don't use K&R prototypes.
36407         Remove LIBC-related code, since this file is not sync'd with glibc.
36408         * lib/strndup.h: Revamp, accordingly.
36409         * m4/strndup.m4: Modernize.
36410
36411 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36412
36413         * modules/savewd (Depends-on): Add 'raise'.
36414         * lib/savewd.c: Include <signal.h>, for 'raise'.
36415
36416 2006-09-26  Jim Meyering  <jim@meyering.net>
36417
36418         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
36419         when we detect Darwin 8.7.0's acl_get_file bug.
36420         Rearrange to perform the new (below) run-test while $LIBS
36421         contains any acl-related library.  Set USE_ACL at the end.
36422         (gl_ACL_GET_FILE): New function.
36423
36424 2006-09-26  Eric Blake  <ebb9@byu.net>
36425
36426         * lib/verror.c: Include <config.h> unconditionally.
36427
36428 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
36429
36430         * modules/clock-time (Maintainer): Add self.
36431         * modules/getlogin_r (Depends-on): Add extensions.
36432
36433 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36434
36435         * modules/clock-time: New module.
36436         * modules/nanosleep (Depends-on): Add clock-time.
36437         * modules/gethrxtime (Depends-on): Likewise.
36438         * modules/gettime (Depends-on): Likewise.
36439         * modules/settime (Depends-on): Likewise.
36440
36441         * modules/fts-lgpl: Depend on openat.
36442         * modules/mkancesdirs: Depend on savewd.
36443         * modules/mkdir-p: Likewise.
36444
36445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36446
36447         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
36448
36449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
36450         `gl_have_arbitrary_file_name_length_limit' to
36451         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
36452         actually works between configure runs.
36453
36454 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36455             Bruno Haible  <bruno@clisp.org>
36456
36457         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
36458
36459 2006-09-25  Jim Meyering  <jim@meyering.net>
36460
36461         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
36462         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
36463
36464 2006-09-25  Eric Blake  <ebb9@byu.net>
36465
36466         * gnulib-tool (func_import, func_create_testdir): Fix typos in
36467         exec's in 2006-09-18 patch when shuffling fds.
36468
36469 2006-09-25  Bruno Haible  <bruno@clisp.org>
36470
36471         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
36472         Reported by Jim Meyering.
36473
36474 2006-09-24  Jim Meyering  <jim@meyering.net>
36475
36476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
36477         compare a pointer against a literal "0".  That caused failures with
36478         at least HP-UX's hpcc.
36479
36480 2006-09-22  Simon Josefsson  <jas@extundo.com>
36481
36482         * modules/gc-sha1:
36483         * modules/gc-md4:
36484         * modules/gc-hmac-sha1:
36485         * modules/gc-hmac-md5:
36486         * modules/gc-des:
36487         * modules/gc-arcfour: Distribute more files.
36488
36489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36490
36491         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
36492         (gl_linked_iterator_from_to): Initialize struct completely.
36493         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
36494         (gl_tree_iterator_from_to): Likewise
36495         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
36496         * lib/gl_array_list.c [lint] (gl_array_iterator)
36497         (gl_array_iterator_from_to): Likewise.
36498         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
36499         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
36500         (gl_carray_iterator_from_to): Likewise.
36501
36502         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
36503         * lib/md4.c (md4_process_block): Remove unused variable.
36504         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
36505         parentheses for clarity.
36506
36507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36508
36509         * modules/bison-i18n (Depends-on): Add gettext.
36510
36511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36512
36513         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
36514         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36515         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
36516         also add missing comma that caused broken test.
36517         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
36518         stdlib.h, for `abort'.
36519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
36520         variables.
36521         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
36522         include unistd.h if present, for `rmdir'.
36523         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
36524         variables.
36525         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
36526         in the process include standard headers for prototypes.
36527         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
36528         gets declared on GNU/Linux.
36529         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
36530         unistd.h, for `rmdir'.
36531         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
36532
36533         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
36534         always true.
36535         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
36536
36537         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
36538
36539 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36540
36541         * gnulib-tool (func_version): Create output all at once.  This
36542         may help avoid triggering unnecessary SIGPIPEs, and at any
36543         rate it doesn't hurt.
36544
36545 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36546             Bruno Haible  <bruno@clisp.org>
36547
36548         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
36549         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36550         * m4/signed.m4 (bh_C_SIGNED): Likewise.
36551
36552         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
36553         (gl_FUNC_VASPRINTF): Invoke it.
36554
36555 2006-09-22  Bruno Haible  <bruno@clisp.org>
36556
36557         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
36558         getloadavg.c as first argument.
36559
36560 2006-09-22  Bruno Haible  <bruno@clisp.org>
36561
36562         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
36563         at the beginning of the gl_INIT macro.
36564         * modules/getloadavg (configure.ac): Pass $gl_source_base to
36565         gl_GETLOADAVG.
36566
36567 2006-09-22  Bruno Haible  <bruno@clisp.org>
36568
36569         * gnulib-tool (func_create_megatestdir): Don't include the config-h
36570         module.
36571         Suggested by Ralf Wildenhues.
36572
36573 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
36574
36575         Import this patch from libc:
36576
36577         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
36578
36579         * lib/regex_internal.c (re_string_reconstruct): Handle
36580         offset < pstr->valid_raw_len && pstr->offsets_needed case.
36581         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
36582         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
36583         re_string_context_at.
36584
36585         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
36586         now requires it.
36587         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
36588         gl_REGEX now does it for us.
36589         (gl_REGEX): Add test taken from
36590         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
36591
36592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
36593         Check that large offsets work.  Modernize Autoconf usages.
36594         Prefer "yes" to mean a good thing rather than a bad.
36595         Don't put "#define mkstemp" in config.h, as this might interfere
36596         with standard system headers that "#define mkstemp mkstemp64".
36597
36598         * modules/mkstemp (Depends-on): Add extensions, so that
36599         mkstemp is visible on some platforms.
36600         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
36601         (Include): Change to "mkstemp.h" from <stdlib.h>.
36602         (Files): Add mkstemp.h.
36603
36604         * lib/mkstemp.h: New file, since some standard headers
36605         #define mkstemp.
36606         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
36607         Include "mkstemp.h".
36608         Make the _LIBC code resemble glibc original more,
36609         e.g., use K&R style.
36610         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
36611         (mkstemp): Remove, since mkstemp.h does this for us.
36612         * lib/stdlib--.h: Include mkstemp.h.
36613
36614         Import this patch from libc:
36615
36616         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
36617
36618         * lib/tempname.c (__gen_tempname): Change attempts_min
36619         into a macro.  Use preprocessor to decide how to initialize
36620         attempts [Coverity CID 67].
36621
36622 2006-09-20  Bruno Haible  <bruno@clisp.org>
36623
36624         * lib/mkdtemp.c: Import from libc.
36625         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
36626                 * sysdeps/posix/tempname.c (__gen_tempname): Change
36627                 attempts_min into a macro.  Use preprocessor to decide how to
36628                 initialize attempts [Coverity CID 67].
36629         2001-11-27  Paul Eggert  <eggert@twinsun.com>
36630                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
36631                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
36632
36633 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36634
36635         * gnulib-tool (func_exit): New function, to allow to pass the
36636         exit status portably through the trap.  Use everywhere.
36637         (--help, --version): Signal a write error.
36638         (trap): catch SIGPIPE, for write errors.
36639         Exit at the end of the trap, with the correct exit status.
36640
36641 2006-09-19  Karl Berry  <karl@gnu.org>
36642
36643         * doc/gnulib.texi: note about the license texinfo files.
36644
36645 2006-09-19  Eric Blake  <ebb9@byu.net>
36646
36647         * gnulib-tool: Avoid space-tab.
36648
36649 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
36650
36651         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
36652         that prevented coreutils 6.1 from building.  Problem reported
36653         by Petter Reinholdtsen.
36654
36655 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
36656
36657         * gnulib-tool (avoidlist): Fix typo that broke options like
36658         --avoid=lock that are used by coreutils bootstrap.
36659
36660 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
36661
36662         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
36663         more systematically.
36664
36665 2006-09-18  Jim Meyering  <jim@meyering.net>
36666
36667         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
36668
36669 2006-09-18  Bruno Haible  <bruno@clisp.org>
36670
36671         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
36672
36673 2006-09-18  Bruno Haible  <bruno@clisp.org>
36674
36675         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
36676         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
36677         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
36678         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
36679         * m4/gettext.m4: Require autoconf >= 2.52.
36680         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
36681         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
36682         of gl_cv_header_inttypes_h.
36683
36684 2006-09-18  Bruno Haible  <bruno@clisp.org>
36685
36686         * lib/javaversion.c: Include configmake.h.
36687
36688 2006-09-18  Bruno Haible  <bruno@clisp.org>
36689
36690         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
36691         avoid that the while loops be executed in a subshell.
36692
36693 2006-09-18  Bruno Haible  <bruno@clisp.org>
36694
36695         * MODULES.html.sh (func_module): Break long lines.
36696         Suggested by Bruce Korb <bkorb@gnu.org>.
36697
36698 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36699
36700         Speed up by a factor of 1.12.
36701         * gnulib-tool (nl): New variable.
36702         (func_import): Rewrite include directive extraction to only read each
36703         directive once.
36704
36705 2006-09-17  Bruno Haible  <bruno@clisp.org>
36706
36707         * modules/javaversion (Makefile.am): Remove DEFS setting.
36708         (Depends-on): Add configmake, for PKGDATADIR definition.
36709
36710 2006-09-17  Bruno Haible  <bruno@clisp.org>
36711
36712         * gnulib-tool (func_create_testdir): Rewrite all files at once.
36713
36714 2006-09-17  Bruno Haible  <bruno@clisp.org>
36715
36716         * gnulib-tool (func_append): New function, stolen from libtool.m4.
36717         (func_modules_transitive_closure, func_modules_add_dummy,
36718         func_modules_to_filelist, func_import, func_create_testdir,
36719         func_create_megatestdir, ...): Use it wherever possible.
36720         Suggested by Ralf Wildenhues.
36721
36722 2006-09-16  Karl Berry  <karl@gnu.org>
36723
36724         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
36725         to avoid sectioning errors.
36726         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
36727         [ifinfo]: blank line after @center-ed titles.
36728         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
36729         Spell FSF address consistently with others.
36730         (These changes approved by rms.)
36731
36732 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36733
36734         Speed up by a factor of 1.61.
36735         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
36736         already checked module names again.
36737
36738 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36739
36740         Speed up by a factor of 1.13.
36741         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
36742         for new_files, and the input to func_add_or_update.
36743
36744 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36745
36746         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
36747         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
36748
36749 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36750
36751         * modules/mkancesdirs (Depends-on): Add fcntl.
36752         * modules/savewd: New file.
36753         * MODULES.html.sh (File system functions): Add savewd.
36754
36755         * modules/configmake (Makefile.am): Add support for the
36756         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
36757
36758 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36759
36760         * m4/savewd.m4: New file.
36761
36762 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
36763
36764         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
36765         (dirchownmod): New arg FD.  All callers changed.
36766         Use FD rather than opening the directory ourself, as opening is
36767         now the caller's responsibility.
36768         * lib/dirchownmod.h: Likewise.
36769         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
36770         hosts that require <sys/types.h> before <sys/stat.h>.  Include
36771         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
36772         (test_dir): Remove.
36773         (mkancesdirs): Return length of prefix of FILE that has already
36774         been made, or -2 if there is a child doing the work.  Redo
36775         algorithm so that it is O(N) rather than O(N**2).  Optimize away
36776         ".", and treat ".." specially since it might stray back into
36777         already-created areas.  Use a subprocess if necessary.  New arg
36778         WD; all users changed.  MAKE_DIR function should now return 1
36779         if it creates a directory that is not readable.  Return -2 if
36780         a child process is spun off.
36781         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
36782         Adjust signature to match code.
36783         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
36784         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
36785         all users changed.
36786         * lib/savewd.c, lib/savewd.h: New files.
36787
36788 2006-09-15  Jim Meyering  <jim@meyering.net>
36789
36790         * modules/rename-dest-slash: New module.
36791         * MODULES.html.sh (posix_compat): Add it here.
36792
36793         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
36794
36795 2006-09-15  Jim Meyering  <jim@meyering.net>
36796
36797         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
36798         file.
36799
36800         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
36801
36802 2006-09-15  Jim Meyering  <jim@meyering.net>
36803
36804         * lib/rename-dest-slash.c (has_trailing_slash): Use
36805         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
36806         (rpl_rename_dest_slash): Perform the cheaper trailing slash
36807         test before testing whether SRC is a directory.
36808         Suggestions from Bruno Haible.
36809
36810         Avoid a warning about an unused variable.
36811         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
36812         into the #ifdef block where it's used.
36813
36814         * lib/rename-dest-slash.c: New file.
36815
36816 2006-09-14  Bruno Haible  <bruno@clisp.org>
36817
36818         * lib/allocsa.c: Include <config.h> unconditionally.
36819         * lib/asnprintf.c: Likewise.
36820         * lib/asprintf.c: Likewise.
36821         * lib/c-strcasecmp.c: Likewise.
36822         * lib/c-strcasestr.c: Likewise.
36823         * lib/c-strncasecmp.c: Likewise.
36824         * lib/c-strstr.c: Likewise.
36825         * lib/classpath.c: Likewise.
36826         * lib/clean-temp.c: Likewise.
36827         * lib/concatpath.c: Likewise.
36828         * lib/copy-file.c: Likewise.
36829         * lib/csharpcomp.c: Likewise.
36830         * lib/csharpexec.c: Likewise.
36831         * lib/execute.c: Likewise.
36832         * lib/fatal-signal.c: Likewise.
36833         * lib/findprog.c: Likewise.
36834         * lib/fwriteerror.c: Likewise.
36835         * lib/gl_array_list.c: Likewise.
36836         * lib/gl_array_oset.c: Likewise.
36837         * lib/gl_avltree_list.c: Likewise.
36838         * lib/gl_avltree_oset.c: Likewise.
36839         * lib/gl_avltreehash_list.c: Likewise.
36840         * lib/gl_carray_list.c: Likewise.
36841         * lib/gl_linked_list.c: Likewise.
36842         * lib/gl_linkedhash_list.c: Likewise.
36843         * lib/gl_list.c: Likewise.
36844         * lib/gl_oset.c: Likewise.
36845         * lib/gl_rbtree_list.c: Likewise.
36846         * lib/gl_rbtree_oset.c: Likewise.
36847         * lib/gl_rbtreehash_list.c: Likewise.
36848         * lib/imaxabs.c: Likewise.
36849         * lib/imaxdiv.c: Likewise.
36850         * lib/javacomp.c: Likewise.
36851         * lib/javaexec.c: Likewise.
36852         * lib/javaversion.c: Likewise.
36853         * lib/linebreak.c: Likewise.
36854         * lib/localcharset.c: Likewise.
36855         * lib/lock.c: Likewise.
36856         * lib/mbchar.c: Likewise.
36857         * lib/mbswidth.c: Likewise.
36858         * lib/mkdtemp.c: Likewise.
36859         * lib/pipe.c: Likewise.
36860         * lib/printf-args.c: Likewise.
36861         * lib/printf-parse.c: Likewise.
36862         * lib/progname.c: Likewise.
36863         * lib/progreloc.c: Likewise.
36864         * lib/readlink.c: Likewise.
36865         * lib/sh-quote.c: Likewise.
36866         * lib/stpcpy.c: Likewise.
36867         * lib/stpncpy.c: Likewise.
36868         * lib/strcasecmp.c: Likewise.
36869         * lib/strcasestr.c: Likewise.
36870         * lib/strcspn.c: Likewise.
36871         * lib/striconv.c: Likewise.
36872         * lib/strncasecmp.c: Likewise.
36873         * lib/strnlen1.c: Likewise.
36874         * lib/strstr.c: Likewise.
36875         * lib/strtok_r.c: Likewise.
36876         * lib/tls.c: Likewise.
36877         * lib/tmpdir.c: Likewise.
36878         * lib/unicodeio.c: Likewise.
36879         * lib/unsetenv.c: Likewise.
36880         * lib/vasnprintf.c: Likewise.
36881         * lib/vasprintf.c: Likewise.
36882         * lib/wait-process.c: Likewise.
36883         * lib/xallocsa.c: Likewise.
36884         * lib/xsetenv.c: Likewise.
36885         * lib/xstriconv.c: Likewise.
36886
36887 2006-09-13  Simon Josefsson  <jas@extundo.com>
36888
36889         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
36890         that internally, suggested by Ralf Wildenhues
36891         <Ralf.Wildenhues@gmx.de>.
36892
36893 2006-09-13  Simon Josefsson  <jas@extundo.com>
36894
36895         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
36896         @LIBOBJS@.
36897         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36898
36899 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
36900
36901         * lib/_fpending.c: Include <config.h> unconditionally, since we no
36902         longer worry about uses that don't define HAVE_CONFIG_H.
36903         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
36904         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
36905         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
36906         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
36907         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
36908         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
36909         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
36910         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
36911         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
36912         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
36913         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
36914         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
36915         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
36916         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
36917         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
36918         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
36919         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
36920         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
36921         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
36922         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
36923         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
36924         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
36925         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
36926         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
36927         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
36928         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
36929         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
36930         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
36931         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
36932         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
36933         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
36934         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
36935         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
36936         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
36937         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
36938         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
36939         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
36940         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
36941         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
36942         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
36943         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
36944         Likewise.
36945
36946 2006-09-13  Eric Blake  <ebb9@byu.net>
36947
36948         * lib/getopt.c: Fix typo in last commit.
36949
36950 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36951
36952         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
36953         dgettext.
36954
36955 2006-09-12  Jim Meyering  <jim@meyering.net>
36956
36957         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
36958         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
36959         Reported by Nelson H. F. Beebe.
36960
36961 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36962
36963         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
36964         program_invocation_name and program_invocation_short_name are
36965         initialized.
36966         * lib/argp-namefrob.h: Move declarations of program_invocation_name
36967         and program_invocation_short_name to argp.h, so they are visible
36968         to user programs.
36969         * lib/argp.h: Likewise
36970
36971 2006-09-10  Bruno Haible  <bruno@clisp.org>
36972
36973         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
36974         m4/inttypes_h.m4, m4/uintmax_t.m4.
36975
36976 2006-09-10  Bruno Haible  <bruno@clisp.org>
36977
36978         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
36979         gl_AC_TYPE_UINTMAX_T.
36980
36981 2006-09-10  Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
36984
36985 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36986
36987         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
36988         convention.  Text proposed by Bruno Haible.
36989         (struct argp_option): Document the use of N_() wrappers.
36990
36991         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
36992         '\v', and translate the two parts separately, instead of feeding
36993         the whole string to gettext.  This allows to exclude
36994         '\v' from the strings visible to the translator by writing doc
36995         strings as N_("..") "\v" N_("..").
36996
36997 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
36998
36999         * config/srclist.txt: Undo latest change; the bug was fixed.
37000
37001 2006-09-09  Bruno Haible  <bruno@clisp.org>
37002
37003         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
37004         assignments if building a library without libtool.
37005         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
37006         in func_emit_lib_Makefile_am.
37007         (func_import): When building a static library libfoo.a, arrange to
37008         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
37009         (func_create_testdir): Likewise.
37010         * modules/gc (configure.ac, Makefile.am): If building statically,
37011         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
37012         * modules/iconvme (configure.ac, Makefile.am): Likewise.
37013         * modules/striconv (configure.ac, Makefile.am): Likewise.
37014         Based on a suggestion by Ralf Wildenhues.
37015
37016 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37017
37018         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37019         Check for unistd.h too, since Autoconf doesn't assume POSIX.
37020         Also:
37021
37022         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37023         Add year_2050_test to catch glibc bug 2821
37024         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37025
37026         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37027         Prefer #ifdef to #if.
37028
37029         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
37030         Return from 'main' instead of calling 'exit'.
37031
37032 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37033
37034         * lib/mktime.c (guess_time_tm): Fix bug where mktime
37035         returned the maximum time_t value rather than (time_t) -1.
37036         Problem originally reported by William Bardwell
37037         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37038
37039         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37040         Moved to here ...
37041         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37042         ... from here.
37043
37044 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
37047         2821 is fixed.
37048
37049 2006-09-08  Jim Meyering  <jim@meyering.net>
37050
37051         Don't make generated files read-only.  That would bother too many
37052         people.  However, do retain the ability to work when targets are
37053         read-only: remove the destination and temporary files before writing
37054         them (when generated via sed or echo), or by using the -f option for
37055         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
37056         * modules/alloca-opt, modules/argz, modules/arpa_inet:
37057         * modules/byteswap, modules/configmake, modules/fcntl:
37058         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37059         * modules/localcharset, modules/netinet_in, modules/poll:
37060         * modules/stdbool, modules/stdint, modules/sys_select:
37061         * modules/sys_socket, modules/sys_stat, modules/sysexits:
37062
37063 2006-09-08  Jim Meyering  <jim@meyering.net>
37064
37065         Avoid new build failure on FreeBSD 6.0.
37066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
37067         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
37068         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
37069
37070 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37071
37072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
37073
37074 2006-09-07  Jim Meyering  <jim@meyering.net>
37075
37076         Fix global typo in last change: use chmod u-w, not chmod u-x.
37077         Spotted by Paul Eggert and Bruce Korb.
37078         * modules/alloca-opt, modules/argz, modules/arpa_inet:
37079         * modules/byteswap, modules/configmake, modules/fcntl:
37080         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37081         * modules/localcharset, modules/netinet_in, modules/poll:
37082         * modules/stdbool, modules/stdint, modules/sys_select:
37083         * modules/sys_socket, modules/sys_stat, modules/sysexits:
37084
37085 2006-09-06  Jim Meyering  <jim@meyering.net>
37086
37087         Make generated files be read-only.
37088         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
37089         Ensure that each generated file is now read-only.
37090         * modules/argz: Likewise.
37091         * modules/arpa_inet: Likewise.
37092         * modules/byteswap: Likewise.
37093         * modules/configmake: Likewise.
37094         * modules/fcntl: Likewise.
37095         * modules/fnmatch: Likewise.
37096         * modules/getopt: Likewise.
37097         * modules/glob: Likewise.
37098         * modules/inttypes: Likewise.
37099         * modules/netinet_in: Likewise.
37100         * modules/poll: Likewise.
37101         * modules/stdbool: Likewise.
37102         * modules/stdint: Likewise.
37103         * modules/sys_select: Likewise.
37104         * modules/sys_socket: Likewise.
37105         * modules/sys_stat: Likewise.
37106         * modules/sysexits: Likewise.
37107         * modules/localcharset: Same as above, but continue using temporary
37108         file named "t-$@" (why different?) rather than the "$@-t" used
37109         everywhere else.
37110
37111         * modules/sysexits (Makefile.am): Replace literal occurrences
37112         of "sysexit.h" more readable, and more consistent, "$@".
37113
37114 2006-09-06  Bruno Haible  <bruno@clisp.org>
37115
37116         * modules/striconv: New file.
37117         * modules/xstriconv: New file.
37118         * MODULES.html.sh (Internationalization functions): Add striconv,
37119         xstriconv.
37120
37121 2006-09-06  Bruno Haible  <bruno@clisp.org>
37122
37123         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
37124         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
37125         not using libtool correctly.
37126
37127 2006-09-06  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/striconv.h: New file.
37130         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
37131         iconvstring.c.
37132         * lib/xstriconv.h: New file.
37133         * lib/xstriconv.c: New file.
37134
37135 2006-09-06  Bruno Haible  <bruno@clisp.org>
37136
37137         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37138         lib_..._LDFLAGS.
37139
37140 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37141
37142         * lib/argz_.h: Sync from Libtool.
37143
37144         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
37145                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37146
37147         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
37148
37149 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
37150
37151         * modules/trim: New file.
37152
37153 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
37154
37155         * lib/trim.h: New file.
37156         * lib/trim.c: New file.
37157
37158 2006-09-05  Bruno Haible  <bruno@clisp.org>
37159
37160         * MODULES.html.sh (String handling): Add trim.
37161
37162 2006-09-04  Karl Berry  <karl@gnu.org>
37163
37164         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
37165         until next release.
37166
37167 2006-09-03  Bruno Haible  <bruno@clisp.org>
37168
37169         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
37170         correctly.
37171
37172 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37173
37174         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
37175         not gl_GETLOADAVG.  Omit unneeded semicolons.
37176         Problems reported by Ralf Wildenhues in
37177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37178         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
37179         at the end, which is the usual gnulib style.
37180
37181         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
37182         of doing all the work ourselves.
37183         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
37184         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
37185
37186 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37187
37188         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
37189         Problem reported by Ralf Wildenhues in
37190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37191
37192         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
37193         HAVE_STRUCT_STATFS_F_FSTYPENAME.
37194
37195 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
37196
37197         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
37198         yesterday's patch by changing test -n to test -z.
37199
37200 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37201
37202         * modules/getloadavg (Files): Add m4/getloadavg.m4.
37203         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
37204         the former is now obsolescent.
37205
37206         * modules/chdir-long (Depends-on): Add fcntl.
37207
37208 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37209
37210         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
37211         obsolescent, and programs should use gnulib instead.
37212         * m4/getloadavg.m4: New file, with contents taken from Autoconf
37213         but with prefixes changed.
37214
37215 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
37216
37217         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
37218         or stdbool.h, because they might not exist while configuring.
37219
37220         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
37221         Don't include unistd.h or limits.h; not needed, since chdir-long.h
37222         does that for us.
37223         (O_DIRECTORY): Remove.
37224
37225 2006-08-31  Eric Blake  <ebb9@byu.net>
37226
37227         * gnulib-tool: Don't let emacs change spaces to TAB.
37228
37229 2006-08-31  Bruno Haible  <bruno@clisp.org>
37230
37231         * gnulib-tool: When calling func_import more than once, do it in a
37232         subshell.
37233         Reported by Eric Blake <ebb9@byu.net>.
37234
37235 2006-08-31  Bruno Haible  <bruno@clisp.org>
37236
37237         * gnulib-tool (nl): Remove variable.
37238         (sed_transform_lib_file): Use more robust test for config-h module.
37239         (func_import): Fix typo in 2006-08-25 patch.
37240
37241 2006-08-31  Bruno Haible  <bruno@clisp.org>
37242
37243         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
37244         specified, augment Makefile.am variables instead of assigning them.
37245
37246 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37247
37248         Work around a bug in both the Linux and SunOS 64-bit kernels:
37249         nanosleep mishandles sleeps for longer than 2**31 seconds.
37250         Problem reported by Frank v Waveren in
37251         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
37253         Check for nanosleep bug.
37254         (LIB_NANOSLEEP): Append clock_gettime library if needed.
37255
37256 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37257
37258         Work around a bug in both the Linux and SunOS 64-bit kernels:
37259         nanosleep mishandles sleeps for longer than 2**31 seconds.
37260         Problem reported by Frank v Waveren in
37261         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37262         * lib/nanosleep.c (BILLION): New constant.
37263         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
37264         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
37265         implementation.
37266
37267 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37268
37269         * modules/nanosleep (Depends-on): Add gettime.
37270
37271 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
37272         and Simon Josefsson  <jas@extundo.com>
37273         and Oskar Liljeblad  <oskar@osk.mine.nu>
37274
37275         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
37276         * gnulib-tool (func_import): New license type 'unmodifiable license
37277         text'.
37278         * modules/fdl: Use it.  Longer description.
37279         * module/gpl, module/lgpl: New files.
37280
37281 2006-08-30  Jim Meyering  <jim@meyering.net>
37282
37283         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
37284         shadowing the parameter.
37285
37286 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37287
37288         Sync from Libtool:
37289
37290         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37291
37292         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
37293         sharing with gnulib.  Report by Eric Blake.
37294
37295 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37296
37297         * modules/isapipe: New file.
37298         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
37299
37300 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37301
37302         * modules/configmake (Makefile.am): Add a comment, and omit
37303         the CONFIGMAKE_ prefix from generated macro names.  Suggested
37304         by Bruno Haible.
37305
37306 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37307
37308         * m4/isapipe.m4: New file.
37309
37310 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37311
37312         * lib/isapipe.c, lib/isapipe.h: New files.
37313
37314 2006-08-29  Jim Meyering  <jim@meyering.net>
37315
37316         * modules/configmake (Makefile.am): Make configmake.h depend on
37317         Makefile.  Otherwise, a stale configmake.h could hang around.
37318
37319 2006-08-29  Eric Blake  <ebb9@byu.net>
37320
37321         * lib/error.c (error_at_line, print_errno_message): Match libc, after
37322         resolution of upstream bug 3044.
37323
37324 2006-08-29  Bruno Haible  <bruno@clisp.org>
37325
37326         * modules/localcharset (Depends-on): Add configmake.
37327         (Makefile.am): Remove setting of LIBDIR through DEFS.
37328
37329 2006-08-29  Bruno Haible  <bruno@clisp.org>
37330
37331         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
37332         defined.
37333
37334 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37335
37336         * modules/fcntl: New file.
37337         * modules/chdir-safer (Depends-on): Add fcntl.
37338         * modules/fts: Likewise.
37339         * modules/mkdir-p: Likewise.
37340
37341         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
37342         This undoes the most recent change, since we're now addressing the
37343         problem in a different way.
37344
37345         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
37346         into output, since the output might be called Makefile.am even
37347         if $makefile_name is something different.
37348         (func_import): Use $makefile_am rather than
37349         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
37350         empty.
37351
37352         * modules/inttypes (Files): Add m4/inttypes-h.m4.
37353
37354 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37355
37356         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
37357         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
37358         recent change to stdint.m4, since we're now addressing the problem in a
37359         different way.
37360
37361 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37362
37363         * m4/fcntl_h.m4: New file.
37364
37365 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
37366
37367         * lib/fcntl_.h: New file.
37368         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
37369         the fcntl module.
37370         * lib/dirchownmod.c: Likewise.
37371         * lib/fts.c: Likewise.
37372
37373         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
37374         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
37375         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
37376         just before including <inttypes.h>, to avoid circular inclusion.
37377
37378 2006-08-28  Jim Meyering  <jim@meyering.net>
37379
37380         * doc/visibility.texi: Actually read and correct the grammar of the
37381         sentence affected by yesterday's change.
37382
37383 2006-08-28  Eric Blake  <ebb9@byu.net>
37384
37385         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
37386         needs wrapper.
37387
37388 2006-08-28  Eric Blake  <ebb9@byu.net>
37389
37390         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
37391
37392 2006-08-28  Eric Blake  <ebb9@byu.net>
37393
37394         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
37395
37396 2006-08-28  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/c-strstr: New file, from GNU gettext.
37399         * MODULES.html.sh (String handling): Add c-strstr.
37400
37401 2006-08-28  Bruno Haible  <bruno@clisp.org>
37402
37403         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
37404         macros.
37405         Reported by Eric Blake.
37406
37407 2006-08-28  Bruno Haible  <bruno@clisp.org>
37408
37409         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
37410         (VASNPRINTF): Return a string of length > INT_MAX without failing.
37411         * lib/vasprintf.c: Include errno.h, limits.h.
37412         (EOVERFLOW): New fallback definition.
37413         (vasprintf): Test here whether the string length is > INT_MAX.
37414         * lib/vsnprintf.c: Include errno.h, limits.h.
37415         (EOVERFLOW): New fallback definition.
37416         (vsnprintf): Fix bug when generated string was too long for the buffer.
37417         Test here whether the string length is > INT_MAX.
37418
37419 2006-08-28  Bruno Haible  <bruno@clisp.org>
37420
37421         * lib/inttypes_.h (SCNX*): Remove definitions.
37422         Reported by Eric Blake.
37423
37424 2006-08-28  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/c-strstr.h: New file, from GNU gettext.
37427         * lib/c-strstr.c: New file, from GNU gettext.
37428
37429 2006-08-28  Bruno Haible  <bruno@clisp.org>
37430
37431         * gnulib-tool: Reorder some statements.
37432
37433 2006-08-28  Bruno Haible  <bruno@clisp.org>
37434
37435         * gnulib-tool: New option --makefile-name.
37436         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
37437         $makefile_name.
37438         (func_import): Write $makefile_name to the cache file, and read it from
37439         there unless explicitly specified. Use $makefile_name as file name
37440         instead of Makefile.am. Adjust the recommendations accordingly.
37441
37442 2006-08-28  Bruno Haible  <bruno@clisp.org>
37443
37444         * gnulib-tool (func_verify_module): Check against misapplying patch.
37445
37446 2006-08-28  Bruno Haible  <bruno@clisp.org>
37447
37448         * gnulib-tool (func_relativize, func_relconcat): New functions.
37449         Give an error if --local-dir is given with --update.
37450         Remove trailing slashes from $local_gnulib_dir.
37451         (func_import): Store the relativized $local_gnulib_dir in
37452         gnulib-cache.m4, and read it from there if not specified explicitly.
37453
37454 2006-08-28  Bruno Haible  <bruno@clisp.org>
37455
37456         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
37457         is the current directory. Respect also $local_gnulib_dir.
37458
37459 2006-08-28  Bruno Haible  <bruno@clisp.org>
37460             Simon Josefsson  <jas@extundo.com>
37461
37462         BeOS portability.
37463         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
37464
37465 2006-08-27  Jim Meyering  <jim@meyering.net>
37466
37467         * doc/visibility.texi: Remove duplicate word: "pointer".
37468
37469 2006-08-26  Bruno Haible  <bruno@clisp.org>
37470
37471         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
37472         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
37473         (Makefile.am): Create inttypes.h from inttypes_.h.
37474         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
37475
37476         * modules/imaxabs: New file.
37477
37478         * modules/imaxdiv: New file.
37479
37480 2006-08-26  Bruno Haible  <bruno@clisp.org>
37481
37482         * m4/inttypes.m4: New file.
37483         * m4/_inttypes_h.m4: Remove file.
37484         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
37485         PRI_MACROS_BROKEN.
37486         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
37487
37488         * m4/imaxabs.m4: New file.
37489
37490         * m4/imaxdiv.m4: New file.
37491
37492 2006-08-26  Bruno Haible  <bruno@clisp.org>
37493
37494         * lib/inttypes_.h: New file.
37495         * lib/inttypes.h: Remove file.
37496         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
37497
37498         * lib/imaxabs.c: New file.
37499
37500         * lib/imaxdiv.c: New file.
37501
37502 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
37503
37504         New config-h module, so that "make" output needn't be cluttered
37505         by -DHAVE_CONFIG_H.
37506         * MODULES.html.sh (Support for building libraries and executables):
37507         Add config-h.
37508         * modules/config-h: New file.
37509         * gnulib-tool (nl, sed_transform_lib_file): New vars.
37510         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
37511         the config-h module is used.
37512
37513         New configmake module, so that "make" output needn't be cluttered
37514         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
37515         * MODULES.html.sh (Support for building libraries and executables):
37516         Add configmake.
37517         * modules/configmake: New file.
37518
37519 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
37520
37521         * m4/config-h.m4: New file.
37522
37523 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37524
37525         * config/srclist.txt: Add elisp-comp.
37526
37527 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37528
37529         * MODULES.html.sh (Support for building libraries and executables):
37530         Add elisp-comp.
37531         * build-aux/elisp-comp: New file.
37532         * modules/elisp-comp: New file.
37533
37534 2006-08-24  Bruno Haible  <bruno@clisp.org>
37535
37536         * gnulib-tool (func_create_testdir): Use non-default values of
37537         sourcebase and m4base.
37538
37539 2006-08-24  Bruno Haible  <bruno@clisp.org>
37540
37541         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
37542         HTML structure.
37543
37544 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37545
37546         * modules/openat (Depends-on): Add lchown.
37547
37548 2006-08-23  Bruno Haible  <bruno@clisp.org>
37549
37550         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
37551         of gl_LOCK_EARLY instead of gl_LOCK.
37552
37553 2006-08-23  Bruno Haible  <bruno@clisp.org>
37554
37555         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
37556         on OSF/1 to no.
37557         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
37558
37559 2006-08-23  Bruno Haible  <bruno@clisp.org>
37560
37561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
37562         as unusable.
37563
37564         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
37565         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
37566         (gl_LOCK): New macro.
37567
37568 2006-08-22  Simon Josefsson  <jas@extundo.com>
37569
37570         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
37571         to md5 module.
37572
37573 2006-08-22  Simon Josefsson  <jas@extundo.com>
37574
37575         * MODULES.html.sh: Add "Support for maintaining and release
37576         projects".
37577
37578         * build-aux/gnupload: New file, from coreutils.
37579
37580 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37581
37582         Avoid the need for AC_LIBSOURCES in m4 macros.
37583         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
37584         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
37585         * modules/check-version (EXTRA_DIST): Add check-version.h.
37586         * modules/crc (EXTRA_DIST): Add crc.h.
37587         * modules/des (EXTRA_DIST): Add des.h.
37588         * modules/gc (EXTRA_DIST): Add gc.h.
37589         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
37590         * modules/getline (EXTRA_DIST): Add getline.h.
37591         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
37592         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
37593         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
37594         * modules/md2 (EXTRA_DIST): Add md2.h.
37595         * modules/md4 (EXTRA_DIST): Add md4.h.
37596         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
37597         * modules/read-file (EXTRA_DIST): Add read-file.h.
37598         * modules/readline (EXTRA_DIST): Add readline.h.
37599         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
37600         rijndael-api-fst.h.
37601
37602 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37603
37604         * m4/rijndael.m4 (gl_ARCFOUR):
37605         * m4/arctwo.m4 (gl_ARCTWO):
37606         * m4/check-version.m4 (gl_CHECK_VERSION):
37607         * m4/crc.m4 (gl_CRC):
37608         * m4/des.m4 (gl_DES):
37609         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
37610         * m4/gc.m4 (gl_GC):
37611         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
37612         * m4/getline.m4 (gl_FUNC_GETLINE):
37613         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
37614         * m4/hmac-md5.m4 (gl_HMAC_MD5):
37615         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
37616         * m4/md2.m4 (gl_MD2):
37617         * m4/md4.m4 (gl_MD4):
37618         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
37619         * m4/read-file.m4 (gl_FUNC_READ_FILE):
37620         * m4/readline.m4 (gl_FUNC_READLINE):
37621         * m4/rijndael.m4 (gl_RIJNDAEL):
37622         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
37623         to get the necessary .h files and whatnot.
37624
37625 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37626
37627         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
37628         gnulib rather than the other way around.
37629         * config/srclistvars.sh (COREUTILS): Remove.
37630
37631 2006-08-22  Jim Meyering  <jim@meyering.net>
37632
37633         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
37634
37635         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
37636
37637 2006-08-22  Eric Blake  <ebb9@byu.net>
37638
37639         * modules/regexprops-generic: New file.
37640         * MODULES.html.sh (Support for building documentation): List it.
37641
37642 2006-08-22  Eric Blake  <ebb9@byu.net>
37643
37644         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
37645         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37646         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
37647         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
37648
37649 2006-08-22  Bruno Haible  <bruno@clisp.org>
37650
37651         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
37652         and lib_LTLIBRARIES like the other lib_* variables.
37653
37654 2006-08-22  Bruno Haible  <bruno@clisp.org>
37655
37656         * build-aux/x-to-1.in: New file, from GNU gettext.
37657
37658 2006-08-22  Bruno Haible  <bruno@clisp.org>
37659
37660         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
37661         <utmpx.h> exists.
37662
37663 2006-08-22  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
37666         <utmpx.h> exists.
37667
37668 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
37669
37670         BeOS portability.
37671         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
37672         exist.
37673         Problem reported by Bruno Haible.
37674
37675 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
37676
37677         Avoid the need for AC_LIBSOURCES in m4 macros.
37678         * modules/acl (EXTRA_DIST): Add acl.h.
37679         * modules/argmatch (Files): Add m4/argmatch.m4.
37680         (configure.ac): Add gl_ARGMATCH.
37681         (EXTRA_DIST): Renamed from lib_SOURCES, for
37682         consistency with the other modules.  Remove argmatch.c.
37683         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
37684         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
37685         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
37686         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
37687         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
37688         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
37689         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
37690         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
37691         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
37692         * modules/closeout (EXTRA_DIST): Add closeout.h.
37693         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
37694         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
37695         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
37696         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
37697         dirname.h; remove basename.c and stripslash.c.
37698         * modules/exclude (EXTRA_DIST): Add exclude.h.
37699         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
37700         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
37701         * modules/file-type (EXTRA_DIST): Add file-type.h.
37702         * modules/filemode (EXTRA_DIST): Add filemode.h.
37703         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
37704         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
37705         * modules/fpending (EXTRA_DIST): Add __fpending.h.
37706         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
37707         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
37708         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
37709         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
37710         * modules/getdate (EXTRA_DIST): Add getdate.c.
37711         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
37712         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
37713         * modules/getpass (EXTRA_DIST): Add getpass.h.
37714         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
37715         * modules/group-member (EXTRA_DIST): Add group-member.h.
37716         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
37717         * modules/hash (EXTRA_DIST): Add hash.h.
37718         * modules/human (EXTRA_DIST): Add human.h.
37719         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
37720         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
37721         * modules/lchown (EXTRA_DIST): Add lchown.h.
37722         * modules/long-options (EXTRA_DIST): Add long-options.h.
37723         * modules/lstat (EXTRA_DIST): Add lstat.h.
37724         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
37725         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
37726         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
37727         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
37728         * modules/memxor (EXTRA_DIST): Add memxor.h.
37729         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
37730         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
37731         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
37732         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
37733         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
37734         * modules/physmem (EXTRA_DIST): Add physmem.h.
37735         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
37736         * modules/posixver (EXTRA_DIST): Add posixver.h.
37737         * modules/quote (EXTRA_DIST): Add quote.h.
37738         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
37739         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
37740         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
37741         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
37742         regex_internal.h regexec.c.
37743         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
37744         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
37745         * modules/same (EXTRA_DIST): Add same.h.
37746         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
37747         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
37748         * modules/savedir (EXTRA_DIST): Add savedir.h.
37749         * modules/sha1 (EXTRA_DIST): Add sha1.h.
37750         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
37751         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
37752         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
37753         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
37754         * modules/strdup (EXTRA_DIST): Add strdup.h.
37755         * modules/strftime (EXTRA_DIST): Add strftime.h.
37756         * modules/strndup (EXTRA_DIST): Add strndup.h.
37757         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
37758         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
37759         * modules/time_r (EXTRA_DIST): Add time_r.h.
37760         * modules/timespec (EXTRA_DIST): Add timespec.h.
37761         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
37762         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
37763         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
37764         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
37765         * modules/userspec (EXTRA_DIST): Add userspec.h.
37766         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
37767         * modules/utimens (EXTRA_DIST): Add utimens.h.
37768         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
37769         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
37770         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
37771         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
37772         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
37773         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
37774         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
37775         * modules/yesno (EXTRA_DIST): Add yesno.h.
37776
37777 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
37778
37779         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
37780
37781         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
37782         * m4/dev-ino.m4, same-inode.m4: Remove.
37783
37784         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
37785         * m4/acl.m4 (AC_FUNC_ACL):
37786         * m4/backupfile.m4 (gl_BACKUPFILE):
37787         * m4/c-strtod.m4 (gl_C99_STRTOLD):
37788         * m4/canon-host.m4 (gl_CANON_HOST):
37789         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37790         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
37791         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
37792         * m4/cloexec.m4 (gl_CLOEXEC):
37793         * m4/close-stream.m4 (gl_CLOSE_STREAM):
37794         * m4/closeout.m4 (gl_CLOSEOUT):
37795         * m4/dirfd.m4 (gl_FUNC_DIRFD):
37796         * m4/dirname.m4 (gl_DIRNAME):
37797         * m4/exclude.m4 (gl_EXCLUDE):
37798         * m4/exitfail.m4 (gl_EXITFAIL):
37799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
37800         * m4/file-type.m4 (gl_FILE_TYPE):
37801         * m4/filemode.m4 (gl_FILEMODE):
37802         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
37803         * m4/fpending.m4 (gl_FUNC_FPENDING):
37804         * m4/fprintftime.m4 (gl_FPRINTFTIME):
37805         * m4/fts.m4 (gl_FUNC_FTS):
37806         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
37807         * m4/getdate.m4 (gl_GETDATE):
37808         * m4/gethrxtime.m4 (gl_GETHRXTIME):
37809         * m4/getpagesize.m4 (gl_GETPAGESIZE):
37810         * m4/getpass.m4 (gl_FUNC_GETPASS):
37811         * m4/gettime.m4 (gl_GETTIME):
37812         * m4/getugroups.m4 (gl_GETUGROUPS):
37813         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
37814         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
37815         * m4/hard-locale.m4 (gl_HARD_LOCALE):
37816         * m4/hash.m4 (gl_HASH):
37817         * m4/idcache.m4 (gl_IDCACHE):
37818         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
37819         * m4/lchown.m4 (gl_FUNC_LCHOWN):
37820         * m4/long-options.m4 (gl_LONG_OPTIONS):
37821         * m4/lstat.m4 (gl_FUNC_LSTAT):
37822         * m4/md5.m4 (gl_MD5):
37823         * m4/memcasecmp.m4 (gl_MEMCASECMP):
37824         * m4/memcoll.m4 (gl_MEMCOLL):
37825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
37826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
37827         * m4/memxor.m4 (gl_MEMXOR):
37828         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
37829         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
37830         * m4/modechange.m4 (gl_MODECHANGE):
37831         * m4/mountlist.m4 (gl_MOUNTLIST):
37832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37833         * m4/openat.m4 (gl_FUNC_OPENAT):
37834         * m4/pathmax.m4 (gl_PATHMAX):
37835         * m4/physmem.m4 (gl_PHYSMEM):
37836         * m4/posixtm.m4 (gl_POSIXTM):
37837         * m4/posixver.m4 (gl_POSIXVER):
37838         * m4/quote.m4 (gl_QUOTE):
37839         * m4/quotearg.m4 (gl_QUOTEARG):
37840         * m4/readtokens.m4 (gl_READTOKENS):
37841         * m4/readutmp.m4 (gl_READUTMP):
37842         * m4/regex.m4 (gl_REGEX):
37843         * m4/safe-read.m4 (gl_SAFE_READ):
37844         * m4/safe-write.m4 (gl_SAFE_WRITE):
37845         * m4/same.m4 (gl_SAME):
37846         * m4/save-cwd.m4 (gl_SAVE_CWD):
37847         * m4/savedir.m4 (gl_SAVEDIR):
37848         * m4/settime.m4 (gl_SETTIME):
37849         * m4/sha1.m4 (gl_SHA1):
37850         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
37851         * m4/stat-macros.m4 (gl_STAT_MACROS):
37852         * m4/stat-time.m4 (gl_STAT_TIME):
37853         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
37854         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
37855         * m4/strdup.m4 (gl_FUNC_STRDUP):
37856         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
37857         * m4/strndup.m4 (gl_FUNC_STRNDUP):
37858         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
37859         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
37860         * m4/time_r.m4 (gl_TIME_R):
37861         * m4/timespec.m4 (gl_TIMESPEC):
37862         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
37863         * m4/unlinkdir.m4 (gl_UNLINKDIR):
37864         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
37865         * m4/userspec.m4 (gl_USERSPEC):
37866         * m4/utimecmp.m4 (gl_UTIMECMP):
37867         * m4/utimens.m4 (gl_UTIMENS):
37868         * m4/xalloc.m4 (gl_XALLOC):
37869         * m4/xgetcwd.m4 (gl_XGETCWD):
37870         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
37871         * m4/xreadlink.m4 (gl_XREADLINK):
37872         * m4/xstrtod.m4 (gl_XSTRTOD):
37873         * m4/yesno.m4 (gl_YESNO):
37874         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
37875         to get the necessary .h files and whatnot.
37876
37877 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
37878             Bruno Haible  <bruno@clisp.org>
37879
37880         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
37881         /bin/sh understanding of '!' conditional negation.
37882
37883 2006-08-21  Jim Meyering  <jim@meyering.net>
37884
37885         * modules/openat (Depends-on): Really alphabetize.
37886
37887         * modules/acl (Depends-on): Add error and quote.
37888
37889         * check-module (find_included_lib_files): Add at-func.c to the
37890         ok-to-include-more-than-once white list.
37891
37892         * modules/openat (Depends-on): Add lstat.  Alphabetize.
37893
37894 2006-08-21  Bruno Haible  <bruno@clisp.org>
37895
37896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37897         Emit a pkgdata_DATA variable only if some snippets add contents to it.
37898         Reported by Martin Lambers <marlam@marlam.de>.
37899
37900 2006-08-21  Bruno Haible  <bruno@clisp.org>
37901
37902         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
37903         specify an installation location, don't emit a noinst_LIBRARIES or
37904         noinst_LTLIBRARIES assignment.
37905
37906 2006-08-21  Bruno Haible  <bruno@clisp.org>
37907
37908         BeOS portability.
37909         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
37910         BeOS has mbrtowc() but no <wctype.h>.
37911
37912 2006-08-21  Bruno Haible  <bruno@clisp.org>
37913
37914         BeOS portability.
37915         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
37916         exist.
37917
37918 2006-08-21  Bruno Haible  <bruno@clisp.org>
37919
37920         BeOS portability.
37921         * lib/mbchar.h: Include <wctype.h> only if it exists.
37922
37923 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37924
37925         Remove files that are no longer needed by their respective modules.
37926         * m4/obstack.m4: Remove.
37927         * m4/strerror_r.m4: Remove.
37928         * m4/uint32_t.m4: Remove.
37929         * m4/uintptr_t.m4: Remove.
37930         * m4/ullong_max.m4: Remove.
37931         * m4/xstrtoimax.m4: Remove.
37932         * m4/xstrtoumax.m4: Remove.
37933
37934         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
37935         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
37936         dependencies now capture this.
37937
37938         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37939         Do not use AC_LIBSOURCES, since gnulib modules now do this.
37940         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
37941         * m4/human.m4 (gl_HUMAN): Likewise.
37942         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
37943         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
37944
37945         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
37946
37947         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
37948         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
37949         stdint.
37950         * m4/human.m4 (gl_HUMAN): Likewise.
37951         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
37952         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
37953         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
37954         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
37955         * m4/xstrtol (gl_XSTRTOL): Likewise.
37956
37957         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
37958         AC_TYPE_LONG_LONG_INT.
37959         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
37960         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
37961         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
37962         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
37963
37964         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
37965         on stdbool.
37966
37967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
37968         (gl_PREREQ_XSTRTOUL): Remove.
37969
37970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
37971
37972         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
37973         mode.
37974
37975 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         Add and change modules to make it easier for coreutils to use
37978         gnulib-tool.
37979         * modules/backupfile (Files): Remove m4/d-ino.m4.
37980         (Depends-on): Add d-ino.
37981         * modules/cycle-check (Depends-on): Add stdint.
37982         (lib_SOURCES): Add cycle-check.h.
37983         * modules/d-ino: New module.
37984         * modules/d-type: New module.
37985         * modules/error (Files): Remove m4/strerror_r.m4.
37986         * modules/filemode (Files): Add m4/st_dm_mode.m4.
37987         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
37988         m4/inttypes_h.m4, m4/uintmax_t.m4.
37989         (Depends-on): Add stdint.
37990         (lib_SOURCES): Add fsusage.h.
37991         * modules/getcwd (Files): Remove d-ino.m4.
37992         (Depends-on): Add d-ino.
37993         * modules/getndelim2 (Depends-on): Add stdint.
37994         * modules/glob (Files): Remove m4/d-type.m4.
37995         (Depends-on): Add d-type.
37996         * modules/host-os: New module.
37997         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
37998         m4/inttypes_h.m4, m4/uintmax_t.m4.
37999         * Depends-on: Add stdint.
38000         (lib_SOURCES): Add human.h.
38001         * modules/inttostr (Files): Remove m4/intmax_t.m4,
38002         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
38003         m4/uintmax_t.m4, m4/ulonglong.m4.
38004         (Depends-on): Add stdint.
38005         (EXTRA_DIST): Add inttostr.h.
38006         * modules/lchmod: New module.
38007         * modules/link-follow: New module.
38008         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
38009         (Depends-on): Add lchmod.
38010         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
38011         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
38012         (Depends-on): Add stdint.
38013         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
38014         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
38015         (Depends-on): Add stdint.
38016         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
38017         * modules/perl: New module.
38018         * modules/regex (Depends-on): Add stdint.
38019         * modules/rmdir-errno: New module.
38020         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38021         m4/intmax_t.m4.
38022         (Depends-on): Add stdint.
38023         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38024         m4/uintmax_t.m4.
38025         (Depends-on): Add stdint.
38026         * modules/unlink-busy: New module.
38027         * modules/utimecmp (Depends-on): Add stdint.
38028         * modules/uptime: New module.
38029         * modules/winsz-ioctl: New module.
38030         * modules/winsz-termios: New module.
38031         * modules/xnanosleep (Depends-on): Add nanosleep.
38032         * modules/ullong_max: Remove.
38033         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
38034         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
38035         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
38036         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
38037         (Depends-on): Add inttypes.
38038         (lib_SOURCES): Add xstrtol.h.
38039         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
38040         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
38041         * MODULES.html.sh: Move 'assert' into the assert section.
38042         Move 'dummy' into the linking section.
38043         Remove ullong_max.
38044         Add section for compatibility checks for POSIX:2001 functions,
38045         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
38046         winsz-ioctl, and winsz-termios into it.
38047         Add lchmod.
38048         Add top-level Misc section and put host-os, perl, and uptime
38049         into it.
38050
38051 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38052
38053         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
38054         now assume the stdint module.  Do not include inttypes.h.
38055         * lib/fsusage.h: Likewise.
38056         * lib/getndelim2.c: Likewise.
38057         * lib/human.h: Likewise.
38058         * lib/inttostr.h: Likewise.
38059         * lib/obstack.c: Likewise.
38060         * lib/regex_internal.h: Likewise.
38061         * lib/tempname.c: Likewise.
38062         * lib/utimecmp.c: Likewise.
38063         * lib/xstrtol.h: Likewise.
38064
38065         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
38066
38067         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
38068         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
38069         * lib/xtime.h: Likewise.
38070
38071 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38072
38073         * modules/openat (Files): Add lib/fchmodat.c.
38074         Fixes problem reported by Jay Youngman.
38075
38076 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38077
38078         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
38079         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
38080
38081 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
38082             Bruno Haible  <bruno@clisp.org>
38083
38084         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
38085         and is a script that invokes bison. Tighten the code. Add comments.
38086
38087 2006-08-18  Jim Meyering  <jim@meyering.net>
38088
38089         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
38090         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
38091         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
38092         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
38093
38094 2006-08-18  Bruno Haible  <bruno@clisp.org>
38095
38096         * modules/bison-i18n: New file.
38097         * MODULES.html.sh (Internationalization functions): Add it.
38098
38099 2006-08-18  Bruno Haible  <bruno@clisp.org>
38100
38101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
38102         sys/statvfs.h. When getmntinfo was found, check its declaration and
38103         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
38104
38105 2006-08-18  Bruno Haible  <bruno@clisp.org>
38106
38107         * m4/bison-i18n.m4: New file, from bison.
38108
38109 2006-08-18  Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
38112         (ME_DUMMY): Treat "kernfs" as a dummy.
38113         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
38114
38115 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38116
38117         Update from coreutils.
38118
38119         2006-08-15  Jim Meyering  <jim@meyering.net>
38120
38121         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
38122
38123         2006-01-17  Jim Meyering  <jim@meyering.net>
38124
38125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
38126
38127         2006-01-11  Jim Meyering  <jim@meyering.net>
38128
38129         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
38130         Check for the lchmod function.
38131
38132 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38133
38134         Update from coreutils.
38135
38136         * lib/__fpending.h: Add copyright notice.
38137         * lib/fprintftime.h: Likewise.
38138         * lib/savedir.c: Use (C) in copyright notice.
38139         * lib/savedir.h: Likewise.
38140
38141         2006-08-15  Jim Meyering  <jim@meyering.net>
38142
38143         * lib/at-func.c: New file, with the logic of all emulated at-functions.
38144         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
38145         in support of the EXPECTED_ERRNO macro.
38146         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
38147         definitions.  Instead, define the appropriate symbols and include
38148         "at-func.c".
38149         * lib/mkdirat.c (mkdirat): Likewise.
38150         * lib/fchmodat.c (fchmodat): Likewise.
38151         (ENOSYS): Remove definition.
38152         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
38153         it.  Don't include "unistd--.h" -- it wasn't ever used.
38154
38155         2006-01-17  Jim Meyering  <jim@meyering.net>
38156
38157         Rewrite fts.c not to change the current working directory,
38158         by using openat, fstatat, fdopendir, etc..
38159
38160         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
38161         (HAVE_OPENAT_SUPPORT): Define.
38162         [_LIBC] (fchdir): Don't undef or define; no longer used.
38163         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
38164         Now, this `function' always succeeds, and consumes its file descriptor
38165         parameter -- so callers must not close such FDs.  Update callers.
38166         (diropen_fd, opendirat, cwd_advance_fd): New functions.
38167         (diropen): Add parameter, SP.  Adjust all callers.
38168         Implement using diropen_fd, rather than open.
38169         (fts_open): Initialize new member, fts_cwd_fd.
38170         Remove fts_rft-setting code.
38171         (fts_close): Close fts_cwd_fd, if necessary.
38172         (__opendir2): Define in terms of opendir or opendirat,
38173         depending on whether the FST_NOCHDIR flag is set.
38174         (fts_build): Since fts_safe_changedir consumes its FD, and since
38175         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
38176         and close the dup'd file descriptor upon failure.
38177         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
38178         (fts_safe_changedir): Tweak semantics to reflect that this function
38179         now calls cwd_advance_fd and hence consumes its FD argument.
38180         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
38181         [struct FTS] (fts_rft): Remove now-unused member.
38182         [struct FTS] (fts_cycle.state): Improve comment.
38183
38184         * lib/openat.c (openat_needs_fchdir): New function.
38185         * lib/openat.h (openat_needs_fchdir): Declare it.
38186
38187 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
38188
38189         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
38190         Problem and fix reported by Pádraig Brady in
38191         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
38192
38193 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38194
38195         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
38196
38197 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38198
38199         * lib/memcoll.c (memcoll): Optimize for the common case where the
38200         arguments are bytewise equal.
38201
38202 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38203
38204         * doc/regexprops-generic.texi: Add a copyright notice.
38205
38206 2006-08-15  Bruno Haible  <bruno@clisp.org>
38207
38208         * modules/tmpdir (License): Change to LGPL.
38209
38210 2006-08-15  Bruno Haible  <bruno@clisp.org>
38211
38212         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
38213         module.
38214
38215 2006-08-14  Simon Josefsson  <jas@extundo.com>
38216
38217         * config/srclist.txt: Add gnupload.
38218
38219 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38220
38221         Change copyright notice from LGPL 2 to GPL 2, since that's the
38222         standard form used in the gnulib repository.
38223         * tests/test-lock.c: Likewise.
38224         * tests/test-stdint.c: Likewise.
38225         * tests/test-tls.c: Likewise.
38226
38227         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
38228         prelude-manager.  User shorter URLs for GNU projects, without '?'.
38229         Add copyright notice.
38230
38231         * check-module: Add copyright notice.  Output a copyright
38232         notice if "--version" is specified.
38233         * modules/COPYING: New file.
38234         * tests/test-getaddrinfo.c: Add copyright notice.
38235         * tests/test-verify.c: Likewise.
38236
38237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38238
38239         Change copyright notice from LGPL 2 to GPL 2, since that's the
38240         standard form used in the gnulib repository.
38241         * lib/lock.c: LGPL -> GPL.
38242         * lib/lock.h: Likewise.
38243         * lib/strnlen1.c: Likewise.
38244         * lib/strnlen1.h: Likewise.
38245         * lib/tls.c: Likewise.
38246         * lib/tls.h: Likewise.
38247         * lib/tmpdir.c: Likewise.
38248
38249         * lib/TODO: Remove; this belongs only in coreutils.
38250
38251 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38252
38253         Add copyright notices to long-enough files that lack them, since
38254         otherwise the files aren't clearly free.  Use the same notice that
38255         getdate.texi already uses.
38256         * doc/alloca-opt.texi: Add copyright notice.
38257         * doc/alloca.texi: Likewise.
38258         * doc/ctime.texi: Likewise.
38259         * doc/functions.texi: Likewise.
38260         * doc/gcd.texi: Likewise.
38261         * doc/gnulib-tool.texi: Likewise.
38262         * doc/inet_ntoa.texi: Likewise.
38263         * doc/visibility.texi: Likewise.
38264
38265         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
38266         * doc/quote.texi: Add copyright notice.
38267
38268         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
38269         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
38270         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
38271         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
38272         is now obsolete, and give a pointer to the Sun list.
38273         Add copyright notice.
38274
38275 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38276
38277         * config/srclistvars.sh: Add copyright notice.
38278
38279 2006-08-14  Eric Blake  <ebb9@byu.net>
38280
38281         Import the following change from libc:
38282
38283         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
38284
38285         Upstream bug 2997.
38286         * lib/misc/error.c: Add space between program name and message if file
38287         name is missing.
38288
38289 2006-08-12  Karl Berry  <karl@gnu.org>
38290
38291         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
38292         remove, these originate in gnulib now.
38293
38294 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38295
38296         * doc/Makefile (standards.info standards.html standards.dvi):
38297         Also depend on make-stds.texi.
38298
38299 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
38300
38301         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
38302         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
38303
38304         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
38305         in wchar_t.  Problem reported by Eric Blake.
38306
38307         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
38308         LEN is smaller than SIZE.  Suggested by Bruno Haible.
38309         Also, help the compiler to keep LEN in a register.
38310
38311 2006-08-11  Eric Blake  <ebb9@byu.net>
38312
38313         * users.txt: Sort.  Add tar.
38314
38315 2006-08-11  Bruno Haible  <bruno@clisp.org>
38316
38317         * users.txt: New file.
38318
38319 2006-08-11  Bruno Haible  <bruno@clisp.org>
38320
38321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
38322         before <wchar.h>. Needed for OSF/1 and BSD/OS.
38323
38324 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38325
38326         * modules/snprintf (Depends-on): Remove minmax.
38327         (Maintainer): Add self and Bruno.
38328
38329 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38330
38331         * lib/.cppi-disable: Add snprintf.h, socket_.h.
38332         * lib/snprintf.c: Include <errno.h> and <limits.h>.
38333         (EOVERFLOW): Define if the system does not.
38334         Do not include "minmax.h"; it wasn't used.
38335         (snprintf): Don't assume size_t promotes to an unsigned type.
38336         Fix bug when generated string was too long for the buffer: the
38337         buffer's contents are supposed to be the initial prefix of the
38338         output.  Don't assume vasnprintf returns EOVERFLOW if the size
38339         exceeds INT_MAX; do the check ourselves.
38340
38341         Import the following changes from libc:
38342
38343         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
38344
38345         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
38346         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
38347         set wc to the byte which couldn't be converted.
38348         (re_string_reconstruct): Don't clear valid_raw_len before calling
38349         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
38350         tip_context using re_string_context_at.
38351
38352         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
38353
38354         * lib/posix/regex.h: g++ still cannot handled [restrict].
38355
38356         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
38357
38358         * lib/posix/regex.h: Remove special handling for VMS.
38359
38360 2006-08-10  Jim Meyering  <jim@meyering.net>
38361
38362         * modules/same-inode: New module.
38363         * modules/dev-ino: New module.
38364         * modules/cycle-check: Depend on these modules, rather than simply
38365         including their .h files.
38366         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
38367         required via m4/cycle-check.m4.
38368         * modules/same: Depend on new same-inode module, rather than
38369         including same-inode.h.
38370         * modules/chdir-safer: New file.
38371
38372         * modules/chown (Depends-on): Add stat-macros.
38373
38374 2006-08-10  Jim Meyering  <jim@meyering.net>
38375
38376         * m4/cycle-check.m4: New file.
38377         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
38378         * m4/dev-ino.m4, m4/same-inode.m4: New files.
38379
38380 2006-08-10  Eric Blake  <ebb9@byu.net>
38381
38382         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
38383         in from original proposal.
38384
38385 2006-08-10  Eric Blake  <ebb9@byu.net>
38386         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38387
38388         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
38389         namespace.
38390
38391 2006-08-10  Bruno Haible  <bruno@clisp.org>
38392
38393         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
38394         as well.
38395
38396 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
38397
38398         Sync from coreutils.
38399
38400         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
38401
38402         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
38403         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
38404
38405 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
38406
38407         * modules/restrict: Remove; no longer needed now that we assume
38408         Autoconf 2.59 or later.
38409         * MODULES.html.sh: Remove 'restrict'.
38410         * modules/argp (Depends-on): Remove 'restrict'.
38411         * modules/base64 (Depends-on): Likewise.
38412         * modules/gc (Depends-on): Likewise.
38413         * modules/getaddrinfo (Depends-on): Likewise.
38414         * modules/glob (Depends-on): Likewise.
38415         * modules/inet_ntop (Depends-on): Likewise.
38416         * modules/inet_pton (Depends-on): Likewise.
38417         * modules/memxor (Depends-on): Likewise.
38418         * modules/regex (Depends-on): Likewise.
38419         * modules/strtok_r (Depends-on): Likewise.
38420         * modules/time_r (Depends-on): Likewise.
38421
38422 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
38423
38424         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
38425         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
38426         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38427         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
38428         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
38429         * m4/memxor.m4 (gl_MEMXOR): Likewise.
38430         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
38431         gl_C_RESTRICT replaced by AC_C_RESTRICT.
38432
38433         Merge from coreutils.
38434         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
38435         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
38436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38437         * m4/time_r.m4 (gl_TIME_R): Likewise.
38438
38439 2006-08-09  Karl Berry  <karl@gnu.org>
38440
38441         * config/srclist.txt: no more gettext-tools, per Bruno.
38442
38443 2006-08-08  Eric Blake  <ebb9@byu.net>
38444
38445         * modules/verror: New module.
38446         * MODULES.html.sh: Document it.
38447
38448 2006-08-08  Eric Blake  <ebb9@byu.net>
38449
38450         * lib/verror.h, lib/verror.c: New files.
38451
38452 2006-08-08  Eric Blake  <ebb9@byu.net>
38453
38454         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
38455         verror_at_line output complies with GNU Coding Standards even when
38456         file is NULL.
38457
38458 2006-08-07  Bruno Haible  <bruno@clisp.org>
38459
38460         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
38461         versions of AIX.
38462         Reported by Ralf Wildenhues.
38463
38464 2006-08-07  Bruno Haible  <bruno@clisp.org>
38465
38466         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
38467         in an AC_DEFUN. Needed so that the autoconf snippets can use
38468         AC_REQUIRE.
38469
38470 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38471
38472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38473         Initialize pkgdata_DATA.
38474         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
38475         overriding it.
38476
38477 2006-08-06  Eric Blake  <ebb9@byu.net>
38478
38479         * lib/error.h: Fold in some upstream changes from glibc.
38480         * lib/error.c: Likewise.
38481
38482 2006-08-04  Bruno Haible  <bruno@clisp.org>
38483
38484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38485         Make the mostlyclean-local rule depend on mostlyclean-generic.
38486         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
38487
38488 2006-07-31  Bruno Haible  <bruno@clisp.org>
38489
38490         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
38491         <stdlib.h>, <string.h>.
38492
38493 2006-07-30  Bruno Haible  <bruno@clisp.org>
38494
38495         * modules/readlink (License): Change to LGPL.
38496
38497 2006-07-30  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/javaversion (Makefile.am): Distribute javaversion.java and
38500         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
38501         set PKGDATADIR to point to it.
38502
38503 2006-07-30  Bruno Haible  <bruno@clisp.org>
38504
38505         * modules/csharpexec (configure.ac): Comment out macro invocation.
38506         * modules/javaexec (configure.ac): Likewise.
38507         * modules/javacomp-script (configure.ac): Likewise.
38508
38509         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
38510
38511 2006-07-30  Bruno Haible  <bruno@clisp.org>
38512
38513         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
38514         linked-list.
38515
38516 2006-07-30  Bruno Haible  <bruno@clisp.org>
38517
38518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
38519
38520 2006-07-30  Bruno Haible  <bruno@clisp.org>
38521
38522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38523         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
38524         get removed.
38525
38526 2006-07-29  Bruno Haible  <bruno@clisp.org>
38527
38528         Make it possible for gnulib-tool to work with locally modified or
38529         augmented gnulib repositories.
38530         * gnulib-tool (func_usage): Document --local-dir option.
38531         (local_gnulib_dir): New variable.
38532         Handle --local-dir option.
38533         (func_lookup_file): New function.
38534         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
38535         (func_get_description, func_get_filelist, func_get_description,
38536         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
38537         func_get_automake_snippet, func_get_include_directive,
38538         func_get_license, func_get_maintainer): Use func_lookup_file.
38539         (func_import, func_create_testdir): Use func_lookup_file.
38540
38541 2006-07-29  Bruno Haible  <bruno@clisp.org>
38542
38543         * modules/setenv (Depends-on): Add unistd.
38544
38545 2006-07-29  Bruno Haible  <bruno@clisp.org>
38546
38547         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
38548
38549 2006-07-29  Bruno Haible  <bruno@clisp.org>
38550
38551         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
38552
38553 2006-07-29  Bruno Haible  <bruno@clisp.org>
38554
38555         * gnulib-tool (import, update): If there is no Makefile.am, look at
38556         aclocal.m4, instead of bailing out.
38557
38558 2006-07-29  Bruno Haible  <bruno@clisp.org>
38559
38560         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
38561         Categorize the options by when they are useful.
38562
38563 2006-07-29  Bruno Haible  <bruno@clisp.org>
38564
38565         * gnulib-tool (func_usage): Document option --no-libtool.
38566         Handle option --no-libtool.
38567         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
38568         for changed semantics of $libtool variable.
38569         (func_import): Likewise. If libtool is not used, show this through
38570         an option --no-libtool.
38571         (func_create_testdir): Update.
38572
38573 2006-07-29  Bruno Haible  <bruno@clisp.org>
38574
38575         * gnulib-tool (func_import): Extend error message about missing
38576         --doc-base.
38577
38578 2006-07-29  Bruno Haible  <bruno@clisp.org>
38579
38580         * gnulib-tool (func_import): Don't create the $docbase directory if
38581         there is no file to store there.
38582
38583 2006-07-29  Bruno Haible  <bruno@clisp.org>
38584
38585         * gnulib-tool (autoconf_minversion): If a --dir option is given and
38586         relevant, look for configure.ac there, not in the current directory.
38587         Also use a simple search for AC_PREREQ, not "autoconf --trace".
38588
38589 2006-07-29  Bruno Haible  <bruno@clisp.org>
38590
38591         * gnulib-tool (SORT): New variable.
38592         (func_usage): Undocument --assume-autoconf option.
38593         Remove --assume-autoconf option handling.
38594         (autoconf_minversion): Determine from the contents of configure.ac.
38595         (func_import): Remove autoconf_minversion handling.
38596         Suggested by Eric Blake.
38597
38598 2006-07-29  Bruno Haible  <bruno@clisp.org>
38599
38600         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
38601
38602 2006-07-29  Bruno Haible  <bruno@clisp.org>
38603
38604         * config/srclist.txt (*setenv.[ch]): Remove rules.
38605
38606 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38607
38608         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
38609
38610 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38611
38612         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
38613         arpa/inet.h.
38614
38615 2006-07-28  Simon Josefsson  <jas@extundo.com>
38616
38617         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
38618         * modules/inet_pton (Depends-on): Likewise.
38619
38620 2006-07-28  Simon Josefsson  <jas@extundo.com>
38621
38622         * m4/netinet_in_h.m4: New file.
38623
38624 2006-07-28  Simon Josefsson  <jas@extundo.com>
38625
38626         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
38627         #include's.
38628
38629 2006-07-28  Simon Josefsson  <jas@extundo.com>
38630
38631         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
38632         #include's.
38633
38634 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
38635
38636         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
38637         setgid on directories only if they set these bits.
38638         * lib/modechange.h: Remove obsolete comment about masks.
38639
38640 2006-07-28  Eric Blake  <ebb9@byu.net>
38641
38642         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
38643         macro expansion.
38644
38645 2006-07-28  Bruno Haible  <bruno@clisp.org>
38646
38647         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
38648
38649 2006-07-28  Bruno Haible  <bruno@clisp.org>
38650
38651         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
38652
38653 2006-07-28  Bruno Haible  <bruno@clisp.org>
38654
38655         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38656         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38657         Define fallbacks.
38658         Avoids link error on FreeBSD 4.x.
38659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38660
38661         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
38662         encoding.
38663         * lib/mbswidth.c (iswcntrl): Likewise.
38664
38665 2006-07-27  Bruno Haible  <bruno@clisp.org>
38666
38667         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
38668         test.
38669
38670 2006-07-27  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
38673         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
38674         defined.
38675
38676 2006-07-26  Eric Blake  <ebb9@byu.net>
38677
38678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
38679
38680 2006-07-26  Eric Blake  <ebb9@byu.net>
38681
38682         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
38683         like mingw that lack mkstemp.
38684         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
38685         avoid compilation warning on mingw.
38686
38687 2006-07-26  Bruno Haible  <bruno@clisp.org>
38688
38689         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
38690         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
38691         INT_FAST*_MIN, INTPTR_MIN.
38692
38693 2006-07-25  Bruno Haible  <bruno@clisp.org>
38694
38695         * modules/version-etc (Depends-on): Add stdarg.
38696
38697 2006-07-25  Bruno Haible  <bruno@clisp.org>
38698
38699         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
38700         complex commands.
38701
38702 2006-07-25  Bruno Haible  <bruno@clisp.org>
38703
38704         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
38705         defined in <stdarg.h> or config.h.
38706
38707 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
38708
38709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
38710         (gl_STDIO_SAFER): Remove.
38711
38712 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
38713
38714         * MODULES.html.sh (File stream based Input/Output):
38715         Add fopen-safer, tmpfile-safer; remove stdio-safer.
38716         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
38717         * modules/fopen-safer, modules/tmpfile-safer: New files.
38718         * modules/stdio-safer: Remove.
38719
38720 2006-07-24  Bruno Haible  <bruno@clisp.org>
38721
38722         * modules/tmpdir: New file.
38723         * MODULES.html.sh (File system functions): Add it.
38724
38725 2006-07-24  Bruno Haible  <bruno@clisp.org>
38726
38727         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
38728         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
38729
38730 2006-07-24  Bruno Haible  <bruno@clisp.org>
38731
38732         * modules/clean-temp: New file.
38733
38734 2006-07-24  Bruno Haible  <bruno@clisp.org>
38735
38736         * m4/tmpdir.m4: New file, from GNU gettext.
38737
38738 2006-07-24  Bruno Haible  <bruno@clisp.org>
38739
38740         * lib/tmpdir.h: New file, from GNU gettext.
38741         * lib/tmpdir.c: New file, from GNU gettext.
38742
38743 2006-07-24  Bruno Haible  <bruno@clisp.org>
38744
38745         * lib/clean-temp.h: New file, from GNU gettext.
38746         * lib/clean-temp.c: New file, from GNU gettext.
38747
38748 2006-07-23  Eric Blake  <ebb9@byu.net>
38749
38750         * modules/stdio-safer (Files): Add tmpfile-safer.c.
38751         (Depends-on): Add binary-io.
38752
38753 2006-07-23  Eric Blake  <ebb9@byu.net>
38754
38755         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
38756
38757 2006-07-23  Eric Blake  <ebb9@byu.net>
38758
38759         * lib/tmpfile-safer.c: New file.
38760         * lib/stdio-safer.h (fopen_safer): Add prototype.
38761         * lib/stdio--.h (tmpfile): Make safer.
38762
38763 2006-07-23  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
38766         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
38767         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
38768         gl_linked_remove_at): Use it.
38769
38770 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38771         and Simon Josefsson <jas@extundo.com>
38772
38773         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
38774
38775         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
38776
38777 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38778
38779         * modules/close-stream: New file.
38780         * modules/closeout (Description): Make it clear that it exits
38781         with a diagnostic on error.
38782         (Depends-on): Add close-stream.  Remove fpending, stdbool.
38783         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
38784
38785 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38786
38787         * m4/close-stream.m4: New file.
38788
38789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38790
38791         * lib/close-stream.c, lib/close-stream.h: New files.
38792
38793 2006-07-22  Bruno Haible  <bruno@clisp.org>
38794
38795         Merge from GNU gettext 0.15.
38796
38797         2006-05-01  Bruno Haible  <bruno@clisp.org>
38798
38799                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
38800
38801         2006-07-22  Bruno Haible  <bruno@clisp.org>
38802
38803                 * modules/javaversion: New file.
38804                 * MODULES.html.sh (Java): Add javaversion.
38805
38806         2006-03-12  Bruno Haible  <bruno@clisp.org>
38807
38808                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
38809
38810         2005-12-04  Bruno Haible  <bruno@clisp.org>
38811
38812                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
38813                 (untested).
38814
38815         2006-06-21  Bruno Haible  <bruno@clisp.org>
38816
38817                 Avoid warnings from recent versions of mcs.
38818                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
38819                 -o, -L, -r any more. Use options documented since mcs-1.0
38820                 instead. Similarly for -g.
38821
38822         2005-12-04  Bruno Haible  <bruno@clisp.org>
38823
38824                 * build-aux/csharpcomp.sh.in: Suffix for resources is
38825                 .resources, not .resource.
38826
38827         2005-07-09  Bruno Haible  <bruno@clisp.org>
38828
38829                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
38830                 add a .dll suffix.
38831                 Reported by Mark Junker <mjscod@gmx.de>.
38832
38833         2006-07-22  Bruno Haible  <bruno@clisp.org>
38834
38835                 * modules/gettext: Upgrade to gettext-0.15.
38836                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
38837                 m4/visibility.m4.
38838                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
38839
38840 2006-07-22  Bruno Haible  <bruno@clisp.org>
38841
38842         Merge from GNU gettext 0.15.
38843
38844         2006-03-25  Bruno Haible  <bruno@clisp.org>
38845
38846                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
38847
38848         2006-07-21  Bruno Haible  <bruno@clisp.org>
38849
38850                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
38851                 "1.1".
38852
38853         2006-05-09  Bruno Haible  <bruno@clisp.org>
38854
38855                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
38856                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
38857                 for the conftestver execution.
38858
38859         2006-05-01  Bruno Haible  <bruno@clisp.org>
38860
38861                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
38862                 optional target-version argument. Verify that the compiler
38863                 groks source of the specified source-version, or add -source
38864                 option as necessary. Verify that the compiler produces
38865                 bytecode in the specified target-version, or add -target and
38866                 -source options as necessary. Make the result of the test
38867                 available as variable CONF_JAVAC. Also log error output in
38868                 config.log.
38869
38870         2006-03-11  Bruno Haible  <bruno@clisp.org>
38871
38872                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
38873
38874         2006-05-09  Bruno Haible  <bruno@clisp.org>
38875
38876                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
38877                 CLASSPATH_SEPARATOR to a semicolon.
38878
38879         2006-03-12  Bruno Haible  <bruno@clisp.org>
38880
38881                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
38882                 available as variable CONF_JAVA, for subsequent autoconf
38883                 tests. Also log error output in config.log.
38884
38885         2006-07-19  Bruno Haible  <bruno@clisp.org>
38886
38887                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
38888                 that getline works on glibc2 systems. Needed to avoid trouble
38889                 in relocatable.c.
38890                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
38891
38892         2005-12-04  Bruno Haible  <bruno@clisp.org>
38893
38894                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
38895                 launcher (untested).
38896
38897         2005-12-04  Bruno Haible  <bruno@clisp.org>
38898
38899                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
38900
38901         2006-07-22  Bruno Haible  <bruno@clisp.org>
38902
38903                 * gettext.m4: Update from GNU gettext-0.15.
38904                 * nls.m4: Likewise.
38905                 * po.m4: Likewise.
38906                 * inttypes-pri.m4: Likewise.
38907                 * inttypes-h.m4: Renamed from inttypes.m4.
38908                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
38909
38910 2006-07-22  Bruno Haible  <bruno@clisp.org>
38911
38912         Merge from GNU gettext 0.15.
38913
38914         2005-07-05  Bruno Haible  <bruno@clisp.org>
38915
38916                 * printf-args.c (printf_fetchargs): Work around broken
38917                 definition of wint_t on mingw.
38918
38919         2005-02-12  Bruno Haible  <bruno@clisp.org>
38920
38921                 * xallocsa.h: Add extern "C" for C++.
38922
38923         2006-05-17  Bruno Haible  <bruno@clisp.org>
38924
38925                 Cygwin portability.
38926                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
38927
38928         2006-04-30  Bruno Haible  <bruno@clisp.org>
38929
38930                 * progreloc.c: Include <mach-o/dyld.h> if available.
38931                 (find_executable): Use _NSGetExecutablePath when possible.
38932
38933         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38934
38935                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
38936                 function.
38937
38938         2005-12-29  Bruno Haible  <bruno@clisp.org>
38939
38940                 * progreloc.c (set_program_name_and_installdir): Fix
38941                 compilation error.
38942
38943         2005-12-04  Bruno Haible  <bruno@clisp.org>
38944
38945                 Cygwin portability.
38946                 * progreloc.c: Include <windows.h> also on Cygwin.
38947                 (find_executable): Add support for Cygwin.
38948                 (set_program_name_and_installdir): Handle also platforms with
38949                 nonempty EXEEXT.
38950
38951         2006-07-11  Bruno Haible  <bruno@clisp.org>
38952
38953                 * javacomp.c: Fix a comment.
38954                 Reported by Jim Meyering.
38955
38956         2006-04-30  Bruno Haible  <bruno@clisp.org>
38957
38958                 * javacomp.h (compile_java_class): Add source_version,
38959                 target_version arguments.
38960                 * javacomp.c: Rewritten to choose only a compiler that
38961                 respects the specified source_version and target_version.
38962
38963         2006-06-27  Bruno Haible  <bruno@clisp.org>
38964
38965                 Assume correct S_ISDIR macro.
38966                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
38967
38968         2006-07-22  Bruno Haible  <bruno@clisp.org>
38969
38970                 * javaversion.h: New file, from GNU gettext.
38971                 * javaversion.c: New file, from GNU gettext.
38972                 * javaversion.java: New file, from GNU gettext.
38973                 * javaversion.class: New file, from GNU gettext.
38974
38975         2006-05-17  Bruno Haible  <bruno@clisp.org>
38976
38977                 Cygwin portability.
38978                 * javaexec.c (execute_java_class): Test for jview program
38979                 also on Cygwin.
38980
38981         2006-04-09  Bruno Haible  <bruno@clisp.org>
38982
38983                 * fatal-signal.c: Don't include string.h.
38984                 (at_fatal_signal): Use a copying loop instead of memcpy.
38985
38986         2005-12-04  Bruno Haible  <bruno@clisp.org>
38987
38988                 * csharpexec.c: Add support for 'clix' launcher (untested).
38989                 (execute_csharp_using_sscli): New function.
38990                 (execute_csharp_program): Call it.
38991
38992         2006-06-21  Bruno Haible  <bruno@clisp.org>
38993
38994                 Avoid warnings from recent versions of mcs.
38995                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
38996                 -o, -L, -r any more. Use options documented since mcs-1.0
38997                 instead. Similarly for -g.
38998
38999         2005-07-09  Bruno Haible  <bruno@clisp.org>
39000
39001                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
39002                 add a .dll suffix.
39003                 Reported by Mark Junker <mjscod@gmx.de>.
39004
39005         2006-06-17  Bruno Haible  <bruno@clisp.org>
39006
39007                 * config.charset: Update for NetBSD 3.0.
39008
39009         2006-05-17  Bruno Haible  <bruno@clisp.org>
39010
39011                 Cygwin portability.
39012                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
39013
39014         2006-05-16  Bruno Haible  <bruno@clisp.org>
39015
39016                 * localcharset.c [CYGWIN]: Include <windows.h>.
39017                 (get_charset_aliases): For Cygwin, return the same CPxxx
39018                 aliases list as under WIN32.
39019                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
39020                 the environment variables. Fall back to GetACP().
39021
39022         2006-04-05  Bruno Haible  <bruno@clisp.org>
39023
39024                 * config.charset: Update Juan Manuel Guerrero's address.
39025
39026         2005-02-12  Bruno Haible  <bruno@clisp.org>
39027
39028                 * allocsa.h: Add extern "C" for C++.
39029
39030         2005-02-10  Bruno Haible  <bruno@clisp.org>
39031
39032                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
39033                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
39034
39035         2006-07-22  Bruno Haible  <bruno@clisp.org>
39036
39037                 * gettext.h: Update to GNU gettext-0.15.
39038
39039 2006-07-22  Bruno Haible  <bruno@clisp.org>
39040
39041         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
39042         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
39043         lib-prefix.m4, longdouble.m4, ssize_t.m4.
39044
39045 2006-07-21  Eric Blake  <ebb9@byu.net>
39046
39047         * modules/stdlib-safer: New file.
39048         * MODULES.html.sh (File stream based Input/Output): Add
39049         stdlib-safer.
39050
39051 2006-07-21  Eric Blake  <ebb9@byu.net>
39052
39053         * lib/stdlib-safer.h: New file from coreutils, required by
39054         stdlib--.h.
39055
39056 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
39057
39058         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
39059
39060 2006-07-20  Bruno Haible  <bruno@clisp.org>
39061
39062         * gnulib-tool: Recognize new option --assume-autoconf.
39063         (autoconf_minversion): New variable.
39064         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
39065
39066 2006-07-20  Bruno Haible  <bruno@clisp.org>
39067
39068         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
39069
39070 2006-07-19  Derek R. Price  <derek@ximbiot.com>
39071
39072         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
39073         Reindent and repaginate.
39074
39075 2006-07-19  Derek Price  <derek@ximbiot.com>
39076
39077         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
39078         Correct grammar.
39079
39080 2006-07-17  Bruno Haible  <bruno@clisp.org>
39081
39082         * modules/list: New file.
39083         * modules/array-list: New file.
39084         * modules/carray-list, modules/carray-list-tests: New files.
39085         * modules/linked-list, modules/linked-list-tests: New files.
39086         * modules/avltree-list, modules/avltree-list-tests: New files.
39087         * modules/rbtree-list, modules/rbtree-list-tests: New files.
39088         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
39089         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
39090         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
39091         * modules/oset: New file.
39092         * modules/array-oset: New file.
39093         * modules/avltree-oset, modules/avltree-oset-tests: New files.
39094         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
39095         * tests/test-carray_list.c: New file.
39096         * tests/test-linked_list.c: New file.
39097         * tests/test-avltree_list.c: New file.
39098         * tests/test-rbtree_list.c: New file.
39099         * tests/test-linkedhash_list.c: New file.
39100         * tests/test-avltreehash_list.c: New file.
39101         * tests/test-rbtreehash_list.c: New file.
39102         * tests/test-avltree_oset.c: New file.
39103         * tests/test-rbtree_oset.c: New file.
39104         * MODULES.html.sh (Container data structures): New section.
39105
39106 2006-07-17  Bruno Haible  <bruno@clisp.org>
39107
39108         * m4/gl_list.m4: New file.
39109
39110 2006-07-17  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/gl_list.h: New file.
39113         * lib/gl_list.c: New file.
39114         * lib/gl_array_list.h: New file.
39115         * lib/gl_array_list.c: New file.
39116         * lib/gl_carray_list.h: New file.
39117         * lib/gl_carray_list.c: New file.
39118         * lib/gl_linked_list.h: New file.
39119         * lib/gl_linked_list.c: New file.
39120         * lib/gl_anylinked_list1.h: New file.
39121         * lib/gl_anylinked_list2.h: New file.
39122         * lib/gl_avltree_list.h: New file.
39123         * lib/gl_avltree_list.c: New file.
39124         * lib/gl_anyavltree_list1.h: New file.
39125         * lib/gl_anyavltree_list2.h: New file.
39126         * lib/gl_rbtree_list.h: New file.
39127         * lib/gl_rbtree_list.c: New file.
39128         * lib/gl_anyrbtree_list1.h: New file.
39129         * lib/gl_anyrbtree_list2.h: New file.
39130         * lib/gl_anytree_list1.h: New file.
39131         * lib/gl_anytree_list2.h: New file.
39132         * lib/gl_linkedhash_list.h: New file.
39133         * lib/gl_linkedhash_list.c: New file.
39134         * lib/gl_anyhash_list1.h: New file.
39135         * lib/gl_anyhash_list2.h: New file.
39136         * lib/gl_avltreehash_list.h: New file.
39137         * lib/gl_avltreehash_list.c: New file.
39138         * lib/gl_rbtreehash_list.h: New file.
39139         * lib/gl_rbtreehash_list.c: New file.
39140         * lib/gl_anytreehash_list1.h: New file.
39141         * lib/gl_anytreehash_list2.h: New file.
39142
39143         * lib/gl_oset.h: New file.
39144         * lib/gl_oset.c: New file.
39145         * lib/gl_array_oset.h: New file.
39146         * lib/gl_array_oset.c: New file.
39147         * lib/gl_avltree_oset.h: New file.
39148         * lib/gl_avltree_oset.c: New file.
39149         * lib/gl_rbtree_oset.h: New file.
39150         * lib/gl_rbtree_oset.c: New file.
39151         * lib/gl_anytree_oset.h: New file.
39152
39153 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39154
39155         * m4/mkancesdirs.m4: New file.
39156         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
39157         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
39158         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
39159         it.
39160
39161 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39162
39163         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
39164         * lib/mkancesdirs.h: New files.
39165         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
39166         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
39167         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
39168         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
39169         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
39170         callers changed.  Revamp internals significantly, by not
39171         attempting to create directories that are temporarily more
39172         permissive than the final results.  Do not attempt to use
39173         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
39174         This removes some race conditions, fixes some bugs, and simplifies
39175         things.  Use new dirchownmod function to do owner and mode changes.
39176         * lib/mkdir-p.h: Likewise.
39177         * lib/modechange.c (octal_to_mode): New function.
39178         (struct mode_change): New member mentioned.
39179         (make_node_op_equals): New arg mentioned.  All callers changed.
39180         (mode_compile): Keep track of which mode bits the user has explicitly
39181         mentioned.
39182         (mode_adjust): New arg DIR, so that we implement the X op correctly.
39183         New arg PMODE_BITS, to keep track of which mode bits the user
39184         mentioned; it treats S_ISUID and S_ISGID speciall.
39185         All callers changed.
39186         * lib/modechange.h: Likewise.
39187
39188 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
39189
39190         * MODULES.html.sh: Add mkancestors.
39191         * modules/mkancesdirs: New module.
39192         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
39193         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
39194         The chdir-safer and afs files are now orphans; I'll remove them
39195         unless someone speaks up.
39196         Add lib/dirchownmod.c, lib/dirchownmod.h.
39197         (Depends-on): Remove alloca, chown, save-cwd, dirname.
39198         Add lchown, mkancesdirs.
39199         (Maintainer): Add self.
39200
39201 2006-07-15  Karl Berry  <karl@gnu.org>
39202
39203         * gnulib-tool: help message wording/arrangement.
39204
39205 2006-07-14  Simon Josefsson  <jas@extundo.com>
39206
39207         * doc/gnulib.texi (Libtool and Windows): New section.
39208
39209 2006-07-12  Simon Josefsson  <jas@extundo.com>
39210
39211         * modules/gendocs (License): Fix license, approved by Karl.
39212
39213 2006-07-12  Eric Blake  <ebb9@byu.net>
39214
39215         * MODULES.html.sh: Add gendocs.
39216
39217 2006-07-11  Eric Blake  <ebb9@byu.net>
39218
39219         * modules/fdl: New module, to install doc/fdl.texi.
39220         * MODULES.html.sh: Add new section for documentation modules.
39221         * gnulib-tool: Avoid space-tab.
39222         (--doc-base): New option, to manage files from doc.
39223
39224 2006-07-11  Eric Blake  <ebb9@byu.net>
39225
39226         * m4/absolute-header.m4: Fix comments to match recent change.
39227
39228 2006-07-11  Eric Blake  <ebb9@byu.net>
39229
39230         * gnulib-tool: List --doc-base before --tests-base.
39231
39232 2006-07-11  Derek R. Price  <derek@ximbiot.com>
39233
39234         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
39235
39236 2006-07-11  Bruno Haible  <bruno@clisp.org>
39237
39238         * README: Mention where to put documentation.
39239
39240 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39241
39242         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
39243
39244 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
39245
39246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
39247         to stdint.m4.
39248
39249 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
39250
39251         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
39252         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
39253         "no/such/file/stdint.h" when there is no such file, so that
39254         the resulting C code can be parsed by dodgy compilers.
39255         Problems reported by Bob Proulx.
39256
39257 2006-07-10  Derek R. Price  <derek@ximbiot.com>
39258
39259         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
39260         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
39261         macros into the GNU _D_EXACT_NAMLEN.
39262         * lib/savedir.c:  Likewise.
39263         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
39264
39265 2006-07-10  Derek R. Price  <derek@ximbiot.com>
39266         and Paul Eggert  <eggert@cs.ucla.edu>
39267
39268         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
39269         * m4/savedir.m4:
39270         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
39271         macros into the GNU _D_EXACT_NAMLEN.
39272
39273 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39274
39275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
39276         around the absolute name, to work around a problem with the HP-UX
39277         11.23 native C compiler, reported by Bob Proulx.
39278
39279 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39280
39281         * doc/maintain.texi, make-stds.texi: Sync from
39282         <http://savannah.gnu.org/projects/gnustandards>.
39283
39284 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39285
39286         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
39287
39288 2006-07-09  Jim Meyering  <jim@meyering.net>
39289
39290         * m4/glob.m4: Remove a doubled word in a comment.
39291
39292 2006-07-09  Jim Meyering  <jim@meyering.net>
39293
39294         * lib/argp-pv.c: Remove a doubled word in a comment.
39295         * lib/check-version.c (check_version): Likewise.
39296         * lib/javacomp.c (compile_java_class): Likewise.
39297
39298 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39299
39300         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
39301         for the benefit of people using Autoconf 2.60.  If you want to
39302         support older Autoconf versions you can copy m4/onceonly_2_57.m4
39303         (or m4/onceonly.m4, if pre-2.57) manually.
39304
39305 2006-07-08  Jim Meyering  <jim@meyering.net>
39306
39307         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
39308         comment.
39309         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
39310         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
39311         comment.
39312
39313 2006-07-08  Jim Meyering  <jim@meyering.net>
39314
39315         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
39316
39317 2006-07-07  Simon Josefsson  <jas@extundo.com>
39318
39319         * tests/test-crc.c: Change expected crc value, the test vector
39320         were probably computed using the old broken crc.c?
39321
39322 2006-07-06  Simon Josefsson  <jas@extundo.com>
39323
39324         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
39325         now the canonical place for the M4 file).
39326
39327         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
39328         from the sys_socket dependency now.
39329
39330         * modules/inet_pton (Files): Ditto.
39331
39332         * modules/inet_ntop (Files): Ditto.
39333
39334 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39335
39336         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
39337         not gl_PREREQ_GETUSERSHELL.
39338
39339 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39340
39341         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
39342         with only one argument, for Autoconf 2.60.
39343         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
39344         expand to nothing, so add a shell command to avoid syntax error.
39345         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
39346
39347 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39348
39349         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
39350
39351 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39352
39353         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
39354         no longer needed.  Check for isblank decl.
39355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
39356         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
39357         of existence.
39358
39359 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39360
39361         * lib/getloadavg.c: Use __VMS, not VMS.
39362         * lib/getopt.c: Likewise.
39363         * lib/getpagesize.h: Likewise.
39364         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
39365         and probably does not work.
39366
39367 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39368
39369         * lib/.cppi-disable: Add wcwidth.
39370         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
39371         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
39372         (ISGRAPH): Remove.  All uses changed to isgraph.
39373         (FOLD) [!defined _LIBC]: Remove special case.
39374         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
39375         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
39376         HAVE_ISBLANK.
39377         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
39378         case.
39379
39380 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
39381
39382         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
39383         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
39384         brackets.  Other minor changes to suppress some compiler
39385         warnings.
39386
39387 2006-07-06  Derek R. Price  <derek@ximbiot.com>
39388         and Paul Eggert  <eggert@cs.ucla.edu>
39389
39390         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
39391         of invoking obsolescent AC_HEADER_DIRENT macro.
39392         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
39393         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
39394         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39396         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
39397         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39398         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
39399         * m4/readdir.m4: Remove; no longer needed.
39400
39401 2006-07-06  Derek R. Price  <derek@ximbiot.com>
39402         and Paul Eggert  <eggert@cs.ucla.edu>
39403
39404         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
39405         Don't worry about this obsolete case any more.
39406         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
39407         directories.
39408         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
39409         worry about this obsolete case any more.
39410         * lib/fts.c: Likewise.
39411         * lib/getcwd.c: Likewise.
39412         * lib/glob.h: Likewise.
39413         * lib/savedir.c: Likewise.
39414
39415 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39416
39417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
39418         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
39419         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
39420         needed.
39421         All uses removed.
39422         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39423         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
39424         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
39425         needed.
39426         * m4/getdate.m4 (gl_GETDATE): Likewise.
39427         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
39428         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
39429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39430         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39431         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
39432         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39433         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
39434         needed.
39435
39436 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39437
39438         * lib/memcasecmp.c: Include <limits.h>.
39439         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
39440         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
39441         Don't assume isdigit succeeds only on '0' through '9'.
39442
39443 2006-07-05  Eric Blake  <ebb9@byu.net>
39444
39445         * modules/getaddrinfo (Depends-on): Add snprintf.
39446
39447 2006-07-05  Eric Blake  <ebb9@byu.net>
39448
39449         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
39450         to avoid 'header present but could not be compiled' on cygwin.
39451
39452 2006-07-05  Eric Blake  <ebb9@byu.net>
39453
39454         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
39455         missing from netdb.h.
39456         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
39457
39458 2006-07-05  Derek R. Price  <derek@ximbiot.com>
39459
39460         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
39461         no longer needed.
39462         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
39463         * m4/getdate.m4 (gl_GETDATE): Likewise.
39464         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
39465         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
39466         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39467         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39468         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39469
39470 2006-07-05  Derek R. Price  <derek@ximbiot.com>
39471
39472         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
39473         All uses of is_space replaced by isspace.
39474         * lib/exit.h: Don't talk about STDC_HEADERS.
39475         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
39476         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
39477         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
39478         replaced by isprint etc.
39479         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
39480         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
39481         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
39482         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
39483         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
39484         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
39485
39486 2006-07-05  Bruno Haible  <bruno@clisp.org>
39487
39488         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
39489         the function exists, before testing against AIX.
39490         Reported by Martin Lambers <marlam@marlam.de>.
39491
39492 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
39493
39494         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
39495         From Mark D. Baushke.
39496
39497 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
39498
39499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
39500         to the absolute name, not just one, to bypass Sun C 5.8's
39501         "warning: #include of /usr/include/... may be non-portable".
39502
39503 2006-07-04  Eric Blake  <ebb9@byu.net>
39504
39505         * modules/dirname-tests: New test module.
39506         * tests/test-dirname.c: New file, replacing dirname.c
39507         TEST_DIRNAME section that was recently deleted.
39508
39509 2006-07-04  Bruno Haible  <bruno@clisp.org>
39510
39511         Assume ANSI C header files and <ctype.h> functions.
39512         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
39513         (mbsnwidth): Use isprint, iscntrl instead.
39514
39515 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39516
39517         Merge from coreutils.
39518         * MODULES.html.sh: Add xstrtold.
39519         * modules/xstrtold: New file.
39520         * modules/cycle-check (Files): Add lib/same-inode.h.
39521         * modules/dirname (Files): Add m4/double-slash-root.m4.
39522         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
39523         * modules/mkdir-p (Files): Add lib/same-inode.h.
39524         * modules/same (Files): Add lib/same-inode.h.
39525
39526 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         * m4/absolute-header.m4: Renamed from full-header-path.m4.
39529         This is to keep the terminology clean; POSIX talks about
39530         "absolute pathnames", not "full pathnames", but the GNU
39531         Coding Standards say to use "path" for something else;
39532         so use "absolute" to keep both sides happy.
39533         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
39534         Set gl_absolute_header, not gl_full_header_path.
39535         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
39536         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
39537         All uses changed.
39538
39539         Merge from coreutils.
39540
39541         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
39542
39543         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
39544         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
39545         want to require the building of c-strtod.o.
39546         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
39547         needs -lm directly.
39548         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
39549
39550         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
39551
39552         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
39553         --as-needed option if available.  Problem reported by Albert Chin in
39554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
39555         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
39556         cc merely issues a bunch of annoying warnings for --as-needed
39557         (this problem was reported by Bob Proulx).  Also, try linking with
39558         -lm to detect a bug in binutils 2.16 (this problem was reported
39559         by Ralf Wildenhues).
39560
39561         2006-06-18  Jim Meyering  <jim@meyering.net>
39562
39563         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
39564         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
39565         macro.
39566         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
39567         also check for glibc-2.4's abort-inducing bug.
39568
39569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
39570         Low-probability clean-up should be to use rmdir to get rid of
39571         the just-created directory, not unlink.
39572
39573         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
39574         configure fail, and request a bug report to inform us about it.
39575         Add a comment that, barring reports to the contrary, in 2007 we'll
39576         assume ftruncate is universally available.
39577
39578         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
39579
39580         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
39581
39582         2006-03-12  Jim Meyering  <jim@meyering.net>
39583
39584         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
39585         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
39586         * m4/same.m4 (gl_SAME): Likewise.
39587         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
39588
39589         2006-03-11  Eric Blake  <ebb9@byu.net>
39590
39591         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
39592         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
39593         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
39594         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
39595
39596 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39597
39598         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
39599         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
39600         reported by Mark D. Baushke, one in
39601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
39602
39603         Merge from coreutils.
39604
39605         * lib/.cppi-disable: Add stdint_.h.
39606         * lib/.cvsignore: Add stdint.h.
39607
39608         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
39609
39610         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
39611         both double and long double versions.
39612         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
39613         * lib/xstrtold.c: New file.
39614         * lib/xstrtod.h (xstrtold): New decl.
39615
39616         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39617
39618         * lib/filemode.c (setst): Remove.
39619         (strmode): Rewrite to avoid setst.  This makes the code shorter,
39620         (arguably) clearer, and the generated code is a bit smaller on my
39621         Debian GNU/Linux stable x86 host.
39622
39623         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
39624
39625         * lib/filemode.c: Include "filemode.h" first, to test the interface.
39626         Assume that filemode.h includes sys/types.h and sys/stat.h.
39627         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
39628         (ftypelet): Reorder to put common cases first, for efficiency.
39629         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
39630         to do 'M'.
39631         (strmode): Renamed from mode_string, and now stores 12 bytes instead
39632         of 10, for compatibility with FreeBSD.  All callers changed.
39633         (filemodestring): Now stores 12 bytes instead of 10, and sets file
39634         types that can't be deduced solely from st_mode.  First arg is now a
39635         const pointer.
39636         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
39637         (strmode): Renamed from mode_string.
39638         (filemodestring): New decl.
39639         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
39640         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
39641         needed.
39642         (S_ISPORT, S_ISWHT): New macros, if not already defined.
39643
39644         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39645
39646         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
39647         fsusage.h now does that.  Include fsusage.h first, to test interface.
39648         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
39649         at most one method (the old code could have generated decls that
39650         didn't conform to C89, not that this was ever exercised).
39651         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
39652
39653         2006-03-19  Jim Meyering  <jim@meyering.net>
39654
39655         Work even in a chroot where d_ino values for entries in "/"
39656         don't match the stat.st_ino values for the same names.
39657         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
39658         number, iterate through all entries again, using lstat instead.
39659         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
39660         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
39661
39662         * lib/getcwd.c (__getcwd): Clarify a comment.
39663         Use memcpy in place of a call to strcpy.
39664
39665         2006-03-12  Jim Meyering  <jim@meyering.net>
39666
39667         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
39668         matches that of the current directory (which we're about to chdir ".."
39669         out of), then save the dev-ino of the parent, instead.
39670
39671         * lib/same-inode.h (SAME_INODE): New file/macro.
39672         * lib/chdir-safer.c (SAME_INODE): Remove definition.
39673         Include "same-inode.h", instead.
39674         * lib/same.c: Likewise.
39675         * lib/cycle-check.h: Include "same-inode.h".
39676         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
39677         * lib/cycle-check.c (SAME_INODE): Remove definition.
39678         * lib/root-dev-ino.h: Include "same-inode.h".
39679
39680         2006-03-11  Eric Blake  <ebb9@byu.net>
39681
39682         * lib/same.c (same_name): s/base_name/last_component/
39683         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
39684         * lib/filenamecat.c (file_name_concat): Likewise.
39685
39686         2006-03-11  Eric Blake  <ebb9@byu.net>,
39687                     Paul Eggert  <eggert@cs.ucla.edu>
39688
39689         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
39690         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
39691         drive prefix.
39692         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
39693         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
39694         (last_component): New method.
39695         * lib/dirname.c (dir_len): Determine when drive letters need a
39696         subsequent slash.  Preserve // when it is special.
39697         (dir_name): Don't append dot when drive letter is absolute.
39698         [TEST_DIRNAME]: Move into a full-blown gnulib test.
39699         * lib/basename.c (base_name): New semantics - malloc the result.
39700         Preserve // when it is special.  Preserve relative files that look
39701         like drive letters.
39702         (base_len): Preserve // when it is special.
39703         (last_component): New method, similar to old base_name semantics.
39704         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
39705         base_name.  Strip redundant slashes from ///.
39706
39707 2006-07-03  Jim Meyering  <jim@meyering.net>
39708
39709         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
39710         macro is used before the first cycle_check call.
39711
39712 2006-07-03  Eric Blake  <ebb9@byu.net>
39713
39714         * modules/dirname (Depends-on): Add xstrndup.
39715
39716 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39717
39718         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
39719         test cases, so that config.log is a bit easier to follow.
39720
39721 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39722
39723         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
39724         both are 64 bits, since this seems to be the tradition, and this
39725         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
39726         we ever run into a host that prefers long long to long in this
39727         case, we'll need another configure-time test.  Problem reported by
39728         Jim Meyering.
39729
39730 2006-07-02  Eric Blake  <ebb9@byu.net>
39731
39732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
39733
39734 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39735
39736         * modules/inttypes (Depends-on): No longer depends on stdint.
39737         * modules/stdint (Description): Say more about assumptions.
39738         Say that the fast types might differ.  Say macros are used.
39739         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
39740         (Makefile.am): Revise list of substituted symbols to match
39741         new stdint.m4.
39742         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
39743         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
39744         * tests/test-stdint.c (verify_same_types)
39745         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
39746         the code conforms to C99/C89.
39747         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
39748         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
39749
39750 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39751
39752         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
39753         but fix a bug, by requiring at least 64 bits.
39754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
39755         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
39756         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
39757         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
39758
39759         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
39760         changes.  Make 2.59 a prerequisite.  Check and substitute for
39761         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
39762         inttypes.h.  Do not use special include files; just use the
39763         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
39764         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
39765         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
39766         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
39767         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
39768         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
39769         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
39770         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
39771         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
39772         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
39773         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
39774         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
39775         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
39776         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
39777         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
39778         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
39779         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
39780         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
39781         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
39782         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
39783         WINT_MAX.  Check for C99 conformance more strictly, by detecting
39784         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
39785         not check for things that C99 does not require, e.g., int8_t.  If
39786         a test isn't needed unless <stdint.h> isn't working, and is
39787         unlikely to be needed for any other reason, then don't do it
39788         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
39789         size_t, since we assume C89 freestanding at least.  Do not check
39790         for sig_atomic_t, wchar_t, or wint_t, since the code now does
39791         the right thing even if the types are not defined.  Instead use:
39792         (gl_STDINT_TYPE_PROPERTIES): New macro.
39793         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
39794         testing whether <sys/types.h> clashes, as Autoconf does this for
39795         us now.  All uses removed.
39796         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
39797         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
39798         (gl_CHECK_TYPE_SAME):
39799         Remove; no longer needed.
39800         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
39801         exists, since we'll return 0 anyway in that case.
39802         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
39803
39804 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
39805
39806         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
39807         possible collision with system files.
39808         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
39809         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
39810         WCHAR_MIN and WCHAR_MAX in this case.
39811         (<stddef.h>): Do not include; no longer needed.
39812         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
39813         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
39814         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
39815         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
39816         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
39817         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
39818         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
39819         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
39820         !defined(__c99))]: Include in this case too, since it's harmless
39821         now.
39822         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
39823         dangerous to do so.
39824         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
39825         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
39826         (_STDINT_MIN, _STDINT_MAX): New macros.
39827         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
39828         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
39829         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
39830         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
39831         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
39832         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
39833         macros, not typedefs; this simplifies things quite a bit.
39834         Use long int for all types narrower than int64_t.
39835         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
39836         Define in terms of long long int or int64_t or long int,
39837         not int64_t or int32_t.  This saves some compile-time testing.
39838         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
39839         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
39840         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
39841         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
39842         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
39843         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
39844         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
39845         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39846         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
39847         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
39848         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
39849         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
39850         undef any previous version and define our own version, for
39851         simplicity and consistency with the new macros for types.
39852         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
39853         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
39854         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
39855         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
39856         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
39857         @WINT_T_SUFFIX@ to keep things simple here.
39858         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
39859         Simplify by assuming typical 8/16/32/64 host, since we're
39860         already doing that elsewhere anyway.
39861         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
39862         and assume long long int is 64 bits if available.  This
39863         speeds up 'configure'.
39864
39865 2006-07-01  Eric Blake  <ebb9@byu.net>
39866
39867         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
39868         Reported by Andreas Buening.
39869
39870 2006-07-01  Eric Blake  <ebb9@byu.net>
39871
39872         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
39873
39874 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
39875
39876         * lib/getaddrinfo.c: fixed typo
39877
39878 2006-06-29  Jim Meyering  <jim@meyering.net>
39879
39880         * modules/strftime (Maintainer): Add my name, since with the
39881         FPRINTFTIME changes strftime.c has forked from glibc.
39882
39883 2006-06-29  Eric Blake  <ebb9@byu.net>
39884
39885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
39886
39887 2006-06-29  Eric Blake  <ebb9@byu.net>
39888
39889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
39890
39891 2006-06-29  Eric Blake  <ebb9@byu.net>
39892
39893         * lib/stat_.h: New file.
39894
39895 2006-06-29  Eric Blake  <ebb9@byu.net>
39896
39897         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
39898         unused static function.
39899
39900 2006-06-29  Eric Blake  <ebb9@byu.net>
39901
39902         * doc/functions.texi (Function Portability): Document missing lstat
39903         on mingw.
39904
39905 2006-06-29  Eric Blake  <ebb9@byu.net>
39906
39907         * MODULES.html.sh: Add sys_stat.
39908         * modules/sys_stat: New module.
39909         * modules/mkstemp (Depends-on): Add sys_stat.
39910
39911 2006-06-29  Derek R. Price  <derek@ximbiot.com>
39912
39913         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
39914
39915 2006-06-29  Derek R. Price  <derek@ximbiot.com>
39916
39917         * m4/c-bs-a.m4: Removed.
39918
39919 2006-06-29  Derek R. Price  <derek@ximbiot.com>
39920
39921         * lib/strftime.c: Assume strftime() exists.
39922
39923 2006-06-29  Derek Price  <derek@ximbiot.com>
39924
39925         * modules/c-bs-a: Removed - \a is C89.
39926         * MODULES.html.sh: Remove c-bs-a.
39927
39928 2006-06-29  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/wcwidth (License): Change to LGPL.
39931
39932 2006-06-28  Simon Josefsson  <jas@extundo.com>
39933
39934         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
39935         on _WIN32.
39936
39937         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
39938         getnameinfo.
39939
39940 2006-06-28  Simon Josefsson  <jas@extundo.com>
39941
39942         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
39943
39944 2006-06-28  Simon Josefsson  <jas@extundo.com>
39945
39946         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
39947         functions there.  It will succeed on Windows XP, but on Windows
39948         2000 and (presumably) earlier, it will fail, and use the internal
39949         re-implementation.
39950         (use_win32_p): New function.
39951         (getaddrinfo): Use strtoul on servname, to support numeric ports.
39952         Support AI_NUMERICSERV to disable getservbyname.
39953         (getnameinfo): New function, only supports
39954         NI_NUMERICHOST|NI_NUMERICSERV for now.
39955
39956         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
39957         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
39958         getnameinfo.
39959
39960 2006-06-28  Eric Blake  <ebb9@byu.net>
39961
39962         * modules/wcwidth: New file.
39963         * modules/mbchar (Depends-on): Add wcwidth.
39964         * modules/mbswidth (Depends-on): Add wcwidth.
39965         * MODULES.html.sh: Add wcwidth.
39966
39967 2006-06-28  Eric Blake  <ebb9@byu.net>
39968
39969         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
39970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
39971
39972 2006-06-28  Eric Blake  <ebb9@byu.net>
39973
39974         * lib/xvasprintf.h: Fix comments.
39975
39976 2006-06-28  Eric Blake  <ebb9@byu.net>
39977
39978         * lib/mbchar.h (wcwidth): Include wcwidth.h.
39979         * lib/mbswidth.c (wcwidth): Move from here...
39980         * lib/wcwidth.h: ...to this new file.
39981
39982 2006-06-28  Derek R. Price  <derek@ximbiot.com>
39983
39984         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
39985
39986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
39987         it's obsolete.
39988         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
39989
39990 2006-06-28  Derek R. Price  <derek@ximbiot.com>
39991
39992         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
39993         Autoconf 2.60 says this stuff was obsolete.
39994
39995 2006-06-28  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/wcwidth (Files): Add m4/wchar_t.m4.
39998
39999 2006-06-28  Bruno Haible  <bruno@clisp.org>
40000
40001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
40002         gt_TYPE_WCHAR_T.
40003
40004 2006-06-28  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
40007         declaration for wcwidth.
40008         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
40009
40010 2006-06-28  Bruno Haible  <bruno@clisp.org>
40011
40012         * lib/mkdtemp.c [MINGW]: Include <io.h>.
40013         (mkdir): Define using _mkdir.
40014
40015 2006-06-28  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/getaddrinfo.h: Fix POSIX URL.
40018         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
40019         _WIN32.
40020         (use_win32_p): Make static.
40021         (getaddrinfo): Reject service name if it is empty or does not consist
40022         solely of decimal digits, or if its value is > 65535.
40023         (getnameinfo): Remove useless casts.
40024
40025 2006-06-27  Simon Josefsson  <jas@extundo.com>
40026
40027         * modules/sys_select: New file, suggested by Bruno Haible, Paul
40028         Eggert and Martin Lambers.
40029
40030 2006-06-27  Simon Josefsson  <jas@extundo.com>
40031
40032         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
40033         Eggert and Martin Lambers.
40034
40035 2006-06-27  Bruno Haible  <bruno@clisp.org>
40036
40037         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
40038         result to 0, not to empty.
40039         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
40040
40041 2006-06-27  Bruno Haible  <bruno@clisp.org>
40042
40043         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
40044
40045 2006-06-26  Simon Josefsson  <jas@extundo.com>
40046
40047         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
40048         present.
40049
40050 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
40051
40052         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
40053         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
40054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
40055
40056 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
40057
40058         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
40059
40060 2006-06-26  Bruno Haible  <bruno@clisp.org>
40061
40062         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
40063
40064 2006-06-26  Bruno Haible  <bruno@clisp.org>
40065
40066         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
40067
40068 2006-06-26  Bruno Haible  <bruno@clisp.org>
40069
40070         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
40071         SGI C compiler in pre-C99 mode.
40072         Suggested by Mark D. Baushke and Larry Jones.
40073
40074 2006-06-26  Bruno Haible  <bruno@clisp.org>
40075
40076         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
40077         WCHAR_MAX.
40078         Reported by Mark D. Baushke and Larry Jones.
40079
40080 2006-06-26  Bruno Haible  <bruno@clisp.org>
40081
40082         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
40083         in pre-C99 mode.
40084         Suggested by Mark D. Baushke and Larry Jones.
40085
40086 2006-06-23  Simon Josefsson  <jas@extundo.com>
40087             Bruno Haible  <bruno@clisp.org>
40088
40089         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
40090         Emit mostlyclean-local rule.
40091         (func_emit_tests_Makefile_am): Likewise.
40092         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
40093
40094 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
40095
40096         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
40097
40098 2006-06-23  Bruno Haible  <bruno@clisp.org>
40099
40100         * tests/test-stdint.c: Update to match ISO C 99 Technical
40101         Corrigendum 1.
40102
40103 2006-06-23  Bruno Haible  <bruno@clisp.org>
40104
40105         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
40106
40107 2006-06-23  Bruno Haible  <bruno@clisp.org>
40108
40109         * lib/stdint_.h: Treat IRIX like OpenBSD.
40110
40111 2006-06-23  Bruno Haible  <bruno@clisp.org>
40112
40113         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
40114         ISO C 99 Technical Corrigendum 1.
40115
40116 2006-06-22  Simon Josefsson  <jas@extundo.com>
40117
40118         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
40119         MinGW.
40120
40121 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40122
40123         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
40124         needed.  Some compiler complained about some of them.  Problem reported
40125         by Larry Jones in
40126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
40127
40128 2006-06-21  Simon Josefsson  <jas@extundo.com>
40129
40130         * tests/test-getaddrinfo.c: New file.
40131
40132         * modules/getaddrinfo-tests: New file.
40133
40134         * MODULES.html.sh: Add inet_pton.
40135
40136         * modules/inet_pton: New file.
40137
40138 2006-06-21  Simon Josefsson  <jas@extundo.com>
40139
40140         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
40141         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
40142         of using the (limited) gnulib implementation on Windows XP.
40143
40144         * m4/inet_pton.m4: New file.
40145
40146 2006-06-21  Simon Josefsson  <jas@extundo.com>
40147
40148         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
40149         variable.
40150
40151         * lib/socket_.h: Don't define WINVER.
40152
40153         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
40154         slightly modified to work in gnulib.
40155
40156 2006-06-21  Simon Josefsson  <jas@extundo.com>
40157
40158         * doc/gnulib.texi (Windows sockets): Add.
40159
40160 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40161
40162         * lib/read-file.c (fread_file): Start with buffer allocation of
40163         0 bytes rather than 1 byte; this simplifies the code.
40164         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
40165         code to free buffer and save/restore errno.
40166         (internal_read_file): Remove unused local.
40167
40168 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40169
40170         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
40171         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
40172         Problem reported by Denis Excoffier in
40173         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
40174
40175 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40176
40177         * modules/sys_socket, modules/socklen: Include sys/types since
40178         FreeBSD 4.x's sys/socket.h needs it.
40179
40180 2006-06-19  Simon Josefsson  <jas@extundo.com>
40181
40182         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
40183
40184 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
40185
40186         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
40187
40188 2006-06-19  Bruno Haible  <bruno@clisp.org>
40189
40190         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
40191         and FULL_PATH_INTTYPES_H in angle brackets.
40192         Reported by Mark D. Baushke <mdb@gnu.org>.
40193
40194 2006-06-17  Eric Blake  <ebb9@byu.net>
40195
40196         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
40197         errno.
40198
40199 2006-06-17  Bruno Haible  <bruno@clisp.org>
40200
40201         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
40202         <sys/inttypes.h>.
40203
40204 2006-06-17  Bruno Haible  <bruno@clisp.org>
40205
40206         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
40207         whether errno is declared. Assume <errno.h> declares errno.
40208
40209 2006-06-17  Bruno Haible  <bruno@clisp.org>
40210
40211         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
40212
40213 2006-06-17  Bruno Haible  <bruno@clisp.org>
40214
40215         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
40216         problem on Solaris 2.5.1.
40217
40218 2006-06-16  Eric Blake  <ebb9@byu.net>
40219
40220         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
40221         * lib/unicodeio.c [!defined errno]: Likewise.
40222         * lib/strtol.c [!defined errno]: Likewise.
40223         * lib/strtod.c [!defined errno]: Likewise.
40224
40225 2006-06-15  Eric Blake  <ebb9@byu.net>
40226
40227         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
40228
40229 2006-06-15  Eric Blake  <ebb9@byu.net>
40230
40231         * config/srclist.txt (ssize_t.m4): Lose sync.
40232
40233 2006-06-15  Bruno Haible  <bruno@clisp.org>
40234
40235         * modules/stdint (Files): Include m4/full-header-path.m4,
40236         m4/size_max.m4, m4/wchar_t.m4.
40237         (Makefile.am): Many more substitutions.
40238         * modules/stdint-tests: New file.
40239         * tests/test-stdint.c: New file.
40240
40241 2006-06-15  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
40244         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
40245         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
40246         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
40247         gl_CHECK_TYPE_SAME): New macros.
40248
40249 2006-06-15  Bruno Haible  <bruno@clisp.org>
40250
40251         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
40252
40253 2006-06-15  Bruno Haible  <bruno@clisp.org>
40254
40255         * lib/stdint_.h: Rewritten to be fully auto-configured.
40256         Fixes bug on HP-UX/IA64.
40257
40258 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
40259
40260         * lib/getdate.y (__attribute__): Don't define if already defined.
40261         Problem reported by Larry Jones.
40262         * lib/utimens.c (__attribute__): Likewise.
40263
40264 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
40265
40266         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
40267         reported by Andreas Schwab.
40268
40269 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40270             Bruno Haible  <bruno@clisp.org>
40271
40272         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
40273         check for the declaration of strnlen and a run test that exposes the
40274         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
40275         rpl_strndup.
40276
40277 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40278             Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
40281
40282 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40283
40284         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
40285         compile test, for Tru64 4.0D.
40286
40287 2006-05-28  Karl Berry  <karl@gnu.org>
40288
40289         * config/srclist.txt (printf-args.c): lose sync.
40290
40291 2006-05-26  Martin Lambers  <marlam@marlam.de>
40292
40293         * lib/getpass.c: Updates the test for the native W32 API, and adds
40294         missing includes, thus fixing compilation warnings.
40295
40296 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40297
40298         * lib/exclude.c (exclude_fnmatch): New function.
40299         (excluded_file_name): Call exclude_fnmatch.
40300         * lib/exclude.h (excluded_file_name): New prototype
40301
40302 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
40303
40304         * lib/tempname.c (small_open, large_open): New macros.
40305         (__open, __open64) [!_LIBC]: Remove.
40306         (__gen_tempname): Use small_open and large_open instead of __open
40307         and __open64.  This fixes a portability bug on HP-UX 11.11i
40308         reported by Simon Wing-Tang in
40309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
40310
40311 2006-05-24  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
40314         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
40315         Reported by Thorsten Maerz <torte@netztorte.de> via
40316         Aaron Stone <aaron@serendipity.cx>.
40317
40318 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40319
40320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
40321         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
40322         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
40323         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
40324         not really conditional on the cache.
40325         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
40326
40327 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40328
40329         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
40330         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
40331         (my_usleep): Don't mishandle maximum value.
40332
40333 2006-05-19  Jim Meyering  <jim@meyering.net>
40334
40335         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
40336
40337 2006-05-17  Bruno Haible  <bruno@clisp.org>
40338
40339         Cygwin portability.
40340         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
40341
40342 2006-05-17  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/stdint_.h: Fix recognition of Cygwin.
40345
40346 2006-05-15  Bruno Haible  <bruno@clisp.org>
40347
40348         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
40349         on libtool patch by Ralf Wildenhues.
40350
40351 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40352
40353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
40354         test for C99 conformance; (bool) 0.5 is an integer constant
40355         expression, but (bool) -0.5 is not.  Problem reported by Fedor
40356         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
40357
40358 2006-05-11  Simon Josefsson  <jas@extundo.com>
40359
40360         * m4/xvasprintf.m4: Fix obvious typo.
40361
40362 2006-05-11  Jim Meyering  <jim@meyering.net>
40363
40364         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
40365         James Lemley.
40366
40367 2006-05-10  Simon Josefsson  <jas@extundo.com>
40368
40369         * lib/md4.c: Typo fix, update copyright years.
40370         (K1, K2): Don't use L because it turn computations into 64-bit on
40371         64-bit platforms.
40372
40373 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
40374
40375         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
40376         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
40377         unwanted sign propagation, e.g., on hosts with 64-bit int.
40378         There still are some problems with reeelly weird theoretical hosts
40379         (e.g., 33-bit int) but it's not worth worrying about now.
40380         * lib/sha1.c (rol): Likewise.
40381         (K1, K2, K3, K4): Remove unnecessary L suffix.
40382
40383 2006-05-10  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/des.c: Cast to avoid warnings.
40386
40387 2006-05-09  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
40390         (Depends-on): Depend also on xsize, stdarg.
40391         (configure.ac): Add gl_XVASPRINTF.
40392
40393 2006-05-09  Bruno Haible  <bruno@clisp.org>
40394
40395         * m4/xvasprintf.m4: New file.
40396
40397 2006-05-09  Bruno Haible  <bruno@clisp.org>
40398
40399         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
40400         (EOVERFLOW): Define fallback value.
40401         (xstrcat): New function.
40402         (xvasprintf): Recognize the special case of a string concatenation.
40403
40404 2006-05-08  Eric Blake  <ebb9@byu.net>
40405
40406         * gnulib-tool (func_version): Base copyright year on CVS date.
40407         (func_emit_copyright_notice): New function.
40408         (func_emit_lib_Makefile_am): Use it.
40409         (func_emit_tests_Makefile_am): Likewise.
40410         (func_import): Likewise.
40411
40412 2006-05-08  Bruno Haible  <bruno@clisp.org>
40413
40414         * modules/stdarg: New file.
40415         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
40416
40417 2006-05-08  Bruno Haible  <bruno@clisp.org>
40418
40419         * m4/stdarg.m4: New file, from GNU gettext.
40420
40421 2006-05-08  Bruno Haible  <bruno@clisp.org>
40422
40423         * config/srclist.txt (build-aux/config.rpath): different from latest
40424         release.
40425
40426 2006-05-08  Bruno Haible  <bruno@clisp.org>
40427
40428         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
40429
40430 2006-05-05  Jim Meyering  <jim@meyering.net>
40431
40432         * m4/warning.m4: New file, derived from bison's file by the same name.
40433
40434 2006-05-03  Bruno Haible  <bruno@clisp.org>
40435
40436         * lib/stdint_.h: Shorter URL.
40437         * lib/inttypes.h: Likewise.
40438
40439 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40440
40441         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
40442
40443 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40444
40445         * lib/verify.h: Document the internals better.  Most of this change
40446         was written by Bruno Haible.
40447
40448 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40449
40450         * doc/verify.texi: New file, partly based on a proposal by
40451         Bruno Haible.
40452
40453 2006-05-02  Bruno Haible  <bruno@clisp.org>
40454
40455         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
40456         test from here...
40457         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
40458
40459 2006-04-29  Bruno Haible  <bruno@clisp.org>
40460
40461         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
40462         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
40463
40464 2006-04-29  Bruno Haible  <bruno@clisp.org>
40465
40466         * gnulib-tool: Make --update option actually work.
40467
40468 2006-04-29  Bruno Haible  <bruno@clisp.org>
40469
40470         * doc/gcd.texi: New file.
40471         * doc/gnulib.texi: Include it.
40472
40473 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40474
40475         * lib/getdate.y (get_date): When adding relative date, start with the
40476         initial time, not with the result of the first mktime call.
40477
40478 2006-04-25  Bruno Haible  <bruno@clisp.org>
40479
40480         * gnulib-tool (func_import): Output the include directives in three
40481         blocks, sorted separately.
40482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40483
40484 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40485
40486         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
40487         to define main with arguments, for C++.  Reported by Eric Blake.
40488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
40489         Prefer 'int main ()' to 'int main (void)', for C++.
40490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
40492         for 'main', for C99 and C++.
40493
40494 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40495
40496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
40497         Don't assume that exit status -1 is valid.
40498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40499         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40500         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40501         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
40502         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
40503         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
40504         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
40505         functions can be used without declaring them, or that you can
40506         exit with status -1.
40507         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40508
40509 2006-04-24  Karl Berry  <karl@gnu.org>
40510
40511         * config/srclist.txt (longdouble.m4): sync lost.
40512
40513 2006-04-24  Eric Blake  <ebb9@byu.net>
40514
40515         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
40516
40517 2006-04-24  Bruno Haible  <bruno@clisp.org>
40518
40519         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
40520         poll() implementation in AIX.
40521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40522
40523 2006-04-24  Bruno Haible  <bruno@clisp.org>
40524
40525         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
40526         assigned exactly once.
40527
40528 2006-04-23  Claudio Fontana  <claudio@gnu.org>
40529             Bruno Haible  <bruno@clisp.org>
40530
40531         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
40532         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
40533         for AM_CPPFLAGS.
40534
40535 2006-04-23  Bruno Haible  <bruno@clisp.org>
40536
40537         * modules/copy-file: Depend on unistd.
40538         * modules/execute: Likewise.
40539         * modules/fatal-signal: Likewise.
40540         * modules/findprog: Likewise.
40541         * modules/mkdtemp : Likewise.
40542         * modules/pipe: Likewise.
40543         * modules/wait-process: Likewise.
40544
40545 2006-04-23  Bruno Haible  <bruno@clisp.org>
40546
40547         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
40548         condition was already detected.
40549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40550
40551 2006-04-23  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/copy-file.c: Include <unistd.h> unconditionally.
40554         * lib/execute.c: Likewise.
40555         * lib/fatal-signal.c: Likewise.
40556         * lib/findprog.c: Likewise.
40557         * lib/mkdtemp.c: Likewise.
40558         * lib/pipe.h: Likewise.
40559         * lib/pipe.c: Likewise.
40560         * lib/wait-process.h: Likewise.
40561
40562 2006-04-23  Bruno Haible  <bruno@clisp.org>
40563
40564         * gnulib-tool (func_usage): Fix --import description. Document
40565         --update.
40566         (func_import): Create temporary file in a temporary directory, if
40567         --dry-run is specified. Silence errors from 'grep' when there are no
40568         m4 files in $m4dir.
40569         (func_create_testdir): Silence errors from 'grep' when there are no
40570         m4 files in $m4dir.
40571         Reported by Karl Berry <karl@freefriends.org>.
40572
40573 2006-04-20  Bruno Haible  <bruno@clisp.org>
40574
40575         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
40576         one argument, so that the code will be portable to Autoconf 2.60.
40577         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
40578         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40579         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
40580
40581 2006-04-19  Derek Price  <derek@ximbiot.com>
40582             Eric Blake  <ebb9@byu.net>
40583
40584         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
40585         rather than "/full/path.h".  Update comment to match.  Shorten &
40586         generalize m4_translit call via AS_TR_CPP.
40587
40588 2006-04-19  Derek Price  <derek@ximbiot.com>
40589             Eric Blake  <ebb9@byu.net>
40590
40591         * lib/inttypes.h: Correct grammar in comment.
40592
40593 2006-04-18  Derek Price  <derek@ximbiot.com>
40594             Paul Eggert  <eggert@cs.ucla.edu>
40595
40596         * modules/inttypes: New file.
40597         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
40598
40599 2006-04-18  Derek Price  <derek@ximbiot.com>
40600             Paul Eggert  <eggert@cs.ucla.edu>
40601
40602         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
40603         New files.
40604
40605 2006-04-18  Derek Price  <derek@ximbiot.com>
40606             Paul Eggert  <eggert@cs.ucla.edu>
40607
40608         * lib/inttypes.h: New file.
40609         * lib/strtoimax.c: Assume <inttypes.h>.
40610
40611 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
40614         isn't mounted.  Problem reported by Kir Kolyshkin.
40615
40616 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40617
40618         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
40619         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
40620         Derek R. Price.
40621         * lib/regex.h (RE_DUP_MAX): Update comment to match current
40622         implementation.
40623
40624 2006-04-12  Eric Blake  <ebb9@byu.net>
40625
40626         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
40627         is now done automatically by the corresponding Autoconf macro.
40628
40629 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
40630
40631         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
40632         time_r.h.
40633
40634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40635
40636         Merge regex changes from libc, removing some of our
40637         POSIX-conformance changes that were rejected and redoing them in a
40638         less-intrusive way.
40639
40640         * lib/regcomp.c (re_compile_internal, init_dfa):
40641         Length arg is now size_t, not Idx.  All uses changed.
40642         (peek_token): Forward decl now says internal_function.
40643         (__re_error_msgid, __re_error_msgid_idx):
40644         Now static rather than extern with attribute_hidden.
40645         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
40646         For some reason libc prefers K&R style defns for external functions.
40647         (regerror) [!defined _LIBC]: Likewise.
40648         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
40649         (seek_collating_symbol_entry, lookup_collation_sequence_value):
40650         (build_range_exp, build_collating_symbol):
40651         Use K&R-style defn.
40652         (re_compile_fastmap): Use '\0' to memset, not 0.
40653         (utf8_sb_map): Make the calculations more obvious.
40654         (init_dfa, parse_bracket_exp, build_charclass_op):
40655         Call calloc and cast result, as glibc does.
40656         (init_word_char, fetch_token, peek_token, peek_token_bracket):
40657         (build_range_exp, build_collating_symbol):
40658         Now internal functions.
40659
40660         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
40661
40662         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
40663         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
40664         Don't depend on VMS; depend on __VMS instead, for POSIX
40665         namespace cleanness.
40666         (regoff_t): Define to ssize_t, not long int.
40667
40668         Remove the REG_ macros named below.  Instead, make the old names
40669         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
40670         __USE_GNU_REGEX.
40671         (REG_BACKSLASH_ESCAPE_IN_LISTS):
40672         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
40673         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
40674         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
40675         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
40676         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
40677         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
40678         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
40679         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
40680         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
40681         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
40682         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
40683         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
40684         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
40685         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
40686         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
40687         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
40688         (REG_NREGS):
40689         Remove.  All uses replaced by the old RE_* names.
40690         (RE_BACKSLASH_ESCAPE_IN_LISTS):
40691         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
40692         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
40693         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
40694         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
40695         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
40696         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
40697         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
40698         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
40699         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
40700         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
40701         Don't bother having these macros be independent of each others'
40702         values, since they no longer exist in the POSIX name space.
40703
40704         Rename the following member names back to their old names,
40705         unless !__USE_GNU_REGEX.  All uses changed back.
40706         (buffer): Renamed from re_buffer.
40707         (allocated): Renamed from re_allocated.
40708         (used): Renamed from re_used.
40709         (syntax): Renamed from re_syntax.
40710         (fastmap): Renamed from re_fastmap.
40711         (translate): Renamed from re_translate.
40712         (can_be_null): Renamed from re_can_be_null.
40713         (regs_allocated): Renamed from re_regs_allocated.
40714         (fastmap_accurate): Renamed from re_fastmap_accurate.
40715         (no_sub): Renamed from re_no_sub.
40716         (not_bol): Renamed from re_not_bol.
40717         (not_eol): Renamed from re_not_eol.
40718         (newline_anchor): Renamed from re_newline_anchor.
40719         (num_regs): Renamed from rm_num_regs.
40720         (start): Renamed from rm_start.
40721         (end): Renamed from rm_end.
40722
40723         (free_state): Move up a bit.
40724
40725         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
40726         #define to be empty.
40727         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
40728         when that is what is intended.
40729         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
40730         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
40731         (MAX): New macro.
40732         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
40733         All uses changed back to re_malloc, etc.  It's now the caller's
40734         responsibility to check for overflow; all callers changed.
40735         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
40736         (re_x2nrealloc): Remove.
40737         (free_state): Remove decl.
40738
40739         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
40740         (re_set_registers, re_exec):
40741         Use K&R-style defn.
40742
40743         2006-01-31  Roland McGrath  <roland@redhat.com>
40744
40745         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
40746         Reported by Mike Frysinger <vapier@gentoo.org>.
40747
40748         2006-01-15  Andreas Jaeger  <aj@suse.de>
40749
40750         [BZ #1950]
40751         * lib/regex_internal.c (re_string_reconstruct): Adjust for
40752         build_wcs_upper_buffer change.
40753         (build_wcs_upper_buffer): Change return type.
40754
40755         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
40756
40757         * lib/regex_internal.h: Include <stdint.h> if available.
40758
40759         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
40760
40761         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
40762
40763         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40764
40765         * lib/regcomp.c: Adjust for changed secondary hash function.
40766
40767         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
40768
40769         * lib/regex.h: Pretty printing.
40770         Clean up namespace a bit.
40771
40772         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
40773
40774         * lib/regexec.c (update_cur_sifted_state, check_arrival,
40775         check_arrival_add_next_nodes): Avoid using uninitialized variable.
40776
40777         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40778                     Ulrich Drepper  <drepper@redhat.com>
40779
40780         [BZ #1302]
40781         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
40782         changed.
40783         (bitset_word_t): Renamed from bitset_word.  All uses changed.
40784
40785         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
40786
40787         [BZ #281]
40788         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
40789         * lib/regcomp.c: Remove unnecessary uses of
40790         unsigned RE_TRANSLATE_TYPE.
40791         * lib/regex_internal.h: Likewise.
40792         * lib/regex_internal.c: Likewise.
40793         * lib/regexec.c: Likewise.
40794         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
40795
40796         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
40797
40798         * lib/regexec.c (find_recover_state): Remove unnecessary
40799         initialization.
40800         (transit_state_bkref): Make DFA a const pointer.
40801         (get_subexp): Likewise.
40802         (check_arrival): Likewise.
40803         (update_cur_sifted_state): Likewise.
40804         (re_search_internal): Likewise.
40805         (prune_impossible_nodes): Likewise.
40806         (acquire_init_state_context): Likewise.
40807         (proceed_next_node): Likewise.
40808         (set_regs): Likewise.
40809         (free_fail_stack_return): Likewise.
40810         (check_arrival_expand_ecl): Mark DFA parameter as const.
40811         (check_arrival_expand_ecl_sub): Likewise.
40812         (check_subexp_limits): Likewise.
40813         (sub_epsilon_src_nodes):  Likewise.
40814         (add_epsilon_src_nodes):  Likewise.
40815         (merge_state_array): Likewise.
40816         (update_regs): Likewise.
40817         (build_trtable): Likewise.
40818         (sift_states_backward): Mark MCTX parameter as const.
40819         (build_sifted_states): Likewise.
40820         (update_cur_sifted_state): Likewise.
40821         (sift_states_mkref): Likewise.
40822         (check_arrival_expand_ecl): Mark eclosure as const.
40823         (check_dst_limits_calc_pos_1): Likewise.
40824         * lib/regex_internal.h (re_match_context_t): Make dfa a const
40825         pointer.
40826
40827         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
40828
40829         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
40830         (transit_state_sb): Likewise.
40831         (transit_state_mb): Likewise.
40832         (sift_states_iter_mb): Likewise.
40833         (check_arrival_add_next_nodes): Likewise.
40834         (check_node_accept_bytes): Change first parameter to pointer-to-const.
40835         [_LIBC] (re_search_2_stub): Use mempcpy.
40836
40837         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
40838         mbrtowc for very simple UTF-8 case.
40839
40840         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
40841         a pointer-to-const.
40842         (re_acquire_state_context): Likewise.
40843         * lib/regex_internal.h: Adjust prototypes.
40844
40845         * lib/regex.c: Prevent using C++ compilers.
40846
40847         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
40848         (re_acquire_state_context): Likewise.
40849
40850 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40851
40852         * modules/regex (Depends-on): Add ssize_t.
40853
40854 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40855
40856         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
40857         translation table.
40858
40859 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40860
40861         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
40862
40863 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
40864             Bruno Haible  <bruno@clisp.org>
40865
40866         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
40867         <sys/types.h> and <inttypes.h>.
40868
40869 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40870
40871         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
40872         `__error_t_defined', so argp.h will not typedef the former.
40873
40874 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40875
40876         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
40877         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
40878         glibc names.  Even if glibc is changed to conform to POSIX, the
40879         traditional names will be available anyway, since regex depends on
40880         the extensions module.  Also, fix a longstanding typo in the
40881         implementation of Spencer ERE test #75 from grep 2.3.  Problems
40882         reported by Emanuele Giaquinta.  Also, change sense of cached
40883         variable, so that the message makes sense.
40884
40885 2006-03-24  Simon Josefsson  <jas@extundo.com>
40886
40887         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
40888         including some doc fixes.
40889         (base64_encode_alloc): Fix +1 bug on allocation failures.
40890
40891 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40892
40893         * lib/base64.c (base64_encode): Do not read past end of array with
40894         unsanitized input on systems with CHAR_BIT > 8.
40895
40896 2006-03-24  Eric Blake  <ebb9@byu.net>
40897
40898         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
40899
40900 2006-03-22  Karl Berry  <karl@gnu.org>
40901
40902         * config/srclist.txt (*setenv.[ch]): get from coreutils.
40903         * config/srclistvars.sh (COREUTILS): new var.
40904
40905 2006-03-17  Jim Meyering  <jim@meyering.net>
40906
40907         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
40908         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
40909
40910 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40911
40912         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
40913         no longer needs it.  Instead, check that regoff_t is as least
40914         as wide as ptrdiff_t.
40915
40916         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
40917         so that our regex.h stays compatible with the installed regex.
40918         This is helpful for installers who configure --without-included-regex.
40919         Problem reported by Emanuele Giaquinta.
40920
40921 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40922
40923         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
40924         Typedef to long int, not to off_, as POSIX will likely change
40925         in that direction.
40926
40927 2006-03-15  Eric Blake  <ebb9@byu.net>
40928
40929         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
40930
40931 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
40932
40933         * lib/argp-help.c (validate_uparams): Fix typo
40934         * lib/argp-parse.c (argp_default_options): Consistently begin help
40935         messages with a lowercase letter.
40936
40937 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
40938
40939         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
40940         overrun buffers and shouldn't be used (much as gets shouldn't be
40941         used).
40942         * lib/time_r.c (asctime_r, ctime_r): Likewise.
40943
40944 2006-03-08  Simon Josefsson  <jas@extundo.com>
40945
40946         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
40947         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40948
40949 2006-03-08  Simon Josefsson  <jas@extundo.com>
40950
40951         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
40952         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40953
40954 2006-03-08  Simon Josefsson  <jas@extundo.com>
40955
40956         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
40957         signal that configure disabled the device.
40958
40959 2006-03-08  Simon Josefsson  <jas@extundo.com>
40960
40961         * build-aux/maint.mk: Fix refresh-po, to handle no translated
40962         languages.
40963
40964 2006-03-07  Simon Josefsson  <jas@extundo.com>
40965
40966         * modules/getopt (Depends-on): Add unistd.
40967
40968         * modules/unistd: New file.
40969
40970 2006-03-07  Simon Josefsson  <jas@extundo.com>
40971
40972         * modules/gc-random: New file.
40973
40974 2006-03-07  Simon Josefsson  <jas@extundo.com>
40975
40976         * m4/unistd_h.m4: New file.
40977
40978 2006-03-07  Simon Josefsson  <jas@extundo.com>
40979
40980         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
40981         test to be side-effect free by storing the result in the cache
40982         variable gl_cv_lib_readline, and moving the assignment of
40983         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
40984         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40985
40986 2006-03-07  Simon Josefsson  <jas@extundo.com>
40987
40988         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
40989         error on missing devices (the functions will return an error).
40990
40991         * m4/gc.m4: Move random stuff to gc-random.m4
40992
40993 2006-03-07  Simon Josefsson  <jas@extundo.com>
40994
40995         * lib/unistd_.h: New file.
40996
40997 2006-03-07  Simon Josefsson  <jas@extundo.com>
40998
40999         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
41000
41001 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
41002
41003         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
41004         Problem reported by Juan Manuel Guerrero.
41005
41006 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
41007
41008         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
41009         the unistd module.
41010         * lib/getlogin_r.c: Likewise.
41011         * lib/getlogin_r.h: Likewise.
41012         * lib/glob.c: Likewise.
41013         * lib/pagealign_alloc.c: Likewise.
41014         * lib/unistd_.h: Remove; no longer needed.
41015
41016 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
41017
41018         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41019         Add unistd.
41020         * modules/c-stack (Depends-on): Add unistd.
41021         * modules/getlogin_r: Likewise.
41022         * modules/glob: Likewise.
41023         * modules/pagealign_alloc: Likewise.
41024         * modules/unistd (Files): Remove lib/unistd_.h.
41025         (EXTRA_DIST): Remove.
41026         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
41027         need unistd_.h.
41028         (MOSTLYCLEANFILES): Remove unistd.h-t.
41029
41030 2006-03-03  Simon Josefsson  <jas@extundo.com>
41031
41032         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
41033
41034 2006-03-03  Simon Josefsson  <jas@extundo.com>
41035
41036         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
41037         libidn and bison.
41038
41039 2006-03-03  Simon Josefsson  <jas@extundo.com>
41040
41041         * build-aux/maint.mk: Add indent target.
41042
41043 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
41044
41045         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
41046         our replacement poll.h in any case, to avoid a differing
41047         declaration from a system header.  Seen on AIX.
41048
41049 2006-03-01  Simon Josefsson  <jas@extundo.com>
41050
41051         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
41052         <kasal@ucw.cz>.
41053
41054 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41055
41056         * modules/gettime (Depends-on): Add extensions module.
41057         * modules/nanosleep (Depends-on): Likewise.
41058         * modules/settime (Depends-on): Likewise.
41059
41060 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41061
41062         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
41063         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
41064         pedantically.
41065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41066         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
41067
41068         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
41069         not "==".  Reported by Ralf Wildenhues.
41070
41071 2006-03-01  Karl Berry  <karl@gnu.org>
41072
41073         * doc/Copyright/request-*: new files, synced from gnuorg.
41074
41075 2006-03-01  Karl Berry  <karl@gnu.org>
41076
41077         * config/srclist.txt (Copyright/*): new entries.
41078
41079 2006-02-28  Simon Josefsson  <jas@extundo.com>
41080
41081         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
41082
41083 2006-02-27  Simon Josefsson  <jas@extundo.com>
41084
41085         * lib/base64.h: Indent #define's.  From Jim Meyering
41086         <jim@meyering.net>.
41087
41088 2006-02-27  Jim Meyering  <jim@meyering.net>
41089
41090         Revert the change of 2006-02-24, so these files can continue
41091         to be sync'd from gettext.
41092         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
41093         of `config.h'.
41094
41095 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41096
41097         * modules/intprops: New file.
41098         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41099         Add intprops.
41100         * modules/getloadavg (Files): Remove lib/intprops.h.
41101         (Depends-on): Add intprops.
41102         * modules/human: Likewise.
41103         * modules/inttostr: Likewise.
41104         * modules/openat: Likewise.
41105         * modules/sig2str: Likewise.
41106         * modules/userspec: Likewise.
41107         * modules/utimecmp: Likewise.
41108         * modules/xnanosleep: Likewise.
41109         * modules/xstrtol: Likewise.
41110
41111 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
41112
41113         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
41114         * modules/lock-tests (TESTS): Use $(EXEEXT).
41115         * modules/tls-tests: Likewise.
41116         * modules/argp-tests: Likewise.
41117         (check_PROGRAMS): New var, replacing...
41118         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
41119
41120 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41121
41122         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
41123         `config.h'.
41124
41125 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41126
41127         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
41128
41129 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41130
41131         Sync from coreutils.
41132         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
41133         gl_CHDIR_SAFER.
41134
41135 2006-02-22  Jim Meyering  <jim@meyering.net>
41136
41137         Sync from coreutils.
41138         * m4/chdir-safer.m4: New file.
41139
41140 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41141
41142         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
41143         AT_FDCWD exceeds INT_MAX.
41144         * lib/openat.h (AT_FDCWD): Likewise.
41145
41146 2006-02-17  Eric Blake  <address@hidden>
41147
41148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
41149
41150 2006-02-16  Simon Josefsson  <jas@extundo.com>
41151
41152         * modules/getaddrinfo (Depends-on): Add sys_socket.
41153
41154 2006-02-15  Simon Josefsson  <jas@extundo.com>
41155
41156         * build-aux/maint.mk: Add dsyntax-check rule.
41157
41158 2006-02-15  Eric Blake  <ebb9@byu.net>
41159
41160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
41161         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
41162         'present but cannot compile' warnings on cygwin.
41163         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
41164         use ws2tcpip.h if sys/socket.h works.
41165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
41166         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
41167
41168 2006-02-14  Simon Josefsson  <jas@extundo.com>
41169
41170         * modules/maintainer-makefile (Files): Rename.
41171
41172         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
41173         and (the local) Makefile.cfg to maint-cfg.mk.
41174
41175         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
41176         to the latter.
41177
41178         * modules/maintainer-makefile: New module.
41179
41180         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
41181         severaly stripped to make it possible to build it up from scratch
41182         with reliable tests.
41183
41184         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
41185         fixes to permit overriding the default actions when configure and
41186         makefile are not available.
41187
41188 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41189
41190         Sync from coreutils.
41191         * modules/lstat (Depends-on): Don't depend on xalloc.
41192         (License): Change from GPL to LGPL, since this is now simply a
41193         replacement for a libc function.
41194
41195 2006-02-14  Jim Meyering  <jim@meyering.net>
41196
41197         Sync from coreutils.
41198
41199         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
41200         failure on deficient systems, and simplify gnulib lgpl dependencies.
41201         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
41202         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
41203
41204         * lib/xalloc-die.c: Remove unused definition of N_.
41205
41206 2006-02-14  Jim Meyering  <jim@meyering.net>
41207
41208         Sync from coreutils.
41209         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
41210         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
41211         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
41212         double-quote uses of that variable, to accommodate the rare case in
41213         which getmntent is available in none of the libraries checked.  This
41214         happens at least on FreeBSD 5.0.
41215
41216 2006-02-13  Simon Josefsson  <jas@extundo.com>
41217
41218         * gnulib-tool (Usage): Fix --import, from
41219         karl@freefriends.org (Karl Berry).
41220
41221 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
41222
41223         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
41224
41225 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
41226
41227         * lib/argp-namefrob.h: Restore changes accidentally lost during the
41228         "autoupdate" on 2005-12-12.
41229
41230 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41231
41232         * modules/closeout (Depends-on): Remove atexit.
41233
41234 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
41235
41236         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
41237         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
41238
41239 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41240
41241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
41242         __EXTENSIONS__ if this causes compilation to fail.  Problem
41243         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
41244         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
41245
41246 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
41247
41248         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
41249         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
41250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
41251         All uses changed.
41252
41253 2006-01-26  Simon Josefsson  <jas@extundo.com>
41254
41255         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
41256         prototype is visible on mingw32.
41257
41258         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
41259         for mingw32.
41260
41261         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
41262         mingw32).
41263
41264 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
41265
41266         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
41267         attempt to open for write; this always fails, at least on POSIX
41268         hosts.  This reinstates the 2006-01-09 change, which was
41269         inadvertently removed.
41270
41271 2006-01-26  Bruno Haible  <bruno@clisp.org>
41272
41273         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
41274         Reported by Paul Eggert.
41275
41276 2006-01-26  Bruno Haible  <bruno@clisp.org>
41277             Paul Eggert  <eggert@cs.ucla.edu>
41278
41279         * lib/stdbool_.h (_Bool)
41280         [(! (defined __cplusplus || defined __BEOS__)
41281           && !defined __GNUC__
41282           && !(defined __HP_cc || defined __xlc__
41283                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
41284                || defined __sgi))]:
41285         #define to signed char in these cases too; this simplifies
41286         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
41287         etc., separately) and makes it more conservative.
41288
41289 2006-01-25  Simon Josefsson  <jas@extundo.com>
41290
41291         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
41292         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
41293         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
41294
41295 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41296
41297         * lib/argp-namefrob.h: Bugfix. Remove stray #
41298
41299 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41300
41301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
41302         so that we test the test.
41303         Check for yet another HP-UX cc bug involving *bool |= bool.
41304
41305 2006-01-25  Karl Berry  <karl@gnu.org>
41306
41307         * config/srclist.txt (vasnprintf.c): sync lost.
41308
41309 2006-01-25  Jim Meyering  <jim@meyering.net>
41310
41311         Sync from the stable (b5) branch of coreutils:
41312
41313         * lib/fts.c (fts_children): Don't let close() clobber errno from
41314         failed fchdir().
41315
41316         * lib/fts.c (fts_stat): When following a symlink-to-directory,
41317         don't necessarily interpret stat-fails+lstat-succeeds as indicating
41318         a dangling symlink.  That can also happen at least for ELOOP.
41319         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
41320         FYI, this bug predates the inclusion of fts.c in coreutils.
41321
41322         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
41323         in their own block, so pre-c99 compilers don't object.
41324
41325         Avoid the double-free (first in fts_read, second in fts_close) that
41326         would occur when an `active' directory is made inaccessible (e.g.,
41327         via chmod a-x) during a traversal.
41328         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41329         before returning.  Reproduce this failure by
41330         mkdir -p a/b; cd a; chmod a-x . b
41331         Reported by Stavros Passas.
41332
41333 2006-01-25  Jim Meyering  <jim@meyering.net>
41334
41335         * lib/fileblocks.c: Remove more useless parentheses.
41336         * lib/readutmp.h: Likewise.
41337
41338 2006-01-25  Bruno Haible  <bruno@clisp.org>
41339
41340         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
41341         warnings.
41342         Reported by Paul Eggert.
41343
41344 2006-01-25  Bruno Haible  <bruno@clisp.org>
41345
41346         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
41347         rid of a trap command. For Solaris sh.
41348         Reported by Mark D. Baushke <mdb@gnu.org>.
41349
41350 2006-01-24  Simon Josefsson  <jas@extundo.com>
41351
41352         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
41353         Bruno.
41354
41355 2006-01-24  Karl Berry  <karl@gnu.org>
41356
41357         * config/srclist.txt (argp-namefrob.h): sync lost.
41358
41359 2006-01-24  Jim Meyering  <jim@meyering.net>
41360
41361         * modules/openat (Files): Add lib/intprops.h.
41362         From Mark D. Baushke.
41363
41364 2006-01-24  Jim Meyering  <jim@meyering.net>
41365
41366         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
41367         Reported by Mark D. Baushke.
41368
41369 2006-01-24  Jim Meyering  <jim@meyering.net>
41370
41371         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
41372
41373 2006-01-24  Bruno Haible  <bruno@clisp.org>
41374
41375         * modules/strnlen (Maintainer): Change from glibc to all.
41376
41377 2006-01-24  Bruno Haible  <bruno@clisp.org>
41378
41379         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
41380         Patch by Paul Eggert.
41381
41382 2006-01-24  Bruno Haible  <bruno@clisp.org>
41383
41384         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
41385         already has it.
41386         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
41387         2005-11-26.
41388
41389         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
41390         'signed char' to avoid problems with the built-in _Bool type.
41391         Reported by Paul Eggert on 2005-11-26.
41392
41393 2006-01-24  Bruno Haible  <bruno@clisp.org>
41394
41395         * gnulib-tool (func_import): Avoid constructing complicated sed
41396         expressions inside backquote.
41397         Report and solution by Mark D. Baushke <mdb@gnu.org>.
41398
41399 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
41400
41401         These changes imported from libc.
41402         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
41403         test and two separate function calls.
41404         * lib/strndup.c (__strndup): Add libc_hidden_def.
41405
41406 2006-01-23  Simon Josefsson  <jas@extundo.com>
41407
41408         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
41409         Remove the test_*_SOURCES variable: automake infers it by default.
41410         * modules/tls-tests: Likewise.
41411
41412 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41413
41414         Work around porting bugs reported by Dieter in
41415         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
41416         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
41417         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
41418         Include "getopt.h" first, to check interface.
41419         (getenv): Declare only if defined HAVE_DECL_GETENV &&
41420         !HAVE_DECL_GETENV.
41421         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
41422         (__strndup): Revert to K&R-style function dfns, the glibc style.
41423         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
41424         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
41425         Include strnlen.h first, to get prototype properly.
41426         (strnlen): Renamed from __strnlen.
41427         Remove weak alias.
41428
41429 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41430
41431         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
41432
41433 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41434
41435         * config/srclist.txt: Adjust to reflect glibc reorganization.
41436         This affects only comments.
41437
41438 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
41439
41440          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
41441          Reported by Bruce Korb <bkorb@gnu.org>.
41442
41443 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
41444
41445         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
41446         to pacify gcc -Wswitch-default.
41447
41448 2006-01-22  Bruno Haible  <bruno@clisp.org>
41449
41450         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
41451         temporary buffer for sprintf, take into account the precision also
41452         for 'd', 'i', 'u', 'o', 'x', 'X'.
41453
41454 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
41455
41456         * modules/argp-tests: New module
41457         * tests/test-argp.c: New file
41458         * tests/test-argp-2.sh: New file
41459
41460 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
41461
41462         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
41463         (__argp_base_name): Removed
41464         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
41465         typo.
41466         (__argp_base_name): Provide macro definition or extern declaration
41467         depending on the configuration
41468
41469 2006-01-20  Simon Josefsson  <jas@extundo.com>
41470
41471         * modules/inet_ntop (Depends-on): Depend on sys_socket.
41472
41473 2006-01-20  Simon Josefsson  <jas@extundo.com>
41474
41475         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
41476
41477 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41478
41479         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
41480         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
41481         Suggested by Bruno Haible.
41482
41483 2006-01-20  Karl Berry  <karl@gnu.org>
41484
41485         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
41486         until changes propagate, I guess.
41487
41488 2006-01-19  Simon Josefsson  <jas@extundo.com>
41489
41490         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
41491
41492 2006-01-19  Simon Josefsson  <jas@extundo.com>
41493
41494         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
41495
41496 2006-01-19  Simon Josefsson  <jas@extundo.com>
41497
41498         * gnulib-tool: Set check_PROGRAMS.
41499
41500         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
41501         modules/des-tests, modules/gc-arcfour-tests,
41502         modules/gc-arctwo-tests, modules/gc-des-tests,
41503         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
41504         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
41505         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
41506         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
41507         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
41508         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
41509         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
41510         test_*_SOURCES.
41511
41512 2006-01-18  Simon Josefsson  <jas@extundo.com>
41513
41514         * modules/socklen (Depends-on): Depend on sys_socket.
41515
41516 2006-01-18  Simon Josefsson  <jas@extundo.com>
41517
41518         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
41519         modules/des-tests, modules/gc-arcfour-tests,
41520         modules/gc-arctwo-tests, modules/gc-des-tests,
41521         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
41522         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
41523         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
41524         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
41525         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
41526         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
41527         $(EXEEXT) to automake TESTS variable, for mingw32.
41528
41529 2006-01-17  Simon Josefsson  <jas@extundo.com>
41530
41531         * modules/socklen (Include): Need sys/socket.h.
41532
41533 2006-01-17  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/ssize_t (Include): Add <sys/types.h>.
41536
41537 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
41538
41539         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
41540         it's not portable and it doesn't work with cross-compiles.
41541         Problem reported by Bruno Haible.  Fix missing-$ typo in
41542         'test "gl_cv_ignore_unused_libraries" ...' that prevented
41543         -zignore from being used with Sun's C compiler.
41544
41545 2006-01-12  Simon Josefsson  <jas@extundo.com>
41546
41547         * lib/base64.c: Fix warning, reported by Bruno Haible
41548         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
41549
41550 2006-01-12  Bruno Haible  <bruno@clisp.org>
41551
41552         * modules/ldd: New file.
41553         * build-aux/ldd.sh.in: New file.
41554         * MODULES.html.sh (Support for building libraries and executables): Add
41555         ldd.
41556
41557 2006-01-12  Bruno Haible  <bruno@clisp.org>
41558
41559         * m4/ldd.m4: New file.
41560
41561 2006-01-12  Bruno Haible  <bruno@clisp.org>
41562
41563         * gnulib-tool (func_import, func_create_testdir): Don't go into an
41564         endless loop while replacing $auxdir with build-aux.
41565
41566 2006-01-11  Simon Josefsson  <jas@extundo.com>
41567
41568         * lib/stdint_.h (SIZE_MAX): Add missing (.
41569
41570 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
41571
41572         Sync from coreutils.
41573         * lib/md5.c: Fix commentary typos.
41574         (alignof, UNALIGNED_P): No need for a GCC-specific version.
41575         * lib/md5.h (__attribute__): Remove; unused.
41576         * lib/sha1.c: Fix commentary to match md5 better.
41577         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
41578         so that we don't need to worry about alignment.  All uses changed.
41579         This merges the 2005-10-28 md5 change into sha1.
41580
41581 2006-01-11  Jim Meyering  <jim@meyering.net>
41582
41583         Sync from coreutils.
41584         * lib/md5.c (OP): Fix spacing.
41585
41586 2006-01-11  Bruno Haible  <bruno@clisp.org>
41587
41588         Ensure automatic ordering between gl_LOCK and gl_ARGP.
41589         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
41590         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
41591
41592 2006-01-11  Bruno Haible  <bruno@clisp.org>
41593
41594         Ensure automatic ordering between gl_LOCK and gl_ARGP.
41595         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
41596         the "early" section as well.
41597
41598 2006-01-11  Bruno Haible  <bruno@clisp.org>
41599
41600         Avoid "ar: no archive members specified" error on MacOS X.
41601         * gnulib-tool (func_modules_add_dummy): New function.
41602         (func_import, func_create_testdir): Invoke it.
41603
41604 2006-01-11  Bruno Haible  <bruno@clisp.org>
41605
41606         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
41607         with $auxdir in AC_CONFIG_FILES statements.
41608
41609 2006-01-11  Bruno Haible  <bruno@clisp.org>
41610
41611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41612         Initialize also noinst_HEADERS to empty.
41613
41614 2006-01-11  Bruno Haible  <bruno@clisp.org>
41615
41616         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
41617         variables.
41618         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
41619         autoreconf.
41620
41621 2006-01-11  Bruno Haible  <bruno@clisp.org>
41622
41623         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
41624         overridable by the user.
41625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41626
41627 2006-01-10  Simon Josefsson  <jas@extundo.com>
41628
41629         * modules/sys_socket: New file.
41630
41631 2006-01-10  Simon Josefsson  <jas@extundo.com>
41632
41633         * m4/sys_socket_h.m4: New file.
41634
41635 2006-01-10  Simon Josefsson  <jas@extundo.com>
41636
41637         * lib/socket_.h: New file.
41638
41639 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
41640
41641         * modules/readutmp (Maintainer): Add myself.
41642
41643 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
41644
41645         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
41646         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
41647         People who are still concerned with buggy memcmp implementations
41648         can invoke gl_FUNC_MEMCMP themselves.
41649
41650 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
41651
41652         * lib/regex_internal.h (BITSET_WORD_BITS):
41653         Work around a bug in 64-bit PGC (before version 6.1-2), where the
41654         preprocessor mishandles large unsigned values as if they were signed.
41655         Problem reported by Claudio Fontana in
41656         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
41657
41658 2006-01-10  Jim Meyering  <jim@meyering.net>
41659
41660         Avoid the double-free (first in fts_read, second in fts_close) that
41661         would occur when an `active' directory is made inaccessible (e.g.,
41662         via chmod a-x) during a traversal.
41663         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41664         before returning.  Reproduce this failure by
41665         mkdir -p a/b; cd a; chmod a-x . b
41666         Reported by Stavros Passas.
41667
41668         Sync from coreutils.
41669         * lib/sha1.c: Tweak grammar in a comment.
41670
41671 2006-01-10  Jim Meyering  <jim@meyering.net>
41672
41673         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
41674         Patch by Joerg Sonnenberger.
41675
41676 2006-01-10  Bruno Haible  <bruno@clisp.org>
41677
41678         * modules/readutmp: Depend on module free.
41679         * modules/strtok_r: Depend on module restrict.
41680
41681 2006-01-10  Bruno Haible  <bruno@clisp.org>
41682
41683         * modules/gettext (configure.ac): Add an invocation of
41684         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
41685
41686 2006-01-10  Bruno Haible  <bruno@clisp.org>
41687
41688         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
41689         Reported by Werner Lemberg <wl@gnu.org>.
41690
41691 2006-01-10  Bruno Haible  <bruno@clisp.org>
41692
41693         * lib/localcharset.c: Update from GNU gettext.
41694
41695 2006-01-10  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/argp.h (__const): Remove macro. Use const instead.
41698         * lib/argp-fmtstream.h (__const): Likewise.
41699         * lib/glob_.h (__const): Remove macro.
41700         * lib/glob-libc.h: Use const instead of __const.
41701
41702 2006-01-10  Bruno Haible  <bruno@clisp.org>
41703
41704         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
41705         variable.
41706         Needed to avoid an automake error regarding the 'gettext' module.
41707
41708 2006-01-09  Simon Josefsson  <jas@extundo.com>
41709
41710         * modules/inet_ntop (Depends-on): Add restrict.
41711
41712 2006-01-09  Simon Josefsson  <jas@extundo.com>
41713
41714         * modules/gc-rijndael-tests (License): Put under LGPL.
41715
41716         * modules/gc-des-tests (License): Likewise.
41717
41718         * modules/gc-arcfour-tests (License): Likewise.
41719
41720         * modules/gc-arctwo-tests (License): Likewise.
41721
41722         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
41723
41724         * modules/gc-hmac-sha1-tests (Files): Likewise.
41725
41726         * modules/gc-hmac-md5-tests (License): Likewise.
41727
41728         * modules/gc-sha1-tests (License): Likewise.
41729
41730         * modules/gc-md5-tests (License): Likewise.
41731
41732         * modules/gc-md4-tests (License): Likewise.
41733
41734         * modules/gc-md2-tests (License): Likewise.
41735
41736         * modules/gc-tests (License): Likewise.
41737
41738         * modules/des-tests (License): Likewise.
41739
41740         * modules/md4-tests (License): Likewise.
41741
41742         * modules/md2-tests (License): Likewise.
41743
41744 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41745
41746         Sync from coreutils:
41747
41748         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
41749         * modules/lib-ignore: New file.
41750         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
41751         chdir-safer.m4, lchmod.m4.
41752         * modules/openat: Add mkdirat.c, openat-priv.h.
41753
41754 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41755
41756         Sync from coreutils.
41757         * m4/lib-ignore.m4: New file.
41758         * m4/lchmod.m4: New file.
41759
41760 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41761
41762         Sync from coreutils.
41763         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
41764         for write access: POSIX says that must fail.
41765         * lib/fts.c (diropen): Likewise.
41766         * lib/save-cwd.c (save_cwd): Likewise.
41767         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
41768         well, for minor improvements on hosts that lack O_DIRECTORY.
41769         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
41770         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
41771         Fall back on chown if open failed with EACCES.
41772
41773         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
41774         Report an error at compile-time if only a 1-second nominal clock
41775         resolution is found.
41776
41777         * lib/lchmod.h: New file.
41778         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
41779         (make_dir_parents): Use lchown rather than chown, and
41780         lchmod rather than chmod.
41781
41782         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
41783         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
41784         "proc" reported by n0dalus.
41785
41786         * lib/mountlist.c: Include <limits.h>.
41787         (dev_from_mount_options)
41788         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
41789         New function.  It no longer assumes "dev=" has the System V meaning
41790         on Linux (since it doesn't).  It also parses "dev=" more carefully.
41791         (read_file_system_list)
41792         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
41793         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
41794         dev= in that case.
41795
41796         * lib/posixtm.h (PDS_PRE_2000): New macro.
41797         * lib/posixtm.c (year): Arg is now syntax_bits rather than
41798         allow_century.  All usages changed.  Reject dates outside the range
41799         1969-1999 if PDS_PRE_2000 is used.
41800
41801 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41802
41803         Sync from coreutils.
41804         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
41805         (Time of day items): Mention the possibility of leap seconds.
41806         Problem reported by Dr. David Alan Gilbert.
41807
41808 2006-01-09  Jim Meyering  <jim@meyering.net>
41809
41810         Sync from coreutils.
41811
41812         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
41813
41814         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
41815
41816         * lib/modechange.c (mode_compile): Reject an invalid mode string
41817         that starts with an octal digit.  From Andreas Gruenbacher.
41818
41819         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
41820         and dup to open_safer and dup_safer, respectively.
41821         (openat_permissive): Fix typo in comment.
41822
41823         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
41824         "gettext.h"; either no longer needed or are guaranteed by openat.h.
41825         (_): Remove; no longer needed.
41826         (openat): Renamed from rpl_openat; no need for rpl_openat
41827         since openat.h renames openat for us.
41828         Replace most of the body with a call to openat_permissive,
41829         to avoid duplicate code.
41830         Port to (probably hypothetical) environments were mode_t is
41831         wider than int.
41832         (openat_permissive): Require mode arg, so that we can check
41833         types better.  Put it just after flags.  Change cwd failure
41834         indicator from pointer-to-bool to pointer-to-errno-value.
41835         All callers changed.
41836         Invoke openat_save_fail and/or openat_restore_fail if
41837         cwd_errno is null, so that openat can call us.
41838         (openat_permissive, fdopendir, fstatat, unlinkat):
41839         Simplify errno handling to avoid some duplicate code,
41840         as it's OK to set errno on success.
41841         * lib/openat.h: Revamp code so that function macros depend on
41842         __OPENAT_PREFIX only, not also on AT_FDCWD.
41843         (openat_ro): Remove.  Caller changed to use openat_permissive.
41844         (openat_permissive): Now a macro, if not a function.
41845         (openat_restore_fail, openat_save_fail): Now always functions,
41846         since mkdirat needs them even if __OPENAT_PREFIX is defined.
41847
41848         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
41849         and openat.c.
41850         * lib/mkdirat.c: Include openat-priv.h.
41851         Remove definitions of macros defined therein.
41852         * lib/openat.c: Likewise.
41853
41854         * lib/mkdirat.c (mkdirat): New file and function.
41855         * lib/openat.h (mkdirat): Declare.
41856
41857         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
41858
41859         * lib/openat.h (openat_permissive): Declare.
41860         (openat_ro): Define.
41861
41862         * lib/openat.c (EXPECTED_ERRNO): New macro.
41863         (openat_permissive): New function -- used in remove.c rewrite.
41864         (all functions): Set errno just before returning, only if there
41865         was an actual failure.
41866         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
41867
41868         Emulate openat-family functions using Linux's procfs, if possible.
41869         Idea and some code based on Ulrich Drepper's glibc changes.
41870
41871         * lib/openat.c: (BUILD_PROC_NAME): New macro.
41872         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
41873         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
41874         before falling back on save_cwd and restore_cwd.
41875         (fdopendir, fstatat, unlinkat): Likewise.
41876
41877         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
41878         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
41879
41880         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
41881         as second argument to va_arg.  Otherwise, some versions of gcc
41882         warn that `if this code is reached, the program will abort'.
41883
41884 2006-01-09  Jim Meyering  <jim@meyering.net>
41885
41886         Sync from coreutils.
41887         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
41888         Require openat-priv.h.
41889
41890 2006-01-09  Bruno Haible  <bruno@clisp.org>
41891
41892         * modules/strnlen (Include): Use strnlen.h.
41893
41894 2006-01-09  Bruno Haible  <bruno@clisp.org>
41895
41896         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
41897
41898 2006-01-09  Bruno Haible  <bruno@clisp.org>
41899
41900         * lib/sysexit_.h (EX_OK): New macro.
41901         Suggested by Martin Lambers <marlam@marlam.de>.
41902
41903 2006-01-09  Bruno Haible  <bruno@clisp.org>
41904
41905         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
41906         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
41907
41908 2006-01-09  Bruno Haible  <bruno@clisp.org>
41909
41910         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
41911         numbers.
41912
41913 2006-01-09  Bruno Haible  <bruno@clisp.org>
41914
41915         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
41916         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
41917         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
41918         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
41919
41920 2006-01-09  Bruno Haible  <bruno@clisp.org>
41921
41922         * build-aux/javacomp.sh.in: New file, moved from lib/.
41923         * modules/javacomp-script (Files): Update.
41924         (configure.ac): Add AC_CONFIG_FILES invocation.
41925         (EXTRA_DIST): Remove variable.
41926
41927         * build-aux/javaexec.sh.in: New file, moved from lib/.
41928         * modules/javaexec (Files): Update.
41929         (configure.ac): Add AC_CONFIG_FILES invocation.
41930         (EXTRA_DIST): Remove javaexec.sh.in.
41931
41932         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
41933         * modules/csharpcomp-script (Files): Update.
41934         (configure.ac): Add AC_CONFIG_FILES invocation.
41935         (EXTRA_DIST): Remove variable.
41936
41937         * build-aux/csharpexec.sh.in: New file, moved from lib/.
41938         * modules/csharpexec (Files): Update.
41939         (configure.ac): Add AC_CONFIG_FILES invocation.
41940         (EXTRA_DIST): Remove csharpexec.sh.in.
41941
41942 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
41943
41944         Sync from coreutils.
41945
41946         Add POSIX ACL support
41947         * lib/acl.h (copy_acl, set_acl): Add declarations.
41948         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
41949         systems other than Linux.
41950         (chmod_or_fchmod): New function: use fchmod when possible,
41951         and chmod otherwise.
41952         (file_has_acl): Add a POSIX ACL implementation, with a
41953         Linux-specific subcase.
41954         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
41955         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
41956         acls are unsupported.
41957         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
41958         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
41959         are unsupported.
41960
41961 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
41962
41963         Sync from coreutils.
41964         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
41965
41966 2006-01-07  Bruno Haible  <bruno@clisp.org>
41967
41968         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
41969         gl_EARLY.
41970
41971 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41972
41973         * lib/strftime.c (tzname): Don't declare if it is already #defined.
41974         Problem reported for Mingw by Mark Junker.
41975
41976 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41977
41978         * README: Gnulib normally doesn't generate a tarball.
41979
41980 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
41981
41982         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
41983         long int, not int, for nanosecond counts, so that people who are
41984         used to POSIX struct timespec won't be surprised.  Reported by Jim
41985         Meyering.
41986
41987 2005-12-28  Bruno Haible  <bruno@clisp.org>
41988
41989         * build-aux/config.rpath: Update from GNU gettext.
41990
41991 2005-12-16  Jim Meyering  <jim@meyering.net>
41992
41993         * modules/fprintftime: New module.
41994         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
41995
41996 2005-12-16  Jim Meyering  <jim@meyering.net>
41997
41998         * m4/fprintftime.m4: New file.
41999
42000 2005-12-16  Jim Meyering  <jim@meyering.net>
42001
42002         * lib/fprintftime.c, lib/fprintftime.h: New files.
42003
42004 2005-12-15  Simon Josefsson  <jas@extundo.com>
42005
42006         * modules/socklen (configure.ac): Fix M4 macro name, to align with
42007         new m4/socklen.m4.
42008
42009 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42010
42011         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
42012         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
42013
42014 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42015
42016         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
42017         * lib/argp-help.c (fill_in_uparams): Check if the constructed
42018         struct uparams is valid. Fall back to the default values if it is
42019         not.
42020
42021 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42022
42023         * modules/argp (Files): Add argp-pin.c
42024         (Depends-on): dirname
42025         (lib_SOURCES): Add argp-pin.c
42026
42027 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42028
42029         * m4/argp.m4:  Check if program_invocation_name and
42030         program_invocation_short_name are declared and define appropriate
42031         macros if they are not.
42032
42033 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42034
42035         * lib/argp-help.c (__argp_base_name): New function
42036         (__argp_short_program_name): Rewrite using __argp_base_name
42037         * lib/argp-namefrob.h: Define program_invocation_name and
42038         program_invocation_short_name if requested
42039         (__argp_base_name): Add prototype
42040         * lib/argp-parse.c (argp_def): Use gettext wrappers
42041         (argp_default_parser): Use __argp_base_name
42042         * lib/argp-pin.c: New file. Defines program_invocation_name and
42043         program_invocation_short_name on systems that lack them.
42044
42045 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
42048         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42049         porting problem reported by Georg Schwarz in
42050         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42051
42052 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42053
42054         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
42055         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42056         porting problem reported by Georg Schwarz in
42057         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42058
42059 2005-12-05  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
42062         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
42063         Reported by Mark Junker <mjscod@gmx.de>.
42064
42065 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
42066
42067         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
42068         Use implementation from Albert Chin, with some
42069         comments/corrections by Stepan Kasal and myself.
42070
42071 2005-12-02  Bruno Haible  <bruno@clisp.org>
42072
42073         * gnulib-tool (func_import): Accept GPLed build tool modules when
42074         --lgpl is given.
42075         * modules/csharpcomp-script: New file.
42076         * modules/csharpcomp: Depend on it.
42077         * modules/javacomp-script: New file.
42078         * modules/javacomp: Depend on it.
42079         Suggested by Simon Josefsson.
42080
42081 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
42082
42083         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
42084         statement, to work around an HP-UX 10.20 compiler bug reported by
42085         Peter O'Gorman.
42086
42087 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
42088
42089         * modules/savedir (Depends-on): Add openat.
42090
42091 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
42092
42093         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
42094         (uintmax_t) [defined uintmax_t]: Do not declare.
42095         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
42096         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
42097         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
42098         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
42099         sake of portability to weird hosts that C allows (though we don't
42100         know of any practical examples).
42101
42102         * lib/savedir.h (fdsavedir): New decl.
42103         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
42104         contains most of the former guts of savedir.
42105         (savedir): Use savedirstream.
42106         Include "openat.h".
42107
42108 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42109
42110         * modules/obstack (Files): Add m4/ulonglong.m4.
42111         Problem reported by Davide Angelocola.
42112
42113 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42114
42115         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
42116         coreutils no longer futzes with rounding modes.
42117
42118 2005-11-14  Jim Meyering  <jim@meyering.net>
42119
42120         * lib/mkstemp-safer.c: Include <config.h>, required for possible
42121         replacement of mkstemp.
42122
42123 2005-11-10  Simon Josefsson  <jas@extundo.com>
42124
42125         * lib/readline.c: Remove EOL.
42126
42127 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42128
42129         * modules/gethrxtime (Depends-on): Add gettime.
42130
42131 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42132
42133         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
42134         or gettimeofday; no longer needed.
42135
42136 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42137
42138         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
42139         time business.
42140         (gethrxtime) [! (HAVE_NANOUPTIME
42141         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
42142         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
42143         our own approximation.
42144
42145 2005-11-08  Eric Blake  <ebb9@byu.net>
42146
42147         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42148
42149 2005-11-08  Eric Blake  <ebb9@byu.net>
42150
42151         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42152
42153 2005-11-04  Bruno Haible  <bruno@clisp.org>
42154
42155         * gnulib-tool: Implement --update mode.
42156
42157 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42158
42159         Fix porting problem reported by Theodoros V. Kalamatianos.
42160         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
42161         Don't assume that futimes failing means we must fail.
42162
42163 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42164
42165         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
42166         variables to suggest the intended function of the PATH_MAX check.
42167
42168 2005-10-30  Kean Johnston  <jkj@sco.com>
42169
42170         Trivial changes to support SCO systems.
42171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
42172         as PATH_MAX.
42173         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
42174         where __ptr is null when no I/O is pending.
42175
42176 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42177
42178         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
42179         leave errno alone.  Problem reported by Dmitry V. Levin.
42180
42181 2005-10-28  Simon Josefsson  <jas@extundo.com>
42182
42183         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
42184         Test more.
42185
42186         * tests/test-gc-md2.c, tests/test-md2.c: New files.
42187
42188         * modules/md2, modules/md2-tests: New files.
42189
42190 2005-10-28  Simon Josefsson  <jas@extundo.com>
42191
42192         * m4/inet_ntop.m4: More tests.
42193
42194         * m4/gc-md2.m4, md2.m4: New file.
42195
42196 2005-10-28  Simon Josefsson  <jas@extundo.com>
42197
42198         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
42199         "restrict" keywords, as per POSIX.  Protect the function
42200         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
42201         Don't use K&R prototypes.  Check the sprintf return values.
42202         Re-define EAFNOSUPPORT if not present.  Indent.
42203
42204         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
42205         suggested by Bruno Haible <bruno@clisp.org>.
42206
42207         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
42208
42209         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
42210
42211         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
42212         libgcrypt).
42213
42214         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
42215
42216         * lib/md2.h, lib/md2.c: New files.
42217
42218 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
42219
42220         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
42221         errno alone.  Problem reported by Frederic Jolliton.
42222
42223 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42224
42225         * modules/verify (License): Change from GPL to LGPL.  This is a
42226         tiny module and there are apparently near-equivalents that are
42227         under the BSD license.
42228
42229 2005-10-24  Simon Josefsson  <jas@extundo.com>
42230
42231         * modules/sha1: Relicense to LGPL.
42232
42233 2005-10-24  Simon Josefsson  <jas@extundo.com>
42234
42235         * lib/md4.h: Shrink buffer size, now that we changed the type.
42236
42237 2005-10-23  Simon Josefsson  <jas@extundo.com>
42238
42239         * gnulib-tool (func_import): Fix --tests-base.
42240
42241 2005-10-22  Simon Josefsson  <jas@extundo.com>
42242
42243         * modules/arcfour (Depends-on): Need stdint.
42244
42245 2005-10-22  Simon Josefsson  <jas@extundo.com>
42246
42247         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
42248         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
42249
42250 2005-10-22  Simon Josefsson  <jas@extundo.com>
42251
42252         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
42253         suggested by Bruno Haible <bruno@clisp.org>.
42254
42255 2005-10-22  Simon Josefsson  <jas@extundo.com>
42256
42257         * lib/crc.h: Include stddef.h, for size_t.
42258
42259 2005-10-22  Simon Josefsson  <jas@extundo.com>
42260
42261         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
42262         arcfour_context struct (simplify test vector testing in GNU
42263         Shishi).
42264
42265 2005-10-21  Simon Josefsson  <jas@extundo.com>
42266
42267         * modules/des, modules/des-tests: New files.
42268
42269         * modules/gc-des, modules/gc-des-tests: New files.
42270
42271         * tests/test-des.c, tests/test-gc-des.c: New file.
42272
42273 2005-10-21  Simon Josefsson  <jas@extundo.com>
42274
42275         * modules/arctwo, modules/arctwo-tests: New files.
42276
42277         * tests/test-arctwo.c: New file.
42278
42279         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
42280
42281         * tests/test-gc-arctwo.c: New file.
42282
42283 2005-10-21  Simon Josefsson  <jas@extundo.com>
42284
42285         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
42286         Bruno Haible <bruno@clisp.org>.
42287
42288         * m4/gc-des.m4: New file.
42289
42290 2005-10-21  Simon Josefsson  <jas@extundo.com>
42291
42292         * m4/arctwo.m4: New file.
42293
42294         * m4/gc-arctwo.m4: New file.
42295
42296 2005-10-21  Simon Josefsson  <jas@extundo.com>
42297
42298         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
42299         block.
42300
42301 2005-10-21  Simon Josefsson  <jas@extundo.com>
42302
42303         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
42304         <bruno@clisp.org>.
42305
42306         * lib/hmac-sha1.c (hmac_sha1): Likewise.
42307
42308         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
42309         Bruno Haible <bruno@clisp.org>.
42310
42311         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
42312         <bruno@clisp.org>.
42313
42314 2005-10-21  Simon Josefsson  <jas@extundo.com>
42315
42316         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
42317
42318 2005-10-21  Simon Josefsson  <jas@extundo.com>
42319
42320         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
42321
42322 2005-10-21  Simon Josefsson  <jas@extundo.com>
42323
42324         * lib/des.h, lib/des.c: New files.
42325
42326         * lib/gc-gnulib.c: Support DES.c
42327
42328 2005-10-21  Simon Josefsson  <jas@extundo.com>
42329
42330         * lib/arctwo.h, lib/arctwo.c: New files.
42331
42332         * lib/gc-gnulib.c: Support ARCTWO.
42333
42334 2005-10-21  Simon Josefsson  <jas@extundo.com>
42335
42336         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
42337         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42338
42339 2005-10-21  Simon Josefsson  <jas@extundo.com>
42340
42341         * gnulib-tool (func_import, func_create_testdir): Define automake
42342         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
42343         Makefile.am snippet),
42344         suggested by Bruno Haible <bruno@clisp.org>.
42345
42346         * modules/gc (Makefile.am): Use it.
42347
42348 2005-10-21  Bruno Haible  <bruno@clisp.org>
42349
42350         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
42351         patch.
42352
42353 2005-10-19  Simon Josefsson  <jas@extundo.com>
42354
42355         * tests/test-gc-rijndael.c: New file.
42356
42357         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
42358
42359 2005-10-19  Simon Josefsson  <jas@extundo.com>
42360
42361         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
42362         interface too.
42363
42364 2005-10-19  Simon Josefsson  <jas@extundo.com>
42365
42366         * tests/test-gc-arcfour.c: New file.
42367
42368         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
42369
42370 2005-10-19  Simon Josefsson  <jas@extundo.com>
42371
42372         * modules/gc-md4, modules/gc-md4-tests: New file.
42373
42374         * tests/test-gc-md4.c: New file.
42375
42376 2005-10-19  Simon Josefsson  <jas@extundo.com>
42377
42378         * m4/gc-md4.m4: New file.
42379
42380 2005-10-19  Simon Josefsson  <jas@extundo.com>
42381
42382         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
42383         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
42384         <kasal@ucw.cz>.
42385
42386 2005-10-19  Simon Josefsson  <jas@extundo.com>
42387
42388         * m4/gc-arcfour.m4: New file.
42389
42390         * m4/gc-rijndael.m4: New file.
42391
42392 2005-10-19  Simon Josefsson  <jas@extundo.com>
42393
42394         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
42395
42396 2005-10-19  Simon Josefsson  <jas@extundo.com>
42397
42398         * lib/gc-gnulib.c: Support ARCFOUR.
42399
42400 2005-10-19  Simon Josefsson  <jas@extundo.com>
42401
42402         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
42403         support.
42404
42405         * lib/gc.h: Add ECB enum type.
42406
42407         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
42408
42409 2005-10-18  Simon Josefsson  <jas@extundo.com>
42410
42411         * tests/test-md5.c: New file.
42412
42413         * modules/md5-tests: New file.
42414
42415 2005-10-18  Simon Josefsson  <jas@extundo.com>
42416
42417         * tests/test-md4.c: New file.
42418
42419         * modules/md4, modules/md4-tests: New files.
42420
42421 2005-10-18  Simon Josefsson  <jas@extundo.com>
42422
42423         * m4/md4.m4: New file.
42424
42425 2005-10-18  Simon Josefsson  <jas@extundo.com>
42426
42427         * lib/md4.h, lib/md4.c: New files, based on md5.?.
42428
42429 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
42430
42431         * gnulib-tool (func_create_testdir): Omit the second check whether
42432         BUILT_SOURCES in nonempty.
42433
42434 2005-10-17  Simon Josefsson  <jas@extundo.com>
42435
42436         * tests/test-rijndael.c: New file.
42437
42438 2005-10-17  Simon Josefsson  <jas@extundo.com>
42439
42440         * modules/sha1: Depend on stdint instead of md5.
42441
42442         * modules/md5: Depend on stdint, remove uint32_t.
42443
42444 2005-10-17  Simon Josefsson  <jas@extundo.com>
42445
42446         * modules/gc-sha1-tests: New file.
42447
42448         * tests/test-gc-sha1.c: New file.
42449
42450 2005-10-17  Simon Josefsson  <jas@extundo.com>
42451
42452         * m4/md5.m4: Remove call to uint32_t.m4.
42453
42454 2005-10-17  Simon Josefsson  <jas@extundo.com>
42455
42456         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
42457
42458         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
42459         md5.h.
42460
42461         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
42462
42463         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
42464
42465 2005-10-17  Simon Josefsson  <jas@extundo.com>
42466
42467         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
42468
42469 2005-10-17  Simon Josefsson  <jas@extundo.com>
42470
42471         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
42472
42473 2005-10-17  Simon Josefsson  <jas@extundo.com>
42474
42475         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
42476
42477         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
42478
42479 2005-10-17  Bruno Haible  <bruno@clisp.org>
42480
42481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
42482         that it can also be used in a test.
42483
42484 2005-10-16  Bruno Haible  <bruno@clisp.org>
42485
42486         * gnulib-tool (func_emit_tests_Makefile_am): Also define
42487         TESTS_ENVIRONMENT, so that individual tests can augment it.
42488
42489         * gnulib-tool (func_create_testdir): Use an intermediate target for
42490         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
42491         macros, like $(ALLOCA_H), which cannot be passed through the command
42492         line.
42493
42494 2005-10-15  Simon Josefsson  <jas@extundo.com>
42495
42496         * modules/rijndael-tests: New file.
42497
42498         * modules/rijndael: New file.
42499
42500 2005-10-15  Simon Josefsson  <jas@extundo.com>
42501
42502         * m4/rijndael.m4: New file.
42503
42504 2005-10-15  Simon Josefsson  <jas@extundo.com>
42505
42506         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
42507
42508         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
42509
42510 2005-10-14  Simon Josefsson  <jas@extundo.com>
42511
42512         * tests/test-arcfour.c: New file.
42513
42514         * modules/arcfour, modules/arcfour-tests: New files.
42515
42516 2005-10-14  Simon Josefsson  <jas@extundo.com>
42517
42518         * m4/arcfour.m4: New file.
42519
42520 2005-10-14  Simon Josefsson  <jas@extundo.com>
42521
42522         * lib/arcfour.h, lib/arcfour.c: New files.
42523
42524 2005-10-14  Roland McGrath  <roland@redhat.com>
42525
42526         Import from libc.  [BZ #1331]
42527         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
42528         macro argument.
42529         Reported by Matej Vela <vela@debian.org>.
42530
42531 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42532
42533         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
42534         include <wchar.h>; no longer needed.
42535
42536 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42537
42538         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
42539
42540 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
42541         and  Ulrich Drepper  <drepper@redhat.com>
42542
42543         Import from libc.
42544         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
42545         instead of inline stream orientation test and two separate
42546         function calls.  Pay no attention to USE_IN_LIBIO.
42547
42548 2005-10-13  Simon Josefsson  <jas@extundo.com>
42549
42550         * modules/gc-hmac-md5-tests: New file.
42551
42552         * tests/test-gc-hmac-sha1.c: New file.
42553
42554         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
42555
42556         * modules/gc-hmac-md5-tests: New file.
42557
42558         * tests/test-gc-md5.c: New file.
42559
42560         * modules/gc-md5-tests: New file.
42561
42562 2005-10-13  Simon Josefsson  <jas@extundo.com>
42563
42564         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
42565         Move memory allocation outside of loop.
42566
42567 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
42568
42569         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
42570         intermediate directory is in a read-only file system.  Problem
42571         reported by Eric Blake.
42572
42573 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
42574
42575         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
42576
42577 2005-10-12  Simon Josefsson  <jas@extundo.com>
42578
42579         * tests/test-hmac-sha1.c: New file.
42580
42581         * modules/hmac-sha1-tests: New file.
42582
42583         * modules/hmac-sha1: New file.
42584
42585 2005-10-12  Simon Josefsson  <jas@extundo.com>
42586
42587         * modules/gc-sha1: New file.
42588
42589 2005-10-12  Simon Josefsson  <jas@extundo.com>
42590
42591         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
42592
42593         * tests/test-gc-pbkdf2-sha1.c: New file.
42594
42595 2005-10-12  Simon Josefsson  <jas@extundo.com>
42596
42597         * modules/gc-md5, modules/gc-hmac-md5: New files.
42598
42599         * modules/gc (Files): Remove md5, memxor and hmac files.
42600
42601 2005-10-12  Simon Josefsson  <jas@extundo.com>
42602
42603         * m4/gc-pbkdf2-sha1.m4: New file.
42604
42605         * m4/gc-hmac-sha1.m4: New file.
42606
42607         * m4/gc-sha1: New file.
42608
42609         * m4/hmac-sha1.m4: New file.
42610
42611 2005-10-12  Simon Josefsson  <jas@extundo.com>
42612
42613         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
42614
42615         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
42616
42617 2005-10-12  Simon Josefsson  <jas@extundo.com>
42618
42619         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
42620         suggested by Bruno Haible <bruno@clisp.org>.
42621
42622 2005-10-12  Simon Josefsson  <jas@extundo.com>
42623
42624         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
42625
42626 2005-10-12  Simon Josefsson  <jas@extundo.com>
42627
42628         * lib/gc-pbkdf2-sha1.c: New file.
42629
42630         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
42631
42632 2005-10-12  Simon Josefsson  <jas@extundo.com>
42633
42634         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
42635
42636         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
42637
42638 2005-10-12  Simon Josefsson  <jas@extundo.com>
42639
42640         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
42641         GC_USE_HMAC_MD5, respectively.
42642
42643         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
42644         (gc_md5): Fix typo.
42645
42646         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
42647
42648         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
42649
42650         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
42651
42652 2005-10-12  Bruno Haible  <bruno@clisp.org>
42653
42654         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
42655         Reported by Stepan Kasal <kasal@ucw.cz>.
42656
42657 2005-10-11  Simon Josefsson  <jas@extundo.com>
42658
42659         * tests/test-crc.c: New file.
42660
42661         * modules/crc, modules/crc-tests: New files.
42662
42663 2005-10-11  Simon Josefsson  <jas@extundo.com>
42664
42665         * m4/crc.m4: New file.
42666
42667 2005-10-11  Simon Josefsson  <jas@extundo.com>
42668
42669         * lib/gc.h: Add gc_hash and gc_hash_buffer.
42670
42671         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
42672
42673         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
42674
42675 2005-10-11  Simon Josefsson  <jas@extundo.com>
42676
42677         * lib/crc.h, lib/crc.c: New files.
42678
42679         * lib/gc.h (gc_hash_buffer): Add doc.
42680
42681 2005-10-11  Bruno Haible  <bruno@clisp.org>
42682
42683         * modules/c-strcasestr: New file.
42684         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
42685
42686 2005-10-11  Bruno Haible  <bruno@clisp.org>
42687
42688         * modules/c-strcase: New file.
42689         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
42690
42691 2005-10-11  Bruno Haible  <bruno@clisp.org>
42692
42693         * lib/strcasecmp.c: Include limits.h.
42694         (strcasecmp): Avoid integer overflow on exotic platforms.
42695         * lib/strncasecmp.c: Include limits.h.
42696         (strncasecmp): Avoid integer overflow on exotic platforms.
42697         Reported by Paul Eggert.
42698
42699 2005-10-11  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/c-strcasestr.h: New file, from GNU gettext.
42702         * lib/c-strcasestr.c: New file, from GNU gettext.
42703
42704 2005-10-11  Bruno Haible  <bruno@clisp.org>
42705
42706         * lib/c-strcase.h: New file, from GNU gettext.
42707         * lib/c-strcasecmp.c: New file, from GNU gettext.
42708         * lib/c-strncasecmp.c: New file, from GNU gettext.
42709
42710 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42711
42712         * modules/mempcpy (License): GPL -> LGPL.
42713         * modules/strchrnul (License): Likewise.
42714         * modules/sysexits (License): Likewise.
42715
42716 2005-10-08  Simon Josefsson  <jas@extundo.com>
42717
42718         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
42719
42720 2005-10-07  Simon Josefsson  <jas@extundo.com>
42721
42722         * m4/memxor.m4: Remove gl_C_RESTRICT call.
42723
42724 2005-10-06  Simon Josefsson  <jas@extundo.com>
42725
42726         * tests/test-hmac-md5.c: New file.
42727
42728         * modules/hmac-md5-tests: New file.
42729
42730         * modules/hmac-md5: New file.
42731
42732 2005-10-06  Simon Josefsson  <jas@extundo.com>
42733
42734         * m4/hmac-md5.m4: New file.
42735
42736         * m4/memxor.m4: Require gl_C_RESTRICT.
42737
42738 2005-10-06  Simon Josefsson  <jas@extundo.com>
42739
42740         * lib/memxor.c (memxor): Avoid casts and warnings.
42741
42742 2005-10-06  Simon Josefsson  <jas@extundo.com>
42743
42744         * lib/hmac-md5.c: New file.
42745
42746         * lib/hmac.h: New file.
42747
42748 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42749
42750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
42751         promotes to int, not unsigned int, to catch the AIX 5.3
42752         compiler bug.
42753
42754 2005-10-05  Simon Josefsson  <jas@extundo.com>
42755
42756         * modules/memxor: New file.
42757
42758         * modules/iconv (Files): Move config.rpath to havelib, it is used
42759         there.
42760
42761         * modules/havelib (Files): Add config.rpath.
42762
42763 2005-10-05  Simon Josefsson  <jas@extundo.com>
42764
42765         * m4/memxor.m4: New file.
42766
42767 2005-10-05  Simon Josefsson  <jas@extundo.com>
42768
42769         * lib/memxor.c (memxor): Fix compiler error.
42770
42771         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
42772         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
42773
42774         * lib/memxor.h, lib/memxor.c: New files.
42775
42776         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
42777         we assume all systems have it, suggested by Jim Meyering
42778         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
42779         any systems lack sys/socket.h; mingw32 is known to lack it, but we
42780         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
42781         same reasons.
42782
42783 2005-10-05  Simon Josefsson  <jas@extundo.com>
42784
42785         * config/srclist.txt: Add glibc bug 1423 for md5.h.
42786
42787 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42788
42789         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
42790         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
42791         needed, since the source code now assumes these .h files.
42792
42793 2005-10-05  Derek Price  <derek@ximbiot.com>
42794
42795         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
42796
42797 2005-10-05  Bruno Haible  <bruno@clisp.org>
42798
42799         * modules/stdint (License): Change to LGPL.
42800
42801 2005-10-04  Simon Josefsson  <jas@extundo.com>
42802
42803         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
42804         D. Baushke" <mdb@gnu.org>.
42805
42806 2005-10-04  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/verify.h (verify_true): Provide alternative definition for C++.
42809
42810 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
42811
42812         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
42813         (SSIZE_MAX): New macro, if not already defined.
42814         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
42815         than 2 GiB.
42816
42817 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         Sync from coreutils.
42820         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
42821         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
42822         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
42823         ULLONG_MAX doesn't work with 2.7.2.1.
42824
42825 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
42826
42827         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
42828         From Ben Pfaff.
42829
42830         * modules/exclude (Depends-on): Depend on verify.
42831         * modules/strtoimax (Depends-on): Likewise.
42832         * modules/utimecmp (Depends-on): Likewise.
42833
42834 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
42835
42836         * lib/exclude.c: Include verify.h.
42837         (verify): Remove.  All callers changed to use verify.h's version.
42838         * lib/strtoimax.c: Likewise.
42839         * lib/utimecmp.c: Likewis.e
42840
42841         Sync from coreutils.
42842         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
42843         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
42844         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
42845         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
42846         bother returning ENOSYS if settimeofday or stime fails; just let
42847         them return whatever errno they want to return.
42848         * lib/utimens.c: Include unistd.h, for dup2.
42849         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
42850         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
42851
42852 2005-10-02  Jim Meyering  <jim@meyering.net>
42853
42854         Sync from coreutils.
42855         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
42856         from glibc-2.2.5 that fails for read-only files.
42857
42858 2005-10-02  Jim Meyering  <jim@meyering.net>
42859
42860         Sync from coreutils.
42861         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
42862         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
42863         `#if HAVE_CONFIG_H'.
42864         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
42865         Remove AT_FDCWD test.
42866         Do not consume the fd unless successful.
42867         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
42868         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
42869         block, so that we don't even try to compile it if settimeofday is
42870         available.  This works around a compilation failure on OSF1 V5.1,
42871         due to stime requiring a `long int*' while tv_sec is `int'.
42872
42873 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
42874
42875         Sync from coreutils.
42876         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
42877         against `yes', rather than just testing for nonempty.
42878
42879 2005-10-01  Simon Josefsson  <jas@extundo.com>
42880
42881         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
42882         and Darwin.
42883
42884         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
42885         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
42886         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
42887         freeaddrinfo and gai_strerror are declared by the POSIX headers.
42888         Check if struct addrinfo is declared.
42889
42890 2005-10-01  Simon Josefsson  <jas@extundo.com>
42891
42892         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
42893         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
42894         AI_* and EAI_* definitions.  Protect function declarations.
42895
42896 2005-10-01  Jim Meyering  <jim@meyering.net>
42897
42898         Sync from coreutils.
42899
42900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
42901         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
42902         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
42903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
42904         in the inet and nsl libraries.  Required on Solaris 5.7.
42905
42906 2005-10-01  Jim Meyering  <jim@meyering.net>
42907
42908         Sync from coreutils.
42909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
42910         in the inet and nsl libraries.  Required on Solaris 5.7.
42911
42912 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
42913
42914         * lib/getdelim.c (getdelim): Remove unused variables.
42915
42916 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42917
42918         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
42919         so that the code works even with ancient cpp.  Portability problem
42920         with GCC 2.7.2.1 reported by Thomas M.Ott.
42921
42922 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42923
42924         * modules/regex (Depends-on): Add strcase.
42925
42926         * modules/gethostname (Licence): Change from GPL to LGPL, since
42927         gethostname.c is a trivial implementation of a standard library
42928         function.
42929         * modules/poll (License): Change from GPL to LGPL, since it's
42930         derived from LGPL code.
42931
42932 2005-09-27  Jim Meyering  <jim@meyering.net>
42933
42934         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
42935         HAVE_CONFIG_H.
42936
42937         * lib/intprops.h (signed_type_or_expr__): Define.
42938         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
42939         for unsigned types.
42940
42941 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42942
42943         * lib/verify.h (verify_expr): Remove, replacing with:
42944         (verify_true): New macro that returns true instead of void.
42945         (verify_type__): Remove.
42946         (verify): Use verify_true rather than verify_type__.
42947
42948 2005-09-26  Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
42951         is necessary.
42952         (lib_SOURCES): Remove mbchar.c.
42953         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
42954         (Files): Add m4/mbrtowc.m4.
42955         * modules/mbiter: Likewise.
42956         * modules/mbuiter: Likewise.
42957
42958 2005-09-26  Bruno Haible  <bruno@clisp.org>
42959
42960         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
42961         compile mbchar.c if they are not both present.
42962         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
42963         * m4/mbiter.m4 (gl_MBITER): Likewise.
42964         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
42965         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
42966         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
42967
42968 2005-09-25  Jim Meyering  <jim@meyering.net>
42969
42970         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
42971         also uses socklen_t.
42972
42973 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
42974
42975         * lib/utimens.c (ENOSYS): Define if not already defined.
42976         (futimens): Support having a null PATH if the file descriptor
42977         is nonnegative.
42978
42979         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
42980         Remove.
42981         (__attribute): Define to empty unless GCC 3.1 or later.
42982         This works around a core dump on OpenBSD 3.4, which has GCC
42983         2.95.3, which dumps core when given __attribute__(()).  It also
42984         simplifies other tests, since we really don't want to bother with
42985         worrying about which ancient version of GCC supported what.
42986         Original problem reported by Yoann Vandoorselaere, with part of
42987         the fix suggested by Derek Price.
42988
42989 2005-09-24  Jim Meyering  <jim@meyering.net>
42990
42991         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
42992         so we can once again use a positive bitfield width of 1 -- now we
42993         don't have to explain why we were using a bitfield width of 2.
42994
42995 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
42996
42997         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
42998         and similarly for the other external symbols.  Problem reported
42999         by James Gallager.
43000
43001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
43002         bug reported by Jim Meyering.
43003
43004         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
43005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
43006         not needed, since socklen is a prerequisite module.
43007
43008 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43009
43010         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
43011         Problem reported by Eric Blake.
43012         (getaddrinfo): Initialize se so that it's not garbage.
43013         Redo internal storage allocation so that it doesn't make unportable
43014         assumptions about alignment.
43015         Fix a memory leak.
43016
43017         * lib/utimens.c (futimens): Use futimesat if available.
43018         Prefer it to futimes since it doesn't have the futimes bug.
43019
43020         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
43021         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
43022         Instead, declare a function that returns a pointer to an array,
43023         and use verify_type__ to declare the size of the array.
43024         Problem and germ of a solution reported by Bruno Haible.
43025         (verify_type__): Use 2, not 1, for bitfield size, to avoid
43026         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
43027
43028 2005-09-23  Jim Meyering  <jim@meyering.net>
43029
43030         Sync from coreutils.
43031         Correct build failure (socklen_t not defined) on at least
43032         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
43033         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
43034
43035 2005-09-23  Jim Meyering  <jim@meyering.net>
43036
43037         * modules/getaddrinfo (Depends-on): Add socklen.
43038
43039 2005-09-23  Bruno Haible  <bruno@clisp.org>
43040
43041         * tests/test-verify.c: New file.
43042
43043 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43044
43045         Sync from coreutils.
43046
43047         * modules/argmatch (Depends-on): Add verify.
43048         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
43049         unistd-safer.
43050         * modules/save-cwd (Depends-on): Likewise.
43051
43052         * modules/openat (Files): Add lib/openat-die.c.
43053         (Depends-on): Remove error, exitfail.
43054         Add dirname.
43055
43056         * modules/verify: New file.
43057         * MODULES.html.sh (Diagnostics <assert.h>): New section,
43058         with "verify" module.
43059
43060 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43061
43062         Sync from coreutils.
43063
43064         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
43065         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
43066         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
43067         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
43068         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
43069         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
43070         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
43071         Don't bother checking for string.h, stdlib.h, unistd.h.
43072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
43073         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
43074         module's job.
43075         * m4/jm-macros.m4 (gl_MACROS): Likewise.
43076         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
43077
43078         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
43079         (gl_GETDATE): Use it.
43080
43081         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
43082
43083 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43084
43085         Sync from coreutils.
43086
43087         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
43088         stat-time.h.
43089         * lib/argmatch.h: Include verify.h
43090         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
43091         (ARGMATCH_ASSERT): Remove; unused.
43092         * lib/canonicalize.c: Assume STDC_HEADERS.
43093         * lib/exclude.c: Include "strcase.h".
43094         * lib/regex_internal.h [!defined _LIBC]: Likewise.
43095         * lib/getusershell.c: Include stdio--.h rather than stdio.h
43096         and stdio-safer.h.
43097         (getusershell): Call fopen, not fopen_safer.
43098         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
43099         Do not include unistd-safer.h.
43100         (save_cwd): Don't call fd_safer; no longer needed
43101         now that we include fcntl--.h.
43102
43103         * lib/getdate.y (relative_time): New type.
43104         (RELATIVE_TIME_0): New constant.
43105         (parser_control): Use relative_time instead of doing it ourselves.
43106         (%union): Add new relative_time rel member.
43107         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
43108         Now typeless.
43109         (relunit, relunit_snumber): Now of type rel.
43110         (zone, rel, relunit, get_date): Adjust to above changes.
43111
43112         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
43113         Do not include unistd-safer.h.
43114         (getloadavg): Don't call fd_safer; no longer needed
43115         now that we include fcntl--.h.
43116
43117         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
43118         (make_dir_parents): Treat ENOSYS like EEXIST.
43119
43120         Improve quality of diagnostics on restore_cwd failure.
43121         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
43122         (make_dir_parents): Last arg is now int * (for errno), not bool *.
43123         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
43124         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
43125         each time through the loop.  Do not diagnose restore_cwd failure;
43126         that is the caller's job (and perhaps the caller does not care).
43127
43128         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
43129         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
43130         If the file already exists but is not a directory, don't bother
43131         to try to make its parents.
43132         Close potential file descriptor leak if we can't chdir("/") (!).
43133         Don't always return true if chdir($PWD) fails; return true only
43134         if the requested action was done successfully (except for the
43135         chdir($PWD)).
43136         Don't log final directory unless we actually made it.
43137         Refactor to avoid duplicate code to fix up permissions.
43138         Don't attempt to fix up parent permissions if chdir($PWD) fails.
43139
43140         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
43141         to make it a bit faster and (I hope) clearer.
43142         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
43143         Fix bug in formats like %2N.
43144
43145         * lib/verify.h: New file.
43146
43147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43148
43149         Sync from coreutils.
43150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
43151
43152 2005-09-22  Jim Meyering  <jim@meyering.net>
43153
43154         Sync from coreutils.
43155
43156         * m4/lstat.m4 (gl_FUNC_LSTAT):
43157         Use AC_LIBSOURCES to require lstat.c and lstat.h.
43158         Remove obsolete comment.
43159         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
43160         * m4/xstrtod.m4: Likewise.
43161
43162         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
43163
43164 2005-09-22  Jim Meyering  <jim@meyering.net>
43165
43166         Sync from coreutils.
43167
43168         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
43169
43170         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
43171         the .tm_year member, since otherwise gcc-4.0 would now warn about
43172         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
43173
43174         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
43175         order to avoid an unsuppressible warning from gcc on 64-bit systems.
43176
43177         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
43178         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
43179         when run in a time zone for which daylight savings time is in effect
43180         for the starting date.
43181
43182         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
43183         stop us from restricting permissions of just-created absolute-named
43184         directories.
43185         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
43186         to restore initial working directory.
43187         * lib/mkdir-p.c (make_dir_parents): New parameter:
43188         different_working_dir, to tell caller if/when we change the working
43189         directory and are unable to return to the initial one.
43190         * lib/mkdir-p.h (make_dir_parents): Update prototype.
43191         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
43192         `return false'.  This fixes a bug introduced on 2004-07-30.
43193
43194         * lib/openat.c (fdopendir): Be sure to close the supplied
43195         file descriptor before returning.  This makes our replacement
43196         implementation a little closer to Solaris's, where fdopendir
43197         ties the file descriptor to the returned DIR* pointer.
43198         * lib/openat.c (unlinkat): New function.
43199         * lib/openat.h (unlinkat): Add prototype.
43200         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
43201         (openat_restore_fail): Rename from openat_restore_die.
43202         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
43203
43204         Provide an alternative to exiting immediately upon save_cwd or
43205         restore_cwd failure.  Now, an application can arrange e.g.,
43206         to perform a longjump in that case.
43207         * lib/openat.c: Include dirname.h.
43208         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
43209         (rpl_openat, fdopendir, fstatat): Call openat_save_die
43210         and openat_restore_die rather than calling error directly.
43211         Don't include "error.h" or "exitfail.h"; they're no longer needed.
43212
43213         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
43214         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
43215         define.
43216
43217         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
43218         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
43219                             int utc, int nanoseconds);
43220         Background:
43221         date should not have to allocate a megabyte of virtual memory to
43222         handle a format argument like +%1048575T.  When implemented with
43223         strftime, it must allocate such a buffer, use strftime to fill it
43224         in, print it, then free it.
43225         With fprintftime, it simply prints everything and exits.
43226         With no need for memory allocation, that's one fewer way to fail.
43227         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
43228         optional field width, not before, so we accept %9:z, not %:9z.
43229         (my_strftime): Be sure to use L_('x') for literals.
43230
43231         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
43232         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
43233         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
43234         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
43235         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
43236         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
43237         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
43238         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
43239         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
43240         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
43241         * lib/xgethostname.c, lib/xreadlink.c:
43242         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
43243
43244         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
43245         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
43246         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
43247         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
43248         and don't include <sys/file.h>).
43249
43250 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
43251
43252         Sync from coreutils.
43253
43254         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
43255         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
43256         [!LDAV_DONE]: Avoid unused variable warning.
43257
43258 2005-09-21  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/unicodeio.h (unicode_to_mb): New declaration.
43261
43262 2005-09-20  Derek Price  <derek@ximbiot.com>
43263
43264         * lib/getaddrinfo.c: Don't include <netdb.h> included from
43265         getaddrinfo.h.
43266
43267 2005-09-20  Bruno Haible  <bruno@clisp.org>
43268
43269         * gnulib-tool: Remove trailing slashes from the values specified for
43270         --source-base, --m4-base, --tests-base, --aux-dir.
43271         Suggested by Simon Josefsson <jas@extundo.com>.
43272
43273 2005-09-20  Bruno Haible  <bruno@clisp.org>
43274
43275         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
43276         func_modules_to_filelist, func_import, func_create_testdir): Make all
43277         sorting results locale-independent, so that gnulib-cache.m4 doesn't
43278         change when gnulib-tool is invoked in a different locale.
43279
43280 2005-09-19  Simon Josefsson  <jas@extundo.com>
43281
43282         * m4/socklen.m4: Fix typo.
43283
43284 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43285
43286         Use a consistent style for including <config.h>.
43287         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
43288         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
43289         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
43290         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
43291         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
43292         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
43293         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
43294         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
43295         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
43296         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
43297         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
43298         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
43299         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
43300         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
43301         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
43302         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
43303         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
43304         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
43305         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
43306         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
43307         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
43308         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
43309         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
43310         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
43311         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
43312         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
43313         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
43314         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
43315         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
43316         lib/xstrtoumax.c, lib/yesno.c:
43317         Standardize inclusion of config.h.
43318         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
43319         lib/inttostr.h:  Removed inclusion of config.h from header files.
43320         * lib/inttostr.c:  Adjusted in-tree users.
43321         * lib/timespec.h: Remove superfluous warning to include config.h.
43322         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
43323         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
43324         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
43325         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
43326         config.h with HAVE_CONFIG_H.
43327
43328 2005-09-19  Jim Meyering  <jim@meyering.net>
43329
43330         * modules/pathmax (License): Change to LGPL.
43331
43332 2005-09-19  Derek Price  <derek@ximbiot.com>
43333
43334         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
43335
43336 2005-09-19  Bruno Haible  <bruno@clisp.org>
43337
43338         * gnulib-tool (import): Provide default for --tests-base.
43339
43340 2005-09-19  Bruno Haible  <bruno@clisp.org>
43341
43342         * doc/quote.texi: New file, extracted from gnulib.texi.
43343         * doc/ctime.texi: New file, extracted from gnulib.texi.
43344         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
43345         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
43346         * doc/gnulib.texi: Include them.
43347
43348 2005-09-18  Bruno Haible  <bruno@clisp.org>
43349
43350         Portability fix.
43351         * gnulib-tool (func_readlink): New function.
43352         (func_ln_if_changed): Use it.
43353
43354 2005-09-18  Bruno Haible  <bruno@clisp.org>
43355
43356         * gnulib-tool: Support --with-tests also with --import.
43357         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
43358         (func_import): Use variables $testsbase and $inctests. Emit a
43359         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
43360         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
43361         SUBDIRS += $testsdir.
43362         (func_create_testdir): Update.
43363
43364 2005-09-18  Bruno Haible  <bruno@clisp.org>
43365
43366         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
43367         instead of $dry_run.
43368         (func_cp_if_changed, func_mv_if_changed): Remove functions.
43369         (func_ln_if_changed): Don't handle dry-run here.
43370         (func_import): In dry-run mode, detect more precisely which actions
43371         would be performed, and don't use "...ing" verbs.
43372
43373 2005-09-18  Bruno Haible  <bruno@clisp.org>
43374
43375         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
43376         (func_import): Use join on two temporary files instead of three nested
43377         loops, in order to determine which files are new or old.
43378
43379 2005-09-18  Bruno Haible  <bruno@clisp.org>
43380
43381         * gnulib-tool (func_import): Comment out code that spits out the
43382         new files with --dry-run.
43383
43384 2005-09-18  Bruno Haible  <bruno@clisp.org>
43385
43386         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
43387
43388 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
43389
43390         * lib/stat-time.h: New file.
43391         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
43392         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
43393         in a different way.
43394         (timespec_cmp): New function.
43395         * lib/utimecmp.c: Include stat-time.h.
43396         (SYSCALL_RESOLUTION): Depend on whether various struct stat
43397         members exist, not on the obsolescent ST_MTIM_NSEC.
43398         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
43399
43400 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
43401
43402         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
43403
43404 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
43405
43406         * MODULES.html.sh (File system functions): Add stat-time.
43407         * modules/stat-time: New file.
43408         * modules/timespec (Files): Remove m4/st_mtim.m4; this
43409         is now done in a different way, by the stat-time module.
43410         * modules/utimecmp (Depends-on): Add stat-time.
43411
43412 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43413
43414         * m4/st_mtim.m4: Remove.  Superseded by...
43415         * m4/stat-time.m4: New file.
43416         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
43417         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
43418
43419 2005-09-15  Derek Price  <derek@ximbiot.com>
43420
43421         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
43422
43423 2005-09-15  Derek Price  <derek@ximbiot.com>
43424
43425         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
43426         * lib/regex_internal.c: Ditto, using this...
43427         (__GNUC_PREREQ): ...new macro.
43428         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
43429         using...
43430         (__GNUC_PREREQ): ...this new macro.
43431
43432         * lib/strstr.h: Include string.h. Define strstr as a macro here.
43433
43434 2005-09-15  Derek Price  <derek@ximbiot.com>
43435             Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
43438         changes, consolidating in...
43439         * lib/regex_internal.h: ...this file.
43440
43441 2005-09-13  Jim Meyering  <jim@meyering.net>
43442
43443         * lib/canon-host.c: Filter through gnu indent and reword comments
43444         slightly.
43445         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
43446
43447 2005-09-13  Derek Price  <derek@ximbiot.com>
43448
43449         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
43450         failure.
43451         Reported by Jim Meyering  <jim@meyering.net>.
43452
43453 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43454
43455         * lib/base64.c: Typo.
43456         (base64_encode): Put b64str in initialized data section.
43457
43458 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
43459
43460         Merge glibc and coreutils changes into gnulib, plus a few
43461         extra fixes.
43462         * lib/md5.c: Use #error rather than a string.
43463         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
43464         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
43465         (__attribute__): Define to empty for non recent-GCC.
43466         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
43467         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
43468         Renamed from their non-__ counterparts, with new macros replacing
43469         them if not _LIBC.  Add __THROW attribute.
43470         (rol): Remove.
43471         (struct md5_ctx): Align buffer if using GCC.
43472         * lib/sha1.h (struct sha1_ctx): Likewise.
43473         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
43474         The old name was backwards.
43475         (NOTSWAP): Remove; not used.
43476         (rol): New macro, moved here from md5.h.
43477         (sha1_process_block): Remove a FIXME that doesn't make sense.
43478
43479 2005-09-12  Derek Price  <derek@ximbiot.com>
43480
43481         Return usable errors from canon-host.
43482         * lib/canon-host.h: New file.
43483         * lib/canon-host.c (canon_host): Wrap...
43484         (canon_host_r): ...this new function, which now relies exclusively on
43485         getaddrinfo.
43486         (ch_strerror): New function.
43487         (last_cherror): New global.
43488         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
43489         interface.
43490         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
43491         void *.
43492         (freeaddrinfo): Free ai->ai_canonname when set.
43493
43494 2005-09-12  Derek Price  <derek@ximbiot.com>
43495
43496         Make canon-host require getaddrinfo.
43497         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
43498         AC_LIBSOURCE canon-host.h.  Call...
43499         (gl_PREREQ_CANON_HOST): ...this new function, which requires
43500         gl_GETADDRINFO.
43501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
43502
43503 2005-09-12  Derek Price  <derek@ximbiot.com>
43504
43505         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
43506         LGPL.
43507         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
43508
43509 2005-09-12  Derek Price  <derek@ximbiot.com>
43510
43511         * lib/gai_strerror.c: Include config.h when available.  Include
43512         getaddrinfo.h before other headers to test interface.
43513         Reported by Larry Jones <lawrence.jones@ugs.com>.
43514
43515 2005-09-12  Derek Price  <derek@ximbiot.com>
43516             Paul Eggert  <eggert@cs.ucla.edu>
43517
43518         * modules/glob (Files): Add glob-libc.h.
43519
43520 2005-09-12  Derek Price  <derek@ximbiot.com>
43521             Paul Eggert  <eggert@cs.ucla.edu>
43522
43523         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
43524         glob_.h, glob-libc.h.
43525         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
43526
43527 2005-09-12  Derek Price  <derek@ximbiot.com>
43528             Paul Eggert  <eggert@cs.ucla.edu>
43529
43530         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
43531         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
43532         protecting things that should be done only in gnulib contexts.
43533         * lib/glob_.h: New file, containing only the glob things needed for
43534         gnulib.
43535         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
43536         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
43537         (glob, globfree, glob_pattern_p): Now defined simply in terms of
43538         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
43539         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
43540         and to respect the namespace rules better.
43541
43542 2005-09-08  Simon Josefsson  <jas@extundo.com>
43543
43544         * modules/socklen: New file.
43545
43546 2005-09-08  Simon Josefsson  <jas@extundo.com>
43547
43548         * m4/socklen.m4: New file.
43549
43550 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43551
43552         * modules/utimens (Files): Add m4/utimbuf.m4, since
43553         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
43554         Reported by Sergey Poznyakoff.
43555
43556 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43557
43558         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
43559         definitions, since that's the preferred style in glibc.
43560         Fix a minor spacing issue, and update copyright notice to match
43561         glibc's.
43562
43563 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43564
43565         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
43566
43567 2005-09-06  Simon Josefsson  <jas@extundo.com>
43568
43569         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
43570         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
43571
43572 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43573
43574         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
43575         warning.
43576
43577 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43578
43579         * config/srclist.txt: Add glibc bug 1302.
43580
43581 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         Change bitset word type from unsigned int to unsigned long int,
43584         as this has better performance on typical 64-bit hosts.
43585         Port bitset code to hosts with unusual word sizes.
43586         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
43587         (build_collating_symbol):
43588         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
43589         argument is a bitset.  This is merely a style issue, but it makes
43590         it clearer that an entire array is expected.
43591         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
43592         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
43593         Port to the case where bitset_word is not the same as unsigned int.
43594         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
43595         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
43596         Likewise.
43597         * lib/regexec.c (check_dst_limits_calc_pos_1,
43598         check_subexp_matching_top):
43599         (build_trtable, group_nodes_into_DFAstates):
43600         Likewise.
43601         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
43602         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
43603         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
43604         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
43605         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
43606         * lib/regcomp.c (optimize_subexps, lower_subexp):
43607         Work even if bitset_word has holes in its bitwise representation.
43608         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
43609         * lib/regexec.c (check_dst_limits_calc_pos_1,
43610         check_subexp_matching_top):
43611         Likewise.
43612         * lib/regex_internal.c (re_string_reconstruct):
43613         Don't assume UCHAR_MAX == 255.
43614         * lib/regex_internal.h (bitset_set_all): Likewise.
43615         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
43616         All uses changed.
43617         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
43618         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
43619         All uses changed.
43620         (BITSET_WORD_MAX): New macro.
43621         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
43622         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
43623         (bitset_empty, bitset_copy):
43624         Prefer sizeof (bitset) to multiplying it out ourselves.
43625         (bitset_not_merge): Remove; unused.
43626         (bitset_contain): Return bool, not unsigned int with one bit on.
43627         All callers changed.
43628         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
43629         alignment than re_node_set; do this by defining a new internal
43630         type struct dests_alloc and using it to allocate memory.
43631
43632 2005-09-05  Bruno Haible  <bruno@clisp.org>
43633
43634         * gnulib-tool (func_import): Fix comparison in handling of symbolic
43635         links.
43636
43637 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
43638
43639         * modules/size_max (Makefile.am): Add size_max.h
43640
43641 2005-09-04  Derek Price  <derek@ximbiot.com>
43642
43643         * gnulib-tool (func_import): Fix reversed $symbolic logic.
43644
43645 2005-09-03  Simon Josefsson  <jas@extundo.com>
43646
43647         * gnulib-tool: Fix typo.
43648
43649 2005-09-03  Simon Josefsson  <jas@extundo.com>
43650
43651         * config/srclist.txt: Add glibc bug 1293.
43652
43653 2005-09-03  Derek Price  <derek@ximbiot.com>
43654
43655         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
43656         From Larry Jones <lawrence.jones@ugs.com>.
43657
43658 2005-09-02  Simon Josefsson  <jas@extundo.com>
43659
43660         * modules/socklen: New file.
43661
43662 2005-09-02  Simon Josefsson  <jas@extundo.com>
43663
43664         * modules/havelib: New module.
43665
43666         * modules/gettext, modules/iconv, modules/lock, modules/readline:
43667         Use havelib.
43668
43669 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
43670
43671         Check for arithmetic overflow when calculating sizes, to prevent
43672         some buffer-overflow issues.  These patches are conservative, in the
43673         sense that when I couldn't determine whether an overflow was possible,
43674         I inserted a run-time check.
43675         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
43676         macros.
43677         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
43678         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
43679         (re_xnrealloc, re_x2nrealloc): New inline functions.
43680         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
43681         parse_bracket_exp):
43682         (build_equiv_class, build_charclass): Check for arithmetic overflow
43683         in size expression calculations.
43684         * lib/regex_internal.c (re_string_realloc_buffers):
43685         (build_wcs_upper_buffer, re_node_set_add_intersect):
43686         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
43687         (re_dfa_add_node, register_state): Likewise.
43688         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
43689         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
43690         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
43691         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
43692
43693 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
43696         m4/ulonglong.m4.  Problem reported by Martin Lambers.
43697
43698 2005-09-02  Bruno Haible  <bruno@clisp.org>
43699
43700         Support for lib vs. lib64 distinction on biarch platforms.
43701         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
43702         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
43703         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
43704
43705 2005-09-02  Bruno Haible  <bruno@clisp.org>
43706
43707         * gnulib-tool (import): In the other first-use case, provide defaults
43708         as well.
43709
43710 2005-09-02  Bruno Haible  <bruno@clisp.org>
43711
43712         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
43713         patches not yet found in the latest gettext release.
43714
43715 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43716
43717         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
43718         to avoid a collision with bits/local_lim.h in glibc.
43719         All uses changed.  Problem reported by Dmitry V. Levin in
43720         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
43721
43722         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
43723         bugs in int versus size_t comparisons.
43724         (re_string_context_at): Fix bug where the code assumed that
43725         Idx is signed.
43726
43727         Use bool where appropriate.
43728         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
43729         All callers changed.
43730         (calc_eclosure_iter): Likewise, for ROOT arg.
43731         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
43732         (build_charclass_op): Likewise, for NON_MATCH arg.
43733         * lib/regex_internal.c (re_string_allocate, re_string_construct):
43734         (re_string_construct_common): Likewise, for ICASE arg.
43735         * lib/regexec.c (re_search_2_stub, re_search_stub):
43736         Likewise, for RET_LEN arg.
43737         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
43738         (set_regs): Likewise, for FL_BACKTRACK arg.
43739         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
43740         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
43741         (calc_eclosure_iter, parse_bracket_exp):
43742         Use bool for internal variables that are booleans.
43743         * lib/regexec.c (re_search_internal, check_matching,
43744         proceed_next_node):
43745         (set_regs, build_sifted_states, sift_states_bkref):
43746         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
43747         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
43748         (find_collation_sequence_value):
43749         Likewise.
43750         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
43751         (re_node_set_compare):
43752         Return bool, not int. All callers changed.
43753         * lib/regexec.c (check_halt_node_context, check_dst_limits):
43754         (build_trtable, check_node_accept): Likewise.
43755         * lib/regex_internal.h: Include stdbool.h.
43756
43757         Fix bugs uncovered when converting to bool.
43758         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
43759         failure instead of charging ahead blindly.
43760         * lib/regex_internal.c (register_state): Likewise.
43761         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
43762         for freeing internal storage.
43763         (group_nodes_into_DFA_states): Use unsigned int, not int, for
43764         bitset pieces used as boolean, to avoid undefined behavior
43765         on hosts that do int overflow checking.
43766
43767 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43768
43769         * config/srclist.txt: Add glibc bugs 1285-1287.
43770
43771 2005-09-01  Jim Meyering  <jim@meyering.net>
43772
43773         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
43774         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
43775         Require gl_STAT_MACROS, too.
43776
43777 2005-09-01  Bruno Haible  <bruno@clisp.org>
43778
43779         * gnulib-tool (import): In the first-use case, provide defaults.
43780
43781 2005-09-01  Bruno Haible  <bruno@clisp.org>
43782
43783         * gnulib-tool (func_import): Remove the .tmp files.
43784
43785 2005-09-01  Bruno Haible  <bruno@clisp.org>
43786
43787         * gnulib-tool (func_import): Fix handling of symbolic links.
43788
43789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43790
43791         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
43792         old glibc regex code mishandles strings longer than 2**31 bytes.
43793         This patch fixes this when the regex code is used in gnulib
43794         (i.e., outside glibc).
43795
43796         This patch should not affect the use of the regex code inside
43797         glibc.  No doubt this problem also needs to be handled for glibc
43798         as well, but the result will be an incompatible change to the
43799         glibc ABI, and the old ABI will have to be supported too.  That
43800         can be the the subject for another patch.
43801
43802         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
43803         governing whether the rest of this patch is active.  By default,
43804         the macro is disabled and the patch has no effect.
43805         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
43806         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
43807         (struct re_pattern_buffer, re_search, re_search_2, re_match):
43808         (re_match_2, re_set_registers): Use the new types.
43809         * lib/regex_internal.h (Idx, re_hashval_t): New types.
43810         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
43811         New macros.
43812         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
43813         (re_string_context_at, bin_tree_t, re_dfastate_t):
43814         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
43815         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
43816         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
43817         (re_string_char_size_at, re_string_wchar_at):
43818         (re_string_elem_size_at):
43819         Use the new types and macros to port to 64-bit hosts.
43820         Use unsigned types for internal values, so that the code
43821         mostly works even for arrays larger than SSIZE_MAX.
43822         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
43823         (search_duplicated_node, calc_eclosure_iter, fetch_number):
43824         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
43825         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
43826         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
43827         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
43828         (calc_inveclosure, parse_dup_op, build_range_exp):
43829         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
43830         (fetch_number, create_token_tree, mark_opt_subexp):
43831         Likewise.
43832         * lib/regex_internal.c (re_string_construct_common,
43833         create_ci_newstate):
43834         (create_cd_newstate, re_string_allocate, re_string_construct):
43835         (re_string_realloc_buffers, build_wcs_upper_buffer):
43836         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
43837         (re_string_reconstruct, re_string_peek_byte_case):
43838         (re_string_fetch_byte_case, re_string_context_at):
43839         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
43840         (re_node_set_init_copy, re_node_set_add_intersect):
43841         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
43842         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
43843         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
43844         (re_acquire_state, re_acquire_state_context, register_state):
43845         Likewise.
43846         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
43847         search_cur_bkref_entry):
43848         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
43849         (re_search_internal, re_search_2_stub, re_search_stub)
43850         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
43851         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
43852         (update_cur_sifted_state, check_dst_limits):
43853         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
43854         (check_subexp_limits, sift_states_bkref, merge_state_array):
43855         (check_subexp_matching_top, get_subexp, get_subexp_sub):
43856         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
43857         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
43858         (expand_bkref_cache, check_node_accept_bytes):
43859         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
43860         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
43861         (acquire_init_state_context, check_halt_node_context):
43862         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
43863         (sift_states_backward, clean_state_log_if_needed):
43864         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
43865         (find_recover_state, transit_state_sb, transit_state_mb):
43866         (transit_state_bkref, build_trtable, match_ctx_clean):
43867         Likewise.
43868         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
43869         to work around an assumption that REG_MISSING is negative.
43870
43871         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
43872         (seek_collating_symbol_entry) [defined _LIBC]:
43873         (lookup_collation_sequence_value) [defined _LIBC]:
43874         (build_range_exp, build_collating_symbol) [defined _LIBC]:
43875         Use prototypes rather than old-style function definitions.
43876         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
43877         (transit_state_sb) [0]:
43878         (find_collation_sequence_value) [defined _LIBC]: Likewise.
43879
43880         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
43881         rm_eo.
43882
43883         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
43884         (optimize_subexps, lower_subexp):
43885         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
43886         since the signed shift might overflow.  Use 1u<<31 instead.
43887         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
43888         Likewise.
43889         * lib/regexec.c (check_dst_limits_calc_pos_1,
43890         check_subexp_matching_top): Likewise.
43891
43892         * lib/regcomp.c (optimize_subexps, lower_subexp):
43893         Use CHAR_BIT rather than 8, for clarity.
43894         * lib/regexec.c (check_dst_limits_calc_pos_1):
43895         (check_subexp_matching_top): Likewise.
43896         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
43897         have to worry about portability issues when shifting it left.
43898         Remove no-longer-needed test for table_size > 0.
43899         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
43900         in a word, as the resulting behavior is undefined.
43901         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
43902         in one case, a <= should have been an <, and in another case the
43903         whole test was missing.
43904         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
43905         the standard name CHAR_BIT.
43906         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
43907         this is not true on one's complement and signed-magnitude hosts.
43908
43909         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
43910         next_last_offset.
43911         (struct re_dfa_t): Remove unused member states_alloc.
43912         * lib/regcomp.c (init_dfa): Don't initialize unused members.
43913
43914 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43915
43916         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
43917         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
43918         and large-file glibc and in 32-bit large-file Solaris.
43919
43920 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43921
43922         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
43923         lengths fit in regoff_t; this isn't true if regoff_t is the same
43924         width as size_t.
43925         * lib/regex.c (re_search_internal): 5th arg is LAST_START
43926         (= START + RANGE) instead of RANGE.  This avoids overflow
43927         problems when regoff_t is the same width as size_t.
43928         All callers changed.
43929         (re_search_2_stub): Check for overflow when adding the
43930         sizes of the two strings.
43931         (re_search_stub): Check for overflow when adding START
43932         to RANGE; if it occurs, substitute the extreme value.
43933
43934 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43935
43936         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
43937
43938 2005-08-31  Jim Meyering  <jim@meyering.net>
43939
43940         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
43941         a pointer-to-const.
43942         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
43943         (register_state): Likewise.
43944         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
43945         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
43946         (group_nodes_into_DFAstates): Likewise.
43947
43948 2005-08-31  Jim Meyering  <jim@meyering.net>
43949
43950         * check-module: Add a FIXME comment.
43951
43952 2005-08-31  Eric Blake  <ebb9@byu.net>
43953
43954         * modules/unistd-safer (Files): Add unistd--.h.
43955         * modules/stdio-safer (Files): Add stdio--.h.
43956
43957 2005-08-31  Derek Price  <derek@ximbiot.com>
43958
43959         * lib/getdelim.c (getdelim): Return EOF on EOF.
43960         Reported by Larry Jones <lawrence.jones@ugs.com>.
43961
43962 2005-08-31  Bruno Haible  <bruno@clisp.org>
43963
43964         Avoid unnecessary diffs in the generated lib/Makefile.am.
43965         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
43966         the generated files.
43967         (func_import): Don't set cmd.
43968
43969 2005-08-31  Bruno Haible  <bruno@clisp.org>
43970
43971         * lib/strstr.c: Include <stddef.h>, for NULL.
43972         * lib/strcasestr.c: Likewise.
43973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43974
43975 2005-08-31  Bruno Haible  <bruno@clisp.org>
43976
43977         * gnulib-tool: New option --macro-prefix.
43978         (func_import): Use macro_prefix.
43979         (import): Handle option --macro-prefix.
43980
43981 2005-08-31  Bruno Haible  <bruno@clisp.org>
43982
43983         * gnulib-tool (import): Rename most ac_* variables to cached_*.
43984         Also use new variables cached_lgpl, cached_libtool.
43985
43986 2005-08-31  Bruno Haible  <bruno@clisp.org>
43987
43988         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
43989         always instantiating them.
43990
43991 2005-08-31  Bruno Haible  <bruno@clisp.org>
43992
43993         * gnulib-tool (func_import): Read the previous cached settings
43994         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
43995         earlier added by gnulib but are now dropped. Warn when a gnulib file
43996         overwrites a non-gnulib file.
43997
43998 2005-08-31  Bruno Haible  <bruno@clisp.org>
43999
44000         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
44001         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
44002         projects that don't keep autogenerated files in CVS. Put into
44003         actioncmd only the specified modules, not the transitive closure.
44004
44005 2005-08-31  Bruno Haible  <bruno@clisp.org>
44006
44007         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
44008         Create directories that shall be filled.
44009         (import): Don't look for gl_* macros in configure.ac. Recurse across
44010         all directories containing a gnulib-cache.m4 files, if meaningful.
44011
44012 2005-08-31  Bruno Haible  <bruno@clisp.org>
44013
44014         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
44015         (import): Set seen_libtool when we see gl_LIBTOOL.
44016
44017 2005-08-31  Bruno Haible  <bruno@clisp.org>
44018
44019         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
44020         declaration macro definitions from generated gnulib.m4.
44021
44022 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
44023
44024         * lib/iconvme.h: Add prototype for iconv_alloc.
44025
44026 2005-08-29  Simon Josefsson  <jas@extundo.com>
44027
44028         * lib/iconvme.c: Fix errno.
44029
44030 2005-08-29  Bruno Haible  <bruno@clisp.org>
44031
44032         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
44033         that it works when the directory contains spaces.
44034
44035 2005-08-29  Bruno Haible  <bruno@clisp.org>
44036
44037         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
44038
44039 2005-08-29  Bruno Haible  <bruno@clisp.org>
44040
44041         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
44042         Emit more advice.
44043
44044 2005-08-29  Bruno Haible  <bruno@clisp.org>
44045         and Stepan Kasal  <kasal@ucw.cz>
44046
44047         * check-module: If more parameters are given, check each of them
44048         separately; add more exceptions, as noted by Jim Meyering.
44049         (check_module): New procedure.
44050         (%exempt_header): Now contains all exceptions.
44051
44052 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
44053
44054         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
44055
44056 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
44057
44058         * lib/iconvme.c: Split iconv_string into iconv_alloc.
44059
44060 2005-08-28  Bruno Haible  <bruno@clisp.org>
44061
44062         * m4/gnulib-tool.m4: New file.
44063
44064 2005-08-27  Jim Meyering  <jim@meyering.net>
44065
44066         * modules/unistd-safer (Files): Add pipe-safer.c.
44067         * modules/fcntl-safer (Files): Add creat-safer.c.
44068
44069 2005-08-27  Jim Meyering  <jim@meyering.net>
44070
44071         * m4/stdlib-safer.m4: New file.  From coreutils.
44072         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
44073         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
44074         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
44075         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
44076         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
44077
44078 2005-08-27  Jim Meyering  <jim@meyering.net>
44079
44080         * lib/fopen-safer.c: Merge minor changes from coreutils.
44081         * lib/dup-safer.c: Likewise.
44082         * lib/fd-safer.c: Likewise.
44083
44084         Merge from coreutils.
44085         * lib/stdio--.h: New file.
44086         * lib/stdlib--.h: New file.
44087         * lib/mkstemp-safer.c: New file.
44088
44089         GNU tar needs these.
44090         * lib/pipe-safer.c: New file.
44091         * lib/creat-safer.c: New file.
44092         * lib/fcntl--.h (creat): Define to creat_safer.
44093         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
44094         * lib/unistd--.h (pipe): Define to pipe_safer.
44095         * lib/unistd-safer.h: Declare pipe_safer.
44096
44097 2005-08-26  Simon Josefsson  <jas@extundo.com>
44098
44099         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
44100         Haible <bruno@clisp.org>.
44101
44102 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
44103
44104         * lib/regex_internal.h: Remove all references to
44105         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
44106         or better.
44107         (bitset_not, bitset_merge, bitset_not_merge):
44108         (bitset_mask, re_string_allocate, re_string_construct):
44109         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
44110         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
44111         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
44112         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
44113         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44114         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44115         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
44116         (re_acquire_state_context):
44117         Remove unnecessary forward decls.
44118         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
44119         Put __attribute at function definition,
44120         now that the function decl has been removed.
44121         * lib/regex_internal.c (re_string_peek_byte_case):
44122         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
44123         Likewise.
44124
44125 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
44126
44127         * m4/regex.m4: Add AC_PREREQ(2.50).
44128         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
44129
44130 2005-08-25  Simon Josefsson  <jas@extundo.com>
44131
44132         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
44133         __fsetlocking.
44134
44135 2005-08-25  Simon Josefsson  <jas@extundo.com>
44136
44137         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
44138         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
44139         GLIBC specific code.
44140
44141 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44142
44143         Make regex safe for g++.  This fixes one real bug (an "err"
44144         that should have been "*err").  g++ problem reported by
44145         Sam Steingold.
44146         * lib/regex_internal.h (re_calloc): New macro, consistent with
44147         re_malloc etc.  All callers of calloc changed to use re_calloc.
44148         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
44149         not int.  All callers changed.
44150         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
44151         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
44152         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
44153         (find_recover_state): Change "err" to "*err"; this fixes what
44154         appears to be a real bug.
44155         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
44156         versus int.
44157
44158 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44159
44160         * modules/regex (Depends-on): Add malloc, since the code
44161         assumes that !malloc(0) means failure.
44162
44163 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44164
44165         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
44166
44167         alloca modernization/simplification for regex.
44168         * lib/regex.c: Remove portability cruft for alloca.  This no longer
44169         needs to be at the start of the file, and can be moved into
44170         regex_internal.h and simplified.
44171         * lib/regex_internal.h: Include <alloca.h>.
44172         (__libc_use_alloca) [!defined _LIBC]: New macro.
44173         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
44174         now works outside glibc.
44175
44176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44177
44178         * config/srclist.txt: Add glibc bugs 1241, 1245.
44179
44180 2005-08-25  Jim Meyering  <jim@meyering.net>
44181
44182         * lib/open-safer.c: Include <config.h>.
44183         Otherwise, we'd lose LARGEFILE support in any file using
44184         e.g. "fcntl--.h"
44185
44186 2005-08-25  Bruno Haible  <bruno@clisp.org>
44187
44188         * m4/minmax.m4: Require autoconf 2.52.
44189         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
44190         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
44191         alternatives of translit over the alphabet.
44192         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
44193
44194 2005-08-24  Simon Josefsson  <jas@extundo.com>
44195
44196         * tests/test-getpass.c: New file.
44197
44198 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44199
44200         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
44201         for GNU regex features.
44202
44203 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
44206         * lib/regex.h (regerror): Likewise.
44207
44208         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
44209         requires this.  (The code never needed it.)
44210
44211         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
44212         All uses of recently-renamed identifiers changed to use the new,
44213         POSIX-compliant names.  The code will build and run just fine
44214         without these changes, but it's better to eat our own dog food
44215         and use the standard-conforming names.
44216
44217         * lib/regex.h: Fix a multitude of POSIX name space violations.
44218         These changes have an effect only for programs that define
44219         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
44220         do not change anything for programs compiled in the normal way.
44221         Also, there is no effect on the ABI.
44222
44223         (_REGEX_SOURCE): New macro.
44224         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
44225         defined and _GNU_SOURCE is not; this fixes a name space violation.
44226
44227         Rename the following macros to obey POSIX requirements.
44228         The old names are still visible as macros if _REGEX_SOURCE is defined.
44229         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
44230         RE_BACKSLASH_ESCAPE_IN_LISTS.
44231         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
44232         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
44233         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
44234         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
44235         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
44236         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
44237         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
44238         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
44239         (REG_INTERVALS): renamed from RE_INTERVALS.
44240         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
44241         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
44242         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
44243         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
44244         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
44245         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
44246         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
44247         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
44248         RE_UNMATCHED_RIGHT_PAREN_ORD.
44249         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
44250         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
44251         (REG_DEBUG): renamed from RE_DEBUG.
44252         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
44253         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
44254         unusual, since we can't clash with the POSIX REG_ICASE.
44255         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
44256         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
44257         (REG_NO_SUB): renamed from RE_NO_SUB.
44258         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
44259         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
44260         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
44261         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
44262         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
44263         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
44264         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
44265         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
44266         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
44267         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
44268         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
44269         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
44270         RE_SYNTAX_POSIX_MINIMAL_BASIC.
44271         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
44272         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
44273         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
44274         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
44275         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
44276         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
44277         (REG_FIXED): Renamed from REGS_FIXED.
44278         (REG_NREGS): Renamed from RE_NREGS.
44279
44280         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
44281         of other REG_* macros, since POSIX says the user is allowed to
44282         #undef these macros selectively.
44283
44284         (reg_errcode_t): Update comment stating what other tables need
44285         to be consistent.
44286
44287         Rename the following enum values to obey POSIX requirements.
44288         The old names are still visible as macros.
44289         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
44290         is not defined, since GNU is supposed to be a superset of POSIX as
44291         much as possible, and since we want reg_errcode_t to be a signed
44292         type for implementation consistency.
44293         (_REG_NOERROR): Renamed from REG_NOERROR.
44294         (_REG_NOMATCH): Renamed from REG_NOMATCH.
44295         (_REG_BADPAT): Renamed from REG_BADPAT.
44296         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
44297         (_REG_ECTYPE): Renamed from REG_ECTYPE.
44298         (_REG_EESCAPE): Renamed from REG_EESCAPE.
44299         (_REG_ESUBREG): Renamed from REG_ESUBREG.
44300         (_REG_EBRACK): Renamed from REG_EBRACK.
44301         (_REG_EPAREN): Renamed from REG_EPAREN.
44302         (_REG_EBRACE): Renamed from REG_EBRACE.
44303         (_REG_BADBR): Renamed from REG_BADBR.
44304         (_REG_ERANGE): Renamed from REG_ERANGE.
44305         (_REG_ESPACE): Renamed from REG_ESPACE.
44306         (_REG_BADRPT): Renamed from REG_BADRPT.
44307         (_REG_EEND): Renamed from REG_EEND.
44308         (_REG_ESIZE): Renamed from REG_ESIZE.
44309         (_REG_ERPAREN): Renamed from REG_ERPAREN.
44310         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
44311         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
44312         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
44313         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
44314
44315         (_REG_RE_NAME, _REG_RM_NAME): New macros.
44316         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
44317         changed.  But support the old name if the new one is not defined
44318         and if _REGEX_SOURCE.
44319
44320         Change the following member names in struct re_pattern_buffer.
44321         The old names are still supported if !_REGEX_SOURCE.
44322         The new names are always supported, regardless of _REGEX_SOURCE.
44323         (re_buffer): Renamed from buffer.
44324         (re_allocated): Renamed from allocated.
44325         (re_used): Renamed from used.
44326         (re_syntax): Renamed from syntax.
44327         (re_fastmap): Renamed from fastmap.
44328         (re_translate): Renamed from translate.
44329         (re_can_be_null): Renamed from can_be_null.
44330         (re_regs_allocated): Renamed from regs_allocated.
44331         (re_fastmap_accurate): Renamed from fastmap_accurate.
44332         (re_no_sub): Renamed from no_sub.
44333         (re_not_bol): Renamed from not_bol.
44334         (re_not_eol): Renamed from not_eol.
44335         (re_newline_anchor): Renamed from newline_anchor.
44336
44337         Change the following member names in struct re_registers.
44338         The old names are still supported if !_REGEX_SOURCE.
44339         The new names are always supported, regardless of _REGEX_SOURCE.
44340         (rm_num_regs): Renamed from num_regs.
44341         (rm_start): Renamed from start.
44342         (rm_end): Renamed from end.
44343
44344         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
44345         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
44346         Prepend __ to parameter names.
44347
44348         Undo yesterday's changes.
44349
44350 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44351
44352         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
44353         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
44354         lib/regex.c.
44355
44356 2005-08-24  Jim Meyering  <jim@meyering.net>
44357
44358         Sync from coreutils.
44359         * m4/fcntl-safer.m4: New file.
44360
44361         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
44362         and object files for this module.
44363
44364 2005-08-24  Jim Meyering  <jim@meyering.net>
44365
44366         Sync from coreutils.
44367         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
44368
44369 2005-08-24  Jim Meyering  <jim@meyering.net>
44370
44371         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
44372         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
44373
44374 2005-08-24  Jim Meyering  <jim@meyering.net>
44375
44376         * modules/fcntl-safer: New module.
44377         * modules/fts (Depends-on): Add fcntl-safer.
44378         * MODULES.html.sh (File descriptor based Input/Output):
44379         Add fcntl-safer.
44380
44381 2005-08-24  Bruno Haible  <bruno@clisp.org>
44382
44383         Support for unit test modules.
44384         * modules/README: Mention tests modules.
44385         * modules/TEMPLATE-TESTS: New file.
44386         * gnulib-tool: New options --extract-tests-module, --with-tests and
44387         --tests-base (unused for the moment).
44388         (testsbase, inctests): New variables.
44389         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
44390         (func_verify_module): Exclude TEMPLATE-TESTS.
44391         (func_verify_nontests_module, func_verify_tests_module): New functions.
44392         (func_get_dependencies): Add implicit dependency for tests modules.
44393         (func_get_tests_module): New function.
44394         (func_modules_transitive_closure): When --with-tests was specified,
44395         include the unit tests as well, unless explicitly avoided.
44396         (func_emit_lib_Makefile_am): Ignore the tests modules here.
44397         (func_emit_tests_Makefile_am): New function.
44398         (func_create_testdir): When --with-tests was specified, emit a
44399         tests/ directory.
44400         * MODULES.html.sh (Future developments): Update.
44401
44402 2005-08-24  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/tls-tests: New file.
44405         * tests/test-tls.c: New file, from GNU gettext.
44406
44407 2005-08-24  Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/lock-tests: New file.
44410         * tests/test-lock.c: New file, from GNU gettext.
44411
44412 2005-08-24  Bruno Haible  <bruno@clisp.org>
44413
44414         * lib/lock.h: Add multiple inclusion guard.
44415         * lib/tls.h: Add multiple inclusion guard.
44416
44417 2005-08-24  Bruno Haible  <bruno@clisp.org>
44418
44419         * gnulib-tool: Add support for the --aux-dir option to
44420         --create-testdir, --create-megatestdir, --test, --megatest.
44421         (func_create_testdir, func_create_megatestdir): Optionally emit a
44422         AC_CONFIG_AUX_DIR directive.
44423         (create-testdir, create-megatestdir, test, megatest): Provide a
44424         default value for $auxdir.
44425
44426 2005-08-24  Bruno Haible  <bruno@clisp.org>
44427
44428         * gnulib-tool (import): Use compound statement instead of subshell
44429         where possible.
44430
44431 2005-08-24  Bruno Haible  <bruno@clisp.org>
44432
44433         * gnulib-tool (import): Change --aux-dir default to "build-aux".
44434
44435 2005-08-24  Bruno Haible  <bruno@clisp.org>
44436
44437         * gnulib-tool (func_version): Update.
44438
44439 2005-08-24  Bruno Haible  <bruno@clisp.org>
44440
44441         * gnulib-tool (func_import, func_create_testdir,
44442         func_create_megatestdir): Quote all autoconf macro arguments.
44443
44444 2005-08-24  Bruno Haible  <bruno@clisp.org>
44445
44446         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
44447         option --force, because --force causes the aclocal.m4 of each
44448         subdirectory to be newer than the corresponding config.h.in.
44449
44450 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44451
44452         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
44453         All contents moved to gl_REGEX.
44454         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
44455         assume that it does.
44456
44457 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44458
44459         * lib/regex.h (REG_NOSYS)
44460         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
44461         Define, since POSIX requires it as of 2001.
44462         (_REG_ENOSYS)
44463         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
44464         New private symbol, used to keep the enum signed in all cases.
44465         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
44466         Youngman in
44467         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
44468
44469         * lib/regex_internal.c (re_string_skip_chars, register_state):
44470         (calc_state_hash):
44471         Remove forward decls; no longer needed now that we use prototypes.
44472         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
44473         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
44474         (clean_state_log_if_needed): Likewise.
44475
44476 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         * config/srclist.txt: Add glibc bugs 1231-1233.
44479
44480 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44481
44482         Fix problems reported by Sam Steingold in
44483         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
44484         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
44485         assumed that reg_errcode_t is a signed type, which is not
44486         necessarily true if _XOPEN_SOURCE is not defined.
44487         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
44488         since some compilers warn about it otherwise.
44489
44490 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44491
44492         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
44493         (init_word_char, create_initial_state, duplicate_node_closure):
44494         (fetch_token, peek_token_bracket, build_range_exp):
44495         (build_collating_symbol): Remove forward decls; no longer needed
44496         now that we use prototypes.
44497
44498         * lib/regcomp.c:
44499         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
44500         (re_compile_fastmap_iter, regcomp, regerror, regfree):
44501         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
44502         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
44503         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
44504         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
44505         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
44506         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
44507         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
44508         (build_range_exp, build_collating_symbol, parse_bracket_exp):
44509         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
44510         (build_charclass, build_charclass_op, fetch_number, create_tree):
44511         (create_token_tree, mark_opt_subexp, duplicate_tree):
44512         Use prototypes rather than old-style definitions.
44513
44514         * lib/regex_internal.c:
44515         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
44516         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
44517         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44518         (re_string_reconstruct, re_string_peek_byte_case):
44519         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
44520         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44521         (re_node_set_init_copy, re_node_set_add_intersect):
44522         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44523         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44524         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44525         (re_acquire_state, re_acquire_state_context, register_state):
44526         (create_ci_newstate, create_cd_newstate, free_state):
44527         Likewise.
44528         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
44529         re_search_2):
44530         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
44531         (re_search_internal, prune_impossible_nodes):
44532         (acquire_init_state_context, check_matching, static):
44533         (check_halt_node_context, check_halt_state_context, proceed_next_node):
44534         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
44535         (update_regs, sift_states_backward, build_sifted_states):
44536         (clean_state_log_if_needed, merge_state_array):
44537         (update_cur_sifted_state, add_epsilon_src_nodes):
44538         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
44539         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
44540         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
44541         (find_recover_state, check_subexp_matching_top, transit_state_mb):
44542         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
44543         (check_arrival, check_arrival_add_next_nodes):
44544         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44545         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
44546         (check_node_accept_bytes, check_node_accept, extend_buffers):
44547         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
44548         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
44549         (sift_ctx_init):
44550         Likewise.
44551
44552         * lib/regex_internal.h:
44553         (re_string_allocate, re_string_construct, re_string_reconstruct):
44554         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
44555         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
44556         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
44557         (re_string_context_at, re_string_peek_byte_case):
44558         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
44559         is defined, since we now use prototypes always.
44560
44561         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
44562         C89 or better.  All uses removed.
44563
44564 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44565
44566         * config/srclist.txt: Add glibc bugs 1220-1227.
44567
44568 2005-08-20  Jim Meyering  <jim@meyering.net>
44569
44570         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
44571         of unused local, dfa.
44572
44573 2005-08-20  Bruno Haible  <bruno@clisp.org>
44574
44575         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
44576
44577 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44578
44579         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
44580         (re_node_set_insert_last, re_dfa_add_node):
44581         Rename local variables to avoid GCC shadowing warnings.
44582
44583 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44584
44585         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
44586         [defined lint]: Suppress bogus uninitialized-variable warnings.
44587
44588         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
44589         and let the caller return REG_ESPACE if out of space.  This
44590         removes an uninitialied-variable warning with GCC 4.0.1, and also
44591         avoids taking the address of a local variable.  All callers
44592         changed.
44593
44594 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44595
44596         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
44597         $LIBCSRC/posix/regexec.c.
44598         Add glibc bug 1217 for regcomp.c.
44599
44600 2005-08-19  Jim Meyering  <jim@meyering.net>
44601
44602         * lib/regexec.c (proceed_next_node): Redo local variables to
44603         avoid GCC shadowing warnings.
44604
44605 2005-08-18  Bruno Haible  <bruno@clisp.org>
44606
44607         * lib/strstr.c (strstr): Fix return value in multibyte case.
44608         * lib/strcasestr.c (strcasestr): Likewise.
44609
44610 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
44613
44614 2005-08-17  Jim Meyering  <jim@meyering.net>
44615
44616         Make the %s format (seconds since the epoch) work for a negative
44617         number and when used with a zero-padded field width, e.g. %015s.
44618
44619         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
44620         label so that it precedes the code to set `digits'.  Otherwise,
44621         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
44622         print `00-22'.  Now, it prints `-0022', as it should.
44623
44624 2005-08-17  Bruno Haible  <bruno@clisp.org>
44625
44626         * modules/strstr (Files): Add m4/mbrtowc.m4.
44627         (Depends-on): Add mbuiter.
44628
44629 2005-08-17  Bruno Haible  <bruno@clisp.org>
44630
44631         * modules/strcasestr: New file.
44632         * MODULES.html.sh (String handling, based on ANSI C 89): Add
44633         strcasestr.
44634
44635 2005-08-17  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
44638
44639 2005-08-17  Bruno Haible  <bruno@clisp.org>
44640
44641         * modules/mbuiter: New file.
44642         * MODULES.html.sh (Extended multibyte and wide character utilities):
44643         Add mbuiter.
44644
44645 2005-08-17  Bruno Haible  <bruno@clisp.org>
44646
44647         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
44648         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
44649
44650 2005-08-17  Bruno Haible  <bruno@clisp.org>
44651
44652         * m4/strcasestr.m4: New file.
44653
44654 2005-08-17  Bruno Haible  <bruno@clisp.org>
44655
44656         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
44657         * lib/strstr.c: Completely rewritten, with multibyte locale support.
44658
44659 2005-08-17  Bruno Haible  <bruno@clisp.org>
44660
44661         * lib/strcasestr.h: New file.
44662         * lib/strcasestr.c: New file.
44663
44664 2005-08-17  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/strcasecmp.c: Use mbuiter.h.
44667
44668 2005-08-17  Bruno Haible  <bruno@clisp.org>
44669
44670         * lib/mbuiter.h: New file.
44671
44672 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44673
44674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
44675         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
44676         and gl_GETOPT are both invoked via different paths (as happens
44677         with GNU tar CVS because it uses both argp and getopt), the former
44678         wins.
44679
44680 2005-08-16  Bruno Haible  <bruno@clisp.org>
44681
44682         * modules/tls: New file.
44683         * MODULES.html.sh (Multithreading): Add tls.
44684
44685 2005-08-16  Bruno Haible  <bruno@clisp.org>
44686
44687         * modules/strnlen1: New file.
44688         * MODULES.html.sh (String handling): Add strnlen1.
44689
44690 2005-08-16  Bruno Haible  <bruno@clisp.org>
44691
44692         * modules/strcase (Files): Add m4/mbrtowc.m4.
44693         (Depends-on): Add strnlen1, mbchar.
44694
44695 2005-08-16  Bruno Haible  <bruno@clisp.org>
44696
44697         * modules/mbiter: New file.
44698         * MODULES.html.sh (Extended multibyte and wide character utilities):
44699         Add mbiter.
44700
44701 2005-08-16  Bruno Haible  <bruno@clisp.org>
44702
44703         * modules/mbfile: New file.
44704         * MODULES.html.sh (Extended multibyte and wide character utilities):
44705         Add mbfile.
44706
44707 2005-08-16  Bruno Haible  <bruno@clisp.org>
44708
44709         * modules/mbchar: New file.
44710         * MODULES.html.sh (Extended multibyte and wide character utilities):
44711         New section.
44712
44713 2005-08-16  Bruno Haible  <bruno@clisp.org>
44714
44715         * m4/tls.m4: New file, from GNU gettext.
44716
44717 2005-08-16  Bruno Haible  <bruno@clisp.org>
44718
44719         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
44720         always.
44721         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
44722
44723 2005-08-16  Bruno Haible  <bruno@clisp.org>
44724
44725         * m4/mbiter.m4: New file.
44726
44727 2005-08-16  Bruno Haible  <bruno@clisp.org>
44728
44729         * m4/mbfile.m4: New file.
44730
44731 2005-08-16  Bruno Haible  <bruno@clisp.org>
44732
44733         * m4/mbchar.m4: New file.
44734
44735 2005-08-16  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/tls.h: New file, from GNU gettext.
44738         * lib/tls.c: New file, from GNU gettext.
44739
44740 2005-08-16  Bruno Haible  <bruno@clisp.org>
44741
44742         * lib/strnlen1.h: New file.
44743         * lib/strnlen1.c: New file.
44744
44745 2005-08-16  Bruno Haible  <bruno@clisp.org>
44746
44747         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
44748         (mbi_init): Update.
44749         (mbi_avail, mbi_advance): Let the iteration end before the terminating
44750         NUL byte, not after it.
44751
44752 2005-08-16  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/strcase.h (strcasecmp): Add note in comments.
44755         * lib/strncasecmp.c: Use code from strcasecmp.c.
44756         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
44757         (strcasecmp): Work correctly in multibyte locales.
44758
44759 2005-08-16  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/mbiter.h: New file.
44762
44763 2005-08-16  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/mbfile.h: New file.
44766
44767 2005-08-16  Bruno Haible  <bruno@clisp.org>
44768
44769         * lib/mbchar.h: New file.
44770         * lib/mbchar.c: New file.
44771
44772 2005-08-16  Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
44775         the valid ones. Makes the comparison operations transitive:
44776         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
44777         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
44778
44779 2005-08-15  Simon Josefsson  <jas@extundo.com>
44780
44781         * modules/ssize_t (License): Change to 'unlimited'.
44782
44783         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
44784
44785 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44786
44787         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
44788         Add comments for each pending glibc patch.
44789
44790 2005-08-15  Bruno Haible  <bruno@clisp.org>
44791
44792         * lib/regex.h (__restrict_arr): Don't define to __restrict if
44793         __cplusplus is defined.
44794
44795 2005-08-14  Jim Meyering  <jim@meyering.net>
44796
44797         Sync from coreutils.
44798
44799         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
44800         Use the hash-table-based cycle-detection code not just when
44801         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
44802         Reported by James Youngman in
44803         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
44804         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
44805         FTS_TIGHT_CYCLE_CHECK.
44806         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
44807         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
44808         once again.
44809         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
44810         * lib/fts.c (fd_safer): Remove decl.
44811         Include fcntl--.h rather than unistd-safer.h
44812         (fts_safe_changedir): Don't call fd_safer; no longer needed
44813         now that we include fcntl--.h.
44814
44815 2005-08-12  Simon Josefsson  <jas@extundo.com>
44816
44817         * modules/getndelim2: Use ssize_t module.
44818         * modules/getnline: Likewise.
44819         * modules/safe-read: Likewise.
44820         * modules/xreadlink: Likewise.
44821
44822         * modules/ssize_t: New file.
44823
44824 2005-08-12  Simon Josefsson  <jas@extundo.com>
44825
44826         * m4/readline.m4: Look for termcap, curses or ncurses if required.
44827
44828 2005-08-12  Simon Josefsson  <jas@extundo.com>
44829
44830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44831         ssize_t.
44832
44833 2005-08-12  Simon Josefsson  <jas@extundo.com>
44834
44835         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
44836         readline, getdelim and check_version.
44837         (Support for systems lacking ISO C 99: Sizes of integer types):
44838         Add size_max.
44839
44840 2005-08-12  Bruno Haible  <bruno@clisp.org>
44841
44842         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
44843
44844 2005-08-11  Simon Josefsson  <jas@extundo.com>
44845
44846         * modules/readline: New file.
44847
44848         * modules/strnlen (Files): Add strnlen.h.
44849
44850 2005-08-11  Simon Josefsson  <jas@extundo.com>
44851
44852         * m4/readline.m4: New file.
44853
44854 2005-08-11  Simon Josefsson  <jas@extundo.com>
44855
44856         * lib/readline.h, readline.c: New file.
44857
44858 2005-08-11  Simon Josefsson  <jas@extundo.com>
44859
44860         * doc/gnulib.texi (Initial import, Finishing touches): Mention
44861         gl_AVOID.
44862
44863 2005-08-11  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/strnlen.h (strnlen): Change parameter name to match comment.
44866
44867 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
44868
44869         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
44870
44871 2005-08-10  Simon Josefsson  <jas@extundo.com>
44872
44873         * tests/test-iconvme.c: New file.
44874
44875 2005-08-10  Simon Josefsson  <jas@extundo.com>
44876
44877         * m4/strnlen.m4: New file.
44878
44879         * m4/strndup.m4: Don't check for strnlen declaration, done in
44880         strnlen.m4.
44881
44882 2005-08-10  Simon Josefsson  <jas@extundo.com>
44883
44884         * lib/strndup.c: Use strnlen.h.
44885
44886         * lib/strnlen.h: New file.
44887
44888 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44889
44890         * README: Typos.
44891
44892 2005-08-02  Simon Josefsson  <jas@extundo.com>
44893
44894         * modules/readline: New file.
44895
44896 2005-08-02  Simon Josefsson  <jas@extundo.com>
44897
44898         * modules/getdelim: New file.
44899
44900         * modules/getline: Rewrite, don't use getndelim2.
44901
44902 2005-08-02  Simon Josefsson  <jas@extundo.com>
44903
44904         * m4/getline.m4: Separate out getdelim stuff into separate module.
44905
44906         * m4/getdelim.m4: New file.
44907
44908 2005-08-02  Simon Josefsson  <jas@extundo.com>
44909
44910         * lib/getline.h, getline.c: Rewrite.
44911
44912         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
44913
44914 2005-07-31  Bruno Haible  <bruno@clisp.org>
44915
44916         * lib/lock.h (gl_lock_initializer): New macro.
44917         (gl_lock_define_initialized): Use it.
44918         (gl_rwlock_initializer): New macro.
44919         (gl_rwlock_define_initialized): Use it.
44920         (gl_recursive_lock_initializer): New macro.
44921         (gl_recursive_lock_define_initialized): Use it.
44922
44923 2005-07-30  Karl Berry  <karl@gnu.org>
44924
44925         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
44926         Report from Ben Pfaff, regarding getopt.
44927
44928 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
44929
44930         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
44931         normal way.
44932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
44933         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
44934         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
44935         (gl_GETOPT): Use the new macros.  Most of the implementation
44936         is moved to the new macros.  This is for programs like Emacs
44937         that don't want all the functionality of gl_GETOPT.
44938
44939 2005-07-26  Bruno Haible  <bruno@clisp.org>
44940
44941         * m4/lock.m4: Update from GNU gettext.
44942
44943 2005-07-26  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/lock.h: Update from GNU gettext.
44946         * lib/lock.c: Update from GNU gettext.
44947
44948 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
44949
44950         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
44951         obsolescent AC_TRY_RUN.  Include the default includes files, for
44952         'exit'.
44953
44954 2005-07-24  Bruno Haible  <bruno@clisp.org>
44955
44956         * modules/visibility: New file.
44957         * MODULES.html.sh (Misc): Add visibility.
44958
44959 2005-07-24  Bruno Haible  <bruno@clisp.org>
44960
44961         * m4/visibility.m4: New file.
44962
44963 2005-07-24  Bruno Haible  <bruno@clisp.org>
44964
44965         * doc/visibility.texi: New file.
44966
44967 2005-07-22  Bruno Haible  <bruno@clisp.org>
44968
44969         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
44970         $(ALLOCA_H), redundant through BUILT_SOURCES.
44971         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
44972         redundant through BUILT_SOURCES.
44973         * modules/byteswap (Makefile.am): Remove explicit dependency on
44974         $(BYTESWAP_H), redundant through BUILT_SOURCES.
44975         * modules/fnmatch (Makefile.am): Remove explicit dependency on
44976         $(FNMATCH_H), redundant through BUILT_SOURCES.
44977         * modules/getopt (Makefile.am): Remove explicit dependency on
44978         $(GETOPT_H), redundant through BUILT_SOURCES.
44979         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
44980         redundant through BUILT_SOURCES.
44981         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
44982         redundant through BUILT_SOURCES.
44983         * modules/stdbool (Makefile.am): Remove explicit dependency on
44984         $(STDBOOL_H), redundant through BUILT_SOURCES.
44985         * modules/stdint (Makefile.am): Remove explicit dependency on
44986         $(STDINT_H), redundant through BUILT_SOURCES.
44987         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
44988         Remove explicit dependency on $(SYSEXITS_H).
44989         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
44990
44991 2005-07-18  Simon Josefsson  <jas@extundo.com>
44992
44993         * lib/check-version.c (check_version): Accept identical versions too.
44994
44995 2005-07-18  Bruno Haible  <bruno@clisp.org>
44996
44997         * modules/lock: New file.
44998         * MODULES.html.sh (Multithreading): New section.
44999
45000 2005-07-18  Bruno Haible  <bruno@clisp.org>
45001
45002         * m4/lock.m4: New file, from GNU gettext.
45003
45004 2005-07-18  Bruno Haible  <bruno@clisp.org>
45005
45006         * lib/lock.h: New file, from GNU gettext.
45007         * lib/lock.c: New file, from GNU gettext.
45008
45009 2005-07-18  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/lock.h (gl_once_t): New type.
45012         (gl_once_define, gl_once): New macros.
45013         * lib/lock.c (fresh_once): New variable.
45014         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
45015         functions.
45016
45017 2005-07-16  Simon Josefsson  <jas@extundo.com>
45018
45019         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
45020         workaround, suggested by Bruno.
45021
45022 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
45023
45024         * modules/xalloc (Depends-on): Add xalloc-die.
45025         * modules/xvasprintf (Depends-on): Add xalloc-die.
45026
45027 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
45030         with a minor change.
45031
45032 2005-07-15  Bruno Haible  <bruno@clisp.org>
45033
45034         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
45035         When using lib/poll.c, define poll as rpl_poll.
45036
45037 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
45038
45039         * modules/argp (Depends-on): Remove unlocked-io.
45040
45041 2005-07-14  Derek Price  <derek@ximbiot.com>
45042
45043         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
45044         for glob symlink bug.
45045
45046 2005-07-14  Bruno Haible  <bruno@clisp.org>
45047
45048         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
45049         Instead, test for *_unlocked function declarations directly.
45050
45051 2005-07-11  Simon Josefsson  <jas@extundo.com>
45052
45053         * modules/size_max: New file.
45054
45055         * modules/xsize: Depend on size_max module for size_max.m4.
45056
45057 2005-07-11  Simon Josefsson  <jas@extundo.com>
45058
45059         * lib/size_max.h: New file.
45060
45061 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
45062
45063         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
45064         copyright symbol and the year.
45065         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
45066         (version_etc_va): Use parameterized copyright notice.
45067         Reword to conform to the current GNU coding standards.
45068
45069 2005-07-11  Karl Berry  <karl@gnu.org>
45070
45071         * doc/gnulib.texi (Quoting): new node.
45072         (Initial import): more info, from Patrice.
45073
45074 2005-07-11  Bruno Haible  <bruno@clisp.org>
45075
45076         * gnulib-tool (func_usage): Document option --avoid.
45077         (Command line options): Handle --avoid.
45078         (func_acceptable): New function.
45079         (func_modules_transitive_closure): Use it.
45080
45081 2005-07-11  Bruno Haible  <bruno@clisp.org>
45082
45083         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
45084         Reported by Jim Meyering.
45085
45086 2005-07-10  Bruno Haible  <bruno@clisp.org>
45087
45088         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
45089         Needed when size_t is smaller than 'unsigned int'.
45090         Reported by Paul Eggert.
45091
45092 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45093
45094         * modules/argp (Depends-on): Add unlocked-io
45095
45096 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
45097
45098         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
45099         block of defines.
45100
45101 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * config/srclist.txt: Comment out regcomp.c, since we have a porting
45104         fix now.
45105
45106 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
45107         and Paul Eggert  <eggert@cs.ucla.edu>
45108
45109         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
45110         in wint_t, not wchar_t.  Remove now-unnecessary cast.
45111
45112 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45113
45114         * modules/regex (Files): Add lib/regex_internal.c,
45115         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
45116         (Depends-on): Add extensions.
45117         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
45118
45119 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45120
45121         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
45122         pathconf.
45123         * m4/same.m4 (gl_SAME): Likewise.
45124         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
45125
45126         * m4/regex.m4: Adjust to new libc regex implementation.
45127         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
45128         all the .c and .h parts of (the new) regex.
45129         Quote the m4 stuff better.
45130         Check for RE_ICASE bug of old gnulib.
45131         Check for REG_STARTEND of recent libc.
45132         Rename local variables from jm_* to gl_*.
45133         Quote operand of "test -f".
45134         Say "recent enough" version of libc, not "version 2".
45135         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
45136         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
45137         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
45138         Remove check for btowc, isascii.
45139         Require AM_LANGINFO_CODESET.
45140
45141 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45142
45143         * lib/regex.c, regex.h: Sync from libc.
45144         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
45145         * lib/regexec.c:
45146         New files, synced from libc, except that regex_internal.h
45147         currently has a small porting fix.
45148
45149 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
45150
45151         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
45152         regex_internal.c, regexec.c.
45153         Add regex_internal.h too, but as a comment, since the libc version
45154         is currently broken in gnulib mode.
45155
45156 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45157
45158         Support programs like Emacs that use gnulib but not gettext.
45159         * MODULES.html.sh (Internationalization functions): Add gettext-h.
45160         * modules/gettext-h: New file.
45161         * modules/gettext (Files): Remove lib/gettext.h.
45162         (Depends-on): Add gettext-h.
45163         (Makefile.am): Remove lib_SOURCES.
45164         * modules/argmatch, modules/c-stack, modules/closeout:
45165         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
45166         * modules/execute, modules/file-type, modules/getaddrinfo:
45167         * modules/getopt, modules/human, modules/javacomp:
45168         * modules/javaexec, modules/mkdir-p, modules/obstack:
45169         * modules/openat, modules/pagealign_alloc, modules/pipe:
45170         * modules/quotearg, modules/regex, modules/rpmatch:
45171         * modules/unicodeio, modules/userspec, modules/version-etc:
45172         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
45173         * modules/xsetenv:
45174         Depend on gettext-h, not gettext.
45175
45176 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45177
45178         * gnulib-tool (func_import): Add support for 'public domain' license.
45179         * modules/alloca, modules/atexit, modules/memmove:
45180         Now public domain, not GPL.
45181         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
45182         * modules/realloc, modules/strerror, modules/strtod:
45183         Now LGPL, not GPL.
45184
45185 2005-07-05  Bruno Haible  <bruno@clisp.org>
45186
45187         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
45188         autoconf CVS. Needed for mingw.
45189
45190 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         Remove the dependency of the strftime module on the tzset module.
45193         * modules/strftime (Depends-on): Remove dependency on tzset.
45194
45195 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45196
45197         Remove the dependency of the strftime module on the tzset module.
45198         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
45199         gl_FUNC_TZSET_CLOBBER.
45200
45201 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45202
45203         Remove the dependency of the strftime module on the tzset module.
45204         * lib/strftime.c (my_strftime)
45205         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
45206         Copy the input structure, to work around some of the bug with
45207         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
45208         Solaris releases, you should also use the tzset module, but we won't
45209         require it as a dependency any more since we don't want LGPLed code
45210         to depend on GPLed code.
45211
45212 2005-07-02  Jim Meyering  <jim@meyering.net>
45213
45214         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
45215         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
45216         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
45217         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
45218
45219 2005-07-02  Jim Meyering  <jim@meyering.net>
45220
45221         * lib/backupfile.c (backup_args): Change a `0' to NULL.
45222
45223 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45224
45225         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
45226         declares only 'struct timespec;' (!).
45227
45228 2005-07-01  Jim Meyering  <jim@meyering.net>
45229
45230         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
45231         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
45232         * lib/save-cwd.c, tempname.c:
45233         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45234         and don't include <sys/file.h>).
45235
45236 2005-06-29  Jim Meyering  <jim@meyering.net>
45237
45238         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
45239         type name.  Use the variable name instead.
45240         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
45241         Likewise.
45242
45243 2005-06-28  Simon Josefsson  <jas@extundo.com>
45244
45245         * modules/check-version (Files): Add check-version.m4.
45246
45247 2005-06-28  Simon Josefsson  <jas@extundo.com>
45248
45249         * m4/check-version.m4: New file, suggested by Jim Meyering
45250         <jim@meyering.net>.
45251
45252 2005-06-28  Simon Josefsson  <jas@extundo.com>
45253
45254         * lib/check-version.h, lib/check-version.c: New files.
45255
45256 2005-06-28  Simon Josefsson  <jas@extundo.com>
45257
45258         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
45259         collision with global variable.  Better indentation.  Don't
45260         increment buffer pointer beyond buffer end.  Based on comments
45261         from Paul Eggert <eggert@cs.ucla.edu>.
45262
45263         * lib/base64.h: Indent.
45264
45265 2005-06-28  Simon Josefsson  <jas@extundo.com>
45266
45267         * doc/gnulib.texi (Library version handling): New section.
45268
45269 2005-06-28  Jim Meyering  <jim@meyering.net>
45270
45271         * check-module (find_included_lib_files): Hard-code another
45272         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
45273         but modules/fts-lgpl (correctly) does not list those files.
45274
45275         * modules/canonicalize (Files): Add lib/pathmax.h.
45276
45277 2005-06-25  Simon Josefsson  <jas@extundo.com>
45278
45279         * modules/check-version: New file.
45280
45281 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
45284         initializer of struct addrinfo, as an indication that we don't
45285         care how many members the structure has.
45286
45287 2005-06-24  Derek Price  <derek@ximbiot.com>
45288         and Bruno Haible  <bruno@clisp.org>
45289
45290         Remove stat module & update lstat.
45291         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
45292         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45293         * m4/stat.m4: Remove this file.
45294
45295 2005-06-24  Derek Price  <derek@ximbiot.com>
45296         and Bruno Haible  <bruno@clisp.org>
45297
45298         Remove stat module & update lstat.
45299         * lib/stat.c: Remove this file...
45300         (slash_aware_lstat): ...moving this content and its support...
45301         * lib/lstat.c (rpl_lstat): ...into here.
45302         * lib/lstat.h: New file.
45303
45304 2005-06-24  Derek Price  <derek@ximbiot.com>
45305         and Bruno Haible  <bruno@clisp.org>
45306
45307         Remove stat module & update lstat.
45308         * config/srclist.txt (libc sources): Remove stat.
45309
45310 2005-06-24  Derek Price  <derek@ximbiot.com>
45311         and Bruno Haible  <bruno@clisp.org>
45312
45313         Remove stat module & update lstat.
45314         * MODULES.html.sh (stat): Remove.
45315         * MODULES.html: Regenerated.
45316         * modules/lstat (Description): Correct function name.
45317         (Files): Add "lstat.h".
45318         (Depends-on): Remove stat, add xalloc, stat-macros.
45319         * modules/stat: Remove this file.
45320         (Include): Add "lstat.h", remove <sys/stat.h>.
45321
45322 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
45323
45324         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
45325         (ranged_convert): Don't save conversion in a temporary struct.
45326         This causes a warning with GCC 4.0.0, and anyway in the typical
45327         case it's not worth the extra 100 bytes or so of code.
45328         (ranged_convert, __mktime_internal): When calling a function via a
45329         pointer P, use P () rather than (*P) (), as we now assume C89 or
45330         better.
45331
45332 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
45335         "who -r" failed to give output.  Problem reported by Tim Waugh.
45336
45337         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
45338         (xcalloc): Use it to avoid needless tests.
45339         Problem reported by Jim Meyering.
45340
45341 2005-06-20  Derek Price  <derek@ximbiot.com>
45342
45343         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
45344         unnecessary for Autoconfs > 2.59c.
45345
45346 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45347
45348         * lib/argp.h (__option_is_short): Check upper limit of
45349         __key. Isprint() requires its argument to have the value
45350         of an unsigned char or EOF.
45351
45352 2005-06-16  Jim Meyering  <jim@meyering.net>
45353
45354         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
45355         when either N or S is zero.
45356
45357 2005-06-16  Derek Price  <derek@ximbiot.com>
45358
45359         * m4/bison.m4: Declare YACC & YFLAGS precious.
45360
45361 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
45362
45363         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
45364         multibyte string or pattern, fall back on unibyte matching.
45365         Problem reported by James Youngman.
45366
45367 2005-06-08  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/csharpcomp: New file.
45370         * MODULES.html.sh (C#): Add csharpcomp.
45371
45372 2005-06-08  Bruno Haible  <bruno@clisp.org>
45373
45374         * m4/csharpcomp.m4: New file, from GNU gettext.
45375
45376 2005-06-08  Bruno Haible  <bruno@clisp.org>
45377
45378         * lib/csharpcomp.h: New file, from GNU gettext.
45379         * lib/csharpcomp.c: New file, from GNU gettext.
45380         * lib/csharpcomp.sh.in: New file, from GNU gettext.
45381
45382 2005-06-08  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
45385         warning on mingw.
45386
45387 2005-06-07  Derek Price  <derek@ximbiot.com>
45388
45389         Sync from CVS.
45390         * lib/glob_.h: Indent nested #ifdef.
45391
45392 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
45393
45394         Sync from coreutils.
45395         Use "file name" when talking about file names, instead of "filename"
45396         or "path", as per the GNU coding standards.
45397         * lib/mkdir-p.c: Renamed from makepath.c.
45398         (make_dir_parents): Renamed from make_path.  All callers changed.
45399         * lib/mkdir-p.h: Likewise.  All includers changed.
45400         * lib/filenamecat.c: Renamed from path-concat.c.
45401         (file_name_concat): Renamed from path_concat.  All callers changed.
45402         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
45403         * lib/filenamecat.h: Likewise.  All includers changed.
45404         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
45405         in comments or local variable names.
45406         * lib/basename.c: Likewise.
45407         * lib/canonicalize.c, canonicalize.h: Likewise.
45408         * lib/dirname.c, dirname.h: Likewise.
45409         * lib/euidaccess.c: Likewise.
45410         * lib/exclude.c: Likewise
45411         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
45412         * lib/fsusage.c, fsuage.h: Likewise.
45413         * lib/fts.c, fts_.h: Likewise.
45414         * lib/getcwd.c: Likewise.
45415         * lib/getloadavg.c: Likewise.
45416         * lib/mkstemp.c: Likewise.
45417         * lib/mountlist.c, mountlist.h: Likewise.
45418         * lib/openat.c, openat.h: Likewise.
45419         * lib/readlink-stub.c: Likewise.
45420         * lib/readutmp.c, readutmp.h: Likewise.
45421         * lib/rename.c: Likewise.
45422         * lib/rmdir.c: Likewise.
45423         * lib/same.c: Likewise.
45424         * lib/savedir.c: Likewise.
45425         * lib/stripslash.c: Likewise.
45426         * lib/tempname.c: Likewise.
45427         * lib/xreadlink.c: Likewise.
45428         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
45429         All uses changed.
45430         * lib/exclude.h: Likewise.
45431
45432         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
45433         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45434         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
45435         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45436         * lib/pathmax.h: Include <limits.h> unconditionally, since other
45437         files have been getting away with it for years (MORE/BSD 4.3
45438         is extinct now).
45439         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
45440         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45441
45442         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
45443         Define to 256, not 255, as per modern POSIX.
45444
45445 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
45446
45447         Sync from coreutils.
45448         Use "file name" when talking about file names, instead of "filename"
45449         or "path", as per the GNU coding standards.
45450         * MODULES.html.sh: mkdir-p renamed from makepath.
45451         filenamecat renamed from path-concat.
45452         * modules/filenamecat: Renamed from modules/path-concat.
45453         (Files): filenamecat.h and filenamecat.c renamed from
45454         path-concat.h and path-concat.c.
45455         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
45456         (Include): filenamecat.h, not path-concat.h.
45457         * modules/mkdir-p: Renamed from modules/makepath.
45458         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
45459         makepath.c.
45460         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
45461         (Include): mkdir-p.h, not makepath.h.
45462
45463 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
45464
45465         Sync from coreutils.
45466         * m4/mkdir-p.m4: Renamed from makepath.m4.
45467         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
45468         Rename files from makepath.c to mkdir-p.c, and from
45469         makepath.h to mkdir-p.h.
45470         * m4/filenamecat.m4: Renamed from path-concat.m4.
45471         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
45472         Rename files from path-concat.c to filenamecat.c,
45473         and from path-concat.h to filenamecat.h.
45474         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
45475         "file name" in local variables or comments.
45476         * m4/rename.m4: Likewise.
45477
45478 2005-06-01  Bruno Haible  <bruno@clisp.org>
45479
45480         * modules/csharpexec: New file.
45481         * MODULES.html.sh (C#): New section.
45482
45483 2005-06-01  Bruno Haible  <bruno@clisp.org>
45484
45485         * m4/csharp.m4: New file, from GNU gettext.
45486         * m4/csharpexec.m4: New file, from GNU gettext.
45487
45488 2005-06-01  Bruno Haible  <bruno@clisp.org>
45489
45490         * lib/csharpexec.h: New file, from GNU gettext.
45491         * lib/csharpexec.c: New file, from GNU gettext.
45492         * lib/csharpexec.sh.in: New file, from GNU gettext.
45493
45494 2005-05-31  Derek Price  <derek@ximbiot.com>
45495             Paul Eggert  <eggert@cs.ucla.edu>
45496
45497         Sync from cvs.
45498         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
45499
45500 2005-05-31  Derek Price  <derek@ximbiot.com>
45501             Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         Sync from cvs.
45504         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
45505
45506 2005-05-29  Derek Price  <derek@ximbiot.com>
45507
45508         * config/srclist.txt (glob_.h, glob.c): Add these files.
45509
45510 2005-05-29  Derek Price  <derek@ximbiot.com>
45511
45512         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
45513         * modules/glob: New file.
45514         * modules/getlogin_r: Add link to POSIX spec in description.
45515
45516 2005-05-29  Derek Price  <derek@ximbiot.com>
45517             Paul Eggert  <eggert@cs.ucla.edu>
45518
45519         * m4/glob.m4: New file.
45520
45521 2005-05-29  Derek Price  <derek@ximbiot.com>
45522             Paul Eggert  <eggert@cs.ucla.edu>
45523
45524         * lib/glob_.h, lib/glob.c: New files.
45525
45526 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
45527
45528         * modules/fts (Files): Remove m4/inttypes-pri.m4.
45529         * modules/fts-lgpl (Depends-on): Remove gettext.
45530
45531 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
45532
45533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
45534         and don't require gt_INTTYPES_PRI.
45535
45536 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
45539
45540         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
45541         the configuration hassle isn't worth it.
45542         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
45543         (LONGEST_MODIFIER, PRIuMAX): Remove.
45544
45545 2005-05-27  Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/getlogin_r.h: Remove second include of <stddef.h>.
45548
45549 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
45550
45551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
45552         _POSIX_PTHREAD_SEMANTICS for Solaris.
45553
45554 2005-05-25  Derek Price  <derek@ximbiot.com>
45555
45556         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
45557
45558 2005-05-25  Derek Price  <derek@ximbiot.com>
45559             Paul Eggert  <eggert@cs.ucla.edu>
45560
45561         * modules/getlogin_r, m4/getlogin_r.m4: New files.
45562         * lib/getlogin_r.c, getlogin_r.h: New files.
45563
45564 2005-05-25  Bruno Haible  <bruno@clisp.org>
45565             Derek Price  <derek@ximbiot.com>
45566
45567         * lib/getlogin_r.h: Simplify API documentation.
45568
45569 2005-05-23  Derek Price  <derek@ximbiot.com>
45570
45571         * modules/minmax (Files): Add m4/minmax.m4.
45572         (configure.ac): Add gl_MINMAX.
45573
45574 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
45577         so that unistd-safer.h (GPL'ed code) need not be included.
45578
45579 2005-05-22  Bruno Haible  <bruno@clisp.org>
45580
45581         * m4/minmax.m4: New file.
45582         Based on a patch by Derek Price <derek@ximbiot.com>.
45583
45584 2005-05-22  Bruno Haible  <bruno@clisp.org>
45585
45586         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
45587         (INT64_MIN): Fix definition.
45588         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
45589
45590         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
45591         NEED_SIGNED_INT_TYPES.
45592
45593         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
45594         HAVE_SYSTEM_INTTYPES.
45595
45596 2005-05-22  Bruno Haible  <bruno@clisp.org>
45597
45598         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
45599         Also include <sys/param.h> if it defines MIN, MAX.
45600         Based on a patch by Derek Price <derek@ximbiot.com>.
45601
45602 2005-05-21  Jim Meyering  <jim@meyering.net>
45603
45604         * modules/fts (Files): Add m4/inttypes-pri.m4.
45605         (Depends-on): Add lstat and remove gettext.  Alphabetize.
45606
45607 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
45608
45609         New fts module.
45610         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
45611         (setup_dir, free_dir): New functions.
45612         (enter_dir, leave_dir): Define trivial
45613         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
45614         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
45615         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
45616         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
45617         Move to fts-cycle.c.
45618         (fts_open): Use setup_dir.
45619         (fts_close): Use free_dir.
45620         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
45621         This adds a label and some gotos, but the alternatives were messier.
45622         Check for memory allocation failure when entering a dir.
45623         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
45624         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
45625         (FTS): New member fts_cycle, that is a union that contains the
45626         old active_dir_ht and cycle_state.  All uses changed to mention
45627         fts_cycle.ht and fts_cycle.state.
45628         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
45629         fts.c, with the following changes:
45630         (setup_dir, free_dir): New functions.
45631         (enter_dir): Now returns bool.  Return true if successful, false
45632         if memory exhausted.  All callers changed.
45633         Do not bother partly cleaning up on
45634         memory allocation failure; that is free_dir's job.
45635         However, free ad if hash_insert fails, to avoid memory leak.
45636         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
45637         fts->fts_options to see which union member to use.
45638
45639 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
45640
45641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
45642         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
45643
45644 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
45645
45646         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
45647
45648 2005-05-20  Jim Meyering  <jim@meyering.net>
45649
45650         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
45651         Now a macro, to pacify GCC.
45652
45653 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
45654
45655         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
45656         of -1.
45657
45658 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
45659
45660         * lib/chown.c (rpl_chown): Return -1 on failure.
45661
45662 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
45663
45664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
45665         Don't check for stddef.h.
45666         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
45667         don't use its results.
45668         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
45669         since we include them unconditionally.  Don't require
45670         AM_STDBOOL_H, since stdbool is a prerequisite.
45671         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
45672         since we assume C89 or better.
45673         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
45674         as we don't use their results.
45675         Don't check for fchdir, memmove, memset, strrchr, as we use
45676         them unconditionally.
45677         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
45678         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
45679
45680 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
45681
45682         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
45683         Include <stddef.h> unconditionally, since we assume C89 now.
45684         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
45685         * lib/fts.c: Include fts_.h first, to check interface.
45686         Do not include intprops.h; no longer needed.
45687         Include cycle-check.h and hash.h, since fts_.h no longer does.
45688         Remove unnecessary casts of closedir to void.
45689         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
45690         decide whether to decrement nlinks.
45691         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
45692         (FTS): Use struct hash_table * instead of Hash_table, so that
45693         we no longer need to include hash.h here.
45694
45695 2005-05-18  Jim Meyering  <jim@meyering.net>
45696
45697         * modules/dirfd (License): Change to LGPL.  Most of the code
45698         is already in the public domain.
45699
45700 2005-05-18  Jim Meyering  <jim@meyering.net>
45701
45702         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
45703         Reported by Yoann Vandoorselaere.
45704
45705 2005-05-17  Jim Meyering  <jim@meyering.net>
45706
45707         * m4/fts.m4: New file, from coreutils.
45708
45709 2005-05-17  Jim Meyering  <jim@meyering.net>
45710
45711         * lib/fts.c, lib/fts_.h: New files, from coreutils.
45712
45713 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45714
45715         Sync from coreutils.
45716         * m4/unlinkdir.m4: New file.
45717
45718 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         Sync from coreutils.
45721         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
45722         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
45723         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
45724         White space changes only.
45725         * lib/makepath.c (make_path): Port to hosts where leading "//" is
45726         special.
45727         * lib/yesno.c: Include getline.h, not ctype.h.
45728         (yesno): Don't remove leading white space; POSIX doesn't allow it.
45729         Use getline to remove arbitrary restriction on response length.
45730
45731 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45732
45733         * config/srclist-update: Spell out "Street" in FSF postal
45734         mail address; this is the style the FSF seems to prefer.
45735
45736         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
45737         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
45738         this updates FSF postal mail address.
45739
45740         Sync from coreutils.
45741         * modules/unlinkdir: New file.
45742         * modules/yesno (Depends-on): Add getline.
45743         * MODULES.html.sh (File system functions): Add unlinkdir.
45744
45745 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45746
45747         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
45748         lib/strsep.h:
45749         Change the initial comment to refer to GPL, not LGPL.
45750         gnulib-tool will change it to LGPL as needed.
45751
45752         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
45753         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
45754         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
45755         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
45756         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
45757         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
45758         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
45759         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
45760         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
45761         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
45762         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
45763         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
45764         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
45765         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
45766         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
45767         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
45768         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
45769         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
45770         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
45771         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
45772         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
45773         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
45774         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
45775         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
45776         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
45777         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
45778         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
45779         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
45780         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
45781         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
45782         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
45783         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
45784         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
45785         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
45786         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
45787         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
45788         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
45789         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
45790         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
45791         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
45792         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
45793         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
45794         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
45795         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
45796         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
45797         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
45798         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
45799         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
45800         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
45801         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
45802         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
45803         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
45804         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
45805         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
45806         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
45807         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
45808         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
45809         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
45810         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
45811         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
45812         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
45813         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
45814         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
45815         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
45816         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
45817         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
45818         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
45819         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
45820         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
45821         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
45822         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
45823         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
45824         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
45825         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
45826         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
45827         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
45828         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
45829         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
45830         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
45831         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
45832         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
45833         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
45834         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
45835         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
45836         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
45837         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
45838         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
45839         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
45840         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
45841         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
45842         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
45843         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
45844         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
45845         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
45846         lib/yesno.c, lib/yesno.h:
45847         Update FSF postal mail address.
45848
45849 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45850
45851         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
45852         tests/test-memmem.c, tests/test-stpncpy.c:
45853         Update FSF postal mail address.
45854
45855 2005-05-13  Bruno Haible  <bruno@clisp.org>
45856
45857         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
45858         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
45859         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
45860         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
45861         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
45862         Add support for 64-bit integers in the MSVC compiler.
45863
45864 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45865
45866         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
45867
45868 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
45869
45870         * gnulib-tool (func_import): Sort and uniquify recommended includes.
45871
45872 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         * doc/getdate.texi (General date syntax): Don't say that date
45875         date --iso-8601=ns generates acceptable dates; it doesn't yet.
45876         Problem reported by Nic Ferrier.
45877
45878 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45879
45880         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
45881         specified in ai_socktype. Fix invalid ai_protocol
45882         check. ai_protocol is usually set to 0 or depending on
45883         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
45884         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
45885         ai_socktype / ai_protocol in the returned addrinfo structure.
45886
45887 2005-05-10  Simon Josefsson  <jas@extundo.com>
45888
45889         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
45890         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45891
45892 2005-05-10  Karl Berry  <karl@gnu.org>
45893
45894         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
45895         (from http://www.gnu.org/licenses).
45896         * doc/COPYING.LIB: also rename to COPYING.LESSER.
45897         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
45898         fdl.texi suffices.
45899
45900 2005-05-10  Karl Berry  <karl@gnu.org>
45901
45902         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
45903         (COPYING.DOC): remove.
45904
45905         * config/srclist-update: new FSF address.
45906
45907 2005-05-10  Derek Price  <derek@ximbiot.com>
45908
45909         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
45910         possible.
45911
45912 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45913             Bruno Haible  <bruno@clisp.org>
45914
45915         * modules/inet_ntop: New file.
45916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45917         inet_ntop.
45918
45919 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45920             Bruno Haible  <bruno@clisp.org>
45921
45922         * m4/inet_ntop.m4: New file.
45923
45924 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45925             Bruno Haible  <bruno@clisp.org>
45926
45927         * lib/inet_ntop.h: New file.
45928         * lib/inet_ntop.c: New file, from glibc with modifications.
45929
45930 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
45931
45932         * modules/time_r (License): Change to LGPL.
45933         * modules/extensions (License): Change to LGPL.  Actually,
45934         the license is more permissive than that, but currently gnulib-tool
45935         doesn't know how to handle more-permissive licenses.
45936
45937         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
45938         Problem reported by Dave Love.
45939
45940 2005-05-08  Jim Meyering  <jim@meyering.net>
45941
45942         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
45943         blank.
45944
45945 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
45946
45947         * modules/argmatch (Depends-on): Add stdbool.
45948         * modules/backupfile (Depends-on): Likewise.
45949         * modules/chdir-long (Depends-on): Likewise.
45950         * modules/closeout (Depends-on): Likewise.
45951         * modules/cycle-check (Depends-on): Likewise.
45952         * modules/dirname (Depends-on): Likewise.
45953         * modules/fnmatch (Depends-on): Likewise.
45954         * modules/fsusage (Depends-on): Likewise.
45955         * modules/fwriteerror (Depends-on): Likewise.
45956         * modules/getcwd (Depends-on): Likewise.
45957         * modules/getloadavg (Depends-on): Likewise.
45958         * modules/hard-locale (Depends-on): Likewise.
45959         * modules/makepath (Depends-on): Likewise.
45960         * modules/mountlist (Depends-on): Likewise.
45961         * modules/nanosleep (Depends-on): Likewise.
45962         * modules/posixtm (Depends-on): Likewise.
45963         * modules/quotearg (Depends-on): Likewise.
45964         * modules/readtokens (Depends-on): Likewise.
45965         * modules/readtokens0 (Depends-on): Likewise.
45966         * modules/readutmp (Depends-on): Likewise.
45967         * modules/save-cwd (Depends-on): Likewise.
45968         * modules/strftime (Depends-on): Likewise.
45969         * modules/userspec (Depends-on): Likewise.
45970         * modules/utimecmp (Depends-on): Likewise.
45971         * modules/xgetcwd (Depends-on): Likewise.
45972         * modules/xnanosleep (Depends-on): Likewise.
45973         * modules/xstrtod (Depends-on): Likewise.
45974         * modules/yesno (Depends-on): Likewise.
45975
45976 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45977
45978         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
45979         needless checks.
45980
45981 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
45982
45983         Merge from coreutils.  Among other things,
45984         add bulletproofing for cases where stdin, stdout, or stderr are closed.
45985         * lib/fd-safer.c: New file.
45986         * lib/fcntl-safer.h, open-safer.c: Remove.
45987         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
45988         * lib/dup-safer.c: Include unistd-safer.h first.
45989         Don't include errno.h.
45990         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
45991         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
45992         * lib/file-type.c: Rely on file-type.h change.
45993         * lib/getloadavg.c: Include unistd-safer.h.
45994         (getloadavg): Use safer open.
45995         * lib/getusershell.c: Include "stdio-safer.h".
45996         (getusershell): Use safer fopen.
45997         * lib/long-options.c (long_options): Use NULL rather than 0.
45998         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
45999         'free'.
46000         * lib/modechange.c: Likewise.
46001         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
46002         (MODE_DONE): New constant.
46003         (struct mode_change): Remove 'next' member.
46004         (make_node_op_equals): New function; like the old one of the
46005         same name, except it allocates an array.
46006         (mode_compile, mode_create_from_ref): Use it.
46007         (mode_compile): Allocate result as an array, not a linked list.
46008         Parse octal string ourself, so that we catch mistakes like "+0".
46009         (mode_adjust): Arg is an array, not a linked list.
46010         * lib/modechange.c: Include stat-macros.h, xalloc.h.
46011         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
46012         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
46013         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
46014         Remove.  This is now stat-macros.h's job.
46015         (talloc): Remove.  All callers replaced by xalloc, so that
46016         our invokers don't have to worry about reporting memory failures.
46017         (make_node_op_equals): Remove.
46018         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46019         New constants.
46020         (struct mode_change): Moved here from modechange.h.
46021         (mode_append_entry): Remove.
46022         (mode_compile): Remove MASKED_OPS arg, since it encouraged
46023         apps to have incorrect behavior.  Use simpler algorithm for head
46024         and tail.  Don't futz with umask; that's now the job of mode_adjust.
46025         Detect more invalid usages rather than having somewhat-random behavior.
46026         Don't insert an "a=" action, as that leads to incorrect behavior.
46027         (mode_compile, mode_create_from_ref): Return NULL on error instead
46028         of an enum, since now there's only one way to have an error.  All
46029         callers changed.
46030         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
46031         at the correct time.  Simplify calculation of "+u" and its ilk.
46032         Don't mishandle "+X".
46033         (mode_free): Remove "register" and localize decls.
46034         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46035         (struct mode_change): Move to modechange.c; callers don't
46036         need to see this stuff.
46037         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
46038         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
46039         (mode_change, mode_adjust): Reflect the new signatures noted above.
46040         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
46041         that might redefine system include files.
46042         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
46043         (my_usleep): Use NULL rather than (void *) 0.
46044         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
46045         Use siginterrupt to specify that system calls should be interrupted.
46046         (rpl_nanosleep): Move initialization of suspended closer to call of
46047         my_usleep.
46048         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
46049         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
46050         (desirable_utmp_entry): New function.
46051         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
46052         using x2nrealloc, to simplify logic.
46053         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
46054         size calculation.  Do not assume utmp file is a regular file.
46055         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
46056         (READ_UTMP_CHECK_PIDS): New constant.
46057         * lib/save-cwd.c: Include unistd-safer.h.
46058         (save_cwd): Use fd_safer.
46059         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
46060         [!_LIBC] Include "stat-macros.h" instead.
46061         * lib/unistd-safer.h (fd_safer): New decl.
46062
46063 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46064
46065         * modules/getloadavg (Depends-on): Add unistd-safer.
46066         * modules/getusershell (Depends-on): Add stdio-safer.
46067         * modules/lstat (Depends-on): Remove xalloc.
46068         * modules/mkstemp (Depends-on): Add stat-macros.
46069         * modules/modechange (Depends-on): Remove xstrtol.
46070         Add stat-macros, xalloc.
46071         * modules/save-cwd (Depends-on): Add unistd-safer.
46072         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
46073         * modules/unistd-safer (Files): Add lib/fd-safer.c
46074         (Makefile.am): Remove lib_SOURCES.
46075
46076         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
46077         Remove fcntl-safer; unistd-safer supersedes it.
46078
46079 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46080
46081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
46082         AC_HEADER_STAT.
46083         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
46084         (gl_PREREQ_CHOWN): Remove.
46085         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
46086         it.  Don't require AC_HEADER_STAT.
46087         (gl_PREREQ_LSTAT): Remove.
46088         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
46089         Don't require AC_HEADER_STAT.
46090         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
46091         (gl_PREREQ_RMDIR): Remove.
46092         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
46093         mention stat-macros.h or AC_HEADER_STAT, since we'll make
46094         the stat-macros module a prerequisite.
46095         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
46096         * m4/filemode.m4 (gl_FILEMODE): Likewise.
46097         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
46098         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
46099         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
46100         variable names.
46101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
46102         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
46103         variable prefixes.
46104         * m4/fcntl-safer.m4: Remove.
46105         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
46106         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
46107         Invoke gl_PREREQ_FD_SAFER.
46108         (gl_PREREQ_FD_SAFER): New macro.
46109         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
46110         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
46111         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
46112         Remove duplicate call to AC_LIBOBJ(readutmp).
46113         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
46114
46115         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
46116         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
46117
46118 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         * MODULES.html.sh (Misc): Add byteswap.
46121
46122 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46123
46124         * modules/getcwd (Depends-on): Add extensions.
46125         * modules/openat (Depends-on): Likewise.
46126
46127 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46128
46129         * modules/byteswap: New file.
46130
46131 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46132
46133         * m4/byteswap.m4: New file.
46134
46135 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
46136
46137         * lib/byteswap_.h: New file.
46138
46139 2005-04-25  Karl Berry  <karl@gnu.org>
46140
46141         * m4/gettext.m4: Update from GNU gettext 0.14.4.
46142
46143 2005-04-25  Albert Chin  <china@thewrittenword.com>
46144
46145         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
46146         Toolkit C bug.
46147
46148 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
46149
46150         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
46151         (func_ln_if_changed) Remove forcibly for no error message
46152         in case file does not exist.
46153
46154 2005-04-19  Simon Josefsson  <jas@extundo.com>
46155
46156         * gnulib-tool (Options): Make --symlink mean --symbolic.
46157
46158 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
46159
46160         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
46161
46162 2005-04-16  Simon Josefsson  <jas@extundo.com>
46163
46164         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
46165
46166 2005-04-15  Simon Josefsson  <jas@extundo.com>
46167
46168         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
46169
46170 2005-04-15  Simon Josefsson  <jas@extundo.com>
46171
46172         * gnulib-tool: Rename --symlink to --symbolic.
46173
46174 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
46175
46176         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
46177         symbolic links to files instead of copying/moving.  Add --aux-dir,
46178         specifying directory relative --dir where auxiliary build tools
46179         are placed.
46180
46181 2005-04-14  Bruno Haible  <bruno@clisp.org>
46182
46183         * modules/allocsa (License): Change to LGPL.
46184         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46185
46186 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46187
46188         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
46189         that "UTC +1 second" continues to work.  Problem reported
46190         by Dmitry V. Levin.
46191         (relunit_snumber): New rule.
46192         (relunit): Use it.
46193
46194 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * lib/getdate.y (universal_time_zone_table): New constant.
46197         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
46198         universal_time_zone_table.
46199         (lookup_zone): Prefer universal_time_zone_table to
46200         local_time_zone_table, so that "GMT" time stamps are allowed in
46201         London during the summer.  Problem reported by Ian Abbott.
46202
46203 2005-04-12  Jim Meyering  <jim@meyering.net>
46204
46205         * lib/human.c (humblock): Set *options even when returning due to
46206         xstrtoumax conversion failure.  Thanks to a used-uninitialized
46207         warning from gcc-4.
46208
46209 2005-04-09  Jim Meyering  <jim@meyering.net>
46210
46211         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
46212         -Wuninitialized: initialize tm0.tm_year.
46213
46214 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
46217         count, since there's no maximum.  All uses changed.
46218         Add member dsts_seen.
46219         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
46220         not being INT_MAX.
46221         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
46222         Use pc_rels_seen to decide whther a date is absolute.
46223
46224         * lib/getdate.y (number): Don't overwrite year.
46225         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
46226         check.
46227
46228 2005-04-02  Simon Josefsson  <jas@extundo.com>
46229
46230         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
46231         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
46232
46233 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
46234
46235         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
46236         where no absolute path name can be longer than PATH_MAX.
46237
46238 2005-03-27  Jim Meyering  <jim@meyering.net>
46239
46240         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
46241
46242 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
46243
46244         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
46245         "one's complement" -> "ones' complement" in comment, as per Knuth.
46246         "value of type" -> "type or expression" in comment.
46247         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
46248
46249 2005-03-26  Jim Meyering  <jim@meyering.net>
46250
46251         Comment nits.
46252         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
46253         Correct typos: s/or/of/.
46254
46255 2005-03-26  Jim Meyering  <jim@meyering.net>
46256
46257         * modules/check-include-files: Move to ../ and rename to...
46258         * check-module: ...this.
46259
46260 2005-03-25  Jim Meyering  <jim@meyering.net>
46261
46262         * modules/xvasprintf (Files): Add xalloc.h.
46263
46264 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
46265
46266         * modules/gettext (Files): config/config.rpath ->
46267         build-aux/config.rpath
46268         * modules/iconv (Files): Likewise.
46269         Problem reported by Oskar Liljeblad.
46270
46271 2005-03-23  Jim Meyering  <jim@meyering.net>
46272
46273         * modules/check-include-files: New script to check for
46274         missing dependencies, multiple includes, etc.
46275
46276         * modules/c-strtold (Depends-on): Add xalloc.
46277         * modules/c-strtod (Depends-on): Add xalloc.
46278         * modules/hash (Depends-on): Add xalloc.
46279         (Files): Remove lib/xalloc.h.
46280
46281         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
46282         * modules/userspec (Files): Add lib/inttostr.h.
46283
46284 2005-03-23  Jim Meyering  <jim@meyering.net>
46285
46286         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
46287
46288 2005-03-22  Jim Meyering  <jim@meyering.net>
46289
46290         * modules/stat-macros: New module.
46291         * modules/canonicalize, modules/euidaccess, modules/file-type,
46292         * modules/filemode, modules/lchown, modules/makepath,
46293         * modules/rmdir, modules/stat: Depend on new stat-macros module
46294         rather than listing lib/stat-macros.h manually.
46295         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
46296
46297 2005-03-22  Jim Meyering  <jim@meyering.net>
46298
46299         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
46300
46301 2005-03-22  Bruno Haible  <bruno@clisp.org>
46302
46303         * config/srclist.txt: Replace target directory 'config' with
46304         'build-aux'.
46305         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
46306         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
46307         ../build-aux/.
46308
46309 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
46310
46311         * modules/chdir-long (Depends-on): Add mempcpy.
46312
46313         * modules/acl, modules/backupfile, modules/c-strtod,
46314         modules/c-strtold, modules/canon-host, modules/canonicalize,
46315         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
46316         modules/exclude, modules/exitfail, modules/file-type,
46317         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
46318         modules/getdate, modules/getline, modules/getpagesize,
46319         modules/getpass, modules/getugroups, modules/group-member,
46320         modules/hard-locale, modules/hash, modules/human, modules/idcache,
46321         modules/inttostr, modules/long-options, modules/makepath,
46322         modules/md5, modules/memcasecmp, modules/memcoll,
46323         modules/modechange, modules/mountlist, modules/path-concat,
46324         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
46325         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
46326         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
46327         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
46328         modules/strftime, modules/strndup, modules/strverscmp,
46329         modules/timespec, modules/unlocked-io, modules/userspec,
46330         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
46331         modules/yesno:
46332         Remove lib_SOURCES line from Makefile.am section, as this is now
46333         done automatically by the corresponding Autoconf macro.
46334
46335 2005-03-21  Jim Meyering  <jim@meyering.net>
46336
46337         Changes imported from coreutils.
46338
46339         * lib/cycle-check.c: Don't include xalloc.h.
46340
46341         * lib/path-concat.c: Don't include assert.h.
46342         (path_concat): Remove assertion that would have triggered
46343         for ABASE starting with more than one slash.
46344         Reported by Andreas Schwab.
46345
46346         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
46347         properly when ABASE is an absolute file name.
46348         Correct the description of this function.
46349         Include <assert.h>.
46350         Add an assertion and a test driver.
46351         This fixes a bug introduced on 2004-07-02.
46352         Andreas Schwab reported the resulting failure of cp --parents:
46353         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
46354
46355 2005-03-21  Jim Meyering  <jim@meyering.net>
46356
46357         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
46358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
46359
46360 2005-03-21  Jim Meyering  <jim@meyering.net>
46361         and  Paul Eggert  <eggert@cs.ucla.edu>
46362
46363         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
46364         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
46365         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
46366         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
46367         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
46368         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
46369         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
46370         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
46371         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
46372         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
46373         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
46374         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
46375         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
46376         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
46377         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
46378         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
46379         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
46380         for these modules.
46381
46382 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
46385         (which shouldn't happen), generate nothing instead of returning 0
46386         immediately, so that nstrftime (NULL, ...) doesn't return 0.
46387
46388 2005-03-16  Bruno Haible  <bruno@clisp.org>
46389
46390         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
46391         HAVE_LONGLONG_64BIT.
46392
46393 2005-03-16  Bruno Haible  <bruno@clisp.org>
46394
46395         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
46396         HAVE_LONGLONG_64BIT.
46397
46398 2005-03-16  Bruno Haible  <bruno@clisp.org>
46399
46400         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
46401         HAVE_LONGLONG_64BIT.
46402
46403 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
46404
46405         * lib/strftime.c (my_strftime): Prepend space to format so that we can
46406         reliably distinguish strftime failure from empty output on POSIX
46407         hosts.
46408
46409 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
46410
46411         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
46412         (iconv_string): Don't guess a size-zero buffer, as that might cause
46413         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
46414         result would be 'too large', where 'too large' is (heuristically)
46415         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
46416         overflow concerns.  This will prevent some unwanted malloc failures
46417         when the inputs are very large.
46418
46419 2005-03-15  Karl Berry  <karl@gnu.org>
46420
46421         * config/srclist.txt (config.rpath): from gettext.
46422         * config/config.rpath: update.
46423
46424 2005-03-15  Bruno Haible  <bruno@clisp.org>
46425
46426         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
46427         to 'negate'.
46428
46429         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
46430         variable.
46431
46432         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
46433         results.
46434
46435 2005-03-14  Simon Josefsson  <jas@extundo.com>
46436
46437         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
46438         <fx@gnu.org>.
46439
46440 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
46441
46442         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
46443         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
46444         intprops.h.
46445         * lib/strtol.c: Likewise.
46446
46447 2005-03-14  Jim Meyering  <jim@meyering.net>
46448
46449         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
46450         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
46451         to be nonzero so that we (and caller) can detect the difference
46452         between a valid zero-length expansion and an error return, even
46453         when the underlying strftime fails before writing anything into
46454         that location.
46455
46456 2005-03-14  Bruno Haible  <bruno@clisp.org>
46457
46458         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
46459         Update from GNU gettext 0.14.3.
46460
46461 2005-03-10  Jim Meyering  <jim@meyering.net>
46462
46463         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
46464
46465 2005-03-10  Jim Meyering  <jim@meyering.net>
46466
46467         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
46468         so that this module works on systems without fchdir.
46469
46470 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
46471
46472         Factor int-properties macros into a single file, except for
46473         glibc-related files.
46474         * lib/intprops.h: New file.
46475         * lib/getloadavg.c: Include it instead of limits.h.
46476         (INT_STRLEN_BOUND): Remove.
46477         * lib/human.c: Include intprops.h.
46478         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
46479         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
46480         302/1000.
46481         * lib/inttostr.h: Include intprops.h instead of limits.h.
46482         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
46483         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
46484         for consistency with intprops.h.
46485         (time_t_is_integer, twos_complement_arithmetic): Use them.
46486         * lib/sig2str.h: Include <signal.h>, intprops.h.
46487         (INT_STRLEN_BOUND): Remove.
46488         * lib/strftime.c (TYPE_SIGNED): Remove.
46489         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
46490         * lib/strtol.c: Adjust comments to match intprops.h.
46491         * lib/userspec.c: Include intprops.h.
46492         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
46493         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
46494         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
46495         instead of rolling our own expressions.
46496         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
46497
46498         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
46499         instead of int.
46500         (my_strftime): Do not mishandle years close to INT_MAX, by doing
46501         the right thing even if adding 1900 would overflow.  Similarly
46502         for tm_mon + 1 and tm_yday + 1.
46503         Make %Y always equivalent to %C%y, and similarly for %G and %g.
46504         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
46505         (DO_SIGNED_NUMBER): New macro.
46506         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
46507
46508 2005-03-07  Bruno Haible  <bruno@clisp.org>
46509
46510         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
46511
46512 2005-03-07  Bruno Haible  <bruno@clisp.org>
46513
46514         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
46515
46516 2005-03-04  Derek R. Price  <derek@ximbiot.com>
46517
46518         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
46519         (func_import): Only replace files via --import when they have actually
46520         changed.
46521
46522 2005-03-03  Derek R. Price  <derek@ximbiot.com>
46523
46524         * m4/mmap-anon.m4: New file.
46525         * m4/pagealign_alloc.m4: New file.
46526
46527 2005-03-03  Derek R. Price  <derek@ximbiot.com>
46528             Bruno Haible  <bruno@clisp.org>
46529
46530         * modules/pagealign_alloc: New file.
46531         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
46532
46533 2005-03-03  Derek R. Price  <derek@ximbiot.com>
46534             Bruno Haible  <bruno@clisp.org>
46535
46536         * lib/pagealign_alloc.h: New file.
46537         * lib/pagealign_alloc.c: New file.
46538
46539 2005-03-03  Bruno Haible  <bruno@clisp.org>
46540
46541         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
46542         Use an all-permissive copyright notice, recommended by RMS.
46543
46544 2005-03-02  Bruno Haible  <bruno@clisp.org>
46545
46546         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
46547         of AIX, the replacement has to be done only after <string.h> is
46548         included, therefore not in config.h. stpncpy.h does the replacement,
46549         and stpncpy.c uses it.
46550
46551 2005-03-02  Bruno Haible  <bruno@clisp.org>
46552
46553         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
46554         stpncpy.c uses it.
46555
46556 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46557
46558         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
46559         The workaround isn't strictly needed for POSIX conformance, and
46560         it's too much of a pain to configure and maintain.  We'll ask
46561         people to fix their kernels instead.
46562         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
46563         (NANOSLEEP_BUG_WORKAROUND): Remove.
46564         (xnanosleep): Remove the workaround.
46565
46566 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46567
46568         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
46569         Reported by Derek Price.
46570         (Include): Add "timespec.h".
46571
46572         * modules/xnanosleep (Depends-on): Remove gethrxtime.
46573
46574 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
46577         to detect nanosleep bug.
46578
46579 2005-03-01  Bruno Haible  <bruno@clisp.org>
46580
46581         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
46582
46583 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46584
46585         * modules/gethrxtime: New file.
46586         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
46587         (Depends-on): Add gethrxtime.
46588         (configure.ac): Add gl_XNANOSLEEP.
46589         (Makefile.am): Remove lib_SOURCES line.
46590
46591 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46592
46593         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
46594         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
46595
46596 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46597
46598         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
46599         * lib/timespec.h (gettime): Return void, since it always
46600         succeeds now.  All uses changed.
46601         * lib/gettime.c (gettime) Likewise.
46602         [HAVE_NANOTIME]: Prefer nanotime.
46603         Assume gettimeofday succeeds, as POSIX requires.
46604         Assime time () succeeds, since other code already does.
46605         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
46606         (timespec_subtract): Remove.
46607         (NANOSLEEP_BUG_WORKAROUND): New constant.
46608         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
46609         things considerably.  Use it only on GNU/Linux hosts, since the
46610         workaround shouldn't be needed elsewhere.
46611
46612 2005-02-24  Bruno Haible  <bruno@clisp.org>
46613
46614         * modules/gettext (Files): Add m4/glibc2.m4.
46615
46616 2005-02-24  Bruno Haible  <bruno@clisp.org>
46617
46618         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
46619         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
46620         * m4/progtest.m4:
46621         Update from GNU gettext 0.14.2.
46622         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
46623
46624 2005-02-24  Bruno Haible  <bruno@clisp.org>
46625
46626         * lib/localcharset.c: Update from GNU gettext 0.14.2.
46627         * lib/config.charset: Update from GNU gettext 0.14.2.
46628
46629 2005-02-24  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/gettext.h: Update from GNU gettext 0.14.2.
46632
46633 2005-02-23  Simon Josefsson  <jas@extundo.com>
46634
46635         * m4/iconvme.m4: New file.
46636
46637 2005-02-23  Jim Meyering  <jim@meyering.net>
46638
46639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
46640         change.
46641         Thanks to Bruno Haible for catching it.
46642
46643 2005-02-22  Simon Josefsson  <jas@extundo.com>
46644
46645         * modules/iconvme: New file.
46646
46647         * MODULES.html.sh: Add iconvme.
46648
46649 2005-02-22  Simon Josefsson  <jas@extundo.com>
46650
46651         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
46652
46653 2005-02-22  Simon Josefsson  <jas@extundo.com>
46654
46655         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
46656
46657 2005-02-22  Jim Meyering  <jim@meyering.net>
46658
46659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
46660         s/ifndef/ifdef/.
46661
46662 2005-02-20  Neil Conway  <neilc@samurai.com>
46663
46664         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
46665         returned by OSX/Darwin if the specified buffer is not large
46666         enough for the hostname.
46667
46668 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46669
46670         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
46671         pass it to _help, otherwise the latter coredumps trying to
46672         dereference state.root_argp.
46673
46674 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46675
46676         * modules/chdir-long (Depends-on): Add memrchr.
46677         * modules/memrchr (Files): Add lib/memrchr.h.
46678         (Include): "memrchr.h".
46679
46680 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46681
46682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
46683
46684 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46685
46686         * lib/memrchr.h: New file.
46687         * lib/chdir-long.c: Include it.
46688         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
46689         Don't bother including stddef.h.
46690
46691 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
46694         inclusion.
46695         Include <sys/types.h>, for dev_t.
46696         (ME_DUMMY, ME_REMOTE): Move from here....
46697         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
46698         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
46699         Dmitry V. Levin.
46700         Include mountlist.h first, to test the interface.
46701
46702 2005-01-29  Bruno Haible  <bruno@clisp.org>
46703
46704         * lib/progname.c (program_name): Initialize.
46705         Needed when linking statically on MacOS X.
46706
46707 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46708
46709         Sync from coreutils.
46710         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
46711         (Depends-on): Add c-strtod.
46712         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
46713
46714 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46715
46716         Sync from coreutils.
46717         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
46718
46719         Remove files that are specific to coreutils.
46720         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
46721
46722 2005-01-28  Bruno Haible  <bruno@clisp.org>
46723
46724         * modules/javacomp: New file.
46725         * MODULES.html.sh (Java): Add javacomp.
46726
46727 2005-01-28  Bruno Haible  <bruno@clisp.org>
46728
46729         * m4/javacomp.m4: New file, from GNU gettext.
46730
46731 2005-01-28  Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/javacomp.sh.in: New file, from GNU gettext.
46734         * lib/javacomp.h: New file, from GNU gettext.
46735         * lib/javacomp.c: New file, from GNU gettext.
46736
46737 2005-01-26  Simon Josefsson  <jas@extundo.com>
46738
46739         * lib/gai_strerror.c: Use GPL in header.
46740
46741 2005-01-26  Bruno Haible  <bruno@clisp.org>
46742
46743         * modules/javaexec: New file.
46744         * MODULES.html.sh (Java): Add javaexec.
46745
46746 2005-01-26  Bruno Haible  <bruno@clisp.org>
46747
46748         * m4/javaexec.m4: New file, from GNU gettext.
46749
46750 2005-01-26  Bruno Haible  <bruno@clisp.org>
46751
46752         * lib/javaexec.sh.in: New file, from GNU gettext.
46753         * lib/javaexec.h: New file, from GNU gettext.
46754         * lib/javaexec.c: New file, from GNU gettext.
46755
46756 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46757
46758         * modules/lchown (Depends-on): Remove lchown.h
46759
46760 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46761
46762         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
46763         must be defined if the header file was not found, in order
46764         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
46765
46766 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
46767
46768         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
46769         initializers for struct pentry_state.
46770         (__argp_error): Check return value of __asprintf
46771         (__argp_failure): Translate error message
46772
46773         * lib/argp-parse.c: Removed braces around the expansion of N_()
46774
46775 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46776
46777         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
46778         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
46779         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
46780         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
46781         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
46782         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
46783         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
46784         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
46785         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
46786         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
46787         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
46788         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
46789         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
46790         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
46791         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
46792         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
46793         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
46794         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
46795         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
46796         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
46797         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
46798         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
46799         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
46800         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
46801         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
46802         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
46803         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
46804         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
46805         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
46806         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
46807         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
46808         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
46809         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
46810         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
46811         xstrtol.m4, xstrtoumax.m4, yesno.m4:
46812         Use an all-permissive copyright notice, recommended by RMS.
46813
46814 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
46815
46816         * modules/chdir-long (Depends-on): Remove mempcpy.
46817
46818 2005-01-21  Jim Meyering  <jim@meyering.net>
46819
46820         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
46821         same value as for Solaris 9.
46822
46823         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
46824         component length.  This included changing the parameter to be
46825         of type `char *' rather than `char const *'.
46826         * lib/chdir-long.h (chdir_long): Update prototype.
46827
46828         * lib/openat.c (fdopendir, fstatat): New functions.
46829         * lib/openat.h: Include headers required for use of DIR and struct
46830         stat.
46831         [AT_SYMLINK_NOFOLLOW]: Define.
46832         (fdopendir, fstatat): Add prototypes.
46833
46834 2005-01-21  Bruno Haible  <bruno@clisp.org>
46835
46836         * modules/classpath: New file.
46837         * MODULES.html.sh (Java): Add classpath.
46838
46839 2005-01-21  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/classpath.h: New file, from GNU gettext.
46842         * lib/classpath.c: New file, from GNU gettext.
46843
46844 2005-01-20  Simon Josefsson  <jas@extundo.com>
46845
46846         * modules/version-etc-fsf: New file.
46847
46848 2005-01-20  Simon Josefsson  <jas@extundo.com>
46849
46850         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
46851         * lib/version-etc.c: Remove version_etc_copyright.
46852         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
46853         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
46854
46855 2005-01-20  Simon Josefsson  <jas@extundo.com>
46856
46857         * lib/base64.h (isbase64): Add.
46858
46859         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
46860         using a unsigned prototype, don't inline.
46861         (base64_decode): Use it.
46862
46863 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
46866         it.
46867
46868 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46869
46870         * lib/save-cwd.c (save_cwd): Remove code to support the case
46871         where fchdir is missing or flaky.
46872
46873 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
46876
46877 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46878
46879         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
46880         AC_LIBSOURCES now does this.
46881         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
46882         with new ullong_max module.
46883
46884 2005-01-19  Bruno Haible  <bruno@clisp.org>
46885
46886         * modules/sh-quote: New file.
46887         * MODULES.html.sh (Executing programs): Add sh-quote.
46888
46889 2005-01-19  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/sh-quote.h: New file, from GNU gettext.
46892         * lib/sh-quote.c: New file, from GNU gettext.
46893
46894 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         Merge from coreutils.
46897         * m4/ullong_max.m4: New file.
46898         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
46899         (gl_MACROS): Assume localeconv exists.
46900
46901 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
46902
46903         Merge changes from coreutils, as described below in several
46904         changelogs dated today.
46905
46906         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
46907         (O_DIRECTORY): Remove; not needed here, since "." must be
46908         a directory.  All uses removed.
46909         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
46910         universal on Suns, and we also need to test for IRIX.
46911         Revamp code to use 'if' rather than '#if'.
46912         Avoid unnecessary comparison of cwd->desc to 0.
46913
46914         * lib/utimens.c (futimens): Robustify the previous patch, by checking
46915         for known valid error numbers rather than observed invalid ones.
46916
46917 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
46918
46919         * modules/ullong_max: New file.
46920
46921         * modules/chdir-long, modules/openat: New files.
46922         * modules/save-cwd (Depends-on): Depend on chdir-long.
46923         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
46924
46925 2005-01-18  Jim Meyering  <jim@meyering.net>
46926
46927         Merge from coreutils.
46928         * m4/chdir-long.m4, m4/openat.m4: New files.
46929         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
46930         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
46931         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
46932         is sane and DOES follow symlinks.  Besides, testing 20 different
46933         systems found no broken chown implementations.
46934         Prompted by a change in rsync's copy of this macro.
46935         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
46936
46937         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
46938
46939         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
46940         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
46941         NULL-means-set-to-current-time semantics.
46942         Remove temporary file immediately, rather than waiting
46943         for configure's at-exit trap code to do it.
46944
46945 2005-01-18  Jim Meyering  <jim@meyering.net>
46946
46947         * lib/version-etc.c (version_etc_copyright): Update copyright date.
46948
46949         * lib/utimens.c (futimens): Account for the fact that futimes
46950         can also fail with errno == ENOSYS or errno == ENOENT.
46951         Patch from Dmitry V. Levin.
46952
46953         Change the name of the robust chdir function from chdir to chdir_long.
46954         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
46955         (restore_cwd): Use chdir_long, not chdir.
46956         * lib/chdir-long.c: Renamed from chdir.c.
46957         * lib/chdir-long.h: Renamed from chdir.h.
46958         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
46959         Hurd.
46960
46961 2005-01-18  Bruno Haible  <bruno@clisp.org>
46962
46963         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
46964         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
46965         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
46966         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
46967         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
46968         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
46969         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
46970         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
46971         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
46972         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
46973         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
46974         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
46975         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
46976         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
46977         Use an all-permissive copyright notice, recommended by RMS.
46978
46979 2005-01-18  Bob Proulx  <bob@proulx.com>
46980
46981         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
46982         simplify offsetof() macro construct to avoid compile failure with
46983         native HP-UX 11.0 ANSI C compiler.
46984
46985 2005-01-17  Bruno Haible  <bruno@clisp.org>
46986
46987         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
46988         redundant because stpncpy.m4 takes care of it.
46989
46990 2005-01-17  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
46993
46994 2005-01-17  Bruno Haible  <bruno@clisp.org>
46995
46996         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
46997         used.
46998
46999 2005-01-17  Bruno Haible  <bruno@clisp.org>
47000
47001         * lib/fwriteerror.h (fwriteerror): Change specification to include
47002         fclose.
47003         * lib/fwriteerror.c: Include <stdbool.h>.
47004         (fwriteerror): At the end, close the file stream. Record whether
47005         stdout was already closed.
47006
47007 2005-01-17  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/execute.c (environ): Declare if needed.
47010         * lib/pipe.c (environ): Likewise.
47011         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
47012
47013 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47014
47015         * modules/argp: Depend on vsnprintf
47016
47017 2005-01-10  Jim Meyering  <jim@meyering.net>
47018
47019         * modules/closeout (Depends-on): Add atexit.
47020
47021 2005-01-06  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
47024
47025 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
47028         definitions to be after all include files, to avoid collisions.
47029         Problem reported by Bob Proulx.
47030
47031 2005-01-04  Jim Meyering  <jim@meyering.net>
47032
47033         Changes imported from coreutils.
47034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
47035         as the mkstemp template, use a temporary directory and an
47036         8.3-friendly template to avoid trouble on systems like DJGPP.
47037         Reported by Juan M. Guerrero via Stepan Kasal.
47038         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
47039         close. Remove the temporary directory right away, rather than waiting
47040         for configure's at-exit trap code to do it.
47041         Suggestion from Stepan Kasal.
47042
47043 2005-01-01  Simon Josefsson  <jas@extundo.com>
47044
47045         * gnulib-tool: Print #include directives when --import'ing.
47046
47047 2004-12-28  Simon Josefsson  <jas@extundo.com>
47048
47049         * tests/test-base64.c: Include required header files.  Remove
47050         unused variables.
47051
47052 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47053
47054         * modules/error (Depends-on): Remove gettext.
47055
47056 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47057
47058         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
47059         not needed.  This removes a dependency on the gettext module.
47060         [defined _LIBC]: Do not include <libintl.h>; not needed.
47061
47062 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
47063
47064         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
47065         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
47066
47067 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
47068
47069         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
47070         HAVE_DECL_STRTOLD.
47071
47072 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * modules/getdate (Depends-on): Remove alloca-opt.
47075
47076 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47077
47078         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
47079
47080 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47081
47082         * lib/argp-parse.c: Include <stddef.h>.
47083         (alignof, alignto): New macros.
47084         (parser_init): Don't assume that void * is aligned sufficiently
47085         for struct option.
47086
47087         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
47088         need to extend the stack.
47089         (YYINITDEPTH): New macro, so that the initial stack isn't overly
47090         large.
47091
47092 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47093
47094         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
47095
47096 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
47097
47098         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
47099         (2004-10-24) change.  Apparently this was a false alarm.
47100
47101         * modules/getdate: Depend on alloca-opt, not alloca.
47102
47103 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
47104
47105         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
47106         Remove now-obsolete comment about AIX.
47107         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
47108         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
47109         (YYMAXDEPTH): New macro.
47110
47111 2004-12-18  Simon Josefsson  <jas@extundo.com>
47112
47113         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
47114
47115 2004-12-18  Bruno Haible  <bruno@clisp.org>
47116
47117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
47118
47119 2004-12-18  Bruno Haible  <bruno@clisp.org>
47120
47121         * lib/fatal-signal.c (fatal_signals): Make non-const.
47122         (init_fatal_signals): New function.
47123         (uninstall_handlers, install_handlers): Ignore signals that were set to
47124         SIG_IGN.
47125         (at_fatal_signal): Call init_fatal_signals.
47126         (init_fatal_signal_set): Likewise. Ignore signals that were set to
47127         SIG_IGN.
47128         Reported by Paul Eggert.
47129
47130 2004-12-18  Bruno Haible  <bruno@clisp.org>
47131
47132         * doc/alloca.texi: New file.
47133         * doc/alloca-opt.texi: New file.
47134
47135 2004-12-17  Jim Meyering  <jim@meyering.net>
47136
47137         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
47138         Otherwise, install-sh could exit with improper exit status when
47139         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
47140
47141 2004-12-16  Simon Josefsson  <jas@extundo.com>
47142
47143         * tests/test-base64.c: Add license.
47144
47145 2004-12-15  Stepan Kasal  <address@hidden>
47146
47147         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
47148
47149 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
47150
47151         * modules/getcwd (Files): Add m4/d-ino.m4.
47152         Suggested by Mark D. Baushke.
47153
47154 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
47155
47156         * lib/getdate.y (textint): New member "negative".
47157         (time_zone_hhmm): New function.
47158         Expect 14 shift-reduce conflicts, not 13.
47159         (o_colon_minutes): New rule.
47160         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
47161         (yylex): Set the "negative" member of signed numbers.
47162
47163 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
47164
47165         * doc/getdate.texi (Time of day items, Time zone items):
47166         Describe new formats +00:00, UTC+00:00.
47167
47168 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47169
47170         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
47171         spurious "-l"s.  Problem reported by Stepan Kasal.
47172
47173 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
47176         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
47177
47178 2004-12-04  Simon Josefsson  <jas@extundo.com>
47179
47180         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
47181         Vandoorselaere <yoann@prelude-ids.org>.
47182
47183 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47184
47185         Changes imported from coreutils.
47186         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
47187         exist.
47188         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
47189
47190 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         Changes imported from coreutils.
47193         * lib/hard-locale.c: Assume <locale.h> exists.
47194         Include "strdup.h".
47195         (GLIBC_VERSION): New macro.
47196         (hard_locale): Assume setlocale exists.
47197         Rewrite to avoid #ifdef.
47198         Use strdup rather than malloc + strcpy.
47199         * lib/human.c: Assume <locale.h> exists.
47200         (human_readable): Assume localeconv exists.
47201
47202 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
47203
47204         * modules/hard-locale (Depends-on): Add strdup.
47205
47206 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47207
47208         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
47209         convert T2, not T.  (Imported from libc.)
47210
47211 2004-11-30  Simon Josefsson  <jas@extundo.com>
47212
47213         * modules/restrict (License): Change to LGPL.
47214
47215 2004-11-30  Simon Josefsson  <jas@extundo.com>
47216
47217         * m4/restrict.m4: Add copyright and copying conditions.
47218
47219 2004-11-30  Simon Josefsson  <jas@extundo.com>
47220
47221         * m4/base64.m4: New file.
47222
47223 2004-11-30  Simon Josefsson  <jas@extundo.com>
47224
47225         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
47226         base64.
47227
47228         * tests/test-base64.c: New file.
47229
47230         * modules/base64: New file.
47231
47232 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
47233
47234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
47235         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
47236
47237         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
47238
47239 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
47240
47241         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
47242         (__getcwd.c): Don't restore errno; glibc doesn't.
47243         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
47244         first, falling back to our code only if its results look suspicious.
47245         Ensure that the resulting buffer is only as large as necessary.
47246
47247         * lib/readutmp.c: Include readutmp.h first.
47248         Include <errno.h>, since readutmp.h no longer does that.
47249         * lib/readutmp.h: Don't include <errno.h>,
47250         <sys/param.h>, <time.h>; not needed to establish interface.
47251         (errno): Remove decl.
47252         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
47253         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
47254         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
47255
47256 2004-11-28  Simon Josefsson  <jas@extundo.com>
47257
47258         * lib/base64.h, base64.c: New file.
47259
47260 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47261
47262         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
47263
47264 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47265
47266         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
47267         (Depends-on): Remove pathmax, same.  Add mempcpy.
47268         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
47269         (Makefile.am): Append getcwd.h to lib_SOURCES.
47270         (Include): Add getcwd.h.
47271         (Maintainer): Change from Jim Meyering to "all, glibc",
47272         since getdate now uses intended-for-glibc code.
47273         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
47274         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
47275
47276 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47277
47278         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
47279         HP's ANSI C compiler.
47280         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
47281         Declaring int functions causes warnings on some modern systems and
47282         shouldn't be needed to compile on ancient ones.
47283         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
47284         defined.
47285
47286         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
47287         with the following changes.
47288         (__set_errno): Parenthesize properly.
47289         Include <stdbool.h>.
47290         (MIN, MAX, MATCHING_INO): New macros.
47291         (__getcwd): Define with prototype, not K&R form.
47292         Use heuristics to allocate default buffer on stack if possible.
47293         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
47294         behavior, and to avoid the PATH_MAX limit when computing
47295         ../../../../...
47296         Use MATCHING_INO to compare inode number to file.
47297         Check for arithmetic overflow in size calculations.
47298         Fix bug in reallocation of dot array that caused getcwd to fail
47299         on directories nested deeper than 75.
47300         Be more careful about saving errno on error.
47301         Do not use realloc; use only free+malloc, as this is a bit
47302         more flexible and avoids a needless copy operation.
47303         Do not inspect st_dev and st_ino for symbolic links; POSIX
47304         doesn't specify the latter.
47305         Check for closedir errors.
47306         Avoid needless casts.
47307         Use "#ifdef weak_alias" around weak_alias, to be like other
47308         glibc code.
47309         The following changes to getcwd.c have effect only when used in
47310         gnulib; they have no effect inside glibc proper.
47311         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
47312         as alloca isn't used.
47313         (alloca, __alloca): Likewise.
47314         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
47315         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47316         unconditionally, as gnulib assumes C89 or better.
47317         Do not include <sys/param.h>.
47318         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
47319         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
47320         better.
47321         (NULL) [!defined NULL]: Remove; we assume C89 or better.
47322         Include <dirent.h> in a way that is compatible with modern Autoconf.
47323         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
47324         New macros, if not already defined.
47325         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
47326         Use "_LIBC", not "defined _LIBC", for consistency.
47327         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
47328         a mempcpy module.
47329         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
47330         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
47331         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
47332         credit only to Jim Meyering and adjust the copyright dates.
47333         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
47334         <stdlib.h>, <unistd.h>, "pathmax.h".
47335         Instead, include "xgetcwd.h" (first) and "getcwd.h".
47336         (INITIAL_BUFFER_SIZE): Remove.
47337         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
47338
47339 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47340
47341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
47342         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
47343         Use the _ONCE methods, for efficiency.
47344         Check for fcntl.h.  In test program, include <errno.h>
47345         and <fcntl.h> if available.  Remove old K&R cruft from
47346         test program.  Check for common errors in GNU/Linux,
47347         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
47348         don't do AC_LIBOBJ, as that's getcwd.m4's job.
47349         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
47350         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
47351         name accordingly.
47352         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
47353         accommodate new getcwd.c.
47354         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
47355         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
47356         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
47357         that's all we need now.
47358
47359 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47360
47361         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
47362         argp-parse.c depends on getopt internals, that means we should
47363         always use our getopt, to be on the safe side.
47364         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
47365         order not to spoil the result of an eventual previous invocation
47366         of gl_GETOPT_SUBSTITUTE.
47367
47368 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47369
47370         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
47371         redefinition warnings. To avoid them, include the defines
47372         in `#if !defined __need_getopt ... #endif'. The only place
47373         where __getopt_argv_const is used is in definitions
47374         of getopt_long and getopt_long_only below, which are as well
47375         protected by `#ifndef __need_getopt'.
47376         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
47377         __need_getopt after including <stdio.h> and <unistd.h> These
47378         headers might have defined it.
47379
47380 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
47381
47382         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
47383
47384 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
47385
47386         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
47387         (futimens): New function, which uses futimes if available.
47388         (futimens, utimens): Support timespec==NULL, with same semantics
47389         as utime and utimens.
47390         * lib/utimens.h (futimens): New decl.
47391
47392 2004-11-23  Jim Meyering  <jim@meyering.net>
47393
47394         * lib/getopt_.h: Remove trailing blanks.
47395
47396 2004-11-23  Jim Meyering  <jim@meyering.net>
47397
47398         * lib/__fpending.c: Add comment.
47399
47400 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
47401
47402         * modules/canonicalize (Depends-on): Add xreadlink.
47403         Problem reported by James Youngman.
47404
47405 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47406
47407         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
47408         New macros.
47409         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
47410         optopt): Use them instead of invoking ## directly; otherwise, the
47411         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
47412
47413 2004-11-19  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/strtok_r.c: Move comments from here...
47416         * lib/strtok_r.h: ... to here.
47417
47418 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
47421         implementations that mishandle size_t overflow.
47422
47423 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
47426         might fail.  Problem reported by Yoann Vandoorselaere.
47427         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
47428         implementations that mishandle size_t overflow.
47429
47430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * modules/canon-host (Depends-on): Add strdup.
47433
47434 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
47437
47438 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47439
47440         * lib/canon-host.c: Include "strdup.h".
47441         (canon_host): Use getaddrinfo if available, so that IPv6 works.
47442         Use strdup instead of malloc/strcpy to duplicate strings.
47443
47444         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
47445         (human_space_before_unit): New constant.
47446         * lib/human.c (human_readable): Support it.
47447
47448         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
47449         (xgetcwd): Set errno correctly when failing.
47450         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
47451         the failure is actually due to a PATH_MAX problem.
47452
47453         Further getopt changes to make it more likely that glibc will
47454         buy the changes back.
47455         * lib/getopt.c (POSIXLY_CORRECT): New constant.
47456         (getopt): Use it, so to preserve glibc semantic
47457         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
47458         when compiling for libc.
47459         * lib/getopt_.h (__getopt_argv_const): Bring it back.
47460         (getopt_long, getopt_long_only): Use it.
47461
47462         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
47463         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
47464         (getopt): Argv is now char * const *, as per standard.
47465         (_getopt_internal_r, _getopt_internal): Argv is now char **,
47466         not char *__getopt_argv_const *.
47467         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
47468         _getopt_long_only_r): Likewise.
47469         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
47470         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
47471         _getopt_long_r, _getopt_long_only_r): Likewise.
47472         * lib/getopt_.h (__getopt_argv_const): Remove.
47473         (getopt): Argv is now char * const *, as per standard.
47474
47475         * lib/getdate.y (tORDINAL): New token.
47476         (day, relunit): Allow it for relative times.
47477         (relative_time_table): Use tORDINAL for ordinals.
47478
47479 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47480
47481         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
47482         Document that "second" isn't allowed as an ordinal number.
47483
47484 2004-11-16  Jim Meyering  <jim@meyering.net>
47485
47486         * modules/closeout (Depends-on): Add fpending.
47487
47488 2004-11-15  Jim Meyering  <jim@meyering.net>
47489
47490         * lib/closeout.c: Include "__fpending.h" once again.
47491         Include <stdbool.h>.
47492         (close_stdout): Don't fail just because stdout was closed initially,
47493         since some programs don't write to stdout in the normal course of
47494         operation (other than --version and --help), and we don't want this
47495         function to make e.g. `touch file >&-' fail.
47496         But do fail if it was closed and someone has tried to write to it.
47497         E.g., `printf foo >&-' must fail.
47498
47499 2004-11-13  Jim Meyering  <jim@meyering.net>
47500
47501         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
47502
47503 2004-11-12  Simon Josefsson  <jas@extundo.com>
47504
47505         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
47506         small doc fix is still pending.
47507
47508 2004-11-11  Simon Josefsson  <jas@extundo.com>
47509
47510         * modules/strtok_r: New file.
47511
47512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47513         strtok_r.
47514
47515 2004-11-11  Simon Josefsson  <jas@extundo.com>
47516
47517         * m4/strtok_r.m4: New file.
47518
47519         * m4/getopt.m4: Replace opterr.
47520
47521 2004-11-11  Simon Josefsson  <jas@extundo.com>
47522
47523         * lib/strtok_r.h, strtok_r.c: New file.
47524
47525 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47526
47527         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
47528         of replacing opterr, getopt, etc.  This should handle the
47529         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
47530
47531 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47532
47533         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
47534         we can stop lying to compilers about the constness of argv when we
47535         are compiled outside glibc.
47536         (getopt, getopt_long, getopt_long_only): Use it.
47537         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
47538         _getopt_internal, getopt): Likewise.
47539         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
47540         _getopt_long_only_r): Likewise.
47541         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
47542         _getopt_long_r, _getopt_long_only_r): Likewise.
47543
47544         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
47545         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
47546         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
47547         the other external symbols.
47548         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
47549         declaration, since the above renaming now works around collisions.
47550
47551 2004-11-11  Jim Meyering  <jim@meyering.net>
47552
47553         * lib/linebreak.c: Remove trailing blanks.
47554         * lib/alloca_.h: Likewise.
47555         * lib/acosl.c: Likewise.
47556         * lib/euidaccess.c: Likewise.
47557         * lib/allocsa.h: Likewise.
47558
47559 2004-11-10  Simon Josefsson  <jas@extundo.com>
47560
47561         * m4/getaddrinfo.m4: New file.
47562
47563 2004-11-10  Simon Josefsson  <jas@extundo.com>
47564
47565         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
47566
47567 2004-11-10  Simon Josefsson  <jas@extundo.com>
47568
47569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47570         getaddrinfo.
47571
47572         * modules/getaddrinfo: New file.
47573
47574 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47575
47576         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
47577
47578 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47579
47580         * lib/mktime.c (SHR): New macro, which is a portable
47581         substitute for >> that should work even on Crays.
47582         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
47583         Problem reported by Mark D. Baushke in
47584         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
47585         * lib/getdate.y (SHR): Likewise.
47586         (tm_diff): Use it.
47587         * lib/strftime.c (SHR): Likewise.
47588         (tm_diff): Use it.
47589         * lib/quotearg.c (struct quoting_options): Use unsigned int for
47590         quote_these_too, so that right shifts are well defined.  All uses
47591         changed.
47592
47593 2004-11-10  Jim Meyering  <jim@meyering.net>
47594
47595         Ensure that no close failure goes unreported.
47596         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
47597         return early when it seems there's nothing to flush.
47598         Don't include __fpending.h.
47599
47600 2004-11-10  Jim Meyering  <jim@meyering.net>
47601
47602         * modules/closeout (Depends-on): Remove fpending.
47603
47604 2004-11-10  Jim Meyering  <jim@meyering.net>
47605
47606         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
47607
47608 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47609
47610         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
47611         gl_FUNC_STRFTIME.
47612         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
47613         and AC_REQUIRE when possible, to avoid duplicate checks.
47614         Check for <wchar.h>.
47615
47616 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47617
47618         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
47619
47620 2004-11-09  Bruno Haible  <bruno@clisp.org>
47621
47622         * m4/sockpfaf.m4: New file.
47623
47624 2004-11-05  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
47627         Reported by Mark D. Baushke <mdb@cvshome.org>.
47628
47629 2004-11-04  Bruno Haible  <bruno@clisp.org>
47630
47631         2004-09-11  Bruno Haible  <bruno@clisp.org>
47632                 * allocsa.valgrind: New file.
47633         2004-02-06  Bruno Haible  <bruno@clisp.org>
47634                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
47635                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
47636                 Reported by Christopher Seip <chris.seip@hp.com>.
47637
47638 2004-11-04  Bruno Haible  <bruno@clisp.org>
47639
47640         * modules/allocsa (Files): Add lib/allocsa.valgrind.
47641         (Makefile.am): Distribute it.
47642
47643 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47644
47645         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
47646         with errno == ERANGE if the buffer is too small.
47647         Problem reported by Mark D. Baushke.
47648
47649 2004-11-03  Albert Chin  <china@thewrittenword.com>
47650             Paul Eggert  <eggert@cs.ucla.edu>
47651
47652         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
47653         equivalent, substitute $ac_type for equivalent type rather than
47654         blindly using uint32_t *always* which won't work if uint32_t is not
47655         available.  Define _UINT32_T to work around typedef of uint32_t if
47656         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
47657         2.5.1.
47658
47659 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
47660
47661         * m4/jm-macros.m4: Sync from coreutils.
47662         (gl_MACROS): Check for mbrlen, for pathchk.
47663         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
47664
47665 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
47666
47667         * lib/xreadlink.c (MAXSIZE): New macro.
47668         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
47669         size does not exceed MAXSIZE.  Avoid cast.
47670         As suggested by Mark D. Baushke in
47671         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
47672         if readlink fails with buffer size just under MAXSIZE, try again
47673         with MAXSIZE.
47674
47675 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
47676
47677         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
47678
47679 2004-11-02  Derek R. Price  <derek@ximbiot.com>
47680         and  Paul Eggert  <eggert@cs.ucla.edu>
47681
47682         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
47683         (get_date): Overparenthesize to avoid GCC warning.
47684
47685 2004-11-02  Bruno Haible  <bruno@clisp.org>
47686
47687         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
47688         returns void.
47689
47690 2004-11-02  Bruno Haible  <bruno@clisp.org>
47691
47692         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
47693         function returns void.
47694
47695 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47696
47697         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
47698         fflush_unlocked, flockfile, funlockfile, funlockfile,
47699         fputs_unlocked, putc_unlocked.
47700
47701 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47702
47703         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
47704         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
47705         already declared.
47706
47707 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47708
47709         * modules/getdate (Files): Add doc/getdate.texi.
47710         (Depends-on): Add setenv, xalloc.
47711
47712 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47713
47714         * lib/getdate.y: Add support for TZ="foo" within a date string.
47715         Fix some bugs near time_t boundaries.  Reject dates with
47716         out-of-range components, e.g., "Sept 31".
47717         Include <stdlib.h>, "setenv.h", "xalloc.h".
47718         (ISDIGIT_LOCALE): Remove; unused.
47719         Note that the TZ and time functions used here are not reentrant.
47720         (mktime_ok, get_tz): New functions.
47721         (TZBUFSIZE): New constant.
47722         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
47723         This requires that we sometimes generate our own TZ="XXX..." setting.
47724
47725 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         * doc/getdate.texi: New file, from coreutils with modifications for
47728         the new TZ parsing.
47729
47730 2004-10-27  Derek R. Price  <derek@ximbiot.com>
47731
47732         * lib/mktime.c (not_equal_tm): Remove redundant check.
47733
47734 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47735
47736         * modules/regex (lib_SOURCES): Add regex.c.
47737         Reported by James Youngman in
47738         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
47739
47740 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47741
47742         * lib/getdate.y: Use Bison 1.875 features, and some minor
47743         code cleanups.  This change does not affect semantics.
47744         Don't include <stdlib.h>; no longer needed.
47745         Don't include unlocked-io.h; only the "#if TEST" code uses
47746         stdio, and performance isn't crucial there.
47747         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
47748         Bison 1.875 features as described below.
47749         All uses of "PC." replaced by "pc->".
47750         (YYSTYPE): Add a forward declaration.
47751         (yylex, yyerror): Use full prototypes in forward decls.
47752         Use "%pure-parser" rather than obsolescent "%pure_parser".
47753         Use %parse-param and %lex-param instead of obsolescent
47754         YYPARSE_PARAM and YYLEX_PARAM.
47755         (meridian_table, month_and_day_table, time_units_table,
47756         relative_time_table, time_zone_table, military_table,
47757         lookup_zone, lookup_word, get_date):
47758         Use NULL instead of 0 where appropriate.
47759         (to_hour): Avoid abort (), to avoid a dependency on
47760         stdlib.h.
47761         (yyerror, yylex): Now accepts parser_control * arg.
47762         (main) [TEST]: Use '\0' rather than 0 for char.
47763
47764 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47765
47766         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
47767
47768 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47769
47770         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
47771         It's now the caller's responsibility to handle the case where
47772         !HAVE_GETPAGESIZE && !defined getpagesize.
47773
47774         * lib/mktime.c (leapyear): Arg is long int, not int.
47775
47776 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
47777
47778         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
47779
47780 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
47783         missing.  Problem reported by James Youngman.
47784
47785 2004-10-16  Simon Josefsson  <jas@extundo.com>
47786
47787         * gnulib-tool: Fix comments.  Fix parse problem.
47788         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
47789
47790 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
47791
47792         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
47793         implementation of getopt_long.  Problem reported by Alexander Taler in:
47794         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
47795
47796 2004-10-15  Bruno Haible  <bruno@clisp.org>
47797
47798         * gnulib-tool: Untabify. Initialize supplied_libname.
47799         (func_usage): More homogenous output.
47800         (func_modules_transitive_closure, func_modules_to_filelist,
47801         func_emit_lib_Makefile_am): New functions.
47802         (func_import): New function, extracted from big case statement. Use
47803         func_get_license, func_modules_transitive_closure,
47804         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
47805         opt_lgpl. Don't use test -a, as it's not portable.
47806         (func_create_testdir): Use func_modules_transitive_closure,
47807         func_modules_to_filelist, func_emit_lib_Makefile_am.
47808
47809 2004-10-15  Bruno Haible  <bruno@clisp.org>
47810
47811         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
47812
47813 2004-10-15  Bruno Haible  <bruno@clisp.org>
47814
47815         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
47816         the portions belonging to each module.
47817         Suggested by Derek Robert Price <derek@ximbiot.com>.
47818
47819 2004-10-12  Simon Josefsson  <jas@extundo.com>
47820
47821         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
47822         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
47823         to real functions.
47824
47825 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47826
47827         * modules/vsnprintf: New file.
47828
47829 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47830
47831         * m4/vsnprintf.m4: New file.
47832
47833 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47834
47835         * lib/vsnprintf.h: New file.
47836         * lib/vsnprintf.c: New file.
47837
47838 2004-10-11  Bruno Haible  <bruno@clisp.org>
47839
47840         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
47841         vsnprintf.
47842
47843 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47844
47845         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
47846
47847 2004-10-07  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
47850         fits into the provided buffer.
47851
47852 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47853
47854         * lib/diacrit.c, diacrit.h: Add GPL notice.
47855
47856         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
47857         notice.
47858         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
47859         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
47860         This avoids a potential constant-folding bug.
47861
47862 2004-10-05  Bruno Haible  <bruno@clisp.org>
47863
47864         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
47865         for the declaration of strsep.
47866
47867 2004-10-05  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
47870
47871 2004-10-04  Simon Josefsson  <jas@extundo.com>
47872
47873         * modules/memmem: New file.
47874         * tests/test-memmem.c: New file.
47875         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
47876
47877 2004-10-04  Simon Josefsson  <jas@extundo.com>
47878
47879         * m4/memmem.m4: New file.
47880
47881 2004-10-04  Simon Josefsson  <jas@extundo.com>
47882
47883         * lib/memmem.h: New file.
47884         * lib/memmem.c: New file, taken from glibc.
47885
47886 2004-10-04  Simon Josefsson  <jas@extundo.com>
47887
47888         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
47889         '#ifdef USE_UNLOCKED_IO'.
47890
47891 2004-10-04  Simon Josefsson  <jas@extundo.com>
47892
47893         * config/srclist.txt: Add memmem from glibc.
47894
47895 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47896
47897         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
47898
47899         * modules/argmatch, modules/argp, modules/closeout, modules/error,
47900         modules/exclude, modules/getdate, modules/getline,
47901         modules/getndelim2, modules/getpass, modules/getpass-gnu,
47902         modules/getusershell, modules/linebuffer, modules/md5,
47903         modules/mountlist, modules/posixtm, modules/readtokens,
47904         modules/readutmp, modules/regex, modules/sha1,
47905         modules/version-etc, modules/yesno:
47906         Remove dependency on unlocked-io.
47907
47908 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47909
47910         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
47911
47912         * m4/unlocked-io.m4: Add copyright notice.
47913         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
47914
47915 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47916
47917         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
47918         * lib/xmalloc.c (xmemdup): Likewise.
47919         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
47920         XFREE): Remove these long-obsolescent macros.
47921         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
47922         * lib/xstrdup.c: Remove.
47923
47924         * lib/regex.c (re_comp): Cast gettext return value to char *,
47925         Problem reported by Martin Neitzel via Mark D. Baushke.
47926
47927 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
47928
47929         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
47930         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
47931         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
47932         regex.c, sha1.c, version-etc.c, yesno.c:
47933         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
47934         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
47935         the includer's responsibility.
47936
47937         Sync from coreutils.
47938
47939         * lib/modechange.c (mode_compile): Don't decrement a pointer that
47940         points to the start of a string, as the C Standard says the
47941         resulting behavior is undefined.
47942
47943         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
47944         simple -> simple_backups, numbered_existing ->
47945         numbered_existing_backups, numbered -> numbered_backups
47946         to avoid shadowing problems.  All uses changed.
47947         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
47948         * lib/backupfile.c (check_extension, numbered_backup):
47949         Rename locals to avoid shadowing 'basename'.
47950         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
47951         once.
47952
47953         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
47954         * lib/.cvsignore: Add getopt.h.
47955
47956 2004-10-04  Bruno Haible  <bruno@clisp.org>
47957
47958         * modules/README: New file.
47959         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
47960         not a module.
47961
47962 2004-10-02  Jim Meyering  <jim@meyering.net>
47963
47964         * lib/dirfd.h, getpagesize.h: Add copyright notice.
47965
47966 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47967
47968         * modules/strsep: New file.
47969
47970 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47971
47972         * m4/strsep.m4: New file.
47973
47974 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47975
47976         * lib/strsep.h: New file.
47977         * lib/strsep.c: New file.
47978
47979 2004-10-01  Simon Josefsson  <jas@extundo.com>
47980
47981         * lib/snprintf.c (snprintf): Handle size==0.
47982
47983 2004-10-01  Simon Josefsson  <jas@extundo.com>
47984             Bruno Haible  <bruno@clisp.org>
47985
47986         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
47987         (snprintf): Declare 'args'.
47988
47989 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         * lib/snprintf.c: Remove comments as to why each header is needed.
47992
47993 2004-10-01  Bruno Haible  <bruno@clisp.org>
47994
47995         * MODULES.html.sh: Add strsep.
47996
47997 2004-09-30  Simon Josefsson  <jas@extundo.com>
47998
47999         * modules/snprintf: New file.
48000
48001 2004-09-30  Simon Josefsson  <jas@extundo.com>
48002
48003         * m4/snprintf.m4: New file.
48004
48005 2004-09-30  Simon Josefsson  <jas@extundo.com>
48006
48007         * lib/snprintf.h, lib/snprintf.c: New files.
48008
48009 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48010
48011         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
48012         (hol_entry_help): Never translate an empty string.
48013         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
48014         * lib/argp.h (OPTION_NO_TRANS): New option.
48015
48016 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
48017
48018         * modules/argp (Maintainer): Replace Simon Josefsson
48019         by Sergey Poznyakoff.
48020
48021 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
48022
48023         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
48024         changes merged back into glibc.
48025
48026 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
48027
48028         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
48029
48030 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48031
48032         * lib/xvasprintf.c: Include xalloc.h.
48033         (xvasprintf): Use xalloc_die, not xmalloc_die.
48034
48035 2004-09-29  Bruno Haible  <bruno@clisp.org>
48036
48037         * modules/alloca-opt: New file, derived from modules/alloca.
48038         * modules/allocsa: Depend on alloca-opt instead of alloca.
48039         * modules/setenv: Likewise.
48040         * modules/vasnprintf: Likewise.
48041         * MODULES.html.sh: Add alloca-opt.
48042
48043 2004-09-28  Simon Josefsson  <jas@extundo.com>
48044
48045         * gnulib-tool: New parameter --lgpl, to asseert that modules are
48046         LGPL, and to replace license template from GPL to LGPL.
48047
48048 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         * modules/dummy: Change license to LGPL.
48051
48052 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
48053
48054         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
48055
48056 2004-09-24  Simon Josefsson  <jas@extundo.com>
48057
48058         * modules/minmax (License): Change from GPL to LGPL.
48059
48060 2004-09-23  Simon Josefsson  <jas@extundo.com>
48061
48062         * gnulib-tool (--import): Typo.
48063
48064 2004-09-23  Simon Josefsson  <jas@extundo.com>
48065
48066         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
48067
48068 2004-09-22  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/*: Add 'License' field.
48071         * gnulib-tool: Accept --extract-license option.
48072         (func_get_license): New function.
48073
48074 2004-09-21  Bruno Haible  <bruno@clisp.org>
48075
48076         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
48077         Reported by Simon Josefsson.
48078
48079 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
48082         gl_AC_TYPE_LONG_LONG.
48083
48084 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48085
48086         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
48087
48088 2004-09-18  Simon Josefsson  <jas@extundo.com>
48089         and  Paul Eggert  <eggert@cs.ucla.edu>
48090
48091         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
48092         calls with autoreconf.  Define GL_LIB.
48093
48094 2004-09-14  Karl Berry  <karl@gnu.org>
48095
48096         * config/srclist.txt: unsync setenv.c, sigh.
48097
48098 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48099
48100         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
48101         Problem reported by Bruno Haible in:
48102         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
48103
48104 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * config/srclist.txt: Comment out argp-pvh.c.
48107
48108 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
48109
48110         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
48111         in case some system header has #define'd it.  Problem reported by
48112         Soeren D. Schulze in
48113         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
48114
48115 2004-09-09  Karl Berry  <karl@gnu.org>
48116
48117         * regex.[ch]: delete from the root.  These were supposed to be
48118                 synced with emacs cvs, but this has not happened for about
48119                 a year, and anyway nothing else uses emacs regex.[ch].
48120                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
48121                 lib/regex[.ch] is untouched.
48122
48123 2004-09-09  Bruno Haible  <bruno@clisp.org>
48124
48125         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
48126
48127 2004-09-09  Bruno Haible  <bruno@clisp.org>
48128
48129         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
48130         modifications.
48131         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
48132
48133 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
48134
48135         * modules/xvasprintf: New file.
48136         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
48137
48138 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
48139
48140         * lib/xvasprintf.h: New file.
48141         * lib/xvasprintf.c: New file.
48142         * lib/xasprintf.c: New file.
48143
48144 2004-09-08  Bruno Haible  <bruno@clisp.org>
48145
48146         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
48147
48148 2004-09-08  Bruno Haible  <bruno@clisp.org>
48149
48150         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
48151         length is > INT_MAX.
48152         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
48153         more.
48154
48155 2004-09-08  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/stdint_.h: New file, taken from GNU clisp.
48158
48159 2004-09-08  Bruno Haible  <bruno@clisp.org>
48160             Oskar Liljeblad  <oskar@osk.mine.nu>
48161
48162         * modules/stdint: New file.
48163         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
48164
48165 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48166
48167         Import from coreutils.
48168         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
48169         strings on unbounded length.  alloca's performance benefits aren't
48170         that important here.
48171         (V_STRDUP): Remove.
48172         (parse_with_separator): New function, with most of the internals
48173         of the old parse_user_spec.  Allow user to omit both user and group,
48174         for compatibility with FreeBSD.
48175         Clone only the user name, not the entire spec.
48176         Do not set *uid, *gid unless entirely successful.
48177         Avoid memory leak in some failing cases.
48178         Fix regression for USER.GROUP reported by Dmitry V. Levin in
48179         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
48180         (parse_user_spec): Rewrite to use parse_with_separator.
48181
48182 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48183
48184         * modules/userspec: Don't depend on alloca.
48185
48186 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48187
48188         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
48189
48190 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
48193         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
48194         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
48195
48196 2004-08-16  Simon Josefsson  <jas@extundo.com>
48197
48198         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
48199         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
48200         Add --dry-run for --import.
48201         Let user provided command line parameters override configure.ac
48202         settings.
48203
48204 2004-08-12  Simon Josefsson  <jas@extundo.com>
48205
48206         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
48207         as discussed with Paul Eggert in threads rooted at
48208         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
48209         and
48210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
48211         Before, the test was empty, and relied on ELIDE_CODE in source
48212         code.)
48213         (gl_PREREQ_GETOPT): New macro.
48214         (gl_GETOPT): Use them.
48215
48216 2004-08-12  Simon Josefsson  <jas@extundo.com>
48217
48218         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
48219         * lib/getopt_.h: Renamed from getopt.h.
48220
48221 2004-08-12  Simon Josefsson  <jas@extundo.com>
48222
48223         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
48224         Change default library name from libfoo to libgnu.
48225         Now, if you have a configure.ac that says:
48226                 gl_SOURCE_BASE(gl)
48227                 gl_M4_BASE(gl/m4)
48228                 gl_MODULES(error getopt etcetera)
48229                 gl_INIT
48230         you can import all you need by running:
48231                 ../gnulib/gnulib-tool --import
48232
48233         * modules/getopt (Files): Rename getopt.h to getopt_.h.
48234         (Makefile.am): Rewrite, use logic from argz.
48235         (Include): Use <getopt.h> instead of "getopt.h".
48236
48237 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48238
48239         * modules/argp (Files): Add m4/unlocked-io.m4.
48240         (Depends-on): Add extensions.
48241
48242 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
48245         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
48246         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
48247         Check for program_invocation_name, program_invocation_short_name,
48248         flockfile, funlockfile, features.h, _getopt_long_only_r.
48249
48250 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48251
48252         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
48253         its complicated substitute.
48254         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
48255         and program_invocation_name.
48256         (__argp_basename) [!_LIBC]: Remove; the only use was
48257         replaced by its body.
48258         (__argp_short_program_name): Change condition from
48259         !defined __argp_short_program_name to
48260         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
48261         to match argp-namefrob.h.
48262         (__argp_failure): Don't assume strerror_r returns char *.
48263         * lib/argp-parse.c (N_): Define unconditionally.
48264         (argp_default_options): Fill out initializers with 0 to avoid
48265         gcc warnings.
48266
48267 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
48270         getopt1.c.
48271
48272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48273
48274         Merge from coreutils.
48275
48276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
48277
48278         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
48279         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
48280
48281 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         Merge from coreutils.
48284
48285         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
48286         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
48287         for Reliant Unix 5.43.
48288
48289         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
48290         (union fooround): Use uintmax_t, not long int.
48291         The rest is a merge from libc:
48292         [defined _LIBC]: Include <shlib-compat.h>.
48293         (_obstack) [defined _LIBC]: Remove after 2.3.4.
48294
48295         * lib/settime.c (settime): Recode to avoid warning with
48296         Sun Forte C 6U2.
48297
48298         * lib/strverscmp.c: Convert to UTF-8.
48299
48300 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48301
48302         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48303         m4/uintmax_t.m4.
48304
48305 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48306
48307         * modules/xalloc-die: New file.
48308         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
48309
48310         * modules/md5 (Files): Add m4/uint32_t.m4.
48311         * modules/sha1: Renamed from modules/sha.
48312         (Files):
48313         Rename lib/sha.h to lib/sha1.h.
48314         Rename lib/sha.c to lib/sha1.c.
48315         Rename m4/sha.m4 to m4/sha1.m4.
48316         (lib_SOURCES): Likewise.
48317         (configure.ac): Rename gl_SHA to gl_SHA1.
48318         (Include): sha.h -> sha1.h.
48319
48320 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48321
48322         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
48323         * m4/sha1.m4: Renamed from sha.m4.
48324         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
48325
48326 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48327
48328         * lib/obstack.h (obstack_empty_p):
48329         Don't assume that chunk->contents is suitably aligned.
48330         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
48331         Likewise. Problem reported by Benno in
48332         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
48333
48334         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
48335         readable.  This could be improved further but it'd take some work.
48336
48337 2004-08-08  Simon Josefsson  <jas@extundo.com>
48338
48339         * modules/xgethostname (Depends-on): Remove exit and error (not
48340         used).
48341
48342         * modules/getpass-gnu: Add getpass.h.
48343         (Depends-on): Add stdbool.
48344         * modules/getpass: Add getpass.h.
48345
48346 2004-08-08  Simon Josefsson  <jas@extundo.com>
48347
48348         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
48349         Check getpass declaration.
48350
48351 2004-08-08  Simon Josefsson  <jas@extundo.com>
48352
48353         * lib/xgethostname.c: Don't include error.h (not used).
48354
48355         * lib/getpass.h: Add.
48356         * lib/getpass.c: Include getpass.h first.
48357
48358 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
48359
48360         * lib/xalloc-die.c: New file.
48361         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
48362         All uses removed.
48363         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
48364         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
48365         xalloc-die.c.
48366         (_, N_, xalloc_die): Move to xalloc-die.c.
48367         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
48368         so that we needn't mess with xalloc_msg_memory_exhausted.
48369
48370         * lib/sha1.h: Renamed from sha.h.
48371         (SHA1_H): Renamed from _SHA_H.
48372         (sha1_ctx): Renamed from sha_ctx.
48373         (sha1_init_ctx): Renamed from sha_init_ctx.
48374         (sha1_process_block): Renamed from sha_process_block.
48375         (sha1_process_bytes): Renamed from sha_process_bytes.
48376         (sha1_finish_ctx): Renamed from sha_finish_ctx.
48377         (sha1_read_ctx): Renamed from sha_read_ctx.
48378         (sha1_stream): Renamed from sha_stream.
48379         (sha1_buffer): Renamed from sha_buffer.
48380         * lib/sha1.c: Likewise; renamed from sha.c.
48381         Do not include <sys/types.h>.
48382         Include <stddef.h> rather than <stdlib.h>.
48383
48384 2004-08-08  Bruno Haible  <bruno@clisp.org>
48385
48386         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
48387         FILESYSTEM_PREFIX_LEN.
48388         * lib/progreloc.c: Likewise.
48389         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
48390
48391 2004-08-06  Simon Josefsson  <jas@extundo.com>
48392
48393         * modules/progname (Depends-on): Don't depend on stdbool.
48394
48395 2004-08-06  Simon Josefsson  <jas@extundo.com>
48396
48397         * modules/getsubopt: New file.
48398         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48399         getsubopt.
48400
48401 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48402
48403         More merge from coreutils.
48404
48405         * m4/utimens.m4, m4/utimecmp.m4: New files.
48406         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
48407         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
48408         prereq.m4, sha.m4: Import changes from coreutils.
48409
48410 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48411
48412         More merge from coreutils.
48413         * modules/raise, modules/readtokens0, modules/utimens:
48414         * modules/utimecmp, module/xnanosleep: New files.
48415         * modules/strftime: Add lib/strftime.h.
48416         Change include from <time.h> to "strftime.h".
48417         * modules/yesno: Add lib/yesno.h.
48418         * modules/backupfile: Remove lib/addext.c.
48419         * modules/euidaccess: Add stat-macros.h.
48420         * modules/canonicalize, modules/euidaccess,
48421         modules/filemode, modules/lchown, modules/makepath,
48422         modules/rmdir, modules/stat: Likewise.
48423
48424 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48425
48426         Merge from tar.
48427         * lib/argp-help.c (make_hol, hol_append): Don't assume that
48428         SIZE_MAX is a valid preprocessor constant.
48429         (__argp_basename): Change from "#ifndef _LIBC"
48430         to "#ifndef __argp_short_program_name", so that
48431         we don't compile these functions for tar.
48432
48433         More merges from coreutils.
48434         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
48435         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
48436         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
48437         * lib/addext.c: Remove; no longer needed.
48438         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
48439         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
48440         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
48441         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
48442         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
48443         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
48444         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
48445         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
48446         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
48447         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48448         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
48449         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
48450         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
48451         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
48452         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
48453         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
48454         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
48455         Import changes from coreutils.
48456
48457 2004-08-05  Simon Josefsson  <jas@extundo.com>
48458
48459         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
48460
48461 2004-08-05  Simon Josefsson  <jas@extundo.com>
48462
48463         * m4/getsubopt.m4: New file.
48464
48465 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         Merge from coreutils.
48468
48469         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
48470         * m4/getcwd-path-max.m4: New files.
48471
48472         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
48473         FILESYSTEM_PREFIX_LEN ->
48474         FILE_SYSTEM_PREFIX_LEN.
48475         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
48476         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
48477         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
48478         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
48479
48480         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
48481         prerequisite modules now handle the DOS stuff.
48482         Don't check for unistd.h.
48483
48484 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
48485
48486         Merge from coreutils.
48487
48488         * lib/.gdb-history: Remove; this doesn't belong here.
48489
48490         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
48491         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
48492         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
48493         * lib/getcwd.c: New files.
48494
48495         * lib/dirname.h: Include <stdbool.h>.
48496         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
48497         for consistency with POSIX terminology.  All uses changed.
48498         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
48499         (strip_trailing_slashes): Use bool for booleans.
48500         * lib/stripslash.c (strip_trailing_slashes): Likewise.
48501
48502         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
48503         sometimes returns a positive errno value even when it succeeds.
48504         (print_errno_message) [!LIBC]: Fall back on strerror if
48505         __strerror_r fails.
48506
48507         * lib/path-concat.c (mempcpy): Don't define if a system header defines
48508         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
48509         (longest_relative_suffix): New function.
48510         (path_concat): Use it.  Assume first argument is not NULL.
48511         Port to DOS.  Omit redundant separators.
48512         Report an error instead of returning NULL.
48513         Use mempcpy instead of memcpy.
48514         (xpath_concat): Remove: not declared or used.
48515
48516         * lib/same.h: Include <stdbool.h>
48517         (same_name): Return bool, not int.
48518         * lib/same.c (same_name): Likewise.
48519         (errno): Don't declare; we assume C89 or better now.
48520
48521         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
48522         if not already defined.
48523
48524         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
48525         * lib/dup-safer.c (errno): Likewise.
48526
48527 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         Merge from coreutils.
48530         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
48531         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
48532         * modules/path-concat: Don't depend on strdup.
48533
48534 2004-08-03  Simon Josefsson  <jas@extundo.com>
48535
48536         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
48537         * lib/progname.h: Don't include stdbool.h.
48538
48539 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
48540
48541         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
48542         * MODULES.html.sh (func_all_modules): Remove fatal.
48543
48544 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
48545
48546         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
48547
48548 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
48549
48550         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
48551         working.
48552
48553 2004-08-02  Simon Josefsson  <jas@extundo.com>
48554
48555         * lib/getsubopt.h: New file, with comments from Bruno Haible.
48556         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
48557         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
48558
48559 2004-08-01  Simon Josefsson  <jas@extundo.com>
48560
48561         * lib/xgetdomainname.c: Include stdlib.h, for free().
48562
48563 2004-07-19  Bruno Haible  <bruno@clisp.org>
48564
48565         * MODULES.html.sh (func_all_modules): Add dummy.
48566
48567 2004-07-16  Simon Josefsson  <jas@extundo.com>
48568
48569         * modules/dummy: New file.
48570
48571 2004-07-16  Simon Josefsson  <jas@extundo.com>
48572
48573         * lib/dummy.c: New file.
48574
48575 2004-07-16  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/backupfile.h: Add extern "C" for C++.
48578         * lib/closeout.h: Likewise.
48579         * lib/copy-file.h: Likewise.
48580         * lib/findprog.h: Likewise.
48581         * lib/full-write.h: Likewise.
48582         * lib/pathname.h: Likewise.
48583         * lib/progname.h: Likewise.
48584         * lib/stpcpy.h: Likewise.
48585         * lib/stpncpy.h: Likewise.
48586         * lib/strcase.h: Likewise.
48587         * lib/strstr.h: Likewise.
48588         * lib/xalloc.h: Likewise.
48589
48590         * lib/mbswidth.h: Add extern "C" for C++.
48591         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
48592
48593 2004-07-13  Robert Millan  <robertmh@gnu.org>
48594
48595         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
48596
48597 2004-07-09  Simon Josefsson  <jas@extundo.com>
48598
48599         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
48600         failed without this.)
48601
48602 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48603
48604         * modules/chown (Files): Add lib/fchown-stub.c, since
48605         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
48606
48607 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
48608
48609         * lib/fchown-stub.c: New file.
48610
48611 2004-06-24  Jim Meyering  <jim@meyering.net>
48612
48613         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
48614
48615 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48616
48617         * modules/argz: Omit "#include".
48618
48619         * MODULES.html.sh (func_all_modules): Add calloc, to match
48620         2004-06-01 addition of calloc module.
48621
48622 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48623
48624         * m4/argz.m4: New file, which is autoupdated from libtool.
48625
48626 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48627
48628         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
48629         libtool.
48630
48631 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48632
48633         * config/srclist-update: Don't insist on "USA." before the
48634         close-comment, as libtool omits the period and puts the */ on a
48635         separate line.
48636         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
48637         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
48638
48639 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
48640
48641         * modules/argz: New file.
48642         * MODULES.html.sh (func_all_modules): Add argz.
48643
48644 2004-06-12  Jim Meyering  <jim@meyering.net>
48645         and  Paul Eggert  <eggert@cs.ucla.edu>
48646
48647         * modules/hash (Files): Add lib/xalloc.h.
48648         * modules/pipe (Depends-on): Add wait-process.
48649         * modules/stat (Depends-on): Add xalloc.
48650         * modules/userspec (Files): Add lib/userspec.h.
48651         * modules/xstrto
48652
48653         Upgrade from gettext-0.13.
48654         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
48655         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
48656         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
48657
48658 2004-06-10  Jim Meyering  <jim@meyering.net>
48659
48660         * lib/calloc.c: New file.
48661
48662 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         * lib/getdate.y (yylex): Allow space between sign and number.
48665         Problem reported by Dan Jacobson.
48666
48667 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
48668
48669         Merge from coreutils CVS.
48670
48671         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
48672         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
48673         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
48674         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
48675         xstrtol.m4: Fix copyright date and/or serial number.
48676
48677         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
48678         See if we need an fchown replacement.
48679         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
48680         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
48681         and use the replacement function if we detect either defect.
48682
48683         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
48684         gl_UTIMECMP.
48685
48686 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
48687         and  Jim Meyering  <jim@meyering.net>
48688
48689         Merge from coreutils CVS.
48690
48691         * lib/stat-macros.h: New file, with contents from file-type.h
48692         and coreutils' system.h.
48693         * lib/file-type.c: Include "stat-macros.h".
48694         * lib/file-type.h (file_type): Move all macro definitions to new file,
48695         stat-macros.h.
48696
48697         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
48698         Wrap old code with this conditional.
48699         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
48700         function that does not dereference symlinks.
48701         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
48702
48703         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
48704         dependency problems.
48705         (xreadlink): Accept new arg SIZE, for efficiency.
48706         All decls and uses changed.
48707         * lib/xreadlink.h: Include <stddef.h>, for size_t.
48708
48709         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
48710         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
48711
48712         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
48713         sysexits.h.
48714
48715 2004-06-01  Jim Meyering  <jim@meyering.net>
48716
48717         * m4/calloc.m4: New file.
48718
48719 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
48720
48721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
48722         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
48723         Also, fix a typo in a diagnostic.
48724
48725 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
48726
48727         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
48728         or AC_FUNC_REALLOC.
48729
48730 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
48733         macros to be defined.
48734         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
48735         the allocator returns NULL because the requested size is zero.
48736
48737 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48738
48739         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
48740         var.  Add comment explaining why libc still defines it.  This
48741         merges the following patch from glibc:
48742         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
48743
48744 2004-05-20  Andreas Schwab  <schwab@suse.de>
48745
48746         * m4/free.m4: Replace free if it not known to work, not the other
48747         way round.
48748
48749 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
48750
48751         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
48752         present in glibc since revision 1.1 of this file.
48753         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
48754         obstack_alignment_mask, obstack_alloc, obstack_base,
48755         obstack_blank, obstack_blank_fast, obstack_chunk_size,
48756         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
48757         obstack_grow0, obstack_init, obstack_int_grow,
48758         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
48759         obstack_next_free, obstack_object_size, obstack_ptr_grow,
48760         obstack_ptr_grow_fast, obstack_room): Remove declarations of
48761         nonexistent functions.
48762
48763 2004-05-18  Karl Berry  <karl@gnu.org>
48764
48765         * config/srclist.txt: break link for vasnprintf.c.
48766
48767 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48768
48769         Port obstack to the AS/400, where pointers are 16 bytes wide and
48770         you cannot cast an integer to a valid pointer.  This patch is
48771         currently waiting to be integrated into glibc; see
48772         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
48773
48774         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
48775         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
48776         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
48777         (struct obstack): temp member is now a union of a pointer and
48778         an integer, instead of an integer.  All integer uses changed.
48779         This does not affect the physical layout of struct obstack,
48780         except on hosts (like the AS/400) where the size or alignment of
48781         void * is greater than that of ptrdiff_t.
48782         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
48783         __STDC__)]: Store temporary in pointer member of union, not
48784         integer member.
48785         * lib/obstack.c: Include <stddef.h>, for offsetof.
48786         (struct fooalign): Remove; it doesn't need a name.
48787         (union fooround): Change double to long double, and add void *.
48788         (DEFAULT_ALIGNMENT): Use offsetof to compute.
48789         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
48790         not a macro.  Hence the values are always int; so remove all
48791         casts-to-int in uses.
48792
48793 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
48796         we can get this patch merged into glibc.
48797
48798 2004-05-17  Derek R. Price  <derek@ximbiot.com>
48799             Paul Eggert  <eggert@cs.ucla.edu>
48800
48801         * m4/argp: Depend on alloca.
48802
48803 2004-05-17  Derek R. Price  <derek@ximbiot.com>
48804             Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
48807         freecoding.
48808
48809 2004-05-17  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
48812         precision that consists of a '.' followed by an empty digit string.
48813         Patch by Tor Lillqvist <tml@iki.fi>.
48814
48815 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
48818         for backward compatibility with older code.  We need our own
48819         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
48820         it under some other name, and our alloca.h will define it.
48821
48822 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48823             Derek Price  <derek@ximbiot.com>
48824
48825         * lib/alloca.c: Include <alloca.h>, to get our interface.
48826         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
48827         include <alloca.h> first.  Use C89 prototype for alloca; this
48828         requires including <stddef.h> for size_t.  Use extern "C" if C++.
48829         Use #elif for simplicity, since we can assume C89 now.
48830         Don't try to source the system alloca.h since it will not be found
48831         and to prevent recursively including its replacement.
48832         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
48833         * lib/regex.c: Likewise.
48834
48835 2004-05-16  Derek Price  <derek@ximbiot.com>
48836             Paul Eggert  <eggert@cs.ucla.edu>
48837
48838         getline cleanup.  This changes the getndelim2 API: both order of
48839         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
48840         no delimiter).
48841
48842         * lib/getline.c: Don't include stddef.h or stdio.h, since our
48843         interface does that.
48844         (getline): Always use getdelim, so that we don't have two
48845         copies of this code.
48846         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
48847         if available.
48848         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
48849         (GETNDELIM2_MAXIMUM): New macro.
48850         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
48851         instead of the old practice of delim2==0.  All callers changed.
48852         Return -1 on overflow, instead of returning junk.
48853         Do not set *linesize unless allocation succeeds.
48854         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
48855         that we include sys/types.h.
48856         * lib/getnline.h: Likewise.
48857         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
48858         (getndelim2): Reorder arguments.
48859         * lib/getnline.c (getnline, getndelim):
48860         Don't discard the NMAX argument.
48861         (getnline): Invoke getndelim, to avoid code duplication.
48862         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
48863         of (size_t) -1 by callers of the getnline family.
48864
48865 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48866
48867         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
48868         Check for gettimeofday.
48869         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
48870         Check for settimeofday, stime.
48871
48872 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48873
48874         * lib/nanosleep.c (suspended): Change its type from int to
48875         sig_atomic_t volatile.
48876         (first_call): Make it private to rpl_nanosleep, and have it
48877         be zero initially as that's a bit faster.
48878         (my_usleep): Round up fractional times instead of truncating them,
48879         as this is the usual meaning for 'sleep'.
48880
48881         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
48882         doesn't work.
48883         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
48884         (ENOSYS): Define if not defined.
48885         (settime): Fall back on stime if it exists and settimeofday fails.
48886         But don't bother with fallbacks if a method fails with errno == EPERM.
48887
48888 2004-05-11  Jim Meyering  <jim@meyering.net>
48889
48890         Prior to this change, the save_cwd caller required read access to the
48891         current directory on most systems (ones with the fchdir function).
48892
48893         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
48894         fails, try write-only, and finally, resort to using xgetcwd.
48895
48896 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48897
48898         * lib/obstack.c, obstack.h: Import changes from libc.
48899
48900 2004-04-28  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
48903         also implicitly appends .exe to executables.
48904         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
48905         accepts Windows pathnames.
48906         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
48907         Treat Cygwin like Windows, since it now accepts Windows pathnames.
48908         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
48909         Treat Cygwin like Windows, since it now accepts Windows pathnames.
48910         Reported by Derek Robert Price <derek@ximbiot.com>.
48911
48912 2004-04-21  Karl Berry  <karl@gnu.org>
48913
48914         * config/srclist.txt (localcharset.c): break sync.
48915
48916 2004-04-20  Paul Eggert  <eggert@twinsun.com>
48917
48918         * m4/host-os.m4: Add a copyright notice.
48919
48920 2004-04-20  Jim Meyering  <jim@meyering.net>
48921
48922         Change UTILS_ to gl_ in AC_DEFINE'd names.
48923         Change utils_- and jm_-prefixed variables, too.
48924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
48925         UTILS_FUNC_MKDIR_TRAILING_SLASH.
48926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
48927
48928         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
48929         Don't emit trailing blanks.
48930         Also rename jm_-prefixed variables to have gl_ prefix.
48931
48932         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
48933         Also rename jm_-prefixed variables to have gl_ prefix.
48934
48935         * m4/jm-macros.m4: Reflect the renamings.
48936         * m4/prereq.m4: Likewise.
48937
48938 2004-04-20  Jim Meyering  <jim@meyering.net>
48939
48940         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
48941         memory.
48942
48943 2004-04-20  Jim Meyering  <jim@meyering.net>
48944             Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
48947         memory when realloc fails.
48948
48949 2004-04-19  Jim Meyering  <jim@meyering.net>
48950
48951         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
48952         now that readutmp.c may call `free (0)'.
48953
48954 2004-04-19  Bruno Haible  <bruno@clisp.org>
48955
48956         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
48957         * m4/inttypes_h.m4: Likewise.
48958         * m4/stdint_h.m4: Likewise.
48959         * m4/intmax_t.m4: Likewise.
48960         * m4/uintmax_t.m4: Likewise.
48961
48962 2004-04-18  Jim Meyering  <jim@meyering.net>
48963
48964         * m4/prereq.m4: Don't forbid jm_ prefix.
48965
48966         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
48967         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
48968         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
48969         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
48970         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
48971         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
48972         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
48973         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
48974         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
48975         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
48976         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
48977         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
48978         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
48979         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
48980         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
48981         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
48982         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
48983         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
48984         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
48985
48986 2004-04-18  Jim Meyering  <jim@meyering.net>
48987
48988         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
48989         failure, don't leak memory and do call END_UTMP_ENT.
48990
48991 2004-04-16  Jim Meyering  <jim@meyering.net>
48992
48993         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
48994         coreutils' stat program.
48995         (gl_PREREQ): Don't require jm_PREREQ_STAT.
48996
48997 2004-04-11  Paul Eggert  <eggert@twinsun.com>
48998
48999         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
49000         C89.
49001         (CHAR_BIT): Remove, since we assume C89.
49002         Include <stdint.h> if available, as per current Autoconf CVS advice.
49003
49004 2004-03-31  Jim Meyering  <jim@meyering.net>
49005
49006         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
49007         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
49008         * m4/xalloc.m4: Likewise.
49009
49010 2004-03-30  Paul Eggert  <eggert@twinsun.com>
49011
49012         Merge from coreutils.
49013
49014         * m4/inttostr.m4: New file.
49015         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
49016         Require AM_STDBOOL_H and gl_TIMESPEC instead.
49017         Require gl_CLOCK_TIME.
49018         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
49019
49020 2004-03-30  Paul Eggert  <eggert@twinsun.com>
49021
49022         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
49023         not bool, to be more consistent with Unix conventions.
49024         Suggested by Bruno Haible.
49025
49026         Merge from coreutils.
49027
49028         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
49029         * lib/umaxtostr.c: New files.
49030
49031         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
49032         the usual <time.h> dance.
49033         (get_date): Change signature to support fractional time stamps.
49034         All callers changed.
49035         * lib/getdate.y: Include "getdate.h" first, as we can now
49036         assume C89 and don't need to worry about 'const'.
49037         Similarly, include "unlocked-io.h" near start, not in middle.
49038         Include <limits.h>.
49039         (textint.value): Use long int rather than int.
49040         (textint.digits): Use size_t rather than int.
49041         (BILLION, LOG10_BILLION): New constants.
49042         (parser_control): New member rel_ns.  Members day_ordinal,
49043         time_zone, month, day, hour, minutes, rel_year, rel_month,
49044         rel_day, rel_hour, rel_minutes, rel_seconds
49045         are now long int, not int.  Member seconds is now struct timespec,
49046         not int.  New member timespec_seen.  Members dates_seen, days_seen,
49047         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
49048         not int.
49049         (%union.intval): Now long int, not int.
49050         New member timespec.
49051         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
49052         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
49053         (spec): Now is a timespec or an item list.
49054         (timespec, items): New nonterminals.
49055         (time, rel, relunit, number, get_date):
49056         Add support for fractional seconds.
49057         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
49058         (gmtime, localtime, mktime): Remove decls; not needed with C89.
49059         (to_hour): First arg is now long int, not int.
49060         (to_year): Returns long int, not int.
49061         Don't treat year -70 like 70.
49062         (tm_diff): Returns long int, not int.
49063         (lookup_word): Use bool instead of int when appropriate.
49064         (yylex): Use size_t for count, not int.
49065         Detect overflow when parsing large integer constants.
49066         Add support for fractions.
49067         (get_date): Make pointers 'const' if possible.
49068         Use more-portable code to detect integer overflow.
49069         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
49070         Don't use ctime; it's not reliable if the year has >4 digits.
49071
49072         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
49073         This is for compatibility with BSD.
49074
49075         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
49076         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
49077         From coreutils' system.h.
49078
49079         * lib/userspec.c: Don't include "posixver.h".
49080         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
49081         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
49082         compatible extension.  Simplify code by removing a boolean int
49083         that was always nonzero if a string was nonnull.
49084
49085 2004-03-30  Jim Meyering  <jim@meyering.net>
49086
49087         Merge from coreutils.
49088
49089         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
49090         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
49091         on some systems one must include <grp.h> before it.
49092         Reported by Christian Krackowizer.
49093
49094 2004-03-30  Jim Meyering  <jim@meyering.net>
49095
49096         Merge from coreutils.
49097
49098         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
49099
49100         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
49101         an empty input stream.
49102
49103         * lib/readtokens.c: Include <stdbool.h>.
49104         (readtoken): Use `size_t' rather than int/long.
49105         All callers adjusted.
49106         Use `bool' rather than `int' where appropriate.
49107         Use memset rather than an explicit loop.
49108         Use x2nrealloc rather than xrealloc.
49109         Allow the use of `\0' as a delimiter.
49110         (readtokens): Likewise.
49111         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
49112
49113 2004-03-30  Jim Meyering  <jim@meyering.net>
49114
49115         * m4/realloc.m4: Remove file, since now it does no more than
49116         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
49117         the `configure.ac' section of module/realloc.
49118         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
49119
49120 2004-03-30  Bruno Haible  <bruno@clisp.org>
49121
49122         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
49123         nonnull.
49124
49125 2004-03-29  Paul Eggert  <eggert@twinsun.com>
49126
49127         Merge changes to getloadavg.c from coreutils and Emacs.
49128
49129         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
49130         Define to an expression, not to the empty string.
49131         Include cloexec.h and xalloc.h.
49132         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
49133         Use set_cloexec_flag rather than rolling our own.
49134         * lib/cloexec.c, lib/cloexec.h: New files.
49135
49136 2004-03-29  Paul Eggert  <eggert@twinsun.com>
49137
49138         * m4/cloexec.m4: New file.
49139
49140 2004-03-18  Paul Eggert  <eggert@twinsun.com>
49141
49142         * lib/getopt.h: Sync with libc CVS.
49143
49144 2004-03-18  Paul Eggert  <eggert@twinsun.com>
49145             Bruno Haible  <bruno@clisp.org>
49146
49147         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
49148         mbswidth.
49149
49150 2004-03-18  Paul Eggert  <eggert@twinsun.com>
49151             Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/mbswidth.h: Include <wchar.h> only if
49154         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
49155         <wchar.h>.
49156         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
49157
49158 2004-03-09  Paul Eggert  <eggert@twinsun.com>
49159
49160         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
49161         Sync with libc CVS.
49162         * lib/getopt_int.h: New file, also synced from libc.
49163
49164 2004-03-09  Paul Eggert  <eggert@twinsun.com>
49165
49166         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
49167         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
49168         Bring back getopt.c, getopt.h, getopt1.c.
49169
49170 2004-03-07  Paul Eggert  <eggert@twinsun.com>
49171
49172         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
49173         All uses changed.  Check for sa_sigaction member; this fixes
49174         a bug first reported by Jason Andrade in
49175         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49176
49177 2004-03-07  Paul Eggert  <eggert@twinsun.com>
49178
49179         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
49180         '#if' expressions.  Unlike the code it replaces, it does not
49181         depend on (defined _SC_PAGESIZE).  However, it does depend on
49182         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
49183         first reported by Jason Andrade in
49184         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49185
49186 2004-02-25  Simon Josefsson  <jas@extundo.com>
49187
49188         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
49189
49190 2004-02-25  Simon Josefsson  <jas@extundo.com>
49191
49192         * lib/strdup.h: New file.
49193         * lib/strdup.c: Include it.
49194         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
49195         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
49196
49197 2004-02-23  Karl Berry  <karl@gnu.org>
49198
49199         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
49200         (from fencepost.gnu.org:/gd/gnuorg).
49201
49202 2004-02-23  Karl Berry  <karl@gnu.org>
49203
49204         * config/srclistvars.sh (GNUORG) [karl]: redefine.
49205         * config/srclist.txt: add maintain/standards documents.
49206
49207 2004-02-18  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
49210         Reported by Derek Robert Price <derek@ximbiot.com>.
49211
49212 2004-02-16  Karl Berry  <karl@gnu.org>
49213
49214         * config/mkinstalldirs, install-sh: update from automake.
49215
49216 2004-02-06  Karl Berry  <karl@gnu.org>
49217
49218         * m4/po.m4: update from gettext 0.14.1.
49219
49220 2004-02-06  Karl Berry  <karl@gnu.org>
49221
49222         * lib/config.charset: update from gettext 0.14.1.
49223
49224 2004-02-05  Paul Eggert  <eggert@twinsun.com>
49225
49226         Add comments and code, prompted by suggestions from Bruno Haible
49227         for sh-quote.
49228         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
49229         describing the enum quoting_style values.
49230         * lib/quotearg.c (quotearg_alloc): New function.
49231         (quotearg_buffer_restyled): Treat lone { and } as special.
49232         Treat = as special.  Work around bug with older shells
49233         that "see" a '\' that is really the 2nd byte of a multibyte char.
49234         Quote empty string with shell_quoting_style.
49235
49236 2004-02-03  Bruno Haible  <bruno@clisp.org>
49237
49238         * m4/pipe.m4: New file, from GNU gettext.
49239
49240 2004-02-03  Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/pipe.h: New file, from GNU gettext.
49243         * lib/pipe.c: New file, from GNU gettext.
49244
49245 2004-01-27  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/execute.m4: New file, from GNU gettext.
49248
49249 2004-01-27  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/execute.h: New file, from GNU gettext.
49252         * lib/execute.c: New file, from GNU gettext.
49253         * lib/w32spawn.h: New file, from GNU gettext.
49254
49255 2004-01-24  Paul Eggert  <eggert@twinsun.com>
49256
49257         Merge from diffutils.
49258
49259         * lib/file-type.c (file_type): Add typed memory objects.
49260         * lib/file-type.h (S_TYPEISTMO): New macro.
49261
49262         * lib/c-stack.h (c_stack_action): Remove argv argument.
49263         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
49264         (die): Don't calculate message unless segv_action returns.
49265         (get_stack_location, min_address_from_argv, max_address_from_argv,
49266         volatile stack_base, volatile_stack_size): Remove.
49267         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
49268         that every segmentation violation is a stack overflow.  (Ouch!)
49269         See Debian bug 136249 (still outstanding) for more info about why
49270         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
49271
49272 2004-01-24  Paul Eggert  <eggert@twinsun.com>
49273
49274         Exit-status fix from coreutils.
49275
49276         Use exit_failure consistently in place of EXIT_FAILURE,
49277         so that program exit statuses are consistent on failure.
49278
49279         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
49280         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
49281         * lib/argmatch.h: Comment fix to match the above.
49282         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
49283         Now a macro referring to exit_failure, instead of a separate
49284         variable.  Include "exitfail.h" to get it.
49285         * lib/xstrtol.h: Include "exitfail.h".
49286         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
49287
49288         * lib/long-options.c (parse_long_options): Use prototype
49289         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
49290         for clarity.
49291
49292 2004-01-21  Jim Meyering  <jim@meyering.net>
49293
49294         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
49295         so as not to conflict with a different-sized __mktime_internal
49296         function in GNU libc.
49297         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
49298         Problem building statically-linked `ls' reported by Michael Brunnbauer.
49299
49300 2004-01-20  Karl Berry  <karl@gnu.org>
49301
49302         * config/config.guess: update from config.
49303
49304         * config/srclistvars.sh: GNUWWWLICENSES for karl.
49305
49306 2004-01-20  Bruno Haible  <bruno@clisp.org>
49307
49308         Safer stack allocation.
49309         * lib/setenv.c: Include allocsa.h.
49310         (alloca): Remove fallback definition.
49311         (freea): Remove macro.
49312         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
49313         instead of freea.
49314
49315 2004-01-20  Bruno Haible  <bruno@clisp.org>
49316
49317         * m4/eealloc.m4: New file, from GNU gettext.
49318
49319 2004-01-20  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/allocsa.m4: New file, from GNU gettext.
49322
49323 2004-01-20  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/xallocsa.h: New file, from GNU gettext.
49326         * lib/xallocsa.c: New file, from GNU gettext.
49327
49328 2004-01-20  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
49331
49332 2004-01-20  Bruno Haible  <bruno@clisp.org>
49333
49334         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
49335         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
49336         specially.
49337
49338 2004-01-20  Bruno Haible  <bruno@clisp.org>
49339
49340         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
49341         patch.
49342
49343 2004-01-20  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
49346
49347 2004-01-20  Bruno Haible  <bruno@clisp.org>
49348
49349         * lib/eealloc.h: New file.
49350
49351 2004-01-20  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/binary-io.h: Avoid warnings on Cygwin.
49354
49355 2004-01-20  Bruno Haible  <bruno@clisp.org>
49356
49357         * lib/allocsa.h: New file, from GNU gettext.
49358         * lib/allocsa.c: New file, from GNU gettext.
49359
49360 2004-01-18  Karl Berry  <karl@gnu.org>
49361
49362         * doc/gpl.texi, doc/lgpl.texi: new files.
49363
49364 2004-01-18  Karl Berry  <karl@gnu.org>
49365
49366         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
49367         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
49368
49369 2004-01-15  Paul Eggert  <eggert@twinsun.com>
49370
49371         Merge from coreutils.
49372
49373         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
49374         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
49375         (gl_DEFAULT_POSIX2_VERSION): Move
49376         the documentation from 'configure' into 'config.hin',
49377         so that 'configure --help' isn't burdened by it and
49378         we don't have to worry about its formatting there.
49379         Reword the documentation so that it's more succinct
49380         and can be run together into a single paragraph.
49381         * m4/same.m4 (gl_SAME): Check for pathconf.
49382
49383 2004-01-15  Paul Eggert  <eggert@twinsun.com>
49384
49385         Merge from coreutils.
49386
49387         * lib/posixver.c: Include posixver.h.
49388
49389         * lib/same.c: Include <stdbool.h>, <limits.h>.
49390         (_POSIX_NAME_MAX): Define if not defined.
49391         (MIN): New macro.
49392         (same_name): If file names are silently truncated, report
49393         that the file names are the same if they are the same after
49394         the silent truncation.
49395
49396         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
49397         conversion function.
49398         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
49399         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
49400         longer needed.
49401
49402 2004-01-15  Jim Meyering  <jim@meyering.net>
49403
49404         Merge from coreutils.
49405
49406         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
49407         if no library is required.
49408         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
49409         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
49410         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
49411         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
49412         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
49413         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
49414         value, $ac_cv_search_crypt, if it's "none required".
49415         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
49416         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
49417         not gl_FUNC_GETLOADAVG.
49418         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
49419         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
49420
49421 2004-01-15  Jim Meyering  <jim@meyering.net>
49422
49423         Merge from coreutils.
49424
49425         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
49426         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
49427         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
49428
49429         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
49430         optional configure-time default.
49431
49432         * lib/version-etc.c (version_etc_copyright): Update copyright date.
49433
49434         * lib/xreadlink.c (xreadlink): Correct outdated comment.
49435
49436 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
49437
49438         Merge from coreutils.
49439
49440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
49441         value, $ac_cv_search_nanosleep, if it's "none required".
49442
49443 2004-01-14  Paul Eggert  <eggert@twinsun.com>
49444
49445         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
49446         with like-named macro in fnmatch.c.
49447         (EXT): Use an internal constant instead.
49448
49449         Merge fnmatch patches from glibc.
49450         * lib/fnmatch.c (mbsinit): Remove define.
49451         Add libc_hidden_ver (__fnmatch, fnmatch).
49452         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
49453         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
49454
49455 2004-01-14  Karl Berry  <karl@gnu.org>
49456
49457         * config/install-sh: update from automake.
49458
49459 2004-01-13  Karl Berry  <karl@gnu.org>
49460
49461         * config/install-sh: update from automake.
49462
49463 2004-01-09  Karl Berry  <karl@gnu.org>
49464
49465         * config/install-sh: update from automake.
49466
49467 2004-01-05  Karl Berry  <karl@gnu.org>
49468
49469         * config/config.{sub,guess}: update from config.
49470
49471 2003-12-31  Karl Berry  <karl@gnu.org>
49472
49473         * config/depcomp: update from automake.
49474
49475 2003-12-14  Karl Berry  <karl@gnu.org>
49476
49477         * lib/config.charset: update from gettext-runtime.
49478
49479 2003-12-03  Paul Eggert  <eggert@twinsun.com>
49480
49481         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
49482         Bug reported by Alfred M. Szmidt.
49483
49484 2003-12-03  Bruno Haible  <bruno@clisp.org>
49485
49486         * m4/gettext.m4: Upgrade from gettext-0.13.
49487         * m4/po.m4: Upgrade from gettext-0.13.
49488         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
49489         * m4/intmax.m4: New file, from gettext-0.13.
49490         * m4/printf-posix.m4: New file, from gettext-0.13.
49491
49492 2003-11-29  Karl Berry  <karl@gnu.org>
49493
49494         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
49495
49496 2003-11-25  Paul Eggert  <eggert@twinsun.com>
49497             Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/printf-parse.h: Don't include sys/types.h.
49500         (ARG_NONE): New macro.
49501         (char_directive): Change type of *arg_index fields to size_t.
49502         * lib/printf-parse.c: Don't include sys/types.h.
49503         (SSIZE_MAX): Remove macro.
49504         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
49505         Remove unnecessary overflow check.
49506         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
49507         fields.
49508
49509 2003-11-25  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
49512
49513 2003-11-25  Bruno Haible  <bruno@clisp.org>
49514
49515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
49516         gt_TYPE_SSIZE_T.
49517
49518 2003-11-24  Paul Eggert  <eggert@twinsun.com>
49519
49520         * modules/alloca: Remove dependency on xalloc.
49521
49522 2003-11-24  Paul Eggert  <eggert@twinsun.com>
49523
49524         * lib/alloca.c: Remove dependency on xalloc module.
49525         (xalloc_die): Remove.
49526         (memory_full) [!defined emacs]: New macro.
49527         [!defined emacs]: Don't include xalloc.h.
49528         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
49529         address arithmetic overflows.  Change datatypes a bit to avoid
49530         unnecessary casts.
49531
49532 2003-11-22  Jim Meyering  <jim@meyering.net>
49533
49534         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
49535         s/size/size_t/.
49536
49537 2003-11-21  Karl Berry  <karl@gnu.org>
49538
49539         * config/config.{sub,guess}: update from config.
49540
49541 2003-11-18  Karl Berry  <karl@gnu.org>
49542
49543         * config/config.{sub,guess}: update from config.
49544
49545         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
49546
49547 2003-11-17  Paul Eggert  <eggert@twinsun.com>
49548
49549         * README: Mention that S+T cannot overflow if S is the size of
49550         an existing object and T is sufficiently small.
49551
49552 2003-11-17  Jim Meyering  <jim@meyering.net>
49553
49554         On systems without utime and without a utimes function capable of
49555         dealing with a NULL struct utimbuf* argument, this utime replacement
49556         could -- in unusual circumstances -- leak a file descriptor.
49557         * lib/utime.c: Include <unistd.h> and <errno.h>.
49558         (utime_null): Be sure to close `fd' and to preserve errno.
49559         Reported by Geoff Collyer via Arnold Robbins.
49560
49561 2003-11-17  Bruno Haible  <bruno@clisp.org>
49562
49563         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
49564         (Depends-on): Add xsize.
49565
49566 2003-11-17  Bruno Haible  <bruno@clisp.org>
49567
49568         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
49569
49570 2003-11-17  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/vasnprintf.c (alloca): Remove fallback definition.
49573         (freea): Remove definition.
49574         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
49575         Reported by Paul Eggert.
49576
49577 2003-11-16  Paul Eggert  <eggert@twinsun.com>
49578             Bruno Haible  <bruno@clisp.org>
49579
49580         Protect against address arithmetic overflow.
49581         * lib/printf-args.h: Include stddef.h.
49582         (arguments): Change type of field 'count' to size_t.
49583         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
49584         'unsigned int' where appropriate.
49585         * lib/printf-parse.h: Include sys/types.h.
49586         (char_directive): Change type of *arg_index fields to ssize_t.
49587         (char_directives): Change type of fields 'count', max_*_length to
49588         size_t.
49589         * lib/printf-parse.c: Include sys/types.h and xsize.h.
49590         (SSIZE_MAX): Define fallback value.
49591         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
49592         instead of 'int' where appropriate. Check a_allocated, d_allocated
49593         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
49594         * lib/vasnprintf.c: Include xsize.h.
49595         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
49596         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
49597         overflow. Avoid wraparound when converting a width or precision from
49598         decimal to binary.
49599
49600 2003-11-16  Bruno Haible  <bruno@clisp.org>
49601
49602         Update from GNU gettext.
49603         * lib/printf-parse.c: Generalize to it can be compiled for wide
49604         strings.
49605         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
49606         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
49607         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
49608         SNPRINTF): New macros.
49609         Don't include <alloca.h> if the file is used inside libintl.
49610         (local_wcslen): New function, for Solaris 2.5.1.
49611         (VASNPRINTF): Use it instead of wcslen.
49612
49613 2003-11-16  Bruno Haible  <bruno@clisp.org>
49614
49615         * lib/xsize.h (xmax): New function.
49616         (xsum, xsum3, xsum4): Declare as "pure" functions.
49617
49618 2003-11-12  Paul Eggert  <eggert@twinsun.com>
49619
49620         * modules/xalloc (Files): Undo latest change, since xalloc.h
49621         no longer needs SIZE_MAX or PTRDIFF_MAX.
49622
49623 2003-11-12  Paul Eggert  <eggert@twinsun.com>
49624
49625         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
49626         gl_PTRDIFF_MAX.
49627
49628 2003-11-12  Paul Eggert  <eggert@twinsun.com>
49629
49630         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
49631         "return", to pacify some unknown compiler.  Problem reported
49632         by Joerg Schilling.
49633
49634 2003-11-12  Paul Eggert  <eggert@twinsun.com>
49635
49636         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
49637         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
49638         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
49639         heuristic is just as accurate as far as we know, and it removes a
49640         dependency on size_max.m4 and ptrdiff_max.m4.
49641
49642 2003-11-11  Bruno Haible  <bruno@clisp.org>
49643
49644         * modules/xsize (Files): Add m4/size_max.m4.
49645         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
49646
49647 2003-11-11  Bruno Haible  <bruno@clisp.org>
49648
49649         * m4/size_max.m4: New file.
49650         * m4/ptrdiff_max.m4: New file.
49651         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
49652         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
49653         (gl_XALLOC): Invoke it.
49654
49655 2003-11-11  Bruno Haible  <bruno@clisp.org>
49656
49657         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
49658         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
49659         defined.
49660
49661 2003-11-10  Paul Eggert  <eggert@twinsun.com>
49662
49663         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
49664         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
49665         rejected some allocations of exactly SIZE_MAX - 2 bytes.
49666         From Bruno Haible.
49667         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
49668         not (size_t) -1, since it's defined here.
49669
49670 2003-11-09  Karl Berry  <karl@gnu.org>
49671
49672         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
49673
49674 2003-11-06  Paul Eggert  <eggert@twinsun.com>
49675
49676         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
49677         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
49678         Reject sizes of exactly SIZE_MAX bytes.
49679         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
49680         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
49681
49682 2003-11-05  Bruno Haible  <bruno@clisp.org>
49683
49684         * lib/xsize.h: Include limits.h, to avoid a possible collision with
49685         SIZE_MAX defined in <limits.h> on Solaris.
49686
49687 2003-11-04  Jim Meyering  <jim@meyering.net>
49688
49689         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
49690         variable names, rather than @VAR@.
49691         * modules/poll: Likewise.
49692
49693 2003-11-04  Bruno Haible  <bruno@clisp.org>
49694
49695         * modules/xsize: New file.
49696         * modules/linebreak: Depend on xsize.
49697         * MODULES.html.sh (func_all_modules): Add xsize.
49698
49699 2003-11-04  Bruno Haible  <bruno@clisp.org>
49700
49701         * m4/xsize.m4: New file.
49702
49703 2003-11-04  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/xsize.h: New file.
49706         * lib/linebreak.c: Include xsize.h.
49707         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
49708         argument for overflow.
49709         Suggested by Paul Eggert.
49710
49711 2003-11-03  Karl Berry  <karl@gnu.org>
49712
49713         * config/config.{guess,sub}: update from config.
49714
49715 2003-11-03  Jim Meyering  <jim@meyering.net>
49716
49717         * modules/userspec (lib_SOURCES): Add userspec.h.
49718         (Include): Add "userspec.h".
49719         Improve description.
49720
49721 2003-11-03  Jim Meyering  <jim@meyering.net>
49722
49723         * lib/userspec.c: Include "userspec.h".
49724         * lib/userspec.h: New file.
49725
49726 2003-11-03  Bruno Haible  <bruno@clisp.org>
49727
49728         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
49729
49730 2003-11-03  Bruno Haible  <bruno@clisp.org>
49731
49732         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
49733         available, to avoid (extremely rare) race condition.
49734         Suggested by Paul Eggert.
49735
49736 2003-11-02  Karl Berry  <karl@gnu.org>
49737
49738         * config/srclist.txt (vasprintf.c): sync broken, sigh.
49739
49740 2003-10-31  Paul Eggert  <eggert@twinsun.com>
49741
49742         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
49743         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
49744         (read_filesystem_list): Set and use me_type_malloced.
49745         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
49746         whatever the type happens to be), for brevity and consistency.
49747         Check for size calculation overflow on Alphas running OSF/1.
49748
49749 2003-10-31  Jim Meyering  <jim@meyering.net>
49750
49751         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
49752
49753         * lib/linebuffer.c: Include <string.h> for declaration of memset.
49754
49755 2003-10-30  Paul Eggert  <eggert@twinsun.com>
49756             Bruno Haible  <bruno@clisp.org>
49757
49758         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
49759         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
49760
49761 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49762
49763         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
49764         netbsd*-gnu*.  Suggested by Robert Millan.
49765
49766 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49767
49768         * modules/group-member: Depend on stdbool.
49769
49770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49771
49772         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
49773
49774 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49775
49776         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
49777         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
49778         after the 'gnu' in these cases.  This fixes some bugs in the
49779         previous change, and is based on suggestions by Robert Millan.
49780
49781 2003-10-29  Paul Eggert  <eggert@twinsun.com>
49782
49783         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
49784         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
49785         no longer needed.
49786         * lib/quotearg.c (quotearg_n_options): Use it.
49787         * lib/group-member.c: Include <stdbool.h>.
49788         (free_group_info): Arg is now const *; don't free arg.
49789         (get_group_info): Now returns bool and accepts struct group_info *,
49790         rather than returning a malloc'ed struct group_info *.
49791         All uses changed.  Check for overflow in internal size calculation.
49792
49793         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
49794         rather than xmalloc/xrealloc.
49795         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
49796         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
49797         conformance bug: the old code used a pointer after freeing the
49798         storage that it addressed.
49799         * lib/hash.c (hash_initialize): Simplify the code by using
49800         xalloc_oversized rather than doing it by hand.
49801         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
49802         the buffer preserved.  Use free and xmalloc instead.
49803         * lib/quotearg.c (quotearg_n_options): Likewise.
49804         Use a simpler test for size overflow.  Don't use xalloc_oversized
49805         because unsigned int might be wider than size_t (!); this suggests
49806         that we should switch from unsigned int to size_t for slot numbers.
49807
49808 2003-10-28  Paul Eggert  <eggert@twinsun.com>
49809
49810         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
49811         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
49812         NetBSD kernels.  Requested by Richard Stallman.
49813
49814 2003-10-27  Paul Eggert  <eggert@twinsun.com>
49815
49816         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
49817         to allocate the returned structure.  Do not allocate a subarray,
49818         as x2nrealloc will do that.
49819         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
49820         instead of xnrealloc.
49821         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
49822
49823 2003-10-27  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/stdbool_.h: Better support for BeOS.
49826
49827 2003-10-26  Paul Eggert  <eggert@twinsun.com>
49828
49829         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
49830         now uses inline.
49831
49832 2003-10-26  Paul Eggert  <eggert@twinsun.com>
49833
49834         * lib/xalloc.h (xalloc_oversized): New static inline function, for
49835         callers that want to do their own size-overflow checking.  Include
49836         <stdbool.h>, since xalloc_oversized returns bool.
49837         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
49838         to use xalloc_oversized.
49839
49840         Add two functions x2realloc, x2nrealloc, for programs that grow
49841         arrays dynamically by doubling their sizes.
49842         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
49843         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
49844         New functions.
49845
49846         Port to C99 semantics for 'inline' of external functions.
49847         Bug reported by Bruno Haible.
49848         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
49849         with the old contents of xnmalloc.
49850         (xnmalloc, xmalloc): Use it.
49851         (xnrealloc_inline): New static inline function,
49852         with the old contents of xnrealloc.
49853         (xnrealloc, xrealloc): Use it.
49854
49855         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
49856         that.
49857
49858 2003-10-26  Karl Berry  <karl@gnu.org>
49859
49860         * config/srclist.txt (COPYING.DOC): no longer available from
49861         /gd/gnuorg; don't know where the ultimate source is.
49862
49863 2003-10-25  Paul Eggert  <eggert@twinsun.com>
49864
49865         Fix several address-calculation bugs in the hash modules,
49866         plus some minor code cleanup.
49867
49868         * lib/hash.h: Include <stdbool.h>, for bool.
49869         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
49870         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
49871         hash_get_n_entries, hash_get_max_bucket_length,
49872         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
49873         hash_rehash): Use size_t rather than unsigned.
49874         * lib/hash.c (struct hash_table, hash_get_n_buckets,
49875         hash_get_n_buckets_used, hash_get_n_entries,
49876         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
49877         hash_get_entries, hash_do_for_each, hash_string, is_prime,
49878         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
49879         Likewise.
49880         (SIZE_MAX): Define if not defined.
49881         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
49882         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
49883         hash_print):
49884         Use const * when possible.
49885         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
49886         (check_tuning): Fix bug: if tuning parameters were very close to
49887         0 or 1, rounding errors could have caused subscript violations.
49888         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
49889         (hash_initialize): Add 'fail:' label
49890         to free table and return NULL, and use it to simplify code.
49891         Use calloc rather than clearing the storage ourself.
49892         (hash_initialize, hash_rehash): Check for arithmetic overflow in
49893         buffer size calculations.
49894         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
49895         Include <stddef.h>, for size_t.
49896         * lib/hash-pjw.c (hash_pjw): Likewise.
49897         Switch to method described by Bruno Haible.
49898         Include <limits.h>, for CHAR_BIT.
49899         (SIZE_BITS): New macro.
49900
49901 2003-10-23  Paul Eggert  <eggert@twinsun.com>
49902
49903         * m4/getline.m4 (AM_FUNC_GETLINE):
49904         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
49905         hosts.  Problem reported by Derek Robert Price in
49906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
49907         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
49908         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
49909
49910 2003-10-21  Paul Eggert  <eggert@twinsun.com>
49911
49912         * lib/getndelim2.c (getndelim2): When size calculation overflows,
49913         ceiling the allocation at NMAX bytes rather than silently
49914         discarding input bytes before NMAX is reached.  This makes
49915         a difference only if NMAX exceeds SIZE_MAX / 2.
49916
49917         * lib/obstack.c: Merge from glibc.
49918         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
49919         Add libc_hidden_def (_obstack_newchunk).
49920         (_obstack_free) [! defined _LIBC]: Remove.
49921         [defined _LIBC]: Make a strong alias from obstack_free, rather than
49922         a clone of the function body.
49923         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
49924         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
49925
49926         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
49927         glibc.
49928         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
49929         arg to memcpy.
49930
49931         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
49932         (obstack_ptr_grow_fast, obstack_int_grow_fast):
49933         Don't use lvalue casts, as GCC plans to remove support for them
49934         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
49935         was also present in the non-GCC version, indicating that this
49936         code had always been buggy and had never been widely used.
49937         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
49938         Use the fast variant of each macro, rather than copying the
49939         definiens of the fast variant; that way, we'll be more likely to
49940         catch future bugs in the fast variants.
49941
49942 2003-10-20  Bruno Haible  <bruno@clisp.org>
49943
49944         * modules/wait-process: New file.
49945         * MODULES.html.sh (func_all_modules): Add wait-process.
49946
49947 2003-10-20  Bruno Haible  <bruno@clisp.org>
49948
49949         * m4/wait-process.m4: New file.
49950
49951 2003-10-20  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/wait-process.h: New file, from GNU gettext.
49954         * lib/wait-process.c: New file, from GNU gettext.
49955
49956 2003-10-19  Jim Meyering  <jim@meyering.net>
49957
49958         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
49959         HPUX 10.20.
49960
49961 2003-10-18  Karl Berry  <karl@gnu.org>
49962
49963         * config/config.guess: update from config.
49964
49965 2003-10-16  Paul Eggert  <eggert@twinsun.com>
49966
49967         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
49968         (getgroups): First arg is int, not size_t.
49969         Don't let 'free' mangle errno.
49970
49971 2003-10-16  Paul Eggert  <eggert@twinsun.com>
49972
49973         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
49974
49975 2003-10-16  Karl Berry  <karl@gnu.org>
49976
49977         * config/config.{guess,sub}: update from config.
49978
49979 2003-10-16  Jim Meyering  <jim@meyering.net>
49980
49981         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
49982         memcpy.
49983
49984 2003-10-15  Paul Eggert  <eggert@twinsun.com>
49985
49986         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
49987         (SIZE_MAX): Remove.
49988         (new_exclude, add_exclude_file): Initial size no longer needs to
49989         be a power of 2.
49990         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
49991         our own address arithmetic overflow checking.
49992
49993         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
49994         (fnmatch): Do not alloca more than 2000 wide characters;
49995         instead, use malloc for large buffers.
49996         Check for address arithmetic overflow, and return -1
49997         with errno set to ENOMEM in that case.
49998         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
49999         (NEW_PATTERN): Do not alloca more than 8000 bytes;
50000         instead, return -1.  Check for address arithmetic overflow.
50001
50002 2003-10-14  Paul Eggert  <eggert@twinsun.com>
50003
50004         Handle invalid suffixes and overflow independently, so that
50005         callers can treat them independently as needed.  Fix some bugs in
50006         suffix handling, e.g., "100k@" was not diagnosed as an invalid
50007         suffix for a human-readable blocksize.  The major caller-visible
50008         change is the addition of a new
50009         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
50010         that both overflow and suffix chars were found.
50011
50012         * lib/human.c (humblock): Don't check separately for invalid suffix
50013         char; that is xstrtoumax's job (now that its bug is fixed).
50014         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
50015         INTMAX_MAX]: New macros.
50016         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
50017         TYPE_MAXIMUM): New macros.
50018         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
50019         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
50020         if overflow occurs, as it's what __strtol does and it's more useful
50021         in practice.
50022         (__xstrtol): If __strtol reports some error other than ERANGE,
50023         reflect it to the caller as LONGINT_INVALID.  If it reports
50024         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
50025         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
50026         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
50027         value.
50028         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
50029         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
50030         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
50031         [defined UINTMAX_MAX]: New macros.
50032
50033 2003-10-14  Bruno Haible  <bruno@clisp.org>
50034
50035         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
50036
50037 2003-10-14  Bruno Haible  <bruno@clisp.org>
50038
50039         * m4/sig_atomic_t: New file, from GNU gettext.
50040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
50041
50042 2003-10-14  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
50045         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
50046         Also use volatile where needed.
50047
50048 2003-10-12  Paul Eggert  <eggert@twinsun.com>
50049
50050         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
50051         Change maintainer from Bruno Haible to 'all'.
50052
50053 2003-10-12  Paul Eggert  <eggert@twinsun.com>
50054
50055         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
50056
50057 2003-10-12  Paul Eggert  <eggert@twinsun.com>
50058
50059         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
50060         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
50061         and define in terms of the other primitives.
50062         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
50063         (SIZE_MAX): Define if not already defined.
50064         (array_size_overflow): New function.
50065         (xalloc_die): Abort instead of exiting if 'error' returns.
50066         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
50067         (xmalloc, xrealloc): Use them.
50068         (xcalloc): Check for address arithmetic overflow.
50069         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
50070         a bit faster than strcpy.
50071
50072 2003-10-10  Simon Josefsson  <jas@extundo.com>
50073
50074         * modules/argp (Depends-on): Add restrict and strcase.
50075
50076 2003-10-10  Simon Josefsson  <jas@extundo.com>
50077
50078         * m4/argp.m4: Add AC_C_INLINE.
50079
50080 2003-10-08  Paul Eggert  <eggert@twinsun.com>
50081
50082         Merge getpass from libc, plus a few fixes.
50083
50084         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
50085         Include <stdbool.h>.
50086         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
50087         __fsetlocking to empty.
50088         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
50089         do include <bits/libc-lock.h>.
50090         Do not include <fcntl.h>; not needed.
50091         [_LIBC]: Include <wchar.h>.
50092         (NOTCANCEL_MODE): New macro.
50093         (flockfile, funlockfile) [_LIBC]: New macros.
50094         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
50095         [!_LIBC]: New macros.
50096         (call_fclose): New function.
50097         (getpass): Use it.  Save tty stream separately; this simplifies the
50098         code and makes it more reliable if stdin happens to equal stdout.
50099         Invoke __fsetlocking on tty.
50100         Handle thread cancellation if needed.
50101         Namespace cleanup (use __tcgetattr, __getline).
50102         Use bool for Booleans.
50103         [USE_IN_LIBIO]: Handle wide streams.
50104         [!_LIBC]: Unconditionally do the fseek, since we don't know what
50105         stream might go where.
50106
50107         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
50108         doesn't have to include <stdio.h> before us.
50109         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
50110         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
50111         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
50112         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
50113         if not declared, so that we can use getpass.c code from libc without
50114         rewriting it.
50115         (flockfile, ftrylockfile, funlockfile): New macros.
50116
50117 2003-10-08  Paul Eggert  <eggert@twinsun.com>
50118
50119         * modules/getpass: Depend on stdbool.
50120
50121 2003-10-08  Paul Eggert  <eggert@twinsun.com>
50122
50123         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
50124
50125 2003-10-07  Karl Berry  <karl@gnu.org>
50126
50127         * config/config.{guess,sub}: update from config.
50128
50129 2003-10-06  Jim Meyering  <jim@meyering.net>
50130             Bruno Haible  <bruno@clisp.org>
50131
50132         This lets translators provide better translations for the
50133         "Written by ..." part of --version output.
50134         * lib/version-etc.h: Include stdarg.h.
50135         (version_etc_copyright): Declare as readonly.
50136         (version_etc): Make this function variadic with a NULL-terminated list
50137         of author name strings.
50138         (version_etc_va): New declaration.
50139         * lib/version-etc.c: Include stdarg.h, stdlib.h.
50140         (version_etc_copyright): Declare as readonly.
50141         (version_etc_va): New function. Provide a different translatable string
50142         for each possible number of authors < 10. Abbreviate when there are 10
50143         authors or more.
50144         (version_etc): Make this function variadic. Call version_etc_va.
50145         Suggestion from Gary V. Vaughan.
50146
50147         * lib/long-options.h (parse_long_options): Change prototype: the
50148         authors string is moved to the end and becomes variadic.
50149         * lib/long-options.c: Include stdarg.h.
50150         (parse_long_options): Make this function variadic, too.
50151         Call version_etc_va, not version_etc.
50152
50153 2003-10-06  Bruno Haible  <bruno@clisp.org>
50154
50155         * modules/version-etc-2: Remove file.
50156         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
50157
50158 2003-10-06  Bruno Haible  <bruno@clisp.org>
50159
50160         * modules/fatal-signal: New file.
50161         * MODULES.html.sh (func_all_modules): Add fatal-signal.
50162
50163 2003-10-06  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/fatal-signal.m4: New file.
50166         * m4/signalblocking.m4: New file, from GNU gettext.
50167
50168 2003-10-06  Bruno Haible  <bruno@clisp.org>
50169
50170         * lib/version-etc-2.h: Remove file.
50171         * lib/version-etc-2.c: Remove file.
50172
50173 2003-10-06  Bruno Haible  <bruno@clisp.org>
50174
50175         * lib/fatal-signal.h: New file, from GNU gettext.
50176         * lib/fatal-signal.c: New file, from GNU gettext.
50177
50178 2003-10-05  Paul Eggert  <eggert@twinsun.com>
50179
50180         * README: Rework advice for preventing empty .o files.
50181         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
50182         not <sys/types.h>.
50183
50184 2003-10-04  Karl Berry  <karl@gnu.org>
50185
50186         * lib/argp*: update from libc.
50187
50188 2003-10-04  Karl Berry  <karl@gnu.org>
50189
50190         * config/config.{guess,sub}: update from config.
50191
50192 2003-10-02  Bruno Haible  <bruno@clisp.org>
50193
50194         * modules/lchown (Include): Add lchown.h.
50195         * modules/time_r (Include): Use "..." syntax.
50196         * modules/xgetdomainname (Include): Add xgetdomainname.h.
50197
50198 2003-10-01  Simon Josefsson  <jas@extundo.com>
50199
50200         * MODULES.html.sh (func_all_modules): Move gethostname from section
50201         'based on' to section 'lacking' POSIX:2001.
50202
50203 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
50204
50205         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
50206         to output mode on the same stream.
50207
50208 2003-09-29  Paul Eggert  <eggert@twinsun.com>
50209
50210         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
50211         Fix arg typo in previous patch.
50212
50213 2003-09-28  Jim Meyering  <jim@meyering.net>
50214
50215         * lib/error.c: Correct cpp indentation.
50216
50217 2003-09-27  Paul Eggert  <eggert@twinsun.com>
50218
50219         * modules/free: New file.
50220
50221 2003-09-27  Paul Eggert  <eggert@twinsun.com>
50222
50223         * m4/free.m4: New file.
50224
50225 2003-09-27  Paul Eggert  <eggert@twinsun.com>
50226
50227         * lib/minmax.h (MIN, MAX)
50228         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
50229         Omit the special code that used __typeof__, since we worry that
50230         it could be more trouble than it's worth.  See:
50231         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
50232         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
50233
50234         * lib/free.c: New file.
50235
50236 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
50237
50238         Trivial fixes to Makefile.am parts of module listings.
50239         * modules/strstr: Append strstr.h to lib_SOURCES.
50240         * modules/strcase: Likewise, for strcase.h.
50241
50242 2003-09-27  Karl Berry  <karl@gnu.org>
50243
50244         * config/mkinstalldirs: update from automake.
50245
50246 2003-09-26  Paul Eggert  <eggert@twinsun.com>
50247
50248         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
50249         (error_tail): Do not loop, reallocating temporary buffer, since
50250         the output cannot contain more wide characters than the input
50251         contains bytes, the size must be big enough already.  This avoids
50252         one potential size overflow calculation.  Check for size overflow
50253         when calculating temporary buffer size.  Free temporary buffer
50254         when done, if it was allocated with malloc; this plugs a memory
50255         leak.  Remove casts from void * to pointers, that are no longer
50256         needed now that we're assuming C89 or better.
50257
50258         Merge error changes from glibc.
50259
50260         * lib/error.c, error.h: Update copyright notice header to match glibc.
50261         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
50262         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
50263         Disable cancellation while printing error.
50264         * lib/error.h: Prepend __ to parameter names.
50265
50266 2003-09-26  Jim Meyering  <jim@meyering.net>
50267
50268         * lib/error.c (error_tail): Move some declarations
50269         into inner scope where the local variables are used.
50270
50271 2003-09-26  Bruno Haible  <bruno@clisp.org>
50272
50273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
50274         stpncpy().
50275         Don't define stpncpy through config.h; it's now done through stpncpy.h.
50276
50277 2003-09-26  Bruno Haible  <bruno@clisp.org>
50278
50279         * lib/stpncpy.h (gnu_stpncpy): New declaration.
50280         (stpncpy): Define as alias for gnu_stpncpy.
50281         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
50282
50283 2003-09-25  Simon Josefsson  <jas@extundo.com>
50284
50285         * lib/xgetdomainname.h: New file.
50286         * lib/xgetdomainname.c: New file.
50287
50288 2003-09-25  Simon Josefsson  <jas@extundo.com>
50289             Bruno Haible  <bruno@clisp.org>
50290
50291         * modules/getdomainname: New file.
50292         * modules/xgetdomainname: New file.
50293         * MODULES.html.sh (func_all_modules): Add getdomainname,
50294         xgetdomainname.
50295
50296 2003-09-25  Simon Josefsson  <jas@extundo.com>
50297             Bruno Haible  <bruno@clisp.org>
50298
50299         * m4/getdomainname.m4: New file.
50300
50301 2003-09-25  Simon Josefsson  <jas@extundo.com>
50302             Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/getdomainname.h: New file.
50305         * lib/getdomainname.c: New file.
50306
50307 2003-09-25  Karl Berry  <karl@gnu.org>
50308
50309         * lib/argp-fmtstream.c, argp-help.c: update from libc.
50310
50311 2003-09-25  Karl Berry  <karl@gnu.org>
50312
50313         * config/install-sh: update from automake.
50314
50315 2003-09-25  Bruno Haible  <bruno@clisp.org>
50316
50317         * modules/version-etc-2: New file, from modules/version-etc with
50318         modifications.
50319         * MODULES.html.sh (func_all_modules): Add version-etc-2.
50320
50321 2003-09-25  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
50324         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
50325
50326 2003-09-24  Simon Josefsson  <jas@extundo.com>
50327
50328         * modules/xgethostname: Add xgethostname.h.
50329
50330 2003-09-24  Paul Eggert  <eggert@twinsun.com>
50331
50332         * lib/linebuffer.c (freebuffer): Don't free the argument, just
50333         the buffer associated with the argument.  Bug reported by
50334         Simon Josefsson.
50335
50336 2003-09-24  Paul Eggert  <eggert@twinsun.com>
50337
50338         * README: Document assumptions that 'int' is at least 32 bits
50339         wide, that integer arithmetic is 2's complement without overflow,
50340         that there are no holes in integer values, that adding sizes of
50341         two nonoverlapping objects can't overflow, and that all-bits-zero
50342         yields scalar zero.  Fix spelling and capitalization typos.
50343
50344 2003-09-19  Karl Berry  <karl@gnu.org>
50345
50346         * lib/argp.h: update from libc.
50347
50348 2003-09-17  Paul Eggert  <eggert@twinsun.com>
50349
50350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
50351         to avoid spurious warnings like "AC_RUN_IFELSE was called before
50352         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
50353
50354 2003-09-17  Paul Eggert  <eggert@twinsun.com>
50355
50356         * gnulib-tool: Use "test -h", not "test -L", for portability
50357         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
50358         (tags_regexp): Remove, since \| doesn't conform to POSIX.
50359         (sed_extract_prog): Issue s commands one-by-one, rather than
50360         using \| in one s command.
50361
50362 2003-09-16  Paul Eggert  <eggert@twinsun.com>
50363
50364         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
50365         input error, instead of returning NULL the next time we are called
50366         (and therefore losing track of errno).
50367
50368 2003-09-16  Bruno Haible  <bruno@clisp.org>
50369
50370         * gnulib-tool (func_create_testdir): Warn about duplicated
50371         dependencies.
50372
50373 2003-09-15  Paul Eggert  <eggert@twinsun.com>
50374
50375         * modules/argmatch, modules/fatal, modules/obstack,
50376         modules/xalloc, modules/xgethostname: Sort dependencies by
50377         importance, not alphabetically.
50378
50379 2003-09-15  Paul Eggert  <eggert@twinsun.com>
50380
50381         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
50382         fails, so that the caller gets the proper errno.
50383
50384         * lib/readutmp.c (read_utmp): Likewise.
50385         Check for fstat error.  Close stream and free storage
50386         when failing.
50387
50388 2003-09-14  Karl Berry  <karl@gnu.org>
50389
50390         * config/srclist.txt (strdup.c): disable for c89 changes.
50391
50392 2003-09-14  Jim Meyering  <jim@meyering.net>
50393
50394         * lib/getloadavg.c: Correct cpp indentation.
50395         * lib/strdup.c: Likewise.
50396         * lib/vasnprintf.c: Likewise.
50397
50398 2003-09-14  Bruno Haible  <bruno@clisp.org>
50399
50400         * modules/fwriteerror: New file.
50401         * MODULES.html.sh (func_all_modules): Add fwriteerror.
50402
50403 2003-09-14  Bruno Haible  <bruno@clisp.org>
50404
50405         * lib/fwriteerror.h: New file.
50406         * lib/fwriteerror.c: New file.
50407
50408 2003-09-12  Paul Eggert  <eggert@twinsun.com>
50409
50410         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
50411         modules/xgethostname, modules/xalloc: Depend on exit.
50412
50413 2003-09-12  Paul Eggert  <eggert@twinsun.com>
50414
50415         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
50416
50417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
50418         and AC_MINIX, too, so that their extensions are available.
50419
50420         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
50421         This macro has been superseded by gl_BACKUPFILE.
50422
50423         More patches to assume C89 or better.
50424
50425         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
50426
50427         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
50428         unconditionally.
50429         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
50430         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
50431         Include <string.h>, <stdlib.h> unconditionally.
50432         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
50433         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
50434         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
50435         headers or for string.h.
50436         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
50437         or strtoul.
50438
50439         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
50440         headers.
50441         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
50442         * m4/userspec.m4 (gl_USERSPEC): Likewise.
50443         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
50444         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
50445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50446         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
50447         memcpy, memset.
50448         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
50449         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
50450         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
50451         strtol.
50452         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
50453         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
50454         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
50455         strtoul.
50456
50457 2003-09-12  Paul Eggert  <eggert@twinsun.com>
50458
50459         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
50460         * lib/obstack.c [!defined _LIBC]: Likewise.
50461         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
50462         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
50463         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
50464
50465         More changes to assume C89 or better.
50466
50467         * lib/error.c (error_tail): Assume vprintf.
50468
50469         * lib/argmatch.c (getenv): Remove decl.
50470         * lib/progreloc.c (get_full_program_name): Define via prototype.
50471         * lib/setenv.c (clearenv): Likewise.
50472         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
50473         needed.
50474         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
50475         (malloc, memcpy): Remove decls.
50476         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
50477         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
50478         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
50479         (memcpy): Remove macro.
50480         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
50481         (__P): Remove.  All uses removed.
50482         (PTR): Remove.  All uses changed to void *.
50483         (CHAR_BIT, NULL): Remove.
50484         (spaces, zeros, memset_space, memset_zero)
50485         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
50486         Remove.
50487         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
50488         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
50489         Define with prototype.
50490         Remove now-unnecessary prototype decl.
50491         (extra_args_spec): Assume ANSI C.  All uses changed.
50492         (extra_args_spec_iso): Remove.
50493         (my_strftime, emacs_strftimeu): Define via prototype.
50494         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
50495         unconditionally.
50496         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
50497         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
50498         (strtoul, strtol): Remove decls.
50499         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
50500         LONG_MAX): Remove.
50501         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
50502         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
50503         (LOCALE_PARAM_PROTO): New macro.
50504         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
50505         (INTERNAL (strtol), strtol): Define with a prototype.
50506         (PARAMS): Remove.  All uses removed.
50507         * lib/tempname.c: Include <string.h> unconditionally.
50508         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
50509         * lib/xgethostname.c (main): Define with a prototype.
50510         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
50511         Include <stdlib.h> unconditionally.
50512         (calloc, malloc, realloc, free): Remove decls.
50513         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
50514         Include <stdlib.h> unconditionally.  Sort include file names.
50515         (strtod): Remove.
50516         (xstrtod): Define with a prototype.
50517         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
50518         (strtol, strtoul): Remove decls.
50519
50520 2003-09-11  Paul Eggert  <eggert@twinsun.com>
50521
50522         More patches to assume C89 or better.
50523         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
50524         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
50525         string.h, memchr, STDC_HEADERS.
50526
50527 2003-09-11  Paul Eggert  <eggert@twinsun.com>
50528
50529         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
50530         Include <stdlib.h>, <string.h> unconditionally.
50531         Remove now-unnecessary cast to char *.
50532         * lib/strnlen.c: Include <string.h> unconditionally.
50533         * lib/yesno.c (yesno): Define with a prototype.
50534
50535 2003-09-11  Bruno Haible  <bruno@clisp.org>
50536
50537         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
50538
50539 2003-09-10  Jim Meyering  <jim@meyering.net>
50540
50541         * lib/error.c: Correct indentation of cpp directives.
50542
50543 2003-09-10  Bruno Haible  <bruno@clisp.org>
50544
50545         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
50546         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
50547         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
50548         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
50549         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
50550         <stdlib.h> and <string.h> checks.
50551         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
50552         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
50553
50554 2003-09-10  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/strcspn.c: Include <string.h> unconditionally.
50557         * lib/strpbrk.c: Include <string.h> unconditionally.
50558         * lib/strstr.c: Include <string.h> unconditionally.
50559         * lib/unicodeio.c: Include <string.h> unconditionally.
50560         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
50561         * lib/unsetenv.c: Likewise.
50562         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
50563         * lib/yesno.c: Include <stdlib.h> unconditionally.
50564         (rpmatch): Add prototype.
50565
50566 2003-09-09  Paul Eggert  <eggert@twinsun.com>
50567
50568         More patches to assume C89 or better.
50569         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
50570         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
50571         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
50572         or for string.h.
50573         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
50574         stdlib.h.
50575         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
50576         C headers.
50577         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
50578         string.h.
50579         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
50580         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
50581         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
50582         or for string.h.
50583         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
50584         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
50585         C headers.
50586         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
50587         memcpy.
50588         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
50589         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
50590         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
50591         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
50592         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
50593         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
50594         string.h, free.
50595         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
50596         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
50597         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
50598         C headers, or for string.h.
50599         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
50600         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
50601         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
50602         headers, memory.h, stdlib.h, string.h, strings.h.
50603         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
50604         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
50605         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
50606         strchr.
50607         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
50608         headers, memory.h, string.h.
50609         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
50610         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
50611         free.
50612         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
50613         headers.
50614         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
50615         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
50616         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
50617         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
50618         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
50619
50620 2003-09-09  Paul Eggert  <eggert@twinsun.com>
50621
50622         More K&R removal.
50623
50624         * lib/acosl.c (main): Use a prototype.
50625         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
50626         tanl.c: Likewise.
50627
50628         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
50629
50630         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
50631         (getopt, etopt_long, getopt_long_only, _getopt_internal)
50632         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
50633         with a prototype.
50634         * lib/getopt.c (const): Remove macro.
50635         Include <string.h> unconditionally.
50636         (my_index): Remove; all uses changed to strchr.
50637         (strlen): Remove decl.
50638         (exchange): Remove forward decl; no longer needed.
50639         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
50640         Define with prototype.
50641         * lib/getopt1.c (const): Remove macro.
50642         (getopt_long, getopt_long_only, main): Define with prototype.
50643
50644         * lib/getugroups.c: Include <string.h> unconditionally.
50645
50646         * lib/getusershell.c: Include <stdlib.h> unconditionally.
50647         (getusershell, setusershell, endusershell, readname, main):
50648         Define with prototypes.
50649
50650         * lib/group-member.c: Include group-member.h first.
50651         Include <stdlib.h> unconditionally.
50652
50653         * lib/hard-locale.c: Include hard-locale.h first.
50654         Include <stdlib.h>, <string.h> unconditionally.
50655
50656         * lib/hash.c (free, malloc): Remove decls.
50657         Include <stdlib.h> unconditionally.
50658
50659         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
50660         (getenv): Do not declare.
50661
50662         * lib/idcache.c: Include <string.h> unconditionally.
50663
50664         * lib/long-options.c: Include long-options.h first, to test interface.
50665         Include <stdlib.h> unconditionally.
50666
50667         * lib/makepath.c: Include makepath.h first, to test interface.
50668         Include <stdlib.h> and <string.h> unconditionally.
50669
50670         * lib/linebuffer.c: Include <stdlib.h>.
50671         (free): Remove decl.
50672
50673         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
50674         stddef.h. rpl_malloc returns void *, not char *.
50675         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
50676         prototype.
50677
50678         * lib/md5.h: Include <limits.h> unconditionally.
50679         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
50680         (__P): Remove; all uses removed.
50681         * lib/md5.c: Include "md5.h" first.
50682         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
50683         md5_buffer, md5_process_bytes, md5_process_block):
50684         Define with prototypes.
50685         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
50686         * lib/sha.c: Include "sha.h" first.
50687         Include <stdlib.h>, <string.h> unconditionally.
50688
50689         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
50690         * lib/memcmp.c (__ptr_t): Likewise.
50691         * lib/memrchr.c (__ptr_t): Likewise.
50692         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
50693         Include <string.h> unconditionally.
50694         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
50695         * lib/memchr.c: Include <stdlib.h> unconditionally.
50696         * lib/memchr.c (LONG_MAX): Remove.
50697         * lib/memrchr.c (LONG_MAX): Likewise.
50698         * lib/memchr.c (__memchr): Define via a prototype.
50699         * lib/memrchr.c (__memrchr): Likewise.
50700         * lib/memcmp.c (__P): Remove, and remove all uses.
50701         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
50702         Remove forward decls; no longer needed.
50703         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
50704         Use types required by C89 in prototype.
50705
50706         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
50707         * lib/savedir.c: Likewise.
50708         * lib/mkdir.c (free): Remove decl.
50709         * lib/rmdir.c (rmdir): Define with a prototype.
50710         * lib/savedir.c: Include savedir.h first, to test interface.
50711
50712         * lib/mktime.c (STDC_HEADERS): Remove.
50713         Include <stdlib.h>, <string.h> unconditionally.
50714
50715         * lib/modechange.c: Include <stdlib.h> unconditionally.
50716         (malloc): Remove decl.
50717
50718         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
50719         (free): Remove decl.
50720
50721         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
50722         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
50723         (This type really should be intptr_t, but that's a C99ism.)
50724         (_obstack_memcpy): Remove: all uses changed to memcpy.
50725         Include <string.h> unconditionally.
50726         (struct obstack): Assume __STDC__ for types of members
50727         chunkfun, freefun, extra_arg.
50728         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
50729         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
50730         obstack_begin, obstack_specify_allocation,
50731         obstack_specify_allocation_with_arg, obstack_chunkfun,
50732         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
50733         Remove unprototyped decls and the macros that use them.
50734         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
50735         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
50736         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
50737         (defined __STDC__ && __STDC__)]:
50738         Remove nonprototyped code.
50739         Include <stdlib.h> unconditionally.
50740         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
50741         _obstack_allocated_p, _obstack_free, obstack_free,
50742         _obstack_memory_used, print_and_abort):
50743         Define using prototypes.
50744         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
50745         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
50746         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
50747         obstack_next_free, obstack_object_size, obstack_room) [0]:
50748         Remove unused, unprototyped code.
50749
50750         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
50751
50752         * lib/physmem.c (physmem_total, physmem_available, main): Define
50753         with prototypes.
50754
50755         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
50756         (main): Define with a prototype.
50757
50758         * lib/posixver.c (getenv): Remove decl.
50759
50760         * lib/putenv.c (malloc): Returns void *, not char *.
50761         Include <string.h> unconditionally.
50762         (strchr, memcpy, NULL): Do not define.
50763
50764         * lib/readtokens.c: Include readtokens.h first, to test interface.
50765         Include <stdlib.h>, <string.h> unconditionally.
50766         (init_tokenbuffer): Define with a prototype.
50767
50768         * lib/regex.c (PARAMS): Remove.  All uses removed.
50769         All uses of _RE_ARGS removed, too.
50770         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50771         unconditionally.
50772         (bzero): Assume memset exists.
50773         (memcmp, memcpy, NULL): Remove.
50774         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
50775         char, or assignments to local vars of type signed char.
50776         (init_syntax_once, PREFIX(extract_number_and_incr),
50777         PREFIX(print_partial_compiled_pattern),
50778         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
50779         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
50780         PREFIX(regex_grow_registers), PREFIX(regex_compile),
50781         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
50782         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
50783         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
50784         wcs_compile_range, byte_compile_range, truncate_wchar,
50785         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
50786         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
50787         count_mbs_length, wcs_re_match_2_internal,
50788         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
50789         PREFIX(alt_match_null_string_p),
50790         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
50791         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
50792         regfree, PREFIX(extract_number)): Define with prototype.  Remove
50793         now-unnecessary declaration, if any.
50794         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
50795         regcomp, regexec):
50796         Remove now-unnecessary casts among pointer types.
50797         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
50798
50799         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
50800         (free): Remove decl.
50801
50802         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
50803
50804         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
50805         (free): Remove decl.
50806
50807         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
50808         * lib/xgetcwd.c: Likewise.
50809
50810         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
50811         (free): Remove decl.
50812
50813         * lib/strchrnul.c (strchrnul): Define with a prototype.
50814         Fix bug: c_in was not converted to char before searching.
50815
50816         The following changes are not K&R related:
50817
50818         * lib/group-member.h: Include <sys/types.h>, so that this file is
50819         self-contained.
50820         * lib/makepath.h: Likewise.
50821
50822         * lib/getusershell.c (readname, default_index, line_size, readname):
50823         Use size_t, not int, for sizes.
50824         (readname): If the size overflows, report an error instead of
50825         looping forever.
50826
50827 2003-09-09  Paul Eggert  <eggert@twinsun.com>
50828
50829         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
50830         libc.
50831
50832 2003-09-09  Paul Eggert  <eggert@twinsun.com>
50833
50834         * README: New section: portability guidelines.
50835
50836 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
50837
50838         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
50839         C89 spec.
50840
50841 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
50842
50843         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
50844
50845 2003-09-08  Paul Eggert  <eggert@twinsun.com>
50846
50847         Assume C89 or better; remove K&R cruft.
50848         A few of these changes were first proposed by Derek Robert Price
50849         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
50850
50851         * lib/addext.c: Include <string.h> unconditionally.
50852         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
50853         Don't declare getenv or malloc.
50854
50855         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
50856         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
50857         (NULL): Remove.
50858         (find_stack_direction, alloca): Use prototypes.
50859
50860         * lib/atexit.c (atexit): Define using a prototype.
50861
50862         * lib/basename.c, dirname.c, stripslash.c:
50863         Include <string.h> unconditionally.
50864
50865         * lib/bcopy.c: Include <stddef.h>.
50866         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
50867
50868         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
50869
50870         * lib/error.h (error, error_at_line, error_print_progname)
50871         [! (defined (__STDC__) && __STDC__)]: Remove decls.
50872         * lib/error.c: Include error.h first, to check interface.
50873         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
50874         (VA_START): Remove; all uses changeed to va_start.
50875         (exit, strerror): Remove decls.
50876         (error_print_progname): Prototype uncondionally.
50877         Don't include <errno.h>; no longer needed.
50878         (private_strerror): Remove.
50879         (error_tail): Always define.
50880         (error, error_at_line): Assume C89 or better; always use prototypes.
50881         * lib/fatal.c: Include "fatal.h" first, to test interface.
50882         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
50883         (VA_START): Remove; all uses changed to va_start.
50884         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
50885         this case.
50886         (exit): Remove decl.
50887         (fatal): Prototype unconditionally.  Assume va_start works.
50888         Abort at end, to pacify gcc.
50889
50890         * lib/euidaccess.c (main): Define with a prototype.
50891
50892         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
50893
50894         * lib/exitfail.c: Include <stdlib.h> unconditionally.
50895
50896         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
50897         prototypes.
50898         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
50899         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
50900         (getenv): Remove decl.
50901         (fnmatch): Define using a prototype.
50902         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
50903         (FCT): Define using a prototype.
50904
50905         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
50906
50907         * lib/gethostname.c: Include <stddef.h>.
50908         (gethostname): Define with prototype.  Length is size_t, not int.
50909
50910 2003-09-08  Paul Eggert  <eggert@twinsun.com>
50911
50912         Assume C89 or better; remove K&R cruft.
50913         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
50914         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
50915         string.h, getenv, malloc.
50916         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
50917         headers.
50918         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
50919         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
50920         do not check for strerror.
50921         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
50922         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
50923         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
50924         do not check for doprnt or vprintf.
50925         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
50926         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
50927
50928 2003-09-08  Paul Eggert  <eggert@twinsun.com>
50929
50930         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
50931         getversion.c should have been removed then, but was accidentally
50932         preserved.
50933
50934         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
50935         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
50936
50937 2003-09-08  Karl Berry  <karl@gnu.org>
50938
50939         * config/config.sub, config.guess, srclistvars.sh: update from savannah
50940                 config, forget about prep.
50941
50942         * config/depcomp, missing: update from automake.
50943
50944 2003-09-07  Paul Eggert  <eggert@twinsun.com>
50945
50946         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
50947         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
50948
50949 2003-09-07  Paul Eggert  <eggert@twinsun.com>
50950
50951         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
50952         copy_tm_result.  Bug reported by Simon Josefsson in
50953         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
50954
50955 2003-09-06  Paul Eggert  <eggert@twinsun.com>
50956
50957         * m4/time_r.m4: New file.
50958         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
50959         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
50960         is. Check for timegm declaration.
50961         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
50962         Do not check for gmtime_r.
50963         Replace mktime if __mktime_internal does not exist and if mktime
50964         hasn't been replaced already.
50965
50966 2003-09-06  Paul Eggert  <eggert@twinsun.com>
50967
50968         * lib/time_r.c, lib/time_r.h: New files.
50969
50970         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
50971         __localtime_r.
50972         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
50973         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
50974
50975         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
50976         __gmtime_r.
50977         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
50978         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
50979         Include <time_r.h>.
50980
50981         * lib/timegm.c: Switch to glibc implementation, with the following
50982         changes:
50983         [defined HAVE_CONFIG_H]: Include <config.h>.
50984         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
50985         (__mktime_internal) [!defined _LIBC]: New decl.
50986         (__gmtime_r) [!defined _LIBC]: New macro and function.
50987         (timegm): Use a prototype, since gnulib assumes C89.
50988         Do not bother declaring tmp to be const, as it's not really usefu.
50989         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
50990         (timegm): Declare only if HAVE_DECL_TIMEGM.
50991
50992 2003-09-06  Paul Eggert  <eggert@twinsun.com>
50993
50994         * MODULES.html.sh (func_all_modules): Add time_r.
50995         * modules/time_r: New file.
50996         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
50997         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
50998
50999 2003-09-03  Paul Eggert  <eggert@twinsun.com>
51000
51001         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
51002         Bug reported by Lute Kamstra in
51003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
51004
51005         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
51006         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
51007         course with correspondingly smaller numbers for tomorrow and
51008         yesterday.  From Tadayoshi Funaba.  Originally installed into
51009         sh-utils on 1999-08-07, but the patch got lost (I guess during the
51010         coreutils merge?).
51011
51012 2003-08-31  Simon Josefsson  <jas@extundo.com>
51013
51014         * modules/timegm: New file.
51015         * MODULES.html.sh (func_all_modules): Add timegm.
51016
51017 2003-08-31  Simon Josefsson  <jas@extundo.com>
51018
51019         * m4/timegm.m4: New file.
51020
51021 2003-08-31  Simon Josefsson  <jas@extundo.com>
51022
51023         * lib/timegm.h: New file.
51024         * lib/timegm.c: New file.  Based on
51025         wget-1.8.2/src/http.c:mktime_from_utc.
51026
51027 2003-08-31  Karl Berry  <karl@gnu.org>
51028
51029         * lib/argp.h: update from libc.
51030
51031 2003-08-28  Bruno Haible  <bruno@clisp.org>
51032
51033         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
51034         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
51035         followed by '#define fnmatch fnmatch_posix' gives an error.
51036
51037 2003-08-28  Bruno Haible  <bruno@clisp.org>
51038
51039         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
51040         warning on QNX, which defines O_BINARY to 000000.
51041
51042 2003-08-27  Jim Meyering  <jim@meyering.net>
51043
51044         * m4/mkstemp.m4: Require that the system mkstemp be able to create
51045         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
51046         would fail after 32.  Reported by Danny Levinson.  Details here:
51047         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
51048
51049 2003-08-24  Bruno Haible  <bruno@clisp.org>
51050
51051         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
51052         MSVC7 <stdio.h> is included later.
51053
51054 2003-08-22  Simon Josefsson  <jas@extundo.com>
51055
51056         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
51057
51058 2003-08-20  Karl Berry  <karl@gnu.org>
51059
51060         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
51061
51062 2003-08-20  Bruno Haible  <bruno@clisp.org>
51063
51064         * modules/progname: New file.
51065         * MODULES.html.sh (func_all_modules): Add progname.
51066
51067 2003-08-20  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/progname.h: New file, from GNU gettext.
51070         * lib/progname.c: New file, from GNU gettext.
51071         * lib/progreloc.c: New file, from GNU gettext.
51072
51073 2003-08-19  Jim Meyering  <jim@meyering.net>
51074
51075         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
51076         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
51077
51078 2003-08-19  Bruno Haible  <bruno@clisp.org>
51079
51080         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
51081         more.
51082
51083 2003-08-19  Bruno Haible  <bruno@clisp.org>
51084
51085         * lib/xstrdup.c: Assume <string.h> exists.
51086
51087 2003-08-18  Paul Eggert  <eggert@twinsun.com>
51088
51089         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
51090         in makefile rules.
51091
51092 2003-08-18  Jim Meyering  <jim@meyering.net>
51093
51094         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
51095         * m4/lib-ld.m4: Likewise.
51096
51097 2003-08-18  Jim Meyering  <jim@meyering.net>
51098
51099         * lib/setenv.h: Indent nested cpp directive.
51100         * lib/vasnprintf.c: Remove trailing blanks.
51101
51102 2003-08-17  Simon Josefsson  <jas@extundo.com>
51103
51104         * modules/xstrndup: New file.
51105         * MODULES.html.sh (func_all_modules): Add xstrndup.
51106
51107 2003-08-17  Simon Josefsson  <jas@extundo.com>
51108
51109         * modules/argp: Fix autoconf macro name. Add more dependencies.
51110
51111 2003-08-17  Simon Josefsson  <jas@extundo.com>
51112
51113         * m4/xstrndup.m4: New file.
51114
51115 2003-08-17  Simon Josefsson  <jas@extundo.com>
51116
51117         * m4/argp.m4: New file.
51118
51119 2003-08-17  Simon Josefsson  <jas@extundo.com>
51120             Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/xstrndup.h: New file.
51123         * lib/xstrndup.c: New file.
51124
51125 2003-08-17  Bruno Haible  <bruno@clisp.org>
51126
51127         * modules/strndup (Files, Include): Add lib/strndup.h.
51128
51129 2003-08-17  Bruno Haible  <bruno@clisp.org>
51130
51131         * modules/euidaccess (Files): Add lib/euidaccess.h.
51132
51133 2003-08-17  Bruno Haible  <bruno@clisp.org>
51134
51135         * lib/strndup.h: New file.
51136
51137 2003-08-17  Bruno Haible  <bruno@clisp.org>
51138
51139         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
51140         like AC_GNU_SOURCE.
51141         * modules/extensions (configure.ac): Comment out the invocation of
51142         gl_USE_SYSTEM_EXTENSIONS.
51143
51144 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51145
51146         Merges from coreutils, etc.
51147         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
51148         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
51149         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
51150         fixing a typo.
51151         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
51152         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
51153
51154 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51155
51156         Document merge from coreutils.
51157         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
51158         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
51159         * modules/utime: Add m4/utimes-null.m4.
51160
51161 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51162
51163         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
51164         space, undoing this 2003-08-12 change:
51165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51166
51167 2003-08-16  Paul Eggert  <eggert@twinsun.com>
51168
51169         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
51170         strtoul.c from libc, undoing this 2003-08-12 change:
51171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51172
51173 2003-08-16  Jim Meyering  <jim@meyering.net>
51174
51175         Merges from coreutils.
51176         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
51177         prefix.  Adjust cache variables similarly.  Create 500 rather than
51178         just 300 files, to exercise bug on Darwin6.5, too.
51179         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
51180         $missing_dir.
51181         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
51182         AM_SYS_POSIX_TERMIOS.
51183         Reported by mkc@mathdogs.com.
51184         Also change use of $am_cv_sys_posix_termios
51185         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
51186         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
51187         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
51188         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
51189         in /proc/mounts until it finds one with matching device number.  This
51190         is unnecessary when the FILE argument *is* a mount point.  No stat call
51191         is necessary in that case.  So, disable the statvfs-testing code on
51192         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
51193         as RedHat bug# 84846.
51194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51195         to 1MB, so as not to render systems with no stack size limit (e.g.,
51196         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
51197         Include <unistd.h>.  On some systems,
51198         it is required for the definition of _SC_PAGESIZE.
51199
51200 2003-08-16  Jim Meyering  <jim@meyering.net>
51201
51202         Merge from coreutils.
51203         * lib/xstrtoimax.c: #else #if -> #elif.
51204         * lib/xstrtoumax.c: Likewise.
51205
51206 2003-08-16  Jim Meyering  <jim@meyering.net>
51207
51208         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
51209         * m4/utimes.m4: Removed.
51210         * m4/utimes-null.m4: Renamed from utimes.m4.
51211
51212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51213         to 1MB, so as not to render systems with no stack size limit (e.g.,
51214         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
51215         Include <unistd.h>.  On some systems,
51216         it is required for the definition of _SC_PAGESIZE.
51217
51218 2003-08-16  Jim Meyering  <jim@meyering.net>
51219         and Paul Eggert  <eggert@cs.ucla.edu>
51220
51221         Merges from coreutils, etc.
51222
51223         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
51224         using the latest version from cvs.  This avoids problems with #line
51225         directives using a vendor (Sun) compiler.
51226         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
51227         Don't set GETGROUPS_LIB here; now it's
51228         done via getgroups.m4's wrapper function.
51229         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
51230         rather than just in sh-util/configure.in, so that the
51231         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
51232         same.
51233         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
51234         AC_FUNC_GETLOADAVG where to find getloadavg.c.
51235         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
51236         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
51237         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
51238         Remove code that is now done by the newly-required macros.
51239         Append $(EXEEXT) to DF_PROG.
51240         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
51241         Do not invoke or require the following here,
51242         since prereq.m4 or some gnulib .m4 now does this for us:
51243         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
51244         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
51245         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
51246         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
51247         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
51248         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
51249         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
51250         AC_FUNC_OBSTACK.
51251         Do not replace the following functions, as this is now the job
51252         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
51253         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
51254         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
51255         atexit getpass, strdup, getpagesize.
51256         Replace 'raise'.
51257         Do not check for the following functions, as this is now the job
51258         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
51259         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
51260         setregid.
51261         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
51262         Check for sys/sysctl.h.
51263         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
51264         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
51265         of checking for ssize_t ourselves.
51266
51267         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
51268         Require every macro that gnulib/modules/* suggests for us.
51269         (jm_PREREQ_ADDEXT): New macro.
51270         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
51271         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
51272
51273         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
51274         (gl_PHYSMEM): Use it.
51275         Also check for `table' function.
51276         Check for new headers and functions.
51277         Add check for sys/sysmp.h.
51278         With suggestions from Kaveh Ghazi.
51279         Ignore headers that are present but cannot be compiled.  This
51280         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
51281         C 5.4.
51282
51283 2003-08-15  Paul Eggert  <eggert@twinsun.com>
51284
51285         Document merge from coreutils.
51286         * modules/userspec: Depend on posixver.
51287         * modules/strftime: Depend on tzset.
51288
51289 2003-08-15  Paul Eggert  <eggert@twinsun.com>
51290
51291         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
51292         rather than tab, after '#' in shell-script copyright notices.
51293         Suggested by Bruno Haible.
51294
51295 2003-08-15  Paul Eggert  <eggert@twinsun.com>
51296
51297         * config/srclist-update: Use three spaces, rather than tab, after '#'
51298         in shell-script copyright notices.  Suggested by Bruno Haible.
51299         Remove unnecessary parenthesization in regular expression.
51300
51301 2003-08-15  Jim Meyering  <jim@meyering.net>
51302
51303         Merge from coreutils.
51304         * lib/xgethostname.c: Include <stdlib.h>.
51305         (xghostname): Don't exit for anything other than memory-related
51306         failure; just return NULL.
51307         * lib/userspec.c: Include "posixver.h".
51308         (parse_user_spec): Accept `.' as a separator only
51309         in pre-POSIX-200112 mode.
51310         * lib/strtoimax.c: Use #elif rather than #else #if.
51311         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
51312         Remove function, now that we can rely on a working tzset function.
51313         [!_LIBC]: Ensure that the required autoconf test has been run.
51314         [!defined _NL_CURRENT && HAVE_STRFTIME]:
51315         Use underlying_strftime for %r.
51316         * lib/sha.c: Merge in some clean-up and optimization changes from
51317         glibc.
51318         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
51319         Ensure that it is a multiple of 64.
51320         Rearrange loop exit tests so as to avoid performing an
51321         additional fread after encountering an error or EOF.
51322         * lib/realloc.c: Update copyright date.
51323
51324 2003-08-15  Jim Meyering  <jim@meyering.net>
51325         and Paul Eggert  <eggert@twinsun.com>
51326
51327         Merge from coreutils.
51328         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
51329         member but strut utmpx does not.  Needed for AIX 4.3.3.
51330         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
51331
51332 2003-08-15  Jim Meyering  <jim@meyering.net>
51333         and Paul Eggert  <eggert@cs.ucla.edu>
51334
51335         Merges from coreutils, etc.
51336         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
51337         Require gl_FUNC_TZSET_CLOBBER.
51338         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
51339         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
51340         members.
51341
51342 2003-08-14  Paul Eggert  <eggert@twinsun.com>
51343
51344         Help the merge from coreutils.
51345         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
51346         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
51347         * m4/tzset.m4: Use it too.
51348
51349 2003-08-14  Paul Eggert  <eggert@twinsun.com>
51350
51351         * modules/tzset: New file.
51352
51353 2003-08-14  Jim Meyering  <jim@meyering.net>
51354
51355         Merges from coreutils.
51356         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
51357         variable names, rather than @FNMATCH_H@.
51358         * modules/alloca: Likewise for $(ALLOCA_H).
51359
51360         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
51361         the three copies of the literal target, `fnmatch.h'.
51362         * modules/alloca (alloca.h): Likewise.
51363
51364 2003-08-14  Jim Meyering  <jim@meyering.net>
51365
51366         Merge from coreutils.
51367         * m4/tzset.m4: New file.
51368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
51369         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
51370         otherwise, AIX 5.1 systems would end up using the latter.
51371         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
51372         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
51373         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
51374         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
51375
51376 2003-08-14  Jim Meyering  <jim@meyering.net>
51377
51378         Merge from coreutils.
51379         * lib/obstack.h: Whitespace changes.
51380         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
51381         and xcalloc return values.
51382         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
51383         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
51384         hang on OSF/1 5.1 for DIR on both local and remote file systems.
51385         Reported by (and fix confirmed by) Nelson H. F. Beebe.
51386         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
51387         error from mntctl.
51388         Use mntctl's return value to drive the entry-processing loop, since
51389         we can't rely on the value of the vmt_length member in the last
51390         entry.  On some systems doing so could result in exhausting
51391         virtual memory.  Based in part on a patch from Mike Jetzer.
51392
51393 2003-08-14  Jim Meyering  <jim@meyering.net>
51394         and Paul Eggert  <eggert@twinsun.com>
51395
51396         Merges from coreutils, plus other fixes.
51397         * lib/physmem.c: Merge in portability changes from gcc/libiberty
51398         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
51399         for credits and details.  Thanks to Kaveh Ghazi for helping
51400         to keep these files in sync.
51401         (ARRAY_SIZE): Define it.
51402         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
51403         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
51404         (memcasecmp): Don't assume size_t fits in unsigned int.
51405         Remove casts and duplicate code.
51406         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
51407         (memcpy): Remove definition.
51408         Merge in some clean-up and optimization changes from glibc.
51409         [BLOCKSIZE]: Move definition to top of file.
51410         Ensure that it is a multiple of 64.
51411         Rearrange loop exit tests so as to avoid performing an
51412         additional fread after encountering an error or EOF.
51413         * lib/md5.h (md5_uintptr): Define.
51414         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
51415         return to the initial working directory.  Preserve errno
51416         for caller.
51417         * lib/idcache.c: Include "xalloc.h".
51418         (xmalloc, xrealloc): Remove decls.
51419         (getuser): Remove casts no longer required in C89.
51420         * lib/human.c: Include stdio.h, for sprintf.
51421         * lib/group-member.c: Include "xalloc.h".
51422         (xmalloc, xrealloc): Remove decls.
51423         (get_group_info): Remove casts no longer required in C89.
51424         * lib/getusershell.c (readname): Remove casts no longer required in
51425         C89.
51426         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
51427         * lib/getline.c: Whitespace fix, from coreutils.
51428
51429 2003-08-13  Paul Eggert  <eggert@twinsun.com>
51430
51431         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
51432         Check for isascii.
51433
51434         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
51435         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
51436         Undo previous (whitespace-only) change.
51437
51438 2003-08-13  Paul Eggert  <eggert@twinsun.com>
51439
51440         * lib/exclude.c: Include <ctype.h>
51441         (IN_CTYPE_DOMAIN): New macro.
51442         (is_space): New fn.
51443         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
51444         and empty lines.
51445
51446         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
51447         Undo previous (whitespace-only) change.
51448
51449 2003-08-13  Paul Eggert  <eggert@twinsun.com>
51450
51451         * config/srclist-update: Change update back to the old behavior,
51452         leaving whitespace alone.  Use one 'sed' command rather than a
51453         pipeline.
51454         (fixlicense): Now a variable, not a function.
51455         (remove_trailing_blanks): Remove.
51456         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
51457         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
51458         Undo previous (whitespace-only) change.
51459
51460 2003-08-12  Paul Eggert  <eggert@twinsun.com>
51461
51462         Merge from coreutils.
51463         * modules/euidaccess: Add lib_SOURCES, include for new
51464         file euidaccess.h
51465
51466 2003-08-12  Paul Eggert  <eggert@twinsun.com>
51467
51468         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
51469         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
51470         Normalize leading white space and remove trailing white space.
51471
51472         Merge from coreutils
51473         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
51474
51475         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
51476         0.12.1.  These files are now being upgraded automatically by
51477         ../config/srclist-update.
51478
51479 2003-08-12  Paul Eggert  <eggert@twinsun.com>
51480
51481         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
51482         Normalize leading white space and remove trailing white space.
51483         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
51484         notice, as per ../config/srclist-update.
51485
51486         Merge from coreutils.
51487         * lib/euidaccess.h: New file.
51488         * lib/euidaccess.c: Include it.
51489         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
51490         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
51491         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
51492
51493 2003-08-12  Paul Eggert  <eggert@twinsun.com>
51494
51495         * config/srclist-update: Add copyright notice.
51496         (remove_id_lines, remove_trailing_blanks): New constants.
51497         (fixfile): Use them to normalize spacing a bit in copied files.
51498         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
51499         Normalize leading white space and remove trailing white space.
51500
51501         * config/texinfo.tex: Sync with texinfo.
51502
51503         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
51504         strtoul.c from libc, to merge coreutils whitespace changes.
51505
51506         * config/srclist.txt: Get the following m4 files from gettext:
51507         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
51508         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
51509         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
51510         wint_t.m4.
51511
51512 2003-08-12  Karl Berry  <karl@gnu.org>
51513
51514         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
51515         been made.
51516
51517 2003-08-11  Paul Eggert  <eggert@twinsun.com>
51518
51519         * modules/gnu-source, m4/gnu-source.m4:
51520         Remove; we're assuming Autoconf 2.54 or later now.
51521         Suggested by Bruno Haible.
51522         * MODULES.html.sh (func_all_modules): Remove gnu-source.
51523
51524 2003-08-11  Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
51527
51528 2003-08-11  Bruno Haible  <bruno@clisp.org>
51529
51530         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
51531         (vasnprintf): Use it instead of wcslen.
51532
51533 2003-08-11  Bruno Haible  <bruno@clisp.org>
51534
51535         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
51536         value to ensure that _Bool promotes to int. Use #define for _Bool when
51537         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
51538
51539 2003-08-10  Karl Berry  <karl@gnu.org>
51540
51541         * lib/regex.h: update from libc (whitespace fix).
51542
51543 2003-08-09  Paul Eggert  <eggert@twinsun.com>
51544
51545         Merge some files from coreutils.  These changes were
51546         originally made by Jim Meyering.
51547         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
51548         many older Unixes require this.
51549         * lib/alloca.c (alloca): Remove cast to argument of free;
51550         no longer needed in C89.
51551         * lib/alloca_.h, regex.h: Fix white space to match
51552         what GNU indent does.
51553
51554 2003-08-09  Paul Eggert  <eggert@twinsun.com>
51555
51556         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
51557         apparently Emacs's Unicode mode got confused before my 2003-08-05
51558         checkin.
51559
51560 2003-08-08  Paul Eggert  <eggert@twinsun.com>
51561
51562         * m4/extensions.m4: New file.
51563         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
51564         Require gl_USE_SYSTEM_EXTENSIONS.
51565         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
51566         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
51567
51568 2003-08-08  Paul Eggert  <eggert@twinsun.com>
51569
51570         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
51571         * modules/extensions, modules/gnu-source: New files.
51572         * modules/timespec, modules/unlocked-io: Depend on extensions.
51573
51574 2003-08-07  Paul Eggert  <eggert@twinsun.com>
51575
51576         * modules/restrict: New file.
51577         * MODULES.html.sh (func_all_modules): Add restrict.
51578         * modules/regex: Depend on restrict.
51579
51580 2003-08-07  Paul Eggert  <eggert@twinsun.com>
51581
51582         * m4/restrict.m4: New file.
51583         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
51584
51585 2003-08-07  Bruno Haible  <bruno@clisp.org>
51586
51587         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
51588         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
51589
51590 2003-08-07  Bruno Haible  <bruno@clisp.org>
51591
51592         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
51593         makes the module 'getndelim2' compatible with the module 'getline'.
51594
51595 2003-08-05  Paul Eggert  <eggert@twinsun.com>
51596
51597         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
51598         byte with "\201" to avoid glitches when editing that source file
51599         with multi-gnome-terminal.
51600
51601 2003-08-05  Paul Eggert  <eggert@twinsun.com>
51602
51603         * lib/bumpalloc.h: Remove.
51604
51605 2003-08-05  Paul Eggert  <eggert@twinsun.com>
51606
51607         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
51608         * modules/bumpalloc: Remove.
51609
51610 2003-08-04  Paul Eggert  <eggert@twinsun.com>
51611
51612         * lib/getloadavg.c: Change copyright notice and spacing to conform to
51613         GNU coding style.
51614
51615         Merge from coreutils.
51616         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
51617         1. From glibc.
51618         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
51619         from Karl Berry, implemented by Jim Meyering.
51620         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
51621         from Dmitry V. Levin.
51622         Remove anachronistic cast of xrealloc.
51623         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
51624         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
51625         type. Otherwise, it wouldn't compile with at least /bin/cc on
51626         ymp-cray-unicos9.0.2.X.
51627         Combine two mostly-identical uses of alloca into one.
51628         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
51629
51630 2003-08-04  Dave Love  <d.love@dl.ac.uk>
51631
51632         [From Emacs.]
51633
51634         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
51635         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
51636         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
51637         obsolete NLIST_NAME_UNION.
51638         [__GNU__]: Undef BSD and FSCALE.
51639         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
51640
51641 2003-08-03  Paul Eggert  <eggert@twinsun.com>
51642
51643         * lib/stdbool_.h (_Bool): Make it signed char, instead of
51644         an enum type, so that it's guaranteed to promote to int.  See:
51645         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
51646
51647 2003-08-03  Karl Berry  <karl@gnu.org>
51648
51649         * config/depcomp: update from automake.
51650
51651 2003-07-31  Paul Eggert  <eggert@twinsun.com>
51652
51653         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
51654         (strerror): Don't assume that a printable int fits in 14 bytes.
51655
51656 2003-07-31  Bruno Haible  <bruno@clisp.org>
51657
51658         * modules/getpass-gnu: New file.
51659         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
51660
51661 2003-07-31  Bruno Haible  <bruno@clisp.org>
51662
51663         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
51664
51665 2003-07-24  Karl Berry  <karl@gnu.org>
51666
51667         * config/missing: update from automake.
51668
51669 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
51670             Bruno Haible  <bruno@clisp.org>
51671
51672         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
51673         * lib/getline.c (getline, getdelim): Likewise.
51674         Remove _GNU_SOURCE define; now it's defined in config.h through
51675         m4/getline.m4.
51676
51677 2003-07-23  Karl Berry  <karl@gnu.org>
51678
51679         * config/config.sub: update from prep.
51680
51681 2003-07-22  Paul Eggert  <eggert@twinsun.com>
51682
51683         * modules/xalloc (Depends-on): Add exitfail.
51684         * modules/xmemcoll: Likewise.
51685
51686 2003-07-22  Paul Eggert  <eggert@twinsun.com>
51687
51688         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
51689         over-parenthesization in macros.
51690
51691         Sync with coreutils.
51692
51693         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
51694         required by C99.
51695
51696         Use `exit_failure' for xalloc and xmemcoll instead of their own
51697         private exit-failure variables.
51698         * lib/xalloc.h (xalloc_exit_failure): Remove.
51699         * lib/xmalloc.c: Likewise.  Include exitfail.h.
51700         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
51701         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
51702         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
51703         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
51704
51705 2003-07-20  Jim Meyering  <jim@meyering.net>
51706
51707         * modules/closeout (Depends-on): Add exitfail.
51708         Suggestion from Bruno Haible.
51709
51710 2003-07-19  Karl Berry  <karl@gnu.org>
51711
51712         * config/config.sub: update from prep.
51713
51714 2003-07-18  Paul Eggert  <eggert@twinsun.com>
51715
51716         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
51717         Remove.
51718         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
51719         to test that it can stand by itself.  Include "exitfail.h".
51720         Clients should set exit_failure instead.
51721         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
51722
51723 2003-07-18  Bruno Haible  <bruno@clisp.org>
51724
51725         * modules/getndelim2: New file.
51726         * modules/getline: Share files with module getndelim2.
51727         * modules/getnline: Depend on getndelim2 instead of sharing files with
51728         it. Add getnline.c to lib_SOURCES.
51729         * MODULES.html.sh (func_all_modules): Add getndelim2.
51730
51731 2003-07-18  Bruno Haible  <bruno@clisp.org>
51732
51733         * m4/getndelim2.m4: New file.
51734         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
51735         invoke gl_PREREQ_GETNDELIM2.
51736         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
51737         gl_PREREQ_GETNDELIM2.
51738         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
51739         gl_GETNDELIM2.
51740
51741 2003-07-18  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/getndelim2.h: New file.
51744         * lib/getndelim2.c: Make into a module of its own. Include config.h,
51745         getndelim2.h.
51746         (getndelim2): Make non-static. Change return type to ssize_t.
51747         * lib/getline.h: Change argument names.
51748         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
51749         * lib/getnline.c: Include getndelim2.h.
51750
51751 2003-07-18  Andreas Schwab  <schwab@suse.de>
51752
51753         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
51754
51755 2003-07-17  Karl Berry  <karl@gnu.org>
51756
51757         * config/config.sub: update from prep.
51758
51759 2003-07-17  Bruno Haible  <bruno@clisp.org>
51760
51761         * modules/getnline: New file.
51762         * modules/getline: Add lib/getndelim2.c to source file list.
51763         * MODULES.html.sh (func_all_modules): Add getnline.
51764
51765 2003-07-17  Bruno Haible  <bruno@clisp.org>
51766
51767         * m4/getnline.m4: New file.
51768
51769 2003-07-17  Bruno Haible  <bruno@clisp.org>
51770
51771         * m4/Makefile.am.in: Remove file.
51772         * m4/Makefile.am: Remove file.
51773         * m4/Makefile.in: Remove file.
51774
51775 2003-07-17  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/getnline.h: New file.
51778         * lib/getnline.c: New file.
51779         * lib/getndelim2.c: New file, extracted from getline.c.
51780         (getndelim2): Renamed from getdelim2, with added nmax argument.
51781         * lib/getline.c: Include getndelim2.c.
51782         (getdelim2): Moved out to getndelim2.c.
51783         (getline, getdelim): Update.
51784
51785 2003-07-17  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/Makefile.am: Remove file.
51788         * lib/Makefile.in: Remove file.
51789
51790 2003-07-17  Bruno Haible  <bruno@clisp.org>
51791
51792         * configure.in: Remove file.
51793         * Makefile.in: Remove file.
51794
51795 2003-07-17  Bruno Haible  <bruno@clisp.org>
51796
51797         * MODULES.html.sh: Put the </BODY> right before </HTML>.
51798
51799 2003-07-16  Karl Berry  <karl@gnu.org>
51800
51801         * config/srclist-update: was running fixlicense twice, which caused
51802                 texinfo.tex to be nullified for some reason.  Simplify,
51803                 $gplsrc is no longer needed as far as I can see?
51804
51805 2003-07-16  Jim Meyering  <jim@meyering.net>
51806
51807         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
51808
51809 2003-07-15  Paul Eggert  <eggert@twinsun.com>
51810
51811         * config/srclist.txt: Get the following files from gettext-runtime/intl
51812         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
51813         ref-del.sin.  From Bruno Haible.
51814         * config/srclist-update (fixfile): Change grep pattern again, since the
51815         previous fix didn't work (there was another trailing $).  Use
51816         '[$]' to escape the $s.
51817
51818 2003-07-15  Karl Berry  <karl@gnu.org>
51819
51820         * lib/vasnprintf.c: update from gettext.
51821
51822 2003-07-15  Karl Berry  <karl@gnu.org>
51823
51824         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
51825         gets expanded when surrounded by '$'.
51826
51827 2003-07-15  Jim Meyering  <jim@meyering.net>
51828
51829         * modules/save-cwd: Don't depend on error.  From Derek Price.
51830
51831 2003-07-15  Jim Meyering  <jim@meyering.net>
51832
51833         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
51834
51835 2003-07-14  Simon Josefsson  <jas@extundo.com>
51836
51837         * modules/mempcpy: New file.
51838         * MODULES.html.sh (func_all_modules): Add mempcpy.
51839
51840 2003-07-14  Simon Josefsson  <jas@extundo.com>
51841
51842         * m4/mempcpy.m4: New file.
51843
51844 2003-07-14  Simon Josefsson  <jas@extundo.com>
51845
51846         * lib/mempcpy.h: New file.
51847         * lib/mempcpy.c: New file.
51848
51849 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51850
51851         * modules/getdate, modules/posixtm: Depend on mktime.
51852
51853 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51854
51855         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
51856         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
51857         unicodeio.c, unicodeio.h, unlocked-io.h:
51858         Switch from LGPL to GPL.
51859
51860 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51861
51862         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
51863         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
51864         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
51865         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
51866         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
51867         updated automatically by ../config/srclist-update.  This changes
51868         their license from LPGL to GPL.
51869
51870 2003-07-14  Paul Eggert  <eggert@twinsun.com>
51871
51872         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
51873         assumed to refer to the root of the most recent stable gettext version.
51874         * config/srclistvars.sh: Add defaults for eggert.
51875         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
51876         Match "This program" as well as "The program".  This is needed
51877         for gettext.
51878
51879 2003-07-14  Jim Meyering  <jim@meyering.net>
51880
51881         Don't emit diagnostics.  Let callers do that.
51882         * lib/save-cwd.c: Don't include "error.h".
51883         (save_cwd): Don't call error.  Ensure that errno is valid
51884         when returning nonzero.
51885
51886         * lib/save-cwd.h (restore_cwd): Update prototype.
51887         * lib/save-cwd.c (restore_cwd): Remove two parameters.
51888         Simplify.  Don't call error upon failure.  Let callers do that.
51889         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
51890         when auditing is enabled.  But don't bother updating the #if.
51891
51892 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
51893
51894         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
51895         it breaks C++ compilation.
51896         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
51897
51898 2003-07-10  Simon Josefsson  <jas@extundo.com>
51899
51900         * modules/strchrnul (Makefile.am): Add strchrnul.h.
51901
51902 2003-07-10  Jim Meyering  <jim@meyering.net>
51903
51904         * m4/clock_time.m4: Remove trailing blank.
51905         * m4/intmax_t.m4: Likewise.
51906
51907 2003-07-10  Jim Meyering  <jim@meyering.net>
51908
51909         * lib/vasnprintf.c: Remove trailing blanks.
51910         Make cpp indentation consistent.
51911
51912 2003-07-09  Paul Eggert  <eggert@twinsun.com>
51913
51914         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
51915         posixver.c, strftime.c, strnlen.c, strverscmp.c:
51916         Switch from LGPL to GPL.
51917
51918 2003-07-09  Paul Eggert  <eggert@twinsun.com>
51919
51920         * config/srclist.txt: Sort sublists.  Add
51921         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
51922         that differ from gnulib for one reason or another; we'd like this list
51923         to be smaller but for now let's document what we have.
51924
51925 2003-07-08  Paul Eggert  <eggert@twinsun.com>
51926
51927         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
51928         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
51929         and sweeter "eval x=$x".
51930         * config/srclist.txt: Get lib/argp* from glibc.
51931
51932 2003-07-07  Paul Eggert  <eggert@twinsun.com>
51933
51934         * lib/mktime.c: Fix some boundary cases and remove need for floating
51935         point.
51936
51937         Issue a compile-time diagnostic if time_t is floating point, or if
51938         two's complement arithmetic is not in effect, or if arithmetic
51939         right shift does not propagate the sign.  These assumptions were
51940         all in the original code but they weren't checked.
51941
51942         (TIME_T_MIDPOINT, verify): New macros.
51943         (__isleap): Remove; it has integer overflow problems.
51944         (leapyear): New function, without those problems.
51945         (ydhms_tm_diff): Remove; splitting into two parts.
51946         (ydhms_diff): New function, containing the arithmetic part of
51947         the old ydhms_tm_diff function.  Issue a compile-time
51948         diagnostic if we are not using C99 integer division.
51949         Avoid casts when possible.
51950         (guess_time_tm): New function, containing the checking part of
51951         the old ydhms_tm_diff function.  Return the new value, rather than
51952         the difference between it and the old.  Accept a new argument T
51953         so that *T specifies the old value.  Check for overflow in the result.
51954
51955         (__mktime_internal): Use a time_t offset, not a long int offset.
51956         This undoes the 2003-06-04 change, which is no longer needed now
51957         that we have better overflow checking.
51958         (localtime_offset): Likewise.
51959
51960         (__mktime_internal): Avoid harmful overflow on hosts where time_t
51961         and long are 64-bit but int is only 32-bit.
51962         (ydhms_diff): Use long int to store year1 and yday1.
51963         Issue a compile-time diagnostic if long int is not wide enough.
51964
51965         (__mktime_internal): Use long int to store adjusted year and yday.
51966         Use plain C rather than preprocessor commands, if that doesn't
51967         affect efficiency.
51968         Check for overflow (and try to repair) after each probe
51969         rather than checking only at the very end.  This avoids some bugs
51970         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
51971         does not equal GMT offset at maximum time).
51972         Use integer to check for overflow rather than floating point; this
51973         is more portable to non-IEEE hosts, and is a tad faster.
51974         When we detect that we are oscillating between two values,
51975         don't check whether tm_isdst has the requested value, since
51976         we already know the answer.  When tm_isdst has the wrong value,
51977         use a different heuristic to find the right one, based on the
51978         extreme values actually observed in practice in tz2003a,
51979         rather than the (overly optimistic) "previous 3 calendar quarters".
51980
51981         (not_equal_tm, print_tm, check_result): Use "const T" rather than
51982         "T const" to accommodate glibc style.
51983         (check_result): Use less-confusing report format.  "long" -> "long int.
51984         (main): Likewise.
51985         Don't loop if the iteration overflows time_t.
51986         Allow a negative step in the iteration.
51987
51988 2003-07-06  Karl Berry  <karl@gnu.org>
51989
51990         * config/depcomp: update from automake.
51991         * config/config.sub: update from prep.
51992
51993 2003-07-03  Karl Berry  <karl@gnu.org>
51994
51995         * config/config.guess: update from prep.
51996
51997 2003-07-01  Paul Eggert  <eggert@twinsun.com>
51998
51999         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
52000         xreadlink.c now includes it unconditionally.
52001
52002 2003-07-01  Paul Eggert  <eggert@twinsun.com>
52003
52004         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
52005         having it depend on HAVE_SYS_TYPES_H.
52006
52007 2003-07-01  Bruno Haible  <bruno@clisp.org>
52008
52009         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
52010         <sys/types.h> should be sufficient.
52011         Reported by Paul Eggert.
52012
52013 2003-06-26  Karl Berry  <karl@gnu.org>
52014
52015         * config/depcomp: update from automake.
52016
52017 2003-06-26  Bruno Haible  <bruno@clisp.org>
52018
52019         * modules/human: Depend on module stdbool.
52020
52021 2003-06-25  Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/readlink: New file.
52024         * modules/xreadlink: Depend on it.
52025         * MODULES.html.sh (func_all_modules): Add readlink.
52026
52027 2003-06-25  Bruno Haible  <bruno@clisp.org>
52028
52029         * m4/readlink.m4: New file.
52030
52031 2003-06-25  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/readlink.c: New file.
52034
52035 2003-06-22  Karl Berry  <karl@gnu.org>
52036
52037         * config/srclist.txt: update mkinstalldirs from automake.
52038         * config/mkinstalldirs: update.
52039
52040 2003-06-22  Bruno Haible  <bruno@clisp.org>
52041
52042         Portability to mingw32.
52043         * m4/ssize_t.m4: New file, from GNU gettext.
52044         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
52045         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
52046
52047 2003-06-22  Bruno Haible  <bruno@clisp.org>
52048
52049         * modules/safe-read: Add m4/ssize_t.m4.
52050         * modules/xreadlink: Add m4/ssize_t.m4.
52051
52052 2003-06-20  Bruno Haible  <bruno@clisp.org>
52053
52054         Assume C89, so PARAMS isn't needed.
52055         * lib/unicodeio.h (PARAMS): Remove.
52056         * lib/unicodeio.c: Don't use PARAMS.
52057
52058 2003-06-18  Karl Berry  <karl@gnu.org>
52059
52060         * config/config.{guess,sub}: update from prep.
52061
52062 2003-06-18  Jim Meyering  <jim@meyering.net>
52063
52064         Merge changes from coreutils.
52065         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
52066         Remove explicit declarations of xmalloc and realloc.
52067         Include xalloc.h.
52068         (read_utmp): Remove anachronistic cast of xmalloc.
52069
52070 2003-06-17  Paul Eggert  <eggert@twinsun.com>
52071
52072         Assume C89, so PARAMS isn't needed.
52073         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
52074         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
52075         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
52076         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
52077         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
52078         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
52079         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
52080         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
52081         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
52082         lib/xstrtod.h, lib/xstrtol.h: Likewise.
52083         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
52084         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
52085         no longer needed. Anyway, config.h should always be included before any
52086         other file.
52087
52088 2003-06-11  Simon Josefsson  <jas@extundo.com>
52089
52090         * modules/sysexits: New file.
52091         * MODULES.html.sh (func_all_modules): Add sysexits.
52092
52093 2003-06-11  Simon Josefsson  <jas@extundo.com>
52094
52095         * lib/sysexit_.h: New file.
52096
52097 2003-06-11  Derek Price  <derek@ximbiot.com>
52098
52099         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
52100         necessary.
52101
52102 2003-06-11  Bruno Haible  <bruno@clisp.org>
52103
52104         * m4/sysexits.m4: New file.
52105
52106 2003-06-10  Simon Josefsson  <jas@extundo.com>
52107
52108         * lib/argp.h: New file, from glibc.
52109         * lib/argp-ba.c: New file, from glibc.
52110         * lib/argp-eexst.c: New file, from glibc.
52111         * lib/argp-fmtstream.c: New file, from glibc.
52112         * lib/argp-fmtstream.h: New file, from glibc.
52113         * lib/argp-fs-xinl.c: New file, from glibc.
52114         * lib/argp-help.c: New file, from glibc.
52115         * lib/argp-namefrob.h: New file, from glibc.
52116         * lib/argp-parse.c: New file, from glibc.
52117         * lib/argp-pv.c: New file, from glibc.
52118         * lib/argp-pvh.c: New file, from glibc.
52119         * lib/argp-xinl.c: New file, from glibc.
52120
52121 2003-06-10  Simon Josefsson  <jas@extundo.com>
52122
52123         * modules/strchrnul: New file.
52124
52125 2003-06-10  Simon Josefsson  <jas@extundo.com>
52126
52127         * modules/argp: New file.
52128
52129 2003-06-10  Simon Josefsson  <jas@extundo.com>
52130
52131         * m4/strchrnul.m4: New file.
52132
52133 2003-06-10  Simon Josefsson  <jas@extundo.com>
52134
52135         * lib/strchrnul.h: New file.
52136         * lib/strchrnul.c: New file.
52137
52138 2003-06-10  Bruno Haible  <bruno@clisp.org>
52139
52140         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
52141
52142 2003-06-07  Karl Berry  <karl@gnu.org>
52143
52144         * config/config.{guess,sub}: update from prep.
52145
52146 2003-06-07  Jim Meyering  <jim@meyering.net>
52147
52148         * modules/strtod: Use $(...) notation, not @...@ for
52149         AC_REPLACE'd variables.
52150         * modules/localcharset: Likewise.
52151
52152 2003-06-07  Jim Meyering  <jim@meyering.net>
52153
52154         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
52155         in place of my name in the copyright comment.
52156         Remove definition and uses of __P.
52157
52158         From coreutils.
52159         * lib/stat.c: Don't declare xmalloc explicitly.
52160         Instead, include "xalloc.h".
52161         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
52162         xrealloc, and xcalloc return values.
52163         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
52164         Improve comment.
52165         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
52166
52167 2003-06-07  Bruno Haible  <bruno@clisp.org>
52168
52169         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
52170         avoid AC_CONFIG_LINKS.
52171         * modules/fnmatch (Makefile.am): Use explicit creation rule for
52172         fnmatch.h, to avoid AC_CONFIG_LINKS.
52173         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
52174
52175 2003-06-07  Bruno Haible  <bruno@clisp.org>
52176
52177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
52178         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
52179         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52180         directory.
52181         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
52182         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52183         directory.
52184
52185 2003-06-06  Jim Meyering  <jim@meyering.net>
52186
52187         Merge from coreutils.
52188         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
52189         Consolidate declarations and initializations of *_base* locals.
52190
52191         Merge from coreutils.
52192         This avoids a core dump on systems without GNU putenv,
52193         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
52194         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
52195         (unsetenv): New static function, from GNU libc.
52196         (rpl_putenv): Use it.
52197
52198         * lib/modechange.c: Remove trailing blanks.
52199
52200         Merge from coreutils.
52201         * lib/fsusage.c: Remove declaration of statfs.
52202         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
52203
52204         * lib/posixtm.c: Include <stdbool.h> unconditionally.
52205
52206 2003-06-06  Jim Meyering  <jim@meyering.net>
52207
52208         * lib/stdbool_.h: Renamed from stdbool.h.in.
52209
52210 2003-06-06  Jim Meyering  <jim@meyering.net>
52211             Bruno Haible  <bruno@clisp.org>
52212
52213         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
52214         Adjust Makefile.am snippet not to redirect directly to target.
52215         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
52216
52217 2003-06-05  Paul Eggert  <eggert@twinsun.com>
52218
52219         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
52220         mismatch, look in future quarters as well as past.  This fixes a
52221         bug when processing fall-backwards gaps immediately after a long
52222         period of daylight-saving time.
52223
52224         * lib/mktime.c: Assume freestanding C89 or better.
52225         (HAVE_LIMITS_H): Remove.  Assume it's 1.
52226         (__P): Remove; not used.
52227         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
52228         (mktime, not_equal_tm, print_tm, check_result,
52229         main): Use prototypes.  Use const * where appropriate.
52230         (main): Fix typo in testing code that uncovered by above changes.
52231         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
52232
52233 2003-06-04  Paul Eggert  <eggert@twinsun.com>
52234
52235         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
52236         locale.h, localeconv.  This merges changes from coreutils.
52237
52238         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
52239         It can be removed after the next Autoconf is released.
52240         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
52241         needed.
52242
52243 2003-06-04  Paul Eggert  <eggert@twinsun.com>
52244
52245         * lib/mktime.c: Fix Debian bug 177940
52246         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
52247         (localtime_offset): Now long int, not time_t, because we want it
52248         to be guaranteed to be signed.  All uses changed.
52249         (__mktime_internal): If overflow would occur when adding offset,
52250         don't add it.
52251
52252         Merge 'human' changes from coreutils.  Rewrite to support
52253         locale-specific notations like thousands separators.
52254         * lib/human.c: Simplify authorship notice.
52255         Include human.h immediately after config.h.
52256         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
52257         <limits.h>: Do not include, since human.h does.
52258         (SIZE_MAX, UINTMAX_MAX): New macros.
52259         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
52260         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
52261         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
52262         (power_letter): Renamed from suffixes.
52263         (generate_suffix_backwards): Remove.
52264         (adjust_value): Now takes int style (because of human.h changes)
52265         and long double value (for greater precision on some platforms).
52266         (group_number): New function.
52267         (human_readable): Use it.  Use integer options, not enum.
52268         Put the options before the sizes in the arg list.
52269         Support all the new options.
52270         The old human_readable function has been removed;
52271         use inttostr.h instead.
52272         (human_readable, default_block_size, humblock):
52273         Use uintmax_t, not int, for block sizes.
52274         (human_readable_inexact, block_size_types): Remove.
52275         (block_size_opts): New constant.
52276         (human_options): Renamed from human_block_size, with new signature
52277         that allows block sizes up to UINTMAX_MAX.  All callers changed.
52278         * lib/human.h: Add copyright and authorship notice.
52279         Include <limits.h> and <stdbool.h> unconditionally.
52280         (PARAMS): Remove.  All uses removed.
52281         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
52282         (enum human_inexact_style): Remove tag; now a nameless enum.
52283         (human_floor, human_ceiling, human_round_to_even): Now have
52284         values 2, 0, 1 rather than -1, 1, 0.
52285         (human_group_digits, human_suppress_point_zero, human_autoscale,
52286         human_base_1024, human_SI, human_B): New constants.
52287         (human_readable_inexact, human_block_size): Remove.
52288         (human_readable): Size args are now uintmax_t, not int.
52289         (human_options): New decl.
52290
52291         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
52292         unnecessary now that we assume C89 or better.  This change
52293         imported from coreutils.
52294
52295         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52296         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
52297         in the 2003-05-30 sync from glibc.
52298
52299         .h files should stand alone, but we shouldn't include <sys/types.h>
52300         if we can get away with just <stddef.h>.
52301
52302         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
52303         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
52304         rather than <sys/types.h>, as we merely need size_t.
52305         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
52306         to get size_t.
52307         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
52308         Include <stdio.h>, to get FILE.
52309         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
52310         memcasecmp.h has included <stddef.h> and all we need is size_t.
52311         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
52312         our interface, instead of including <sys/types.h>
52313
52314 2003-06-04  Paul Eggert  <eggert@twinsun.com>
52315
52316         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
52317         now, as glibc mktime is buggy on non-glibc systems.
52318
52319 2003-06-03  Karl Berry  <karl@gnu.org>
52320
52321         * config/config.sub: update from prep.
52322
52323 2003-06-02  Paul Eggert  <eggert@twinsun.com>
52324
52325         [from coreutils]
52326         Fix some minor time-related bugs with POSIX time arguments.
52327         Some valid time stamps were being rejected (notably -1, and
52328         time stamps before 1900 on 64-bit hosts).  And some invalid
52329         time stamps were being accepted, e.g. September 31.
52330
52331         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
52332         that we can return (time_t) -1 successfully.
52333         * lib/posixtm.c: Likewise.
52334         [HAVE_STDBOOL_H]: Include <stdbool.h>.
52335         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
52336         (t): Remove static var.
52337         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
52338         of static var.  All uses changed.
52339         (year): Do not reject years before 1900; they can occur with
52340         64-bit time_t.
52341         (posix_time_parse): Do not check for out-of-range components;
52342         that is now the caller's responsibility, since our checks were
52343         only approximations.
52344         (posixtime): Use mktime to check for out-of-range components,
52345         since it knows them exactly.
52346         If mktime returns (time_t) -1, check whether an error actually occurred
52347         by invoking localtime on -1.
52348         (main) [TEST_POSIXTIME]: Check for input data errors, and report
52349         posixtime failures better.
52350         Improve the test data (in comments only).
52351
52352 2003-06-02  Karl Berry  <karl@gnu.org>
52353
52354         * config/mkinstalldirs (version): new variable.
52355         (--version): new option.
52356         (usage): improve message.
52357
52358 2003-05-30  Karl Berry  <karl@gnu.org>
52359
52360         * lib/mktime.c: update from libc.
52361
52362 2003-05-30  Bruno Haible  <bruno@clisp.org>
52363
52364         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
52365         * config/config.rpath: Upgrade to gettext-0.12.1.
52366
52367 2003-05-30  Bruno Haible  <bruno@clisp.org>
52368
52369         * m4/gettext.m4: Upgrade to gettext-0.12.1.
52370         * m4/nls.m4: New file, from gettext-0.12.1.
52371         * m4/po.m4: New file, from gettext-0.12.1.
52372         * m4/progtest.m4: Upgrade to gettext-0.12.1.
52373
52374 2003-05-30  Bruno Haible  <bruno@clisp.org>
52375
52376         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
52377         * lib/localcharset.h: Likewise.
52378         * lib/localcharset.c: Likewise.
52379
52380 2003-05-29  Karl Berry  <karl@gnu.org>
52381
52382         * config/config.rpath: update from gettext.
52383
52384 2003-05-28  Paul Eggert  <eggert@twinsun.com>
52385
52386         Assume the headers required for C89 freestanding compilers.
52387         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
52388         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
52389         * m4/human.m4 (gl_HUMAN): Likewise.
52390         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
52391         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
52392         * m4/userspec.m4 (gl_USERSPEC): Likewise.
52393         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
52394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52395         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
52396
52397 2003-05-28  Paul Eggert  <eggert@twinsun.com>
52398
52399         Assume the headers required for C89 freestanding compilers.
52400         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
52401         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
52402         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
52403         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
52404         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
52405         define, since <limits.h> is guaranteed to do that.
52406         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
52407         * lib/exclude.c: Include <stdbool.h> unconditionally.
52408         * lib/tempname.c: Include <stddef.h> unconditionally.
52409         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
52410         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
52411         <stddef.h> does that.
52412         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
52413         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
52414         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
52415         needed.
52416         * lib/xstrtol.c: Likewise.
52417         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
52418         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
52419
52420         * lib/addext.c (addext): Use assignment rather than cast, to avoid
52421         warnings on some platforms.
52422
52423         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52424         arbitrarily.
52425
52426 2003-05-26  Jim Meyering  <jim@meyering.net>
52427
52428         Merge in a change from coreutils:
52429         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
52430         that is guaranteed to be `no'.  Use `no_such_member' to indicate
52431         that condition, rather than `-1' which is slightly misleading.
52432         Change the name of the cache variable to have the gl_ prefix.
52433         Prompted by a patch from Richard Dawe for DJGPP.
52434
52435 2003-05-24  Karl Berry  <karl@gnu.org>
52436
52437         * config/config.guess: update from prep.
52438
52439 2003-05-22  Karl Berry  <karl@gnu.org>
52440
52441         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
52442
52443 2003-05-20  Karl Berry  <karl@gnu.org>
52444
52445         * config/config.guess: update from prep.
52446
52447 2003-05-18  Karl Berry  <karl@gnu.org>
52448
52449         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
52450         might actually be set by the user.
52451
52452         * config/depcomp, install-sh, mdate-sh: update from automake.
52453
52454 2003-05-17  Bruno Haible  <bruno@clisp.org>
52455
52456         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
52457         invalid expansion for AC_EGREP_CPP.
52458         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
52459         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52460         Suggested by Akim Demaille <akim@epita.fr> in
52461         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
52462
52463 2003-05-12  Jim Meyering  <jim@meyering.net>
52464
52465         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
52466         the space-padded-by-default conversion specifiers, %e, %k, %l.
52467
52468 2003-05-12  Bruno Haible  <bruno@clisp.org>
52469
52470         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
52471         the string is longer than 4 KB.
52472
52473 2003-05-11  Karl Berry  <karl@gnu.org>
52474
52475         * config/config.{guess,sub}: update from prep.
52476
52477 2003-05-09  Bruno Haible  <bruno@clisp.org>
52478
52479         * modules/error: Add m4/strerror_r.m4 to file list.
52480
52481 2003-05-03  Bruno Haible  <bruno@clisp.org>
52482
52483         Upgrade to Unicode-4.0.
52484         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
52485         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
52486         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
52487         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
52488         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
52489         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
52490         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
52491         Change width of U+E0100..U+E01EF from 1 to 0.
52492
52493 2003-04-25  Jim Meyering  <jim@meyering.net>
52494
52495         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
52496         of type size_t, not int.
52497
52498 2003-04-25  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/copy-file.c: Include <stddef.h>, for size_t.
52501
52502 2003-04-21  Paul Eggert  <eggert@twinsun.com>
52503
52504         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
52505         code which expansion is under static control.  Patch imported from
52506         Akim Demaille's patch to Bison; see
52507         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
52508
52509 2003-04-14  Bruno Haible  <bruno@clisp.org>
52510
52511         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
52512
52513 2003-04-11  Jim Meyering  <jim@meyering.net>
52514
52515         Merge changes from Coreutils.
52516
52517         2003-03-22  Jim Meyering  <jim@meyering.net>
52518
52519         * lib/strftime.c (widen): Cast alloca return value to proper type.
52520
52521         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
52522
52523         From GNU libc.
52524         * lib/strftime.c (my_strftime): Handle very large width
52525         specifications for numeric values correctly.  Improve checks for
52526         overflow.
52527
52528         2003-01-19  Jim Meyering  <jim@meyering.net>
52529
52530         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
52531         definitions.
52532         (nl_get_alt_digit) [! defined my_strftime]: Define.
52533         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
52534         _nl_get_alt_digit and _nl_get_walt_digit.
52535
52536         * lib/strftime.c (my_strftime): Merge in locale-related changes from
52537         libc. These changes have no effect outside of _LIBC.
52538
52539 2003-04-10  Bruno Haible  <bruno@clisp.org>
52540
52541         * modules/findprog: New file.
52542         * MODULES.html.sh (func_all_modules): Add it.
52543
52544 2003-04-10  Bruno Haible  <bruno@clisp.org>
52545
52546         * m4/findprog.m4: New file.
52547         * m4/eaccess.m4: New file.
52548
52549 2003-04-10  Bruno Haible  <bruno@clisp.org>
52550
52551         * lib/findprog.h: New file, from GNU gettext.
52552         * lib/findprog.c: New file, from GNU gettext.
52553
52554 2003-04-05  Jim Meyering  <jim@meyering.net>
52555
52556         Merge changes from Coreutils.
52557
52558         * lib/exclude.h (PARAMS): Remove definition and uses.
52559         * lib/exclude.c: Remove uses of `PARAMS'.
52560
52561         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
52562         Add test-cases for DOS filenames. Declare program_name.
52563         (main): Set up program_name.  Patch by Rich Dawe.
52564
52565         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
52566         error from mntctl.
52567         Use mntctl's return value to drive the entry-processing loop, since
52568         we can't rely on the value of the vmt_length member in the last
52569         entry.  On some systems doing so could result in exhausting
52570         virtual memory.  Based in part on a patch from Mike Jetzer.
52571
52572 2003-04-04  Bruno Haible  <bruno@clisp.org>
52573
52574         * modules/linebreak: New file.
52575         * MODULES.html.sh (func_all_modules): Add it.
52576
52577 2003-04-04  Bruno Haible  <bruno@clisp.org>
52578
52579         * m4/linebreak.m4: New file.
52580
52581 2003-04-04  Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/linebreak.h: New file, from GNU gettext.
52584         * lib/linebreak.c: New file, from GNU gettext with slight
52585         modifications.
52586         * lib/lbrkprop.h: New file, from GNU gettext.
52587
52588 2003-04-03  Bruno Haible  <bruno@clisp.org>
52589
52590         * modules/utf8-ucs4: New file.
52591         * modules/utf16-ucs4: New file.
52592         * modules/ucs4-utf8: New file.
52593         * modules/ucs4-utf16: New file.
52594         * MODULES.html.sh (func_all_modules): Add them.
52595
52596 2003-04-03  Bruno Haible  <bruno@clisp.org>
52597
52598         * m4/utf-ucs4.m4: New file.
52599         * m4/ucs4-utf.m4: New file.
52600
52601 2003-04-03  Bruno Haible  <bruno@clisp.org>
52602
52603         * lib/utf8-ucs4.h: New file, from GNU gettext.
52604         * lib/utf16-ucs4.h: New file, from GNU gettext.
52605         * lib/ucs4-utf8.h: New file, from GNU gettext.
52606         * lib/ucs4-utf16.h: New file, from GNU gettext.
52607
52608 2003-04-02  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/binary-io: New file.
52611         * MODULES.html.sh (func_all_modules): Add it.
52612
52613 2003-04-02  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/binary-io.h: New file, from GNU gettext.
52616
52617 2003-04-01  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/pathname: New file.
52620         * MODULES.html.sh (func_all_modules): Add it.
52621
52622 2003-04-01  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/pathname.h: New file, from GNU gettext.
52625         * lib/concatpath.c: New file, from GNU gettext.
52626
52627 2003-03-30  Bruno Haible  <bruno@clisp.org>
52628
52629         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
52630
52631 2003-03-30  Bruno Haible  <bruno@clisp.org>
52632
52633         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
52634         function chown() doesn't exist.
52635
52636 2003-03-28  Bruno Haible  <bruno@clisp.org>
52637
52638         * modules/copy-file: New file.
52639         * MODULES.html.sh (func_all_modules): Add it.
52640
52641 2003-03-28  Bruno Haible  <bruno@clisp.org>
52642
52643         * m4/copy-file.m4: New file.
52644
52645 2003-03-28  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/copy-file.h: New file, from GNU gettext.
52648         * lib/copy-file.c: New file, from GNU gettext.
52649
52650 2003-03-18  Jim Meyering  <jim@meyering.net>
52651
52652         * lib/quote.c (quote_n): Fix typo in comment.
52653
52654 2003-03-18  Bruno Haible  <bruno@clisp.org>
52655
52656         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
52657         checking.
52658         * m4/onceonly_2_57.m4: Likewise.
52659
52660 2003-03-17  Bruno Haible  <bruno@clisp.org>
52661
52662         * m4/onceonly.m4: Require autoconf 2.54 or newer.
52663         (m4_quote): Remove macro.
52664         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
52665
52666 2003-03-14  Jim Meyering  <jim@meyering.net>
52667
52668         Merge changes from Coreutils.
52669         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
52670         to be const, in order to avoid warnings.
52671         (obstack_room): Likewise.
52672         (obstack_empty_p): Likewise.
52673
52674 2003-03-14  Bruno Haible  <bruno@clisp.org>
52675
52676         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
52677         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
52678
52679 2003-03-13  Paul Eggert  <eggert@twinsun.com>
52680
52681         Merge changes from Bison.
52682         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
52683         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
52684         when compiling Bison 1.875's `bitset bset = obstack_alloc
52685         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
52686         * lib/hash.c: Include <stdbool.h> unconditionally.
52687
52688 2003-03-13  Paul Eggert  <eggert@twinsun.com>
52689
52690         * m4/onceonly.m4 (m4_quote): New macro.
52691         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
52692         Quote AC_FOREACH variable-expansions properly.
52693
52694 2003-03-13  Paul Eggert  <eggert@twinsun.com>
52695
52696         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
52697
52698 2003-03-09  Paul Eggert  <eggert@twinsun.com>
52699
52700         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
52701         Reported by Bruce Becker; see:
52702         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
52703
52704 2003-03-03  Paul Eggert  <eggert@twinsun.com>
52705             Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
52708         Reported by John Hughes, see
52709         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
52710
52711 2003-02-20  Bruno Haible  <bruno@clisp.org>
52712
52713         * MODULES.html.sh (func_all_modules): Add poll.
52714
52715 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
52716
52717         * modules/poll: New file.
52718
52719 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
52720
52721         * lib/poll_.h: New file.
52722         * lib/poll.c: New file.
52723
52724 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
52725
52726         * m4/poll.m4: New file.
52727
52728 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
52729
52730         * modules/mathl: New file.
52731
52732 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
52733
52734         * lib/mathl.h: New file.
52735         * lib/acosl.c: New file.
52736         * lib/asinl.c: New file.
52737         * lib/atanl.c: New file.
52738         * lib/ceill.c: New file.
52739         * lib/cosl.c: New file.
52740         * lib/expl.c: New file.
52741         * lib/floorl.c: New file.
52742         * lib/frexpl.c: New file.
52743         * lib/ldexpl.c: New file.
52744         * lib/logl.c: New file.
52745         * lib/sincosl.c: New file.
52746         * lib/sinl.c: New file.
52747         * lib/sqrtl.c: New file.
52748         * lib/tanl.c: New file.
52749         * lib/trigl.c: New file.
52750         * lib/trigl.h: New file.
52751
52752 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
52753
52754         * m4/mathl.m4: New file.
52755
52756 2003-02-18  Bruno Haible  <bruno@clisp.org>
52757
52758         * MODULES.html.sh (func_all_modules): Add mathl.
52759
52760 2003-02-17  Bruno Haible  <bruno@clisp.org>
52761
52762         * modules/mkdtemp: New module.
52763         * MODULES.html.sh (func_all_modules): Add it.
52764
52765 2003-02-17  Bruno Haible  <bruno@clisp.org>
52766
52767         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
52768
52769 2003-02-17  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/mkdtemp.h: New file, from GNU gettext.
52772         * lib/mkdtemp.c: New file, from GNU gettext.
52773
52774 2003-02-02  Jim Meyering  <jim@meyering.net>
52775
52776         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
52777         e.g. glibc-2.2.93.
52778
52779 2003-01-31  Bruno Haible  <bruno@clisp.org>
52780
52781         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
52782         'rpl_rename'.
52783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
52784         'rpl_strnlen'.
52785         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
52786         'rpl_strtod'.
52787         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
52788         'rpl_utime'.
52789
52790 2003-01-31  Bruno Haible  <bruno@clisp.org>
52791
52792         * lib/rename.c: #undef rename before defining rpl_rename.
52793         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
52794
52795 2003-01-30  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/vasnprintf, modules/vasprintf: New modules.
52798         * MODULES.html.sh (func_all_modules): Add them.
52799
52800 2003-01-30  Bruno Haible  <bruno@clisp.org>
52801
52802         * m4/signed.m4: New file, from GNU gettext.
52803         * m4/longdouble.m4: New file, from GNU gettext.
52804         * m4/wchar_t.m4: New file, from GNU gettext.
52805         * m4/wint_t.m4: New file, from GNU gettext.
52806         * m4/vasnprintf.m4: New file.
52807         * m4/vasprintf.m4: New file.
52808
52809 2003-01-30  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/printf-args.h: New file, from GNU gettext.
52812         * lib/printf-args.c: New file, from GNU gettext.
52813         * lib/printf-parse.h: New file, from GNU gettext.
52814         * lib/printf-parse.c: New file, from GNU gettext.
52815         * lib/vasnprintf.h: New file, from GNU gettext.
52816         * lib/vasnprintf.c: New file, from GNU gettext.
52817         * lib/asnprintf.c: New file, from GNU gettext.
52818         * lib/vasprintf.h: New file, from GNU gettext with modifications.
52819         * lib/vasprintf.c: New file, from GNU gettext.
52820         * lib/asprintf.c: New file, from GNU gettext.
52821
52822 2003-01-29  Bruno Haible  <bruno@clisp.org>
52823
52824         * modules/stpncpy: New module.
52825         * MODULES.html.sh (func_all_modules): Add it.
52826
52827 2003-01-29  Bruno Haible  <bruno@clisp.org>
52828
52829         * m4/stpncpy.m4: New file.
52830
52831 2003-01-29  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/stpncpy.h: New file, from GNU gettext with modifications.
52834         * lib/stpncpy.c: New file, from GNU gettext with modifications.
52835
52836 2003-01-28  Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/c-ctype: New module.
52839         * MODULES.html.sh (func_all_modules): Add it.
52840
52841 2003-01-28  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
52844         Paul Eggert.
52845         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
52846         Paul Eggert.
52847
52848 2003-01-27  Bruno Haible  <bruno@clisp.org>
52849
52850         * modules/xsetenv: New module.
52851         * MODULES.html.sh (func_all_modules): Add it.
52852
52853 2003-01-27  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/xsetenv.h: New file, from GNU gettext.
52856         * lib/xsetenv.c: New file, from GNU gettext.
52857
52858 2003-01-23  Jim Meyering  <jim@meyering.net>
52859
52860         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
52861         from working on systems without dirfd (at least Irix and OSF1/Tru64).
52862
52863 2003-01-23  Bruno Haible  <bruno@clisp.org>
52864
52865         * modules/minmax: New module.
52866         * MODULES.html.sh (func_all_modules): Add it.
52867
52868 2003-01-23  Bruno Haible  <bruno@clisp.org>
52869
52870         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
52871         Eggert.
52872
52873 2003-01-22  Bruno Haible  <bruno@clisp.org>
52874
52875         * modules/exit: New module.
52876         * MODULES.html.sh (func_all_modules): Add it.
52877
52878 2003-01-22  Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/exit.h: New file, from GNU gettext.
52881
52882 2003-01-19  Bruno Haible  <bruno@clisp.org>
52883
52884         * gnulib-tool: Recognize option --extract-maintainer.
52885         (func_get_maintainer): New function.
52886         * modules/*: Add Maintainer entry.
52887
52888 2003-01-16  Jim Meyering  <jim@meyering.net>
52889
52890         * m4/regex.m4: The `regex' struct is both input and output.
52891         Initialize it before each use.  Patch by Tim Waugh.
52892
52893 2003-01-16  Bruno Haible  <bruno@clisp.org>
52894
52895         * MODULES.html.sh: Add a table of contents. Add the module name as
52896         leftmost column. Add hyperlinks.
52897
52898 2003-01-15  Bruno Haible  <bruno@clisp.org>
52899
52900         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
52901
52902 2003-01-15  Bruno Haible  <bruno@clisp.org>
52903
52904         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
52905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
52906         suffix.
52907
52908 2003-01-15  Bruno Haible  <bruno@clisp.org>
52909
52910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
52911
52912 2003-01-15  Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
52915         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
52916
52917 2003-01-14  Jim Meyering  <jim@meyering.net>
52918
52919         * lib/same.c (same_name): Tweak a comment.
52920
52921 2003-01-14  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
52924         when a string comparison is sufficient.
52925
52926 2003-01-14  Bruno Haible  <bruno@clisp.org>
52927
52928         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
52929         'unsigned int'.
52930
52931 2003-01-14  Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/hash-pjw.c: Add comment about low quality of this function.
52934
52935 2003-01-13  Bruno Haible  <bruno@clisp.org>
52936
52937         * modules/stpcpy: Distribute lib/stpcpy.h.
52938         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
52939
52940 2003-01-13  Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/*: Add a description.
52943         * modules/strpbrk: Fix Makefile.am snippet.
52944         * modules/strtoimax: Fix dependencies.
52945         * modules/strtoumax: Likewise.
52946
52947 2003-01-13  Bruno Haible  <bruno@clisp.org>
52948
52949         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
52950         * modules/alloca (Makefile.am): All object files depend on alloca.h.
52951         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
52952
52953 2003-01-13  Bruno Haible  <bruno@clisp.org>
52954
52955         * gnulib-tool (func_create_testdir): Store config/* files in the main
52956         directory.
52957         * config.rpath: Move to ...
52958         * config/config.rpath: ... here.
52959         * modules/gettext: Contains config/config.rpath, not config.rpath.
52960         * modules/iconv: Likewise.
52961
52962 2003-01-12  Paul Eggert  <eggert@twinsun.com>
52963
52964         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
52965         to avoid collisions with libcurses and libreadline.
52966
52967         * m4/getstr.m4: Remove.
52968         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
52969
52970 2003-01-12  Paul Eggert  <eggert@twinsun.com>
52971
52972         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
52973         to avoid collisions with libcurses and libreadline.
52974
52975         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
52976         * lib/getstr.h, getstr.c: Remove.
52977         * lib/getline.c: Include "getline.h", to check interface.
52978         Move body of old getstr.c here: this defines MIN_CHUNK and
52979         declares getdelim2, which is renamed from getstr.
52980         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
52981
52982         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
52983         All uses changed.
52984         * lib/linebuffer.h: Likewise.
52985         (readline): Remove backward-compatibility macro.
52986
52987 2003-01-12  Paul Eggert  <eggert@twinsun.com>
52988
52989         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
52990         to avoid collisions with libcurses and libreadline.
52991         * getstr: Remove.
52992         * MODULES.html.sh: Remove getstr.
52993         * modules/getline: Depend on unlocked-io, not getstr.
52994
52995 2003-01-12  Jim Meyering  <jim@meyering.net>
52996
52997         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
52998
52999 2003-01-10  Bruno Haible  <bruno@clisp.org>
53000
53001         * modules/alloca: Change Makefile.am requirements. Simplify Include
53002         requirements. Add lib/alloca_.h to file list.
53003
53004 2003-01-10  Bruno Haible  <bruno@clisp.org>
53005
53006         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
53007
53008 2003-01-10  Bruno Haible  <bruno@clisp.org>
53009
53010         * lib/alloca_.h: New file.
53011         * lib/getdate.y: Unconditionally include alloca.h.
53012         * lib/makepath.c: Likewise.
53013         * lib/setenv.c: Likewise.
53014         * lib/userspec.c: Likewise.
53015
53016 2003-01-09  Karl Berry  <karl@gnu.org>
53017
53018         * MODULES.html.sh: include `dirname $0` in PATH, to find
53019         gnulib-tool.
53020
53021 2003-01-09  Bruno Haible  <bruno@clisp.org>
53022
53023         * modules/stdbool: Change configure.ac, Makefile.am requirements.
53024         Simplify Include requirements. Add lib/stdbool.h.in to file list.
53025
53026 2003-01-09  Bruno Haible  <bruno@clisp.org>
53027
53028         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
53029
53030 2003-01-09  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/stdbool.h.in: New file.
53033
53034 2003-01-09  Bruno Haible  <bruno@clisp.org>
53035
53036         * gnulib-tool (func_all_modules): Ignore files ending in ~.
53037         * MODULES.html.sh: Likewise.
53038
53039 2003-01-08  Jim Meyering  <jim@meyering.net>
53040
53041         * lib/full-write.c: Undefine and define-away `const' after inclusion
53042         of errno.h, not before.  Suggestion from Bruno Haible.
53043
53044 2003-01-08  Bruno Haible  <bruno@clisp.org>
53045
53046         * modules/full-read: Depend on full-write.
53047
53048 2003-01-08  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/safe-read.c: Include specification header first, to ensure its
53051         selfcontainedness.
53052         * lib/full-write.c: Likewise.
53053
53054 2003-01-07  Jim Meyering  <jim@meyering.net>
53055
53056         * lib/full-write.c: Rework so that it may serve to define full_read,
53057         too.
53058         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
53059
53060 2003-01-07  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/strtoimax.c: Include <stdint.h> as an alternative to
53063         <inttypes.h>.
53064         * lib/xstrtol.h: Likewise.
53065         * lib/xstrtoimax.c: Likewise.
53066         * lib/xstrtoumax.c: Likewise.
53067         * lib/human.h: Likewise.
53068
53069         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
53070         on systems that have <inttypes.h> but not <stdint.h>.
53071
53072 2003-01-07  Bruno Haible  <bruno@clisp.org>
53073
53074         * MODULES.html.sh: Add copyright notice.
53075         (missed_files): Omit CVS directory entries.
53076         (func_module): Make it work with sed-3.02.
53077         * MODULES.txt: Remove file.
53078
53079 2003-01-06  Jim Meyering  <jim@meyering.net>
53080
53081         * lib/version-etc.c: Update year in translatable copyright string.
53082
53083 2003-01-03  Karl Berry  <karl@gnu.org>
53084
53085         * config/config.{guess,sub}: update from prep.
53086
53087 2003-01-02  Karl Berry  <karl@gnu.org>
53088
53089         * doc/COPYING.DOC: belatedly updated to 1.2.
53090
53091 2003-01-01  Karl Berry  <karl@gnu.org>
53092
53093         * gnulib-tool (func_verify_module): report module name $module in
53094         error message, not $1.
53095         * gnulib-tool (create-testdir): don't complain if destdir couldn't
53096         be created, only if it doesn't exist.
53097         * gnulib-tool (last_checkin_date): don't expand the $Date here.
53098
53099 2002-12-31  Paul Eggert  <eggert@twinsun.com>
53100
53101         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
53102
53103 2002-12-31  Paul Eggert  <eggert@twinsun.com>
53104
53105         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
53106         memcmp if strcoll doesn't work.
53107
53108 2002-12-31  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/utime.c (utime_null): No need to call ftruncate if the file was
53111         nonempty.
53112
53113 2002-12-31  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/memcoll.c (STRCOLL): New macro.
53116         (memcoll): Use it.
53117
53118 2002-12-31  Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/localcharset.h: New file.
53121         * lib/localcharset.c: Include it.
53122         * lib/unicodeio.c: Likewise.
53123
53124 2002-12-31  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
53127         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
53128
53129 2002-12-31  Bruno Haible  <bruno@clisp.org>
53130
53131         * lib/getline.h: Include <stddef.h>, for size_t.
53132
53133         * lib/unicodeio.h: Include <stddef.h>, for size_t.
53134         * lib/unicodeio.c: Don't include <stddef.h>.
53135
53136 2002-12-31  Bruno Haible  <bruno@clisp.org>
53137
53138         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
53139         HAVE_TM_ZONE.
53140
53141 2002-12-24  Karl Berry  <karl@gnu.org>
53142
53143         * config/config.guess: update from prep.
53144
53145 2002-12-24  Bruno Haible  <bruno@clisp.org>
53146
53147         General infrasructure.
53148         * m4/README: Rewritten.
53149         * m4/onceonly.m4: New file.
53150         * m4/onceonly_2_57.m4: New file.
53151
53152         Module atexit.
53153         * m4/atexit.m4: New file.
53154
53155         Module strtod.
53156         * m4/strtod.m4: New file.
53157
53158         Module strtol.
53159         * m4/strtol.m4: New file.
53160
53161         Module strtoul.
53162         * m4/strtoul.m4: New file.
53163
53164         Module memchr.
53165         * m4/memchr.m4: New file.
53166
53167         Module memcmp.
53168         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
53169         (jm_FUNC_MEMCMP): Invoke it.
53170
53171         Module memcpy.
53172         * m4/memcpy.m4: New file.
53173
53174         Module memmove.
53175         * m4/memmove.m4: New file.
53176
53177         Module memset.
53178         * m4/memset.m4: New file.
53179
53180         Module strcspn.
53181         * m4/strcspn.m4: New file.
53182
53183         Module strpbrk.
53184         * m4/strpbrk.m4: New file.
53185
53186         Module strstr.
53187         * m4/strstr.m4: New file.
53188
53189         Module strerror.
53190         * m4/strerror.m4: New file.
53191
53192         Module mktime.
53193         * m4/mktime.m4: Renamed from jm-mktime.m4.
53194         (gl_PREREQ_MKTIME): New macro.
53195         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
53196
53197         Module malloc.
53198         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
53199         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
53200         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
53201
53202         Module realloc.
53203         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
53204         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
53205         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
53206
53207         Module strftime.
53208         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
53209         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
53210         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
53211         gl_TM_GMTOFF.
53212         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
53213
53214         Module xalloc.
53215         * m4/xalloc.m4: New file.
53216
53217         Module alloca.
53218         * m4/alloca.m4: New file.
53219
53220         Module putenv.
53221         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
53222         (jm_FUNC_PUTENV): Invoke it.
53223
53224         Module setenv.
53225         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
53226         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
53227         when invoked twice.
53228         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
53229         gt_FUNC_SETENV.
53230
53231         Module memrchr.
53232         * m4/memrchr.m4: New file.
53233
53234         Module stpcpy.
53235         * m4/stpcpy.m4: New file.
53236
53237         Module strcase.
53238         * m4/strcase.m4: New file.
53239
53240         Module strdup.
53241         * m4/strdup.m4: New file.
53242
53243         Module strnlen.
53244         * m4/strnlen.m4: New file.
53245
53246         Module strndup.
53247         * m4/strndup.m4: New file.
53248
53249         Module xstrtod.
53250         * m4/xstrtod.m4: New file.
53251
53252         Module xstrtol.
53253         * m4/xstrtol.m4: New file.
53254
53255         Module getdate.
53256         * m4/getdate.m4: New file.
53257
53258         Module unlocked-io.
53259         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
53260         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
53261         * m4/jm-glibc-io.m4n: Remove file.
53262
53263         Module long-options.
53264         * m4/long-options.m4: New file.
53265
53266         Module md5.
53267         * m4/md5.m4: New file.
53268
53269         Module sha.
53270         * m4/sha.m4: New file.
53271
53272         Module getstr.
53273         * m4/getstr.m4: New file.
53274
53275         Module getline.
53276         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
53277         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
53278         <sys/types.h>, for size_t. Use the function name gnu_getline, not
53279         simply getline. Infoke gl_PREREQ_GETLINE.
53280
53281         Module obstack.
53282         * m4/obstack.m4: New file.
53283
53284         Module hash.
53285         * m4/hash.m4: New file.
53286
53287         Module readtokens.
53288         * m4/readtokens.m4: New file.
53289
53290         Module strverscmp.
53291         * m4/strverscmp.m4: New file.
53292
53293         Module stdbool.
53294         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
53295         OSF/1.
53296
53297         Module strtoll.
53298         * m4/strtoll.m4: New file.
53299
53300         Module strtoull.
53301         * m4/strtoull.m4: New file.
53302
53303         Module strtoimax.
53304         * m4/strtoimax.m4: New file.
53305
53306         Module strtoumax.
53307         * m4/strtoumax.m4: New file.
53308
53309         Module xstrtoimax.
53310         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
53311         jm_AC_PREREQ_XSTRTOIMAX.
53312         Moved the strtol prerequisites to strtol.m4.
53313         Moved the strtoll prerequisites to strtoll.m4.
53314         Moved the strtoimax prerequisites to strtoimax.m4.
53315
53316         Module xstrtoumax.
53317         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
53318         jm_AC_PREREQ_XSTRTOUMAX.
53319         Moved the strtoul prerequisites to strtoul.m4.
53320         Moved the strtoull prerequisites to strtoull.m4.
53321         Moved the strtoumax prerequisites to strtoumax.m4.
53322
53323         Module chown.
53324         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
53325         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
53326
53327         Module dup2.
53328         * m4/dup2.m4: New file.
53329
53330         Module ftruncate.
53331         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
53332         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
53333
53334         Module getgroups.
53335         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
53336         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
53337
53338         Module gettimeofday.
53339         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
53340         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
53341         gl_PREREQ_GETTIMEOFDAY.
53342
53343         Module mkdir.
53344         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
53345         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
53346
53347         Module mkstemp.
53348         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
53349         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
53350         jm_AC_TYPE_UINTMAX_T.
53351         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
53352
53353         Module stat.
53354         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
53355         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
53356
53357         Module lstat.
53358         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
53359         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
53360
53361         Module timespec.
53362         * m4/timespec.m4 (gl_TIMESPEC): New macro.
53363         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
53364         * m4/st_mtim.m4: Indentation.
53365
53366         Module nanosleep.
53367         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
53368         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
53369         gl_PREREQ_NANOSLEEP.
53370
53371         Module regex.
53372         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
53373         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
53374         (gl_REGEX): New macro.
53375
53376         Module rename.
53377         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
53378         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
53379
53380         Module rmdir.
53381         * m4/rmdir.m4: New file.
53382
53383         Module utime.
53384         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
53385         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
53386         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
53387
53388         Module dirname.
53389         * m4/dirname.m4: New file.
53390
53391         Module getopt.
53392         * m4/getopt.m4: New file.
53393
53394         Module unistd-safer.
53395         * m4/unistd-safer.m4: New file.
53396
53397         Module fnmatch.
53398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
53399         declaration.
53400         (gl_PREREQ_FNMATCH_EXTRA): New macro.
53401         (gl_FUNC_FNMATCH_POSIX): New macro.
53402         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
53403         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
53404         simply fnmatch.
53405
53406         Module exclude.
53407         * m4/exclude.m4: New file.
53408
53409         Module human.
53410         * m4/human.m4: New file.
53411
53412         Module acl.
53413         * m4/acl.m4: Nop.
53414
53415         Module backupfile.
53416         * m4/backupfile.m4: New file.
53417         * m4/d-ino.m4: Indentation.
53418
53419         Module fsusage.
53420         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
53421         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
53422         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
53423
53424         Module dirfd.
53425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
53426         requirements.
53427
53428         Module euidaccess.
53429         * m4/euidaccess.m4: New file.
53430
53431         Module file-type.
53432         * m4/file-type.m4: New file.
53433
53434         Module fileblocks.
53435         * m4/fileblocks.m4: New file.
53436
53437         Module filemode.
53438         * m4/filemode.m4: New file.
53439
53440         Module isdir.
53441         * m4/isdir.m4: New file.
53442
53443         Module lchown.
53444         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
53445         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
53446
53447         Module makepath.
53448         * m4/makepath.m4: New file.
53449
53450         Module modechange.
53451         * m4/modechange.m4: New file.
53452
53453         Module mountlist.
53454         * m4/mountlist.m4: New file.
53455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
53456         Indentation.
53457
53458         Module path-concat.
53459         * m4/path-concat.m4: New file.
53460
53461         Module pathmax.
53462         * m4/pathmax.m4: New file.
53463
53464         Module same.
53465         * m4/same.m4: New file.
53466
53467         Module save-cwd.
53468         * m4/save-cwd.m4: New file.
53469
53470         Module savedir.
53471         * m4/savedir.m4: New file.
53472
53473         Module xgetcwd.
53474         * m4/xgetcwd.m4: New file.
53475         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
53476
53477         Module xreadlink.
53478         * m4/xreadlink.m4: New file.
53479
53480         Module safe-read.
53481         * m4/safe-read.m4: New file.
53482
53483         Module safe-write.
53484         * m4/safe-write.m4: New file.
53485
53486         Module closeout.
53487         * m4/closeout.m4: New file.
53488
53489         Module stdio-safer.
53490         * m4/stdio-safer.m4: New file.
53491
53492         Module getpass.
53493         * m4/getpass.m4: New file.
53494
53495         Module getugroups.
53496         * m4/getugroups.m4: New file.
53497
53498         Module group-member.
53499         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
53500         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
53501
53502         Module idcache.
53503         * m4/idcache.m4: New file.
53504
53505         Module userspec.
53506         * m4/userspec.m4: New file.
53507
53508         Module gettime.
53509         * m4/clock_time.m4: New file.
53510         * m4/gettime.m4: New file.
53511
53512         Module settime.
53513         * m4/settime.m4: New file.
53514
53515         Module posixtm.
53516         * m4/posixtm.m4: New file.
53517
53518         Module gethostname.
53519         * m4/gethostname.m4: New file.
53520
53521         Module canon-host.
53522         * m4/canon-host.m4: New file.
53523
53524         Module gettext.
53525         * m4/codeset.m4: New file, from gettext-0.11.5.
53526         * m4/gettext.m4: New file, from gettext-0.11.5.
53527         * m4/glibc21.m4: New file, from gettext-0.11.5.
53528         * m4/iconv.m4: New file, from gettext-0.11.5.
53529         * m4/intdiv0.m4: New file, from gettext-0.11.5.
53530         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
53531         * m4/inttypes.m4: New file, from gettext-0.11.5.
53532         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
53533         * m4/isc-posix.m4: New file, from gettext-0.11.5.
53534         * m4/lcmessage.m4: New file, from gettext-0.11.5.
53535         * m4/lib-ld.m4: New file, from gettext-0.11.5.
53536         * m4/lib-link.m4: New file, from gettext-0.11.5.
53537         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
53538         * m4/progtest.m4: New file, from gettext-0.11.5.
53539         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
53540         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
53541         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
53542
53543         Module localcharset.
53544         * m4/localcharset.m4: New file.
53545
53546         Module hard-locale.
53547         * m4/hard-locale.m4: New file.
53548
53549         Module mbswidth.
53550         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
53551         onceonly macros.
53552         * m4/mbrtowc.m4: Add comment.
53553
53554         Module memcasecmp.
53555         * m4/memcasecmp.m4: New file.
53556
53557         Module memcoll.
53558         * m4/memcoll.m4: New file.
53559
53560         Module unicodeio.
53561         * m4/unicodeio.m4: New file.
53562
53563         Module rpmatch.
53564         * m4/rpmatch.m4: New file.
53565
53566         Module yesno.
53567         * m4/yesno.m4: New file.
53568
53569         Module exitfail.
53570         * m4/exitfail.m4: New file.
53571
53572         Module c-stack.
53573         * m4/c-stack.m4 (gl_C_STACK): New macro.
53574         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
53575
53576         Module error.
53577         * m4/error.m4 (gl_ERROR): New macro.
53578         (jm_PREREQ_ERROR): Use onceonly macros.
53579
53580         Module fatal.
53581         * m4/fatal.m4: New file.
53582
53583         Module getloadavg.
53584         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
53585         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
53586
53587         Module getpagesize.
53588         * m4/getpagesize.m4: New file.
53589
53590         Module getusershell.
53591         * m4/getusershell.m4: New file.
53592
53593         Module physmem.
53594         * m4/physmem.m4: New file.
53595
53596         Module posixver.
53597         * m4/posixver.m4: New file.
53598
53599         Module quotearg.
53600         * m4/quotearg.m4: New file.
53601
53602         Module quote.
53603         * m4/quote.m4: New file.
53604
53605         Module readutmp.
53606         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
53607
53608         Module sig2str.
53609         * m4/sig2str.m4: New file.
53610
53611         Other.
53612         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
53613         ulonglong.m4.
53614         * m4/intmax_t.m4: New file.
53615         * m4/d-type.m4: Indentation.
53616         * m4/jm-macros.m4: Update.
53617         * m4/prereq.m4 (jm_PREREQ): Update.
53618         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
53619         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
53620         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
53621         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
53622         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
53623         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
53624         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
53625         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
53626         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
53627         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
53628         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
53629         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
53630         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
53631         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
53632         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
53633         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
53634         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
53635         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
53636         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
53637
53638 2002-12-24  Bruno Haible  <bruno@clisp.org>
53639
53640         * MODULES.txt: Update according to m4/ changes.
53641
53642         Module gettext.
53643         * config.rpath: New file, from gettext-0.11.5.
53644
53645         * modules/*: New module descriptions.
53646         * gnulib-tool: New file.
53647         * MODULES.html.sh: New file.
53648
53649 2002-12-21  Karl Berry  <karl@gnu.org>
53650
53651         * doc/fdl.texi: update to version 1.2.
53652
53653 2002-12-19  Karl Berry  <karl@gnu.org>
53654
53655         * config/config.guess: update from prep.
53656
53657 2002-12-18  Bruno Haible  <bruno@clisp.org>
53658
53659         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
53660         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
53661
53662 2002-12-17  Bruno Haible  <bruno@clisp.org>
53663
53664         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
53665         stdlib.h, string.h.
53666
53667 2002-12-17  Bruno Haible  <bruno@clisp.org>
53668
53669         * lib/canon-host.c (strdup): Remove unused declaration.
53670
53671         * lib/fsusage.c: Include full_read.h.
53672         (get_fs_usage): Use full_read instead of safe_read.
53673
53674         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
53675
53676 2002-12-12  Karl Berry  <karl@gnu.org>
53677
53678         * config/config.guess: update from prep.
53679
53680 2002-12-11  Bruno Haible  <bruno@clisp.org>
53681
53682         * m4/setenv.m4: New file, from gettext-0.11.5.
53683
53684 2002-12-11  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
53687         not unsetenv().
53688         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
53689         modifications:
53690
53691         2002-12-11  Bruno Haible  <bruno@clisp.org>
53692
53693                 * setenv.c (alloca): Fall back to malloc.
53694                 (freea): New macro.
53695                 (setenv): Use freea() to free memory allocated with alloca().
53696
53697         2002-11-13  Bruno Haible  <bruno@clisp.org>
53698
53699                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
53700                 function declarations.
53701                 * unsetenv.c (unsetenv): Likewise.
53702
53703         2002-03-04  Bruno Haible  <bruno@clisp.org>
53704
53705                 Portability to AIX 4.3.3.
53706                 * unsetenv.c: New file, extracted from setenv.c.
53707                 * setenv.c: Move the unsetenv() function to unsetenv.c.
53708
53709         2001-12-20  Bruno Haible  <bruno@clisp.org>
53710
53711                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
53712                 use malloc instead. For SunOS 4.
53713
53714         2001-12-11  Bruno Haible  <bruno@clisp.org>
53715
53716                 * setenv.c: Declare alloca.
53717                 (compar_fn_t): New typedef.
53718                 (KNOWN_VALUE, STORE_VALUE): Use it.
53719
53720         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
53721         setenv.h.
53722
53723 2002-12-10  Paul Eggert  <eggert@twinsun.com>
53724
53725         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
53726         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
53727         Choose values that are less likely to collide with system fnmatch
53728         options.
53729         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
53730         defined (e.g., a pure POSIX system).
53731         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
53732         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
53733
53734 2002-12-06  Paul Eggert  <eggert@twinsun.com>
53735
53736         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
53737         a pain in practice to deal with generated m4 files.  This change
53738         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
53739
53740         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
53741         and jm-glibc-io.m4, as they are no longer a special case.
53742         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
53743         kludge and the auto-generation stuff.  Check only whether the
53744         functions are declared, not whether they exist, since older hosts
53745         that don't declare the functions can't use the optimization anyway.
53746
53747 2002-12-06  Jim Meyering  <jim@meyering.net>
53748
53749         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
53750
53751         Merge in changes from libc's misc/error.c, in preparation
53752         for the merge of gnulib's changes back into libc.
53753
53754         * lib/error.c (_): Define only if not already defined.
53755         Move definition to follow all #include directives.
53756         Include unlocked-io.h only if !_LIBC.
53757         [_LIBC]: Include <libio/libioP.h>.
53758         [USE_IN_LIBIO]: Include <libio/iolibio.h>
53759         (fflush): Tweak definition to use INTUSE.
53760         (putc): Define.
53761
53762 2002-12-05  Paul Eggert  <eggert@twinsun.com>
53763
53764         * lib/alloca.c [defined emacs]: Include "lisp.h".
53765         (xalloc_die) [defined emacs]: New macro.
53766         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
53767         [! defined emacs]: Include <xalloc.h>.
53768         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
53769         (pointer): Typedef to POINTER_TYPE *.
53770         (malloc): Remove decl; we now always use xmalloc.
53771         (alloca): Use old-style definition, since Emacs needs this.
53772         Check for arithmetic overflow when computing combined size.
53773
53774 2002-12-04  Paul Eggert  <eggert@twinsun.com>
53775
53776         Do not generate unlocked-io.h automatically, since it's easier to
53777         maintain it by hand.
53778
53779         * lib/unlocked-io.h: New file, from GNU diffutils,
53780         but with proper copyright notice and attribution.
53781         * lib/gen-uio: Remove.
53782         * lib/Makefile.am: Add copyright notice.
53783         (libfetish_a_SOURCES): Add unlocked-io.h.
53784         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
53785         (DISTCLEANFILES, io_functions): Remove macros.
53786         (EXTRA_DIST): Remove gen_uio.
53787         (unlocked-io.h): Remove rule.
53788
53789 2002-12-04  Jim Meyering  <jim@meyering.net>
53790
53791         Reflect the fact that stat.c and lstat.c are no longer generated.
53792         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
53793         (DISTCLEANFILES): Likewise.
53794         (EXTRA_DIST): Likewise.
53795         (all_local): Don't depend on stat.c or lstat.c.
53796         (stat.c, lstat.c): Remove rules.
53797         (EXTRA_DIST): Remove xstat.in.
53798
53799         * lib/xstat.in: Remove file.  Contents moved into stat.c.
53800         * lib/stat.c: New file.  Contents mostly from xstat.in.
53801         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
53802         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
53803
53804         * lib/safe-read.c: Rework so that it may serve to define safe_write,
53805         too.
53806         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
53807
53808 2002-12-03  Jim Meyering  <jim@meyering.net>
53809
53810         * lib/safe-read.c, safe-write.c: Change variable names and comments,
53811         but not semantics, to minimize the differences between these two files.
53812         (safe_read): Change comment to mention SAFE_READ_ERROR.
53813
53814         * lib/safe-read.c (IS_EINTR): Define.
53815         (safe_read): Use IS_EINTR in place of in-function cpp directives.
53816
53817 2002-12-02  Jim Meyering  <jim@meyering.net>
53818
53819         * lib/safe-read.c (EINTR): Define.
53820         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
53821         (INT_MAX): Provide fallback.
53822         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
53823
53824         * lib/safe-read.h (SAFE_READ_ERROR): Define.
53825
53826 2002-12-02  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
53829         Define, taken from safe-read.c.
53830         (INT_MAX): Provide fallback.
53831         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
53832         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
53833
53834         * lib/safe-read.c (EINTR): Remove definition.
53835         (safe_read): Don't use EINTR if it is absent.
53836
53837 2002-12-01  Jim Meyering  <jim@meyering.net>
53838
53839         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
53840         zero.
53841         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
53842
53843 2002-11-27  Paul Eggert  <eggert@twinsun.com>
53844
53845         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
53846         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
53847         with `if (! (value < limit)) abort ();', for readability.
53848
53849 2002-11-26  Karl Berry  <karl@gnu.org>
53850
53851         * lib/strdup.c: copy from libc again, with jim's ok.
53852         * lib/.cppi-disable: re-add strdup.c
53853
53854 2002-11-25  Karl Berry  <karl@gnu.org>
53855
53856         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
53857         instead of "strtol.c".
53858
53859 2002-11-25  Karl Berry  <karl@gnu.org>
53860
53861         * config/install-sh: update from automake for variable quoting, $0 in
53862         error msgs, etc.
53863
53864         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
53865         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
53866         entry.
53867
53868 2002-11-25  Jim Meyering  <jim@meyering.net>
53869
53870         * lib/mktime.c: Sync from libc, now that it has the latest fix.
53871
53872 2002-11-24  Karl Berry  <karl@gnu.org>
53873
53874         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
53875         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
53876
53877 2002-11-24  Jim Meyering  <jim@meyering.net>
53878
53879         Update from coreutils:
53880
53881         * lib/mktime.c: Merge in changes from libc.
53882
53883         Avoid a link-time failure on some Linux systems.
53884         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
53885         (otherwise).
53886         (__mon_yday): Declare with the STATIC attribute.
53887         (__mktime_internal): Likewise.
53888         Based on a report from Greg Schafer.
53889
53890 2002-11-23  Jim Meyering  <jim@meyering.net>
53891
53892         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
53893         Use `unsigned', not `int', as type of index.
53894
53895         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
53896
53897         * lib/fsusage.c: Remove unneeded parentheses around operands of
53898         `defined'.
53899
53900 2002-11-22  Paul Eggert  <eggert@twinsun.com>
53901
53902         * lib/quotearg.h: Allow multiple inclusion by surrounding with
53903         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
53904         so that we can be included first.
53905         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
53906         * lib/quotearg.c: Include quotearg.h immediately after config.h.
53907         No need to include stddef.h or sys/types.h any more.
53908         Surround local include files with "", not "<>".
53909         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
53910         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
53911         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
53912         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
53913         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
53914         (ISPRINT): Remove; no longer needed now that we assume C89.
53915
53916         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
53917         Preserve errno.
53918
53919         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
53920         quotearg_char): Use SIZE_MAX rather than
53921         (size_t) -1 when we are talking about "infinity".
53922
53923         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
53924
53925 2002-11-22  Paul Eggert  <eggert@twinsun.com>
53926
53927         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
53928         hint that one should use `if (! x) abort ();' rather than `assert
53929         (x);', and anyway it's one less thing to worry about configuring.
53930         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
53931         hash_rehash, hash_insert): Use abort rather than assert.
53932
53933 2002-11-22  Bruno Haible  <bruno@clisp.org>
53934
53935         * lib/safe-read.h: Assume C89. Add comments.
53936         (safe_read): Change return type to size_t.
53937         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
53938         byte counts > SSIZE_MAX correctly.
53939         * lib/safe-write.h: New file.
53940         * lib/safe-write.c: New file.
53941         * lib/full-read.h: New file.
53942         * lib/full-read.c: New file.
53943         * lib/full-write.h: Assume C89. Add comments.
53944         * lib/full-write.c: Include safe-write.h.
53945         (full_write): Rewritten to use safe_write.
53946         Suggested by Jim Meyering and Paul Eggert.
53947
53948 2002-11-21  Jim Meyering  <jim@meyering.net>
53949
53950         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
53951
53952         Merge in changes from the coreutils.
53953
53954         2002-09-25  Paul Eggert  <eggert@twinsun.com>
53955         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
53956         <stdint.h>.
53957         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
53958         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
53959         int.  Work more efficiently if X is the same width as uintmax_t.
53960         Do not compare X to -1, to avoid bogus compiler warning.
53961         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
53962         Don't assume that f_frsize and f_bsize are the same type.
53963
53964         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
53965         warning on FreeBSD.
53966
53967         * lib/makepath.c (make_path): Restore umask *before* creating the final
53968         component.
53969         (make_path): Minor reformatting.
53970
53971         * lib/xmalloc.c: Adjust to work with new autoconf macros,
53972         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
53973         HAVE_MALLOC/HAVE_REALLOC.
53974
53975         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
53976         dummy ones.  At least on GNU/Linux systems, `auto' means something
53977         else.
53978         From Michael Stone.
53979
53980 2002-11-21  Bruno Haible  <bruno@clisp.org>
53981
53982         Remove case insensitive option matching.
53983         * lib/argmatch.h (argcasematch): Remove declaration.
53984         (ARGCASEMATCH): Remove macro.
53985         (__xargmatch_internal): Remove case_sensitive argument.
53986         (XARGMATCH): Update.
53987         (XARGCASEMATCH): Remove macro.
53988         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
53989         case_sensitive argument.
53990         (argcasematch): Remove function.
53991         (__xargmatch_internal): Remove case_sensitive argument.
53992         (main): Use XARGMATCH instead of XARGCASEMATCH.
53993
53994         * lib/xmalloc.c: Change compile-time error message. Add comment about
53995         required autoconf version.
53996
53997 2002-11-20  Paul Eggert  <eggert@twinsun.com>
53998
53999         Merge argmatch cleanups from Bison.  Assume C89.
54000
54001         * lib/argmatch.c: Include config.h here, not in argmatch.h.
54002         Include stdlib.h, for EXIT_FAILURE.
54003         Always include <string.h>, since we assume C89.
54004         (EXIT_FAILURE): Remove pre-C89 bug workaround.
54005         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
54006         Include <stddef.h> instead, since it's all we need for size_t.
54007         (PARAMS): Remove.  All uses removed.
54008         (ARRAY_CARDINALITY): Do not bother to #undef.
54009         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
54010         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54011         Remove unnecessary parentheses.
54012         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54013         Insert necessary parentheses.
54014         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
54015         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
54016
54017 2002-11-19  Bruno Haible  <bruno@clisp.org>
54018
54019         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
54020         * lib/mbswidth.h: Include <stddef.h>, for size_t.
54021
54022         * lib/mbswidth.h (PARAMS): Remove macro.
54023         (mbswidth, mbsnwidth): Use ANSI C function declarations.
54024         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
54025
54026         * lib/gcd.h (PARAMS): Remove macro.
54027         (gcd): Use ANSI C function declarations.
54028         * lib/gcd.c (gcd): Likewise.
54029
54030 2002-11-15  Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/strcspn.c: Include <stddef.h>.
54033         (strcspn): Use ANSI C function declaration. Change return type to
54034         size_t. Use NULL.
54035         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
54036         (strpbrk): Use NULL.
54037         * lib/strpbrk.h (PARAMS): Remove macro.
54038         (strpbrk): Use ANSI C function declaration.
54039         * lib/strstr.c: Don't include <sys/types.h>.
54040         * lib/strstr.h (PARAMS): Remove macro.
54041         (strstr): Use ANSI C function declarations.
54042
54043 2002-11-14  Karl Berry  <karl@gnu.org>
54044
54045         * config/mkinstalldirs: `do' on separate line, instead of
54046         `for var; do'.
54047
54048 2002-11-06  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
54051         * lib/gcd.c (gcd): Likewise.
54052
54053 2002-11-05  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/gcd.h: New file, from gettext-0.11.5.
54056         * lib/gcd.c: New file, from gettext-0.11.5.
54057
54058 2002-11-05  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54061         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54062         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54063         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54064
54065         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
54066         <libintl.h>.
54067         * lib/makepath.c: Include gettext.h instead of <locale.h> and
54068         <libintl.h>.
54069
54070         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
54071         * lib/human.c: Include gettext.h instead of <libintl.h>.
54072         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
54073         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
54074         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
54075         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
54076         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
54077         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
54078         (textdomain): Remove definition.
54079         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
54080
54081         * lib/long-options.c: Remove include of <libintl.h> and definition of
54082         _.
54083         * lib/same.c: Remove include of <libintl.h> and definition of _.
54084
54085 2002-11-04  Owen Taylor  <otaylor@redhat.com>
54086
54087         * lib/config.charset: A few additions for Solaris.
54088
54089 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
54090
54091         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
54092         * lib/localcharset.c (locale_charset): Declare as extern "C".
54093
54094 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
54095
54096         * lib/config.charset: msdos in uk_UA uses CP1125.
54097
54098 2002-11-04  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
54101         * lib/strcase.h: New file, from GNU gettext-0.11.5.
54102         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
54103         * lib/strstr.h: New file, from GNU gettext-0.11.5.
54104         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
54105
54106 2002-11-04  Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/localcharset.c (locale_charset): Don't return an empty string.
54109
54110 2002-11-04  Bruno Haible  <bruno@clisp.org>
54111
54112         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
54113         aliases.
54114
54115 2002-11-04  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/config.charset: Update for newest glibc. Add canonical names
54118         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
54119
54120 2002-11-04  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/config.charset: Add support for NetBSD.
54123
54124 2002-11-04  Bruno Haible  <bruno@clisp.org>
54125
54126         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
54127
54128 2002-11-01  Bruno Haible  <bruno@clisp.org>
54129
54130         * configure.in: Add AC_CONFIG_AUX_DIR call.
54131         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
54132         test/Makefile.
54133         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
54134
54135 2002-09-28  Karl Berry  <karl@gnu.org>
54136
54137         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
54138         installed automake until the next release, since changes have been
54139         made.
54140
54141 2002-09-25  Karl Berry  <karl@gnu.org>
54142
54143         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
54144         * lib/getopt*: copy from libc/posix.
54145         * lib/gettext.h: copy from gettext.
54146         * lib/.cppi-disable: add strdup.c, gettext.h.
54147
54148 2002-09-25  Karl Berry  <karl@gnu.org>
54149
54150         * config/srclist.txt: enable gettext.h check.
54151         * config/config.{guess,sub}: update from prep.
54152         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
54153                 from automake 1.6.3.
54154         See srclist*.
54155
54156 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
54157
54158         * regex.c (PATFETCH): Remove the translating fetch.
54159         (PATFETCH_RAW): Rename to PATFETCH.
54160         (set_image_of_range): New fun.
54161         (SET_RANGE_TABLE_WORK_AREA): Use it.
54162         (regex_compile): Don't translate the pattern chars so eagerly.
54163         Only do it when inserting an `exactn' bytecode or when handling
54164         a char-range.
54165         (mutually_exclusive_p): Avoid empty statement.
54166
54167 2002-07-06  Jim Meyering  <meyering@lucent.com>
54168
54169         * m4/README: Don't mention Makefile.am.in.
54170         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
54171
54172 2002-07-01  Jim Meyering  <meyering@lucent.com>
54173
54174         * lib/c-stack.c: Include sys/time.h.
54175         From Volker Borchert.
54176
54177 2002-06-26  Paul Eggert  <eggert@twinsun.com>
54178
54179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
54180
54181 2002-06-26  Paul Eggert  <eggert@twinsun.com>
54182
54183         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
54184         New macro.  Use it uniformly instead of
54185         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
54186         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
54187         reported by Vin Shelton.
54188
54189 2002-06-22  Paul Eggert  <eggert@twinsun.com>
54190
54191         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
54192         Do not assume SA_SIGINFO behavior.
54193         Bug reported by Jim Meyering on NetBSD 1.5.2.
54194
54195 2002-06-22  Jim Meyering  <meyering@lucent.com>
54196
54197         * m4/c-stack.m4: New file, from diffutils-2.8.2.
54198         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
54199
54200         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
54201         now that configure.ac uses AC_GNU_SOURCE.
54202         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
54203         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
54204
54205         Update to latest tools.  Suggestions from Paul Eggert.
54206         * m4/stdbool.m4: New file, from diffutils-2.8.2.
54207         * m4/gnu-source.m4: Update from diffutils-2.8.2.
54208         * m4/fnmatch.m4: Likewise.
54209         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
54210         to AC_HEADER_STDBOOL
54211
54212 2002-06-22  Jim Meyering  <meyering@lucent.com>
54213
54214         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
54215         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
54216
54217 2002-06-22  Jim Meyering  <meyering@lucent.com>
54218
54219         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
54220
54221         * lib/exitfail.c, exitfail.h: Likewise.
54222         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
54223
54224         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
54225         of fnmatch.h.
54226         (EXTRA_DIST): Add fnmatch_loop.c.
54227         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
54228
54229         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
54230         * lib/fnmatch.c: Update from diffutils-2.8.2.
54231         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
54232         * lib/fnmatch.h: Remove file.
54233
54234 2002-06-21  Jim Meyering  <meyering@lucent.com>
54235
54236         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
54237         * m4/mbrtowc.m4: Likewise.
54238
54239         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
54240         * m4/mbswidth.m4: Reflect name change:
54241         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
54242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
54243
54244         * m4/lib-link.m4: Update from gettext-0.11.2.
54245         * m4/gettext.m4: Likewise.
54246
54247         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
54248         From Alfred M. Szmidt.
54249
54250 2002-06-18  Paul Eggert  <eggert@twinsun.com>
54251
54252         * lib/file-type.h: Report an error if neither S_ISREG nor
54253         S_IFREG is defined, instead of using a test specific to glibc
54254         2.2.  This should be safe, since POSIX requires S_ISREG and
54255         Unix Version 7 had S_IFREG.  We don't need to check for
54256         <sys/types.h> since we don't use any symbols that it defines.
54257
54258 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
54259
54260         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
54261         $@-t, so that each temporary file name is unique and valid in the first
54262         8 characters, for operation under DOS.
54263
54264 2002-06-15  Paul Eggert  <eggert@twinsun.com>
54265
54266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
54267
54268 2002-06-15  Jim Meyering  <meyering@lucent.com>
54269
54270         Work even with DJGPP 2.03, which lacks support for symlinks.
54271         From Richard Dawe.
54272         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
54273         is defined.
54274         * lib/lchown.c (S_ISLNK): Likewise.
54275
54276 2002-06-15  Jim Meyering  <meyering@lucent.com>
54277
54278         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
54279         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
54280         have been included before this file.
54281
54282 2002-06-14  Jim Meyering  <meyering@lucent.com>
54283
54284         * lib/file-type.h: Use the version from diffutils-2.8.2.
54285         * lib/file-type.c: Likewise.
54286
54287 2002-06-07  Jim Meyering  <meyering@lucent.com>
54288
54289         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
54290         They're needed at least for NetBSD 1.5.2.
54291         ($statxfs_includes): Include those same headers.
54292         ($statxfs_includes): Include sys/vfs.h if available.
54293         ($statxfs_includes): Likewise for sys/statvfs.h.
54294         Check for the following members in both structs statfs and statvfs:
54295         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
54296
54297 2002-06-01  Jim Meyering  <meyering@lucent.com>
54298
54299         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
54300         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
54301
54302 2002-05-28  Jim Meyering  <meyering@lucent.com>
54303
54304         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
54305         Reported by Volker Borchert.
54306
54307 2002-05-27  Jim Meyering  <meyering@lucent.com>
54308
54309         Fix a problem seen only on nonconforming systems whereby ls.c's
54310         use of localtime, and then of gettimeofday would cause trouble:
54311         the localtime call used to initialize rpl_gettimeofday's save
54312         mechanism would clobber ls's current local time information so
54313         that in any long listing the first file would always be listed
54314         with date 1970-01-01.  Analysis by Volker Borchert.
54315
54316         * lib/gettimeofday.c (localtime): Undefine.
54317         (rpl_localtime): New function.
54318
54319 2002-05-27  Jim Meyering  <meyering@lucent.com>
54320
54321         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
54322         localtime.
54323
54324         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
54325         use the replacement function; it wouldn't resolve at link time.
54326         Reported by Volker Borchert.
54327
54328 2002-05-22  Jim Meyering  <meyering@lucent.com>
54329
54330         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
54331         file-type.h.
54332         * lib/file-type.h: New file.
54333         * lib/file-type.c (file_type): New file/function.  Extracted from
54334         diffutils.
54335
54336 2002-04-30  Jim Meyering  <meyering@lucent.com>
54337
54338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
54339
54340 2002-04-29  Paul Eggert  <eggert@twinsun.com>
54341
54342         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
54343
54344 2002-04-29  Paul Eggert  <eggert@twinsun.com>
54345
54346         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
54347         Do not check for alloca.h (no longer used) or stdbool.h (was never
54348         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
54349
54350 2002-04-29  Paul Eggert  <eggert@twinsun.com>
54351
54352         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
54353
54354 2002-04-29  Jim Meyering  <meyering@lucent.com>
54355
54356         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
54357         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
54358         Use AC_FUNC_STRNLEN here instead.
54359
54360         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
54361         With autoconf-2.53a, it's part of AC_PROG_CC.
54362
54363 2002-04-28  Paul Eggert  <eggert@twinsun.com>
54364
54365         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
54366         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
54367
54368 2002-04-28  Paul Eggert  <eggert@twinsun.com>
54369
54370         * lib/sig2str.h, lib/sig2str.c: New files.
54371         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
54372
54373 2002-04-28  Paul Eggert  <eggert@twinsun.com>
54374
54375         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
54376         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
54377         of 127, since 64 is the largest conceivable number for ancient
54378         nonstandard hosts.
54379         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
54380
54381 2002-04-28  Jim Meyering  <meyering@lucent.com>
54382
54383         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
54384
54385 2002-04-24  Jim Meyering  <meyering@lucent.com>
54386
54387         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
54388         (jm_PREREQ): Use it.
54389
54390         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
54391         mach/mach.h fcntl.h.
54392         Check for this function: setlocale.
54393
54394 2002-04-24  Jim Meyering  <meyering@lucent.com>
54395
54396         * lib/gettext.h: New file, from Gettext.
54397         * lib/Makefile.am (INCLUDES): Remove -I../intl.
54398         (libfetish_a_SOURCES): Add gettext.h.
54399
54400 2002-04-16  Jim Meyering  <meyering@lucent.com>
54401
54402         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
54403         ut_pid, ut_id, ut_exit.
54404
54405 2002-04-16  Jim Meyering  <meyering@lucent.com>
54406
54407         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
54408         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
54409         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
54410
54411 2002-04-12  Jim Meyering  <meyering@lucent.com>
54412
54413         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
54414         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
54415         existence of the getmntinfo function.  Needed for Darwin 5.3.
54416
54417         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
54418         This is necessary at least on Darwin 5.3.
54419
54420         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
54421         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
54422         strnlen.o in the library, and that makes some versions of ranlib
54423         object.
54424
54425 2002-04-12  Jim Meyering  <meyering@lucent.com>
54426
54427         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
54428
54429 2002-04-09  Jim Meyering  <meyering@lucent.com>
54430
54431         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
54432         to be more precise.  Rather than saying we're checking whether the
54433         function `works', say what we're testing.
54434         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
54435         Reported by Bruno Haible.
54436
54437 2002-03-10  Jim Meyering  <meyering@lucent.com>
54438
54439         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
54440         Suggestion from Santiago Vila.
54441
54442 2002-03-08  Jim Meyering  <meyering@lucent.com>
54443
54444         * lib/rename.c: Mention that this wrapper is needed also on
54445         mips-dec-ultrix4.4 systems.
54446
54447 2002-03-02  Jim Meyering  <meyering@lucent.com>
54448
54449         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
54450         not HAVE_CLOCK_SETTIME.
54451
54452 2002-02-27  Paul Eggert  <eggert@twinsun.com>
54453
54454         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
54455         Check for clock_settime.
54456
54457 2002-02-27  Paul Eggert  <eggert@twinsun.com>
54458
54459         * lib/nanosleep.h: Rename to....
54460         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
54461
54462         * lib/gettime.c: New file.
54463         * lib/settime.c: New file.
54464         * lib/stime.c: Remove.
54465
54466         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
54467         timespec.h.  Remove nanosleep.h.
54468
54469 2002-02-25  Paul Eggert  <eggert@twinsun.com>
54470
54471         * m4/acl.m4: New file.
54472         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
54473         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
54474
54475 2002-02-25  Paul Eggert  <eggert@twinsun.com>
54476
54477         * lib/acl.c, lib/acl.h: New files.
54478         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
54479
54480 2002-02-24  Jim Meyering  <meyering@lucent.com>
54481
54482         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
54483         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
54484         cause trouble.  Reported by Nelson Beebe.
54485
54486 2002-02-23  Paul Eggert  <eggert@twinsun.com>
54487
54488         * lib/path-concat.c (xpath_concat): Reorder code to pacify
54489         compilers that don't know that xalloc_die never returns.
54490
54491 2002-02-20  Jim Meyering  <meyering@lucent.com>
54492
54493         * lib/getdate.c: Regenerate using bison-1.33.
54494
54495 2002-02-17  Jim Meyering  <meyering@lucent.com>
54496
54497         * config/config.guess (main): Don't use `head -1'; it's no longer
54498         portable. Use `sed 1q' instead.
54499
54500 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
54501
54502         * m4/codeset.m4: Upgrade to gettext-0.11.
54503         * m4/gettext.m4: Upgrade to gettext-0.11.
54504         * m4/glibc21.m4: Upgrade to gettext-0.11.
54505         * m4/iconv.m4: Upgrade to gettext-0.11.
54506         * m4/isc-posix.m4: Upgrade to gettext-0.11.
54507         * m4/lcmessage.m4: Upgrade to gettext-0.11.
54508         * m4/lib-ld.m4: New file, from gettext-0.11.
54509         * m4/lib-link.m4: New file, from gettext-0.11.
54510         * m4/lib-prefix.m4: New file, from gettext-0.11.
54511         * m4/progtest.m4: Upgrade to gettext-0.11.
54512
54513 2002-02-15  Paul Eggert  <eggert@twinsun.com>
54514
54515         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
54516         (jm_PREREQ): Use it.
54517
54518 2002-02-15  Paul Eggert  <eggert@twinsun.com>
54519
54520         * lib/posixver.c, lib/posixver.h: New files.
54521         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
54522
54523 2002-02-02  Paul Eggert  <eggert@twinsun.com>
54524             Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
54527         (fwrite_success_callback): New declaration.
54528         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
54529         print_unicode_char. Call failure callback instead of error.
54530         (fwrite_success_callback): New function.
54531         (exit_failure_callback): New function.
54532         (fallback_failure_callback): New function.
54533         (print_unicode_char): Call unicode_to_mb.
54534
54535 2002-01-26  Jim Meyering  <meyering@lucent.com>
54536
54537         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
54538         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
54539
54540 2002-01-26  Jim Meyering  <meyering@lucent.com>
54541
54542         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
54543
54544 2002-01-22  Paul Eggert  <eggert@twinsun.com>
54545
54546         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
54547
54548 2002-01-22  Jim Meyering  <meyering@lucent.com>
54549
54550         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
54551         Otherwise, some versions of automake would omit the rule that makes
54552         Makefile from Makefile.in.
54553
54554 2002-01-21  Paul Eggert  <eggert@twinsun.com>
54555
54556         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
54557         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
54558         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
54559         (memcoll): Set errno to zero if there is no error.
54560
54561         * lib/quotearg.c (quotearg_buffer_restyled):
54562         Fix bug with quoting buffers containing NUL when backslashing escapes.
54563         This bug was exposed by the other changes in this patch.
54564         (quotearg_n_options): New arg ARGSIZE.
54565         All callers changed.
54566         (quoting_options_from_style): New function.
54567         (quotearg_n_style): Use it.
54568         (quotearg_n_style_mem): New function.
54569
54570         * lib/quotearg.h (quotearg_n_style_mem): New function.
54571
54572 2002-01-19  Jim Meyering  <meyering@lucent.com>
54573
54574         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
54575         Remove useless quotes: DF_PROG="df".
54576         * m4/strnlen.m4: New file.
54577
54578 2002-01-16  Paul Eggert  <eggert@twinsun.com>
54579
54580         * lib/backupfile.c (ISDIGIT): Comment fix.
54581         * lib/getdate.y (ISDIGIT): Likewise.
54582         * lib/posixtm.c (ISDIGIT, year): Likewise.
54583         * lib/strverscmp.c (ISDIGIT): Likewise.
54584         * lib/userspec.c (ISDIGIT): Likewise.
54585
54586 2002-01-16  Jim Meyering  <meyering@lucent.com>
54587
54588         * lib/getdate.y: Add three semicolons, each just before a closing
54589         brace. Bison (as of version 1.31) no longer papers over that mistake.
54590
54591 2002-01-05  Jim Meyering  <meyering@lucent.com>
54592
54593         * lib/version-etc.c (version_etc_copyright): Update copyright year.
54594
54595 2001-12-19  Paul Eggert  <eggert@twinsun.com>
54596
54597         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
54598         not silently exit merely because the output buffer happens to
54599         have nothing pending.
54600
54601 2001-12-18  Paul Eggert  <eggert@twinsun.com>
54602
54603         See the big note in ../ChangeLog.
54604         * lib/human.c (suffixes): Prefer K to k for 1024.
54605         (generate_suffix_backwards): New function.
54606         (human_readable_inexact): Use it.
54607         * lib/xstrtol.c (__xstrtol): If there is no number but there
54608         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
54609         Accept 'K' as well as 'k'.
54610
54611 2001-12-15  Jim Meyering  <meyering@lucent.com>
54612
54613         * lib/regex.h (__restrict_arr): Update from libc.
54614
54615         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
54616         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
54617         (STREQ): Define.
54618
54619 2001-12-14  Jim Meyering  <meyering@lucent.com>
54620
54621         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
54622         Suggestion from Bruno Haible.
54623
54624 2001-12-10  Jim Meyering  <meyering@lucent.com>
54625
54626         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
54627         xrealloc, Instead, include "xalloc.h".
54628         (initbuffer): Don't cast xmalloc return value to char*.
54629         (readline): Reword comment.
54630         Don't cast xrealloc return value to char*
54631         Return NULL, not 0.
54632
54633 2001-12-09  Jim Meyering  <meyering@lucent.com>
54634
54635         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
54636         about `signed and unsigned type in conditional expression'.
54637         * lib/posixtm.c (posix_time_parse): Likewise.
54638
54639         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
54640
54641         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
54642         to avoid a pedantic warning.
54643
54644         * lib/getstr.c: Don't include assert.h.
54645         (getstr): Remove warning-evoking assertions.
54646         Return -1 if offset parameter is out of bounds.
54647         Change the type of a local from int to size_t.
54648
54649         * lib/strftime.c (my_strftime_localtime_r): Include this function
54650         definition in the `#if ! HAVE_TM_GMTOFF' block.
54651
54652         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
54653         Include xalloc.h instead.
54654
54655 2001-12-02  Jim Meyering  <meyering@lucent.com>
54656
54657         * lib/tempname.c: Don't declare getenv, thus reverting the change of
54658         2001-11-18.  It's no longer necessary, now that stdlib.h is always
54659         included.
54660
54661         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
54662         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
54663
54664 2001-11-30  Akim Demaille  <akim@epita.fr>
54665
54666         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
54667         before being defined.
54668
54669 2001-11-27  Paul Eggert  <eggert@twinsun.com>
54670
54671         * lib/quotearg.h (quotearg_n, quotearg_n_style):
54672         First arg is int, not unsigned.
54673         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
54674         (SIZE_MAX, UINT_MAX): New macros.
54675         (quotearg_n_options): Abort if N is negative.
54676         Avoid overflow check on hosts where size_t is 64 bits and int
54677         is 32 bits, as overflow is impossible there.
54678         Fix off-by-one typo that caused unnecessary reallocation.
54679
54680 2001-11-27  Jim Meyering  <meyering@lucent.com>
54681
54682         * lib/tempname.c: Merge with version from libc.
54683         * lib/regex.c: Likewise.
54684
54685         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
54686         systems for which STDC_HEADERS is 0, it was not included, resulting in
54687         a warning about an integer-to-pointer conversion problem with getenv.
54688         Reported by Volker Borchert.
54689
54690 2001-11-26  Jim Meyering  <meyering@lucent.com>
54691
54692         * lib/gtod.h: Remove file.
54693         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
54694         * lib/gettimeofday.c: Don't include gtod.h.
54695         (GTOD_init): Remove function.
54696         (rpl_gettimeofday): Do its job here instead, rather than aborting.
54697         Suggestion from Volker Borchert.
54698
54699 2001-11-23  Jim Meyering  <meyering@lucent.com>
54700
54701         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
54702         it.
54703         * lib/hash.c (struct hash_table): Define it here instead.
54704
54705 2001-11-22  Jim Meyering  <meyering@lucent.com>
54706
54707         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
54708
54709 2001-11-20  Jim Meyering  <meyering@lucent.com>
54710
54711         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
54712         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
54713
54714 2001-11-19  Jim Meyering  <meyering@lucent.com>
54715
54716         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
54717         directory.  Use "conftestXXXXXX" as the template.
54718         Suggestion from Paul Eggert.
54719
54720         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
54721         immediately, so the test doesn't mistakenly hit the max-open-files
54722         limit.
54723
54724 2001-11-18  Paul Eggert  <eggert@twinsun.com>
54725
54726         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
54727         (TEMPORARIES): New macro.
54728         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
54729         removes an artificial limitation (e.g. HP-UX 10.20, where
54730         TMP_MAX is 17576).
54731
54732 2001-11-18  Jim Meyering  <meyering@lucent.com>
54733
54734         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
54735
54736 2001-11-18  Jim Meyering  <meyering@lucent.com>
54737
54738         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
54739         on SunOS 4.
54740
54741         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
54742         files will be created before anything else.
54743
54744 2001-11-17  Paul Eggert  <eggert@twinsun.com>
54745
54746         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
54747         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
54748
54749 2001-11-17  Jim Meyering  <meyering@lucent.com>
54750
54751         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
54752         Prompted by a report from Bob Proulx.
54753
54754         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
54755         Instead, require UTILS_FUNC_MKSTEMP.
54756
54757 2001-11-17  Jim Meyering  <meyering@lucent.com>
54758
54759         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
54760         Now, that's done as part of AC_FUNC_STRTOD.
54761
54762 2001-11-17  Jim Meyering  <meyering@lucent.com>
54763
54764         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
54765         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
54766         rather than group writable.  Patch by Juan F. Codagnone.
54767
54768         * lib/readtokens.c: Remove explicit declarations of xmalloc and
54769         xrealloc, Instead, include "xalloc.h".
54770
54771         * lib/mountlist.c: Include unlocked-io.h after all system headers.
54772         Remove explicit declarations of xmalloc, xrealloc,
54773         and xstrdup.  Instead, include "xalloc.h".
54774
54775         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
54776         unlocked-io.h.
54777         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
54778         Likewise.
54779         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
54780
54781         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
54782         Reported by Padraig Brady.
54783
54784         * lib/mkstemp.c: #undef mkstemp.
54785         Include config.h.
54786         (rpl_mkstemp): Rename from mkstemp.
54787         Protoize.
54788
54789 2001-11-16  Jim Meyering  <meyering@lucent.com>
54790
54791         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
54792         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
54793         determine the amount of total physical memory, use pstat_getstatic.
54794         HPUX-11 doesn't define _SC_PHYS_PAGES.
54795         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
54796         If sysconf couldn't be used to determine the amount of available
54797         physical memory, use both pstat_getstatic and pstat_getdynamic.
54798         Based on a patch from Bob Proulx.
54799
54800 2001-11-10  Jim Meyering  <meyering@lucent.com>
54801
54802         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
54803         (jm_PREREQ): Use it.
54804
54805 2001-11-09  Jim Meyering  <meyering@lucent.com>
54806
54807         * m4/jm-macros.m4: Require autoconf-2.52f.
54808         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
54809         Use these AC_-prefixed names, not the AM_-prefixed ones.
54810
54811         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
54812
54813 2001-11-05  Jim Meyering  <meyering@lucent.com>
54814
54815         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
54816
54817 2001-11-04  Jim Meyering  <meyering@lucent.com>
54818
54819         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
54820         $DEFS.
54821
54822 2001-11-03  Jim Meyering  <meyering@lucent.com>
54823
54824         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
54825         of AC_DEFUN.
54826
54827         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
54828         know the name of the variable in the macro definition.
54829
54830 2001-11-03  Jim Meyering  <meyering@lucent.com>
54831
54832         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
54833         in argmatch_to_argument call.
54834
54835         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
54836         argument.
54837
54838         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
54839         e.g., a fault due to an attempt to free a NULL pointer.
54840
54841 2001-11-01  Jim Meyering  <meyering@lucent.com>
54842
54843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
54844         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
54845
54846 2001-11-01  Jim Meyering  <meyering@lucent.com>
54847
54848         * lib/dirfd.c, lib/dirfd.h: New files.
54849         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
54850
54851         * lib/hash.c (hash_print) [TESTING]: Clean up.
54852
54853 2001-10-22  Paul Eggert  <eggert@twinsun.com>
54854
54855         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
54856         to avoid a warning if -Wall.
54857
54858 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
54859
54860         * README: New file
54861         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
54862         (per RMS's instructions, this is now the canonical source)
54863         * lgpl/, gpl/: New directories.
54864
54865 2001-10-21  Paul Eggert  <eggert@twinsun.com>
54866
54867         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
54868
54869 2001-10-21  Jim Meyering  <meyering@lucent.com>
54870
54871         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
54872         this code would end up calling gettext even in packages built
54873         with --disable-nls.
54874         * lib/getopt.c (_): Likewise.
54875         * lib/regex.c (_): Likewise.
54876
54877 2001-10-20  Paul Eggert  <eggert@twinsun.com>
54878
54879         * m4/error.m4 (jm_PREREQ_ERROR):
54880         Do not invoke AC_CHECK_FUNCS with strerror_r, as
54881         AC_FUNC_STRERROR_R does that.
54882         Check for strerror declaration.
54883
54884         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
54885         are supposed to have them these days.
54886         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
54887         Merge changes from latest Autoconf CVS.
54888         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
54889         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
54890         POSIX decided to standardize on the int flavor of strerror_r.
54891
54892 2001-10-20  Paul Eggert  <eggert@twinsun.com>
54893
54894         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
54895         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
54896         Use strerror_r that is only a macro, even if it is not a function.
54897         (strerror): Check for HAVE_DECL_STRERROR before declaring.
54898         (private_strerror): Use prototypes, not old-style function definition.
54899         (print_errno_message): New function.
54900         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
54901         char*-flavored one.
54902         (error_tail, error, error_at_line): Use it.
54903
54904 2001-10-11  Jim Meyering  <meyering@lucent.com>
54905
54906         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
54907         and quote_n (1, ... to avoid clobbering a buffer.
54908
54909 2001-10-05  Jim Meyering  <meyering@lucent.com>
54910
54911         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
54912         hash-pjw.h.
54913         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
54914         * lib/hash-pjw.h: New file.
54915
54916 2001-09-30  Jim Meyering  <meyering@lucent.com>
54917
54918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
54919         `struct fsstat' has the `f_fstypename' member.
54920         Use that to define FS_TYPE, which is now used to make
54921         the getfsstat link test tighter.
54922
54923 2001-09-30  Jim Meyering  <meyering@lucent.com>
54924
54925         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
54926         Include <sys/ucred.h>, for Apple Darwin.
54927         Include sys/mount.h and sys/fs_types.h only if available.
54928         (FS_TYPE): Define.
54929         (read_filesystem_list): Use FS_TYPE.
54930
54931 2001-09-29  Paul Eggert  <eggert@twinsun.com>
54932
54933         * lib/exclude.c (excluded_filename): 0 -> false, since it's
54934         a boolean context.
54935
54936 2001-09-29  Jim Meyering  <meyering@lucent.com>
54937
54938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
54939         [one-argument getmntent function]): Include stdio.h before mntent.h.
54940         SunOS 4.1.x needs it for the declaration of `FILE'.
54941         Patch by Volker Borchert.
54942
54943         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
54944         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
54945         sys/fs_types.h, and make the link-test for getfsstat guard #include
54946         directives with appropriate #if HAVE_*_H tests so that we can
54947         detect getfsstat on Apple Darwin1.3.7 systems.
54948         Reported by Nelson Beebe.
54949         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
54950
54951 2001-09-28  Paul Eggert  <eggert@twinsun.com>
54952
54953         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
54954         #defines strtoimax.  Also treat the other strto* functions
54955         like strtoimax.
54956
54957         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
54958         Check for strtoul and strtoumax,
54959         as those declarations are made even in the signed case.
54960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
54961         Likewise, for strtol and strtoimax.
54962
54963 2001-09-28  Paul Eggert  <eggert@twinsun.com>
54964
54965         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
54966         #defines strtoimax.  Also treat the other strto* functions
54967         like strtoimax.
54968
54969         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
54970         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
54971         (strtoimax, strtoumax): Do not declare if already defined as a macro.
54972
54973 2001-09-26  Jim Meyering  <meyering@lucent.com>
54974
54975         Most macros in unlocked-io.h had the wrong number of arguments.
54976         * lib/gen-uio: New script.
54977         (USE_UNLOCKED_IO): Define to 1 if not already defined.
54978         * lib/unlocked-io.hin: Remove file.
54979         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
54980         rather than trying to embed it here.
54981         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
54982         Reported by Padraig Brady.
54983
54984 2001-09-25  Volker Borchert  <bt@teknon.de>
54985
54986         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
54987         `result'.
54988
54989 2001-09-24  Jim Meyering  <meyering@lucent.com>
54990
54991         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
54992
54993 2001-09-23  Jim Meyering  <meyering@lucent.com>
54994
54995         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
54996         instead of the mere test for existence of mntent.h.  The latter
54997         would get a false-positive on AIX 3.4 systems.
54998         In the outer getmntent if-block, don't die if neither of the getmntent
54999         tests succeeds.  Instead, just fall through and continue with the
55000         remaining tests.
55001
55002 2001-09-23  Jim Meyering  <meyering@lucent.com>
55003
55004         * lib/mountlist.c: Remove useless parentheses in #if directives.
55005         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
55006         the deprecated MOUNTED symbol is no longer defined in mntent.h.
55007
55008 2001-09-22  Jim Meyering  <meyering@lucent.com>
55009
55010         * m4/gettext.m4: New file.  From gettext.
55011         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
55012         * m4/progtest.m4: Likewise
55013         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
55014         * m4/glibc21.m4: Likewise.
55015
55016         * m4/libintl.m4: Remove.  No longer used.
55017
55018 2001-09-22  Jim Meyering  <meyering@lucent.com>
55019
55020         * lib/localcharset.c: Update from latest gettext.
55021         * lib/config.charset: Likewise.
55022
55023 2001-09-20  Jim Meyering  <meyering@lucent.com>
55024
55025         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
55026         strtoimax.
55027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
55028         strtoumax.
55029
55030 2001-09-20  Jim Meyering  <meyering@lucent.com>
55031
55032         * lib/xstrtol.c (strtoimax): Guard declaration with
55033         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
55034         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
55035         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
55036         (strtoumax): Likewise, for completeness (it wasn't necessary).
55037
55038 2001-09-17  Paul Eggert  <eggert@twinsun.com>
55039
55040         * lib/strtoimax.c (HAVE_LONG_LONG):
55041         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
55042         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
55043         to work around bug in IBM C compiler.
55044
55045 2001-09-17  Jim Meyering  <meyering@lucent.com>
55046
55047         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
55048         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
55049         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
55050         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
55051         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
55052         whenever the right hand side need not be expanded by the shell.
55053
55054 2001-09-16  Paul Eggert  <eggert@twinsun.com>
55055
55056         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
55057         library.  It's not correct, as some older glibcs are buggy.
55058         fnmatch wasn't fixed until glibc 2.2.
55059
55060         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
55061         special shell magic here.
55062
55063 2001-09-16  Jim Meyering  <meyering@lucent.com>
55064
55065         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
55066         * m4/jm-macros.m4: Require it.
55067
55068 2001-09-16  Jim Meyering  <meyering@lucent.com>
55069
55070         * lib/mkdir.c: New file.
55071
55072 2001-09-15  Jim Meyering  <meyering@lucent.com>
55073
55074         * m4/jm-macros.m4: Check for help2man.
55075
55076 2001-09-11  Jim Meyering  <meyering@lucent.com>
55077
55078         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
55079         The body, by Paul Eggert, was moved here from configure.in.
55080         * m4/jm-macros.m4: Require UTILS_HOST_OS.
55081
55082 2001-09-04  Paul Eggert  <eggert@twinsun.com>
55083
55084         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
55085         (jm_PREREQ): Use it.
55086
55087 2001-09-04  Paul Eggert  <eggert@twinsun.com>
55088
55089         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
55090         Use ssize_t, not int, to store result of readlink.
55091         Check for ssize_t overflow as well as size_t overflow,
55092         as POSIX says the result of readlink is implementation-defined
55093         when ssize_t overflows.
55094         Remove unnecessary cast to char*.
55095         Use free+malloc instead of realloc, as the storage doesn't need
55096         to be preserved and it's clearer and can be more efficient that way.
55097         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
55098         * lib/xreadlink.h (xreadlink): Update prototype.
55099
55100 2001-09-04  Paul Eggert  <eggert@twinsun.com>
55101
55102         * lib/xgetcwd.c: Revert some of the previous change; intead,
55103         fix the HAVE_GETCWD_NULL code to behave more like the
55104         !HAVE_GETCWD_NULL code used to.
55105
55106         Include "xalloc.h".
55107         (xgetcwd): Do not return NULL when memory is exhausted; instead,
55108         invoke xalloc_die.
55109
55110 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55111
55112         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
55113         sys/param.h, as pathmax.h includes them.
55114
55115 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55116
55117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
55118         (jm_PREREQ_XGETCWD): New macro.
55119
55120         * m4/getcwd.m4: New file.
55121
55122 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55123
55124         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
55125         like the HAVE_GETCWD_NULL code.
55126         Include pathmax.h if not HAVE_GETCWD.
55127         Do not include xalloc.h.
55128         (INITIAL_BUFFER_SIZE): New symbol.
55129         Do not use xmalloc / xrealloc, since the caller is responsible for
55130         handling errors.  Preserve errno around `free' during failure.
55131         Do not overrun buffer when using getwd.
55132
55133 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55134
55135         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
55136         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
55137         getcwd (NULL, 0).
55138
55139 2001-09-03  Paul Eggert  <eggert@twinsun.com>
55140
55141         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
55142         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
55143         spotted by Jim Meyering.
55144
55145 2001-09-03  Jim Meyering  <meyering@lucent.com>
55146
55147         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
55148         failure.
55149
55150 2001-09-02  Jim Meyering  <meyering@lucent.com>
55151
55152         * lib/error.c: Update from GNU libc.
55153
55154 2001-09-01  Jim Meyering  <meyering@lucent.com>
55155
55156         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
55157         Used by df.
55158
55159 2001-09-01  Jim Meyering  <meyering@lucent.com>
55160
55161         * lib/xreadlink.c: New file.
55162         * lib/xreadlink.h: New file.
55163         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
55164         xreadlink.h.
55165
55166         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
55167         doesn't conflict with sparc Solaris 7's definition in
55168         /usr/include/sys/int_types.h.
55169
55170         * lib/exclude.c: Use `""', not `<>' to #include non-system header
55171         files.
55172         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
55173         and strncasecmp as r-values.  Unixware didn't have declarations.
55174
55175 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55176
55177         * lib/xstrtol.h: Add copyright notice.
55178         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
55179         LONGINT_INVALID_SUFFIX_CHAR.
55180
55181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55182
55183         * lib/xstrtol.c (strtoimax): New decl.
55184
55185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55186
55187         * lib/xgetcwd.c: Don't include pathmax.h.
55188         Include stdlib.h and unistd.h if available.
55189         Include xalloc.h.
55190         (xmalloc, xstrdup, free): Remove decls.
55191         (xgetcwd): Don't assume sizes fit in unsigned.
55192         Check for overflow when computing sizes.
55193         Simplify reallocation code.
55194
55195 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55196
55197         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
55198         a directory's st_size can have an arbitrary value, so the old
55199         usage could waste an arbitrary amount of memory.  All uses
55200         changed.
55201         * lib/savedir.h: Update prototype.
55202
55203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
55204
55205         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
55206
55207         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
55208         old strtoimax.c.
55209
55210         Also, make the following further changes to make this file's
55211         configuration more similar to that of strtol.c:
55212         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
55213         (strtoumax, uintmax_t, strtoull, strtol): Remove.
55214         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
55215         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
55216         changed to signed values.
55217
55218         And make the following changes as well:
55219         Fix copyright notice, as 1999 was missing.
55220         (verify): New macro.
55221         (strtoimax): Check sizes at compile-time, not run-time.
55222         Prefer strtol to strtoll if both work.
55223         (main): Remove; it was not that useful and was a pain to maintain.
55224
55225         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
55226
55227 2001-08-31  Jim Meyering  <meyering@lucent.com>
55228
55229         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
55230         Use an initial, malloc'd, buffer of length 128 rather than
55231         a statically allocated one of length 1024.
55232
55233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55234
55235         Simplify code, partly by assuming autoconf 2.52 semantics.
55236
55237         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
55238
55239         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
55240         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
55241         All uses removed.
55242         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
55243         Move AC_REQUIRE to next-to-top level, to avoid confusion.
55244         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
55245         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
55246         jm_AC_HEADER_INTTYPES_H.
55247         * m4/jm-macros.m4 (jm_MACROS): Likewise.
55248
55249         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
55250
55251         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55252         Quote first arg of AC_DEFUN.
55253         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
55254         since they are needed to parse the include file even if we need
55255         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
55256         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
55257         but with opposite signedness.
55258
55259 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55260
55261         Merge 'exclude' changes from tar 1.13.22.
55262         This fixes one or two unlikely storage allocation overflow bugs,
55263         but doesn't change user-visible behavior otherwise.
55264
55265 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55266
55267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
55268         (jm_PREREQ_EXCLUDE): New macro.
55269
55270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55271
55272         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
55273         tm to be declared.
55274
55275 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55276
55277         * lib/hash.c: Remove '2001' from copyright notice.
55278
55279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55280
55281         * lib/full-write.h: New file.
55282         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
55283         * lib/full-write.c: Correct credits, as cccp.c no longer
55284         exists and anyway it was so heavily changed from the old cccp
55285         code as to be unrecognizable.  Include full-write.h.
55286         (full_write) Return size_t, with short writes meaning failure.
55287         All callers changed.  This fixes a bug with large buffers
55288         on 64-bit hosts.
55289         * lib/utime.c: Include full-write.h.
55290
55291 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55292
55293         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
55294         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
55295         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
55296         Include if available.
55297         (<xalloc.h>): Include
55298         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
55299         (verify): New macro.  Use it to verify that EXCLUDE macros do not
55300         collide with FNM macros.
55301         (struct patopts): New struct.
55302         (struct exclude): Use it, as exclude patterns now come with options.
55303         (new_exclude): Support above changes.
55304         (new_exclude, add_exclude_file):
55305         Initial size must now be a power of two to simplify overflow checking.
55306         (free_exclude, fnmatch_no_wildcards): New function.
55307         (excluded_filename): No longer requires options arg, as the options
55308         are determined by add_exclude.  Now returns bool, not int.
55309         (excluded_filename, add_exclude):
55310         Add support for the fancy new exclusion options.
55311         (add_exclude, add_exclude_file): Now takes int options arg.
55312         Check for arithmetic overflow when computing sizes.
55313         (add_exclude_file): xrealloc might modify errno, so don't
55314         realloc until after errno might be used.
55315
55316         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
55317         New macros.
55318         (free_exclude): New decl.
55319         (add_exclude, add_exclude_file): Now takes int options arg.
55320         (excluded_filename): No longer requires options arg, as the options
55321         are determined by add_exclude.  Now returns bool, not int.
55322
55323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
55324
55325         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
55326
55327 2001-08-27  Jim Meyering  <meyering@lucent.com>
55328
55329         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
55330
55331         * lib/version-etc.c (N_): Remove definition.
55332         Revert most of last change.
55333         Instead, simply don't mark the `Copyright...' string for translation.
55334         Based on advice from Paul Eggert.
55335
55336         * lib/strtoxmax.c: Tweak comment.
55337
55338 2001-08-26  Jim Meyering  <meyering@lucent.com>
55339
55340         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
55341
55342         * m4/xstrtoimax.m4: New file.
55343         * m4/xstrtoumax.m4: Add comments explaining why we
55344         AC_REPLACE_FUNCS(strtol).
55345
55346 2001-08-26  Jim Meyering  <meyering@lucent.com>
55347
55348         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
55349         of copyright with `%s' so translators don't get an untranslated
55350         message in 2002.
55351         (COPYRIGHT_YEAR): Define.
55352         (version_etc): Use fprintf rather than fputs.
55353         Suggestion from Ulrich Drepper.
55354
55355         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
55356
55357         * lib/strtoll.c: New file, from GNU libc.
55358         * lib/xstrtoimax.c: New file.
55359
55360         * lib/xstrtol.h: Add xstrtoimax.
55361         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
55362         * lib/strtoimax.c: New file.  Likewise, but first define
55363         STRTOUXMAX_SIGNED.
55364
55365         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
55366         ...
55367         * lib/strtoxmax.c: ... then renamed to this.
55368
55369 2001-08-18  Paul Eggert  <eggert@twinsun.com>
55370
55371         * m4/inttypes.m4: Add AC_PREREQ(2.13).
55372         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
55373         (jm_AC_TYPE_INTMAX_T): New macro.
55374         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
55375
55376         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
55377
55378         * m4/longlong.m4: Renamed from ulonglong.m4.
55379         * m4/inttypes.m4: Renamed from inttypes_h.m4.
55380         * m4/uintmax_t.m4: Removed.
55381
55382 2001-08-13  Paul Eggert  <eggert@twinsun.com>
55383
55384         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
55385         Port to Solaris 8, where 'sed' requires a space after the 'r'
55386         command, and where sh dislikes "$/".  Clean up the spacing a bit.
55387         Redirect output to $tmp just once.
55388
55389 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
55390
55391         * lib/addext.c (<errno.h>): Include.
55392         (errno): Declare if not defined.
55393         (addext): Work correctly when pathconf returns -1 and leaves
55394         errno alone because there is no limit.  Also, work even if
55395         pathconf returns a value greater than SIZE_MAX.
55396
55397 2001-08-12  Jim Meyering  <meyering@lucent.com>
55398
55399         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
55400         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
55401         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
55402         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
55403         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
55404         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
55405         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
55406         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
55407         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
55408         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
55409         utime.m4, utimes.m4, xstrtoumax.m4:
55410         Quote the first argument in each use of AC_DEFUN.
55411
55412 2001-08-12  Jim Meyering  <meyering@lucent.com>
55413
55414         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
55415         Simply `return getcwd (NULL, 0);'.
55416         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
55417         Use 1300 as initial value for length, not PATH_MAX.
55418
55419         * lib/pathmax.h: Clean up cpp syntax.
55420
55421 2001-08-12  Jim Meyering  <meyering@lucent.com>
55422
55423         * lib/gettimeofday.c: New file.
55424         * lib/gtod.h: New file.
55425         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
55426
55427 2001-08-05  Jim Meyering  <meyering@lucent.com>
55428
55429         * m4/jm-macros.m4: Require autoconf-2.52.
55430
55431 2001-08-04  Jim Meyering  <meyering@lucent.com>
55432
55433         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
55434         stmt, to get in sync with glibc.
55435
55436 2001-08-03  Paul Eggert  <eggert@twinsun.com>
55437
55438         The following changes are from gettext 0.10.39 as maintained by
55439         Bruno Haible.
55440
55441         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
55442         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
55443         with inverted sense.  All uses changed.
55444
55445         * lib/mbswidth.c: Don't include <limits.h>.
55446         Include <stdlib.h> and <string.h> unconditionally.
55447         (iswcntrl, mbsinit, ISCNTRL): New macros.
55448         (mbsnwidth): Use K&R style function declarations.
55449         Don't bother checking for MB_LEN_MAX == 1, since the compiler
55450         can optimize it when MB_CUR_MAX == 1.
55451         The width of control characters is zero, not 1.
55452
55453 2001-08-03  Paul Eggert  <eggert@twinsun.com>
55454
55455         The following changes are from gettext 0.10.39 as maintained by
55456         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
55457
55458         * m4/codeset.m4: Upgrade to serial AM1.
55459         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
55460         all uses changed.  Quote first arg of AC_DEFUN.
55461         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
55462
55463         * m4/iconv.m4: Upgrade to serial AM2.
55464         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
55465         Add --with-libconv-prefix.
55466         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
55467         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
55468         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
55469         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
55470         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
55471
55472         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
55473         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
55474         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
55475         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
55476         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
55477         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
55478         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
55479         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
55480         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
55481
55482         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
55483         string.h any more.
55484
55485         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
55486         not the default value.
55487
55488         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
55489         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
55490         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
55491         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
55492         Also check for iswcntrl, used for wcwidth fallback.
55493         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
55494         to Autoconf 2.13.
55495
55496 2001-08-03  Jim Meyering  <meyering@lucent.com>
55497
55498         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
55499         as it was in the original.  Reported by Paul Eggert.
55500
55501 2001-07-16  Jim Meyering  <meyering@lucent.com>
55502
55503         * m4/gettimeofday.m4: New file.
55504         Prompted by a report from Bernhard Baehr.
55505
55506 2001-07-15  Jim Meyering  <meyering@lucent.com>
55507
55508         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
55509         stuff. Now it's in ../Makefile.cfg.
55510
55511 2001-07-15  Jim Meyering  <meyering@lucent.com>
55512
55513         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
55514         (BUILT_SOURCES): Add unlocked-io.h.
55515         (io_functions): Define.
55516         (unlocked-io.h): New rule.
55517         (DISTCLEANFILES): Add unlocked-io.h.
55518         (all-local): Depend on unlocked-io.h, to ensure it is created.
55519
55520         * lib/unlocked-io.hin: New file
55521
55522         * lib/regex.c: Update from glibc.
55523
55524 2001-07-05  Jim Meyering  <meyering@lucent.com>
55525
55526         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
55527         recommendation.
55528         (libfetish_a_SOURCES): Put all .h files here instead.
55529         Remove a thus-exposed (better checks in automake) duplicate and
55530         two unnecessary .h files.
55531
55532 2001-07-04  Jim Meyering  <meyering@lucent.com>
55533
55534         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
55535         that generates jm-glibc-io.m4 so that it doesn't trigger any make
55536         distcheck failure.
55537
55538 2001-07-02  Jim Meyering  <meyering@lucent.com>
55539
55540         The following changes were prompted by suggestions from Bruno Haible.
55541
55542         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
55543         is now generated.
55544         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
55545         definition of EXTRA_DIST.
55546         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
55547         ensure that the generated file is created/updated whenever the list
55548         of $(unlocked_functions) is changed.
55549         (jm-glibc-io.m4): New rule.
55550         (unlocked-io.h): New rule -- currently unused.
55551
55552 2001-06-24  Jim Meyering  <meyering@lucent.com>
55553
55554         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
55555         unmatched right bracket, rather than kludging it with an extra,
55556         falsely-matching quote in a comment.  Patch by Akim Demaille.
55557
55558 2001-06-11  Jim Meyering  <meyering@lucent.com>
55559
55560         * lib/regex.c: Update from GNU libc.
55561
55562 2001-05-27  Jim Meyering  <meyering@lucent.com>
55563
55564         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
55565         Check for ut_type in struct utmp.
55566
55567 2001-05-27  Jim Meyering  <meyering@lucent.com>
55568
55569         * lib/readutmp.h (UT_TYPE): Define.
55570
55571 2001-05-24  Jim Meyering  <meyering@lucent.com>
55572
55573         * lib/argmatch.c: Include "quote.h".
55574         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
55575         quote function.  Reported by Göran Uddeborg.
55576
55577 2001-05-22  Jim Meyering  <meyering@lucent.com>
55578
55579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
55580         now that we use the package-supplied version unconditionally.
55581         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
55582
55583 2001-05-21  Jim Meyering  <meyering@lucent.com>
55584
55585         * m4/regex.m4: Change a couple backticks to single quotes to avoid
55586         shell syntax errors.
55587
55588 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
55589
55590         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
55591
55592 2001-05-20  Paul Eggert  <eggert@twinsun.com>
55593
55594         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
55595         Don't bother to check library strftime, since
55596         we'll be using our own my_strftime function anyway.
55597         Define my_strftime instead of strftime.
55598
55599 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
55600
55601         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
55602         which is not yet declared.
55603
55604 2001-05-15  Jim Meyering  <meyering@lucent.com>
55605
55606         * m4/regex.m4: Use proper quoting so brackets appear in the test
55607         program.
55608         Reported by, and with help from, Bruno Haible.
55609
55610 2001-05-13  Jim Meyering  <meyering@lucent.com>
55611
55612         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
55613         undefined.
55614
55615 2001-05-11  Paul Eggert  <eggert@twinsun.com>
55616
55617         dirname code cleanup.  base_name now behaves more compatibly
55618         with POSIX basename when given file names that have trailing
55619         slashes, and similarly for dir_name.  Add new primitives
55620         base_len and dir_len.  Put the directory-name-related decls
55621         into dirname.h.
55622
55623         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
55624         * lib/backupfile.c (base_name): Likewise.
55625         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
55626         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
55627         * lib/makepath.c (strip_trailing_slashes): Likewise.
55628         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
55629         ISSLASH): Likewise.
55630         * lib/rename.c (strip_trailing_slashes): Likewise.
55631         * lib/same.c (base_name): Likewise.
55632         * lib/stripslash.c (ISSLASH): Likewise.
55633
55634         * lib/addext.c: Include <dirname.h> after size_t is defined.
55635         * lib/backupfile.c: Likewise.
55636
55637         * lib/addext.c (addext): Use base_len to trim redundant
55638         trailing slashes instead of doing it ourselves.
55639         But do not trim the last slash if it is not redundant.
55640
55641         * lib/backupfile.c (find_backup_file_name,
55642         max_backup_version): Use base_len instead of rolling it ourselves.
55643         Handle the case of "" and (on DOS) "C:" correctly.
55644
55645         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
55646         needed. Include <string.h>, <dirname.h>.
55647         (base_name): Allow file names ending in slashes, other than names
55648         that are all slashes.  In this case, return the basename followed
55649         by the slashes.  This is more general, and can be used in places
55650         where the original base_name purposely had an assertion failure.
55651         (base_len): New function.
55652
55653         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
55654         Do not include <assert.h>; no longer needed.
55655         Include xalloc.h.
55656         (memrchr): Remove decl.
55657         (dir_name_r): Remove.
55658         (dir_len): Renamed from dirlen.  All callers changed.
55659         Rewrite in terms of base_name, for simplicity and consistency.
55660         (dir_name): Never return NULL.  All callers changed.
55661         Do not include <stdlib.h> in test program; no longer needed.
55662         return 0; is fine for test program.
55663
55664         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
55665         New macros.
55666         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
55667
55668         * lib/path-concat.c (path_concat): Use base_len to compute
55669         base length, not strlen; this means we cannot rely on memcpy
55670         to null-terminate.
55671
55672         * lib/same.c (STREQ): Remove.
55673         (same_name): Handle the case where the basename ends in trailing '/'.
55674
55675         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
55676         a slash was stripped.  Do not strip the last slash after a
55677         file system prefix.
55678
55679 2001-05-11  Paul Eggert  <eggert@twinsun.com>
55680
55681         * lib/Makefile.am (libfetish_a_SOURCES):
55682         Add strftime.c, since we now compile it on all hosts.
55683
55684         * lib/strftime.c (my_strftime):
55685         Define to nstrftime if emacs, but only if my_strftime is not defined.
55686         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
55687         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
55688         Add one more extra argument: a nanoseconds value.
55689         All uses changed.
55690         (ns): New macro.
55691         (my_strftime function): Add %N format.
55692         (emacs_strftimeu): Renamed from emacs_strftime,
55693         with extra ut argument.
55694
55695 2001-05-09  Paul Eggert  <eggert@twinsun.com>
55696
55697         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
55698
55699 2001-04-21  Jim Meyering  <meyering@lucent.com>
55700
55701         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
55702         doesn't interfere.
55703
55704 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
55705
55706         * m4/ftruncate.m4: Check for chsize.
55707         Link with ftruncate.o unconditionally if ftruncate is missing.
55708         This was required when cross-compiling to i586-mingw32msvc.
55709
55710 2001-04-08  Jim Meyering  <meyering@lucent.com>
55711
55712         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
55713         recomputed; that's necessary when the offset spans a DST transition.
55714         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
55715
55716 2001-04-02  Jim Meyering  <meyering@lucent.com>
55717
55718         * lib/regex.h, regex.c: Update from GNU libc.
55719
55720 2001-03-24  Jim Meyering  <meyering@lucent.com>
55721
55722         * m4/jm-macros.m4: Require autoconf-2.49d.
55723
55724 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
55725
55726         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
55727
55728 2001-03-19  Paul Eggert  <eggert@twinsun.com>
55729
55730         * lib/version-etc.c (version_etc_copyright): Update to 2001.
55731
55732 2001-03-17  Jim Meyering  <meyering@lucent.com>
55733
55734         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
55735         now that the version in autoconf is equivalent.
55736         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
55737
55738         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
55739         Suggestion from Akim Demaille.
55740
55741         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
55742         (jm_PREREQ_TEMPNAME): New function.
55743
55744 2001-03-16  Paul Eggert  <eggert@twinsun.com>
55745
55746         * lib/tempname.c (uint64_t): Define to uintmax_t if
55747         not defined, and if UINT64_MAX is not defined.
55748         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
55749         Reported by John David Anglin.
55750
55751 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
55752
55753         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
55754         resolve alias if codeset is empty.
55755         * lib/config.charset (BeOS): Use wildcard syntax.
55756
55757 2001-03-13  Jim Meyering  <meyering@lucent.com>
55758
55759         * lib/path-concat.c (path_concat)
55760         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
55761         concatenating e.g., `C:' and `foo'.
55762         From Bruno Haible.
55763
55764 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
55765
55766         * lib/localcharset.c (locale_charset): Don't use
55767         setlocale(LC_CTYPE,NULL). Don't return NULL.
55768         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
55769
55770 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
55771
55772         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
55773         support for DOS/DJGPP.
55774
55775 2001-03-01  Paul Eggert  <eggert@twinsun.com>
55776
55777         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
55778         lacks mkstemp.  Compile our own tempname.c if we compile our own
55779         mkstemp.c, as mkstemp relies on tempname.
55780
55781 2001-03-01  Jim Meyering  <meyering@lucent.com>
55782
55783         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
55784         AH_VERBATIM really does output its argument verbatim.
55785
55786 2001-02-28  Paul Eggert  <eggert@twinsun.com>
55787
55788         * lib/Makefile.am (libfetish_a_SOURCES):
55789         Add dup-safer.c, fopen-safer.c.
55790         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
55791
55792         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
55793         * lib/unistd-safer.h: New files.
55794
55795 2001-02-25  Paul Eggert  <eggert@twinsun.com>
55796
55797         The mkstemp replacement is taken from glibc 2.2.2, with some
55798         portability fixes for use outside glibc, as follows:
55799
55800         * lib/tempname.c (struct_stat64): New macro.
55801         (direxists, __gen_tempname): Use it.
55802         This avoids a portability problem with Solaris 8.
55803
55804         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
55805         (<stddef.h>, <stdint.h>, <string.h>):
55806         Include only if STDC_HEADERS || _LIBC.
55807         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
55808         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
55809         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
55810         (__set_errno): Define this macro if <errno.h> doesn't.
55811         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
55812         Define these macros if <stdio.h> doesn't.
55813         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
55814         Define these macros if <sys/stat.h>
55815         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
55816         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
55817         __xstat64): Define if not _LIBC.
55818         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
55819         (__gen_tempname): Invoke gettimeofday only if
55820         HAVE_GETTIMEOFDAY || _LIBC;
55821         otherwise, fall back on plain "time".
55822         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
55823
55824         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
55825
55826         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
55827
55828 2001-02-18  Paul Eggert  <eggert@twinsun.com>
55829
55830         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
55831
55832 2001-02-17  Paul Eggert  <eggert@twinsun.com>
55833
55834         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
55835         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
55836         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
55837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
55838
55839 2001-02-17  Paul Eggert  <eggert@twinsun.com>
55840
55841         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
55842         Remove workaround macros for hosts that have mbrtowc but not
55843         mbstate_t, as we now insist on proper declarations for both
55844         before using mbrtowc.
55845
55846 2001-02-17  Jim Meyering  <meyering@lucent.com>
55847
55848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
55849         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
55850         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
55851         UnixWare 7.1.1.
55852
55853         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
55854         rather than AC_CACHE_VAL.
55855
55856 2001-02-17  Jim Meyering  <meyering@lucent.com>
55857
55858         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
55859         around included file name.
55860
55861         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
55862
55863         * lib/strftime.c: Update from GNU libc (the only changes were to
55864         comments).
55865
55866 2001-02-17  Jim Meyering  <meyering@lucent.com>
55867
55868         * lib/regex.c: Update from libc.
55869
55870 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
55871
55872         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
55873         clash.
55874
55875 2001-02-16  Paul Eggert  <eggert@twinsun.com>
55876
55877         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
55878         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
55879         Reported by Mark Hounschell via Paul Eggert.
55880
55881 2001-02-07  Jim Meyering  <meyering@lucent.com>
55882
55883         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
55884
55885 2001-02-05  Jim Meyering  <meyering@lucent.com>
55886
55887         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
55888         it includes the patch required for `large file' support with at least
55889         HP-UX's 10.20 /bin/cc.
55890
55891 2001-02-03  Jim Meyering  <meyering@lucent.com>
55892
55893         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
55894         AS_IF, now that it works once again (mysteriously).
55895         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
55896
55897 2001-01-30  Jim Meyering  <meyering@lucent.com>
55898
55899         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
55900         * m4/chown.m4: Rename conftestchown to conftest.chown.
55901         * m4/rename.m4: s/conftestdir/conftest.d1/ and
55902         s/conftestdir2/conftest.d2/.
55903         * m4/utimes.m4: s/conftestdata/conftest.data/
55904         Inspired by Pavel Roskin's change in autoconf.
55905
55906 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
55907
55908         * lib/config.charset: Update for FreeBSD 4.2.
55909
55910 2001-01-27  Jim Meyering  <meyering@lucent.com>
55911
55912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
55913         a use of AS_IF.
55914         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
55915
55916 2001-01-26  Jim Meyering  <meyering@lucent.com>
55917
55918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
55919         quotearg.c includes it.
55920
55921 2001-01-26  Jim Meyering  <meyering@lucent.com>
55922
55923         * lib/quotearg.c: Include stddef.h.
55924         * lib/quote.c: Include stddef.h.
55925         Reported by Axel Kittenberger.
55926
55927         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
55928         line in double quotes so that it evokes a better diagnostic.
55929         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
55930         Reported by Axel Kittenberger.
55931
55932 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
55933
55934         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
55935         as if it was a `charset'.
55936
55937 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
55938
55939         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
55940         has const.
55941
55942 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
55943
55944         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
55945         to avoid a warning.  Add back 'const' to inptr.
55946
55947 2001-01-20  Jim Meyering  <meyering@lucent.com>
55948
55949         Be sure that headers are checked before used in code compiled
55950         for the type checks.
55951         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
55952         In place of that, invoke jm_CHECK_ALL_TYPES.
55953         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
55954         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
55955         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
55956         The check for ssize_t was mistakenly run before the test for unistd.h.
55957
55958         The configure-time check for stdbool.h was missing.
55959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
55960         (jm_PREREQ_HASH): New function.
55961
55962 2001-01-17  Jim Meyering  <meyering@lucent.com>
55963
55964         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
55965         for autoconf-2.49c.
55966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
55967
55968 2001-01-16  Jim Meyering  <meyering@lucent.com>
55969
55970         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
55971         From Bruno Haible.
55972
55973 2001-01-14  Jim Meyering  <meyering@lucent.com>
55974
55975         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
55976         foo and bar.  Create conftestdir/ in the script, not in the C code.
55977         Remove directories in the script, not in the C code.
55978         Remove conftestdir{,2} before trying to create the directory.
55979         Make the entire configure script fail if the mkdir fails.
55980
55981 2001-01-14  Jim Meyering  <meyering@lucent.com>
55982
55983         * lib/rename.c: New file.  From Volker Borchert.
55984         Include stdlib.h, string.h or strings.h, and xalloc.h.
55985         Use strip_trailing_slashes rather than open-coding it.
55986
55987 2001-01-03  Paul Eggert  <eggert@twinsun.com>
55988
55989         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
55990
55991 2001-01-03  Jim Meyering  <meyering@lucent.com>
55992
55993         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
55994         of local `inptr' to avoid warning with some system declarations of
55995         iconv.
55996
55997 2001-01-02  Volker Borchert  <bt@teknon.de>
55998
55999         * m4/rename.m4: New file.
56000         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
56001
56002 2001-01-01  Jim Meyering  <meyering@lucent.com>
56003
56004         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
56005         even on systems with utmpx.h.  It's necessary for the declaration of
56006         utmp's ut_user member.  Reported by Andreas Jaeger.
56007
56008         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
56009         available. They are required for the declarations of getgrgid and
56010         getpwuid resp.
56011         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
56012         Reported by Andreas Jaeger.
56013
56014 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
56015
56016         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
56017         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
56018         so `make install' also works in VPATH builds.
56019
56020 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
56021
56022         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
56023         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
56024         can be used in subdirectories.
56025
56026 2000-12-29  Paul Eggert  <eggert@twinsun.com>
56027
56028         * lib/modechange.c: Do not assume that mode_t uses the
56029         traditional octal encoding.  E.g. "chmod 1 FOO" should set
56030         the other-execute bit of FOO even if S_IXOTH != 1.
56031
56032         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
56033         WOTH, XOTH, ALLM): New macros.
56034         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
56035          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
56036         Use them.
56037         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
56038         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
56039         (mode_compile):
56040         No need to use uintmax_t; unsigned long is long enough.
56041         Don't bother to get suffix since we don't use it.
56042
56043 2000-12-26  Jim Meyering  <meyering@lucent.com>
56044
56045         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
56046         better with autoheader.
56047
56048 2000-12-24  Jim Meyering  <meyering@lucent.com>
56049
56050         * lib/hash.c (is_prime): Return explicit boolean values.
56051         (hash_get_first): Return NULL to appease Irix5.6's 89.
56052         Reported by Nelson Beebe.
56053
56054 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
56055
56056         * lib/localcharset.c (locale_charset): Add support for Win32.
56057
56058 2000-12-18  Paul Eggert  <eggert@twinsun.com>
56059
56060         * lib/physmem.h, lib/physmem.c: New files.
56061
56062         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
56063         (noinst_HEADERS): Add physmem.h.
56064
56065         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
56066         't' for compatibility with Solaris 8 sort.
56067
56068 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
56069
56070         * lib/config.charset: Add support for BeOS.
56071
56072 2000-12-17  Jim Meyering  <meyering@lucent.com>
56073
56074         * m4/dos.m4 (jm_AC_DOS): New file and macro.
56075         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
56076
56077 2000-12-16  Jim Meyering  <meyering@lucent.com>
56078
56079         This bug had a serious impact on chown: `chown N:M FILE' (for integer
56080         N and M) would have treated it like `chown N:N FILE'.
56081
56082         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
56083
56084 2000-12-16  Jim Meyering  <meyering@lucent.com>
56085
56086         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
56087         SHELLS_FILE to a file name that's useful on djgpp systems.
56088         Include stdlib.h.
56089         (ADDITIONAL_DEFAULT_SHELLS): Define.
56090         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
56091         Based mostly on a patch from Prashant TR.
56092
56093 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
56094
56095         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
56096         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
56097         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
56098
56099 2000-12-08  Andreas Schwab  <schwab@suse.de>
56100
56101         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
56102         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
56103
56104 2000-12-07  Jim Meyering  <meyering@lucent.com>
56105
56106         * lib/stripslash.c (ISSLASH): Define.
56107         (strip_trailing_slashes): Use ISSLASH rather than comparing against
56108         `/'.
56109         From Prashant TR.
56110
56111         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
56112         (dir_name_r): Declare this function as static.
56113         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
56114         manifest itself on a name containing a mix of slashes and
56115         backslashes.
56116         Make this function work with names starting with a DOS-style
56117         drive letter and colon prefix.
56118         (dir_name): Append `.' if necessary.
56119         Based mostly on patches from Prashant TR and Eli Zaretskii.
56120
56121         * lib/dirname.h (dir_name_r): Remove prototype.
56122
56123 2000-12-06  Paul Eggert  <eggert@twinsun.com>
56124
56125         * m4/off_t-format.m4: Remove this file.
56126         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
56127
56128 2000-12-06  Jim Meyering  <meyering@lucent.com>
56129
56130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
56131         replacement strtoull, we may well need the replacement strtoul, too.
56132         Check for declarations of strtoul and strtoull.
56133         Check for strtol.  Mainly as a cue to cause automake to include
56134         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
56135         Check for limits.h -- strtol.c needs it.
56136
56137 2000-12-05  Jim Meyering  <meyering@lucent.com>
56138
56139         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
56140
56141 2000-12-04  Jim Meyering  <meyering@lucent.com>
56142
56143         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
56144         Also include memory.h, stdlib.h, unistd.h if appropriate.
56145         Reported by Andreas Jaeger (conflicting declaration of malloc).
56146
56147 2000-12-02  Jim Meyering  <meyering@lucent.com>
56148
56149         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
56150         * m4/jm-macros.m4 (jm_MACROS): require it.
56151
56152 2000-12-02  Jim Meyering  <meyering@lucent.com>
56153
56154         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
56155
56156 2000-12-01  Paul Eggert  <eggert@twinsun.com>
56157
56158         * lib/memrchr.c: Include <config.h> before any system include file.
56159
56160 2000-11-30  Jim Meyering  <meyering@lucent.com>
56161
56162         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
56163
56164 2000-11-30  Jim Meyering  <meyering@lucent.com>
56165
56166         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
56167
56168 2000-11-29  Paul Eggert  <eggert@twinsun.com>
56169
56170         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
56171
56172 2000-11-26  Jim Meyering  <meyering@lucent.com>
56173
56174         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
56175
56176 2000-11-22  Paul Eggert  <eggert@twinsun.com>
56177
56178         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
56179         size of (size_t) -1; it's not portable.
56180
56181 2000-11-17  Jim Meyering  <meyering@lucent.com>
56182
56183         * lib/strstr.c: Update from GNU libc.
56184
56185 2000-11-17  Akim Demaille  <akim@epita.fr>
56186
56187         * lib/obstack.h: Formatting changes.
56188         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
56189         prevent type checking.
56190         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
56191         cast the value to (void *): assigning a `foo *' to a `void *'
56192         variable is valid.
56193         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
56194
56195 2000-11-16  Jim Meyering  <meyering@lucent.com>
56196
56197         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
56198
56199 2000-11-11  Jim Meyering  <meyering@lucent.com>
56200
56201         * lib/error.c: Add a couple #includes, merging from GNU libc version.
56202
56203 2000-11-10  Jim Meyering  <meyering@lucent.com>
56204
56205         * lib/obstack.h: Update from GNU libc.
56206         * lib/obstack.c: Likewise.
56207
56208 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
56209
56210         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
56211
56212 2000-11-06  Paul Eggert  <eggert@twinsun.com>
56213
56214         * lib/getusershell.c (setusershell): Use rewind rather than
56215         fseek/fseeko, to avoid configuration hassles with fseeko.
56216         Don't bother opening SHELLS_FILE if shellstream is NULL;
56217         it's not necessary.
56218
56219 2000-11-05  Jim Meyering  <meyering@lucent.com>
56220
56221         * lib/makepath.h (make_dir): Declare.
56222         * lib/makepath.c (make_dir): Remove `static' attribute.
56223         Tweak a comment.
56224
56225 2000-11-04  Jim Meyering  <meyering@lucent.com>
56226
56227         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
56228
56229 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
56230
56231         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
56232         last one in a bucket, advance to the next bucket.
56233
56234 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
56235
56236         * lib/fnmatch.c: Do not comment out all the code if we are using
56237         the GNU C library, because in some cases we are replacing buggy
56238         code in the GNU C library itself.
56239
56240 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
56241
56242         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
56243         (regex_compile): Catch bogus \(\1\).
56244
56245 2000-10-30  Paul Eggert  <eggert@twinsun.com>
56246
56247         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
56248         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
56249         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
56250
56251 2000-10-30  Paul Eggert  <eggert@twinsun.com>
56252
56253         * lib/error.h, getline.h, modechange.h:
56254         Remove "2000" from Copyright line, as the file hasn't been
56255         changed this year other than in the copyright notice.
56256
56257         * lib/xalloc.h: Add "2000" to Copyright line, as this file
56258         was changed this year.
56259
56260 2000-10-29  Jim Meyering  <meyering@lucent.com>
56261
56262         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
56263         renaming.
56264         * m4/ls-mntd-fs.m4: Likewise
56265
56266 2000-10-29  Jim Meyering  <meyering@lucent.com>
56267
56268         * lib/xstat.in: Fix grammar in comment.
56269
56270 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
56271
56272         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
56273         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
56274         doesn't define __restrict_arr.
56275
56276 2000-10-28  Jim Meyering  <meyering@lucent.com>
56277
56278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
56279         (jm_PREREQ_MEMCHR): New function.
56280
56281 2000-10-28  Jim Meyering  <meyering@lucent.com>
56282
56283         * lib/memchr.c: Update from libc.
56284         Adjust for portability:
56285         [HAVE_STDLIB_H]: Include stdlib.h.
56286         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
56287         Undef __memchr, too.
56288         [!weak_alias]: Define __memchr to memchr.
56289
56290         * lib/regex.c: Update from libc.
56291         * lib/regex.h: Likewise.
56292         * lib/getopt1.c: Likewise.
56293         * lib/memcmp.c: Likewise.
56294
56295         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
56296         Avoid using fseek, when possible -- it's broken by design.
56297         Patch by Ulrich Drepper.
56298
56299 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
56300
56301         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
56302         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
56303         Giving in to popular pressure to shut up the compiler with casts.
56304
56305 2000-10-26  Jim Meyering  <meyering@lucent.com>
56306
56307         * lib/strftime.c: Update from libc.
56308
56309 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
56310
56311         * regex.c: More `unsigned char' -> `re_char' changes.
56312         Also change several `int' into `re_wchar_t'.
56313         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
56314         (PUSH_FAILURE_POINTER): Don't cast any more.
56315         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
56316         We want GCC to complain, since this piece of code makes
56317         re_match non-reentrant, which *should* be fixed.
56318         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
56319         (EXTEND_BUFFER): Use RETALLOC.
56320         (SET_LIST_BIT): Don't cast.
56321         (re_wchar_t): New type.
56322         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
56323         that those two functions will always properly return.
56324         (IMMEDIATE_QUIT_CHECK): Cast to void.
56325         (analyse_first): Use recursion rather than an explicit stack.
56326         (re_compile_fastmap): Can't fail anymore.
56327         (re_search_2): Don't check re_compile_fastmap for failure.
56328         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
56329         Now also sets the new value (passed in a new argument).
56330         (re_match_2_internal): Use it.
56331         Also, use a new var `reg' of type size_t when looping through regs
56332         rather than reuse the inappropriate `mcnt'.
56333
56334 2000-10-25  Jim Meyering  <meyering@lucent.com>
56335
56336         * lib/obstack.c: Update from libc.
56337
56338 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
56339
56340         * regex.c (regex_compile): Change the way of handling a range from
56341         a char less than 256 to a char not less than 256.
56342
56343 2000-10-24  Andrew Innes  <andrewi@gnu.org>
56344
56345         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
56346         NT-Emacs only.
56347         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
56348         so that re_search functions only quit when callers expect them to.
56349
56350 2000-10-23  Jim Meyering  <meyering@lucent.com>
56351
56352         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
56353         wrong.  That set_locale call must not have any side effects.
56354         From Paul Eggert.
56355
56356 2000-10-22  Jim Meyering  <meyering@lucent.com>
56357
56358         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
56359         [CYCLIC]: Remove now-unused definition.
56360
56361         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
56362         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
56363         Suggestion from Ulrich Drepper.
56364
56365 2000-10-21  Jim Meyering  <meyering@lucent.com>
56366
56367         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
56368         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
56369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
56370
56371 2000-10-21  Jim Meyering  <meyering@lucent.com>
56372
56373         * lib/dirname.c (memrchr): Declare if necessary.
56374         (dir_name): Remove the restriction that there be no
56375         trailing slashes.  Now, this code skips past them, effectively
56376         ignoring them.
56377         [TEST_DIRNAME] (main): New unit tests.
56378
56379         * lib/memrchr.c: New file from GNU libc.
56380         Undef __memrchr, too.
56381         [!weak_alias]: Define __memrchr to memrchr.
56382         Guard weak_alias use with `#ifdef weak_alias'.
56383
56384 2000-10-21  Jim Meyering  <meyering@lucent.com>
56385
56386         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
56387         (dir_name): Use dir_name_r.
56388         * lib/dirname.h (dir_name_r): Declare it.
56389
56390 2000-10-17  Jim Meyering  <meyering@lucent.com>
56391
56392         * lib/quote.h (PARAMS): Define and use.
56393         Reported by Akim Demaille.
56394
56395         * lib/getopt.c: Update from libc.
56396
56397 2000-10-16  Jim Meyering  <meyering@lucent.com>
56398
56399         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
56400         setlocale.
56401         From Jan Fedak.
56402
56403 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
56404
56405         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
56406
56407 2000-09-25  Jim Meyering  <meyering@lucent.com>
56408
56409         * lib/md5.h (rol): Define (from GnuPG).
56410
56411         * lib/sha.c: Give credit (GnuPG) where due.
56412         (M): Use rol rather than open-coding it.
56413         Add a FIXME comment.
56414
56415 2000-09-21  Jim Meyering  <meyering@lucent.com>
56416
56417         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
56418         Reported by Michael Stone.
56419
56420 2000-09-20  Jim Meyering  <meyering@lucent.com>
56421
56422         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
56423         (noinst_HEADERS): Add sha.h.
56424         Based on code from Scott G. Miller and from GnuPG.
56425
56426 2000-09-18  Jim Meyering  <meyering@lucent.com>
56427
56428         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
56429         LIBS. Otherwise, everyone ends up linking with -lelf for some
56430         configurations.
56431         Reported by Mike Stone.
56432
56433 2000-09-15  Jim Meyering  <meyering@lucent.com>
56434
56435         * lib/regex.c: Update from libc.
56436
56437 2000-09-10  Jim Meyering  <meyering@lucent.com>
56438
56439         * lib/getopt.c (_getopt_internal): Update from glibc.
56440
56441 2000-09-09  Jim Meyering  <meyering@lucent.com>
56442
56443         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
56444         think it should be used as a general replacement for isascii.
56445         * lib/fnmatch.c: Likewise.
56446         * lib/mbswidth.c: Likewise
56447         * lib/regex.c: Likewise.
56448
56449         Don't use atoi.
56450         * lib/userspec.c: Include sys/param.h and limits.h.
56451         Include xstrtol.h.
56452         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56453         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
56454         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
56455         UID, GID.  Check range.
56456
56457 2000-09-06  Jim Meyering  <meyering@lucent.com>
56458
56459         * lib/getopt.c (_getopt_internal): Update from glibc.
56460
56461 2000-08-30  Jim Meyering  <meyering@lucent.com>
56462
56463         * lib/strftime.c: Merge in changes from GNU libc.
56464
56465 2000-08-26  Jim Meyering  <meyering@lucent.com>
56466
56467         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
56468         * m4/fpending.m4: New file.
56469
56470 2000-08-26  Jim Meyering  <meyering@lucent.com>
56471
56472         * lib/closeout.c: Include "__fpending.h".
56473         (close_stdout_status): Return right away if there's nothing to flush.
56474
56475         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
56476         * lib/__fpending.c: New file.
56477         * lib/__fpending.h: New file.
56478
56479 2000-08-20  Jim Meyering  <meyering@lucent.com>
56480
56481         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
56482         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
56483         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
56484
56485 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
56486
56487         Improve fileutils installation on systems where running
56488         programs (like install) can't be unlinked.
56489         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
56490         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
56491
56492 2000-08-07  Paul Eggert  <eggert@twinsun.com>
56493
56494         Standardize on "memory exhausted" instead of "Memory exhausted"
56495         or "virtual memory exhausted".
56496         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
56497         "virtual memory exhausted".
56498         * lib/same.c (same_name): Invoke xalloc_die instead of printing
56499         our own message.
56500         * lib/userspec.c (parse_user_spec): Likewise.
56501         * lib/bumpalloc.h: comment fix
56502         * lib/same.c, userspec.c: Include xalloc.h.
56503
56504         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
56505         not char *const and pointing to a constant array.
56506         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
56507         (xrealloc): Comment fix.
56508
56509         * lib/userspec.c (parse_user_spec):
56510         Don't translate a message until just before returning,
56511         to avoid unnecessary translation.
56512
56513 2000-08-07  Jim Meyering  <meyering@lucent.com>
56514
56515         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
56516         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
56517         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
56518         getgroups.c, gethostname.c, getopt.h, group-member.c,
56519         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
56520         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
56521         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
56522         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
56523         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
56524         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
56525         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
56526         yesno.c: Back out Copyright date changes for each file with no change
56527         this year.  This eases coordination with other programs using the same
56528         source code modules.  From Paul Eggert.
56529
56530 2000-08-06  Paul Eggert  <eggert@twinsun.com>
56531
56532         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
56533         not char, for compatibility with glibc 2.1.3 strftime.c.
56534
56535 2000-08-03  Greg McGary  <greg@mcgary.org>
56536
56537         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
56538         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
56539         (EXTEND_BUFFER): Use them.
56540
56541 2000-08-01  Jim Meyering  <meyering@lucent.com>
56542
56543         * lib/dirname.c (ISSLASH): Define.
56544         (BACKSLASH_IS_PATH_SEPARATOR): Define.
56545         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
56546         both `\' and `/' may be use as path separators.
56547         Based on a patch from Prashant TR.
56548
56549 2000-07-31  Paul Eggert  <eggert@twinsun.com>
56550
56551         * lib/quotearg.c (quotearg_n_options): Don't make the initial
56552         slot vector a constant, since it might get modified.
56553
56554 2000-07-31  Jim Meyering  <meyering@lucent.com>
56555
56556         * lib/xmalloc.c: Use `virtual memory exhausted', not
56557         `Memory exhausted'.
56558         * lib/obstack.c (print_and_abort): Likewise.
56559
56560 2000-07-30  Paul Eggert  <eggert@twinsun.com>
56561
56562         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
56563         buffer, so that the caller can always quote one small
56564         component of a "memory exhausted" message in slot 0.
56565         From a suggestion by Jim Meyering.
56566
56567 2000-07-30  Jim Meyering  <meyering@lucent.com>
56568
56569         * lib/makepath.c (make_path): Quote the other instance, too.
56570
56571         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
56572         (STATIC_BUF_SIZE): Define.
56573         (quotearg_n_options): Use only statically allocated storage when
56574         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
56575         than STATIC_BUF_SIZE.
56576
56577 2000-07-29  Jim Meyering  <meyering@lucent.com>
56578
56579         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
56580         * lib/dirname.c (dir_name): Likewise.
56581
56582         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
56583         `/'.
56584
56585         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
56586         (dir_name): Assert that there are no trailing slashes.
56587
56588 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
56589
56590         * lib/mbswidth.h (mbswidth): Add a flags argument.
56591         (mbswidth): New declaration.
56592         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
56593         * lib/mbswidth.c (mbswidth): Add a flags argument.
56594         (mbsnwidth): New function.
56595
56596 2000-07-24  Jim Meyering  <meyering@lucent.com>
56597
56598         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
56599
56600 2000-07-23  Paul Eggert  <eggert@twinsun.com>
56601
56602         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
56603
56604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
56605
56606         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
56607         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
56608         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
56609         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
56610         invoke multibyte primitives.
56611
56612 2000-07-23  Paul Eggert  <eggert@twinsun.com>
56613
56614         * lib/quotearg.c:
56615         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
56616         so that mbstate_t is always defined.
56617
56618         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
56619         be 1 in at least one GCC installation, and this configuration
56620         error is likely to be common.  Ignoring MB_LEN_MAX hurts
56621         performance on hosts that have mbrtowc but have only unibyte
56622         locales, but I assume these hosts are rare.
56623
56624 2000-07-23  Paul Eggert  <eggert@twinsun.com>
56625
56626         * lib/mbswidth.c (_XOPEN_SOURCE):
56627         Don't define; this causes problems on Solaris 7.
56628         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
56629
56630 2000-07-23  Jim Meyering  <meyering@lucent.com>
56631
56632         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
56633         too: getgrgid, getpwuid, getuid.
56634
56635 2000-07-23  Jim Meyering  <meyering@lucent.com>
56636
56637         * lib/basename.c (base_name): Add an assertion.
56638
56639 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
56640
56641         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
56642         shadow its mbsinit function.
56643
56644 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
56645
56646         * lib/mbswidth.h: New file.
56647         * lib/mbswidth.c: New file.
56648         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
56649         (noinst_HEADERS): Add mbswidth.h.
56650
56651 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
56652
56653         * lib/config.charset: Add support for FreeBSD. Improve support for
56654         HP-UX and IRIX 6.
56655
56656 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
56657
56658         * m4/mbswidth.m4: New file.
56659         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
56660
56661 2000-07-15  Jim Meyering  <meyering@lucent.com>
56662
56663         * lib/makepath.c: Include quote.h.
56664         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
56665         corresponding argument in a `quote (...)' call.
56666         Give better diagnostics.
56667
56668         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
56669         (noinst_HEADERS): Add quote.h.
56670
56671         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
56672         from tar's src/misc.c.
56673         * lib/quote.h: New file.  Prototypes for same.
56674
56675 2000-07-14  Paul Eggert  <eggert@twinsun.com>
56676
56677         From a suggestion by Bruno Haible.
56678         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
56679         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
56680         to decide whether to define the BeOS workaround macro;
56681         this adjusts to the change to AC_MBSTATE_T.
56682
56683 2000-07-14  Jim Meyering  <meyering@lucent.com>
56684
56685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
56686         jm_AC_TYPE_UINTMAX_T.
56687
56688 2000-07-13  Paul Eggert  <eggert@twinsun.com>
56689
56690         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
56691
56692         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
56693         quotearg_buffer_restyled): Add support for
56694         clocale_quoting_style.  Undo previous change to
56695         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
56696         and "{RIGHT QUOTATION MARK}" msgids.
56697
56698 2000-07-10  Paul Eggert  <eggert@twinsun.com>
56699
56700         From a suggestion by Bruno Haible.
56701         * m4/mbstate_t.m4 (AC_MBSTATE_T):
56702         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
56703         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
56704         and mbstate_t, to a single-part test that simply defines mbstate_t.
56705         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
56706         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
56707
56708 2000-07-10  Jim Meyering  <meyering@lucent.com>
56709
56710         * m4/strerror_r.m4: Mirror the correction made in autoconf.
56711
56712         * m4/gnu-source.m4: Output to confdefs.h directly.
56713         Suggestion from Akim Demaille.
56714
56715 2000-07-09  Paul Eggert  <eggert@twinsun.com>
56716
56717         The old behavior of quoting `like this' doesn't look good with
56718         newer, ISO-style fonts.  See:
56719         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
56720
56721         Instead, quote "like this" by default.  Let the translator
56722         tailor the locale-specific quoting behavior by providing
56723         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
56724
56725         * lib/quotearg.c (N_): New macro.
56726         (gettext_default): New function.
56727         (quotearg_buffer_restyled): Use
56728         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
56729         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
56730
56731 2000-07-09  Jim Meyering  <meyering@lucent.com>
56732
56733         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
56734         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
56735
56736         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
56737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
56738
56739 2000-07-09  Jim Meyering  <meyering@lucent.com>
56740
56741         * lib/Most files: Update copyright dates to include 2000.
56742
56743 2000-07-08  Jim Meyering  <meyering@lucent.com>
56744
56745         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
56746         if not defined.
56747         (xgethostname): Remove now-unnecessary #ifdef.
56748         Move declaration of `err' into loop where it's used.
56749
56750 2000-07-05  Paul Eggert  <eggert@twinsun.com>
56751         and Bruno Haible  <haible@clisp.cons.org>
56752
56753         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
56754         only if the test for an object-type mbstate_t fails.  This
56755         prevents us from mistakenly reporting that mbstate_t is a
56756         system object type after we "#define mbstate_t int" to work
56757         around its lack.
56758
56759 2000-07-05  Paul Eggert  <eggert@twinsun.com>
56760         and Bruno Haible  <haible@clisp.cons.org>
56761
56762         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
56763
56764 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
56765
56766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
56767         to strerror_r.
56768         Include <ctype.h> for use of isalpha.
56769
56770 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
56771
56772         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
56773         by allocating a larger buffer. Test the gethostname return value for
56774         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
56775         returns an error and ENAMETOOLONG isn't defined.
56776
56777 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
56778
56779         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
56780         dimension.
56781
56782 2000-07-04  Jim Meyering  <meyering@lucent.com>
56783
56784         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
56785         of the deprecated AC_CHECKING.
56786
56787 2000-07-04  Jim Meyering  <meyering@lucent.com>
56788
56789         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
56790         Reported by Bruno Haible.
56791
56792 2000-07-04  Jim Meyering  <meyering@lucent.com>
56793
56794         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
56795         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
56796         lacks mbrtowc.
56797
56798 2000-07-03  Paul Eggert  <eggert@twinsun.com>
56799
56800         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
56801         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
56802
56803 2000-07-03  Paul Eggert  <eggert@twinsun.com>
56804         and Bruno Haible  <haible@clisp.cons.org>
56805
56806         * lib/quotearg.c (mbrtowc):
56807         Assign to *pwc, and return 1 only if result is nonzero.
56808         (iswprint): Use ISPRINT when substituting our own mbrtowc.
56809
56810 2000-07-03  Jim Meyering  <meyering@lucent.com>
56811
56812         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
56813
56814 2000-07-03  Jim Meyering  <meyering@lucent.com>
56815
56816         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
56817         This is necessary to get a definition of e.g., UTMP_FILE on
56818         HP-UX 10.20.
56819         From Bob Proulx.
56820
56821 2000-07-02  Jim Meyering  <meyering@lucent.com>
56822
56823         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
56824
56825         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
56826         AC_LIBOBJ(function_name).
56827         * m4/chown.m4: Likewise.
56828         * m4/fnmatch.m4: Likewise.
56829         * m4/ftruncate.m4: Likewise.
56830         * m4/getgroups.m4: Likewise.
56831         * m4/getline.m4: Likewise.
56832         * m4/group-member.m4: Likewise.
56833         * m4/jm-macros.m4: Likewise.
56834         * m4/lstat.m4: Likewise.
56835         * m4/malloc.m4: Likewise.
56836         * m4/memcmp.m4: Likewise.
56837         * m4/nanosleep.m4: Likewise.
56838         * m4/putenv.m4: Likewise.
56839         * m4/realloc.m4: Likewise.
56840         * m4/regex.m4: Likewise.
56841         * m4/stat.m4: Likewise.
56842         * m4/strftime.m4: Likewise.
56843
56844 2000-07-02  Jim Meyering  <meyering@lucent.com>
56845
56846         * lib/quotearg.c (mbstate_t): Don't define here.
56847
56848 2000-07-02  Jim Meyering  <meyering@lucent.com>
56849
56850         * lib/nanosleep.c (SIGCONT): Define if not already defined.
56851
56852 2000-07-01  Jim Meyering  <meyering@lucent.com>
56853
56854         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
56855
56856 2000-07-01  Jim Meyering  <meyering@lucent.com>
56857
56858         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
56859         problem.
56860
56861 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
56862
56863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
56864         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
56865
56866 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
56867
56868         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
56869         per change in ../m4/ls-mntd-fs.m4.
56870         (read_filesystem_list): Ignore symbolic links.
56871
56872 2000-06-29  Jim Meyering  <meyering@lucent.com>
56873
56874         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
56875         for declaration of strcmp.
56876
56877         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
56878
56879         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
56880         Avoid warning by casting result to `char *' to remove `const'.
56881
56882 2000-06-28  Jim Meyering  <meyering@lucent.com>
56883
56884         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
56885         included by quotearg.c, for which we perform this test.  From
56886         Bruno Haible.
56887
56888 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
56889
56890         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
56891         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
56892         <utmpx.h> exists, put readutmp.o into LIBOBJS.
56893
56894 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
56895
56896         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
56897
56898 2000-06-26  Paul Eggert  <eggert@twinsun.com>
56899
56900         savedir now sets errno on failure and invokes xmalloc to get memory.
56901         Fix a couple of other minor bugs while we're at it.
56902
56903         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
56904         (NAMLEN): Remove macro.
56905         (malloc, realloc): Remove decls.
56906         (stpcpy): Likewise.
56907         ("xalloc.h"): Include.
56908         (NAME_SIZE_DEFAULT): New macro.
56909         (savedir): Use xmalloc / xrealloc to allocate memory.
56910         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
56911         Skip "" directory entries.
56912         Use strlen to calculate directory entry length, since the old method
56913         is rarely used these days and isn't worth supporting.
56914         Don't use a pointer after freeing it.
56915         Check for integer overflow when calculating allocation size.
56916         Use memcpy to copy entries, instead of stpcpy.
56917         Set errno properly when returning NULL.
56918         Check for readdir error.
56919
56920 2000-06-26  Jim Meyering  <meyering@lucent.com>
56921
56922         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
56923
56924 2000-06-25  Jim Meyering  <meyering@lucent.com>
56925
56926         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
56927         Linux header bug when _XOPEN_SOURCE is defined to 500.
56928
56929 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
56930
56931         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
56932         deficiency.
56933
56934 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
56935
56936         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
56937         Include xalloc.h.
56938         Don't include <stdlib.h>.  Don't declare malloc, realloc.
56939
56940 2000-06-24  Jim Meyering  <meyering@lucent.com>
56941
56942         * m4/strerror_r.m4: Revive this file -- to try out an experimental
56943         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
56944         for which strerror does return char*, but which lacks a conveniently
56945         accessible declaration of the function.  If the compile-test says
56946         strerror_r doesn't work, then resort to a `run'-test that works on
56947         BeOS and segfaults on DEC Unix.
56948
56949 2000-06-24  Jim Meyering  <meyering@lucent.com>
56950
56951         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
56952
56953 2000-06-23  Paul Eggert  <eggert@twinsun.com>
56954
56955         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
56956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
56957
56958 2000-06-23  Paul Eggert  <eggert@twinsun.com>
56959
56960         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
56961         (mbrtowc, mbstate_t): Define substitutes if
56962         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
56963         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
56964         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
56965
56966 2000-06-23  Jim Meyering  <meyering@lucent.com>
56967
56968         * m4/afs.m4: Add missing AC_MSG_RESULT.
56969         Reported by Bruno Haible.
56970
56971         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
56972         Suggestion from Bruno Haible.
56973
56974 2000-06-23  Jim Meyering  <meyering@lucent.com>
56975
56976         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
56977
56978 2000-06-21  Jim Meyering  <meyering@lucent.com>
56979
56980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
56981
56982 2000-06-21  Jim Meyering  <meyering@lucent.com>
56983
56984         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
56985         (noinst_HEADERS): Add getstr.h.
56986
56987         * lib/getline.c (getstr): Move into a separate file.
56988         * lib/getstr.c (getstr): New file, extracted from getline.c, with
56989         the following changes: new parameter, delim2; both delim[12]
56990         parameters have type `int', not `char'.  The latter would lose
56991         with 8-bit delimiters.
56992         * lib/getstr.h: New file.
56993
56994 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
56995
56996         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
56997         than 1024, return a memory chunk of least possible size, instead
56998         of size PATH_MAX + 2. In the loop, increment the size proportionally.
56999         Use free/xmalloc instead of xrealloc to avoid copying for very long
57000         paths.
57001
57002 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
57003
57004         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
57005         the empty string.
57006
57007 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
57008
57009         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
57010         address, not strdup.  Include <stdlib.h> and don't declare free().
57011
57012 2000-06-19  Jim Meyering  <meyering@lucent.com>
57013
57014         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
57015
57016 2000-06-18  Jim Meyering  <meyering@lucent.com>
57017
57018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
57019
57020         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
57021         `checking whether...' message to be consistent with that of the
57022         lstat test.
57023
57024 2000-06-18  Jim Meyering  <meyering@lucent.com>
57025
57026         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
57027         Besides, these days every porting target provides a mkdir function.
57028
57029         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
57030         needed. (this snippet comes from src/system.h).
57031
57032 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
57033
57034         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
57035
57036 2000-06-15  Paul Eggert  <eggert@twinsun.com>
57037
57038         * lib/human.c (adjust_value): New function.
57039         (human_readable_inexact): Apply rounding style even when
57040         printing approximate values.
57041
57042 2000-06-14  Paul Eggert  <eggert@twinsun.com>
57043
57044         * lib/human.c (human_readable_inexact): Allow an input block
57045         size that is not a multiple of the output block size, and vice versa.
57046         Reported by Piergiorgio Sartor.
57047
57048 2000-06-14  Paul Eggert  <eggert@twinsun.com>
57049
57050         * lib/getdate.y (get_date): Apply relative times after time
57051         zone indicator, not before.  Reported by Todd A. Jacobs.
57052
57053 2000-06-13  Jim Meyering  <meyering@lucent.com>
57054
57055         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
57056
57057         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
57058
57059 2000-06-12  Paul Eggert  <eggert@twinsun.com>
57060
57061         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
57062
57063 2000-06-12  Jim Meyering  <meyering@lucent.com>
57064
57065         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
57066         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
57067         optional argument.
57068         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
57069         the optional argument, `lib'.
57070
57071 2000-06-08  Jim Meyering  <meyering@lucent.com>
57072
57073         * m4/largefile.m4: Remove file (now that it's part of autoconf).
57074
57075 2000-06-04  Paul Eggert  <eggert@twinsun.com>
57076
57077         Rewrite largefile configuration so that we don't need to run
57078         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
57079         AC_CANONICAL_HOST in configure.in -- jmm]
57080
57081         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
57082         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
57083         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
57084         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
57085         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
57086         All uses changed.
57087         Instead of inspecting the output of getconf, try to compile the
57088         test program without and with the macro definition.
57089         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
57090         for getconf.  Instead, check for the needed flags by compiling
57091         test programs.
57092
57093 2000-06-04  Paul Eggert  <eggert@twinsun.com>
57094
57095         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
57096
57097 2000-06-04  Jim Meyering  <meyering@lucent.com>
57098
57099         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
57100         SunOS 4.1.4 for which gid_t is an unsigned type.
57101
57102 2000-06-03  Jim Meyering  <meyering@lucent.com>
57103
57104         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
57105         now that autoconf requires that.
57106
57107         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
57108         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
57109         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
57110
57111 2000-06-03  Jim Meyering  <meyering@lucent.com>
57112
57113         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
57114
57115 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
57116
57117         * m4/glibc21.m4: New file.
57118         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
57119
57120 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
57121
57122         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
57123         newer, don't install charset.alias.
57124         * lib/config.charset: Change the Linux/glibc rules so they become empty
57125         on glibc-2.1 or newer.
57126
57127 2000-06-02  Jim Meyering  <meyering@lucent.com>
57128
57129         * lib/mountlist.c: Back out last change.  Instead, do this...
57130         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
57131         me_dummy member using the same `ignore'-testing code.
57132         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
57133         fs_type strings.
57134         From Mark D. Roth.
57135
57136 2000-05-29  Jim Meyering  <meyering@lucent.com>
57137
57138         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
57139         mounts with the `ignore' attribute.  Based on a patch from
57140         Mark D. Roth.
57141
57142 2000-05-28  Jim Meyering  <meyering@lucent.com>
57143
57144         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
57145         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57146         * m4/stat.m4: Likewise.
57147         * m4/lstat.m4: Likewise.
57148         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
57149
57150         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
57151         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
57152
57153 2000-05-26  Jim Meyering  <meyering@lucent.com>
57154
57155         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
57156
57157 2000-05-24  Jim Meyering  <meyering@lucent.com>
57158
57159         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
57160         autoconf requires that.
57161         * m4/lib-check.m4: Likewise.
57162         * m4/jm-macros.m4: Likewise.
57163         * m4/strftime.m4: Likewise.
57164
57165         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
57166         AC_CHECK_DECLS, now that autoconf requires that.
57167
57168 2000-05-22  Jim Meyering  <meyering@lucent.com>
57169
57170         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57171         * m4/lstat.m4: Likewise.
57172
57173 2000-05-22  Jim Meyering  <meyering@lucent.com>
57174
57175         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
57176
57177 2000-05-20  Jim Meyering  <meyering@lucent.com>
57178
57179         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
57180         (jm_PREREQ): Use it.
57181
57182 2000-05-18  Jim Meyering  <meyering@lucent.com>
57183
57184         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
57185         back, too, since it may have been modified by allocate_entry.
57186         (hash_delete): Rewrite to use neither the assignment operator
57187         nor the comma operator in an if-expression.
57188
57189 2000-05-15  Paul Eggert  <eggert@twinsun.com>
57190
57191         * lib/closeout.c:
57192         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
57193         Remove; no longer needed.
57194         "quotearg.h": Add include.
57195         (file_name): Do not bother to explicitly initialize to NULL; it's less
57196         efficient on some hosts.
57197         (close_stdout_status): Remove test as to whether stdout was already
57198         closed; it breaks for the case "echo x | sort >&-".
57199         Quote file name colons.
57200         Do not assume that _("write error") lacks format strings.
57201
57202 2000-05-15  Jim Meyering  <meyering@lucent.com>
57203
57204         * lib/version-etc.c (version_etc_copyright): Update the copyright
57205         string used in all --version output.
57206
57207 2000-05-14  Jim Meyering  <meyering@lucent.com>
57208
57209         * lib/closeout.c (close_stdout_set_file_name): New function.
57210         (close_stdout_status): Use new file-scoped global.
57211         Return right away if fstat says the stdout file descriptor is invalid.
57212         * lib/closeout.h (close_stdout_set_file_name): Declare.
57213
57214 2000-05-10  Jim Meyering  <meyering@lucent.com>
57215
57216         * lib/closeout.c [default_exit_status]: New file-scoped variable.
57217         (close_stdout_set_status): New function.
57218         * lib/closeout.h (close_stdout_set_status): Declare.
57219
57220 2000-05-09  Jim Meyering  <meyering@lucent.com>
57221
57222         * m4/gettext.m4: Rename this...
57223         * m4/libintl.m4: ...to this.
57224
57225 2000-05-08  Jim Meyering  <meyering@lucent.com>
57226
57227         * lib/long-options.c: Don't include closeout.h.
57228         (parse_long_options): Don't call close_stdout for --version.
57229
57230 2000-05-06  Paul Eggert  <eggert@twinsun.com>
57231
57232         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
57233         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
57234         2.1.3 bug.  This avoids a clash when files like regex.c define
57235         _GNU_SOURCE.
57236
57237 2000-05-06  Jim Meyering  <meyering@lucent.com>
57238
57239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
57240         (AC_REPLACE_FUNCS): Add strnlen.
57241
57242         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
57243         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
57244
57245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
57246         AC_SEARCH_LIBS call for nanosleep.
57247         (LIB_NANOSLEEP): Set and AC_SUBST.
57248
57249 2000-05-06  Jim Meyering  <meyering@lucent.com>
57250
57251         * lib/strnlen.c: Undefine __strnlen and strnlen.
57252         [!weak_alias]: Define __strnlen to strnlen.
57253
57254         * lib/atexit.c: New file, from libiberty.
57255
57256 2000-05-06  Jim Meyering  <meyering@lucent.com>
57257
57258         * lib/closeout.c (close_stdout_status): Also check for errors on the
57259         stderr stream.
57260
57261 2000-05-05  Jim Meyering  <meyering@lucent.com>
57262
57263         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
57264         AC_SEARCH_LIBS call for clock_gettime.
57265         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
57266
57267         * m4/search-libs.m4: Update from autoconf.
57268
57269         su doesn't work on Solaris 2.6.
57270         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
57271         <shadow.h>.  Reported by Dragos Harabor.
57272
57273 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
57274
57275         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
57276         memcpy instead of xmalloc, xrealloc, path_concat.
57277         (locale_charset): Treat empty environment variables as absent.
57278         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
57279
57280 2000-05-04  Jim Meyering  <meyering@lucent.com>
57281
57282         * lib/getopt.c: Update from glibc.
57283         * lib/obstack.c: Likewise.
57284         * lib/obstack.h: Likewise.
57285         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
57286         file
57287
57288         * lib/regex.h: Likewise.
57289         * lib/strndup.c: Likewise.
57290         * lib/strnlen.c: New file, from glibc.
57291
57292 2000-05-03  Jim Meyering  <meyering@lucent.com>
57293
57294         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
57295
57296 2000-05-02  Paul Eggert  <eggert@twinsun.com>
57297
57298         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
57299         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
57300         compile-time test, rather than inspecting host and OS, to
57301         decide whether to define _LARGEFILE_SOURCE.
57302
57303 2000-05-01  Jim Meyering  <meyering@lucent.com>
57304
57305         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
57306
57307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
57308         Based on a patch from Bruno Haible.
57309
57310 2000-05-01  Jim Meyering  <meyering@lucent.com>
57311
57312         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
57313
57314 2000-04-29  Jim Meyering  <meyering@lucent.com>
57315
57316         * lib/path-concat.c: Declare strdup only if it's not defined.
57317         * lib/canon-host.c: Likewise.
57318
57319 2000-04-28  Jim Meyering  <meyering@lucent.com>
57320
57321         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
57322         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
57323         is included first, then limits.h is included by locale.h by libintl.h.
57324         From John David Anglin.
57325
57326 2000-04-25  Jim Meyering  <meyering@lucent.com>
57327
57328         * lib/makepath.c (S_IRWXUGO): Define.
57329         (make_path): Always perform explicit chmod if MODE specifies any
57330         of the `special' permission bits.  Prompted by a bug report against
57331         install from Mate Wierdl and Joost van Baal.
57332
57333 2000-04-18  Jim Meyering  <meyering@lucent.com>
57334
57335         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
57336         (jm_PREREQ): Use it.
57337
57338 2000-04-18  Jim Meyering  <meyering@lucent.com>
57339
57340         * lib/README: New file.
57341
57342         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
57343         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
57344
57345 2000-04-17  Jim Meyering  <meyering@lucent.com>
57346
57347         Get it right :-)
57348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
57349         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
57350         Suggestion from Akim Demaille.
57351
57352 2000-04-17  Jim Meyering  <meyering@lucent.com>
57353
57354         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
57355         the definition of it to rpl_strftime also defined-away the system's
57356         declaration.
57357
57358 2000-04-15  Jim Meyering  <meyering@lucent.com>
57359
57360         Use `C' to denote so-called `contiguous' files, the same way
57361         that tar does.
57362         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
57363         (ftypelet): Use S_ISCTG.
57364         From Michael Deutschmann.
57365
57366 2000-04-14  Jim Meyering  <meyering@lucent.com>
57367
57368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
57369         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
57370         clobbered.
57371
57372 2000-04-14  Jim Meyering  <meyering@lucent.com>
57373
57374         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
57375
57376 2000-04-13  Jim Meyering  <meyering@lucent.com>
57377
57378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
57379         AH_VERBATIM to insert required #ifndef into config.h.in.
57380         Suggestion from Akim Demaille.
57381
57382 2000-04-12  Jim Meyering  <meyering@lucent.com>
57383
57384         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
57385         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
57386         Christian Krackowizer.
57387
57388         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
57389         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
57390         (AC_SYS_LARGEFILE): Require.
57391         (AM_C_PROTOTYPES): Require.
57392
57393 2000-04-08  Jim Meyering  <meyering@lucent.com>
57394
57395         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
57396         names don't conflict.  Reported by Eli Zaretskii.
57397
57398 2000-04-07  Jim Meyering  <meyering@lucent.com>
57399
57400         * lib/putenv.c: Move inclusion of errno.h so it follows that of
57401         sys/types.h, to work around system header problems on AIX 3.2.5.
57402         From Bruno Haible.
57403
57404 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
57405
57406         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
57407         bug.  Deal with the different error behavior of Irix iconv.
57408
57409 2000-04-05  Paul Eggert  <eggert@twinsun.com>
57410
57411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
57412         IRIX if the installer said otherwise.
57413
57414 2000-04-05  Jim Meyering  <meyering@lucent.com>
57415
57416         Portability tweaks required for ultrix4.3.
57417         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
57418         (jm_CHECK_DECLS): Add getutent to the list of functions.
57419         (_jm_DECL_HEADERS): Add utmpx.h.
57420         From John David Anglin.
57421
57422         * m4/strftime.m4: Back out the 2000-04-02 change.
57423         Instead of that change, simply undefine putenv in the test program.
57424
57425 2000-04-05  Jim Meyering  <meyering@lucent.com>
57426
57427         Portability tweaks required for ultrix4.3.
57428         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
57429         getutent.
57430         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
57431         * lib/canon-host.c: Declare strdup.
57432         * lib/path-concat.c: Likewise.
57433         From John David Anglin.
57434
57435 2000-04-04  Jim Meyering  <meyering@lucent.com>
57436
57437         Be more DOS 8.3-friendly.
57438         * lib/ref-add.sin: Renamed from ref-add.sed.in.
57439         * lib/ref-del.sin: Renamed from ref-del.sed.in.
57440         * lib/Makefile.am: Reflect renaming.
57441         Reported by Eli Zaretskii.
57442
57443         Use a temporary file name that won't clash with `charset.alias'
57444         in the DOS 8.3 name space.
57445         * lib/Makefile.am (charset_tmp): Define.
57446         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
57447         (uninstall-local): Likewise.
57448         Reported by Eli Zaretskii.
57449
57450 2000-04-03  Jim Meyering  <meyering@lucent.com>
57451
57452         * m4/gettext.m4: Fix typo in comment.
57453
57454         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
57455         textutils/configure.in).  Suggestion from Paul Eggert.
57456         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
57457
57458 2000-04-02  Paul Eggert  <eggert@twinsun.com>
57459
57460         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
57461         variable in the shell rather than using putenv, which isn't
57462         portable.  This avoids the configure-time inter-test dependency
57463         on the potentially-renamed putenv function.
57464
57465 2000-03-30  Paul Eggert  <eggert@twinsun.com>
57466
57467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
57468         before checking struct stat.st_blksize, so that
57469         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
57470
57471 2000-03-29  Paul Eggert  <eggert@twinsun.com>
57472
57473         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
57474         since strftime.c uses HAVE_STRFTIME to decide whether to use
57475         the underlying strftime.
57476
57477 2000-03-29  Paul Eggert  <eggert@twinsun.com>
57478
57479         * lib/time/strftime.c (my_strftime): Make sure we call the system
57480         strftime, not ourselves, when invoking the underlying strftime.
57481
57482 2000-03-24  Jim Meyering  <meyering@lucent.com>
57483
57484         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
57485         (charset_alias): Define.
57486         (install-exec-local): Factor out common code.
57487         (uninstall-local): Split lines longer than 80.
57488         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
57489         (SUFFIXES): Define.
57490         (.sed.in.sed): New rule.  Don't redirect directly to $@.
57491         (CLEANFILES): Add ref-add.sed and ref-del.sed.
57492
57493 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
57494
57495         * lib/config.charset: Output a line containing "Packages using this
57496         file".
57497         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
57498         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
57499         ref-del.sed): New rules.
57500
57501 2000-03-17  Jim Meyering  <meyering@lucent.com>
57502
57503         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
57504         Otherwise, include <strings.h>
57505
57506 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
57507
57508         * lib/unicodeio.c (utf8_wctomb): New function.
57509         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
57510         format instead of in UCS-4 with platform dependent endianness.
57511
57512 2000-03-10  Jim Meyering  <meyering@lucent.com>
57513
57514         * m4/lib-check.m4: Look for getspnam in -lgen, too.
57515         From Marco Franzen.
57516
57517 2000-03-07  Paul Eggert  <eggert@twinsun.com>
57518
57519         * lib/savedir.c (savedir): Work even if directory size is
57520         negative; this can happen with some screwy NFS configurations.
57521
57522 2000-03-06  Jim Meyering  <meyering@lucent.com>
57523
57524         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
57525         if it's NULL (because we ran out of memory).  From Bruno Haible.
57526
57527 2000-03-05  Jim Meyering  <meyering@lucent.com>
57528
57529         * lib/localcharset.c ("path-concat.h"): Include.
57530         (get_charset_aliases): Use path_concat instead of ANSI string
57531         concatenation.
57532
57533         * lib/unicodeio.h (PARAMS): Define.
57534         Use it to guard prototype.
57535
57536 2000-03-04  Jim Meyering  <meyering@lucent.com>
57537
57538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
57539         for lib/localcharset.c.
57540
57541 2000-03-04  Jim Meyering  <meyering@lucent.com>
57542
57543         * lib/Makefile.am (install-exec-local): Create $(libdir) before
57544         installing into it.
57545         (uninstall-local): Uncomment this rule so `make distcheck' works
57546         once again.
57547
57548         * lib/unicodeio.c (<errno.h>): Include it.
57549         (errno): Declare if not defined.
57550
57551         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
57552
57553         * lib/config.charset: New version, incorporating remarks from a linux
57554         i18n mailing list.  From Bruno Haible.
57555
57556 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
57557
57558         * m4/codeset.m4: New file.
57559         * m4/iconv.m4: New file.
57560         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
57561
57562 2000-03-03  Jim Meyering  <meyering@lucent.com>
57563
57564         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
57565
57566 2000-03-02  Jim Meyering  <meyering@lucent.com>
57567
57568         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
57569         the messages come out on separate lines.
57570
57571         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
57572         rather than jm_CHECK_DECLARATIONS.
57573         * m4/decl.m4: Remove now-unused file.
57574
57575         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
57576         geteuid.
57577
57578 2000-03-02  Jim Meyering  <meyering@lucent.com>
57579
57580         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
57581
57582 2000-03-01  Jim Meyering  <meyering@lucent.com>
57583
57584         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
57585         * lib/unicodeio.c: Likewise.
57586
57587 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
57588
57589         * lib/config.charset: New file.
57590         * lib/localcharset.c: New file.
57591         * lib/unicodeio.h, lib/unicodeio.c: New files.
57592         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
57593         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
57594         (noinst_HEADERS): Add unicodeio.h.
57595         (all-local, install-exec-local, charset.alias): New targets.
57596
57597 2000-02-28  Paul Eggert  <eggert@twinsun.com>
57598
57599         * lib/quotearg.c (ALERT_CHAR): New macro.
57600         (quotearg_buffer_restyled): Use it.
57601
57602 2000-02-27  Jim Meyering  <meyering@lucent.com>
57603
57604         * m4/check-decl.m4: Add getenv to the list.
57605
57606 2000-02-27  Jim Meyering  <meyering@lucent.com>
57607
57608         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
57609         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
57610
57611         * lib/backupfile.c: Guard inclusion of stdlib.h with
57612         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
57613         Declare malloc if needed.
57614
57615         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
57616         `#ifndef HAVE_DECL..'
57617         now that autoconf always defines the HAVE_DECL_ symbols.
57618         * lib/human.c: Likewise.
57619         * lib/same.c: Likewise.
57620         * lib/strtoumax.c: Likewise.
57621
57622         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
57623         declaration check was not run.
57624         * lib/hash.c: Likewise.
57625         * lib/human.c: Likewise.
57626         * lib/same.c: Likewise.
57627         * lib/strtoumax.c: Likewise.
57628
57629         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
57630         `.', then first look up the entire `.'-containing string as a login
57631         name.
57632
57633 2000-02-23  Jim Meyering  <meyering@lucent.com>
57634
57635         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
57636         in place of my hack.
57637
57638 2000-02-18  Paul Eggert  <eggert@twinsun.com>
57639
57640         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
57641         (textint): New typedef.
57642         (parser_control): Member year changed from int to textint.
57643         All uses changed.
57644         (YYSTYPE): Removed; replaced by %union with int and textint members.
57645         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
57646         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
57647         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
57648         (tSNUMBER, tUNUMBER): Now of type <textintval>.
57649         (date, number, to_year): Use width of number in digits, not its value,
57650         to determine whether it's a 2-digit year, or a 2-digit time.
57651         (yylex): Store number of digits of numeric tokens.
57652         Reported by John Kendall.
57653
57654         (parser_control): Changed from struct parser_control to typedef (for
57655         consistency).  All uses changed.
57656
57657         (tID): Removed; not used.
57658         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
57659
57660 2000-02-14  Paul Eggert  <eggert@twinsun.com>
57661
57662         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
57663         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
57664
57665 2000-02-12  Jim Meyering  <meyering@lucent.com>
57666
57667         * lib/userspec.c (ISDIGIT): Define it.
57668         (isdigit): Remove definition.
57669         (is_number): Use ISDIGIT, not isdigit.
57670         <libintl.h>: Include.
57671         (_ and N_): Define.
57672         (parse_user_spec): Mark translatable strings.
57673
57674 2000-02-10  Jim Meyering  <meyering@lucent.com>
57675
57676         With these changes, nanosleep.[ch] are finally enough like the other
57677         lib/* replacement files to compile on a few more losing systems.
57678
57679         * lib/nanosleep.h: Don't include config.h.
57680         Remove prototype from declaration of nanosleep.
57681         (PARAMS): Remove now-unneeded definition.
57682         * lib/nanosleep.c: #undef nanosleep.
57683         (rpl_nanosleep): Rename from nanosleep.
57684
57685 2000-02-10  Jim Meyering  <meyering@lucent.com>
57686
57687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
57688         gnu_nanosleep to rpl_nanosleep.
57689
57690 2000-02-09  Jim Meyering  <meyering@lucent.com>
57691
57692         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
57693         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
57694
57695 2000-02-08  Akim Demaille  <akim@epita.fr>
57696
57697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
57698         `[' and `]' and remove uses of `changequote'.
57699         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
57700         (AC_SYS_LARGEFILE): Likewise.
57701         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
57702         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
57703         of changequote.
57704         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
57705         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
57706         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
57707         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
57708
57709 2000-02-05  Jim Meyering  <meyering@lucent.com>
57710
57711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
57712         Remove explicit use of AC_HEADER_TIME.  It is required by
57713         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
57714         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
57715         in autoconf whereby the expansion of the latter ended up preceding
57716         the expansion of its prerequisite, AC_HEADER_TIME.
57717         Reported by Volker Borchert.
57718
57719 2000-02-03  Jim Meyering  <meyering@lucent.com>
57720
57721         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
57722
57723 2000-02-03  Jim Meyering  <meyering@lucent.com>
57724
57725         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
57726         rather than with `#if HAVE_UTMPNAME'.
57727
57728 2000-02-02  Jim Meyering  <meyering@lucent.com>
57729
57730         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
57731         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
57732         Reported by Eli Zaretskii.
57733
57734 2000-02-01  Jim Meyering  <meyering@lucent.com>
57735
57736         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
57737
57738 2000-01-31  Jim Meyering  <meyering@lucent.com>
57739
57740         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
57741         functions.  Add the time.h and sys/time.h headers along with the
57742         AC_REQUIRE'ment of AC_HEADER_TIME.
57743
57744 2000-01-31  Jim Meyering  <meyering@lucent.com>
57745
57746         * lib/nanosleep.h (nanosleep): Guard declaration with
57747         `#if ! HAVE_DECL_NANOSLEEP'.
57748         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
57749         the declaration in that vendor's sys/timers.h.
57750         Reported by Christian Krackowizer.
57751
57752         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
57753         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
57754         (ISPRINT): Likewise.
57755         Reported by Tom Tromey.
57756
57757 2000-01-30  Jim Meyering  <meyering@lucent.com>
57758
57759         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
57760
57761         * m4/prereq.m4 (utmp_includes): Define.
57762         Check for ut_user and ut_name members in both struct utmpx
57763         and struct utmp.
57764
57765 2000-01-30  Jim Meyering  <meyering@lucent.com>
57766
57767         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
57768         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
57769         header files where only utmpx.ut_user is declared.
57770
57771         * lib/readutmp.h (UT_USER): Define.
57772
57773 2000-01-29  Jim Meyering  <meyering@lucent.com>
57774
57775         * m4/lib-check.m4: New file containing library-related checks from
57776         fileutils and sh-utils (textutils had none).
57777
57778 2000-01-28  Jim Meyering  <meyering@lucent.com>
57779
57780         * m4/perl.m4: Change format of warning message to look more like that
57781         from the missing script.  Suggestion from François Pinard.
57782
57783 2000-01-25  Jim Meyering  <meyering@lucent.com>
57784
57785         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
57786         well as time.h in the compile check.
57787         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
57788         Fix typo in cross-compiling case: s/yes/no/.
57789
57790 2000-01-23  Jim Meyering  <meyering@lucent.com>
57791
57792         * m4/jm-macros.m4: Move df-related tests here from
57793         fileutils/configure.in
57794
57795         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
57796         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
57797
57798         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
57799         s/space/ac_fsusage_space/.
57800         (jm_FILE_SYSTEM_USAGE): Take two parameters.
57801
57802         * m4/ftruncate.m4: New file (derived from part of
57803         fileutils/configure.in).
57804         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
57805         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
57806
57807         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
57808         AC_SUBST these here, rather than just in sh-util/configure.in, so
57809         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
57810         all the same.
57811         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
57812         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
57813         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
57814         (AC_SUBST(POW_LIBM)): Likewise.
57815         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
57816
57817 2000-01-23  Jim Meyering  <meyering@lucent.com>
57818
57819         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
57820         obstack.c.
57821
57822 2000-01-22  Jim Meyering  <meyering@lucent.com>
57823
57824         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
57825
57826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
57827
57828         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
57829         configure.in
57830         (AC_CHECK_HEADERS): Likewise for sh-utils.
57831         (AC_CHECK_HEADERS): Likewise for textutils.
57832         Merge the three lists of headers.
57833
57834         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
57835         from fileutils' configure.in.
57836
57837         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
57838         code. Moved tests into their own function (_jm_DECL_HEADERS) in
57839         check-decl.m4.
57840
57841         * m4/check-decl.m4: Use #if rather than #ifdef.
57842         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
57843         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
57844         (_jm_DECL_HEADERS): Define new function.
57845         (jm_CHECK_DECLARATIONS): Require it.
57846
57847 2000-01-22  Jim Meyering  <meyering@lucent.com>
57848
57849         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
57850         [! HAVE_DECL_STRTOULL]: Declare strtoull.
57851         Required for some AIX systems.  Reported by Christian Krackowizer.
57852         [TESTING] (main): New function.
57853
57854         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
57855         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
57856         letters.
57857
57858         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
57859         iswprint.
57860
57861         * lib/strverscmp.c (ISDIGIT): Define.
57862         (strverscmp): Use ISDIGIT, not isdigit.
57863
57864 2000-01-19  Jim Meyering  <meyering@lucent.com>
57865
57866         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
57867         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
57868         defines `struct timespec' in <sys/time.h>
57869
57870         * m4/c-bs-a.m4: Remove uses of changequote altogether.
57871         Thanks to Akim for explaining.
57872
57873 2000-01-17  Paul Eggert  <eggert@twinsun.com>
57874
57875         * lib/nanosleep.c (nanosleep):
57876         Don't use SA_INTERRUPT to decide whether to call sigaction, as
57877         POSIX.1 doesn't require SA_INTERRUPT and some systems
57878         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
57879         it's been part of POSIX.1 since day 1 (in 1988).
57880
57881 2000-01-17  Jim Meyering  <meyering@lucent.com>
57882
57883         * lib/interlock: Remove unused file.  Reported by François Pinard.
57884
57885 2000-01-16  Paul Eggert  <eggert@twinsun.com>
57886
57887         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
57888         alert, backslash, formfeed, and vertical tab unnecessarily in
57889         shell quoting style.
57890
57891 2000-01-16  Jim Meyering  <meyering@lucent.com>
57892
57893         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
57894         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
57895         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
57896         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
57897
57898 2000-01-16  Jim Meyering  <meyering@lucent.com>
57899
57900         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
57901         because the latter didn't work.
57902
57903 2000-01-15  Jim Meyering  <meyering@lucent.com>
57904
57905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
57906         (AC_REPLACE_FUNCS): Add memcpy and memset.
57907         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
57908         Add strpbrk.
57909         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
57910
57911 2000-01-12  Jim Meyering  <meyering@lucent.com>
57912
57913         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
57914         (jm_PREREQ): Use it.
57915         (jm_PREREQ_READUTMP): New macro.
57916         (jm_PREREQ): Use it.
57917
57918 2000-01-11  Paul Eggert  <eggert@twinsun.com>
57919
57920         Quote multibyte characters correctly.
57921         * m4/c-bs-a.m4: New file.
57922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
57923         (jm_PREREQ): Use it.
57924
57925 2000-01-11  Paul Eggert  <eggert@twinsun.com>
57926
57927         * m4/uintmax_t.m4: Port to autoconf 2.13.
57928
57929 2000-01-08  Jim Meyering  <meyering@ascend.com>
57930
57931         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
57932         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
57933
57934 2000-01-04  Jim Meyering  <meyering@ascend.com>
57935
57936         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
57937         jm_STRUCT_DIRENT_D_TYPE.
57938         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
57939         jm_STRUCT_DIRENT_D_INO.
57940         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
57941         jm_STRUCT_UTIMBUF.
57942         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
57943         renamings.
57944         * m4/utime.m4: Likewise.
57945
57946         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
57947         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
57948
57949 2000-01-03  Paul Eggert  <eggert@twinsun.com>
57950
57951         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
57952         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
57953
57954 2000-01-02  Jim Meyering  <meyering@ascend.com>
57955
57956         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
57957         remember if this is necessary.
57958
57959 1999-12-26  Jim Meyering  <meyering@ascend.com>
57960
57961         * m4/jm-macros.m4: Use it here.
57962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
57963
57964 1999-12-23  Jim Meyering  <meyering@ascend.com>
57965
57966         * m4/jm-macros.m4: Check for clock_gettime (moved from
57967         fileutils/configure.in)
57968         Check for gettimeofday.
57969
57970 1999-12-20  Jim Meyering  <meyering@ascend.com>
57971
57972         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
57973         autoconf-2.14a-1999-12-20.
57974
57975 1999-12-19  Jim Meyering  <meyering@ascend.com>
57976
57977         * m4/lstat-slash.m4: New file.
57978         * m4/jm-macros.m4: Use the new macro:
57979         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57980
57981 1999-12-07  Jim Meyering  <meyering@ascend.com>
57982
57983         * m4/perl.m4: Require that File::Compare be available, too.
57984         Too many systems seem to lack it.
57985
57986         * m4/strftime.m4: Add checks for most of the cpp macros tested in
57987         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
57988
57989 1999-11-18  Paul Eggert  <eggert@twinsun.com>
57990
57991         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
57992         problem with the QNX 4.25 shell, which doesn't propagate exit
57993         status of failed commands inside shell assignments.
57994
57995 1999-11-17  Jim Meyering  <meyering@ascend.com>
57996
57997         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
57998
57999 1999-11-07  Jim Meyering  <meyering@ascend.com>
58000
58001         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
58002
58003 1999-11-06  Jim Meyering  <meyering@ascend.com>
58004
58005         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
58006         * m4/jm-macros.m4 (jm_MACROS): Use it here.
58007
58008 1999-11-05  Jim Meyering  <meyering@ascend.com>
58009
58010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
58011         configure.in of textutils, fileutils, and sh-utils into this one
58012         (shared between those packages) file.
58013         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
58014         AC_STRUCT_ST_BLKSIZE.
58015
58016 1999-11-03  Jim Meyering  <meyering@ascend.com>
58017
58018         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
58019         of AC_CHECK_TYPE checks includes unistd.h.
58020         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
58021         Suggestion from Akim Demaille.
58022
58023 1999-10-30  Jim Meyering  <meyering@ascend.com>
58024
58025         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
58026         m4-quoted string.
58027         * m4/ls-mntd-fs.m4: Likewise.
58028         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
58029         * m4/jm-winsz1.m4: Likewise.
58030
58031         * m4/const.m4: Remove file, since the fix made it into the experimental
58032         version of autoconf.
58033         * m4/mktime.m4: Likewise.
58034
58035         * m4/check-type.m4: Remove file, now that the latest version of
58036         AC_CHECK_TYPE takes a third arg to specify additional #includes.
58037
58038         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
58039         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
58040         AC_CHECK_TYPE.
58041
58042 1999-10-04  Jim Meyering  <meyering@ascend.com>
58043
58044         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
58045
58046 1999-09-22  Paul Eggert  <eggert@twinsun.com>
58047
58048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
58049         2.95.1 bug with HP-UX 10.20.
58050
58051 1999-09-17  Jim Meyering  <meyering@ascend.com>
58052
58053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
58054         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
58055         due to missing strdup (against sh-utils-2.0).
58056
58057 1999-08-29  Jim Meyering  <meyering@ascend.com>
58058
58059         * m4/jm-macros.m4: Require jm_BISON.
58060         * m4/bison.m4: New file.
58061
58062 1999-08-17  Paul Eggert  <eggert@twinsun.com>
58063
58064         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
58065         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
58066
58067 1999-08-05  Jim Meyering  <meyering@ascend.com>
58068
58069         * m4/getline.m4: Rename test file from conftestdata to conftest.data
58070         to avoid conflicts with `conftest' on 8+3 filesystems.
58071         Suggestion from Eli Zaretskii.
58072
58073 1999-08-04  Jim Meyering  <meyering@ascend.com>
58074
58075         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
58076         fileutils and sh-utils (textutils's getline test was inadequate).
58077         (AM_FUNC_GETLINE): Run this test.
58078         (AC_CHECK_FUNCS): Check for getdelim.
58079         Reported by Bob Proulx.
58080
58081 1999-08-02  Jim Meyering  <meyering@ascend.com>
58082
58083         * m4/jm-macros.m4: Add a comment.
58084
58085 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58086
58087         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
58088         <inttypes.h> defines strtoumax as a macro (and not as a
58089         function).
58090
58091 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58092
58093         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
58094         that we can shift, multiply and divide unsigned long long
58095         values; Ultrix cc can't do it.
58096
58097 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58098
58099         * m4/mktime.m4: New file, which is a preview of what should appear
58100         in the next public autoconf release.
58101
58102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58103
58104         * m4/lfs.m4: Remove this file.
58105         * m4/largefile.m4: New file.  It contains the old contents of
58106         lfs.m4, except that all names with prefix AC_LFS have been
58107         changed to use the prefix AC_SYS_LARGEFILE instead, to be
58108         compatible with future autoconf versions.  Also, some minor m4
58109         quoting problems have been fixed.
58110
58111 1999-08-01  Paul Eggert  <eggert@twinsun.com>
58112
58113         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
58114         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
58115         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
58116         and simplify the shell code.
58117
58118 1999-08-01  Jim Meyering  <meyering@ascend.com>
58119
58120         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
58121         m4.
58122
58123 1999-07-20  Jim Meyering  <meyering@ascend.com>
58124
58125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
58126
58127 1999-07-15  Jim Meyering  <meyering@ascend.com>
58128
58129         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
58130
58131 1999-05-22  Jim Meyering  <meyering@ascend.com>
58132
58133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
58134
58135 1999-05-20  Jim Meyering  <meyering@ascend.com>
58136
58137         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
58138         Add a colon after each `then' in case $4 is empty.
58139
58140 1999-05-16  Jim Meyering  <meyering@ascend.com>
58141
58142         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
58143
58144 1999-05-10  Jim Meyering  <meyering@ascend.com>
58145
58146         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
58147
58148         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
58149         AC_FUNC_MKTIME.
58150
58151 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
58152
58153         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
58154
58155 1999-05-04  Paul Eggert  <eggert@twinsun.com>
58156
58157         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
58158         not CPPFLAGS, so that linking works correctly in IRIX.
58159
58160 1999-04-30  Paul Eggert  <eggert@twinsun.com>
58161
58162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
58163
58164 1999-04-20  Paul Eggert  <eggert@twinsun.com>
58165
58166         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
58167         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
58168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
58169         jm_AC_TYPE_UNSIGNED_LONG_LONG.
58170         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
58171
58172         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
58173
58174 1999-04-20  Jim Meyering  <meyering@ascend.com>
58175
58176         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
58177         AC_REPLACE xstroull if necessary.  From Paul Eggert.
58178         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
58179
58180 1999-04-18  Jim Meyering  <meyering@ascend.com>
58181
58182         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
58183         * m4/jm-macros.m4: Use it.
58184
58185 1999-04-06  Jim Meyering  <meyering@ascend.com>
58186
58187         * m4/strftime.m4: Remove test for %f.
58188
58189 1999-03-29  Jim Meyering  <meyering@ascend.com>
58190
58191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
58192         superset of the AC_TYPE_* checks in the textutils, fileutils,
58193         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
58194         AC_TYPE_PID_T.
58195
58196 1999-03-28  Jim Meyering  <meyering@ascend.com>
58197
58198         * m4/jm-macros.m4: Define GNU_PACKAGE here.
58199         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
58200         replaced e.g., in the *.sh files of the sh-utils.
58201
58202 1999-03-20  Jim Meyering  <meyering@ascend.com>
58203
58204         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
58205         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
58206         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
58207
58208 1999-03-19  Jim Meyering  <meyering@ascend.com>
58209
58210         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
58211
58212 1999-03-12  Jim Meyering  <meyering@ascend.com>
58213
58214         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
58215
58216 1999-03-07  Jim Meyering  <meyering@ascend.com>
58217
58218         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
58219         declared.
58220
58221 1999-02-17  Jim Meyering  <meyering@ascend.com>
58222
58223         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
58224         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
58225
58226 1999-02-07  Jim Meyering  <meyering@ascend.com>
58227
58228         * m4/group-member.m4: New file -- extracted from sh-utils'
58229         configure.in.
58230
58231         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
58232         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
58233
58234 1999-02-06  Jim Meyering  <meyering@ascend.com>
58235
58236         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
58237         * m4/fnmatch.m4: Likewise.
58238         * m4/getgroups.m4: Likewise.
58239         * m4/lstat.m4: Likewise.
58240         * m4/malloc.m4: Likewise.
58241         * m4/putenv.m4: Likewise.
58242         * m4/realloc.m4: Likewise.
58243         * m4/regex.m4: Likewise.
58244         * m4/stat.m4: Likewise.
58245         * m4/strftime.m4: Likewise.
58246         Suggestion from Alain Magloire.
58247
58248         * m4/chown.m4: Use `.$ac_objext', not `.o'.
58249         * m4/fnmatch.m4: Likewise.
58250         * m4/getgroups.m4: Likewise.
58251         * m4/getline.m4: Likewise.
58252         * m4/lstat.m4: Likewise.
58253         * m4/malloc.m4: Likewise.
58254         * m4/memcmp.m4: Likewise.
58255         * m4/putenv.m4: Likewise.
58256         * m4/realloc.m4: Likewise.
58257         * m4/regex.m4: Likewise.
58258         * m4/stat.m4: Likewise.
58259         * m4/strftime.m4: Likewise.
58260         Suggestion from Alain Magloire.
58261
58262         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
58263         an argument.
58264
58265         * m4/regex.m4: Add a run-time Test for proper operation of
58266         re_compile_pattern.
58267
58268 1999-01-31  Jim Meyering  <meyering@ascend.com>
58269
58270         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
58271
58272 1999-01-30  Jim Meyering  <meyering@ascend.com>
58273
58274         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
58275
58276         * m4/jm-mktime.m4: Make this a wrapper around the official
58277         AM_FUNC_MKTIME rather than my private copy, now that the official one
58278         is up to date.
58279         * m4/mktime.m4: Remove file.
58280
58281         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
58282         * m4/uptime.m4: Likewise.
58283         * m4/uintmax_t.m4: Likewise.
58284
58285 1999-01-28  Jim Meyering  <meyering@ascend.com>
58286
58287         * m4/jm-macros.m4: Use jm_AFS.
58288         * m4/afs.m4: New file (from fileutils' configure.in).
58289
58290         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
58291         * m4/chown.m4: Likewise.
58292         * m4/d-ino.m4: Likewise.
58293         * m4/d-type.m4: Likewise.
58294         * m4/fnmatch.m4: Likewise.
58295         * m4/getgroups.m4: Likewise.
58296         * m4/gettext.m4: Likewise.
58297         * m4/jm-mktime.m4: Likewise.
58298         * m4/jm-winsz2.m4: Likewise.
58299         * m4/lcmessage.m4: Likewise.
58300         * m4/ls-mntd-fs.m4: Likewise.
58301         * m4/malloc.m4: Likewise.
58302         * m4/memcmp.m4: Likewise.
58303         * m4/putenv.m4: Likewise.
58304         * m4/realloc.m4: Likewise.
58305         * m4/st_mtim.m4: Likewise.
58306         * m4/strftime.m4: Likewise.
58307
58308 1999-01-16  Jim Meyering  <meyering@ascend.com>
58309
58310         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
58311         (ARGMATCH_DIE_DECL): Define.
58312
58313 1999-01-12  Jim Meyering  <meyering@ascend.com>
58314
58315         * m4/Makefile.am.in: Rewrite to avoid using fmt.
58316         Reported by Lars Hecking.
58317
58318 1999-01-10  Jim Meyering  <meyering@ascend.com>
58319
58320         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
58321         gross kludge.
58322         * m4/inttypes_h.m4: Likewise.
58323         * m4/lstat.m4: Likewise.
58324         * m4/malloc.m4: Likewise.
58325         * m4/readdir.m4: Likewise.
58326         * m4/realloc.m4: Likewise.
58327         * m4/st_dm_mode.m4: Likewise.
58328         * m4/stat.m4: Likewise.
58329         * m4/utimbuf.m4: Likewise.
58330         * m4/utimes.m4: Likewise.
58331
58332         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
58333         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
58334         comments in config.h.in are meaningful.
58335
58336         * m4/jm-macros.m4: Require autoconf-2.13 here.
58337
58338         * m4/regex.m4: By default, don't use the included regex.c on systems
58339         with glibc 2.  Suggestion from Uli Drepper.
58340
58341 1999-01-02  Jim Meyering  <meyering@ascend.com>
58342
58343         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
58344
58345 1998-12-18  Jim Meyering  <meyering@ascend.com>
58346
58347         * m4/Makefile.am.in (Makefile.am): Simplify rule.
58348         Based on a suggestion from Lars Hecking.
58349
58350 1998-11-16  Paul Eggert  <eggert@twinsun.com>
58351
58352         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
58353
58354 1998-11-16  Jim Meyering  <meyering@ascend.com>
58355
58356         * m4/lfs.m4: Double-quote the `uname...` expression.
58357
58358 1998-11-14  Jim Meyering  <meyering@ascend.com>
58359
58360         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
58361         * m4/stat.m4: Likewise.
58362
58363 1998-11-03  Jim Meyering  <meyering@ascend.com>
58364
58365         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
58366         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
58367
58368 1998-10-18  Jim Meyering  <meyering@ascend.com>
58369
58370         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
58371
58372 1998-10-17  Jim Meyering  <meyering@ascend.com>
58373
58374         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
58375         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
58376         calls for those previously hard-coded headers.  Instead, take a new
58377         parameter.
58378         (jm_CHECK_DECLARATIONS): Reflect interface change.
58379         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
58380         (jm_CHECK_DECL_LOCALTIME_R): New macro.
58381
58382         * m4/mktime.m4: Test for spring-forward gap before long-running test.
58383
58384 1998-10-14  Jim Meyering  <meyering@ascend.com>
58385
58386         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
58387         instead of "TZ=America/Vancouver".  From Paul Eggert.
58388
58389 1998-10-11  Jim Meyering  <meyering@ascend.com>
58390
58391         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
58392         This adds a test for a recently added compatibility fix for mktime.c.
58393         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
58394
58395 1998-09-27  Jim Meyering  <meyering@ascend.com>
58396
58397         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
58398
58399         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
58400         ../configure.in, including a change from Gordon Matzigkeit to allow
58401         cross-compiling for the Hurd.
58402
58403         * m4/glibc.m4: New file/macro to test for the GNU C Library
58404         versions 1 and 2.  From Gordon Matzigkeit.
58405         Indent.
58406
58407 1998-09-21  Jim Meyering  <meyering@ascend.com>
58408
58409         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
58410
58411 1998-08-18  Paul Eggert  <eggert@twinsun.com>
58412
58413         Port nanosecond-resolution times to UnixWare 2.1.2 and
58414         pedantic Solaris 2.6.
58415
58416         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
58417         AC_STRUCT_ST_MTIM.
58418         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
58419         Generate name of ns member, instead of just 1 or undef.
58420         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
58421
58422 1998-08-15  Jim Meyering  <meyering@ascend.com>
58423
58424         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
58425         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
58426         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
58427         instead of jm_TYPE_SSIZE_T.
58428
58429 1998-08-12  Jim Meyering  <meyering@ascend.com>
58430
58431         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
58432
58433 1998-08-02  Jim Meyering  <meyering@ascend.com>
58434
58435         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
58436         in acconfig.h manually.
58437
58438 1998-07-31  Paul Eggert  <eggert@twinsun.com>
58439
58440         * m4/st_mtim.m4: New file.
58441
58442 1998-07-28  Jim Meyering  <meyering@ascend.com>
58443
58444         * m4/utimes.m4: Undef stat.
58445
58446 1998-07-25  Jim Meyering  <meyering@ascend.com>
58447
58448         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
58449         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
58450
58451 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
58452
58453         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
58454         uid and gid actually remain unchanged.
58455
58456 1998-07-07  Jim Meyering  <meyering@ascend.com>
58457
58458         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
58459
58460 1998-07-04  Jim Meyering  <meyering@ascend.com>
58461
58462         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
58463         to prove that this macro can be used in packages without regex.c.
58464
58465 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
58466
58467         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
58468         is to be used.
58469
58470 1998-07-03  Jim Meyering  <meyering@ascend.com>
58471
58472         * m4/gettext.m4: Add -lintl if it's found to be necessary.
58473
58474         * m4/gettext.m4: New file -- from gettext-0.10.35.
58475         * m4/lcmessage.m4: Likewise.
58476         * m4/progtest.m4: Likewise.
58477
58478         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
58479         * m4/jm-macros.m4: Require the new macro.
58480
58481 1998-06-29  Jim Meyering  <meyering@ascend.com>
58482
58483         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
58484         for the definition of NGROUPS (used in a system header included
58485         by sys/mount.h).
58486
58487 1998-06-28  Jim Meyering  <meyering@ascend.com>
58488
58489         * m4/ls-mntd-fs.m4: New file.
58490         * m4/fstypename.m4: New file.
58491
58492         * m4/jm-macros.m4: Require the new macro.
58493         * m4/jm-glibc-io.m4: New file.
58494
58495 1998-05-19  Jim Meyering  <meyering@ascend.com>
58496
58497         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
58498         * m4/lchown.m4: New file.
58499
58500         * m4/Makefile.am.in: New file.
58501         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
58502
58503 1998-05-14  Jim Meyering  <meyering@ascend.com>
58504
58505         * m4/Makefile.am (EXTRA_DIST): Add them.
58506         * m4/jm-macros.m4: New file.
58507         * m4/utimbuf.m4: New file.
58508
58509 1998-05-12  Jim Meyering  <meyering@ascend.com>
58510
58511         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
58512
58513 1998-05-11  Jim Meyering  <meyering@ascend.com>
58514
58515         * m4/isc-posix.m4: New file.
58516
58517 1998-05-10  Jim Meyering  <meyering@ascend.com>
58518
58519         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
58520
58521 1998-05-09  Jim Meyering  <meyering@ascend.com>
58522
58523         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
58524         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
58525         with automake.
58526
58527         * m4/ssize_t.m4: New file.
58528         * m4/mktime.m4: Remove file -- the new automake has this now.
58529
58530 1998-04-26  Jim Meyering  <meyering@ascend.com>
58531
58532         * m4/assert.m4: New file.
58533         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
58534
58535 1998-04-05  Jim Meyering  <meyering@ascend.com>
58536
58537         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
58538         (jm_PREREQ): Use it here.
58539
58540 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
58541
58542         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
58543         in acconfig.h.
58544
58545 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
58546
58547         * m4/prereq.m4: New file.
58548         * m4/error.m4: New file.
58549         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
58550
58551 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
58552
58553         * m4/getline.m4: Don't set am_cv_func_working_getline before the
58554         cache-check for the same variable -- that defeated the purpose of
58555         the test; the test program was never run.  This was a problem only
58556         on systems with losing getline functions -- HP-UX 10.20 is one.
58557         Reported by Bjorn Helgaas.
58558
58559 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
58560
58561         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
58562
58563 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
58564
58565         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
58566
58567         * m4/const.m4: New file.  Use an initializer in this declaration
58568         typedef int charset[2]; const charset x;
58569         Reported by Bob Glickstein.
58570
58571 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
58572
58573         * m4/chown.m4: Fix reversed types on -1 args to chown.
58574         From Kaveh Ghazi.
58575
58576 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
58577
58578         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
58579         Add lseek and memchr.
58580
58581         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
58582         T.E.Dickey <dickey@clark.net> said that some older preprocessors
58583         have a 20-character limit on names.
58584
58585 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
58586
58587         * m4/inttypes_h.m4: New file.
58588         * m4/uintmax_t.m4: New file.
58589         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
58590
58591
58592         -----
58593
58594         Local Variables:
58595         coding: utf-8
58596         End:
58597
58598         Copyright (C) 1997-2009 Free Software Foundation, Inc.
58599
58600         Copying and distribution of this file, with or without
58601         modification, are permitted provided the copyright notice
58602         and this notice are preserved.